/* jibinjohnson.in — light design system
   Palette: white, tint, ink, muted, sage accent (see :root)
   Type: two families only. Instrument Serif (--display: H1, H2, statement lines, FAQ questions, large numbers; OFL) and
   Switzer (--font: everything else, ITF Free Font License). Sizes, weights, line-heights and tracking come only from the
   type tokens in :root (--fs-*, --fw-*, --lh-*, --ls-*). The font files are used exactly as downloaded: never subset,
   rename or modify them. */

@font-face{font-family:"Switzer";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/Switzer-Variable.woff2") format("woff2")}
@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/InstrumentSerif-Regular.woff2") format("woff2")}
@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/InstrumentSerif-Italic.woff2") format("woff2")}
/* metric-matched local fallbacks so text doesn't shift when the web fonts swap in */
@font-face{font-family:"Switzer Fallback";font-weight:100 500;src:local("Arial"),local("ArialMT");size-adjust:97.8%;ascent-override:100.2%;descent-override:25.56%;line-gap-override:9.2%}
@font-face{font-family:"Switzer Fallback";font-weight:600 900;src:local("Arial Bold"),local("Arial-BoldMT");size-adjust:97.8%;ascent-override:100.2%;descent-override:25.56%;line-gap-override:9.2%}
@font-face{font-family:"Instrument Serif Fallback";font-style:normal;font-weight:400;src:local("Times New Roman"),local("TimesNewRomanPSMT");size-adjust:82.61%;ascent-override:119.84%;descent-override:37.53%;line-gap-override:0%}
@font-face{font-family:"Instrument Serif Fallback";font-style:italic;font-weight:400;src:local("Times New Roman Italic"),local("TimesNewRomanPS-ItalicMT");size-adjust:86.88%;ascent-override:113.95%;descent-override:35.68%;line-gap-override:0%}

:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --tint:#EAF0EA;   /* page, alternate bands + cards, tints and selection */
  --ink:#0B0E14; --muted:#5B606B; --line:rgba(11,14,20,.10);
  --accent:#56685A;            /* deep sage: accent text of any size, numbers, icons, decoration (5.96:1 on white, 5.15:1 on --tint) */
  --accent-btn:#637665;        /* sage: buttons, links and small accent text; white text on it 4.87:1 */
  --accent-btn-hover:#4F6051;   /* white on it 6.72:1 */
  --accent-on-dark:#93AE96;    /* accent text on the dark band and footer (8.1:1 on --ink) */
  --glow:#A9C4AB;              /* icon glow and light effects */
  --grad:linear-gradient(95deg,#637665 0%,#56685A 55%,#47574A 100%);   /* accent text gradient: 4.87:1 or better on white */
  --glass-dark:rgba(36,46,38,.62);   /* smoked sage glass: icon tiles, cards on the dark band */
  --card-tint:#F7FAF7; --card-line:#E0E8E0; --card-line-hover:#B4C5B6;   /* service icon cards */
  --line-strong:rgba(11,14,20,.22);   /* ink at 22%: hover borders */
  /* ---- typography system (see CLAUDE.md "Typography system") ---- */
  --font:"Switzer","Switzer Fallback",sans-serif;   /* body, UI, H3 and every card title, labels */
  --display:"Instrument Serif","Instrument Serif Fallback",serif;   /* H1, H2, statements, FAQ questions, large numbers */
  /* size scale, about 1.25 between steps from 17px up (the small UI steps are closer together) */
  --fs-2xs:.75rem;     /* 12px: pills, counters, chips inside the home service cards */
  --fs-xs:.8125rem;    /* 13px: uppercase labels, tags and chips, legal line */
  --fs-sm:.9375rem;    /* 15px: card text, buttons, nav, secondary text */
  --fs-base:1.0625rem; /* 17px: body */
  --fs-lede:clamp(1.0625rem,1rem + .3vw,1.25rem);      /* 17 -> 20px: intro paragraphs */
  --fs-md:1.25rem;     /* 20px: H3 and card titles */
  --fs-lg:clamp(1.1875rem,1rem + .75vw,1.5625rem);     /* 19 -> 25px: FAQ questions, lead paragraphs */
  --fs-xl:clamp(1.5rem,1rem + 1.05vw,2rem);            /* 24 -> 32px: large H3s, service one-liners */
  --fs-2xl:clamp(1.75rem,1.3rem + 1.4vw,2.5rem);       /* 28 -> 40px: project titles, menu links */
  --fs-h2:clamp(2rem,1.3rem + 2.15vw,3.25rem);         /* 32 -> 52px */
  --fs-h1:clamp(2.25rem,.75rem + 3.45vw,4rem);         /* 36 -> 64px: inner-page H1 */
  --fs-display:clamp(3rem,5.1vw,4.875rem);             /* 48 -> 78px: home H1 and the statement line */
  --fs-giant:calc(min(75rem,100vw - 2 * var(--gut)) * .285);  /* the home Work H2 "Projects" (~3.44em wide): spans ~98% of the content width (91 -> 342px) */
  --fw-regular:400; --fw-medium:500; --fw-semibold:600;
  --fw-brand:800;      /* the "Jibin" wordmark only (logo and footer name) */
  --lh-display:1; --lh-heading:1.1; --lh-title:1.25; --lh-snug:1.5; --lh-body:1.65;
  --ls-display:-.015em; --ls-h1:-.01em; --ls-h2:-.005em; --ls-title:-.02em; --ls-lead:-.01em;
  --ls-label:.12em;    /* small uppercase labels, pills and counters */
  --wrap:1200px;
  --gut:clamp(1.25rem,4vw,2.5rem);
  --sec:clamp(4rem,2rem + 6vw,7.5rem);
  --head:84px;   /* header height (68px at 900px and below) */
  --r:16px;
  --ease:cubic-bezier(.2,.7,.1,1);
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:5.5rem}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--fw-regular) var(--fs-base)/var(--lh-body) var(--font);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,ul,ol,dl,dd{margin:0}
b,strong{font-weight:var(--fw-semibold)}
ul,ol{padding:0;list-style:none}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent-btn);outline-offset:3px;border-radius:6px}
::selection{background:var(--tint);color:var(--ink)}
.skip{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--ink);color:var(--bg);padding:.6rem 1rem;border-radius:8px}
.skip:focus{top:1rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wrap{width:100%;max-width:calc(var(--wrap) + 2*var(--gut));margin-inline:auto;padding-inline:var(--gut)}
.sec{padding-block:var(--sec)}
.alt{background:var(--surface)}
.sec.join{padding-top:0}   /* continues the previous section as one band */
/* --bg and --surface are both white, so two white sections in a row read as one gap: the second one's top padding is
   cut to 30% of --sec (gap about 1.3x --sec: ~153px desktop, ~83px phones, was 2x). The dark band and the dark contact
   panel + footer keep full padding: there the colour change is the boundary. After an inner-page hero: 40%. */
.sec:not(.dark)+.sec:not(.dark):not(.join){padding-top:calc(var(--sec) * .3)}
.hero.sub+.sec{padding-top:calc(var(--sec) * .4)}
/* dark band (home "why") and the contact panel + footer on every page: ink background, white text.
   Accent text on dark uses --accent-on-dark (set as --accent there); links and small text are white; buttons keep --accent-btn with white text. */
.dark,.end{--accent:var(--accent-on-dark);background:var(--ink);color:var(--bg);--muted:rgba(255,255,255,.72);--line:rgba(255,255,255,.12);--line-strong:rgba(255,255,255,.28)}
.dark :focus-visible,.end :focus-visible{outline-color:var(--bg)}

/* ---------- type ---------- */
/* display serif: H1, H2 and the statement line (Instrument Serif has one weight: always 400) */
h1,h2,.shout{font-family:var(--display);font-weight:var(--fw-regular);text-wrap:balance}
/* scale: home H1 (and the statement line) is the largest; inner-page H1 smaller; the privacy/404 H1 (.plain) smaller
   again; H2 below. Instrument Serif is narrow with a small x-height, so sizes run large and tracking stays near zero. */
h1{font-size:var(--fs-h1);letter-spacing:var(--ls-h1);line-height:var(--lh-display)}
h2{font-size:var(--fs-h2);letter-spacing:var(--ls-h2);line-height:var(--lh-heading)}
.hero:not(.sub) h1,.shout{font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:var(--ls-display)}
/* accent phrases in Instrument Serif Italic with the accent gradient: the H1 accent line ("websites that rank."), the
   H2 .it phrases and the statement's last word. Right padding keeps the italic overhang inside clipped lines. */
h1 .it>span,h2 .it{font-style:italic;padding-right:.08em}
.shout .hl,h1 .it>span,h2 .it{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.shout-band{padding-bottom:clamp(2rem,1rem + 3vw,3.5rem)}
/* H3 and every card title: Switzer semibold, one size. .card-title gives the same style to a title that is not an H3. */
h3,.card-title{font-family:var(--font);font-size:var(--fs-md);font-weight:var(--fw-semibold);letter-spacing:var(--ls-title);line-height:var(--lh-title)}
/* card descriptions: one size and colour for every card (.card-text for new cards) */
.card-text,.svc p,.pcard p,.steps p,.incl p,.proof p,.ind p,.why p,.svc-card p,.pt-txt p{font-size:var(--fs-sm);color:var(--muted)}
/* small uppercase labels: section labels, footer and tool-group headings, process step names (.label for new ones) */
.label,.eyebrow,.foot h3,.tg-card h3,.pt-txt h3,.svc-get{font-family:var(--font);font-size:var(--fs-xs);font-weight:var(--fw-semibold);letter-spacing:var(--ls-label);line-height:var(--lh-title);text-transform:uppercase}
.lede{font-size:var(--fs-lede);color:var(--muted);max-width:36em}
.note{font-size:var(--fs-sm);color:var(--muted)}
.tag{display:inline-block;font-size:var(--fs-xs);font-weight:var(--fw-medium);line-height:var(--lh-snug);padding:.2rem .7rem;border-radius:99px;background:var(--bg);color:var(--muted);border:1px solid var(--line);white-space:nowrap}
.link{color:var(--accent-btn);font-weight:var(--fw-semibold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.link:hover{text-decoration-thickness:2px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.875rem;padding:.7rem 1.3rem;border-radius:99px;border:1px solid transparent;font-weight:var(--fw-semibold);font-size:var(--fs-sm);line-height:var(--lh-title);cursor:pointer;transition:background-color .2s,border-color .2s}
.btn svg{width:1.05em;height:1.05em;flex:none}
.btn-fill{background:var(--accent-btn);color:var(--surface)}
.btn-fill:hover{background:var(--accent-btn-hover)}
.btn-line{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn-line:hover{background:var(--bg);border-color:var(--line-strong)}
.btn .arrow{transition:transform .35s var(--ease)}
.btn:hover .arrow{transform:translateX(3px)}
.head .btn:hover .arrow{transform:translate(2px,-2px)}
.cta-row{display:flex;flex-wrap:wrap;gap:.75rem}

/* ---------- header ---------- */
/* glass header: transparent at the top of the page, frosted once the page scrolls (main.js adds .scrolled; frosted without JS) */
/* in the page flow: visible at the top of the page and scrolled away with it (not sticky or fixed). position:relative only
   keeps it painted above the home hero, which slides up under it (margin-top: -var(--head)). */
.head{position:relative;z-index:50;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);box-shadow:0 1px 0 var(--line);transition:background-color .4s var(--ease),box-shadow .4s var(--ease),backdrop-filter .4s}
.js .head:not(.scrolled){background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.head-in{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:var(--head);max-width:calc(var(--wrap) + 2*var(--gut));margin-inline:auto;padding-inline:var(--gut)}
.brand{font-weight:var(--fw-brand);font-size:1.625rem;letter-spacing:-.03em;line-height:1}   /* the wordmark: drawn type, outside the scale */
.nav{display:flex;gap:clamp(1.25rem,2.6vw,2.25rem);font-size:var(--fs-sm);font-weight:var(--fw-medium)}
.nav a{position:relative;color:var(--ink)}
.nav a::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;border-radius:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.nav a:hover::after,.nav a[aria-current]::after{transform:scaleX(1)}
.nav a[aria-current]{color:var(--accent-btn)}
.head .btn{min-height:2.875rem;padding:0 1.25rem;box-shadow:0 10px 30px -10px rgba(99,118,101,.6),inset 0 1px 0 rgba(255,255,255,.25)}
.burger{display:none;width:2.75rem;height:2.75rem;border-radius:99px;border:1px solid var(--line);background:rgba(255,255,255,.55);cursor:pointer;position:relative}
.burger::before,.burger::after{content:"";position:absolute;left:30%;right:30%;height:1.5px;background:var(--ink);transition:transform .25s var(--ease)}
.burger::before{top:42%}.burger::after{top:56%}
.menu-open{overflow:hidden}
.menu-open .burger::before{transform:translateY(3px) rotate(45deg)}
.menu-open .burger::after{transform:translateY(-3px) rotate(-45deg)}
.sheet{position:fixed;inset:var(--head) 0 0;z-index:49;background:var(--bg);display:flex;flex-direction:column;padding:1rem var(--gut) 2rem;visibility:hidden;opacity:0;transition:opacity .2s,visibility 0s .2s}
.menu-open .sheet{visibility:visible;opacity:1;transition:opacity .2s}
.sheet a{font-size:var(--fs-2xl);font-weight:var(--fw-semibold);letter-spacing:var(--ls-title);padding:.75rem 0;border-bottom:1px solid var(--line)}
.sheet a[aria-current]{color:var(--accent-btn)}

/* ---------- hero ---------- */
.hero{padding:clamp(3rem,1.5rem + 4.5vw,6rem) 0 clamp(3rem,2rem + 3vw,4.5rem)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
h1 .ln{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
h1 .ln>span{display:block}
/* H1s do not animate: Chrome records a sliding heading as painted only when the slide ends, which held LCP back
   ~0.8s. The hero's intro, buttons, portrait and cards still load in around it. */
.hero-sub{margin-top:1.5rem}
.hero-sub .lede{max-width:34em}
.hero-sub .cta-row{margin-top:2rem}
/* ---------- home hero: centred headline over a portrait ringed by orbiting glass cards ----------
   The portrait and the cards share one 3D scene (built by hero.js). On scroll the hero pins and the camera pushes
   into the face: the cards fly past, the portrait flies into the About frame and the About screen arrives (hero.js, GSAP).
   Every scroll state is set in JS, so without JS or with reduced motion everything shows statically. */
.hero.glass{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;margin-top:calc(-1 * var(--head));padding:0;background:var(--bg)}
.hero-copy{position:relative;z-index:40;flex:none;padding:calc(var(--head) + clamp(.25rem,1.5vh,1.25rem)) var(--gut) 0;text-align:center}
.hero.glass h1{max-width:var(--wrap);margin:clamp(.625rem,1.6vh,1.125rem) auto clamp(.5rem,1.4vh,1rem)}
.hero.glass .lede{max-width:46em;margin-inline:auto;color:var(--ink);font-weight:var(--fw-semibold);text-wrap:balance}   /* one short line */
.hero.glass .cta-row{justify-content:center;gap:.875rem;margin-top:clamp(.875rem,2vh,1.5rem)}
.hero.glass .btn{min-height:3.375rem;padding:0 1.625rem;font-size:var(--fs-base);gap:.625rem;transition:background-color .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease)}
.hero.glass .btn svg{width:18px;height:18px}
.hero.glass .btn-fill{box-shadow:0 10px 30px -10px rgba(99,118,101,.6),inset 0 1px 0 rgba(255,255,255,.25)}
.hero.glass .btn:hover{transform:translateY(-2px)}
.hero.glass .btn-line{background:rgba(255,255,255,.55);border-color:var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 8px 24px -14px rgba(30,45,33,.35)}
.hero.glass .btn-line:hover{background:var(--surface)}
/* portrait stage: fills the rest of the screen under the buttons; the portrait never moves, only the cards do */
.hero-stage{position:relative;z-index:10;flex:1 0 auto;min-height:clamp(18rem,40vh,26rem);margin-top:clamp(.25rem,1.2vh,1rem)}
.hero-portrait{position:absolute;bottom:-12%;left:50%;aspect-ratio:1;height:min(112%,140vw);transform:translateX(-53%)}
.hero-img{position:relative;z-index:20;width:100%;height:100%;object-fit:contain;object-position:bottom;user-select:none;-webkit-user-select:none}
/* glass stats panel, over the foot of the portrait */
/* load-in, by CSS from the first paint, in step with the H1 lines */
.js .hero.glass .lede,.js .hero.glass .cta-row{animation:hero-in .9s var(--ease) .3s backwards}
.js .hero.glass .cta-row{animation-delay:.4s}
@keyframes hero-in{from{opacity:0;transform:translateY(18px)}}
/* the portrait (the LCP image) fades in by CSS from the first paint, not after a script runs: waiting for the
   script held the largest paint back until every deferred file had run */
.js .hero-portrait{animation:portrait-in 1.1s var(--ease) .2s backwards}
@keyframes portrait-in{from{opacity:0}}
/* signature preloader (home page): index.html puts .is-signing on <html> before the first paint (with JS, without
   reduced motion); sign.js draws the signature, then adds .out and fades the cover. Scrolling is locked meanwhile;
   the reserved scrollbar gutter keeps the page width the same when the scrollbar comes back (no layout shift).
   The hero intro waits, paused, and plays as the cover fades. The portrait (the LCP image) is not held back. */
.sign{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:var(--bg)}
html:not(.is-signing) .sign:not(.out){display:none}
.sign.out{pointer-events:none}
.sign-svg{display:block;width:min(78vw,36rem);height:auto;aspect-ratio:1164/609;margin-top:-4vh;overflow:visible}
.sign-fill{fill:var(--ink)}
.is-signing{overflow:hidden;scrollbar-gutter:stable}
.is-signing .hero.glass .lede,.is-signing .hero.glass .cta-row{animation-play-state:paused}

/* orbiting glass cards (hero.js builds them). Nothing on .orbit, .orbit-scene or .orbit-ring may set opacity, filter or overflow:
   any of those flattens the 3D scene. The portrait is a plane at z = 0, so it hides cards passing behind the head. */
.orbit{position:absolute;inset:0}
.orbit-scene{position:absolute;inset:0;transform-style:preserve-3d}
.orbit-subject{position:absolute;inset:0;transform:translateZ(0)}
.orbit-ring{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transform-style:preserve-3d;will-change:transform}
.orbit-slot,.orbit-curve,.orbit-hinge{position:absolute;transform-style:preserve-3d}
.orbit-curve{top:0;width:0;height:100%}
.orbit-hinge{top:0}
.orbit-face{position:absolute;opacity:0}
.orbit-clip{position:absolute}
.op{position:relative;width:100%;height:100%;border-radius:16px;overflow:hidden;text-align:left}
.op-glass,.op-card{border:1.5px solid rgba(255,255,255,.75);background:linear-gradient(140deg,rgba(255,255,255,.82),rgba(234,240,234,.55) 55%,rgba(255,255,255,.7));box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(11,14,20,.06),0 6px 14px -8px rgba(11,14,20,.28)}
.op-card{display:flex;align-items:center;gap:12px;padding:0 14px}
.op-sheen{position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,rgba(255,255,255,.7) 0%,rgba(255,255,255,0) 38%,rgba(255,255,255,.2) 60%,rgba(255,255,255,0) 74%)}
.op-ic{position:relative;display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--grad);color:var(--surface);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 12px -6px rgba(99,118,101,.6)}
.op-ic svg{width:18px;height:18px}
.op-txt{position:relative;display:flex;flex-direction:column;min-width:0;line-height:var(--lh-title)}
.op-t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:14.5px;font-weight:var(--fw-semibold);letter-spacing:var(--ls-title);color:var(--ink)}   /* px: the ring is decorative (aria-hidden) and laid out in px by hero.js */
.op-c{margin-top:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;color:var(--muted)}
.op-compact{gap:8px;padding:0 10px}
.op-compact .op-ic{width:24px;height:24px}
.op-compact .op-ic svg{width:14px;height:14px}
.op-compact .op-t{font-size:10.5px}
.op-compact .op-c{font-size:8.5px}
.op-img{border:1.5px solid rgba(255,255,255,.85);background:var(--ink);box-shadow:0 6px 14px -8px rgba(11,14,20,.35)}
.op-img img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.op-gloss{position:absolute;inset:0;background:linear-gradient(125deg,rgba(255,255,255,.35),rgba(255,255,255,0) 40%)}


/* ---------- section heads ---------- */
.sec-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem 4rem;align-items:end;margin-bottom:clamp(2.5rem,2rem + 2vw,3.5rem)}

/* ---------- cards ---------- */
.svc a,.why li,.pcard,.ind li,.steps li,.incl li,.proof li,.proj{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);transition:transform .25s var(--ease),border-color .25s}
.svc a:hover,.why li:hover,.pcard:hover,.ind li:hover,.steps li:hover,.incl li:hover,.proof li:hover,.proj:hover{transform:translateY(-4px);border-color:var(--line-strong)}

/* about (home): editorial three-column composition. Left: label and "Hey," heading on top, the intro at the foot;
   centre: a tall portrait (the focal point); right: the approach paragraph and a quiet "Explore My Work" link */
.ed{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"head photo side" "intro photo side";gap:2.5rem clamp(2rem,1rem + 3vw,4.5rem)}
.ed-head{grid-area:head;align-self:start}
.ed h2{line-height:var(--lh-display)}
/* "Hey,": larger than the H2 around it, always below the home H1 */
.ed-hey{display:block;margin-bottom:.06em;font-size:min(calc(var(--fs-h2) * 1.3),calc(var(--fs-display) * .92));letter-spacing:var(--ls-display);line-height:var(--lh-display)}
.ed-photo{grid-area:photo;margin:0}
.ed-frame{aspect-ratio:5/7;max-height:calc(100svh - var(--head) - 3rem);margin-inline:auto;border-radius:20px;overflow:hidden;background:radial-gradient(120% 90% at 70% 15%,var(--surface) 0%,var(--tint) 75%);border:1px solid rgba(99,118,101,.18);box-shadow:0 40px 80px -48px rgba(36,46,38,.45)}
.ed-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;filter:grayscale(1)}
/* hero → About image flip (hero.js): one fixed two-sided card carries the portrait from the zoom into the About frame,
   turning on its vertical axis with perspective; the hero cut-out is the front, the About photo in its frame the back,
   so the image changes at the edge-on moment (90°). The frame's own photo shows only once the card has landed. */
