/* =====================================================================
   Brown Wraps v2 — design system
   Single stylesheet: tokens, base, components, layout, utilities.
   ===================================================================== */

/* ---------- 1. TOKENS ------------------------------------------------ */
:root {
  /* surfaces */
  --bg: #0A0A0B;
  --surface-1: #18181B;
  --surface-2: #27272A;
  --line: #3F3F46;

  /* type */
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --dim: #71717A;

  /* brand accents */
  --accent: #FF5722;
  --accent-hover: #FB6E3F;
  --neon: #00E5FF;
  --gold: #D4A24C;

  /* functional */
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* gradients */
  --grad-sunset: linear-gradient(135deg, #FF5722 0%, #FF8A3D 50%, #FFB85C 100%);
  --grad-night: linear-gradient(180deg, #0A0A0B 0%, #18181B 100%);
  --grad-overlay: linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.85) 100%);

  /* type families */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* spacing */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* widths */
  --w-text: 65ch;
  --w-content: 1100px;
  --w-wide: 1320px;

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 480ms;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  --glow-accent: 0 0 0 1px rgba(255,87,34,.4), 0 12px 40px rgba(255,87,34,.15);
  --glow-neon: 0 0 0 1px rgba(0,229,255,.3), 0 0 28px rgba(0,229,255,.18);
}

/* ---------- 2. RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- 3. TYPE -------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw + 1rem, 6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.8rem, 1.75rem); }
h4 { font-size: 1.125rem; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.prose p, .prose ul, .prose ol { margin-block: 1em; }
.prose { max-width: var(--w-text); color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose ul li { padding-left: 1.5em; position: relative; margin-block: 0.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 12px; height: 1px; background: var(--accent); }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

/* ---------- 4. LAYOUT ------------------------------------------------ */
.container { width: 100%; max-width: var(--w-content); margin-inline: auto; padding-inline: var(--s-6); }
.container--wide { max-width: var(--w-wide); }
.container--text { max-width: var(--w-text); }
.section { padding-block: var(--s-20); }
.section--lg { padding-block: var(--s-32); }
.section--sm { padding-block: var(--s-12); }
.section--surface { background: var(--surface-1); }
.section--gradient { background: var(--grad-night); }
.divider { height: 1px; background: var(--line); margin-block: var(--s-12); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.grid-65-35 { display: grid; grid-template-columns: 1fr; gap: var(--s-10); }
@media (min-width: 1024px) { .grid-65-35 { grid-template-columns: 65% 35%; } }

.stack > * + * { margin-top: var(--s-6); }
.stack--lg > * + * { margin-top: var(--s-12); }

/* ---------- 5. NAVBAR ------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.nav--scrolled { border-bottom-color: var(--line); background: rgba(10,10,11,0.92); }
.nav__inner {
  display: flex; align-items: center; gap: var(--s-8);
  padding-block: var(--s-3);
  max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--s-6);
  min-height: 116px;
  transition: min-height var(--t-base) var(--ease);
}
.nav--scrolled .nav__inner { min-height: 80px; }
@media (max-width: 1023px) { .nav__inner { min-height: 104px; } }
@media (max-width: 640px) { .nav__inner { min-height: 92px; gap: var(--s-3); } }
@media (max-width: 640px) { .nav--scrolled .nav__inner { min-height: 72px; } }
.nav__brand {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.04em; font-size: 1.05rem;
  display: flex; align-items: center; gap: var(--s-2);
}
.nav__brand-mark {
  width: 32px; height: 32px;
  background: var(--grad-sunset);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: #0A0A0B; font-weight: 700; font-size: 0.85rem;
}
.nav__logo {
  height: 96px; width: auto; max-width: 280px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: height var(--t-base) var(--ease);
}
@media (max-width: 1023px) { .nav__logo { height: 84px; } }
@media (max-width: 640px)  { .nav__logo { height: 72px; } }
@media (max-width: 380px)  { .nav__logo { height: 60px; } }
.nav--scrolled .nav__logo { height: 64px; }
@media (max-width: 640px) { .nav--scrolled .nav__logo { height: 56px; } }
.mobile-nav .nav__logo { height: 96px; }
.footer .nav__logo { height: 88px; }
.brand-lockup__logo { height: clamp(140px, 22vw, 240px); width: auto; display: block; margin-inline: auto; filter: drop-shadow(0 8px 28px rgba(0,0,0,0.55)); }
.nav__list { display: none; gap: var(--s-1); margin-inline: auto; align-items: center; }
@media (min-width: 1024px) { .nav__list { display: flex; } }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--s-2) var(--s-4);
  font-size: 0.9rem; font-weight: 500;
  color: var(--muted); border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: var(--surface-1); }
.nav__chevron { width: 14px; height: 14px; opacity: 0.6; transition: transform var(--t-fast) var(--ease); }
.nav__item:hover .nav__chevron, .nav__item--open .nav__chevron { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-2);
  min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
  box-shadow: var(--shadow-md);
}
.nav__item:hover .nav__dropdown, .nav__item--open .nav__dropdown,
.nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  color: var(--muted); font-size: 0.9rem;
}
.nav__dropdown a:hover { color: var(--text); background: var(--surface-2); }
.nav__cta {
  display: none; gap: var(--s-3); align-items: center;
}
@media (min-width: 1024px) { .nav__cta { display: flex; } }
.nav__phone {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__phone:hover { color: var(--text); }

.nav__burger {
  margin-left: auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-1);
}
@media (min-width: 1024px) { .nav__burger { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg); padding: var(--s-6);
  transform: translateX(100%); transition: transform var(--t-base) var(--ease);
  overflow-y: auto;
}
.mobile-nav[aria-hidden="false"] { transform: none; }
.mobile-nav__close { position: absolute; top: var(--s-4); right: var(--s-4); }
.mobile-nav__group { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.mobile-nav__group h4 { color: var(--accent); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: var(--s-2); }
.mobile-nav__link { display: block; padding: var(--s-3) 0; font-size: 1.1rem; color: var(--text); }
.mobile-nav__cta { margin-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-3); }

/* ---------- 6. BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent); color: #0A0A0B;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px rgba(255,87,34,0.25);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow-accent); }
.btn--ghost { color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-1); border-color: var(--text); }
.btn--neon { color: var(--neon); border: 1px solid rgba(0,229,255,0.4); }
.btn--neon:hover { box-shadow: var(--glow-neon); border-color: var(--neon); }
.btn--lg { padding: var(--s-4) var(--s-8); font-size: 1rem; }
.btn--xl {
  padding: var(--s-5) var(--s-10);
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-lg);
}
.btn--sm { padding: var(--s-2) var(--s-4); font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 7. HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 900px);
  display: grid; align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero--center { align-items: center; text-align: center; }
.hero--center .hero__inner { max-width: var(--w-content); padding-block: var(--s-20); margin-inline: auto; }
.hero--center .hero__sub { max-width: 60ch; margin-inline: auto; }
.hero--center .hero__cta { justify-content: center; }
.hero__lockup { display: flex; flex-direction: column; align-items: center; gap: var(--s-6); margin-bottom: var(--s-8); }
.hero__lockup .eyebrow { color: var(--accent); }
.hero--center::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,87,34,0.12), transparent 65%);
  pointer-events: none;
}
.hero--sm { min-height: clamp(360px, 55vh, 600px); }
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-overlay);
}
.hero__inner {
  width: 100%; max-width: var(--w-wide);
  margin-inline: auto; padding: var(--s-12) var(--s-6) var(--s-16);
}
.hero__sub { color: var(--muted); margin-top: var(--s-4); max-width: 50ch; font-size: 1.15rem; }
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-8); }
.hero__scroll {
  position: absolute; bottom: var(--s-6); left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  z-index: 2;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 28px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-pulse 2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

/* ---------- 8. TRUST BAR -------------------------------------------- */
.trustbar {
  border-block: 1px solid var(--line);
  padding-block: var(--s-5);
  background: var(--surface-1);
}
.trustbar__inner {
  display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-12); justify-content: center; align-items: center;
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em;
}
.trustbar__item { display: inline-flex; align-items: center; gap: var(--s-2); }
.trustbar__item .star { color: var(--accent); }

