/* CV2site — landing page styles.
   Brand faces, all self-hosted OFL: Plus Jakarta Sans sets the display type,
   Inter the body and UI, DM Mono the small labels. The CV previews on this
   page show what a published CV actually renders in, so they keep the CV
   engine's own Geist / Geist Mono / Instrument Serif through the --cv-* tokens.
   Brand colours are Night, Jacaranda and Marigold over a warm paper ground,
   with hairline rules, film grain and the jigsaw motif. */

@font-face{font-family:"Plus Jakarta Sans";src:url(../fonts/plus-jakarta-sans-var.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(../fonts/inter-var.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"DM Mono";src:url(../fonts/dm-mono-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"DM Mono";src:url(../fonts/dm-mono-medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Geist";src:url(../fonts/geist-var.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Geist Mono";src:url(../fonts/geist-mono-var.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(../fonts/instrument-serif-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}

:root{
  color-scheme:light;
  /* Brand colours. Night is the ink, Jacaranda the accent, Marigold the
     highlight. All three clear WCAG AA against the paper ground below. */
  --night:#15130f;
  --jacaranda:#4c2a85;
  --marigold:#e06a3b;
  /* Warm paper ground, in the Atelier register. Elevated plates are a lighter
     warm white so cards, steps, plans and template tiles lift off the page the
     way a card does on stock, rather than sitting on a grey wash; --surface and
     --surface-2 are the recessed warm tans for insets and wells. */
  --bg:#f8f5ef;
  --bg-2:#fffdf8;
  --surface:#f1ece2;
  --surface-2:#e9e3d6;
  --text:var(--night);
  --body:#3a352f;
  /* Two warm greys, each one a step lighter than the last. Both clear WCAG AA
     (4.5:1) as text on every plate they are used on, down to --surface-2 — the
     darkest plate any of them sits on — so the small labels, the marquee and
     the account metadata stay legible rather than merely faint. */
  --muted:#565049;
  --dim:#645e55;
  --line:rgba(21,19,15,.14);
  --line-2:rgba(21,19,15,.2);
  --line-3:rgba(21,19,15,.34);
  /* Brand faces: Plus Jakarta Sans for display, Inter for body and UI, DM Mono
     for the small labels. */
  --sans:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --display:"Plus Jakarta Sans","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:"DM Mono",ui-monospace,"SFMono-Regular","Cascadia Mono",Menlo,Consolas,monospace;
  --serif:"Instrument Serif","Iowan Old Style","Times New Roman",serif;
  /* The CV engine's own faces. Only the template previews on this page use
     them, because they must show what the published CV actually renders in. */
  --cv-sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --cv-mono:"Geist Mono",ui-monospace,"SFMono-Regular","Cascadia Mono",Menlo,Consolas,monospace;
  --cv-serif:"Instrument Serif","Iowan Old Style","Times New Roman",serif;
  --gutter:clamp(20px,4vw,56px);
  --wrap:1240px;
  --header-h:68px;
  /* Header bar plus the iOS notch / status bar, so fixed-header offsets stay clear. */
  --header-offset:calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --ease:cubic-bezier(.2,.7,.1,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  /* Decelerating ease for entrances: most of the distance is covered early,
     so a reveal reads as arriving rather than sliding. Matches the CV site's
     expo/back feel without pulling in GSAP. */
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-back:cubic-bezier(.34,1.32,.64,1);
  /* One duration scale, so a transition reads as part of a set rather than a
     one-off: 1 for a press or a state change, 2 for a control settling, 3 for
     a panel, 4 for a full entrance. */
  --dur-1:140ms;
  --dur-2:260ms;
  --dur-3:420ms;
  --dur-4:700ms;
  /* The floor every interactive control clears on touch. 44px is where WCAG's
     target size guidance and Apple's HIG both land. */
  --tap:44px;
  /* Atelier corners are near-square: a card is a sheet of stock, and a 3px
     radius keeps the hairline grid reading as print rather than software.
     Pills that must stay fully round (buttons, chips) set 999px themselves. */
  --radius:3px;
  /* One elevation set, tinted with the Night ink rather than neutral black so a
     shadow reads as depth on the warm plates instead of a grey smear. Three
     steps only: 1 for a resting card, 2 for a hovered card, 3 for a lifted
     panel. --shadow-key carries the Jacaranda tint and is reserved for the
     Signature plan so the featured card sits above the other two. */
  --shadow-1:0 1px 2px rgba(21,19,15,.05),0 2px 8px rgba(21,19,15,.05);
  --shadow-2:0 10px 28px rgba(21,19,15,.1),0 2px 6px rgba(21,19,15,.06);
  --shadow-3:0 22px 52px rgba(21,19,15,.14),0 4px 14px rgba(21,19,15,.07);
  --shadow-key:0 8px 22px rgba(76,42,133,.18),0 1px 2px rgba(76,42,133,.16);
  /* One grid rhythm: every stacked grid block (features, steps, plans,
     templates) opens with the same gap, so the page reads as one vertical
     cadence instead of five near-identical clamps. */
  --gap-grid:clamp(30px,3.6vw,48px);
  /* Focus ring for the controls that suppress the browser outline (the form
     fields). A hairline of solid Jacaranda gives the indicator itself 10.6:1 on
     white, clearing the 3:1 non-text minimum, and the soft halo around it reads
     as depth rather than a hard collar. Everything else keeps the global
     :focus-visible outline below. */
  --ring:0 0 0 1px var(--jacaranda),0 0 0 4px rgba(76,42,133,.16);
}
/* Forced contrast turns the soft ambient shadows into hard rings, so elevation
   survives without relying on a low-alpha blur the user has asked to remove. */
@media (prefers-contrast:more){
  :root{--body:#26221c;--muted:#443f37;--line:rgba(21,19,15,.26);--line-2:rgba(21,19,15,.4);--line-3:rgba(21,19,15,.56);
    --shadow-1:0 0 0 1px var(--line-2);--shadow-2:0 0 0 2px var(--line-2);--shadow-3:0 0 0 2px var(--line-3);
    --shadow-key:0 0 0 2px var(--jacaranda);--ring:0 0 0 2px var(--jacaranda)}
}

/* The two CV previews on this page (the hero mini CV and the example site)
   must show the published product, so the family tokens are re-pointed at the
   CV engine's fonts for those subtrees only. Everything else is brand type. */
.mini,.psite{--sans:var(--cv-sans);--mono:var(--cv-mono);--serif:var(--cv-serif)}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-color:#b0b0b0 var(--bg);-webkit-tap-highlight-color:transparent;overflow-x:clip;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--body);font:400 16px/1.6 var(--sans);font-size-adjust:from-font;font-optical-sizing:auto;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip;text-wrap:pretty}
img,svg,canvas{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd{margin:0}
ul[role=list],ol[role=list]{list-style:none;padding:0}
::selection{background:var(--jacaranda);color:#fff}
:focus-visible{outline:2px solid var(--jacaranda);outline-offset:3px;border-radius:3px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
/* Author styles (e.g. .btn{display:inline-flex}) would otherwise win over the UA
   [hidden] rule and leave Log in / Account visible when they should not. */
[hidden]{display:none!important}
.skip{position:fixed;left:var(--gutter);top:12px;z-index:100;display:inline-flex;align-items:center;min-height:var(--tap);transform:translateY(calc(-100% - 32px));padding:0 20px;border-radius:999px;background:var(--night);color:#fff;font:500 14.5px/1 var(--sans);transition:transform .25s var(--ease)}
.skip:focus{transform:none}
.wrap{width:100%;max-width:calc(var(--wrap) + 2 * var(--gutter));margin:0 auto;padding:0 var(--gutter)}

/* ── Atmosphere ─────────────────────────────────────────────────────────── */
.aura{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.aura::before{content:"";position:absolute;left:50%;top:-56vh;width:150vw;height:120vh;transform:translateX(-50%);background:radial-gradient(50% 50% at 50% 50%,rgba(21,19,15,.018),rgba(21,19,15,0) 68%)}
.aura::after{content:"";position:absolute;left:16%;top:52vh;width:62vw;height:62vw;background:radial-gradient(50% 50% at 50% 50%,rgba(21,19,15,.02),rgba(21,19,15,0) 70%)}
.grain{position:fixed;inset:0;z-index:45;pointer-events:none;opacity:.04;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
main{position:relative;z-index:2}

/* ── Type scale ─────────────────────────────────────────────────────────── */
.label{display:inline-flex;align-items:center;gap:.9em;font:500 11.5px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.label::before{content:"";width:22px;height:1px;background:var(--line-3);flex:none}
/* The hero headline is two authored lines, so the size is capped to what the
   copy column can hold on one row each — a bigger cap wraps mid-phrase. */
.h1{font:500 clamp(38px,4.6vw,66px)/.97 var(--sans);letter-spacing:-.05em;color:var(--text);text-wrap:balance}
.h2{font:500 clamp(30px,4.4vw,60px)/1 var(--sans);letter-spacing:-.045em;color:var(--text);text-wrap:balance}
.h3{font:500 clamp(19px,1.6vw,22px)/1.2 var(--sans);letter-spacing:-.02em;color:var(--text)}
.serif{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.01em}
.lede{max-width:52ch;color:var(--body);font-size:clamp(16px,1.15vw,18.5px);line-height:1.62}
.small{font-size:14px;color:var(--muted);line-height:1.6}
.mono{font-family:var(--mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* ── Buttons & links ────────────────────────────────────────────────────── */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:52px;padding:0 26px;border-radius:999px;border:1px solid var(--line-3);background:none;font:500 15.5px/1 var(--sans);color:var(--text);cursor:pointer;transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease);overflow:hidden}
.btn::before{content:"";position:absolute;inset:0;background:rgba(21,19,15,.04);transform:scaleX(0);transform-origin:right;transition:transform .4s var(--ease);border-radius:inherit}
/* Hover is a pointer-only state. A touch screen latches :hover onto the last
   thing tapped, so an unguarded rule leaves a button lifted with its sheen
   still filled long after the finger has gone. Touch gets the press state
   instead — see "Press states" at the foot of this file. */
@media (hover:hover){
  .btn:hover::before{transform:scaleX(1);transform-origin:left}
  .btn:hover{border-color:var(--night);transform:translateY(-1px)}
  .btn:hover .ar{transform:translateX(3px)}
}
.btn--solid{background:var(--jacaranda);border-color:var(--jacaranda);color:#fff;box-shadow:0 1px 2px rgba(76,42,133,.24)}
.btn--solid::before{background:rgba(255,255,255,.08)}
@media (hover:hover){.btn--solid:hover{background:#3b2069;border-color:#3b2069;box-shadow:0 8px 20px rgba(76,42,133,.3)}}
.btn--sm{min-height:42px;padding:0 20px;font-size:14.5px}
.btn .ar{width:.78em;height:.78em;flex:none;transition:transform .35s var(--ease)}
.g-mark{width:16px;height:16px;flex:none}
.btn--block{width:100%}
.link{color:var(--text);background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;padding-bottom:2px;transition:background-size .45s var(--ease)}
.link:hover{background-size:0 1px;background-position:100% 100%}
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header{position:fixed;inset:0 0 auto 0;z-index:40;height:var(--header-h);display:flex;align-items:center}
.site-header::before{content:"";position:absolute;inset:0 0 -30px;background:linear-gradient(to bottom,rgba(248,245,239,.96),rgba(248,245,239,.7) 55%,rgba(248,245,239,0));pointer-events:none;opacity:0;transition:opacity .4s var(--ease)}
.site-header.is-stuck::before{opacity:1}
/* Once the page has scrolled under it, the header gains a soft drop so the
   content behind it reads as passing beneath a raised surface rather than
   sitting flush against the bar. */
.site-header.is-stuck{box-shadow:0 12px 26px -20px rgba(21,19,15,.34)}
.header-inner{position:relative;display:flex;align-items:center;gap:clamp(12px,2vw,26px);pointer-events:auto}
.brand{display:inline-flex;align-items:center;gap:11px;min-height:var(--tap);color:var(--text);font-weight:500;font-size:15.5px;letter-spacing:-.015em;white-space:nowrap;padding:6px 0}
/* Mark paths are inlined on each brand link (no <use> sprite). */
.mark{width:28px;height:28px;flex:none;overflow:visible;display:block;border-radius:7px}
.motion .mark{animation:mk-in .85s var(--ease) both}
html.no-motion .mark{animation:none}
@keyframes mk-in{from{opacity:0}to{opacity:1}}
.nav{margin-left:auto}
.nav ul{display:flex;gap:clamp(16px,2.2vw,32px);list-style:none;margin:0;padding:0}
.nav a{position:relative;display:inline-flex;align-items:center;min-height:var(--tap);padding:8px 0;font-size:14.5px;color:var(--body);transition:color .25s}
.nav a::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
.nav a:hover{color:var(--text)}
.nav a:hover::after{transform:scaleX(1);transform-origin:left}
.header-cta{margin-left:clamp(4px,1vw,10px)}
.menu-btn{display:none;margin-left:auto;align-items:center;min-height:var(--tap);gap:10px;padding:10px 0;background:none;border:0;cursor:pointer;font:500 12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--text)}
.menu-btn .bars{display:grid;gap:5px;width:20px}
.menu-btn .bars i{display:block;height:1px;background:currentColor}
@media (max-width:959.98px){
  .nav{display:none!important}
  .menu-btn{display:inline-flex}
  .menu-btn{margin-left:auto}
  .header-cta{display:none}
  .site-header{height:var(--header-offset);padding-top:env(safe-area-inset-top,0px)}
  .header-inner{min-height:var(--header-h)}
  /* Keep the stuck-header wash inside the bar so it cannot cover the hero lede. */
  .site-header::before{inset:0;background:rgba(248,245,239,.96)}
}
.menu{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(248,245,239,.98);color:var(--text);opacity:0;transition:opacity .35s var(--ease)}
.menu[open]{display:flex;flex-direction:column;opacity:1}
.menu::backdrop{background:transparent}
.menu-top{display:flex;align-items:center;justify-content:space-between;height:var(--header-h)}
.menu-close{display:inline-flex;align-items:center;min-height:var(--tap);gap:10px;padding:10px 0;background:none;border:0;cursor:pointer;font:500 12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--text)}
.menu nav{flex:1;display:flex;align-items:center}
.menu ol{list-style:none;margin:0;padding:0;display:grid;gap:clamp(4px,1.6svh,16px);width:100%}
.menu ol a{display:flex;align-items:baseline;min-height:var(--tap);gap:16px;font:500 clamp(32px,9.5vw,54px)/1 var(--sans);letter-spacing:-.05em;color:var(--text);padding:4px 0}
.menu ol a span{font:500 11px/1 var(--mono);letter-spacing:.14em;color:var(--muted)}
.menu-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-block:22px calc(22px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
html.menu-open{overflow:clip}

/* ── Sections ───────────────────────────────────────────────────────────── */
/* Vertical rhythm only — the horizontal gutter belongs to .wrap, and a shorthand
   padding here would silently flatten it to zero on every section. */
.sec{padding-block:clamp(72px,10vw,140px)}
/* The landing page is long — 9,486 px on a phone — and the main thread spends
   its time in Style & Layout, not script. From the fourth section down the
   subtree is skipped for layout and paint until it comes near the viewport,
   which is most of that cost. `auto 900px` lets a section keep the height it
   last measured, so the scroll height settles after the first pass instead of
   jumping. The hero and the first three sections stay eager, so nothing the
   user actually lands on is delayed. Local Lighthouse runs cannot resolve the
   effect — the identical page reads anywhere from 50 to 86 on this box — so
   the deciding number is the deployed re-measure. */
main > section:nth-of-type(n+4){content-visibility:auto;contain-intrinsic-size:auto 900px}
.sec-head{display:flex;flex-direction:column;gap:18px;max-width:820px}
.sec-head .lede{margin-top:2px}
.hairline{height:1px;background:var(--line);border:0;margin:0}
[id]{scroll-margin-top:calc(var(--header-offset) + 18px)}

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
/* The hidden state is applied only when the inline head script has confirmed
   scripting is alive, so a browser without JS gets every section rendered
   rather than a blank page. js-stall is the belt-and-braces version: if the
   deferred file never reports in, nothing stays hidden either. */
html.js .rv{opacity:0;transform:translateY(20px)}
html.js .rv--left{transform:translateX(-18px)}
html.js .rv--right{transform:translateX(18px)}
html.js .rv--scale{transform:scale(.975)}
html.js .rv.in{opacity:1;transform:none;transition:opacity .72s var(--ease-out),transform .72s var(--ease-out)}
/* The stagger is written by landing.js, not in the markup: elements that cross
   the fold in the same frame are given a delay by their position in that wave,
   and an element that crosses alone gets none. A hand-set delay in the HTML
   would still be paid by a card that arrived on its own. */
html.motion .rv.in{transition-delay:var(--rv-delay,0ms)}
html.no-motion .rv,html.no-motion .rv.in{opacity:1!important;transform:none!important;transition:none!important}
html.js-stall .rv,html.js-stall .sec-head>*{opacity:1!important;transform:none!important}

/* Section headings: held back only while scripting is alive and motion is on,
   then played in sequence as the section arrives — label, headline, standfirst.
   The .js gate matters as much as .motion does: without it a scriptless browser
   keeps the head at opacity 0, because nothing ever arrives to add .in. */
/* The end state has to be written out: the held-back base is already opacity 0,
   so a from-only keyframe would animate 0 to 0 and never reveal anything. */
@keyframes wipe-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes line-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}
html.js.motion .sec-head>*{opacity:0}
html.motion .sec-head.in>*{animation:wipe-in .7s var(--ease-out) both}
html.motion .sec-head.in>*:nth-child(2){animation-delay:70ms}
html.motion .sec-head.in>*:nth-child(3){animation-delay:140ms}
html.motion .sec-head.in .label::before,
html.motion .hero-copy .label::before{animation:line-in .7s var(--ease-out) both}
html.motion .sec-head.in .label::before{animation-delay:40ms}
@media (prefers-reduced-motion:reduce){
  html.js .rv,html.js .rv.in{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}
  html.motion .sec-head>*{opacity:1!important;animation:none!important}
}

/* ── Mock site chrome (reused by hero, templates, themes) ───────────────── */
.shot{position:relative;border:1px solid var(--line-3);border-radius:var(--radius);background:linear-gradient(180deg,#fffdf9,#f3ede2);overflow:hidden;box-shadow:var(--shadow-2)}
.shot-bar{display:flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-bottom:1px solid var(--line);background:rgba(21,19,15,.03)}
.shot-bar i{width:7px;height:7px;border-radius:50%;background:rgba(21,19,15,.22);flex:none}
.shot-bar em{margin-left:8px;font:400 10.5px/1 var(--mono);letter-spacing:.06em;color:var(--dim);font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot-body{padding:clamp(14px,1.6vw,20px)}

/* Mini CV content used inside .shot */
.mini{display:grid;gap:12px}
.mini-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.mini-name{font:500 clamp(15px,1.5vw,19px)/1.05 var(--sans);letter-spacing:-.035em;color:var(--text)}
.mini-role{margin-top:5px;font:400 10.5px/1.3 var(--mono);letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.mini-avatar{width:46px;height:46px;border-radius:30%;flex:none;object-fit:cover;background:#ddd;border:1px solid rgba(21,19,15,.16);box-shadow:var(--shadow-1)}
.mini-rows{display:grid;gap:9px}
.mini-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:baseline;padding-top:9px;border-top:1px solid var(--line)}
.mini-row b{font:500 12.5px/1.3 var(--sans);letter-spacing:-.01em;color:var(--text);font-weight:500}
.mini-row span{font:400 11.5px/1.4 var(--sans);color:var(--muted)}
.mini-row em{font:400 10.5px/1 var(--mono);color:var(--dim);font-style:normal;white-space:nowrap}
.mini-chips{display:flex;flex-wrap:wrap;gap:6px}
.mini-chips i{font:400 10px/1 var(--mono);letter-spacing:.05em;color:var(--muted);border:1px solid var(--line-2);border-radius:999px;padding:4px 8px;font-style:normal}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero{padding-top:calc(var(--header-h) + clamp(28px,5vw,64px));padding-bottom:clamp(40px,6vw,80px)}
.hero-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(28px,4vw,64px);align-items:center}
@media (max-width:1040px){.hero-grid{grid-template-columns:1fr;gap:clamp(28px,5vw,40px)}}
/* One column below 1040px means the headline gets the full measure back. */
@media (max-width:1040px){.h1{font-size:clamp(36px,7.2vw,74px)}}
.hero-copy{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
/* Three short lines, tracked tight. The italic sits low in the line box, so
   the lines keep a hair of padding and are not clipped. */
.hero h1{font-size:clamp(46px,5.5vw,80px);line-height:.94;letter-spacing:-.058em}
.hero h1 .line{display:block;padding-bottom:.03em}
.hero h1 .line>span{display:block}
.hero .lede{max-width:36ch;font-size:clamp(16px,1.2vw,18px);line-height:1.5;color:var(--body)}
.hero-trust{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:6px;padding-top:20px;border-top:1px solid var(--line);width:100%}
.hero-trust li{display:inline-flex;align-items:center;gap:9px;font:400 12px/1.4 var(--mono);letter-spacing:.05em;color:var(--muted)}
.hero-trust svg{width:13px;height:13px;flex:none;stroke:var(--dim)}
.hero-shot-wrap{position:relative}
.hero-shot-wrap::after{content:"";position:absolute;inset:-6% -8% -14% 8%;background:radial-gradient(55% 50% at 60% 45%,rgba(21,19,15,.07),transparent 70%);pointer-events:none;z-index:-1}
/* Single column: the glow's -8% right inset ran past the viewport (body scrollWidth +7px at 375). Stop it at the page edge. */
@media (max-width:1040px){.hero-shot-wrap::after{right:calc(var(--gutter) * -1)}}
.hero-stage{position:relative;padding:46px 0 2px 56px}
.hero-pdf{position:absolute;z-index:0;left:0;top:0;width:min(228px,48%);padding:14px 14px 16px;background:linear-gradient(165deg,#fbf8f2 0%,#efe8dc 100%);color:#1a1814;border:1px solid rgba(20,16,10,.16);border-radius:2px 12px 12px 12px;box-shadow:0 18px 40px rgba(20,16,10,.12),inset 0 0 0 1px rgba(255,255,255,.6);transform:rotate(-8deg)}
.hero-pdf-file{display:flex;justify-content:space-between;margin:0 0 12px;font:500 9px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:rgba(26,24,20,.45)}
.hero-pdf-name{margin:0;font:500 15px/1.15 var(--sans);letter-spacing:-.03em}
.hero-pdf-role{margin:4px 0 12px;font:400 9px/1.3 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:rgba(26,24,20,.5)}
.hero-pdf-rules{display:grid;gap:6px}
.hero-pdf-rules i{display:block;height:3px;border-radius:2px;background:rgba(26,24,20,.16)}
.hero-pdf-rules i:nth-child(1){height:5px;width:72%;background:rgba(26,24,20,.72)}
.hero-pdf-rules i.s{width:58%}
.hero-browser,.hero-stage .shot--live{position:relative;z-index:1;width:100%;margin:0}
.shot--live{background:#101010;border-color:#2a2a2a;box-shadow:0 24px 50px rgba(21,19,15,.18)}
.shot--live .shot-bar{background:#161616;border-bottom-color:rgba(255,255,255,.08)}
.shot--live .shot-bar i{background:rgba(255,255,255,.28)}
.shot--live .shot-bar em{color:rgba(255,255,255,.72)}
.shot--live .shot-body{background:#0c0c0c;padding:clamp(14px,1.6vw,20px)}
.shot--live .mini-name{color:#f4f4f4}
.shot--live .mini-role{color:rgba(255,255,255,.48)}
.shot--live .mini-row{border-top-color:rgba(255,255,255,.12)}
.shot--live .mini-row b{color:#f4f4f4}
.shot--live .mini-row span{color:rgba(255,255,255,.55)}
.shot--live .mini-row em{color:rgba(255,255,255,.38)}
.shot--live .mini-chips i{color:rgba(255,255,255,.72);border-color:rgba(255,255,255,.16)}
.shot--live .mini-avatar{border-color:rgba(255,255,255,.16);box-shadow:none}
.hero .shot-body{padding:clamp(14px,1.6vw,20px)}
.hero-stack{display:grid;gap:11px}
.hero-note{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:14px;font:400 11px/1.5 var(--mono);letter-spacing:.06em;color:var(--dim)}
.hero-note b{color:var(--muted);font-weight:500}
.tag{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-2);border-radius:999px;padding:5px 11px;font:400 11px/1 var(--mono);letter-spacing:.08em;color:var(--muted)}
.tag--free{border-color:rgba(21,19,15,.34);color:var(--text)}

/* One orchestrated entrance rather than scattered micro-motion */
.motion .hero-copy>*{animation:rise .85s var(--ease) both}
.motion .hero-copy>*:nth-child(1){animation-delay:.05s}
.motion .hero-copy>*:nth-child(2){animation-delay:.12s}
.motion .hero-copy>*:nth-child(3){animation-delay:.19s}
.motion .hero-copy>*:nth-child(4){animation-delay:.26s}
.motion .hero-copy>*:nth-child(5){animation-delay:.33s}
.motion .hero-shot-wrap{animation:rise 1s var(--ease) .2s both}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
/* The page settles back as the site wipes across it. Reduced motion shows
   the finished pair, already in place. */
html.motion .hero-pdf{animation:pdf-settle 1.15s var(--ease-out) both}
html.motion .hero-stage .shot--live{animation:site-in 1.05s var(--ease-out) .28s both}
@keyframes pdf-settle{from{opacity:0;transform:translate(18px,28px) rotate(-2deg)}to{opacity:1;transform:rotate(-8deg)}}
@keyframes site-in{from{opacity:0;clip-path:inset(0 100% 8% 0);transform:translateY(10px)}to{opacity:1;clip-path:inset(0 0 0 0);transform:none}}
html.no-motion .hero-copy>*,html.no-motion .hero-shot-wrap,
html.no-motion .hero-pdf,html.no-motion .hero-stage .shot--live{animation:none}
@media (prefers-reduced-motion:reduce){
  .hero-copy>*,.hero-shot-wrap,.hero-pdf,.hero-stage .shot--live{animation:none!important}
}

/* On a phone the example output breaks the gutter and spans the screen. It is
   the one piece of the hero that is showing rather than telling, so it gets the
   whole width, and the content inside it is scaled up a step so the three role
   rows read at arm's length instead of by squinting. */
@media (max-width:620px){
  .hero{padding-top:calc(var(--header-offset) + 20px);padding-bottom:28px}
  .hero-grid{gap:18px}
  .hero-copy{gap:12px}
  .hero h1{font-size:clamp(36px,10.2vw,46px);letter-spacing:-.05em}
  .hero-copy .lede{font-size:15px;line-height:1.45}
  .hero .actions .btn:not(.btn--solid){display:none}
  /* The Google and Create account prompts earn their place on a phone: the
     header CTAs are hidden at this width, so the hero and the menu are the only
     routes to sign in or sign up. */
  .hero .actions .btn.btn--google,.hero .actions .btn[data-auth-signup]{display:inline-flex}
  /* The trust signals stay on a phone as a compact wrap. Dropping them removed
     the one row of proof a first-time visitor reads before scrolling. */
  .hero-trust{gap:7px 16px;margin-top:4px;padding-top:14px}
  .hero-trust li{font-size:11px;letter-spacing:.04em}
  .hero-trust svg{width:12px;height:12px}
  .hero-stage{padding:32px 0 0 26px}
  .hero-pdf{width:46%;padding:10px 10px 12px}
  .hero-pdf-name{font-size:12px}
  .hero-pdf-rules{gap:4px}
  .hero-stage .shot--live{width:100%}
  .hero-note{margin-top:10px}
  .sec{padding-block:clamp(30px,7.5vw,46px)}
  .sec-head .lede{font-size:15px;line-height:1.55}
  .steps{margin-top:22px}
  .step{padding:18px}
  /* The "three ways in" cards stack on a phone. A horizontal rail was the first
     instinct, but these cards hold no focusable content, so a scroll container
     here is unreachable by keyboard and axe flags it. Stacking keeps the
     section readable and every card in the tab order by definition. */
  .how-in{margin-top:20px}
  .trans,.trans-legend{display:none!important}
  .unlock-note.unlock-note{flex-direction:column;align-items:flex-start;gap:12px;margin-top:20px;padding-top:16px}
  .unlock-note.unlock-note p{font-size:13.5px;line-height:1.55}
  .pgrid{display:flex!important;grid-template-columns:unset;max-width:none;margin-top:24px;gap:12px;margin-inline:calc(-1 * var(--gutter));padding:18px var(--gutter) 8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
  .pgrid::-webkit-scrollbar{display:none}
  .plan{flex:0 0 min(88%,320px);scroll-snap-align:start;padding:20px}
  #faq details summary{padding-block:14px}
  #needed .need-note{display:none}
  .need-send,.cf-send{flex-direction:column;align-items:stretch}
  .need-send .btn,.cf-send .btn{width:100%;min-height:52px}
  #templates.sec{padding-top:clamp(24px,6vw,36px)}
  /* The Customise grid re-flows instead of vanishing: .grid-4 already steps to
     two columns then one, so the section keeps every tile on a phone. */
  .pick-canvas{height:min(420px,68vh)!important}
  #start .need-fine{font-size:12.5px;line-height:1.55}
  #start.sec{padding-bottom:32px}
  .site-footer{padding-block:28px 36px;margin-top:24px}
}

/* Veil: six jigsaw pieces that cut away to reveal the hero shot */
.veil{position:absolute;inset:0;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);pointer-events:none;border-radius:var(--radius);overflow:hidden}
.veil i{background:linear-gradient(150deg,#fdfbf6,#f1ebdf);border:1px solid rgba(21,19,15,.1)}
.motion .veil i{animation:cut .95s var(--ease) both}
.motion .veil i:nth-child(1){animation-delay:.15s}
.motion .veil i:nth-child(2){animation-delay:.24s}
.motion .veil i:nth-child(3){animation-delay:.33s}
.motion .veil i:nth-child(4){animation-delay:.42s}
.motion .veil i:nth-child(5){animation-delay:.51s}
.motion .veil i:nth-child(6){animation-delay:.6s}
@keyframes cut{to{opacity:0;transform:scale(.86)}}
html.no-motion .veil{display:none}
@media (prefers-reduced-motion:reduce){.veil{display:none}}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:var(--gap-grid)}
@media (max-width:860px){.steps{grid-template-columns:1fr}}
.step{background:var(--bg-2);padding:clamp(24px,2.6vw,34px);display:flex;flex-direction:column;gap:14px;position:relative;transition:background-color .4s var(--ease)}
.step:hover{background:var(--surface)}
.step-n{font:500 11.5px/1 var(--mono);letter-spacing:.14em;color:var(--dim)}
.step h3{font:500 clamp(18px,1.5vw,21px)/1.25 var(--sans);letter-spacing:-.025em;color:var(--text)}
.step p{font-size:14.5px;line-height:1.6;color:var(--muted)}
.step-ico{width:26px;height:26px;stroke:var(--line-3);fill:none;stroke-width:1.3}

/* ── How: three ways in (merged) ───────────────────────────────────────── */
.how-in{margin-top:clamp(28px,4vw,44px)}
.how-in-title{margin:0 0 clamp(16px,2.4vw,22px);max-width:28ch}
.how-in .grid-3{margin-top:0}

/* ── Inputs (three ways in) ────────────────────────────────────────────── */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.8vw,22px);margin-top:var(--gap-grid)}
@media (max-width:900px){.grid-3{grid-template-columns:1fr}}
.card{position:relative;border:1px solid var(--line-2);border-radius:var(--radius);background:linear-gradient(180deg,#fffdf9,#f4eee4);padding:clamp(22px,2.4vw,30px);display:flex;flex-direction:column;gap:13px;box-shadow:var(--shadow-1);transition:border-color .4s var(--ease),transform .4s var(--ease),box-shadow .4s var(--ease)}
.card:hover{border-color:var(--line-3);transform:translateY(-4px) scale(1.01);box-shadow:var(--shadow-2)}
.card-ico{width:24px;height:24px;stroke:var(--line-3);fill:none;stroke-width:1.3}
.card h3{font:500 clamp(17px,1.4vw,19.5px)/1.25 var(--sans);letter-spacing:-.02em;color:var(--text)}
.card p{font-size:14.5px;line-height:1.62;color:var(--muted)}
.card .mono{font-size:10.5px}
.card--flag{border-color:var(--line-3);background:linear-gradient(180deg,#f6f0e4,#ebe3d3)}
.card-tag{position:absolute;top:16px;right:16px}

/* ── Picker ────────────────────────────────────────────────────────────────
   One implementation serves both Templates and Themes. The two sections differ
   only in what the stage draws and which attribute a tile carries; sharing the
   markup contract, the keyboard handling and these rules is what stops their
   behaviour drifting apart as either one changes.

   The rail stays above the stage at every width: options first, then the
   preview. The DOM is already in that order, and nothing reorders it.
   Template tiles are four across. Theme tiles go to eight on a wide screen. */
.pick{display:grid;gap:clamp(14px,2vw,22px);margin-top:var(--gap-grid)}
.pick-stage{display:flex;flex-direction:column;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--bg-2);overflow:hidden;box-shadow:var(--shadow-2)}
.pick[data-pick="themes"] .pick-canvas-wrap { padding: 0; }
.pick-canvas{position:relative;aspect-ratio:16/10;padding:clamp(14px,2.4vw,26px);background:linear-gradient(180deg,#fdfbf6,#f2ece1);border-bottom:0;overflow:hidden;transition:max-width .5s var(--ease),border-radius .5s var(--ease),border .5s var(--ease),margin .5s var(--ease),height .5s var(--ease),box-shadow .5s var(--ease),aspect-ratio .5s var(--ease)}
@media (min-width:900px){.pick-canvas{aspect-ratio:16/9}}
/* The stage holds a live example site, so it bleeds to the frame edge rather
   than sitting inside the drawing's padding — the palette's own background
   and the stage's rounded clip are the whole frame. */
.pick[data-pick="templates"] .pick-canvas{padding:0}
/* container-type stays off this element. On iOS, a query container that is also
   the scrollport never scrolls, so the motion engine's scrollTop writes are
   ignored and every held-back row stays at opacity 0. The query lives on
   .ps-fit, the non-scrolling wrapper inside. scroll-behavior is reset because
   the smooth value on html is inherited, and Safari animates scrollTop
   assignments — the tour then never lands, so the reading line never moves. */
.pick-screen{position:relative;height:100%;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto;-webkit-overflow-scrolling:touch;background:var(--t-bg,#070707);scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}
.ps-fit{container-type:inline-size;min-height:100%}
.pick-canvas .psite{min-height:100%}

.pick-canvas-wrap {
  position: relative;
  background: linear-gradient(180deg,#fdfbf6,#f2ece1);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 0;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  width: fit-content;
  margin: 0 auto 12px;
  position: relative;
  z-index: 10;
}
.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0 16px;
  font: 500 12px/1 var(--sans);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease),color var(--dur-2) var(--ease),box-shadow var(--dur-2) var(--ease);
}
.vt-btn.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(21,19,15,0.2);
}

.pick-canvas.is-mobile-view {
  max-width: 340px;
  height: 600px;
  margin: 0 auto 24px;
  border-radius: 36px;
  border: 10px solid #2a2a2a;
  box-shadow: 0 24px 48px rgba(21,19,15,0.18);
  aspect-ratio: auto;
  background: var(--night);
}

/* The stage has to be a flex container so the palette fills it, but it keeps
   the same aspect ratio as a layout preview — otherwise the two sections would
   sit at different heights for no reason. The min-height is only a floor for
   very narrow phones, where the ratio alone would squash the sample. */
.pick[data-pick="themes"] .pick-canvas{display:flex;min-height:clamp(180px,50vw,300px)}
/* Caption sits above the live preview so the name/desc read first, then the stage. */
.pick-info{display:grid;gap:4px;padding:clamp(10px,1.4vw,14px) clamp(12px,1.6vw,18px) clamp(8px,1.2vw,12px)}
.pick-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pick-title b{font:500 clamp(15px,1.35vw,17px)/1.2 var(--sans);letter-spacing:-.02em;color:var(--text)}
.pick-title em{font:400 9px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;font-style:normal;border:1px solid var(--line-2);border-radius:999px;padding:4px 8px;color:var(--dim)}
.pick-title em[data-stage-state="Free"]{border-color:rgba(21,19,15,.45);color:var(--text);background:rgba(255,253,248,.6)}
.pick-title em[data-stage-state="Unlock"]{border-color:rgba(21,19,15,.4);color:var(--body);background:rgba(255,253,248,.45)}
.pick-desc{margin:0;font-size:13px;line-height:1.45;color:var(--muted);max-width:54ch}

.pick-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (min-width:1000px){.pick[data-pick="themes"] .pick-rail{grid-template-columns:repeat(8,minmax(0,1fr))}}
/* overflow:clip, not hidden. A hidden button inside a touch scroller is a
   WebKit bug: the plate paints and the thumb and label do not. clip still
   follows the radius, and it does not make the button a scroll container. */
.pick-tile{display:flex;flex-direction:column;min-height:44px;margin:0;padding:0;border:1px solid var(--line-3);border-radius:10px;background:var(--surface);color:inherit;text-align:left;cursor:pointer;overflow:clip;box-shadow:var(--shadow-1);transition:border-color .3s var(--ease),background-color .3s var(--ease),transform var(--dur-2) var(--ease),box-shadow .3s var(--ease)}
.pick-thumb{display:block;flex:0 0 auto;width:100%;min-height:0;aspect-ratio:16/10;padding:0;background:linear-gradient(180deg,#fdfbf6,#f1ebdf);border-bottom:1px solid var(--line-2);overflow:clip}
/* Template thumbs are a definite frame. The miniature is absolutely placed
   inside it, so its grid tracks resolve instead of collapsing to empty bars. */
.pick[data-pick="templates"] .pick-thumb{position:relative;aspect-ratio:5/2;max-height:64px;min-height:0;padding:0}
@media (min-width:960px){
  .pick[data-pick="templates"] .pick-thumb{aspect-ratio:2.6/1;max-height:72px}
  .pick[data-pick="templates"] .pick-meta{padding:4px 8px}
}
.pick-meta{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:4px 8px}
.pick-meta b{font:500 11.5px/1.2 var(--sans);letter-spacing:-.015em;color:var(--muted);transition:color .3s}
.pick-meta em{font:500 8.5px/1 var(--mono);letter-spacing:.07em;text-transform:uppercase;color:var(--body);font-style:normal;white-space:nowrap}
.pick-tile[data-state="Free"] .pick-meta em{color:var(--text)}
.pick-tile[data-state="Unlock"] .pick-meta em{color:var(--text);opacity:.85}
.pick-tile[aria-pressed=true]{border-color:var(--text);background:var(--surface-2);box-shadow:0 0 0 1px var(--text)}
.pick-tile[aria-pressed=true] .pick-meta b{color:var(--text)}
.pick-tile[aria-pressed=true] .pick-meta em{color:var(--body)}
/* Hover only where a pointer can actually hover; touch gets press feedback
   instead, so a tap never leaves a tile stuck in a hovered-looking state. */
@media (hover:hover){
  .pick-tile:hover{border-color:var(--line-3);background:#f7f2e7;box-shadow:var(--shadow-2)}
  .pick-tile:hover .pick-meta b{color:var(--text)}
}
.pick-tile:active{background:#efe8da}

/* Miniature pages. Each template tile draws the real arrangement: Spine is a
   timeline, Split is a masthead over two columns, Cards is framed blocks,
   Editorial is a centred masthead over a feature pair. The sheet is taken
   out of flow so percentage tracks have a definite box to fill. */
.pick[data-pick="templates"] .wire{
  position:absolute;inset:5px;display:grid;gap:4px;height:auto;min-height:0;
  padding:5px;border-radius:5px;overflow:hidden;align-content:stretch;
  background:linear-gradient(180deg,rgba(255,253,248,.85),rgba(255,253,248,.55));
  border:1px solid rgba(21,19,15,.16);
}
.pick-tile[aria-pressed=true] .wire{border-color:rgba(21,19,15,.34);background:linear-gradient(180deg,#fffdf8,rgba(255,253,248,.75))}
.wire i:not(.w-face){display:block;min-height:0;border-radius:2px;background:rgba(21,19,15,.16)}
.w-face{
  display:block;width:16px;height:16px;max-width:16px;border-radius:50%;justify-self:center;
  background:
    radial-gradient(120% 70% at 50% 12%, #3a241c 0 36%, transparent 37%),
    radial-gradient(circle at 50% 62%, #f2c7a8 0 58%, #d3926a 100%);
  box-shadow:inset 0 0 0 1px rgba(21,19,15,.18);
}
.w-lines{display:grid;gap:3px;align-content:center;min-width:0}
.w-lines b{display:block;height:3px;border-radius:2px;background:rgba(21,19,15,.72)}
.w-lines b:nth-child(2){width:64%;height:2px;background:rgba(21,19,15,.28)}
.w-id,.w-plate,.wire[data-layout="split"] .w-mast{display:grid;grid-template-columns:16px 1fr;gap:6px;align-items:center;min-width:0}
.wire[data-layout="split"] .w-mast{grid-template-columns:1fr 16px;padding-bottom:4px;border-bottom:1px solid rgba(21,19,15,.18)}
.wire[data-layout="split"] .w-mast .w-face{justify-self:end}
.w-plate{padding:4px;border:1px solid rgba(21,19,15,.22);border-radius:4px;background:rgba(255,253,248,.55)}
.wire[data-layout="spine"]{grid-template-rows:auto minmax(0,1fr)}
.w-spine{
  display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;min-height:0;
  margin-left:5px;padding-left:8px;border-left:1px solid rgba(21,19,15,.28);
}
.w-spine i{align-self:center;height:46%;position:relative}
.w-spine i:nth-child(2){width:78%}
.w-spine i:nth-child(3){width:62%}
.w-spine i::before{
  content:"";position:absolute;left:-11px;top:50%;width:5px;height:5px;margin-top:-2.5px;
  border-radius:50%;background:#141414;box-shadow:0 0 0 1px rgba(248,245,239,.7);
}
.wire[data-layout="split"],.wire[data-layout="cards"],.wire[data-layout="editorial"],.wire[data-layout="columns"]{grid-template-rows:auto minmax(0,1fr)}
.w-mast--center{display:grid;justify-items:center;align-content:center;gap:2px;padding-bottom:3px;border-bottom:1px solid rgba(21,19,15,.2)}
.w-mast--center .w-face{width:12px;height:12px;max-width:12px}
.w-mast--center em{display:block;width:62%;height:4px;border-radius:2px;background:rgba(21,19,15,.78)}
.w-mast--center>b{display:block;width:36%;height:2px;border-radius:2px;background:rgba(21,19,15,.3)}
.w-pair{display:grid;grid-template-columns:1fr 1fr;gap:5px;min-height:0;background-image:linear-gradient(to right,transparent calc(50% - .5px),rgba(21,19,15,.22) calc(50% - .5px),rgba(21,19,15,.22) calc(50% + .5px),transparent calc(50% + .5px))}
.w-pair>span{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;min-height:0;padding-top:3px}
.w-pair i{align-self:center;height:52%}
.w-pair>span:first-child i:nth-child(2),.w-pair>span:last-child i:nth-child(3){width:72%}
.w-cards{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:3px;min-height:0}
.w-cards i{height:auto;align-self:stretch;border:1px solid rgba(21,19,15,.22);border-radius:3px;background:rgba(255,253,248,.7)}

/* Ledger: a label rail down the left, dense rows on the right. The rail is a
   fraction, not a fixed width, so the drawing holds at every thumb size. */
.wire[data-layout="ledger"]{grid-template-columns:minmax(0,32%) 1fr}
.w-led{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:3px;min-height:0;padding-right:7px;border-right:1px solid rgba(21,19,15,.22)}
.w-led i{align-self:center;height:44%;width:78%}
.w-led i:nth-child(2){width:58%}
.w-led i:nth-child(4){width:48%}
.w-rows{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:3px;min-height:0}
.w-rows i{align-self:center;height:50%}
.w-rows i:nth-child(2){width:82%}
.w-rows i:nth-child(4){width:66%}

/* Gallery: numbered cells. Each cell keeps a marker in the corner, which is
   what reads as a record rather than a plain block of rows. */
.w-cells{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;min-height:0}
.w-cells i{height:auto;align-self:stretch;border:1px solid rgba(21,19,15,.22);border-radius:3px;position:relative}
.w-cells i::before{content:"";position:absolute;left:3px;top:3px;width:5px;height:2px;border-radius:1px;background:rgba(21,19,15,.34)}

/* Plate: one enormous centred name, everything else standing back. */
.pick[data-pick="templates"] .wire[data-layout="plate"]{grid-template-columns:1fr;align-content:center;justify-items:center}
.w-plate-lg{display:grid;justify-items:center;gap:3px;width:100%}
.w-plate-lg .w-face{width:20px;height:20px;max-width:20px}
.w-plate-lg em{display:block;width:74%;height:8px;border-radius:2px;background:rgba(21,19,15,.78)}
.w-plate-lg b{display:block;height:3px;border-radius:2px;background:rgba(21,19,15,.26)}
.w-plate-lg b:nth-of-type(1){width:42%}
.w-plate-lg b:nth-of-type(2){width:28%}

/* Swap: the frame wipes left-to-right while the caption rises in behind it,
   the same clip-and-stagger the CV site uses between sections. Transform,
   clip-path and opacity only, so it holds 60fps on a mid-range phone. The
   layout change itself is instant; the staggered entrance that follows it is
   the motion engine's, which replays from the top of the new document. */
@keyframes stage-wipe{from{clip-path:inset(0 100% 0 0);transform:scale(.985)}to{clip-path:inset(0 0 0 0);transform:none}}
@keyframes stage-info{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
html.motion .pick-stage.is-swapping .psite{animation:stage-wipe .46s var(--ease-out) both}
html.motion .pick-stage.is-swapping .pick-info>*{animation:stage-info .5s var(--ease-out) both}
html.motion .pick-stage.is-swapping .pick-info>*:nth-child(2){animation-delay:60ms}
/* Theme swap: the same clip-and-stagger, so choosing a palette feels identical
   to choosing a layout. The palette itself cross-fades via .tstage's transition. */
@keyframes theme-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes theme-part{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html.motion .pick-stage.is-swapping .tstage{animation:theme-wipe .46s var(--ease-out) both}
html.motion .pick-stage.is-swapping .tstage-body>*{animation:theme-part .5s var(--ease-out) both}
html.motion .pick-stage.is-swapping .tstage-body>*:nth-child(2){animation-delay:50ms}
html.motion .pick-stage.is-swapping .tstage-body>*:nth-child(3){animation-delay:95ms}
html.motion .pick-stage.is-swapping .tstage-body>*:nth-child(4){animation-delay:130ms}
/* One pass of light across the whole stage when the selection changes, so the
   swap is marked by a single sweep rather than the eye chasing a glint on every
   card. It trails the wipe by a beat and is drawn inside the canvas's own
   clipped box, so it cannot spill past the panel. */
@keyframes stage-sheen{from{background-position:-160% 0}to{background-position:265% 0}}
html.motion .pick-stage.is-swapping .pick-canvas::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;border-radius:inherit;background:linear-gradient(102deg,transparent 34%,rgba(255,255,255,.08) 50%,transparent 66%);background-size:52% 100%;background-repeat:no-repeat;background-position:-160% 0;animation:stage-sheen .62s var(--ease-io) .08s both}
@media (prefers-reduced-motion:reduce){
  html.motion .pick-stage.is-swapping .pick-canvas::after{content:none}
  html.motion .pick-stage.is-swapping .psite,
  html.motion .pick-stage.is-swapping .pick-info>*,
  html.motion .pick-stage.is-swapping .tstage,
  html.motion .pick-stage.is-swapping .tstage-body>*,
  html.motion .psite.is-leaving,
  html.motion .psite.is-entering,
  html.motion .pm-frame.is-framing{animation:none!important}
  /* Belt and braces for the preview engine. It declines to start when the OS
     asks for less, but that preference is read once at load: a visitor who
     changes it mid-session would leave the engine running, so the held-back
     states — and the scrubbed ones — are released here too. */
  html.motion .ps-live .pm-progress{display:none}
  html.motion .ps-live .psite [data-rv]{opacity:1;translate:none;scale:none;transition:none}
  html.motion .ps-live .psite [data-par]{transform:none}
  html.motion .ps-live .psite .ps-sec>.ps-label{position:static;opacity:.5}
  html.motion .ps-live .psite .ps-projs[data-track]{display:grid;overflow:visible;transform:none}
  html.motion .ps-live .psite .ps-foot[data-pin="end"]{position:static;transform:none}
  html.motion .ps-live .psite .ps-proj{transform:none}
  html.motion .ps-live .psite .ps-role-ach li{opacity:.6!important}
  html.motion .ps-live .psite .ps-set-items li,
  html.motion .ps-live .psite .ps-proj-tags i{opacity:.7!important}
  html.motion .ps-live .psite .ps-role-ach li,
  html.motion .ps-live .psite .ps-set-items li,
  html.motion .ps-live .psite .ps-proj-tags i{transform:none;transition:none}
}

/* ── Themes ───────────────────────────────────────────────────────────────
   The same stage-and-rail contract as Templates, so a palette previews exactly
   the way a layout does. Only two things differ: the stage paints from the
   --t-* tokens instead of the wireframe bars, and a tile carries data-theme
   instead of data-layout. */
.pick[data-pick="themes"] .pick-thumb{display:flex;background:var(--t-bg);border-bottom-color:var(--t-line)}

/* Thumbnail: the palette's own colours at tile scale, so eight of them read as
   eight different schemes rather than eight identical grey cards. */
.ts-mini{display:flex;flex-direction:column;justify-content:space-between;gap:5px;width:100%}
.ts-mini b{display:flex;align-items:center;gap:6px;font:400 clamp(14px,1.6vw,18px)/1 var(--t-display,var(--sans));letter-spacing:-.03em;color:var(--t-fg)}
.ts-mini b::before{content:"";flex:none;width:9px;height:9px;border-radius:3px;background:var(--t-accent)}
.ts-mini i{display:block;height:4px;border-radius:2px;background:var(--t-fg);opacity:.32}
.ts-mini i.s{width:60%}
.ts-mini i.bar{width:44%;height:6px;border-radius:3px;background:var(--t-accent);opacity:1}

/* Stage: the chosen palette at full size. The transition is what makes the
   change read as a re-skin rather than a re-render — the wipe clips the frame
   while these colours cross-fade underneath it. */
.tstage{flex:1;display:flex;padding:clamp(16px,2.4vw,26px);border:1px solid var(--t-line);border-radius:10px;background:var(--t-bg);color:var(--t-fg);transition:background-color .42s var(--ease),color .42s var(--ease),border-color .42s var(--ease)}
.tstage-body{display:flex;flex-direction:column;justify-content:space-between;gap:clamp(12px,2vw,20px);width:100%}
.ts-hero{display:flex;align-items:center;gap:12px}
.ts-aa{font:400 clamp(30px,4.6vw,52px)/1 var(--t-display,var(--sans));letter-spacing:-.045em;color:var(--t-fg)}
.ts-dot{flex:none;width:clamp(15px,1.9vw,21px);height:clamp(15px,1.9vw,21px);border-radius:6px;background:var(--t-accent)}
.ts-lines{display:grid;gap:7px}
.ts-lines span{display:block;height:5px;border-radius:3px;background:var(--t-fg);opacity:.3}
.ts-lines span.s{width:58%}
.ts-bar{display:block;height:9px;width:44%;border-radius:5px;background:var(--t-accent)}
.ts-chips{display:flex;gap:6px}
.ts-chips span{display:block;width:14px;height:14px;border-radius:4px;background:var(--t-fg)}
.ts-chips span:nth-child(2){background:var(--t-accent)}
.ts-chips span:nth-child(3){opacity:.18}

/* Palettes. Declared on whatever carries data-theme, so a tile, its thumbnail
   and the stage all inherit one set of tokens from a single attribute. */
[data-theme="obsidian"]{--t-bg:#070707;--t-fg:#f2f2f2;--t-accent:#f2f2f2;--t-line:rgba(255,255,255,.14)}
[data-theme="ivory"]{--t-bg:#faf7f1;--t-fg:#14120f;--t-accent:#14120f;--t-line:rgba(20,18,15,.16)}
[data-theme="graphite"]{--t-bg:#17181a;--t-fg:#ececec;--t-accent:#cfd3d9;--t-line:rgba(255,255,255,.14)}
[data-theme="ember"]{--t-bg:#0b0907;--t-fg:#f5efe7;--t-accent:#d98a3f;--t-line:rgba(245,239,231,.15)}
[data-theme="blueprint"]{--t-bg:#070d14;--t-fg:#e6f0f7;--t-accent:#4fb3e8;--t-line:rgba(230,240,247,.15)}
[data-theme="sage"]{--t-bg:#101412;--t-fg:#e8efe9;--t-accent:#7fb08a;--t-line:rgba(232,239,233,.15)}
[data-theme="editorial"]{--t-bg:#f4efe6;--t-fg:#191713;--t-accent:#8a1f14;--t-line:rgba(25,23,19,.16);--t-display:var(--serif)}
[data-theme="terminal"]{--t-bg:#000;--t-fg:#d5ffd5;--t-accent:#46d246;--t-line:rgba(70,210,70,.28);--t-display:var(--mono)}
/* The preview's light ground. White enough to read as paper, warm enough that
   it still belongs to the same monochrome page. */
[data-theme="light"]{--t-bg:#f6f5f2;--t-fg:#141414;--t-accent:#141414;--t-line:rgba(20,20,20,.16)}

.unlock-note{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;justify-content:space-between;margin-top:clamp(24px,3vw,36px);padding-top:22px;border-top:1px solid var(--line)}
.unlock-note p{font-size:14.5px;color:var(--muted);max-width:62ch;line-height:1.6}

/* ── Premium feature tiles ─────────────────────────────────────────────── */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.5vw,20px);margin-top:var(--gap-grid)}
@media (max-width:1040px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid-4{grid-template-columns:1fr}}
.feat{position:relative;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--bg-2);padding:clamp(20px,2.2vw,26px);display:flex;flex-direction:column;gap:11px;min-height:190px;overflow:hidden;box-shadow:var(--shadow-1);transition:border-color .4s var(--ease),transform .4s var(--ease),box-shadow .4s var(--ease)}
.feat:hover{border-color:var(--line-3);transform:translateY(-4px) scale(1.01);box-shadow:var(--shadow-2)}
.feat h3{font:500 17.5px/1.25 var(--sans);letter-spacing:-.02em;color:var(--text)}
.feat p{font-size:14px;line-height:1.6;color:var(--muted)}
.feat-ico{width:22px;height:22px;stroke:var(--line-3);fill:none;stroke-width:1.3}
.feat-mock{margin-top:auto;display:grid;gap:6px;padding-top:12px;border-top:1px solid var(--line)}
.feat-mock i{display:block;height:5px;border-radius:3px;background:rgba(21,19,15,.1)}
.feat-mock i:nth-child(2){width:72%}
.feat-mock i:nth-child(3){width:46%}

/* ── Pricing ───────────────────────────────────────────────────────────── */
/* Stretch, not start: the plans carry different numbers of lines, and the three
   calls to action are pinned to the bottom of each card, so letting the cards
   share the tallest height is what puts those buttons on one line. */
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.8vw,22px);margin-top:var(--gap-grid);padding-top:18px;align-items:stretch}
@media (max-width:940px){.pgrid{grid-template-columns:1fr;max-width:560px}}
.plan{border:1px solid var(--line-2);border-radius:var(--radius);background:var(--bg-2);padding:clamp(24px,2.6vw,32px);display:flex;flex-direction:column;gap:18px;position:relative;box-shadow:var(--shadow-1);transition:border-color .4s var(--ease),transform .4s var(--ease),box-shadow .4s var(--ease)}
.plan:hover{border-color:var(--line-3);transform:translateY(-4px) scale(1.01);box-shadow:var(--shadow-3)}
.plan--key{border-color:var(--line-3);background:linear-gradient(180deg,#f6f0e4,#ebe3d3);box-shadow:var(--shadow-key)}
.plan--key:hover{box-shadow:0 18px 40px rgba(76,42,133,.26),0 2px 6px rgba(76,42,133,.2)}
.plan--key::before{content:"";position:absolute;inset:0;border-radius:var(--radius);background:radial-gradient(90% 45% at 50% 0%,rgba(76,42,133,.07),transparent 70%);pointer-events:none}
.plan-head{display:flex;flex-direction:column;gap:8px;position:relative}
.plan-name{font:500 12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.plan-price{display:flex;align-items:baseline;gap:10px;color:var(--text)}
.plan-price b{font:500 clamp(34px,3.6vw,44px)/1 var(--sans);letter-spacing:-.05em}
.plan-price span{font:400 11.5px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.plan-desc{font-size:14.5px;line-height:1.6;color:var(--muted);position:relative}
.plan ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-size:14.5px;color:var(--body);position:relative}
.plan li{display:grid;grid-template-columns:16px 1fr;gap:11px;line-height:1.5}
.plan li svg{width:15px;height:15px;margin-top:3px;stroke:var(--line-3);fill:none;stroke-width:1.5}
.plan li.is-off{color:var(--dim)}
.plan li.is-off svg{stroke:var(--dim)}
.plan .btn{margin-top:auto;position:relative}
.plan-badge{position:absolute;top:-11px;right:clamp(24px,2.6vw,32px);z-index:2;border:1px solid var(--marigold);background:var(--marigold);color:var(--night);border-radius:999px;padding:5px 12px;font:500 10.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.pnote{margin-top:22px;font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}
.pnote svg{width:14px;height:14px;stroke:var(--line-3);fill:none;stroke-width:1.5;flex:none}
/* The domain add-on is an offer, not a footnote, so it carries more weight and
   full-strength text instead of the muted note grey. */
.pnote--addon{font-weight:600;color:var(--text);font-size:14.5px}
.pnote--addon svg{stroke:var(--text);stroke-width:1.6}

/* Phone: a plan card is read one at a time in a narrow column, so its info text
   steps down a notch and tightens its gaps. The plan name and price stay large;
   only the supporting copy shrinks, so the card reads instead of crowding. This
   block sits after the base plan and note rules on purpose — at equal
   specificity the later rule wins, so it has to come last. */
@media (max-width:620px){
  .plan{padding:18px;gap:14px}
  .plan-desc{font-size:13px;line-height:1.5}
  .plan ul{font-size:13px;gap:8px}
  .plan li{grid-template-columns:15px 1fr;gap:9px;line-height:1.45}
  .plan li svg{width:14px;height:14px;margin-top:2px}
  .plan-badge{top:-10px;right:18px}
  .pnote{font-size:12.5px;line-height:1.5;margin-top:18px;gap:6px 14px}
  .pnote svg{width:13px;height:13px}
  .pnote--addon{font-size:13px}
}

/* Checkout states. Everything here is a state of the pricing block, so it lives
   with pricing rather than in the button block: a busy button is still a button,
   and the message and the receipt banner only ever appear inside #pricing. */
.btn[aria-busy="true"]{cursor:progress;opacity:.72}
.btn[aria-busy="true"]:hover{border-color:var(--line-3);transform:none}
.btn--solid[aria-busy="true"]:hover{background:var(--jacaranda);border-color:var(--jacaranda)}
.pay-msg{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:20px;padding:14px 18px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface);font-size:14.5px;line-height:1.55;color:var(--body)}
.pay-msg--error{border-color:#c45c4a;background:#faf4f2;color:#3a221c;box-shadow:0 0 0 1px rgba(196,92,74,.18)}
.pay-msg--info{border-color:var(--line-3);background:#f3f3f1}
.pay-msg[hidden]{display:none}
.pay-retry{border:1px solid var(--line-3);border-radius:999px;background:none;padding:8px 16px;font:500 13.5px/1 var(--sans);color:var(--text);cursor:pointer;transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease)}
@media (hover:hover){.pay-retry:hover{background:var(--surface-2);border-color:var(--night)}}
.pay-retry[hidden]{display:none}
.pay-done{display:flex;align-items:center;gap:11px;margin-top:clamp(24px,3vw,36px);padding:15px 20px;border:1px solid var(--line-3);border-radius:12px;background:linear-gradient(180deg,#fdfbf6,#f2ece1);font-size:14.5px;line-height:1.55;color:var(--text)}
.pay-done[hidden]{display:none}
.pay-done svg{width:16px;height:16px;flex:none;stroke:var(--night);fill:none;stroke-width:1.6}
.pay-email{display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:28rem;margin-top:22px}
.pay-email[hidden]{display:none}
.pay-email-lab{font:500 11.5px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--body)}
.pay-email-input{width:100%;min-height:52px;padding:0 18px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg-2);font:inherit;font-size:max(1rem,1em);line-height:1.4;color:var(--text);box-sizing:border-box}
.pay-email-input:focus{border-color:var(--line-3);background:var(--bg-2);outline:none;box-shadow:var(--ring)}
.pay-email-input:user-invalid,.pay-email-input[aria-invalid="true"]{border-color:#c45c4a}
.pay-email-hint{margin:0;font-size:13.5px;line-height:1.55;color:var(--muted)}

/* ── Intake ─────────────────────────────────────────────────────────────── */
/* Two ways to give one input, so neither reads as the fallback. Each option is
   its own plate; the file input is stretched invisibly over its plate, which
   keeps the whole thing clickable and keyboard-reachable while the visible
   copy is nothing but text. */
.need{margin-top:clamp(30px,3.6vw,48px);display:flex;flex-direction:column;gap:clamp(16px,2vw,24px)}
.need-opts{display:grid;grid-template-columns:1fr;gap:clamp(14px,1.8vw,22px);align-items:stretch}
.need-opt{display:flex;flex-direction:column;gap:clamp(12px,1.4vw,16px);min-width:0;margin:0;padding:clamp(20px,2.2vw,28px);border:1px solid var(--line-2);border-radius:var(--radius);background:linear-gradient(180deg,#fffdf9,#f4eee4);transition:border-color .4s var(--ease)}
@media (hover:hover){.need-opt:hover{border-color:var(--line-2)}}
.need-legend{display:flex;align-items:baseline;gap:10px;padding:0;font:500 clamp(16px,1.5vw,18.5px)/1.25 var(--sans);letter-spacing:-.02em;color:var(--text)}
.need-n{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;color:var(--dim)}

/* The "or" is a rule that turns: a horizontal divider between stacked options,
   a vertical one between side-by-side options. */
.need-or{display:flex;align-items:center;justify-content:center;gap:12px;font:500 11.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.need-or::before,.need-or::after{content:"";flex:1;height:1px;background:var(--line)}

.need-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.need-lab{font:500 11.5px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--body)}
/* Fields are shared by the CV form and the contact form, so the select and the
   textarea are styled here rather than in the contact block: one control, one
   look, whichever form it lives in. */
.need-field input,.need-field select,.need-field textarea{width:100%;min-height:52px;padding:0 18px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg-2);font:400 15.5px/1.4 var(--sans);color:var(--text);transition:border-color var(--dur-2) var(--ease),background-color var(--dur-2) var(--ease),box-shadow var(--dur-2) var(--ease)}
.need-field textarea{min-height:132px;padding:14px 18px;line-height:1.55;resize:vertical}
.need-field select{appearance:none;-webkit-appearance:none;padding-right:46px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23808080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:12px}
.need-field select option{background:var(--surface);color:var(--text)}
.need-field input::placeholder,.need-field textarea::placeholder{color:var(--dim)}
@media (hover:hover){.need-field input:hover,.need-field select:hover,.need-field textarea:hover{border-color:var(--line-3)}}
.need-field input:focus,.need-field select:focus,.need-field textarea:focus{border-color:var(--line-3);background:var(--bg-2);outline:none;box-shadow:var(--ring)}
.need-lab i{font-style:normal;letter-spacing:.04em;text-transform:none;color:var(--dim)}
.need-note{font-size:13.5px;line-height:1.62;color:var(--muted)}
.need-note b{font-weight:500;color:var(--body)}

.need-send{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:14px}
.need-send .btn{position:relative;z-index:2;flex:none;touch-action:manipulation}

.need-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.need-msg{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px 18px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface);font-size:14.5px;line-height:1.55;color:var(--body)}
.need-msg[hidden]{display:none}
.need-msg.is-ok{border-color:var(--line-3);color:var(--text)}
.need-msg.is-bad{border-style:dashed;border-color:var(--line-3);color:var(--text)}
.need-fine{font-size:12.5px;line-height:1.6;color:var(--dim);max-width:62ch}

@media (min-width:900px){
  .need-opts{grid-template-columns:1fr auto 1fr}
  .need-or{flex-direction:column;padding-block:4px}
  .need-or::before,.need-or::after{width:1px;height:auto}
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq{margin-top:clamp(30px,3.6vw,48px);border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;align-items:flex-start;gap:18px;padding:22px 0;cursor:pointer;list-style:none;font:500 clamp(16px,1.4vw,18.5px)/1.35 var(--sans);letter-spacing:-.015em;color:var(--text)}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--text)}
@media (hover:hover){
  .faq summary:hover{color:#0a0a0a}
}
.faq summary .q-i{margin-left:auto;flex:none;width:16px;height:16px;position:relative;margin-top:5px}
.faq summary .q-i::before,.faq summary .q-i::after{content:"";position:absolute;left:0;top:50%;width:16px;height:1px;background:var(--line-3);transition:transform .4s var(--ease),background .3s}
.faq summary .q-i::after{transform:rotate(90deg)}
.faq details[open] summary .q-i::after{transform:rotate(0)}
.faq details[open] summary{color:var(--text)}
.faq .a{padding:0 0 26px;max-width:72ch}
.faq .a p{font-size:15px;line-height:1.68;color:var(--muted)}
.faq .a p+p{margin-top:12px}
.faq .a strong{color:var(--body);font-weight:500}
/* <details> flips open with no transition of its own, so the answer is played
   in on the same curve the section headings use. Gated on .motion (which the
   head script clears when the visitor prefers reduced motion) and repeated
   under the reduce query so the toggle is instant for anyone who asked for it. */
html.motion .faq details[open] .a{animation:wipe-in .48s var(--ease-out) both}
@media (prefers-reduced-motion:reduce){html.motion .faq details[open] .a{animation:none!important}}

/* ── Contact form at the foot of the page ───────────────────────────────── */
/* The same /api/intake route as the CV form, reached with a message instead of
   a file, so it reuses .need-field, .need-msg and the honeypot and adds only
   the two-up row and the counters the contact shape needs. */
.cf{margin-top:clamp(28px,3.4vw,44px);display:grid;gap:clamp(16px,2vw,22px);border:1px solid var(--line-2);border-radius:var(--radius);background:linear-gradient(180deg,#fffdf9,#f4eee4);padding:clamp(20px,3vw,38px)}
.cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,2vw,20px)}
@media (max-width:620px){.cf-grid{grid-template-columns:1fr}}
.cf-send{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px}
.cf-send .btn{position:relative;z-index:2;touch-action:manipulation}
.cf-count{align-self:flex-end;font:400 11px/1 var(--mono);letter-spacing:.08em;color:var(--dim);transition:color var(--dur-2) var(--ease)}
.cf-count.is-near{color:var(--body)}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer{position:relative;z-index:2;padding:clamp(56px,7vw,96px) 0 calc(26px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.foot-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:32px 48px}
.foot-brand{display:flex;flex-direction:column;gap:12px;max-width:38ch}
.foot-name{display:inline-flex;align-items:center;gap:11px;color:var(--text);font:500 clamp(22px,2.4vw,30px)/1 var(--sans);letter-spacing:-.04em}
.foot-name .mark{width:29px;height:21px}
.foot-links{display:flex;flex-wrap:wrap;gap:14px 26px;list-style:none;margin:0;padding:0;font-size:14.5px;align-self:flex-start}
.foot-links a{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tap);min-height:var(--tap);padding:0 2px;color:var(--body);transition:color .25s}
.foot-links a:hover{color:var(--text)}
.foot-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 32px;margin-top:clamp(40px,5vw,72px);padding-top:20px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.foot-bottom .serif{font-size:15px;color:var(--body)}
.foot-tags{display:flex;flex-direction:column;gap:2px}

/* ── Marquee strip ─────────────────────────────────────────────────────── */
.strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;background:var(--bg-2)}
.strip-track{display:flex;gap:0;width:max-content}
.strip-track ul{display:flex;align-items:center;gap:clamp(28px,4vw,64px);list-style:none;margin:0;padding:18px clamp(14px,2vw,32px)}
.strip-track li{font:400 11.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--dim);white-space:nowrap}
.motion .strip-track{animation:slide 46s linear infinite}
@keyframes slide{to{transform:translateX(-50%)}}
html.no-motion .strip-track{animation:none}
/* Phone: the marquee keeps running a step down in type and a tighter row, so
   the band still reads as a slow crawl across the screen rather than being
   dropped. This sits after the base rules on purpose: the earlier mobile block
   is written above these rules, and at equal specificity the later rule wins. */
@media (max-width:620px){
  .strip-track ul{padding-block:14px}
  .strip-track li{font-size:10.5px}
}
@media (prefers-reduced-motion:reduce){.strip-track{animation:none!important}}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.mono--inline{font-family:var(--mono);font-size:.86em;letter-spacing:0;text-transform:none;color:var(--body)}
.hero-note{margin-top:14px}
.btn.is-done{border-color:var(--line-3);color:var(--muted)}
.btn.is-done .ar{opacity:.4}

/* ══ Preview triggers and modal ═══════════════════════════════════════════
   The tile still selects; a small affordance on each one opens a single
   reusable dialog showing the same person dressed in the chosen layout or
   palette. Type inside the example site is sized in cqi, and its multi-column
   layouts collapse through a container query on .pm-screen — never a window
   media query — so the desktop frame and the phone frame each get the right
   reflow at the same window size. */

/* ── Preview affordance on a tile ──────────────────────────────────────── */
/* Block, not flex. WebKit places an absolutely positioned flex child at its
   static position — beside the tile, covering the next card — so Preview and
   the layout under it trade taps. */
.pick-item{position:relative;display:block;min-width:0;border-radius:10px;isolation:isolate}
.pick-item>.pick-tile{display:flex;width:100%;touch-action:manipulation}
.pick-preview{position:absolute;top:4px;right:4px;z-index:4;display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:calc(100% - 8px);min-width:var(--tap);min-height:var(--tap);padding:0 10px;border:1px solid var(--line-2);border-radius:999px;background:rgba(255,253,248,.94);color:var(--text);font:500 10px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;cursor:pointer;touch-action:manipulation;pointer-events:auto;-webkit-tap-highlight-color:transparent;box-shadow:var(--shadow-1);transition:opacity .22s var(--ease),background-color var(--dur-2) var(--ease),border-color var(--dur-2) var(--ease),color var(--dur-2) var(--ease),box-shadow var(--dur-2) var(--ease)}
.pick-preview svg{width:15px;height:15px;flex:none}
/* A pointer can afford to be told twice: the tile selects, the eye opens.
   Touch gets the button permanently, because there is no hover to reveal it. */
@media (hover:hover) and (pointer:fine){
  .pick-preview{opacity:0}
  .pick-item:hover .pick-preview,.pick-item:focus-within .pick-preview{opacity:1}
}
@media (hover:none), (pointer:coarse){
  .pick-preview{opacity:1}
}
.pick-preview:hover,.pick-preview:focus-visible{opacity:1;background:rgba(255,253,248,.96);border-color:var(--line-3);color:var(--text);box-shadow:var(--shadow-2)}
@media (max-width:560px){.pick-preview span{display:none}.pick-preview{padding:0}}

/* Colour swatches and Motion sit as two labeled groups so selected states never contradict. */
.pick[data-pick="templates"]{gap:10px;margin-top:clamp(16px,2vw,24px);container:templates / inline-size}
.studio-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 18px}
.studio-group{display:flex;flex-direction:column;gap:6px;min-width:0}
.studio-group-label{margin:0;font:500 11px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--body)}
.tone-rail{display:flex;flex-wrap:wrap;gap:8px}
.tone{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:1px solid var(--line-2);border-radius:50%;background:var(--t-bg);cursor:pointer;touch-action:manipulation;box-shadow:inset 0 0 0 1px rgba(21,19,15,.04)}
.tone i{display:block;width:14px;height:14px;border-radius:4px;background:var(--t-accent)}
.tone[aria-checked="true"]{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--text)}
.ground{display:inline-flex;flex-wrap:nowrap;gap:2px;margin:0;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--bg-2)}
.ground-opt{display:inline-flex;align-items:center;justify-content:center;min-height:36px;margin:0;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:500 13px/1 var(--sans);cursor:pointer;touch-action:manipulation}
.ground-opt[aria-checked="true"]{background:var(--surface-2);color:var(--text);box-shadow:0 1px 2px rgba(21,19,15,.18)}

/* Mobile: peeker + dots when a horizontal rail has more tiles than fit. */
.rail-cue{display:none;align-items:center;justify-content:center;gap:10px;margin:10px 0 0;padding:0;color:var(--body);font:500 11.5px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}
.rail-cue-peeker{width:28px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--line-3),transparent);flex:none}
.rail-cue-dots{display:inline-flex;gap:5px;align-items:center}
.rail-cue-dots i{width:6px;height:6px;border-radius:50%;background:var(--line-3);opacity:.55}
.rail-cue-dots i.is-on{background:var(--text);opacity:1;transform:scale(1.15)}
.rail-cue-hint{color:var(--body)}
@media (max-width:959.98px){
  .rail-cue[data-rail-cue="templates"]:not([hidden]){display:flex}
}
@media (max-width:940px){
  .rail-cue[data-rail-cue="pricing"]:not([hidden]){display:flex}
}

/* ── The picker on a phone ─────────────────────────────────────────────── */
/* One snapping row. Four full cards in a grid were taller than the chooser
   needed to be; a short strip keeps every layout one thumb high. */
@media (max-width:959.98px){
  .pick[data-pick="templates"] .pick-stage{margin-inline:0;border:0;border-radius:0;background:transparent}
  .pick[data-pick="templates"] .pick-rail{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(128px,42vw);
    grid-template-columns:none;
    align-items:stretch;
    gap:8px;
    margin-inline:calc(-1 * var(--gutter));
    padding:0 var(--gutter) 2px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:var(--gutter);
    scrollbar-width:none;
  }
  .pick[data-pick="templates"] .pick-rail::-webkit-scrollbar{display:none}
  .pick[data-pick="templates"] .pick-item{
    width:auto;
    min-width:0;
    max-width:none;
    scroll-snap-align:start;
  }
  .pick[data-pick="templates"] .pick-thumb{
    aspect-ratio:16/10;
    height:auto;
    min-height:72px;
    max-height:88px;
    padding:0;
    overflow:clip;
  }
  .pick[data-pick="templates"] .wire{inset:3px;gap:2px;padding:3px}
  /* A 44px thumb is half the height of the desktop one, so the plate drawing
     scales its parts down rather than overflowing the frame. */
  .pick[data-pick="templates"] .w-plate-lg{gap:2px}
  .pick[data-pick="templates"] .w-plate-lg .w-face{width:14px;height:14px;max-width:14px}
  .pick[data-pick="templates"] .w-plate-lg em{height:6px}
  .pick[data-pick="templates"] .pick-meta{
    gap:3px;
    padding:4px 30px 4px 6px;
  }
  .pick[data-pick="templates"] .pick-meta b{font-size:11.5px}
  .pick[data-pick="templates"] .pick-meta em{font-size:8px;letter-spacing:.05em}
  /* 24px is the floor WCAG 2.5.8 (Target Size Minimum, AA) sets for a control,
     and it is the smallest size that still fits the eye glyph with a clear ring
     of padding around it. The meta text reserves the space so the two never
     trade taps. */
  .pick[data-pick="templates"] .pick-preview{
    top:auto;
    bottom:3px;
    right:3px;
    min-width:24px;
    min-height:24px;
    width:24px;
    height:24px;
    padding:0;
    opacity:1;
  }
  .pick[data-pick="templates"] .pick-preview span{display:none}
  .ground-opt{min-height:40px;padding:0 12px}
  @container templates (min-width:720px){
    .pick[data-pick="templates"] .pick-rail{
      grid-auto-flow:row;
      grid-auto-columns:unset;
      grid-template-columns:repeat(4,minmax(0,1fr));
      margin-inline:0;
      padding:0;
      overflow:visible;
    }
    .pick[data-pick="templates"] .pick-thumb{height:auto;min-height:72px;max-height:88px}
  }
  .studio-bar{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    min-width:0;
    width:100%;
    max-width:100%;
  }
  .studio-group{max-width:100%}
  .tone-rail{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    min-width:0;
    box-sizing:border-box;
    width:100vw;
    max-width:100vw;
    margin-inline:calc(-1 * var(--gutter));
    padding-inline:var(--gutter);
  }
  .tone-rail::-webkit-scrollbar{display:none}
  .tone-rail .tone{flex-shrink:0}
  .ground{width:max-content}
  .pick[data-pick="templates"] .pick-info{padding:0 0 10px}
  .pick[data-pick="templates"] .pick-desc{font-size:12.5px;line-height:1.4;max-width:none}
  .pick-tile{touch-action:manipulation}
  .pick-canvas{aspect-ratio:auto;height:min(400px,54vh);min-height:260px}
  .pick[data-pick="templates"] .pick-canvas-wrap{background:transparent;border-bottom:0;padding:0}
  .pick[data-pick="templates"] .view-toggle{margin:0 auto 8px}
  .pick[data-pick="templates"] .pick-canvas:not(.is-mobile-view){border:1px solid var(--line);border-radius:12px;margin:0;width:100%}
  /* Inline picker scrollport is full viewport width; bump cqi floors so type
     reads at arm's length instead of shrinking to the old 11.5px floor. */
  .pick-canvas .pick-screen .psite{font-size:clamp(14px,3.75cqi,16px)}
  .pick-canvas .pick-screen .psite .ps-name{font-size:clamp(26px,7.6cqi,44px)}
  .pick-canvas .pick-screen .psite .ps-role-title{font-size:clamp(14.5px,4.1cqi,17px)}
  .pick-canvas .pick-screen .psite .ps-intro{font-size:clamp(13.5px,3.8cqi,16px)}
  .pick-canvas .pick-screen .psite .ps-role-meta{font-size:clamp(11px,3.1cqi,12px)}
}

/* ── The dialog ────────────────────────────────────────────────────────── */
/* Opacity only. Animating display/overlay with allow-discrete and
   @starting-style leaves the dialog at opacity 0 on iOS, so a tap looks
   like it did nothing. */
.pm{position:fixed;inset:0;z-index:60;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:clamp(8px,2vw,26px);border:0;background:transparent;color:var(--text);opacity:0;overflow:hidden}
.pm[open]{display:flex;align-items:center;justify-content:center;opacity:1}
.pm::backdrop{background:rgba(20,20,20,.55)}
html.motion .pm{transition:opacity .3s var(--ease)}
html.pm-open{overflow:clip}

/* height:100% rather than max-height:100% on purpose: the phone frame's width is
   derived from its aspect ratio, which only resolves against a definite height.
   With a content-sized shell that height is indefinite and the frame collapses. */
.pm-shell{position:relative;display:flex;flex-direction:column;width:100%;max-width:1160px;height:100%;max-height:100%;min-height:0;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--bg-2);box-shadow:0 40px 120px rgba(21,19,15,.32);overflow:hidden}
html.motion .pm-shell{transition:opacity .3s var(--ease-out),transform .44s var(--ease-back)}

/* ── Dialog header ─────────────────────────────────────────────────────── */
.pm-bar{display:flex;align-items:center;justify-content:space-between;gap:clamp(10px,1.6vw,22px);flex-wrap:wrap;flex:none;padding:clamp(12px,1.5vw,17px) clamp(13px,1.7vw,20px);border-bottom:1px solid var(--line);background:var(--bg-2)}
.pm-lead{display:flex;flex-direction:column;gap:5px;min-width:0}
.pm-eyebrow{font:400 9.5px/1 var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
.pm-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pm-title b{font:500 clamp(16px,1.5vw,20px)/1.15 var(--sans);letter-spacing:-.03em;color:var(--text)}
.pm-title em{font:400 9.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;font-style:normal;border:1px solid var(--line-2);border-radius:999px;padding:5px 9px;color:var(--dim)}
.pm-title em[data-pm-state="Free"]{border-color:rgba(21,19,15,.34);color:var(--text)}
.pm-controls{display:flex;align-items:center;gap:clamp(8px,1.2vw,14px);flex-wrap:wrap;margin-left:auto}
.pm-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--bg)}
.pm-vt{padding:7px 13px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:500 12px/1 var(--sans);cursor:pointer;transition:background-color .25s var(--ease),color .25s var(--ease),transform .25s var(--ease)}
.pm-vt.is-on{background:var(--surface-2);color:var(--text);box-shadow:0 1px 3px rgba(21,19,15,.26)}
.pm-nav{display:flex;gap:6px}
.pm-ic{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--body);cursor:pointer;transition:border-color .25s var(--ease),background-color .25s var(--ease),color .25s var(--ease),transform .25s var(--ease)}
.pm-ic svg{width:16px;height:16px}
.pm-close{padding:9px 15px;border:1px solid var(--line-2);border-radius:999px;background:none;color:var(--text);font:500 12.5px/1 var(--sans);cursor:pointer;transition:background-color .25s var(--ease),border-color .25s var(--ease),transform .25s var(--ease)}
@media (hover:hover){
  .pm-ic:hover{border-color:var(--line-3);background:var(--surface);color:var(--text)}
  .pm-close:hover{background:var(--surface);border-color:var(--night)}
}

/* ── Stage: the frame, and the two shapes it takes ─────────────────────── */
.pm-viewport{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(12px,2vw,26px);background:radial-gradient(80% 60% at 50% 0%,rgba(21,19,15,.03),transparent 72%),linear-gradient(180deg,#f1ebdf,#e6dece);overflow:hidden}
.pm-frame{position:relative;flex:none;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-2);border:1px solid var(--line-2);box-shadow:0 24px 60px rgba(21,19,15,.16)}
/* Desktop: a wide window at roughly 16:9. The height cap matters more than the
   ratio on a short laptop screen — the window squashes a little and the page
   inside it scrolls, which is the honest thing for a preview to do. */
.pm-frame.is-desktop{width:100%;max-width:1000px;max-height:100%;aspect-ratio:16/9;border-radius:12px;border:1px solid rgba(21,19,15,.22)}
/* Mobile: the height decides the width, so the phone keeps its proportions
   whatever the viewport gives it. */
.pm-frame.is-mobile{height:100%;width:auto;aspect-ratio:390/770;max-width:100%;padding:12px;border-width:2px;border-color:#2a2a2a;border-radius:36px;background:var(--night);box-shadow:0 28px 70px rgba(21,19,15,.26),inset 0 0 0 1px rgba(255,255,255,.04)}
.pm-frame.is-mobile .pm-chrome{display:none}
.pm-frame.is-mobile .pm-screen{border-radius:26px}
@keyframes pm-frame-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
html.motion .pm-frame.is-framing{animation:pm-frame-in .36s var(--ease-out) both}

.pm-chrome{display:flex;align-items:center;gap:12px;flex:none;height:38px;padding:0 13px;border-bottom:1px solid var(--line);background:rgba(21,19,15,.03)}
.pm-dots{display:flex;gap:6px;flex:none}
.pm-dots i{width:8px;height:8px;border-radius:50%;background:rgba(21,19,15,.22)}
.pm-url{flex:1;min-width:0;display:flex;justify-content:center}
.pm-url em{max-width:100%;padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:var(--bg-2);font:400 10.5px/1 var(--mono);font-style:normal;letter-spacing:.04em;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* The scrolling window onto the example site — and the container query
   context every layout below measures itself against. */
.pm-screen{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:auto;-webkit-overflow-scrolling:touch;background:var(--t-bg,#070707);scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}

/* Scroll progress for the preview. Sticky rather than absolute so it rides the
   top of the scrollport instead of scrolling away with the article, and pulled
   out of the flow with the negative margin so it costs the layout nothing. */
.pm-progress{position:sticky;top:0;z-index:3;display:block;height:2px;margin-bottom:-2px;transform:scaleX(var(--pm-p,0));transform-origin:0 50%;background:var(--t-accent,#f2f2f2);opacity:.42;pointer-events:none}
html.motion .pm-progress{transition:transform .12s linear}

/* ── Dialog footer ─────────────────────────────────────────────────────── */
.pm-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;flex:none;padding:clamp(12px,1.5vw,16px) clamp(13px,1.7vw,20px);border-top:1px solid var(--line);background:var(--bg-2)}
.pm-desc{font-size:13.5px;line-height:1.55;color:var(--muted);max-width:70ch}
.pm-hint{display:flex;align-items:center;gap:7px;font:400 11px/1 var(--mono);letter-spacing:.08em;color:var(--dim);white-space:nowrap}
.pm-key{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:1px solid var(--line-2);border-radius:5px;background:var(--bg);font:400 11px/1 var(--mono);color:var(--body)}
@media (max-width:1100px){.pm-hint{display:none}}

/* On a phone the shell already fills the screen, so it spends every pixel it
   can on the preview: the scrim drops to nothing, the shell loses the frame it
   no longer needs, and the header and footer tighten to a single line each. The
   controls inside grow to the same 44px floor as everything else, which the
   header's spare height easily absorbs. */
@media (max-width:620px){
  .pm{padding:0}
  .pm-shell{border:0;border-radius:0}
  .pm-bar{padding:10px 13px;gap:8px 10px}
  .pm-eyebrow{display:none}
  .pm-foot{padding:10px 13px}
  .pm-desc{font-size:12.5px;line-height:1.5}
  .pm-viewport{padding:8px}
  .pm-ic{width:var(--tap);height:var(--tap)}
  .pm-close{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 16px}
  .pm-vt{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 15px}
}

/* ══ The example site ═════════════════════════════════════════════════════
   One fixed DOM, eight arrangements. Colours come from the palette tokens
   when the frame carries a data-theme, and fall back to the default dark set
   when it does not, so the same markup serves both the layout and the theme
   preview without either knowing about the other. */
.psite{--s-bg:var(--t-bg,#070707);--s-fg:var(--t-fg,#f2f2f2);--s-accent:var(--t-accent,#f2f2f2);--s-line:var(--t-line,rgba(255,255,255,.14));--s-display:var(--t-display,var(--sans));
  display:flex;flex-direction:column;gap:clamp(18px,2.6cqi,34px);min-height:100%;padding:clamp(18px,3.6cqi,54px);background:var(--s-bg);color:var(--s-fg);font:400 clamp(11.5px,1.35cqi,15px)/1.6 var(--sans)}
/* Stepping forward leaves to the left and arrives from the right; stepping
   back mirrors both. The two halves run back to back around the swap, so the
   document changes while it is invisible. */
@keyframes pm-out{to{opacity:0;transform:translateX(var(--pm-out-to,-22px))}}
@keyframes pm-in{from{opacity:0;transform:translateX(var(--pm-from,22px))}to{opacity:1;transform:none}}
html.motion .psite.is-leaving{animation:pm-out .2s var(--ease-io) both}
html.motion .psite.is-entering{animation:pm-in .4s var(--ease-out) both}

.ps-head{display:flex;flex-direction:column;gap:5px;min-width:0}
.ps-photo{width:clamp(64px,16cqi,104px);aspect-ratio:1;height:auto;object-fit:cover;object-position:center 18%;border-radius:30%;border:1px solid var(--s-line);background:#161311;align-self:flex-start;flex:none;box-shadow:0 8px 18px rgba(21,19,15,.22)}
.ps-name{font:500 clamp(20px,3.9cqi,44px)/1.05 var(--s-display);letter-spacing:-.04em;color:var(--s-fg)}
.ps-post{font:400 clamp(10.5px,1.34cqi,14px)/1.3 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--s-fg);opacity:.6}
.ps-where{font:400 clamp(10px,1.24cqi,13px)/1.4 var(--mono);letter-spacing:.05em;color:var(--s-fg);opacity:.42}
.ps-intro{margin-top:8px;font-size:clamp(12px,1.6cqi,16px);line-height:1.66;color:var(--s-fg);opacity:.74;max-width:64ch}

.ps-sec{display:flex;flex-direction:column;gap:clamp(10px,1.4cqi,16px);min-width:0}
.ps-label{font:400 clamp(9px,1.1cqi,11px)/1 var(--mono);letter-spacing:.22em;text-transform:uppercase;color:var(--s-fg);opacity:.5}
.ps-roles{display:grid;gap:clamp(10px,1.6cqi,18px);min-width:0}
.ps-role{display:flex;flex-direction:column;gap:3px;min-width:0}
.ps-role-title{font:500 clamp(12.5px,1.7cqi,17px)/1.3 var(--sans);letter-spacing:-.015em;color:var(--s-fg)}
.ps-role-meta{font:400 clamp(9.5px,1.2cqi,12px)/1.45 var(--mono);letter-spacing:.05em;color:var(--s-fg);opacity:.5}
.ps-role-note{font-size:clamp(11px,1.4cqi,14px);line-height:1.62;color:var(--s-fg);opacity:.66;max-width:62ch}
.ps-chips{display:flex;flex-wrap:wrap;gap:7px}
.ps-chips i{padding:6px 11px;border:1px solid var(--s-line);border-radius:999px;font:400 clamp(9px,1.15cqi,11.5px)/1 var(--mono);font-style:normal;letter-spacing:.06em;color:var(--s-fg);opacity:.82;white-space:nowrap}
.ps-chips--core{margin-top:10px}

/* The first-screen cue, borrowed from the CV hero: a hairline that keeps
   travelling down until the reader takes the hint. */
.ps-cue{display:flex;align-items:center;gap:8px;margin-top:clamp(10px,1.6cqi,18px);font:400 clamp(8.5px,1.05cqi,10.5px)/1 var(--mono);letter-spacing:.24em;text-transform:uppercase;color:var(--s-fg);opacity:.34}
.ps-cue i{position:relative;display:block;width:1px;height:22px;background:var(--s-line);overflow:hidden}
.ps-cue i::after{content:"";position:absolute;inset:0;background:var(--s-accent);transform:translateY(-100%)}
html.motion .ps-cue i::after{animation:ps-cue 2.1s var(--ease-io) infinite}
@keyframes ps-cue{0%{transform:translateY(-100%)}45%{transform:translateY(0)}55%{transform:translateY(0)}100%{transform:translateY(100%)}}

/* Achievements hang off each entry as a ruled list rather than a paragraph,
   so a five-role history still reads as a set of accomplishments. */
.ps-role-ach{display:flex;flex-direction:column;gap:4px;margin-top:6px;padding:0;list-style:none}
.ps-role-ach li{position:relative;padding-left:14px;font-size:clamp(10.5px,1.32cqi,13.5px);line-height:1.56;color:var(--s-fg);opacity:.6}
.ps-role-ach li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:1px;background:var(--s-accent);opacity:.55}
.ps-role-where{font:400 clamp(9px,1.14cqi,11.5px)/1.4 var(--mono);letter-spacing:.05em;color:var(--s-fg);opacity:.38}

/* ── The anchor statement ───────────────────────────────────────────────
   Words are lit one after another as the block passes the middle of the
   scrollport — the CV site's colour scrub, expressed as opacity because the
   preview has to survive both dark and light palettes. */
.ps-statement{font:400 clamp(13.5px,2.05cqi,24px)/1.42 var(--s-display);letter-spacing:-.012em;color:var(--s-fg);max-width:36ch}
.ps-statement .w{opacity:.28}
html.motion .ps-statement .w{transition:opacity .34s linear}
.ps-statement .w.is-lit{opacity:1}

/* ── Certifications ─────────────────────────────────────────────────────── */
.ps-certs{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(150px,20cqi,240px),1fr));gap:clamp(10px,1.5cqi,16px);min-width:0}
.ps-cert{display:flex;flex-direction:column;gap:3px;min-width:0;padding:clamp(10px,1.4cqi,16px);border:1px solid var(--s-line);border-radius:12px}
.ps-cert-name{font:500 clamp(11.5px,1.5cqi,15px)/1.3 var(--sans);letter-spacing:-.01em;color:var(--s-fg)}
.ps-cert-body{font-size:clamp(10px,1.28cqi,13px);line-height:1.5;color:var(--s-fg);opacity:.62}
.ps-cert-dates,.ps-cert-id{font:400 clamp(8.5px,1.08cqi,11px)/1.5 var(--mono);letter-spacing:.05em;color:var(--s-fg);opacity:.4}
.ps-cert-id{opacity:.26}

/* ── Selected work ──────────────────────────────────────────────────────── */
.ps-projs{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(160px,22cqi,260px),1fr));gap:clamp(10px,1.5cqi,16px);min-width:0}
.ps-proj{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:clamp(9px,1.3cqi,15px);border-top:1px solid var(--s-line)}
.ps-proj-meta{font:400 clamp(8.5px,1.08cqi,11px)/1.4 var(--mono);letter-spacing:.09em;text-transform:uppercase;color:var(--s-fg);opacity:.4}
.ps-proj-name{font:500 clamp(12.5px,1.72cqi,17px)/1.28 var(--sans);letter-spacing:-.015em;color:var(--s-fg)}
.ps-proj-desc{font-size:clamp(10.5px,1.32cqi,13.5px);line-height:1.6;color:var(--s-fg);opacity:.6}
.ps-proj-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.ps-proj-tags i{padding:4px 9px;border:1px solid var(--s-line);border-radius:999px;font:400 clamp(8.5px,1.02cqi,10.5px)/1 var(--mono);font-style:normal;letter-spacing:.06em;color:var(--s-fg);opacity:.7;white-space:nowrap}

/* ── Capabilities ───────────────────────────────────────────────────────── */
.ps-skillsets{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(120px,15cqi,190px),1fr));gap:clamp(12px,1.8cqi,22px);min-width:0}
.ps-set{display:flex;flex-direction:column;gap:7px;min-width:0}
.ps-set-group{font:400 clamp(8.5px,1.08cqi,11px)/1 var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--s-fg);opacity:.44}
.ps-set-items{display:flex;flex-direction:column;gap:3px;margin:0;padding:0;list-style:none}
.ps-set-items li{font-size:clamp(10.5px,1.3cqi,13.5px);line-height:1.5;color:var(--s-fg);opacity:.7}

/* ── References ─────────────────────────────────────────────────────────── */
.ps-quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(190px,26cqi,300px),1fr));gap:clamp(12px,1.8cqi,22px);min-width:0}
.ps-quote{display:flex;flex-direction:column;gap:10px;min-width:0;margin:0;padding-top:clamp(10px,1.4cqi,16px);border-top:1px solid var(--s-line)}
.ps-quote-text{margin:0;font:400 clamp(12px,1.62cqi,16.5px)/1.5 var(--s-display);letter-spacing:-.01em;color:var(--s-fg);opacity:.86}
.ps-quote-by{display:flex;flex-direction:column;gap:2px}
.ps-quote-by b{font:500 clamp(10.5px,1.3cqi,13.5px)/1.4 var(--sans);color:var(--s-fg)}
.ps-quote-by span,.ps-quote-by em{font:400 clamp(9px,1.12cqi,11.5px)/1.5 var(--mono);font-style:normal;letter-spacing:.04em;color:var(--s-fg);opacity:.45}
.ps-quote-by em{opacity:.3}

/* ── Contact ────────────────────────────────────────────────────────────── */
.ps-contact{display:flex;flex-direction:column;gap:clamp(8px,1.2cqi,14px);min-width:0}
.ps-contact-rows,.ps-contact-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(150px,19cqi,230px),1fr));gap:clamp(6px,1cqi,12px)}
.ps-contact-row,.ps-contact-link{display:flex;flex-direction:column;gap:2px;min-width:0}
.ps-contact-row span,.ps-contact-link span{font:400 clamp(8.5px,1.08cqi,11px)/1 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--s-fg);opacity:.4}
.ps-contact-row b,.ps-contact-link b{font:400 clamp(10.5px,1.34cqi,13.5px)/1.5 var(--mono);color:var(--s-fg);opacity:.84;overflow-wrap:anywhere}
.ps-contact-note{max-width:52ch;font-size:clamp(10.5px,1.32cqi,13.5px);line-height:1.6;color:var(--s-fg);opacity:.55}

/* ── Sign-off ───────────────────────────────────────────────────────────── */
.ps-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;margin-top:auto;padding-top:clamp(12px,1.8cqi,22px);border-top:1px solid var(--s-line)}
.ps-foot-name{font:500 clamp(12px,1.5cqi,15px)/1.4 var(--sans);letter-spacing:-.01em;color:var(--s-fg);opacity:.8}
.ps-foot-url{font:400 clamp(9px,1.12cqi,11.5px)/1.4 var(--mono);letter-spacing:.06em;color:var(--s-fg);opacity:.34}

/* ── spine: one column, roles hung off a hairline timeline ─────────────── */
.psite[data-layout="spine"]{display:block}
.psite[data-layout="spine"] .ps-head{margin-bottom:clamp(20px,3cqi,36px)}
.psite[data-layout="spine"] .ps-sec{margin-bottom:clamp(18px,2.4cqi,30px)}
.psite[data-layout="spine"] .ps-sec:last-child{margin-bottom:0}
.psite[data-layout="spine"] .ps-roles[data-rail]{position:relative;padding-left:26px}
.psite[data-layout="spine"] .ps-roles[data-rail]::before{content:"";position:absolute;left:4px;top:9px;bottom:9px;width:1px;background:var(--s-line)}
.psite[data-layout="spine"] .ps-roles[data-rail] .ps-role{position:relative}
.psite[data-layout="spine"] .ps-roles[data-rail] .ps-role::before{content:"";position:absolute;left:-23px;top:7px;width:7px;height:7px;border-radius:50%;background:var(--s-accent)}

/* ── ledger: a label rail down the left, dense rows to the right ───────── */
.psite[data-layout="ledger"]{display:block}
.psite[data-layout="ledger"] .ps-head{display:grid;grid-template-columns:minmax(96px,22%) 1fr;gap:4px clamp(16px,3cqi,40px);align-items:baseline;padding-bottom:clamp(14px,2cqi,22px);border-bottom:1px solid var(--s-line)}
.psite[data-layout="ledger"] .ps-name{grid-column:1;font-size:clamp(18px,2.9cqi,34px)}
.psite[data-layout="ledger"] .ps-post{grid-column:2}
.psite[data-layout="ledger"] .ps-where{grid-column:2}
.psite[data-layout="ledger"] .ps-intro{grid-column:2;margin-top:2px}
.psite[data-layout="ledger"] .ps-sec{display:grid;grid-template-columns:minmax(96px,22%) 1fr;gap:clamp(16px,3cqi,40px);padding:clamp(12px,1.8cqi,20px) 0;border-bottom:1px solid var(--s-line)}
/* The statement has no label of its own, so it runs the full width rather
   than leaving the rail column empty beside it. */
.psite[data-layout="ledger"] .ps-sec--statement{display:block}
.psite[data-layout="ledger"] .ps-roles{gap:12px}
.psite[data-layout="ledger"] .ps-role{display:grid;grid-template-columns:1fr auto;gap:2px 16px}
/* Every part of an entry is placed by hand: an entry with no location simply
   leaves an empty row behind, which collapses to nothing. */
.psite[data-layout="ledger"] .ps-role-title{grid-area:1/1}
.psite[data-layout="ledger"] .ps-role-meta{grid-area:1/2;text-align:right}
.psite[data-layout="ledger"] .ps-role-where{grid-area:2/1/3/3}
.psite[data-layout="ledger"] .ps-role-note{grid-area:3/1/4/3}
.psite[data-layout="ledger"] .ps-role-ach{grid-area:4/1/5/3}

/* ── columns: narrative and evidence, side by side ─────────────────────── */
.psite[data-layout="columns"]{display:grid;grid-template-columns:minmax(180px,34%) 1fr;gap:clamp(18px,2.6cqi,34px) 0;align-content:start}
.psite[data-layout="columns"] .ps-head{grid-area:1/1/2/2}
.psite[data-layout="columns"] .ps-sec--skills{grid-area:2/1/3/2}
.psite[data-layout="columns"] .ps-sec--xp{grid-area:1/2/2/3}
.psite[data-layout="columns"] .ps-sec--edu{grid-area:2/2/3/3}
.psite[data-layout="columns"] .ps-sec--xp,.psite[data-layout="columns"] .ps-sec--edu{padding-left:clamp(18px,3.4cqi,48px);border-left:1px solid var(--s-line)}
/* Everything the two-column pair cannot hold continues underneath at full
   width, separated by a rule — the arrangement reads as a masthead over a
   record, which is the point of the layout. */
.psite[data-layout="columns"] .ps-sec--statement,
.psite[data-layout="columns"] .ps-sec--certs,
.psite[data-layout="columns"] .ps-sec--projects,
.psite[data-layout="columns"] .ps-sec--quotes,
.psite[data-layout="columns"] .ps-sec--contact,
.psite[data-layout="columns"] .ps-foot{grid-column:1/-1}
.psite[data-layout="columns"] .ps-sec--statement,
.psite[data-layout="columns"] .ps-sec--certs,
.psite[data-layout="columns"] .ps-sec--projects,
.psite[data-layout="columns"] .ps-sec--quotes,
.psite[data-layout="columns"] .ps-sec--contact{padding-top:clamp(12px,1.8cqi,22px);border-top:1px solid var(--s-line)}

/* ── split: a masthead, then experience in two columns ─────────────────── */
.psite[data-layout="split"]{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2.4cqi,30px) clamp(18px,3cqi,44px);align-content:start}
.psite[data-layout="split"] .ps-head,
.psite[data-layout="split"] .ps-sec--statement,
.psite[data-layout="split"] .ps-sec--xp,
.psite[data-layout="split"] .ps-sec--quotes,
.psite[data-layout="split"] .ps-sec--contact,
.psite[data-layout="split"] .ps-foot{grid-column:1/3}
.psite[data-layout="split"] .ps-head{gap:6px;padding-bottom:clamp(14px,2.2cqi,26px);border-bottom:1px solid var(--s-line)}
.psite[data-layout="split"] .ps-name{font-size:clamp(26px,5.4cqi,60px)}
.psite[data-layout="split"] .ps-intro{max-width:54ch}
.psite[data-layout="split"] .ps-sec--xp .ps-roles{grid-template-columns:1fr 1fr;gap:clamp(12px,1.8cqi,22px) clamp(16px,2.6cqi,34px)}
.psite[data-layout="split"] .ps-sec--xp .ps-role{padding-top:12px;border-top:1px solid var(--s-line)}
.psite[data-layout="split"] .ps-sec--edu{grid-column:1/2}
.psite[data-layout="split"] .ps-sec--certs{grid-column:2/3}
.psite[data-layout="split"] .ps-sec--projects{grid-column:1/2}
.psite[data-layout="split"] .ps-sec--skills{grid-column:2/3}

/* ── cards: every role framed as its own object ────────────────────────── */
.psite[data-layout="cards"]{display:block}
.psite[data-layout="cards"] .ps-head{margin-bottom:clamp(18px,2.6cqi,32px);border:1px solid var(--s-line);border-radius:12px;padding:clamp(12px,1.7cqi,20px);background:rgba(255,255,255,.014)}
.psite[data-layout="cards"] .ps-sec{margin-bottom:clamp(16px,2.2cqi,28px)}
.psite[data-layout="cards"] .ps-sec:last-child{margin-bottom:0}
.psite[data-layout="cards"] .ps-sec--xp .ps-roles{grid-template-columns:1fr 1fr;gap:clamp(10px,1.6cqi,18px)}
.psite[data-layout="cards"] .ps-role,
.psite[data-layout="cards"] .ps-cert,
.psite[data-layout="cards"] .ps-set,
.psite[data-layout="cards"] .ps-proj,
.psite[data-layout="cards"] .ps-quote{border:1px solid var(--s-line);border-radius:12px;padding:clamp(12px,1.7cqi,20px);gap:5px;background:rgba(255,255,255,.014)}
.psite[data-layout="cards"] .ps-role-ach{margin-top:8px}

/* ── gallery: numbered cells, built to be skimmed ──────────────────────── */
.psite[data-layout="gallery"]{display:block}
.psite[data-layout="gallery"] .ps-head{display:grid;grid-template-columns:1fr auto;gap:2px 20px;align-items:end;margin-bottom:clamp(18px,2.6cqi,32px)}
.psite[data-layout="gallery"] .ps-name{grid-column:1}
.psite[data-layout="gallery"] .ps-post{grid-column:1}
.psite[data-layout="gallery"] .ps-where{grid-column:2;grid-row:1;text-align:right}
.psite[data-layout="gallery"] .ps-intro{grid-column:1/3;margin-top:10px}
.psite[data-layout="gallery"] .ps-sec{margin-bottom:clamp(16px,2.4cqi,30px)}
.psite[data-layout="gallery"] .ps-sec:last-child{margin-bottom:0}
.psite[data-layout="gallery"] .ps-sec--xp{counter-reset:psg}
.psite[data-layout="gallery"] .ps-sec--xp .ps-roles{grid-template-columns:1fr 1fr;gap:0}
.psite[data-layout="gallery"] .ps-sec--xp .ps-role{counter-increment:psg;padding:clamp(12px,1.8cqi,22px) clamp(12px,1.6cqi,20px);border-top:1px solid var(--s-line)}
.psite[data-layout="gallery"] .ps-sec--xp .ps-role::before{content:counter(psg,decimal-leading-zero);display:block;margin-bottom:6px;font:400 clamp(9px,1.1cqi,11px)/1 var(--mono);letter-spacing:.16em;color:var(--s-fg);opacity:.38}
/* The same numbering carries the projects, so the two evidence sections read
   as one grid of cells rather than two different treatments. */
.psite[data-layout="gallery"] .ps-sec--projects{counter-reset:psp}
.psite[data-layout="gallery"] .ps-sec--projects .ps-projs{grid-template-columns:1fr 1fr;gap:0}
.psite[data-layout="gallery"] .ps-sec--projects .ps-proj{counter-increment:psp;padding:clamp(12px,1.8cqi,22px) clamp(12px,1.6cqi,20px);border-top:1px solid var(--s-line)}
.psite[data-layout="gallery"] .ps-sec--projects .ps-proj::before{content:counter(psp,decimal-leading-zero);display:block;margin-bottom:6px;font:400 clamp(9px,1.1cqi,11px)/1 var(--mono);letter-spacing:.16em;color:var(--s-fg);opacity:.38}
.psite[data-layout="gallery"] .ps-certs{grid-template-columns:1fr 1fr}

/* ── editorial: a serif masthead over a two-column feature ─────────────── */
.psite[data-layout="editorial"]{display:block}
.psite[data-layout="editorial"] .ps-head{text-align:center;border-block:1px solid var(--s-line);padding-block:clamp(16px,2.6cqi,34px);margin-bottom:clamp(18px,2.8cqi,36px)}
.psite[data-layout="editorial"] .ps-name{font-family:var(--serif);font-weight:400;font-style:italic;font-size:clamp(28px,6.4cqi,68px);letter-spacing:-.02em}
.psite[data-layout="editorial"] .ps-intro{margin-inline:auto}
.psite[data-layout="editorial"] .ps-sec{margin-bottom:clamp(16px,2.4cqi,30px)}
.psite[data-layout="editorial"] .ps-sec:last-child{margin-bottom:0}
.psite[data-layout="editorial"] .ps-label{text-align:center;letter-spacing:.34em}
.psite[data-layout="editorial"] .ps-sec--xp .ps-roles{grid-template-columns:1fr 1fr;gap:clamp(14px,2.2cqi,30px) clamp(18px,3cqi,40px)}
.psite[data-layout="editorial"] .ps-role-title{font-family:var(--serif);font-weight:400;font-size:clamp(15px,2cqi,22px);letter-spacing:0}
.psite[data-layout="editorial"] .ps-statement{font-size:clamp(16px,2.9cqi,32px);line-height:1.34;max-width:30ch;margin-inline:auto;text-align:center}
.psite[data-layout="editorial"] .ps-quote-text{font-size:clamp(13px,1.95cqi,21px)}
.psite[data-layout="editorial"] .ps-proj-name,.psite[data-layout="editorial"] .ps-cert-name{font-family:var(--serif);font-weight:400;font-size:clamp(14px,1.9cqi,20px);letter-spacing:0}

/* ── plate: one enormous name and everything else standing back ────────── */
.psite[data-layout="plate"]{align-items:center;text-align:center}
.psite[data-layout="plate"] .ps-head{align-items:center;padding-block:clamp(6px,2cqi,24px)}
.psite[data-layout="plate"] .ps-name{font-size:clamp(30px,8.4cqi,92px);letter-spacing:-.05em;line-height:1}
.psite[data-layout="plate"] .ps-intro{max-width:56ch}
.psite[data-layout="plate"] .ps-sec{width:100%;max-width:660px;align-items:center}
.psite[data-layout="plate"] .ps-roles{width:100%}
.psite[data-layout="plate"] .ps-role{align-items:center;padding-top:clamp(10px,1.6cqi,18px);border-top:1px solid var(--s-line)}
.psite[data-layout="plate"] .ps-role-note{max-width:52ch}
.psite[data-layout="plate"] .ps-role-ach{width:100%;text-align:left}
.psite[data-layout="plate"] .ps-chips{justify-content:center}
.psite[data-layout="plate"] .ps-statement{font-size:clamp(14px,2.6cqi,28px);text-align:center}
.psite[data-layout="plate"] .ps-cert,
.psite[data-layout="plate"] .ps-proj,
.psite[data-layout="plate"] .ps-quote,
.psite[data-layout="plate"] .ps-set,
.psite[data-layout="plate"] .ps-contact{align-items:center;text-align:center}
.psite[data-layout="plate"] .ps-proj-tags{justify-content:center}
.psite[data-layout="plate"] .ps-foot{justify-content:center;width:100%;gap:6px 16px}

/* The sample person, one portrait per profile. Each layout that has an identity
   block shows it; the placement follows that layout's own grid. */
.psite[data-layout="columns"] .ps-photo{width:min(100%,128px)}
.psite[data-layout="ledger"] .ps-photo{grid-column:1;grid-row:1/span 4;width:min(100%,112px)}
.psite[data-layout="ledger"] .ps-name,
.psite[data-layout="ledger"] .ps-post,
.psite[data-layout="ledger"] .ps-where,
.psite[data-layout="ledger"] .ps-intro{grid-column:2}
.psite[data-layout="split"] .ps-head{display:grid;grid-template-columns:1fr auto;align-items:start}
.psite[data-layout="split"] .ps-photo{grid-column:2;grid-row:1/span 6;width:clamp(72px,18cqi,120px)}
.psite[data-layout="split"] .ps-name,
.psite[data-layout="split"] .ps-post,
.psite[data-layout="split"] .ps-where,
.psite[data-layout="split"] .ps-intro,
.psite[data-layout="split"] .ps-chips,
.psite[data-layout="split"] .ps-cue{grid-column:1}
.psite[data-layout="gallery"] .ps-photo{grid-column:2;grid-row:1/span 2;justify-self:end;width:clamp(64px,14cqi,96px)}
.psite[data-layout="gallery"] .ps-where{grid-column:1;grid-row:auto;text-align:left}
.psite[data-layout="editorial"] .ps-photo,
.psite[data-layout="plate"] .ps-photo{align-self:center;border-radius:50%}

/* ── Very narrow frame only ─────────────────────────────────────────────── */
/* A phone-width preview (about 320–390px) keeps each layout's structure:
   Spine stays a timeline, Split stays two columns, Cards stays a card grid,
   Editorial stays a centred masthead. Collapsing at 640px made every one of
   those the same single column inside the stage. Only a frame narrower than
   a phone gives the columns up. */
@container (max-width:270px){
  .psite{padding:clamp(16px,4cqi,26px);gap:clamp(16px,2.6cqi,26px)}
  .psite[data-layout="columns"]{grid-template-columns:1fr;gap:clamp(16px,2.6cqi,28px)}
  .psite[data-layout="columns"] .ps-head,
  .psite[data-layout="columns"] .ps-sec--skills,
  .psite[data-layout="columns"] .ps-sec--xp,
  .psite[data-layout="columns"] .ps-sec--edu{grid-area:auto}
  .psite[data-layout="columns"] .ps-sec--xp,
  .psite[data-layout="columns"] .ps-sec--edu{padding-left:0;padding-top:clamp(14px,2.4cqi,24px);border-left:0;border-top:1px solid var(--s-line)}
  .psite[data-layout="split"]{grid-template-columns:1fr}
  /* Anything still claiming a second track would open an implicit column
     beside the one this frame has room for. */
  .psite[data-layout="split"] .ps-head,
  .psite[data-layout="split"] .ps-sec--statement,
  .psite[data-layout="split"] .ps-sec--xp,
  .psite[data-layout="split"] .ps-sec--edu,
  .psite[data-layout="split"] .ps-sec--certs,
  .psite[data-layout="split"] .ps-sec--projects,
  .psite[data-layout="split"] .ps-sec--skills,
  .psite[data-layout="split"] .ps-sec--quotes,
  .psite[data-layout="split"] .ps-sec--contact,
  .psite[data-layout="split"] .ps-foot{grid-column:1/2}
  .psite[data-layout="split"] .ps-sec--xp .ps-roles{grid-template-columns:1fr}
  .psite[data-layout="cards"] .ps-sec--xp .ps-roles,
  .psite[data-layout="gallery"] .ps-sec--xp .ps-roles,
  .psite[data-layout="gallery"] .ps-sec--projects .ps-projs,
  .psite[data-layout="editorial"] .ps-sec--xp .ps-roles{grid-template-columns:1fr}
  .psite[data-layout="gallery"] .ps-certs{grid-template-columns:1fr}
  .psite[data-layout="ledger"] .ps-head,
  .psite[data-layout="ledger"] .ps-sec{grid-template-columns:1fr;gap:10px}
  .psite[data-layout="ledger"] .ps-name,
  .psite[data-layout="ledger"] .ps-post,
  .psite[data-layout="ledger"] .ps-where,
  .psite[data-layout="ledger"] .ps-intro{grid-column:1}
  .psite[data-layout="split"] .ps-head{display:flex;flex-direction:column}
  .psite[data-layout="ledger"] .ps-photo,
  .psite[data-layout="split"] .ps-photo,
  .psite[data-layout="gallery"] .ps-photo{grid-column:1;grid-row:auto;justify-self:start;width:72px}
  .psite[data-layout="ledger"] .ps-role{grid-template-columns:1fr}
  /* One column means the hand-placed rows below are wrong; let them flow. */
  .psite[data-layout="ledger"] .ps-role-title,
  .psite[data-layout="ledger"] .ps-role-meta,
  .psite[data-layout="ledger"] .ps-role-where,
  .psite[data-layout="ledger"] .ps-role-note,
  .psite[data-layout="ledger"] .ps-role-ach{grid-area:auto;text-align:left}
  .psite[data-layout="gallery"] .ps-head{grid-template-columns:1fr}
  .psite[data-layout="gallery"] .ps-where{grid-column:1;grid-row:auto;text-align:left}
  .psite[data-layout="gallery"] .ps-intro{grid-column:1}
  .psite[data-layout="gallery"] .ps-sec--xp .ps-role{padding-inline:0}
  .psite[data-layout="gallery"] .ps-sec--projects .ps-proj{padding-inline:0;border-top:1px solid var(--s-line)}
}

/* ══ Preview scroll motion ════════════════════════════════════════════════
   .ps-live is set on the scrollport by the engine for as long as it is driving
   the example site inside it — the modal's frame and the stage on the page
   each carry their own. Keying every held-back state off that class rather
   than off html.js means a scriptless page, a stalled page, or one whose
   motion has been switched off shows the finished static layout instead of a
   blank one. The engine re-reads the CV site's own figures: entrances are
   decelerating (expo-ish), and the travel rides on the independent translate
   and scale properties rather than on transform, which is left free for the
   parallax, the pinned close and the tilt to share on the same element. */
html.motion .ps-live .psite [data-rv]{opacity:0;translate:0 24px;
  transition:opacity 1.05s var(--ease-out),translate 1.05s var(--ease-out),scale 1.05s var(--ease-out);
  transition-delay:calc(var(--rv-i,0) * 60ms)}
html.motion .ps-live .psite [data-rv="left"]{translate:-28px 0}
html.motion .ps-live .psite [data-rv="right"]{translate:28px 0}
html.motion .ps-live .psite [data-rv="scale"]{translate:0 16px;scale:.955}
html.motion .ps-live .psite [data-rv].is-in{opacity:1;translate:none;scale:none}
/* The closing note is a quiet footnote in the static design, so its reveal has
   to land on that .55 rather than washing it out to full strength. */
html.motion .ps-live .psite [data-rv].is-in.ps-contact-note{opacity:.55}

/* Achievements and chips ride in behind their entry rather than with it. The
   resting opacities below are the ones the static styles already use, so the
   reveal lands on the finished design rather than near it. */
html.motion .ps-live .psite .ps-role-ach li,
html.motion .ps-live .psite .ps-set-items li,
html.motion .ps-live .psite .ps-proj-tags i{opacity:0;transform:translateY(7px);
  transition:opacity .5s var(--ease-out),transform .5s var(--ease-out)}
html.motion .ps-live .psite .is-in .ps-role-ach li{opacity:.6}
html.motion .ps-live .psite .is-in .ps-set-items li,
html.motion .ps-live .psite .is-in .ps-proj-tags i{opacity:.7}
/* --rv-i is set on the revealed ancestor and inherits down, so the inner
   stagger is queued behind that entry's own delay rather than racing it. */
html.motion .ps-live .psite .is-in .ps-role-ach li,
html.motion .ps-live .psite .is-in .ps-set-items li,
html.motion .ps-live .psite .is-in .ps-proj-tags i{transform:none;transition-delay:calc(var(--rv-i,0) * 60ms + .12s)}
html.motion .ps-live .psite .is-in li:nth-child(2),
html.motion .ps-live .psite .is-in .ps-proj-tags i:nth-child(2){transition-delay:calc(var(--rv-i,0) * 60ms + .18s)}
html.motion .ps-live .psite .is-in li:nth-child(3),
html.motion .ps-live .psite .is-in .ps-proj-tags i:nth-child(3){transition-delay:calc(var(--rv-i,0) * 60ms + .24s)}
html.motion .ps-live .psite .is-in li:nth-child(n+4),
html.motion .ps-live .psite .is-in .ps-proj-tags i:nth-child(n+4){transition-delay:calc(var(--rv-i,0) * 60ms + .3s)}

/* Parallax. The engine writes a signed, clamped offset into --par; nothing
   here queries layout, so the work stays on the compositor. */
html.motion .ps-live .psite [data-par]{transform:translate3d(0,calc(var(--par,0) * 1px),0)}
/* will-change: transform is what froze these at opacity 0 on iOS: the
   compositor captured the held-back frame and never showed the fade. The
   individual translate property is also dropped whenever transform is set,
   so on a touch screen — where the parallax has no pointer to answer — the
   transform is left off and the entrance on translate can run. */
@media (hover:none){
  html.motion .ps-live .psite [data-par]{transform:none}
}

/* Section labels do not scroll away with their section: they ride down it and
   firm up as the content arrives — the CV site's pinned section titles. The
   label's own drift is still underneath, which is what keeps it alive. */
html.motion .ps-live .psite .ps-sec>.ps-label{position:sticky;top:0;z-index:2;
  background:var(--s-bg);padding-block:6px;opacity:calc(.35 + .65 * var(--lbl,1))}

/* The statement is read by colour as well as by opacity: each word ramps from
   a muted grey to the foreground as the reading line crosses it. Kept as a
   layer over the opacity so a browser without color-mix still reads it. */
html.motion .ps-live .psite .ps-statement .w.is-lit{color:color-mix(in oklab,var(--s-fg) calc(var(--w,1) * 100%),#6b6b6b)}

/* Work cards lean a couple of degrees towards the pointer. Nothing without a
   real pointer gets it — there is no hover to answer on a touch screen. */
html.motion .ps-live .psite .ps-proj{transform:perspective(760px) rotateX(calc(var(--tiltX,0) * 1deg)) rotateY(calc(var(--tiltY,0) * 1deg))}
@media (hover:none){html.motion .ps-live .psite .ps-proj{transform:none}}

/* The rail fills as the timeline passes the reading line — the scrub the CV
   site gets from ScrollTrigger, done here with one custom property. */
html.motion .ps-live .psite[data-layout="spine"] .ps-roles[data-rail]::after{content:"";position:absolute;left:4px;top:9px;height:calc((100% - 18px) * var(--rail,0));width:1px;background:var(--s-accent);opacity:.75}

/* Selected work runs sideways in the two layouts built to be skimmed. The
   section's own travel through the scrollport drives the track, and the
   overflow measured against it is the whole distance it covers — the CV
   site's pinned horizontal rail, without the pin. */
html.motion .ps-live .psite[data-layout="gallery"] .ps-projs[data-track],
html.motion .ps-live .psite[data-layout="cards"] .ps-projs[data-track]{
  display:flex;flex-wrap:nowrap;gap:16px;overflow:hidden;
  transform:translate3d(calc(var(--trk,0) * var(--trk-max,0px) * -1),0,0)}
html.motion .ps-live .psite[data-layout="gallery"] .ps-projs[data-track]>.ps-proj,
html.motion .ps-live .psite[data-layout="cards"] .ps-projs[data-track]>.ps-proj{flex:0 0 clamp(190px,46cqi,330px)}

/* The close is held at the foot of the scrollport and swells over the last
   fifth of the scroll — the CV site's pinned sign-off. Its drift is layered in
   front of the swell rather than standing in for it. */
html.motion .ps-live .psite .ps-foot[data-pin="end"]{position:sticky;bottom:0;background:var(--s-bg);
  transform:translate3d(0,calc(var(--par,0) * 1px),0) scale(calc(1 + .045 * var(--fin,0)))}
@media (hover:none){
  html.motion .ps-live .psite .ps-foot[data-pin="end"]{transform:none}
}

/* One-shot micro-interactions, fired once as an element reaches the reading
   line: a mark that pops into place on the timeline, and a glint that crosses
   the boxed treatments. The glint is a background sweep rather than an overlay
   because a background is clipped to the padding box for free, and an overlay
   would need overflow:hidden on the entry — which would swallow the spine's
   timeline dot, since that sits outside the entry's own box. */
html.motion .ps-live .psite .ps-role.is-pop::before{animation:ps-mark .7s var(--ease-back) both}
@keyframes ps-mark{from{transform:scale(0)}to{transform:scale(1)}}
html.motion .ps-live .psite [data-glint]{
  background-image:linear-gradient(102deg,transparent 30%,rgba(255,255,255,.16) 50%,transparent 70%);
  background-size:64% 100%;background-repeat:no-repeat;background-position:-200% 0}
html.motion .ps-live .psite [data-glint].is-glint{animation:ps-glint 1.1s var(--ease-io) both;animation-delay:calc(var(--glint-i,0) * 90ms)}
@keyframes ps-glint{from{background-position:-200% 0}to{background-position:250% 0}}

/* Bold keeps the same moves and lengthens them. None never adds .ps-live, so
   the site stays on the finished static layout. Every offset is scoped to
   :not(.is-in) so a revealed element still lands on translate:none — the same
   settle the subtle reveal uses. Without that scope these rules matched the
   already-revealed element too and, coming later in the file, outranked the
   .is-in settle, leaving bold permanently displaced: it faded in place while
   subtle actually travelled, which is what made the gentler mode read as the
   stronger one. */
html.motion .ps-live .psite[data-motion="bold"] [data-rv]:not(.is-in){translate:0 48px}
html.motion .ps-live .psite[data-motion="bold"] [data-rv="left"]:not(.is-in){translate:-56px 0}
html.motion .ps-live .psite[data-motion="bold"] [data-rv="right"]:not(.is-in){translate:56px 0}
html.motion .ps-live .psite[data-motion="bold"] [data-rv="scale"]:not(.is-in){translate:0 30px;scale:.9}
html.motion .ps-live .psite[data-motion="bold"] [data-rv]{transition-duration:1.2s}
html.motion .ps-live .psite[data-motion="bold"] [data-par]{transform:translate3d(0,calc(var(--par,0) * 2.4px),0)}
html.motion .ps-live .psite[data-motion="bold"] .ps-foot[data-pin="end"]{transform:translate3d(0,calc(var(--par,0) * 1.8px),0) scale(calc(1 + .1 * var(--fin,0)))}
html.motion .ps-live .psite[data-motion="bold"] [data-glint].is-glint{animation-duration:1.45s}
@media (hover:none){
  html.motion .ps-live .psite[data-motion="bold"] [data-par],
  html.motion .ps-live .psite[data-motion="bold"] .ps-foot[data-pin="end"]{transform:none}
}
@media (prefers-reduced-motion:reduce){
  html.motion .ps-live .psite [data-rv],
  html.motion .ps-live .psite .ps-role-ach li,
  html.motion .ps-live .psite .ps-set-items li,
  html.motion .ps-live .psite .ps-proj-tags i,
  html.motion .ps-live .psite .ps-statement .w{
    opacity:1!important;translate:none!important;transform:none!important;animation:none!important;transition:none!important}
  html.motion .ps-live .psite [data-par],
  html.motion .ps-live .psite .ps-proj,
  html.motion .ps-live .psite .ps-foot,
  html.motion .ps-live .psite .ps-projs{transform:none!important}
}

/* ── Press states ──────────────────────────────────────────────────────── */
/* Last in the file on purpose. While a finger is down the hover rule is
   matching too, and those two have equal specificity — source order is what
   settles it, so the press has to come after. Every control answers the same
   way: a pixel of travel, or a hundredth of a scale. The press runs on --dur-1
   and the release falls back to each control's own, slower easing; that
   asymmetry is what makes a tap read as contact rather than a nudge. Only
   transform and colour move, so nothing reflows mid-press. */
.btn:active,.pick-tile:active,.pick-preview:active,.pay-retry:active,
.pm-ic:active,.pm-close:active,.pm-vt:active{transition-duration:var(--dur-1)}

.btn:active{transform:translateY(1px)}
.btn:active .ar{transform:translateX(1px)}
.btn--solid:active{background:#e3e3e3;border-color:#e3e3e3}
.pick-tile:active{transform:scale(.985)}
.pick-preview:active{transform:scale(.94)}
.pay-retry:active{transform:translateY(1px)}
.pm-ic:active{background:var(--surface-2);transform:scale(.94)}
.pm-close:active{transform:scale(.97)}
.pm-vt:active{background:var(--surface)}
.menu-btn:active{opacity:.65}

/* Reduced motion keeps the answer and drops the travel: colour and background
   still change under the finger, but nothing moves. */
@media (prefers-reduced-motion:reduce){
  .btn:active,.btn:active .ar,.pick-tile:active,.pick-preview:active,
  .pay-retry:active,.pm-ic:active,.pm-close:active{transform:none}
}

/* ── Motion off ────────────────────────────────────────────────────────── */
html.no-motion *{animation:none!important}
html.no-motion{scroll-behavior:auto}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ── Auth pages (login, signup, account) ───────────────────────────────── */
.auth-body{min-height:100vh;display:flex;align-items:center;padding:calc(var(--header-h) + 24px) 0 48px}
.auth-shell{max-width:28rem;margin:0 auto}
.auth-brand{display:inline-flex;align-items:center;gap:10px;margin-bottom:28px}
.auth-brand .mark{width:28px;height:28px;border-radius:7px}
.auth-shell h1{margin:0 0 12px;font-size:clamp(28px,5vw,40px);letter-spacing:-.04em}
.auth-lead{margin:0 0 24px;color:var(--body);max-width:38ch}
.auth-note{margin:0 0 16px;padding:12px 14px;border:1px solid var(--line-2);border-radius:12px;color:var(--text);background:var(--surface)}
.auth-note--ok{border-color:rgba(120,180,120,.35);color:var(--body)}
.auth-form{display:grid;gap:14px;margin:0 0 20px}
.auth-field{display:grid;gap:6px}
.auth-field > span{font:500 12px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
.auth-field > span em{font-style:normal;text-transform:none;letter-spacing:0;color:var(--muted);font-weight:400}
.auth-field input{width:100%;min-height:52px;padding:0 18px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg-2);font:400 15.5px/1.4 var(--sans);color:var(--text)}
.auth-field input::placeholder{color:var(--dim)}
.auth-field input:focus{border-color:var(--line-3);background:var(--surface);outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.06)}
.auth-split{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:0 0 16px;color:var(--dim);font:500 12px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}
.auth-split::before,.auth-split::after{content:"";height:1px;background:var(--line)}
.auth-actions{display:grid;gap:12px;margin:0 0 20px}
.auth-secondary{margin:0 0 20px;color:var(--body);font-size:14.5px}
.auth-text-btn{background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.auth-text-btn:hover{text-decoration:none}
.auth-sub{margin:32px 0 8px;font:500 19px/1.3 var(--sans);letter-spacing:-.02em;color:var(--text)}
.auth-meta{margin:0 0 24px;display:grid;gap:14px}
.auth-meta div{display:grid;gap:4px}
.auth-meta dt{margin:0;font:500 11px/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.auth-meta dd{margin:0;color:var(--text)}
.auth-foot{margin:0;color:var(--body);font-size:14.5px}
.auth-advanced{margin:0 0 20px;border:1px solid var(--line);border-radius:12px;padding:0 14px 14px;background:transparent}
.auth-advanced>summary{cursor:pointer;list-style:none;padding:14px 0;color:var(--body);font:500 14px/1.3 var(--sans)}
.auth-advanced>summary::-webkit-details-marker{display:none}
.auth-advanced>summary::after{content:"▾";float:right;opacity:.55}
.auth-advanced[open]>summary::after{content:"▴"}
.auth-advanced .auth-form{margin-top:4px;margin-bottom:0}
.header-login{border-color:var(--line-3)}

/* Privacy notice only. Clears the fixed header; the landing page does not use it. */
.legal{padding-top:calc(var(--header-h) + clamp(28px,5vw,56px));padding-bottom:clamp(48px,8vw,96px)}
.legal-back{margin-left:auto}
.legal .lede{max-width:68ch}
.legal h1{margin:14px 0 8px}
.legal h2{font:500 clamp(22px,2vw,28px)/1.25 var(--sans);letter-spacing:-.03em;color:var(--text);margin:32px 0 8px}
.legal p+p{margin-top:12px}

/* Brand display type. The largest type on the page — headings, the price, the
   wordmark, the nav menu, the auth and legal headings — is set in Plus Jakarta
   Sans; everything else stays on Inter. Declared here, after the rules it
   overrides, so a later font shorthand cannot quietly win. */
.h1,.h2,.h3,.menu ol a,.step h3,.card h3,.feat h3,.plan-price b,.foot-name,.auth-sub,.legal h2{font-family:var(--display)}

@media print{
  .aura,.grain,.site-header,.menu,.pm,.strip,.btn{display:none!important}
  html,body{background:#fff;color:#000}
  /* The palette is dark-first, so flip the tokens or every heading prints white-on-white. */
  :root{--bg:#fff;--bg-2:#fff;--surface:#fff;--surface-2:#fff;--text:#000;--body:#1c1c1c;--muted:#333;--dim:#4a4a4a;--line:rgba(0,0,0,.22);--line-2:rgba(0,0,0,.34);--line-3:rgba(0,0,0,.55)}
  .shot,.card,.step,.plan{background:#fff!important}
  .rv{opacity:1!important;transform:none!important}
  /* The CV keeps the Dark or Light ground chosen on the page. Motion is a
     screen effect, so print and PDF stay on the finished static layout. */
  .psite,.pick-screen{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .psite{background:var(--s-bg)!important;color:var(--s-fg)!important}
  .psite [data-rv],
  .psite .ps-role-ach li,
  .psite .ps-set-items li,
  .psite .ps-proj-tags i,
  .psite .ps-statement .w{
    opacity:1!important;translate:none!important;transform:none!important;animation:none!important;transition:none!important}
  .psite [data-par],.psite .ps-proj,.psite .ps-foot,.psite .ps-projs{transform:none!important}
}
