/* ==========================================================================
   Kausar.Build — site.css
   One stylesheet, no external requests (matches the privacy policy).
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Header/Footer
             6 Hero (3D) · 7 Page sections · 8 Utilities · 9 Media queries
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Colour — neutral, reference-led. Ink on white. */
  --c-bg: #ffffff;
  --c-bg-soft: #f7f7f8;          /* off-white bands, hero wash */
  --c-surface: #ffffff;
  --c-surface-2: #f3f3f5;        /* inset chips, icon wells */
  --c-ink: #1d1d1f;              /* primary text, dark buttons — 16.1:1 */
  --c-ink-2: #3a3a3c;            /* strong secondary — 11.4:1 */
  --c-ink-3: #66666b;            /* secondary text — 5.7:1 on white */
  --c-ink-4: #8a8a8f;            /* decorative only (rulers, ticks) */
  --c-line: rgba(0, 0, 0, 0.08);
  --c-line-2: rgba(0, 0, 0, 0.13);
  --c-accent: #0a5bd3;           /* focus, link hover, selection — 6.1:1 */
  --c-accent-soft: rgba(10, 91, 211, 0.12);
  --c-ok: #16804a;               /* "available" status — 5.0:1 */
  --c-ok-soft: rgba(22, 128, 74, 0.14);

  /* Type — system stack: SF Pro on Apple, Segoe UI on Windows. No font files. */
  --f-sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 0.75rem;                                   /* 12 */
  --t-sm: 0.875rem;                                  /* 14 */
  --t-base: 1rem;                                    /* 16 */
  --t-md: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);/* 17–19 lede */
  --t-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);    /* card titles */
  --t-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);   /* section titles */
  --t-2xl: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);  /* hero */

  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;

  /* Space — 4px base, rem so it scales with user text size */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Widths */
  --w-page: 72rem;      /* 1152 — matches the reference's framed column */
  --w-text: 38rem;      /* readable measure */
  --w-narrow: 46rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* Shape */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Elevation — soft, layered, low-opacity (reference's "softly dimensional") */
  --sh-1: 0 1px 1px rgba(0,0,0,.03), 0 1px 3px rgba(0,0,0,.05);
  --sh-2: 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -6px rgba(0,0,0,.12);
  --sh-3: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px -14px rgba(0,0,0,.20);
  --sh-btn: 0 1px 0 rgba(255,255,255,.18) inset, 0 -1px 0 rgba(0,0,0,.35) inset, 0 6px 14px -4px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);

  /* Motion */
  /* One motion vocabulary for the whole site. No overshoot anywhere. */
  --e-out: cubic-bezier(.16, 1, .3, 1);     /* arrivals: fast start, long soft landing */
  --e-in: cubic-bezier(.7, 0, .84, 0);      /* departures */
  --e-in-out: cubic-bezier(.65, 0, .35, 1); /* state changes that go both ways */
  --d-press: 110ms; --d-fast: 160ms; --d-base: 220ms; --d-slow: 420ms;
  --d-reveal: 560ms;   /* section reveals */
  --stagger: 55ms;     /* step between siblings (capped at 6 steps in JS) */
  --m-1: 6px; --m-2: 14px; --m-3: 28px;   /* movement distances: micro, reveal, media */

  /* Layers */
  --z-base: 1; --z-stage: 2; --z-header: 50; --z-menu: 60; --z-skip: 100;

  --header-h: 4rem;
}

/* 2. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font: var(--w-regular) var(--t-base)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: var(--w-semibold); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. LAYOUT ------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--w-page)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--w-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

/* Reference detail: the framed column with measurement rulers. Desktop only, decorative. */
.frame { position: relative; }
@media (min-width: 1100px) {
  .frame::before, .frame::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none;
    background: linear-gradient(var(--c-line), var(--c-line)) top/1px 100% no-repeat;
    left: max(var(--gutter), calc(50% - var(--w-page) / 2 - 1.5rem));
  }
  .frame::after { left: auto; right: max(var(--gutter), calc(50% - var(--w-page) / 2 - 1.5rem)); }
  .ruler::before, .ruler::after {
    content: ""; position: absolute; top: var(--s-7); height: 15rem; width: 6px; pointer-events: none;
    background: repeating-linear-gradient(to bottom, var(--c-line-2) 0 1px, transparent 1px 2.5rem),
                repeating-linear-gradient(to bottom, var(--c-line) 0 1px, transparent 1px .625rem);
    background-size: 6px 100%, 3px 100%; background-repeat: no-repeat;
    left: calc(max(var(--gutter), calc(50% - var(--w-page) / 2 - 1.5rem)) - 3px);
  }
  .ruler::after { left: auto; right: calc(max(var(--gutter), calc(50% - var(--w-page) / 2 - 1.5rem)) - 3px); background-position: right top, right top; }
}

.section-head { text-align: center; max-width: var(--w-text); margin: 0 auto var(--s-8); display: grid; justify-items: center; gap: var(--s-4); }
.section-head--left { text-align: left; justify-items: start; margin-inline: 0; }
.section-title { font-size: var(--t-xl); }
.section-title .soft { font-weight: var(--w-regular); color: var(--c-ink-2); }
.lede { font-size: var(--t-md); color: var(--c-ink-3); line-height: 1.55; }

/* 4. COMPONENTS ------------------------------------------------------ */