.travel{position:fixed;left:0;top:0;z-index:30;pointer-events:none;visibility:hidden;transform-style:preserve-3d;will-change:transform}
.t-face{position:absolute;inset:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.t-face img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.t-front img{object-position:50% 100%}
.t-back{transform:rotateY(180deg);border-radius:20px;overflow:hidden;background:radial-gradient(120% 90% at 70% 15%,var(--surface) 0%,var(--tint) 75%);border:1px solid rgba(99,118,101,.18);box-shadow:0 40px 80px -48px rgba(36,46,38,.45)}
.t-back img{object-position:50% 20%;filter:grayscale(1)}
/* the two About paragraphs share one style: body size, regular weight, body line-height, muted, 24em wide (full width from 680px) */
.ed-intro,.ed-desc{max-width:24em;font-size:var(--fs-base);font-weight:var(--fw-regular);line-height:var(--lh-body);color:var(--muted)}
.ed-intro{grid-area:intro;align-self:end}
.ed-side{grid-area:side;align-self:center;max-width:24em;justify-self:end}
.ed-cta{display:inline-flex;align-items:center;gap:.6rem;margin-top:2rem;padding-bottom:.4rem;border-bottom:1px solid var(--line-strong);font-weight:var(--fw-semibold);color:var(--ink);text-decoration:none;transition:border-color .3s var(--ease),color .3s var(--ease)}
.ed-cta svg{width:1rem;height:1rem;color:var(--accent-btn);transition:transform .3s var(--ease)}
.ed-cta:hover{color:var(--accent);border-color:var(--accent-btn)}
.ed-cta:hover svg{transform:translate(2px,-2px)}
.statement{font-size:var(--fs-lg);line-height:var(--lh-snug);font-weight:var(--fw-medium);letter-spacing:var(--ls-lead)}
.statement+.statement{margin-top:1em}
.more{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.75rem}

/* services */
.svc{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr));gap:1rem}
.svc a{display:flex;flex-direction:column;gap:.6rem;height:100%;padding:1.75rem}
.svc h3{text-wrap:balance}
/* service cards with a smoked-glass icon (home and Services) */
.svc.icons{gap:1.25rem}
.svc.icons a{gap:0;padding:30px;border-radius:24px;background:linear-gradient(180deg,var(--card-tint),var(--surface));border-color:var(--card-line);transition:transform .45s var(--ease),box-shadow .45s var(--ease),border-color .45s}
.svc.icons a:hover{transform:translateY(-6px);border-color:var(--card-line-hover);box-shadow:0 30px 60px -30px rgba(99,118,101,.35)}
.ic{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:16px;background:var(--glass-dark);color:var(--glow);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.ic svg{width:26px;height:26px;filter:drop-shadow(0 0 6px rgba(169,196,171,.8))}
.svc.icons h3{margin:22px 0 8px}
.go{display:inline-flex;margin-top:auto;padding-top:.75rem;color:var(--accent-btn)}
.go svg{width:1.25rem;height:1.25rem;transition:transform .25s var(--ease)}
.svc a:hover .go svg{transform:translateX(4px)}

/* work: filter tabs + project grid (home) */
.filters{display:none;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}
.js .filters{display:flex}
.filters button{min-height:2.5rem;padding:.4rem 1.1rem;border-radius:99px;border:1px solid var(--line);background:var(--bg);font-weight:var(--fw-semibold);font-size:var(--fs-sm);cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.filters button:hover{border-color:var(--line-strong)}
.filters button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.pgrid,.filter-scope{transition:opacity .16s}   /* the filter tabs fade whichever holds the filtered items */
.fading{opacity:0}
.pcard{display:flex;flex-direction:column;overflow:hidden}
.pcard[hidden]{display:none}
.pcard img{width:100%;height:auto;border-bottom:1px solid var(--line)}
.pcard-body{display:flex;flex-direction:column;flex:1;gap:.6rem;padding:1.5rem}
.pcard .link{margin-top:auto;align-self:flex-start}
/* Projects page: the "Read the full project" link covers its whole card */
.pcard:has(.more-link){position:relative}
.more-link{font-size:var(--fs-sm)}
.more-link::after{content:"";position:absolute;inset:0}
.case-meta{display:flex;flex-wrap:wrap;gap:.4rem}
.proj dl{display:grid;grid-template-columns:5.5rem 1fr;gap:.5rem 1rem;font-size:var(--fs-sm)}
.proj dt{color:var(--muted);font-weight:var(--fw-semibold)}
.work-more{margin-top:2.5rem;display:flex;justify-content:center}

/* why (dark band on home) */
/* dark smoked glass cards, matching the hero cards */
.dark .why li{position:relative;overflow:hidden;background:linear-gradient(150deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,0) 36%),var(--glass-dark);border-color:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(169,196,171,.25),0 30px 60px -30px rgba(0,0,0,.6)}
.dark .why li::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(110% 70% at 0% 100%,rgba(169,196,171,.12),transparent 55%)}
.dark .why li>*{position:relative}
.dark .why li:hover{border-color:rgba(169,196,171,.45)}
.why{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.why li{padding:clamp(1.5rem,3vw,2.25rem)}
.why h3{margin-bottom:.5rem;text-wrap:balance}

/* process: five steps */
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;counter-reset:s}
.steps li{counter-increment:s;display:flex;flex-direction:column;gap:.5rem;padding:1.5rem}
.steps li::before{content:counter(s);margin-bottom:.75rem;font-family:var(--display);font-size:var(--fs-2xl);font-weight:var(--fw-regular);line-height:var(--lh-display);color:var(--accent)}