/* ---------- 9. CARDS ------------------------------------------------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,87,34,0.4); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.card__meta { color: var(--dim); font-size: 0.8rem; font-family: var(--font-mono); }
.card__excerpt { color: var(--muted); font-size: 0.95rem; }
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: var(--s-3);
  color: var(--accent); font-size: 0.9rem; font-weight: 500;
  border-top: 1px solid var(--surface-2);
}
.card__more .arrow { transition: transform var(--t-fast) var(--ease); }
.card:hover .card__more .arrow { transform: translateX(4px); }

/* tags */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  font-size: 0.7rem; font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--surface-2); color: var(--muted);
  border-radius: var(--r-pill);
}
.tag--accent { background: rgba(255,87,34,0.15); color: var(--accent); }

/* ---------- 10. STATS ------------------------------------------------ */
.stats {
  display: grid; gap: var(--s-8);
  grid-template-columns: repeat(2, 1fr);
  padding-block: var(--s-12);
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.03em;
}
.stat__label { color: var(--muted); font-size: 0.85rem; margin-top: var(--s-2); letter-spacing: 0.05em; }

/* ---------- 11. SPEC BAR (service detail) --------------------------- */
.specbar {
  background: var(--surface-1); border-block: 1px solid var(--line);
  padding-block: var(--s-8);
}
.specbar__grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .specbar__grid { grid-template-columns: repeat(4, 1fr); } }
.spec__num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.spec__label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--s-1); }

/* ---------- 12. FAQ -------------------------------------------------- */
.faq { max-width: var(--w-text); margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-4);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  cursor: pointer; list-style: none; padding-block: var(--s-2);
  gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--accent); }