/* Eyebrow — the reference's small framed label, carrying the site's "// " voice */
.eyebrow {
  display: inline-flex; align-items: center; gap: .4em; padding: .3rem .7rem;
  font: var(--w-medium) var(--t-xs)/1.2 var(--f-mono); letter-spacing: .02em; color: var(--c-ink-3);
  background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-xs);
  box-shadow: var(--sh-1);
}

/* Status pill with live dot */
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: var(--w-medium); color: var(--c-ink-2); }
.status--pill { padding: .35rem .8rem .35rem .65rem; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-line-2); box-shadow: var(--sh-1); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-soft); flex: none; }

/* Buttons — compact, polished. Feedback on press, not release. */
.btn {
  --btn-h: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--btn-h); padding: 0 1.15rem; border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: var(--w-semibold); letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--d-fast) var(--e-out), background-color var(--d-fast), box-shadow var(--d-base) var(--e-out), border-color var(--d-fast);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: var(--d-press); }
.btn svg { transition: transform var(--d-fast) var(--e-out); }
.btn:hover svg[aria-hidden] { transform: translateY(1px); }
a.btn[href^="/work"]:hover svg, .link-arrow:hover svg { transform: translateX(3px); }
.btn--dark { color: #fff; background: linear-gradient(#45454a, #1d1d1f 60%); box-shadow: var(--sh-btn); }
.btn--dark:hover, .btn--dark:focus-visible { background: linear-gradient(#55555a, #2a2a2d 60%); box-shadow: var(--sh-btn), 0 10px 22px -8px rgba(0,0,0,.45); }
.btn--light { color: var(--c-ink); background: var(--c-surface); border-color: var(--c-line-2); box-shadow: var(--sh-1); }
.btn--light:hover, .btn--light:focus-visible { border-color: rgba(0,0,0,.22); box-shadow: var(--sh-2); }
.btn--sm { --btn-h: 2.375rem; padding: 0 .9rem; }
.btn svg { width: 1rem; height: 1rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: var(--w-semibold); font-size: var(--t-sm); text-decoration: none; color: var(--c-ink); }
.link-arrow span[aria-hidden] { transition: transform var(--d-fast) var(--e-out); }
.link-arrow:hover { color: var(--c-accent); }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }

/* Card */
.card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card--pad { padding: clamp(1.25rem, 1rem + 1vw, 2rem); }

/* Icon well — the reference's dark, softly bevelled tile */
.icon-tile {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: var(--r-sm);
  color: #fff; background: linear-gradient(#4a4a4f, #1d1d1f 70%); box-shadow: var(--sh-btn);
  font: var(--w-semibold) var(--t-xs)/1 var(--f-mono);
}

/* Avatar (initials — used where no verified photo exists) */
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; object-fit: cover; background: var(--c-surface-2); }
.avatar--initials { display: grid; place-items: center; font-weight: var(--w-semibold); font-size: var(--t-sm); color: var(--c-ink-2); border: 1px solid var(--c-line); }

/* Media frame — reserves space (no CLS) and crops consistently */
.media { position: relative; overflow: hidden; background: var(--c-surface-2); border-radius: var(--r-md); }
.media > img, .media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* 5. HEADER / NAV / FOOTER ------------------------------------------ */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-skip);
  padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--c-ink); color: #fff; font-weight: var(--w-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--d-base);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: var(--w-semibold); letter-spacing: -0.015em; min-height: 2.75rem; }
.brand__mark { display: block; width: 1.5rem; flex: none; color: var(--c-ink); }
.logo-mark { display: block; width: 100%; height: auto; }

.nav { display: none; }
.nav__list { display: flex; gap: .15rem; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .75rem; border-radius: var(--r-xs);
  font-size: var(--t-sm); color: var(--c-ink-3); text-decoration: none; position: relative; transition: color var(--d-fast);
}
.nav__link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .45rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--d-base) var(--e-out); }
.nav__link:hover, .nav__link:focus-visible { color: var(--c-ink); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--c-ink); }
.nav__link[aria-current="page"] { color: var(--c-ink); font-weight: var(--w-medium); }
.header-cta { display: none; }

.menu-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-line-2); cursor: pointer;
}
.menu-btn__bars { position: relative; width: 1.1rem; height: 10px; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: var(--c-ink); transition: transform var(--d-base) var(--e-out), top var(--d-base) var(--e-out); }
.menu-btn__bars::before { top: 0; } .menu-btn__bars::after { top: calc(100% - 1.5px); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: calc(50% - .75px); transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--sh-3);
  padding: var(--s-3) var(--gutter) var(--s-6);
  transform-origin: top center;
}
.js .mobile-menu { visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--d-base) var(--e-in-out), transform var(--d-base) var(--e-in-out), visibility 0s linear var(--d-base); }
.js .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out), visibility 0s; }
.js .mobile-menu__list li { opacity: 0; transform: translateY(-6px); transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-out); }
.js .mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 60ms); }
.mobile-menu__list a span { transition: transform var(--d-fast) var(--e-out); }
.mobile-menu__list a:hover span, .mobile-menu__list a:focus-visible span { transform: translateX(4px); }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .mobile-menu { position: static; box-shadow: none; max-height: none; }
@media (min-width: 900px) { html:not(.js) .mobile-menu { display: none; } }
.mobile-menu__list a { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; border-bottom: 1px solid var(--c-line); font-size: 1.125rem; font-weight: var(--w-medium); text-decoration: none; }
.mobile-menu .btn { width: 100%; margin-top: var(--s-5); }