/* faq (every page): questions in the display serif; the open row is a soft sage card, closed rows plain with a hairline
   between them; a thin plus turns 45° into a cross. main.js animates the height (instant under reduced motion and without JS) */
.faq-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem 4rem;align-items:start}
.faq-grid h2{position:sticky;top:6.5rem}
.faq details{padding-inline:clamp(1rem,.6rem + 1vw,1.5rem);transition:background-color .3s var(--ease),border-color .3s}
.faq details+details{border-top:1px solid var(--line)}
.faq details[open]{border-radius:16px}
.faq details[open],.faq details[open]+details{border-top-color:transparent}
.faq details[open]:not(.is-closing){background:var(--tint)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;padding:1.5rem 0;font-family:var(--display);font-weight:var(--fw-regular);font-size:var(--fs-lg);line-height:var(--lh-title);letter-spacing:var(--ls-h2);color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:1rem;height:1rem;margin-top:calc(.65em - .5rem);color:var(--accent);background:linear-gradient(currentColor,currentColor) 50%/100% 1.5px no-repeat,linear-gradient(currentColor,currentColor) 50%/1.5px 100% no-repeat;transition:transform .35s var(--ease)}
.faq details[open]:not(.is-closing) summary::after{transform:rotate(45deg)}
.faq details p{padding:0 2.5rem 1.5rem 0;color:var(--muted);max-width:60ch}
/* home: a short contact prompt under the FAQ heading (sticky with it on desktop) */
.faq-ask{margin-top:clamp(1.75rem,1.25rem + 1.5vw,2.5rem)}
.faq-ask p{color:var(--muted);margin-bottom:.875rem}
.faq-ask .btn{min-height:2.5rem;padding:.55rem 1.05rem}
@supports (interpolate-size:allow-keywords){:root{interpolate-size:allow-keywords}}