.faq__body { color: var(--muted); padding: var(--s-3) 0 var(--s-2); max-width: 60ch; }

/* ---------- 13. REVIEW CARDS ---------------------------------------- */
.review {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.review__stars { color: var(--accent); letter-spacing: 4px; }
.review__quote { font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.review__author { font-size: 0.85rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.review__author strong { color: var(--text); font-weight: 600; }

/* ---------- 14. SECTION HEADER -------------------------------------- */
.section-head { text-align: left; margin-bottom: var(--s-10); max-width: 60ch; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head__title { margin-top: var(--s-2); }
.section-head__sub { color: var(--muted); margin-top: var(--s-3); font-size: 1.1rem; }

/* ---------- 15. CTA BAND -------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: var(--s-20);
  background: var(--surface-1);
  text-align: center; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,87,34,0.18), transparent 60%);
  pointer-events: none;
}
.cta-band__inner { position: relative; max-width: 700px; margin-inline: auto; padding-inline: var(--s-6); }
.cta-band__cta { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.cta-band__contact { color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; margin-top: var(--s-4); }

/* ---------- 16. FOOTER ----------------------------------------------- */
.footer {
  background: var(--surface-1); border-top: 1px solid var(--line);
  padding-block: var(--s-16) var(--s-10);
}
.footer__grid {
  display: grid; gap: var(--s-10);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer h5 {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
  margin-bottom: var(--s-4);
}
.footer ul li { margin-block: var(--s-2); }
.footer a { color: var(--muted); font-size: 0.9rem; }
.footer a:hover { color: var(--text); }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: var(--s-3); max-width: 38ch; }
.footer__bottom {
  border-top: 1px solid var(--line);
  margin-top: var(--s-12); padding-top: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  color: var(--dim); font-size: 0.8rem;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; } }
.footer__social { display: flex; gap: var(--s-2); }
.footer__social a {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--bg);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 17. WHATSAPP FAB ---------------------------------------- */
.fab {
  position: fixed; right: var(--s-5); bottom: var(--s-5);
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: #25D366; color: white;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform var(--t-fast) var(--ease);
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; }

/* ---------- 18. FORM ------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; color: var(--muted);
}
.form input, .form select, .form textarea {
  background: var(--bg); border: 1px solid var(--line);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  color: var(--text); transition: border-color var(--t-fast) var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); }
.form__radios { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.form__radio {
  position: relative; cursor: pointer;
}
.form__radio input { position: absolute; opacity: 0; }
.form__radio span {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 0.85rem; color: var(--muted);
  transition: all var(--t-fast) var(--ease);
}
.form__radio input:checked + span { background: var(--accent); color: #0A0A0B; border-color: var(--accent); }

/* ---------- 19. BEFORE/AFTER (CSS-only slider) ---------------------- */
.beforeafter {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  user-select: none; touch-action: none;
}
.beforeafter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beforeafter__after { clip-path: inset(0 0 0 50%); transition: clip-path 0ms; }
.beforeafter__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--accent); cursor: ew-resize;
  transform: translateX(-50%);
}
.beforeafter__handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px;
  background: var(--accent); color: #0A0A0B;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.beforeafter__label {
  position: absolute; bottom: var(--s-3); padding: 4px 12px;
  font-family: var(--font-display); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: rgba(10,10,11,0.7); color: var(--text);
  border-radius: var(--r-pill); border: 1px solid var(--line);
}
.beforeafter__label--before { left: var(--s-3); }
.beforeafter__label--after { right: var(--s-3); }

/* ---------- 20. FILTER CHIPS ---------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-8); }
.chip {
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 0.85rem; color: var(--muted);
  cursor: pointer; transition: all var(--t-fast) var(--ease);
}
.chip:hover, .chip[aria-selected="true"] { color: var(--text); border-color: var(--text); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #0A0A0B; }

/* ---------- 21. BLOG ------------------------------------------------- */
.post-hero { padding-block: var(--s-16) var(--s-10); border-bottom: 1px solid var(--line); }
.post-hero__meta { color: var(--muted); font-size: 0.85rem; display: flex; gap: var(--s-3); flex-wrap: wrap; }
.post-hero__meta span + span::before { content: "·"; margin-right: var(--s-3); color: var(--dim); }
.post-body { padding-block: var(--s-12); }
.post-body p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700;
  font-size: 4.5rem; line-height: 0.85; padding: 6px 12px 0 0;
  color: var(--accent);
}
.related { display: grid; gap: var(--s-6); grid-template-columns: 1fr; margin-top: var(--s-12); }
@media (min-width: 768px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 22. UTILS ------------------------------------------------ */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.mt-3 { margin-top: var(--s-3); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.full { width: 100%; }
.hidden { display: none; }
@media (min-width: 768px) { .hidden-md { display: none; } }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 23. ANIMATIONS ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 24. DARK SCROLLBAR -------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--line); }