/* Footer */
.site-footer { border-top: 1px solid var(--c-line); background: var(--c-bg-soft); padding-top: var(--section-y); }
.footer-cta { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding-bottom: var(--s-9); }
.footer-cta__title { font-size: var(--t-xl); }
.footer-cta .muted { color: var(--c-ink-3); }
.seal {
  width: 2.75rem; display: block; color: var(--c-ink);
}
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7); border-top: 1px solid var(--c-line); }
.footer-brand { display: grid; gap: var(--s-1); }
.footer-brand strong { font-size: var(--t-lg); letter-spacing: -0.02em; }
.footer-brand span { color: var(--c-ink-3); font-size: var(--t-sm); }
.footer-brand .seal { color: var(--c-ink); }
.footer-col h2 { font: var(--w-medium) var(--t-xs)/1.2 var(--f-mono); color: var(--c-ink-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-col a { display: inline-flex; min-height: 2.25rem; align-items: center; font-size: var(--t-sm); color: var(--c-ink-2); text-decoration: none; }
.footer-col a, .prose a, .footer-bottom a { background: linear-gradient(currentColor, currentColor) left 88% / 0 1px no-repeat; transition: background-size var(--d-base) var(--e-out), color var(--d-fast); }
.prose a { text-decoration: none; background-size: 100% 1px; }
.footer-col a:hover, .footer-col a:focus-visible, .footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--c-ink); background-size: 100% 1px; }
.prose a:hover { background-size: 0 1px; background-position: right 88%; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; padding-block: var(--s-5); border-top: 1px solid var(--c-line); font-size: var(--t-xs); color: var(--c-ink-3); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer-bottom a { color: var(--c-ink-3); text-decoration: none; display: inline-flex; min-height: 2.25rem; align-items: center; }
.footer-bottom a:hover { color: var(--c-ink); }

/* 6. HERO — single portrait, scroll-controlled 3D -----------------------
   Default (no JS / reduced motion): a static, composed two-column hero.
   html.is-3d: a compact sticky sequence (~1 viewport of travel). JS maps
   scroll position → transforms 1:1 (no smoothing); it writes only
   transform + opacity, so nothing moves unless the scroll position does. */
.hero { position: relative; background:
  radial-gradient(70% 60% at 70% 30%, #ffffff 0%, rgba(255,255,255,0) 70%),
  linear-gradient(#f3f3f5, #fbfbfc 80%); }
.hero__sticky {
  position: relative; display: grid; gap: var(--s-7); align-items: center;
  padding: clamp(2.5rem, 1rem + 5vw, 5rem) var(--gutter) var(--s-8);
  max-width: calc(var(--w-page) + 2 * var(--gutter)); margin-inline: auto;
}
.hero__copy { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; gap: var(--s-4); }
.hero__title { font-size: var(--t-2xl); font-weight: var(--w-semibold); line-height: 1.02; letter-spacing: -0.038em; }
.hero__title .l1 { display: block; color: var(--c-ink-3); font-weight: var(--w-regular); font-size: .56em; letter-spacing: -0.02em; margin-bottom: .22em; }
.hero__title .l2 { display: block; }
.hero__lede { max-width: 31rem; font-size: var(--t-md); color: var(--c-ink-3); }
.hero__lede a { color: var(--c-ink); font-weight: var(--w-medium); white-space: nowrap; }
.hero__ctas { justify-content: center; margin-top: var(--s-2); }

/* Greeting — all words share one grid cell, so it is as wide as the widest
   word and nothing shifts. main.js cycles the visible word on a timer. */
.greet { display: inline-grid; vertical-align: baseline; text-align: right; }
.greet > span {
  grid-area: 1 / 1; opacity: 0; transform: translate3d(0, .42em, 0); filter: blur(4px);
  /* Waiting words sit just below; the outgoing word drifts up while the next
     one rises in over the same ~0.9 s, so the two overlap into one motion. */
  transition: opacity 760ms cubic-bezier(.33, 0, .2, 1), transform 980ms cubic-bezier(.22, 1, .36, 1), filter 760ms cubic-bezier(.33, 0, .2, 1);
  will-change: transform, opacity, filter;
}
.greet > span.is-on { opacity: 1; transform: none; filter: none; transition-delay: 120ms; }
.greet > span.is-out { opacity: 0; transform: translate3d(0, -.42em, 0); filter: blur(4px); transition-duration: 620ms, 900ms, 620ms; }
@media (prefers-reduced-motion: reduce) { .greet > span { transition: none; filter: none; } }

/* Portrait stage */
.pstage { position: relative; z-index: 2; display: grid; place-items: center; perspective: 1300px; }
.portrait {
  position: relative; margin: 0; width: var(--pw, min(70vw, 22rem)); aspect-ratio: 4 / 5;
  transform-style: preserve-3d; transform: rotateY(-10deg) rotateX(2deg);
}
/* Pointer-tilt layer (desktop): composed inside the scroll transform, so the two never fight */
.portrait__tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.portrait__img { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: #1d1d1f;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.08) inset; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
/* Backing surface: a thin dark slab just behind the photo — reads as an edge when angled */
.portrait__back { position: absolute; inset: -1px; border-radius: 19px; background: linear-gradient(135deg, #3a3a3d, #121214); transform: translateZ(-14px); }
/* Outline at its own depth — parallaxes against the photo */
.portrait__frame { position: absolute; inset: -12px; border-radius: 24px; border: 1px solid rgba(29,29,31,.14); transform: translateZ(-40px); pointer-events: none; }
/* Light: a shade on the far side + a soft specular band, both scroll-linked */
.portrait__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.42)); opacity: .5; pointer-events: none; }
.portrait__sheen { position: absolute; inset: -20% -60%; background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.16) 50%, rgba(255,255,255,0) 60%); transform: translateX(-30%); opacity: 0; pointer-events: none; }
.pstage__shadow { position: absolute; left: 50%; top: 50%; width: 60%; height: 60px; margin-left: -30%; margin-top: -30px;
  background: radial-gradient(closest-side, rgba(0,0,0,.28), rgba(0,0,0,0)); transform: translateY(210px); opacity: .7; pointer-events: none; }

@media (min-width: 900px) {
  .hero__sticky { grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header-h)); padding-block: var(--s-7); }
  .hero__copy { justify-items: start; text-align: left; }
  .hero__ctas { justify-content: flex-start; }
  /* fits the visible height (4:5 photo) with room for the header and margins */
  .portrait { --pw: min(34vw, 26rem, calc((100svh - var(--header-h) - 5rem) * .8)); }
}