/* ---------- contact panel + footer ---------- */
.end{padding-top:var(--sec)}
.end:has(> .wrap > .foot:first-child){padding-top:0}   /* contact page: footer only */
.contact-grid{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:2.5rem 4rem;align-items:end}
.contact-grid .lede{margin:1rem 0 2rem}
.contact-grid :is(h1,h2)+.cta-row{margin-top:2rem}
.reach{display:grid;gap:.15rem;font-weight:var(--fw-medium)}
.reach span{display:block;margin-top:1rem;font-size:var(--fs-sm);font-weight:var(--fw-regular);color:var(--muted)}
.reach span:first-child{margin-top:0}
.reach a{justify-self:start}
.hero .contact-grid{align-items:start}
.contact-grid .cta-row+.reach{margin-top:2.5rem}
.foot{margin-top:clamp(3rem,var(--sec) * .6,4.5rem);padding-top:clamp(2.5rem,4vw,3.5rem);border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,3.6fr) repeat(4,minmax(0,2fr));gap:2.5rem 2rem;font-size:var(--fs-sm)}
.foot:first-child{margin-top:0;border-top:0}
.foot .brand{font-size:1.75rem;color:var(--bg)}
.foot-role{display:block;margin-top:.4rem;font-weight:var(--fw-medium);color:var(--accent)}
.foot p{max-width:22em;margin-top:1.25rem;color:var(--muted)}
.foot h3{margin-bottom:1.1rem;color:var(--bg)}
.foot li{margin-bottom:.7rem}
.foot li a{color:rgba(255,255,255,.86);transition:color .2s}
.foot li a:hover{color:var(--bg)}
.social{display:flex;gap:.75rem;margin-top:1.75rem}
.social li{margin:0}
.social a{display:grid;place-items:center;width:2.75rem;height:2.75rem;border:1px solid var(--line-strong);border-radius:50%;color:var(--bg);transition:border-color .2s,background-color .2s}
.social a:hover{border-color:var(--bg);background:rgba(255,255,255,.06)}
.social svg{width:1.125rem;height:1.125rem}
.end .link{color:var(--bg)}
.foot li a:hover,.legal a:hover{text-decoration:underline;text-underline-offset:.2em}
.legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1.5rem;margin-top:clamp(2.5rem,5vw,4rem);padding-top:1.75rem;border-top:1px solid var(--line);font-size:var(--fs-xs);color:var(--muted)}
/* the giant name at the foot of every page: decorative, sage glow fading into the dark, cropped by the page bottom */
.foot-mark{overflow:hidden;container-type:inline-size;margin-top:clamp(2.5rem,7vw,6rem);user-select:none;pointer-events:none}
.foot-mark span{display:block;margin-bottom:-.14em;font-size:42cqi;font-weight:var(--fw-brand);letter-spacing:-.04em;line-height:.8;text-align:center;color:transparent;background:linear-gradient(180deg,rgba(169,196,171,.30) 0%,rgba(169,196,171,.12) 55%,rgba(169,196,171,0) 92%);-webkit-background-clip:text;background-clip:text}

/* contact form */
.form{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-content:start;padding:clamp(1.25rem,3vw,2rem);background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.form label{display:grid;gap:.4rem;font-size:var(--fs-sm);font-weight:var(--fw-semibold)}
.form .full{grid-column:1/-1}
.form input,.form select,.form textarea{width:100%;padding:.7rem .85rem;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:var(--fs-base);font-weight:var(--fw-regular);transition:border-color .2s}
.form input:hover,.form select:hover,.form textarea:hover{border-color:var(--line-strong)}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--accent-btn)}
.form textarea{resize:vertical;min-height:7rem}
.form-status{grid-column:1/-1;min-height:1.5em;font-size:var(--fs-sm);color:var(--muted)}
.form-status.ok{color:var(--accent-btn)}

/* ---------- inner pages ---------- */
.hero.sub{padding-bottom:clamp(3rem,2rem + 3vw,4.5rem)}
.hero.sub h1{max-width:18em}
.crumb{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem;font-size:var(--fs-sm);color:var(--muted)}
.crumb a:hover{color:var(--accent-btn)}
.incl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.incl li{padding:1.5rem}
.incl h3{margin-bottom:.4rem}
/* a highlighted item (SEO page: AEO and GEO): the whole row at two and three columns, sage tint, a small "New" label */
.incl li.incl-new{grid-column:1/-1;background:var(--tint);border-color:rgba(86,104,90,.3)}
.incl li.incl-new:hover{border-color:rgba(86,104,90,.5)}
.incl-new p{max-width:46em}
.incl .incl-tag{display:inline-block;margin-bottom:.75rem;padding:.15rem .6rem;border:1px solid rgba(86,104,90,.35);border-radius:99px;background:var(--surface);font-size:var(--fs-2xs);font-weight:var(--fw-semibold);letter-spacing:var(--ls-label);line-height:var(--lh-snug);text-transform:uppercase;color:var(--accent)}
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem 4rem}
.prose p{max-width:38em;color:var(--muted)}
.prose p+p{margin-top:1.1em}
.prose .tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:2rem;max-width:none}
.prose p:first-child{font-size:var(--fs-md);line-height:var(--lh-snug);font-weight:var(--fw-medium);color:var(--ink)}
.proof{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}
.proof li{display:flex;flex-direction:column;gap:.75rem;padding:1.75rem}
.proof .link{margin-top:auto;align-self:flex-start}
.proj{display:block;padding:clamp(1.5rem,3vw,2.5rem)}
.proj+.proj{margin-top:1rem}
.proj[hidden]{display:none}
.pgrid+.proj{margin-top:clamp(2.5rem,1.5rem + 3vw,4rem)}
.proj h2{margin:.75rem 0 1.25rem;font-size:var(--fs-2xl)}
.proj dl{max-width:48rem;margin-bottom:1.5rem}
.ind{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.ind li{padding:1.5rem}
.ind h3{margin-bottom:.5rem;text-wrap:balance}
.ind small{display:block;margin-top:.9rem;font-size:var(--fs-xs);font-weight:var(--fw-semibold);color:var(--accent-btn)}
.about-top h2{margin-bottom:2rem}
.about-top{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:2.5rem 4rem;align-items:start}
.portrait{width:100%;height:auto;border:1px solid var(--line);border-radius:var(--r)}
.bio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem 2rem;margin-top:2.5rem;padding-top:1.75rem;border-top:1px solid var(--line)}
.bio dt{margin-bottom:.25rem;font-size:var(--fs-sm);color:var(--muted)}
.bio dd{font-weight:var(--fw-semibold);overflow-wrap:anywhere}
.bio-links{display:flex;gap:1.5rem;margin-top:2rem}
/* tool chips (home Stack, About toolkit): a 16px monochrome icon from the sprite assets/img/tools.svg: a Simple Icons
   logo (filled) or, for skills and tools without one, a Lucide icon (lu-*, stroked; its own fill="none" wins over the fill here) */