/* --- 3D (scroll-controlled) mode ---
   Opening: headline block and description block side by side above the portrait.
   Final:   three columns — greeting + headline | portrait | description + actions.
   The text never reflows during the move: both text blocks are laid out at the
   final column width (--colw, measured in JS) from the start, then translated.
   Narrow screens (< 1024px): stacked — headline, portrait, description + actions. */
.hero__a, .hero__b { display: grid; gap: var(--s-4); justify-items: inherit; }
.is-3d .hero { height: calc(100svh - var(--header-h) + var(--hero-travel, 150svh)); }
.is-3d .hero__sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 0; display: block; padding: 0; max-width: none; overflow: hidden; }
.is-3d .hero__copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: var(--s-5);
  justify-content: center; align-items: flex-start; text-align: left; padding: var(--hero-inset, 24px) 0 var(--hero-inset, 24px) var(--hero-l, var(--gutter)); }
.is-3d .hero__a, .is-3d .hero__b { width: var(--colw, 22rem); max-width: 100%; justify-items: start; pointer-events: auto; will-change: transform, opacity; }
.is-3d .hero__ctas { justify-content: flex-start; }
.is-3d .hero__title { font-size: clamp(2rem, calc(var(--colw, 22rem) * .15), 4.25rem); }
.is-3d .hero__lede { max-width: none; }
.is-3d .pstage { position: absolute; inset: 0; display: block; perspective: 1300px; pointer-events: none; }
.is-3d .portrait { position: absolute; left: 50%; top: 50%; width: var(--pw); margin-left: calc(var(--pw) / -2); margin-top: calc(var(--pw) * -0.625); transform: none; will-change: transform; }
.is-3d .portrait__frame, .is-3d .pstage__shadow, .is-3d .portrait__sheen, .is-3d .portrait__shade, .is-3d .portrait__tilt { will-change: transform, opacity; }
.is-3d .hero__title .l1, .is-3d .hero__title .l2, .is-3d .hero__a .status, .is-3d .hero__lede, .is-3d .hero__ctas { will-change: transform; }
/* Opening (wide screens): headline block and description block side by side above the portrait */
.is-3d .hero[data-mode="cols"] .hero__copy { flex-direction: row; justify-content: center; align-items: center; gap: var(--pair-gap, 64px); padding: var(--copy-top, 48px) var(--gutter) 0; height: auto; bottom: auto; }
.is-3d .hero[data-mode="stack"] .hero__copy { justify-content: flex-start; align-items: center; text-align: center; padding-inline: var(--gutter); gap: var(--s-4); }
.is-3d .hero[data-mode="stack"] :is(.hero__a, .hero__b) { justify-items: center; }
.is-3d .hero[data-mode="stack"] .hero__ctas { justify-content: center; }
.is-3d .hero[data-mode="stack"] .hero__title { font-size: clamp(2rem, 7.4vw, 3.25rem); }
.is-3d .hero[data-mode="stack"] .hero__lede { font-size: var(--t-base); }
@media (max-width: 1023px) { .is-3d .hero { --hero-travel: 120svh; } }


/* 7. PAGE SECTIONS --------------------------------------------------- */


/* Project grid (home + archive) */
.projects { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: 1fr; }
.project { display: grid; gap: var(--s-4); }
.project .media { border: 1px solid var(--c-line); box-shadow: var(--sh-1); transition: box-shadow var(--d-slow) var(--e-out), transform var(--d-slow) var(--e-out); }
.project:hover .media, .project:focus-within .media { box-shadow: var(--sh-3); transform: translateY(-4px); }
.project .media > picture { transition: transform var(--d-slow) var(--e-out); }
.project:hover .media > picture, .project:focus-within .media > picture { transform: scale(1.035); }
.project__title a { background: linear-gradient(currentColor, currentColor) left 92% / 0 1px no-repeat; transition: background-size var(--d-base) var(--e-out); }
.project:hover .project__title a, .project__title a:focus-visible { background-size: 100% 1px; }
.project__cat { font: var(--w-medium) var(--t-xs)/1.2 var(--f-mono); color: var(--c-ink-3); letter-spacing: .02em; }
.project__title { font-size: var(--t-lg); margin-top: .35rem; }
.project__title a { text-decoration: none; }
.project__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.project { position: relative; }
.project__meta { font-size: var(--t-sm); color: var(--c-ink-3); margin-top: .35rem; }
.section-foot { margin-top: var(--s-7); display: flex; justify-content: center; }

/* Archive entries */
.archive { display: grid; gap: var(--s-9); }
.entry { display: grid; gap: var(--s-6); align-items: center; scroll-margin-top: calc(var(--header-h) + 2rem); }
.entry__index { font: var(--w-medium) var(--t-xs)/1 var(--f-mono); color: var(--c-ink-3); letter-spacing: .06em; }
.entry__title { font-size: var(--t-xl); margin-block: var(--s-3) var(--s-4); }
.entry__desc { font-size: var(--t-md); color: var(--c-ink-3); max-width: 32rem; }
.entry__meta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 .65rem; border-radius: var(--r-pill); font-size: var(--t-xs); color: var(--c-ink-2); background: var(--c-surface-2); border: 1px solid var(--c-line); }
.entry .media { border: 1px solid var(--c-line); box-shadow: var(--sh-2); border-radius: var(--r-lg); }

/* Services list */
.services { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.service { display: grid; gap: var(--s-4); align-content: start; }
.service__title { font-size: 1.125rem; letter-spacing: -0.015em; }
.service p { color: var(--c-ink-3); font-size: var(--t-sm); line-height: 1.6; }
.services-note { margin-top: var(--s-6); text-align: center; color: var(--c-ink-3); font-size: var(--t-sm); }

/* Testimonials */
.quotes { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.quote { display: grid; gap: var(--s-5); align-content: space-between; }
.quote blockquote p { font-size: 1.0625rem; line-height: 1.55; color: var(--c-ink-2); letter-spacing: -0.005em; }
.quote figcaption { display: flex; gap: .75rem; align-items: center; }
.quote__name { font-weight: var(--w-semibold); font-size: var(--t-sm); }
.quote__role { font-size: var(--t-xs); color: var(--c-ink-3); }

/* Process */
.steps { display: grid; gap: var(--s-4); grid-template-columns: 1fr; counter-reset: step; }
.step { display: grid; gap: var(--s-3); }
.step h3 { font-size: 1.0625rem; }
.step p { font-size: var(--t-sm); color: var(--c-ink-3); }

/* About */
.about-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.about-portrait .media { border-radius: var(--r-lg); }
.music { display: flex; gap: var(--s-4); align-items: center; text-decoration: none; transition: box-shadow var(--d-base) var(--e-out), transform var(--d-base) var(--e-out), border-color var(--d-fast); }
.music:hover, .music:focus-visible { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--c-line-2); }
.music:active { transform: translateY(0) scale(.99); transition-duration: var(--d-press); }
.music__art { width: 5rem; height: 5rem; border-radius: var(--r-sm); flex: none; }
.music__k { font: var(--w-medium) var(--t-xs)/1.2 var(--f-mono); color: var(--c-ink-3); display: flex; gap: .5rem; align-items: center; }
.music__t { font-weight: var(--w-semibold); font-size: 1.0625rem; margin-top: .2rem; }
.music__a { color: var(--c-ink-3); font-size: var(--t-sm); }
.work-card { display: grid; gap: var(--s-4); }
.work-card .media { border-radius: var(--r-md); }
.kv { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--t-sm); padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.kv dt { color: var(--c-ink-3); } .kv dd { font-weight: var(--w-medium); }
.philosophy { display: grid; gap: var(--s-4); }
.philosophy blockquote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: var(--w-medium); }
.philosophy figcaption { color: var(--c-ink-3); font-size: var(--t-sm); }

/* Profile + support */
.collab { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: start; }
.profile { display: grid; gap: var(--s-5); align-content: start; }
.profile__head { display: flex; gap: var(--s-4); align-items: center; }
.profile__head img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--c-surface-2); }
.profile__name { font-weight: var(--w-semibold); font-size: 1.125rem; }
.profile dl { display: grid; gap: 0; }
.checks { display: grid; gap: .55rem; margin-block: var(--s-5); }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-sm); color: var(--c-ink-2); }
.checks li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; border-radius: 50%; background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* CV */
.cv { max-width: 52rem; margin-inline: auto; }
.cv__bar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-6); }
.cv__bar h2 { font: var(--w-medium) var(--t-xs)/1.2 var(--f-mono); color: var(--c-ink-3); letter-spacing: .06em; text-transform: uppercase; }
.cv__name { font-size: var(--t-xl); }
.cv__role { color: var(--c-ink-2); margin-top: .35rem; }
.cv__status { margin-top: var(--s-3); }
.cv h4 { font: var(--w-medium) var(--t-xs)/1.2 var(--f-mono); color: var(--c-ink-3); letter-spacing: .04em; margin: var(--s-7) 0 var(--s-4); }
.cv__job { display: grid; gap: .3rem; padding-block: var(--s-4); border-top: 1px solid var(--c-line); }
.cv__job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
.cv__job h5 { margin: 0; font-size: 1.0625rem; letter-spacing: -0.015em; }
.cv__when { font: var(--t-sm)/1.4 var(--f-mono); color: var(--c-ink-3); }
.cv__where { font-size: var(--t-sm); color: var(--c-ink-3); }
.cv__job p { color: var(--c-ink-2); font-size: var(--t-sm); }
.comp { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.comp li { padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.comp strong { display: block; font-size: var(--t-sm); }
.comp span { font-size: var(--t-sm); color: var(--c-ink-3); }

/* Contact */
.contact { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.contact__id { display: grid; gap: var(--s-4); align-content: start; }
.contact__id .media { border-radius: var(--r-md); }
.contact__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--t-sm); }
.socials { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.socials a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); border: 1px solid var(--c-line-2); background: var(--c-surface); color: var(--c-ink-2); transition: color var(--d-fast), border-color var(--d-fast), transform var(--d-fast) var(--e-out), box-shadow var(--d-base) var(--e-out); }
.socials a:hover, .socials a:focus-visible { color: var(--c-ink); border-color: rgba(0,0,0,.25); transform: translateY(-2px); box-shadow: var(--sh-2); }
.socials a:active { transform: translateY(0) scale(.96); transition-duration: var(--d-press); }
.socials svg { width: 1.1rem; height: 1.1rem; }
.channels { display: grid; gap: var(--s-3); }
.channels__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.channels__head h3 { font-size: 1.125rem; }
.channel { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-4); align-items: center; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.channel__k { display: flex; gap: .5rem; align-items: baseline; font-weight: var(--w-semibold); }
.channel__v { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--c-ink-2); }
.channel .btn { grid-column: 1 / -1; justify-self: start; }
.contact__fine { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--c-ink-3); }