.tk,.chip{display:inline-flex;align-items:center;gap:.45rem}
.tk-i{flex:none;width:16px;height:16px;fill:currentColor}
/* chips fade up in turn when their group enters view (main.js adds .st and each chip's --i; not under reduced motion) */
.js .st .tk,.js .st .chip{opacity:0;transform:translateY(8px);transition:opacity .4s var(--ease),transform .4s var(--ease),background-color .2s,border-color .2s,color .2s;transition-delay:calc(var(--i,0)*40ms),calc(var(--i,0)*40ms),0s,0s,0s}
.js .st.st-in .tk,.js .st.st-in .chip{opacity:1;transform:none}
.plain-page{padding-top:clamp(3rem,1.5rem + 4.5vw,6rem)}
.plain{max-width:46rem}
.plain h1{margin-bottom:1.5rem;font-size:var(--fs-h2)}
.plain h2{margin:2.25rem 0 .75rem;font-size:var(--fs-xl)}
.plain p{margin-bottom:1em;color:var(--muted)}

/* ---------- home page (main.home): editorial section labels, bento services, process timeline ----------
   Scoped to .home: .svc and .steps are shared with the inner pages, which keep their own styles (.faq is styled once, for every page). */
/* numbered section label above each H2 ("01 —— About") */
.eyebrow{display:flex;align-items:center;margin-bottom:1.25rem;color:var(--accent)}
.eyebrow span{display:inline-flex;align-items:center;gap:.75rem;margin-right:.75rem;color:var(--muted);font-variant-numeric:tabular-nums}
.eyebrow span::after{content:"";width:2rem;height:1px;background:var(--line-strong)}
.home .sec-head{margin-bottom:clamp(2.5rem,2rem + 2.5vw,4rem)}
.home .sec-head .lede{justify-self:end;max-width:26em}
.sec-link{justify-self:end}
/* ---------- home Services: editorial studio showcase ----------
   Its own palette, set on #services only (the rest of the site keeps the white/sage system): the band is white like
   About (the .alt --surface background; --sv-bg #F5F4EF is only the window bars), deep charcoal type #20221F, warm
   grey secondary text #5C5F58 (6.4:1 on white), neutral borders #E3E4DE and a muted sage #718477 for non-text
   accents only (4.0:1 on white: arrow fill, focus ring); text accents keep --accent. Type follows the site system: Switzer for labels, cards and buttons; Instrument
   Serif for the H2 and the one-liners. Scoped to .home: About's "What I do" section also has id="services". */
.home #services{--ink:#20221F;--muted:#5C5F58;--line:#E3E4DE;--line-strong:#CFD0C8;--sv-bg:#F5F4EF;--sv-accent:#718477;--accent-btn:var(--sv-accent);--sv-ease:cubic-bezier(.22,1,.36,1);color:var(--ink)}
.home #services.sec{padding-block:var(--sec)}
.home #services+.sec{padding-top:var(--sec)}
.home #services .sec-link{background:transparent;transition:background-color .5s var(--sv-ease),border-color .5s var(--sv-ease),color .5s var(--sv-ease)}
.home #services .sec-link:hover{background:var(--ink);border-color:var(--ink);color:#fff}
/* cards: image (a flat inline SVG illustration in a window frame on a sage tile, 800:447), H3, description, tool chips, then the footer: "01 / 06" and the round arrow link. The arrow is
   the card's only link (aria-label names the service); its ::after stretches over the whole card as the click area. */
.bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1.5rem}
.bento>li{grid-column:span 4}
/* glass: 80% white with a top-left sheen, backdrop blur, the Stack cards' hairline border (the global --line value,
   rgba(11,14,20,.10); #services redefines --line) so the edge shows on the white band, and an inner top highlight; opaque enough that
   the muted text keeps 4.5:1 when a card or a dark photo sits behind it */