/* Services page */
.svc-index { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }
.svc-index a { text-decoration: none; }
.svc { display: grid; gap: var(--s-5); padding-block: var(--s-8); border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.svc__body { display: grid; gap: var(--s-4); color: var(--c-ink-2); }
.svc__body p { max-width: var(--w-text); }
.svc__list { display: grid; gap: .5rem; }
.faq { display: grid; gap: var(--s-3); }
.faq details { border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); font-weight: var(--w-semibold); display: flex; justify-content: space-between; gap: var(--s-4); min-height: 3.25rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: var(--w-regular); color: var(--c-ink-3); transition: transform var(--d-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-5) var(--s-5); color: var(--c-ink-2); }

/* Legal pages */
.page-head { padding-top: clamp(3rem, 2rem + 4vw, 6rem); padding-bottom: var(--s-7); text-align: center; display: grid; justify-items: center; gap: var(--s-4); }
.page-head h1 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.page-head p { color: var(--c-ink-3); }
.prose { max-width: var(--w-text); margin-inline: auto; color: var(--c-ink-2); }
.prose h2 { font-size: 1.25rem; color: var(--c-ink); margin: var(--s-7) 0 var(--s-3); }
.prose p, .prose ul { margin-bottom: var(--s-4); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--c-accent); }

.notfound { min-height: 60vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s-5); padding-block: var(--s-9); }
.notfound h1 { font-size: var(--t-2xl); }

/* 8. UTILITIES -------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.muted { color: var(--c-ink-3); }


/* 9. MEDIA QUERIES ---------------------------------------------------- */
@media (min-width: 640px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .comp { grid-template-columns: repeat(3, 1fr); }
  .comp--2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .channel { grid-template-columns: 1fr auto; }
  .channel .btn { grid-column: auto; justify-self: end; grid-row: 1 / span 2; grid-column-start: 2; }
}
@media (min-width: 900px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .projects { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .entry { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); }
  .entry:nth-child(even) .entry__media { order: 2; }
  .about-grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto auto; }
  .about-portrait { grid-row: 1 / span 3; }
  .collab { grid-template-columns: 1fr 1.25fr; }
  .contact { grid-template-columns: 0.85fr 1.15fr; }
  .svc { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}


/* 10. MOTION SYSTEM ------------------------------------------------------
   Three tiers, one vocabulary (tokens in :root):
   1 Choreography — the hero portrait (scroll-mapped, main.js) and the
     process track / media depth (also scroll-mapped).
   2 Reveals — one-time, 300–760 ms, typed by role: line (headings), up
     (copy), card (grouped items), quote, media (images), rule (dividers), seal.
   3 Feedback — 110–220 ms hover / press / focus states (sections 4–5 above).
   Hidden starting states apply only under html.motion (set in <head> before
   first paint, never for reduced motion), so nothing flashes. If main.js
   fails to start, a failsafe reveals everything after 2.5 s. */
.motion :is(.section-title, .page-head h1, .entry__title, .footer-cta__title, .svc h2, .notfound h1):not(.rv-split) { opacity: 0; }
.motion :is(.section-head .eyebrow, .section-head .lede, .page-head .eyebrow, .page-head .lede, .page-head > p, .svc-index,
  .services-note, .section-foot, .project > div:not(.media), .entry__index, .entry__desc, .entry__meta, .svc__body,
  .footer-cta .muted, .footer-cta .btn-row, .footer-brand, .footer-col, .channels__head, .notfound .btn-row):not(.is-in) { opacity: 0; transform: translate3d(0, var(--m-2), 0); }
.motion :is(.service, .step, .about-grid > .card, .collab > .card, .cv, .contact > .card, .channel, .comp li, .faq details):not(.is-in) { opacity: 0; transform: translate3d(0, var(--m-3), 0) scale(.985); }
.motion .quote:not(.is-in) { opacity: 0; transform: translate3d(0, 10px, 0); }
.motion :is(.service > h3, .service > p, .service > a, .step > h3, .step > p):not(.is-in) { opacity: 0; transform: translate3d(0, var(--m-1), 0); }
.motion :is(.project .media, .entry .media, .about-portrait .media):not(.is-in) { clip-path: inset(100% 0 0 0 round var(--r-md)); }
.motion :is(.project .media, .entry .media, .about-portrait .media):not(.is-in) > picture { transform: scale(1.14); }
.motion .seal:not(.is-in) { opacity: 0; transform: scale(.82) rotate(-24deg); }

.rv { transition: opacity var(--d-reveal) var(--e-out), transform var(--d-reveal) var(--e-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.rv-quote { transition-duration: 380ms; }
.rv-sub { transition-duration: 420ms; }
.rv-caption { transition-delay: calc(var(--i, 0) * var(--stagger) + 140ms); }   /* captions follow their image */
.rv-card { transition-duration: 640ms; }
.rv-media { transition: clip-path 760ms var(--e-out) calc(var(--i, 0) * var(--stagger)); }
.rv-media:not(.rv-done) > picture { transition: transform 1100ms var(--e-out) calc(var(--i, 0) * var(--stagger)); }
.rv-seal { transition-duration: 760ms; }

/* Headings: each visual line rises out of its mask (words on one line share a
   delay; lines step 70 ms). Major headings also settle from slightly closer
   (scale 1.035 → 1). The text stays real text for screen readers. */
.rv-split .rv-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.rv-split .rv-wi { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 680ms var(--e-out); transition-delay: calc(var(--w, 0) * 70ms + var(--i, 0) * var(--stagger)); }
.rv-split.is-in .rv-wi { transform: none; }
.rv-major { transform-origin: 50% 100%; transition: transform 900ms var(--e-out) calc(var(--i, 0) * var(--stagger)); }
.rv-major:not(.is-in) { transform: scale(1.035); }

/* First-load entrance (home hero). Starting states exist before first paint so
   nothing flashes; main.js animates from them and adds .intro-done. */
.hero__title .lm { display: inline-block; }
.is-3d .hero__title .lm { display: block; transform-origin: 0 100%; }
.is-3d .hero[data-mode="stack"] .hero__title .lm { transform-origin: 50% 100%; }
.motion.is-3d:not(.intro-done) .hero__title .lm { clip-path: inset(0 0 100% 0); transform: translate3d(0, 100%, 0); }
.motion.is-3d:not(.intro-done) :is(.hero__a .status, .hero__lede, .hero__ctas) { opacity: 0; }
.motion.is-3d:not(.intro-done) .hero:not(.intro-live) .pstage { visibility: hidden; }
.motion.is-3d:not(.intro-done) .site-header__inner > * { opacity: 0; }
.motion.is-3d:not(.rv-live) :is(.hero__title .lm, .hero__a .status, .hero__lede, .hero__ctas, .site-header__inner > *) { animation: rv-failsafe 1ms 2.5s forwards; }
.motion.is-3d:not(.rv-live) .pstage { animation: intro-failsafe 1ms 2.5s forwards; }
@keyframes intro-failsafe { to { visibility: visible; } }

/* Dividers draw from the left instead of appearing */
.motion .rv-rule { border-top-color: transparent !important; position: relative; }
.motion .rv-rule::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--c-line-2); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--e-out) calc(var(--i, 0) * var(--stagger)); }
.motion .rv-rule.is-in::before { transform: none; }

/* Scroll-linked media depth: the image drifts inside its frame (written by JS) */
.motion .rv-depth img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }

/* Process: a track that fills with scroll; steps light up as it passes them */
.steps__track { position: relative; height: 1px; margin-bottom: var(--s-5); background: var(--c-line); overflow: hidden; }
.steps__track > span { position: absolute; inset: 0; background: var(--c-ink); transform: scaleX(0); transform-origin: left; }
.motion .steps.has-track .icon-tile { transition: background var(--d-slow) var(--e-out), color var(--d-slow), box-shadow var(--d-slow), transform var(--d-slow) var(--e-out); }
.motion .steps.has-track .step:not(.is-lit) .icon-tile { background: var(--c-surface-2); color: var(--c-ink-3); box-shadow: inset 0 0 0 1px var(--c-line-2); transform: scale(.94); }

/* Feedback on non-link cards: border sharpens, icon tile responds — no lift (they aren't clickable) */
.service, .step, .channel, .comp li { transition-property: opacity, transform, border-color, box-shadow; }
.service:hover, .step:hover, .channel:hover, .comp li:hover { border-color: var(--c-line-2); }
.channel:focus-within { border-color: var(--c-line-2); box-shadow: var(--sh-1); }
.faq summary { border-radius: var(--r-md); transition: background-color var(--d-fast); }
.faq summary:hover { background: var(--c-surface-2); }
.faq summary::after { transition: transform var(--d-base) var(--e-out); }
.motion .faq details[open] > p { animation: faq-in var(--d-slow) var(--e-out); }
@keyframes faq-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
.seal { transition: transform var(--d-slow) var(--e-out); }
.footer-cta:hover .seal { transform: rotate(-8deg); }