.svc-card{position:relative;display:flex;flex-direction:column;height:100%;padding:10px;border:1px solid rgba(11,14,20,.10);border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,0) 45%),rgba(255,255,255,.8);-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 1px 2px rgba(32,34,31,.04),0 12px 32px -18px rgba(32,34,31,.16);transition:transform .7s var(--sv-ease),box-shadow .7s var(--sv-ease),border-color .7s var(--sv-ease)}
.svc-card:hover{transform:translateY(-4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 2px 4px rgba(32,34,31,.04),0 26px 50px -24px rgba(32,34,31,.24)}
.shot{position:relative;display:block;flex:none;aspect-ratio:800/447;overflow:hidden;border-radius:12px;background:var(--tint)}
.shot .win{position:absolute;left:7%;right:7%;top:9%;bottom:0;overflow:hidden;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;background:#fff;box-shadow:0 12px 26px -16px rgba(32,34,31,.28)}
.shot .win::before{content:"";position:absolute;inset:0 0 auto;height:14px;border-bottom:1px solid var(--line);background-color:var(--sv-bg);background-image:radial-gradient(circle,#CFD0C8 2.5px,transparent 3px),radial-gradient(circle,#CFD0C8 2.5px,transparent 3px),radial-gradient(circle,#CFD0C8 2.5px,transparent 3px);background-size:10px 10px;background-repeat:no-repeat;background-position:3px 50%,13px 50%,23px 50%}
.shot svg{position:absolute;left:0;top:14px;display:block;width:100%;height:calc(100% - 14px);transition:transform 1s var(--sv-ease);transform-origin:50% 0}
.svc-card:hover .shot svg{transform:scale(1.03)}
.svc-body{display:flex;flex-direction:column;flex:1 0 auto;padding:16px 8px 4px}
.svc-card h3{color:var(--ink);text-wrap:balance}
.svc-card p{margin-top:.5rem}
.svc-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:.875rem}
.svc-tools li{padding:.25rem .625rem;border:1px solid var(--line);border-radius:99px;background:rgba(245,244,239,.7);font-size:var(--fs-2xs);font-weight:var(--fw-medium);line-height:var(--lh-snug);color:var(--muted);white-space:nowrap}
.svc-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:1rem}
.svc-no{font-size:var(--fs-2xs);font-weight:var(--fw-medium);letter-spacing:var(--ls-label);color:var(--muted);font-variant-numeric:tabular-nums}
.svc-go{display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;border:1px solid var(--line-strong);background:transparent;color:var(--ink);transition:background-color .5s var(--sv-ease),border-color .5s var(--sv-ease),color .5s var(--sv-ease)}
.svc-go::after{content:"";position:absolute;inset:0;border-radius:20px}
.svc-go svg{width:.8125rem;height:.8125rem;stroke-width:1.5;transition:transform .5s var(--sv-ease)}
.svc-card:hover .svc-go{background:var(--sv-accent);border-color:var(--sv-accent);color:#fff}
.svc-card:hover .svc-go svg{transform:translate(1.5px,-1.5px)}
/* services rotation (services-rotate.js adds .svc-rot; without it, or under reduced motion, the grid above stays):
   the section pins for one screen and the cards turn through three places: top right (next), centre (current),
   bottom left (previous). services-rotate.js sets each card's transform, opacity, z-index and height, plus --f
   (1 in the centre, 0 at the sides) and --t (the back-card text: 0 at the sides, fades in over the last 40% of the
   way to the centre, after the card has grown to fit it, so no text is ever cut at a card edge). */
#services.svc-rot{height:100vh;height:100svh;padding-block:clamp(2rem,7vh,4.5rem) clamp(1.25rem,4vh,2.5rem);overflow:clip}
/* the section head becomes a grid item (display:contents). Left column (40%), centred as one group between two equal
   free rows: label + H2, the active service's panel (counter, one-liner, description, checklist), the two buttons.
   Right column (60%): the cards, full height. .svc-stage (panel + cards) is display:contents here.
   Below 900px the section is not one screen: label + H2 scroll past, then .svc-stage (panel above the cards) is what
   pins, at one screen, and the buttons follow the cards; so the panel never squeezes the cards. */
#services.svc-rot>.wrap{position:relative;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);grid-template-rows:minmax(0,1fr) auto auto auto minmax(0,1fr);column-gap:clamp(2rem,4vw,4rem);height:100%}
#services.svc-rot .sec-head,.svc-stage{display:contents}
#services.svc-rot .sec-head>div{grid-column:1;grid-row:2;margin-bottom:clamp(1.25rem,3.5vh,2.25rem)}
#services.svc-rot .bento{position:relative;display:block;grid-column:2;grid-row:1/-1;min-height:0}
#services.svc-rot .svc-info{grid-column:1;grid-row:3}
#services.svc-rot .svc-ctas{grid-column:1;grid-row:4;margin-top:clamp(1.25rem,3.5vh,2.25rem)}
/* the active service's panel: all six panes stay in the HTML, stacked in one grid cell, so the panel is always as tall
   as the tallest (the buttons never move); the inactive ones are only transparent (opacity 0), so search engines and
   screen readers read all six. services-rotate.js moves .is-on when the centre card changes: the new pane fades in
   and rises 8px over 300ms while the old one fades out (instant under reduced motion). The counter is one live
   region whose text the script changes; it fades up with the pane. Without the rotation (no JS, reduced motion, short
   screens) the panel is hidden visually but stays readable, and the buttons sit above the grid. */
.svc-info{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
#services.svc-rot .svc-info{position:static;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;white-space:normal}
.svc-count{margin-bottom:.75rem;font-size:var(--fs-xs);font-weight:var(--fw-semibold);letter-spacing:var(--ls-label);line-height:var(--lh-title);color:var(--accent);font-variant-numeric:tabular-nums}
.svc-count.is-new{animation:svc-in .3s ease-out}
.svc-panes{display:grid}
.svc-pane{grid-area:1/1;opacity:0;transform:translate3d(0,8px,0);pointer-events:none;transition:opacity .3s ease-out,transform .3s ease-out}
.svc-pane.is-on{opacity:1;transform:none;pointer-events:auto}
@keyframes svc-in{from{opacity:0;transform:translate3d(0,8px,0)}}
@media (prefers-reduced-motion:reduce){.svc-pane{transition:none}.svc-count.is-new{animation:none}}
.svc-line{max-width:17em;font-family:var(--display);font-size:var(--fs-xl);font-weight:var(--fw-regular);line-height:var(--lh-heading);letter-spacing:var(--ls-h1);color:var(--ink);text-wrap:balance}
.svc-desc{max-width:34em;margin-top:clamp(.625rem,1.6vh,1rem);font-size:var(--fs-sm);color:var(--muted)}
.svc-get{margin-top:clamp(1rem,2.6vh,1.5rem);color:var(--ink)}
.svc-gets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1.25rem;max-width:34em;margin-top:.75rem;font-size:var(--fs-sm);line-height:var(--lh-snug);color:var(--ink)}
.svc-gets li{position:relative;padding-left:1.5rem}
.svc-gets li::before{content:"";position:absolute;left:0;top:.2em;width:1rem;height:1rem;background:var(--sv-accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.svc-ctas{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
/* the section's --accent-btn is the muted sage (3.6:1), too light under white text: the primary uses --accent */
#services .svc-ctas .btn-fill{background:var(--accent);transition:background-color .5s var(--sv-ease)}
#services .svc-ctas .btn-fill:hover{background:var(--accent-btn-hover)}
#services:not(.svc-rot) .sec-head{margin-bottom:1.75rem}
#services:not(.svc-rot) .svc-ctas{margin-bottom:clamp(2.5rem,2rem + 2.5vw,4rem)}
@media (max-width:899px){
  #services.svc-rot{height:auto;padding-block:var(--sec)}
  #services.svc-rot>.wrap{display:block;height:auto}
  #services.svc-rot .sec-head>div{margin-bottom:0}
  #services.svc-rot .svc-stage{display:grid;grid-template-rows:auto minmax(0,1fr);row-gap:clamp(.5rem,2vh,1.25rem);height:100vh;height:100svh;padding-block:clamp(1rem,3vh,2rem) clamp(.75rem,2vh,1.25rem)}
  #services.svc-rot .svc-info,#services.svc-rot .bento{grid-column:1;grid-row:auto}
  #services.svc-rot .svc-ctas{margin-top:0}
  .svc-line{max-width:22em;font-size:var(--fs-lg)}
}
@media (max-width:599px){
  .svc-desc{margin-top:.5rem}
  .svc-get{margin-top:.875rem}
  .svc-gets{grid-template-columns:minmax(0,1fr);gap:.375rem;margin-top:.5rem}
  .svc-gets li::before{top:.15em}
}
/* phones (below 768px): a tighter gap between the panel and the cards; on narrow (under 400px) or short (under 760px)
   phones the checklist is visually hidden inside the pinned view (still in the HTML for search and screen readers) */
@media (max-width:767px){
  #services.svc-rot .svc-stage{row-gap:16px}
}
@media (max-width:399px),(max-width:767px) and (max-height:759px){
  #services.svc-rot .svc-get,#services.svc-rot .svc-gets{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
}
@media (max-width:479px){
  #services .svc-ctas .btn{min-height:2.5rem;padding:.5rem 1rem}
}
/* will-change: transform only; will-change: opacity would make each card its own backdrop root and the glass blur
   would see nothing behind it */
#services.svc-rot .bento>li{position:absolute;left:50%;top:50%;width:var(--cw,25rem);will-change:transform;backface-visibility:hidden}
/* a soft sage glow behind the stack, for the glass to blur */
#services.svc-rot .bento::before{content:"";position:absolute;inset:6% 4%;background:radial-gradient(42% 40% at 72% 28%,rgba(169,196,171,.5),rgba(169,196,171,0) 70%),radial-gradient(40% 42% at 28% 74%,rgba(99,118,101,.2),rgba(99,118,101,0) 70%),radial-gradient(30% 30% at 50% 50%,rgba(234,240,234,.9),rgba(234,240,234,0) 70%);pointer-events:none}
#services.svc-rot .bento>li::before{content:"";position:absolute;inset:0;border-radius:20px;box-shadow:0 44px 80px -44px rgba(32,34,31,.3);opacity:var(--f,0);pointer-events:none}
#services.svc-rot .svc-card{overflow:hidden}
#services.svc-rot .svc-card p,#services.svc-rot .svc-tools,#services.svc-rot .svc-foot{opacity:var(--t,1)}
/* FAQ: heading column on the left (held in view on desktop), content on the right */
.split-sec{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem 4rem;align-items:start}
.home .split-head{position:sticky;top:6.5rem}
.home .faq-grid h2{position:static}
/* tool groups (home Stack, About toolkit): a full-width header (label + H2 left, note right, on the H2's baseline line),
   then six cards in an even grid: 1 column, 2 from 640px, 3 from 1100px; the cards in a row share its height */
.tg-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:1.5rem 4rem;align-items:end;margin-bottom:clamp(2.5rem,2rem + 2vw,3.5rem)}
.tg-aside>p{max-width:30em;color:var(--muted)}
.tg-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.tg-card{padding:1.5rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.tg-top{display:flex;align-items:center;gap:.75rem}
.tg-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--tint);color:var(--accent)}
.tg-ic svg{width:18px;height:18px}
.tg-card h3{color:var(--muted)}
@media (min-width:640px){.tg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.tg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:899px){.tg-head{grid-template-columns:minmax(0,1fr)}}
@media (max-width:639px){.tg-card{padding:1.25rem 1rem}}
.stk-link{margin-top:1.25rem}
.stk-link:hover svg{transform:translateX(3px)}
.stk-tools{display:flex;margin-top:1.25rem;flex-wrap:wrap;gap:.5rem}
.stk-tools .tag{padding:.35rem .85rem;color:var(--ink)}
.stk-tools .tk{cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
/* tool chips that link (home Stack, About toolkit; stack-links.js): the active tool fills sage, the tools it works
   with turn tint, the rest fade back to muted text (still 6:1) */
.tg-grid.linking [data-t]{border-color:rgba(11,14,20,.06);color:var(--muted)}
.tg-grid.linking [data-t].rel{background:var(--tint);border-color:rgba(86,104,90,.45);color:var(--accent)}
.tg-grid.linking [data-t].on{background:var(--accent-btn);border-color:var(--accent-btn);color:var(--surface)}
/* process (#process): an editorial alternating timeline on the white page background like About and Services (no band
   background; the markers are filled with --bg so the line stops at them). Its own palette (exception to the site
   palette): ink #252827, a process accent --pt-accent #086B5B (6.4:1 on white: the H2's .it, step numbers, hover; the
   eyebrow label keeps the site --accent like every other section label), secondary text #5C625D (6.3:1 on white;
   #777D78, used only for the outlined markers, 4.2:1), timeline and stems #C9CEC7. Desktop (1024px+): five columns, one line across, steps above (01, 03, 05) and below
   (02, 04) joined to it by thin stems with outlined markers; three photos sit opposite their step (subgrid rows).
   700-1023px: a vertical line down the middle, steps alternating left and right. Below 700px: the line on the left.
   process.js (GSAP) draws the line (--draw), then each marker, stem (--s), text and photo (clip-path) in turn. */
#process{--ink:#252827;--muted:#5C625D;--pt-accent:#086B5B;--line:#D9DED8;--line-strong:#C9CEC7;--pt-line:#C9CEC7;--pt-mark:#777D78;color:var(--ink)}
#process.sec{padding-block:var(--sec)}
#process+.sec{padding-top:var(--sec)}
#process .sec-head{margin-bottom:clamp(3.5rem,2rem + 4vw,6rem)}
#process h2{max-width:9.75em}
#process h2 .it{background:none;color:var(--pt-accent)}   /* solid accent here, not the gradient */
.pt{--tw:min(100%,16rem);--stem:clamp(3.5rem,1rem + 4.5vw,6rem)}
.pt-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto 0 auto;column-gap:clamp(1.25rem,2.4vw,2.5rem)}
.pt-steps::before{content:"";grid-column:1/-1;grid-row:2;align-self:start;height:1px;background:var(--pt-line);transform:scaleX(var(--draw,1));transform-origin:left}
.pt-s{grid-row:1/4;display:grid;grid-template-rows:subgrid;min-width:0}
.pt-s:nth-child(1){grid-column:1}.pt-s:nth-child(2){grid-column:2}.pt-s:nth-child(3){grid-column:3}.pt-s:nth-child(4){grid-column:4}.pt-s:nth-child(5){grid-column:5}
.pt-s>*{grid-column:1}   /* explicit, or auto-placement moves an item sharing a row into a new column */
/* each text block is a column: heading, description, then its stem (above the line the block fills the top row, so
   the 01/03/05 tops line up and each stem stretches down to the line; below the line the stem comes first) */
.pt-txt{display:flex;flex-direction:column;width:var(--tw)}
.up .pt-txt{grid-row:1;align-self:stretch}
.down .pt-txt{grid-row:3;align-self:start}
.pt-txt h3{display:flex;align-items:baseline;gap:.7rem;margin-bottom:.8rem;white-space:nowrap;color:var(--ink);transition:color .3s var(--ease)}
.pt-n{flex:none;font-family:var(--display);font-size:var(--fs-lg);font-weight:var(--fw-regular);letter-spacing:0;line-height:var(--lh-display);color:var(--pt-accent);font-variant-numeric:lining-nums}
.pt-stem{display:block;flex:1 0 var(--stem);width:1px;margin-left:calc(50% - .5px);background:var(--pt-line);transform:scaleY(var(--s,1));transition:background-color .3s var(--ease)}
.up .pt-stem{margin-top:1rem;transform-origin:bottom}
.down .pt-stem{order:-1;flex:none;height:var(--stem);margin-bottom:1rem;transform-origin:top}
.pt-dot{grid-row:2;align-self:start;justify-self:start;width:11px;height:11px;margin:-5px 0 0 calc(var(--tw) / 2 - 5px);border:1px solid var(--pt-mark);border-radius:50%;background:var(--bg);transition:background-color .3s var(--ease),border-color .3s var(--ease)}
/* photos: inset 1rem inside their column on both sides, so every photo keeps the same gap to the text beside it */
.pt-pic{justify-self:center;width:calc(100% - 2rem);max-width:15rem;margin:0;overflow:hidden}
.pt-pic img{display:block;width:100%;height:auto;filter:saturate(.8) sepia(.06) contrast(.97)}
.up .pt-pic{grid-row:3;align-self:start;margin-top:calc(var(--stem) * .6)}
.down .pt-pic{grid-row:1;align-self:start;margin-bottom:calc(var(--stem) * .6)}
@media (hover:hover){
  .pt-txt:hover h3{color:var(--pt-accent)}
  .pt-s:has(.pt-txt:hover) .pt-dot{background:var(--pt-accent);border-color:var(--pt-accent)}
  .pt-s:has(.pt-txt:hover) .pt-stem{background:var(--pt-mark)}
}
@media (max-width:1023px){
  .pt-steps{display:block;position:relative}
  .pt-steps::before{position:absolute;top:.5rem;bottom:0;left:50%;align-self:auto;width:1px;height:auto;transform:scaleY(var(--draw,1));transform-origin:top}
  .pt-s{display:grid;grid-template-columns:minmax(0,1fr) 4rem minmax(0,1fr);grid-template-rows:auto;align-items:start;padding-bottom:clamp(2.75rem,6vw,4rem)}
  .pt-s:last-child{padding-bottom:0}
  .pt-txt,.up .pt-txt,.down .pt-txt{position:relative;grid-row:1;align-self:start;width:auto;max-width:20rem;margin:0}
  .up .pt-txt{grid-column:1;justify-self:end;text-align:right}
  .up .pt-txt h3{justify-content:flex-end}
  .down .pt-txt{grid-column:3;justify-self:start}
  .pt-dot{grid-column:2;grid-row:1;justify-self:center;margin:7px 0 0}
  /* the stem becomes a short horizontal tick from the text to its marker */
  .pt-stem,.up .pt-stem,.down .pt-stem{position:absolute;top:12px;flex:none;width:calc(1.5rem - 5.5px);height:1px;margin:0;transform:scaleX(var(--s,1))}
  .up .pt-stem{left:calc(100% + .5rem);transform-origin:right}
  .down .pt-stem{right:calc(100% + .5rem);transform-origin:left}
  .pt-pic,.up .pt-pic,.down .pt-pic{grid-row:1;align-self:start;width:min(100%,18rem);max-width:none;margin:0}
  .up .pt-pic{grid-column:3;justify-self:start}
  .down .pt-pic{grid-column:1;justify-self:end}
}
@media (max-width:699px){
  /* phones: one line on the left, steps 01-05 in order, no photos (decorative; they doubled the column's length) */
  .pt-steps::before{left:calc(var(--gut) + 5px)}
  .pt-s{grid-template-columns:2.25rem minmax(0,1fr);padding-bottom:2.5rem}
  .up .pt-txt,.down .pt-txt{grid-column:2;justify-self:start;max-width:32rem;text-align:left}
  .up .pt-txt h3{justify-content:flex-start}
  .pt-dot{grid-column:1;justify-self:start}
  .up .pt-stem,.down .pt-stem{left:auto;right:calc(100% + 6px);width:14px;transform-origin:left}
  .pt-pic{display:none}
}
@media (prefers-reduced-motion:reduce){.pt-txt h3,.pt-stem,.pt-dot{transition:none}}
/* selected work (#work, home): four tilted project cards (dark, the real screenshot on top) float over the giant H2
   "Projects" (Switzer at --fs-giant, its "o" Instrument Serif Italic). The H2 comes first in the HTML (heading order
   H2 -> H3s) and is placed under the cards by the grid (.wk-stage: cards row 1, word row 2, pulled up so the cards
   overlap its top on desktop). Each card's transform = its tilt (--rot) x scroll straightening (--k, work.js) x hover
   straightening (--hk), plus the scroll drift (--dy, work.js) and the hover lift (--lift). 640-1023px: two per row, a
   lighter tilt, the word below. Below 640px: upright cards in a swipeable scroll-snap row (80% wide), the word below. */
@property --hk{syntax:"<number>";inherits:false;initial-value:1}
@property --lift{syntax:"<length>";inherits:false;initial-value:0px}
#work{overflow-x:clip}
.wk-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem 2rem;margin-bottom:clamp(2.5rem,2rem + 2vw,3.5rem)}
.wk-head .eyebrow{margin-bottom:0}
.wk-note{font-size:var(--fs-sm);line-height:var(--lh-snug);color:var(--muted)}
.wk-stage{display:grid;grid-template-columns:minmax(0,1fr)}
.wk-word{grid-row:2;position:relative;z-index:0;margin-top:-.3em;font-family:var(--font);font-size:var(--fs-giant);font-weight:var(--fw-regular);letter-spacing:var(--ls-display);line-height:var(--lh-display);text-align:center;white-space:nowrap;text-wrap:nowrap;color:var(--ink)}
.wk-word .it{font-family:var(--display);padding-right:0}
.wk-cards{grid-row:1;position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:clamp(1.25rem,2.2vw,2rem);margin-inline:calc(50% - min(50vw - 2rem,42.5rem))}
.wk-c{--rot:0deg;--dy:0px;--k:1}
.wk-c:nth-child(1){--rot:-6deg;margin-top:3.5rem}
.wk-c:nth-child(2){--rot:4.5deg;margin-top:0}
.wk-c:nth-child(3){--rot:-2.5deg;margin-top:5rem}
.wk-c:nth-child(4){--rot:7deg;margin-top:1.5rem}
/* desktop: card 2's foot is tied to the word (not to its own height) so it always covers the j's dot (~.28-.38em below
   the word's top) and stops above the tops of "r" and "o" (~.45em): its foot sits .41em down (.3em pull + .11em) */
@media (min-width:1024px){.wk-c:nth-child(2){align-self:end;position:relative;top:calc(var(--fs-giant) * .11)}}
.wk-card{display:block;padding:.5rem;border-radius:var(--r);background:var(--ink);color:var(--bg);text-decoration:none;box-shadow:0 1.5rem 3rem -1.75rem rgba(11,14,20,.5);transform:translate3d(0,calc(var(--dy) + var(--lift)),0) rotate(calc(var(--rot) * var(--k) * var(--hk)));transition:--hk .45s var(--ease),--lift .45s var(--ease),box-shadow .45s var(--ease)}
.wk-card img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;object-position:top;border-radius:calc(var(--r) - .5rem);background:rgba(255,255,255,.06)}
.wk-body{padding:1.25rem .75rem .75rem}
.wk-card h3{font-size:var(--fs-xl);font-weight:var(--fw-medium);letter-spacing:var(--ls-title);line-height:var(--lh-heading);text-transform:uppercase;color:var(--bg)}
.wk-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.16)}
.wk-desc{font-size:var(--fs-xs);line-height:var(--lh-snug);color:rgba(255,255,255,.72)}
.wk-go{flex:none;display:grid;place-items:center;width:1.75rem;height:1.75rem;border:1px solid rgba(255,255,255,.24);border-radius:6px;transition:background-color .3s var(--ease),color .3s var(--ease)}
.wk-go svg{width:.875rem;height:.875rem}
.wk-card:focus-visible{outline:2px solid var(--accent-btn);outline-offset:4px;--hk:0}
.wk-card:hover .wk-go,.wk-card:focus-visible .wk-go{background:var(--bg);color:var(--ink)}
@media (hover:hover){.wk-card:hover{--lift:-10px;--hk:0;box-shadow:0 2rem 3.5rem -1.75rem rgba(11,14,20,.55)}}
.wk-all{display:flex;width:fit-content;margin:clamp(1.5rem,1rem + 1.5vw,2.5rem) auto 0}
.wk-all:hover svg{transform:translateX(3px)}
@media (max-width:1023px){
  .wk-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem clamp(1.5rem,4vw,2.5rem);margin-inline:0}
  .wk-c:nth-child(1){--rot:-3deg;margin-top:0}
  .wk-c:nth-child(2){--rot:2.5deg;margin-top:3rem}
  .wk-c:nth-child(3){--rot:2deg;margin-top:0}
  .wk-c:nth-child(4){--rot:-3.5deg;margin-top:3rem}
  .wk-word{margin-top:clamp(2rem,1rem + 3vw,3rem)}
}
@media (max-width:639px){
  .wk-cards{display:flex;gap:1rem;margin-inline:calc(-1 * var(--gut));padding:.5rem var(--gut) 2rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut);scrollbar-width:none}
  .wk-cards::-webkit-scrollbar{display:none}
  .wk-c:nth-child(n){flex:0 0 80%;margin-top:0;--rot:0deg;scroll-snap-align:start}
  .wk-card{height:100%;box-shadow:0 1rem 1.5rem -1rem rgba(11,14,20,.4)}
  .wk-word{margin-top:.5rem}
}
@media (prefers-reduced-motion:reduce){
  .wk-card,.wk-go{transition:none}
  .wk-card:hover,.wk-card:focus-visible{--lift:0px;--hk:1}
}
@media (max-width:1000px){
  .bento>li{grid-column:span 6}
}
@media (max-width:900px){
  .split-sec{grid-template-columns:minmax(0,1fr)}
  .home .split-head{position:static}
  .home .sec-head .lede,.sec-link{justify-self:start}
}
@media (max-width:1000px){
  .ed{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);grid-template-rows:auto auto 1fr;grid-template-areas:"head photo" "intro photo" "side photo";row-gap:2rem}
  .ed-intro{align-self:start}
  .ed-side{align-self:end;justify-self:start}
}
@media (max-width:680px){
  /* one column: heading, portrait, intro, description, link */
  .ed{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"head" "photo" "intro" "side"}
  .ed-frame{max-width:min(100%,24rem);max-height:none;margin-inline:0}
  .ed-side,.ed-intro,.ed-desc{max-width:none}
  .ed-cta{margin-top:1.5rem}
  .bento>li{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){
  .ed-cta:hover svg{transform:none}
  .svc-card:hover,.svc-card:hover .shot svg,.svc-card:hover .svc-go svg{transform:none}
}

/* ---------- floating WhatsApp button (phones and tablets) ---------- */
.wa{display:none}

/* ---------- headings slide up line by line (main.js wraps the rendered lines, then restores the heading) ---------- */
.rise-wait{opacity:0}
.rl{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.rl>span{display:block;white-space:nowrap;transform:translateY(105%)}
.rise-in .rl>span{transform:none;transition:transform .6s var(--ease) var(--d,0s)}

/* ---------- section reveal (added by main.js, not under reduced motion) ---------- */
.js .rv{opacity:0;transform:translateY(16px)}
.js .rv.in{opacity:1;transform:none;transition:opacity .5s var(--ease),transform .5s var(--ease)}

/* ---------- responsive ---------- */
/* smooth scrolling: Lenis (smooth.js) when it runs; otherwise the browser's own smooth anchor scrolling.
   CSS smooth scrolling must stay off under Lenis, or the browser re-animates every scroll step Lenis writes. */
@media (prefers-reduced-motion:no-preference){html:not(.lenis){scroll-behavior:smooth}}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:clip}
.lenis.lenis-smooth iframe{pointer-events:none}
/* desktop: the H1 sets as two lines, plain then the accent line */
@media (min-width:901px){.hero.glass h1 .ln:not(.it){display:inline-block;vertical-align:top}}
@media (min-width:768px){.hero-portrait{bottom:0;height:min(100%,92vw)}}   /* the whole image shows: top on the stage top, bottom on the hero bottom */
@media (max-width:1100px){
  .incl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .foot{grid-template-columns:repeat(4,minmax(0,1fr))}
  .foot>div:first-child{grid-column:1/-1}
}
@media (max-width:900px){
  :root{--head:68px}
  .nav,.head .btn{display:none}
  .burger{display:block}
  .hero-grid,.sec-head,.faq-grid,.contact-grid,.split,.about-top{grid-template-columns:minmax(0,1fr)}
  .faq-grid h2{position:static}
  /* single-column hero: home H1 (and the statement line) sized so each of the three H1 lines stays on one line from 360px up */
  :root{--fs-display:clamp(2.125rem,min(calc(12.2vw - .3rem),11.1vw),4.25rem)}
  .portrait{max-width:22rem}
  .foot{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.25rem 1.5rem}
  .foot>div:first-child{grid-column:1/-1}
  .wa{display:grid;place-items:center;position:fixed;right:1rem;bottom:1rem;z-index:45;width:3.25rem;height:3.25rem;border-radius:50%;background:var(--accent-btn);color:var(--bg);box-shadow:0 8px 24px -8px rgba(11,14,20,.35);transition:opacity .25s,transform .25s,visibility .25s}
  .js .wa:not(.show){opacity:0;visibility:hidden;transform:translateY(.75rem)}
  .wa svg{width:1.5rem;height:1.5rem}
}
@media (max-width:767px){
  /* mobile: the hero fits the viewport width. The portrait is 80% of the screen wide, flush with the left edge and the bottom
     of the hero (the photo's shirt runs to its left and bottom edges); the stage is as tall as the portrait, and spare height centres the copy */
  .hero-copy{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;padding-inline:1rem}
  .hero-stage{flex:none;min-height:0;height:80vw}
  .hero-portrait{bottom:0;left:0;width:80%;height:auto;transform:none}
  /* the cards follow the smaller portrait, so their compact layout gives the text a little more room */
  .op-compact{gap:6px;padding:0 8px}
  .op-compact .op-ic{width:20px;height:20px;border-radius:7px}
  .op-compact .op-ic svg{width:12px;height:12px}
}
@media (max-width:600px){
  /* layout fits (not type tokens): they size this exact text to its line.
     home hero line on one line: the text is ~22.6x its font size wide, so it scales with the viewport (13.3px at 360px, 17px from ~450px) */
  .hero.glass .lede{font-size:clamp(.75rem,calc(4.15vw - .1rem),1.0625rem);white-space:nowrap}
  /* home hero buttons side by side on one row, scaled down with the viewport */
  .hero.glass .cta-row{flex-wrap:nowrap;gap:.5rem}
  .hero.glass .btn{min-height:2.75rem;padding:0 clamp(.625rem,3.4vw,1.125rem);font-size:clamp(.75rem,3.6vw,.9375rem);gap:.4rem;white-space:nowrap}
  .hero.glass .btn svg{width:1.05em;height:1.05em}
  .incl,.why,.steps,.form,.pgrid{grid-template-columns:minmax(0,1fr)}
  .bio{grid-template-columns:repeat(2,minmax(0,1fr))}
  .proj dl{grid-template-columns:minmax(0,1fr);gap:.15rem}
  .proj dd{margin-bottom:.6rem}
  .faq details p{padding-right:0}
  /* inner-page H1: lines flow and balance so none leaves a word alone; fluid so "Website&nbsp;development" fits at 360px */
  .hero.sub .ln,.hero.sub .ln>span{display:inline}
  :root{--fs-h1:clamp(1.875rem,calc(10.5vw - .25rem),2.25rem)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js .rv{opacity:1;transform:none}
  .hero.glass .btn:hover{transform:none}
  .svc a:hover,.why li:hover,.pcard:hover,.ind li:hover,.steps li:hover,.incl li:hover,.proof li:hover,.proj:hover,.svc.icons a:hover{transform:none}
}