/* Failsafe: if the script never starts, show everything */
.motion:not(.rv-live) :is(.section-title, .page-head h1, .entry__title, .footer-cta__title, .svc h2, .notfound h1, .rv, .section-head .eyebrow, .section-head .lede, .page-head .eyebrow, .page-head .lede, .page-head > p, .svc-index, .services-note, .section-foot, .project > div:not(.media), .entry__index, .entry__desc, .entry__meta, .svc__body, .footer-cta .muted, .footer-cta .btn-row, .footer-brand, .footer-col, .channels__head, .notfound .btn-row, .service, .step, .about-grid > .card, .collab > .card, .cv, .contact > .card, .channel, .comp li, .faq details, .quote, .seal, .service > h3, .service > p, .service > a, .step > h3, .step > p) { animation: rv-failsafe 1ms 2.5s forwards; }
.motion:not(.rv-live) :is(.project .media, .entry .media, .about-portrait .media) { animation: rv-failsafe 1ms 2.5s forwards; }
@keyframes rv-failsafe { to { opacity: 1; transform: none; clip-path: none; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .music, .socials a, .project .media, .project .media > picture { transform: none !important; }
}

/* Print: only the CV prints from /about/ (Print button), clean everywhere else */
@media print {
  .motion *, .motion *::before { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  @page { margin: 16mm; }
  body { font-size: 11pt; color: #000; }
  .site-header, .site-footer, .skip-link, .btn, .no-print { display: none !important; }
  body.print-cv main > *:not(#cv) { display: none !important; }
  body.print-cv #cv { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  a { text-decoration: none; }
}

/* ============================================================================
   Assam service-area section (/as/). Reuses the hero, cards, steps, services,
   faq and project components; only layout glue lives here.
   ========================================================================== */
/* Hero: greeting line sits above the H1 (outside it), styled like the home l1. */
.hero__hello { margin: 0; color: var(--c-ink-3); font-weight: var(--w-regular); letter-spacing: -0.02em; line-height: 1.1;
  font-size: calc(var(--t-2xl) * .56); }
.hero__hello .lm { display: inline-block; }
.is-3d .hero__hello { font-size: calc(clamp(2rem, calc(var(--colw, 22rem) * .15), 4.25rem) * .5); }
.is-3d .hero[data-mode="stack"] .hero__hello { font-size: calc(clamp(2rem, 7.4vw, 3.25rem) * .5); }
.is-3d .hero__hello .lm { display: block; transform-origin: 0 100%; }
.is-3d .hero[data-mode="stack"] .hero__hello .lm { transform-origin: 50% 100%; }
.hero__title--loc .l1 { color: var(--c-ink); font-weight: var(--w-medium); font-size: .5em; letter-spacing: -0.02em; margin-bottom: .14em; }
.hero__title--loc .l2 .lm { overflow-wrap: anywhere; }
.hero__title--long .l2 { font-size: .84em; }
.motion.is-3d:not(.intro-done) .hero__hello .lm { clip-path: inset(0 0 100% 0); transform: translate3d(0, 100%, 0); }
.motion.is-3d:not(.rv-live) .hero__hello .lm { animation: rv-failsafe 1ms 2.5s forwards; }

/* Breadcrumbs */
.crumbs { padding-top: var(--s-5); font-size: var(--t-sm); color: var(--c-ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--c-ink-3); }
.crumbs a { color: var(--c-ink-2); text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Local context + illustrative examples */
.loc-local { display: grid; gap: var(--s-6); align-items: start; }
.loc-local__text p { max-width: 42rem; color: var(--c-ink-2); }
.loc-local__text p + p { margin-top: var(--s-4); }
.loc-sources { font-size: var(--t-sm); color: var(--c-ink-3) !important; margin-top: var(--s-5) !important; }
.loc-sources a { color: inherit; }
.loc-examples h3 { font-size: var(--t-lg); }
.loc-examples .muted { font-size: var(--t-sm); margin: .35rem 0 var(--s-4); }
@media (min-width: 900px) { .loc-local { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

/* Coverage */
.loc-cov { display: grid; gap: var(--s-5); }
.loc-cov h3 { font-size: var(--t-md); margin-bottom: var(--s-3); }
.loc-cov h3 + * { margin-top: 0; }
.loc-cov .loc-tags + h3, .loc-cov .loc-note + h3 { margin-top: var(--s-5); }
@media (min-width: 900px) { .loc-cov { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.loc-tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.loc-tags li { font-size: var(--t-sm); padding: .3rem .7rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); }
.loc-tags a { color: var(--c-ink); }
.loc-tags--quiet li { color: var(--c-ink-3); background: transparent; }
.loc-note { font-size: var(--t-sm); margin-top: var(--s-4); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.link-list a { color: var(--c-ink); }

/* Work: two design studies */
@media (min-width: 640px) { .loc-work { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; margin-inline: auto; } }
.loc-work + .section-foot { gap: var(--s-3); flex-wrap: wrap; }

/* Contact */
.loc-contact__card { display: grid; gap: var(--s-5); align-items: center; }
.loc-contact__card .section-title { font-size: var(--t-xl); }
.loc-contact__card .lede { margin-top: .4rem; }
@media (min-width: 900px) { .loc-contact__card { grid-template-columns: 1fr auto; } }

/* Directory */
.dir-intro { max-width: 46rem; margin-bottom: var(--s-6); }
.dir-group + .dir-group { margin-top: var(--s-8); }
.dir-group__title { font-size: var(--t-xl); letter-spacing: -0.02em; margin-bottom: var(--s-4); }
.dir-grid { display: grid; gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir-card { display: grid; gap: var(--s-3); align-content: start; }
.dir-card h3 { font-size: var(--t-lg); }
.dir-hq { font-size: var(--t-sm); margin-top: -.35rem; }
.dir-card > .muted:not(.dir-hq) { font-size: var(--t-sm); }

/* Drafts are never deployed; this banner only appears in drafts/ */
.draft-banner { position: sticky; top: 0; z-index: 99; margin: 0; padding: .5rem 1rem; text-align: center; background: #8a1c1c; color: #fff; font-size: var(--t-sm); }
