/* ============================================================
   AltxDesign — site v2 (Foundations First)
   Shared: tokens · preloader · nav · menu · index rail · intro ·
   projects · closing · grain · hover system · reveal primitives
   ============================================================ */
/* Arial sized to Urbanist's proportions, so text doesn't reflow when the web font
   arrives (Google Fonts serves Urbanist with font-display: swap). Measured in the
   browser against Urbanist on running text: regular 97.6% of Arial's width, 600–900
   about 95% of Arial Bold's; ascent 0.95em, descent 0.25em (the overrides are those
   divided by the size-adjust). Every page gets it through --font. */
@font-face{font-family:'Urbanist Fallback';font-weight:100 500;src:local('Arial'),local('ArialMT'),local('Helvetica');
  size-adjust:97.6%;ascent-override:97.4%;descent-override:25.6%;line-gap-override:0%}
@font-face{font-family:'Urbanist Fallback';font-weight:600 900;src:local('Arial Bold'),local('Arial-BoldMT'),local('Helvetica Bold');
  size-adjust:95.3%;ascent-override:99.7%;descent-override:26.2%;line-gap-override:0%}

:root{
  /* COLOUR. three creams, one near-black, one warm grey. orange (--orange) is the one
     accent on controls: the dot that becomes an arrow, focus outlines, the text cursor
     (BUTTONS, below). red (--seal) is for errors and the homepage animation. neither is
     ever a fixed colour in content. (About's scroll story keeps its own approved palette
     in css/about.css; --orange is the same colour as its --ab-or.) */
  --cream:#F5F1E7;   /* the page */
  --paper:#FBF9F4;   /* raised surfaces on cream: cards, fields */
  --tint:#EDE7DA;    /* image wells and quiet panels */
  --black:#000; --near:#0B0B0D; --white:#fff; --seal:#C8102E;
  --orange:#FF4A1C;
  /* the keyboard focus ring: a shade deeper than --orange so it reads 3.4:1 on cream (the brand
     orange is 2.98:1) and still 5.1:1 on the near-black sections (Navin, 20 Nov 2026) */
  --ring:#EE4419;
  /* the X from the logo, as a mask, for every open/close toggle (Navin, 20 Nov 2026):
     turned 45 degrees it reads as a plus; open, it turns back to the X */
  --xmark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='m500,0h-41.67l-156.28,125.02c-30.43,24.35-73.68,24.35-104.12,0L41.67,0H0v41.67l125.02,156.28c24.35,30.43,24.35,73.68,0,104.12L0,458.33v41.67h41.67l156.28-125.02c30.43-24.35,73.68-24.35,104.12,0l156.28,125.02h41.67v-41.67l-125.02-156.28c-24.35-30.43-24.35-73.68,0-104.12l125.02-156.28V0Z'/%3E%3C/svg%3E");
  /* the turn to night at the bottom of every page (FOOTER, below). js/altx-footer.js sets
     --p (the background, 0 to 1) and --pf (the text, 0 or 1) as the footer logo scrolls in */
  --p:0; --pf:0;
  --bg:color-mix(in srgb,#0B0B0D calc(var(--p) * 100%),#F5F1E7);
  --fg:color-mix(in srgb,#F5F1E7 calc(var(--pf) * 100%),#0B0B0D);
  --mut:color-mix(in srgb,#C9C3B6 calc(var(--pf) * 100%),#3F3B35);
  --rule:color-mix(in srgb,var(--fg) 16%,transparent);
  --space:#08080B;   /* the Captain Navo page (captain-navo.html): the page behind the stars */
  --near-2:color-mix(in srgb,var(--cream) 3%,var(--near));   /* a raised surface on ink */
  /* the controls' greys, mixed from ink and cream (no colours of their own) */
  --ctl-off:color-mix(in srgb,var(--near) 28%,var(--cream));    /* switched-off fill; chip and switch outlines */
  --ctl-off-2:color-mix(in srgb,var(--near) 14%,var(--cream));  /* a switched-off round arrow */
  --ctl-dim:color-mix(in srgb,var(--near) 47%,var(--cream));    /* switched-off icons; placeholders on ink */
  --ctl-line:color-mix(in srgb,var(--near) 18%,var(--cream));   /* the email field's outline */
  --ctl-row:color-mix(in srgb,var(--cream) 7%,var(--near));     /* answer rows on the ink card */

  /* TYPE. one family; hierarchy comes from size and weight, never a second face.
     one weight per level everywhere: H1 800 · H2 700 · H3 700. body 400, leads 300.
     one size per level within each kind of page, each level smaller than the one above:
       display pages (Home, Work, the Notes listings) · H1 --fs-display · H2 --fs-h2-display · H3 --fs-h3-lg
       standard pages (services, contact, About, author) · H1 --fs-h1 · H2 --fs-h2 · H3 --fs-h3
       reading pages (Notes posts, privacy) · H1 --fs-h1-read · H2 --fs-h2-read · H3 --fs-h3-read
     a page's closing line is an H2 at its page's H2 size; the Notes closing band, shared
     by listing and reading pages, takes --fs-h2. small text is never under 13px. */
  --font:'Urbanist','Urbanist Fallback',system-ui,sans-serif; --label:var(--font);
  --fs-display:clamp(56px,11vw,150px);
  --fs-h2-display:clamp(40px,6vw,88px);
  --fs-h3-lg:clamp(30px,3.6vw,52px);
  --fs-h1:clamp(40px,6vw,86px);
  --fs-h2:clamp(32px,4.2vw,56px);
  --fs-h3:clamp(20px,1.7vw,24px);
  --fs-h1-read:clamp(36px,5.2vw,66px);
  --fs-h2-read:clamp(26px,2.4vw,32px);
  --fs-h3-read:20px;

  /* CORNERS. anything you press is a pill (buttons, chips, tags, toggles); round
     controls are circles. cards and panels take --r-lg; images and choice rows take
     --r-md; small marks inside a control take --r-sm. the Work page's case-study
     mosaics and deck spreads stay square: they are the work itself, edge to edge. */
  --r-lg:clamp(18px,1.6vw,24px);
  --r-md:clamp(12px,1.2vw,18px);
  --r-sm:8px;
  --code:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;  /* raw.html only */
  --gold:#F2A649; --maroon:#7A1220;   /* the hero shader's other two colours */
  --muted:#5C574F;   /* secondary text on cream: 6.4:1, clears the 4.5:1 minimum */
  --noise:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='128' height='128'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='128' height='128' filter='url%28%23n%29'/></svg>");
  --pad:clamp(24px,5vw,64px);
  --gutter:320px;   /* clears full longest name ("Future Horizon Advisory") + breathing */
  /* THE PAGE WIDTH (Navin, 16 Nov): every page's content sits on one edge, the edge the
     header's logo lands on. up to 1440 that edge is --pad. from 1440 to 1920 the content
     holds the 1440 layout (1312px wide) and centres. past 1920 it grows with the screen,
     to 1680px at 2560, so the margins stay about the same share of the screen.
     --edge    the side space, on a box that spans the full width (its % is that width)
     --edge-vw the same, measured on the window, for a box nested inside a padded one
     --edge-in the edge plus the work and privacy pages' indent (--gutter) */
  --wrap:clamp(1312px,calc(1312px + (100vw - 1920px) * .575),1680px);
  --edge:max(var(--pad),calc((100% - var(--wrap)) / 2));
  --edge-vw:max(var(--pad),calc((100vw - var(--wrap)) / 2));
  --edge-in:calc(var(--edge) + var(--gutter) - var(--pad));
  --ease-out:cubic-bezier(0.16,1,0.3,1);   /* expo-ish out — entrances */
  --ease-io:cubic-bezier(0.65,0,0.35,1);   /* symmetric — hovers, wipes */
}
@media(max-width:600px){:root{--fs-display:clamp(38px,12vw,72px)}}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg)}   /* the overscroll at the bottom turns to night with the footer */
body{font-family:var(--font);background:var(--cream);color:var(--near);-webkit-font-smoothing:antialiased;overflow-x:hidden}
/* form controls don't inherit the page font on their own (the testimonial arrows were
   rendering in Arial) */
button,input,select,textarea{font-family:inherit}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.seal{color:var(--seal);font-weight:700}
.kslash{font-weight:700}
/* small print: figures in step, sentence case, never under 13px */
.mono{font-family:var(--label);font-weight:600;font-variant-numeric:tabular-nums}
.small{font-size:13px}
/* readable by screen readers, invisible on screen (used where text is split into
   letters for animation, so assistive tech still gets whole words) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- IMAGE SLOTS (the service pages and About) ----------
   an image by ID, and while its file isn't there, a quiet striped box labelled with what goes
   there (.is-missing; js/service.js sets it on the service pages). moved from css/service.css. */
.slot{position:relative;margin:0;overflow:hidden;border-radius:var(--r-md);background:var(--tint);
  --slot-a:color-mix(in srgb,var(--near) 7%,var(--tint));--slot-b:color-mix(in srgb,var(--near) 11%,var(--tint))}
.slot--wide{aspect-ratio:16/9}
.slot--sq{aspect-ratio:1/1}
.slot--xwide{aspect-ratio:21/9}
.slot--card{aspect-ratio:16/10}
.slot > img,.slot > video{display:block;width:100%;height:100%;object-fit:cover}
.slot__tag{display:none}
/* the file isn't there yet: a quiet striped box that says which image goes here */
.slot.is-missing{background:repeating-linear-gradient(135deg,var(--slot-a) 0 16px,var(--slot-b) 16px 32px)}
.slot.is-missing > img,.slot.is-missing > video{visibility:hidden}
.slot.is-missing .slot__tag{display:block;position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);
  padding:8px 11px;border-radius:var(--r-sm);background:var(--paper);color:var(--near);font-size:13px;font-weight:500;line-height:1.35}

/* ---------- REVEAL PRIMITIVES (JS-driven; safe without JS) ---------- */
/* padding-bottom + equal negative margin: gives descenders (g/y/j/p/q) room inside the
   overflow:hidden mask without changing the tight line-height stacking the display type
   relies on — was clipping the bottom of any headline word with a descender (e.g. "Blog",
   "promises.", "Yours"). net effect on layout flow is zero, only the clip boundary moves. */
.rl{display:block;overflow:hidden;padding-bottom:.2em;margin-bottom:-.2em}
.rl .rli{display:inline-block;will-change:transform}
.js-load .rl .rli{transform:translateY(115%)}
.js-load .rv{opacity:0;transform:translateY(26px)}
.word{opacity:.16}
@media(prefers-reduced-motion:reduce){
  .rl .rli,.rv{transform:none !important;opacity:1 !important}
  .word{opacity:1 !important}
}

/* ---------- GRAIN ---------- */
/* normal blending, not soft-light: a blend mode on a full-screen fixed layer makes the
   browser re-blend the entire page every time anything under it changes (measured: idle
   frames went from ~317ms to ~50ms on an integrated GPU without it). as a plain static
   layer it is composited once and costs next to nothing; the grain reads the same. */
.grain{position:fixed;inset:0;z-index:140;pointer-events:none;opacity:.025;transform:translateZ(0);
  background-image:var(--noise);
  background-size:128px 128px}

/* ---------- PRELOADER (the X becomes the window; camera pushes through) ---------- */
.preloader{position:fixed;inset:0;z-index:200;overflow:hidden}
.preloader__zoom{position:absolute;inset:0;width:100%;height:100%;display:block}
.prex{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(76px,8vw,110px);color:var(--cream)}
.prex svg{display:block;width:100%;height:auto;fill:currentColor}
.preloader__tag{position:absolute;left:50%;top:calc(50% + clamp(64px,7vw,92px));transform:translateX(-50%);font-size:14px;letter-spacing:.02em;color:var(--cream);opacity:0;white-space:nowrap}
.preloader.is-done{opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s ease}

/* ---------- NAV ----------
   the site-wide nav is the floating bar + full-screen menu below (FLOATING NAV,
   js/nav.js). these are the pieces of the old flush header it still uses. */

/* Human / Bot: a segmented switch. the side you're on is solid ink with the orange dot
   beside its label (the dot means "this one"); the other side is a link to that version.
   lives in the menu only, which is always a cream room. (buttons handoff, sec. 9) */
.modetoggle{display:inline-flex;padding:3px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--ctl-off);line-height:1}
.modetoggle__opt{display:inline-flex;align-items:center;margin:0;padding:8px 14px;border:0;border-radius:999px;background:transparent;
  font-family:var(--font);font-size:13px;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap;
  cursor:pointer;transition:background .2s,color .2s}
.modetoggle__opt:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.modetoggle__dot{width:0;height:6px;margin-right:0;border-radius:50%;background:var(--orange);
  transition:width .25s var(--ease-out),margin-right .25s var(--ease-out)}
.modetoggle__opt.is-on{background:var(--near);color:var(--cream);cursor:default}
.modetoggle__opt.is-on .modetoggle__dot{width:6px;margin-right:7px}

/* ---------- FLOATING NAV (every page; js/nav.js) ----------
   navbar21's structure inside navbar33's floating bar. The bar is inset so the
   logo still lands on the content edge (--pad), has no surface over the hero, and
   turns into liquid glass once the page scrolls. The bar and the button inside it
   are both pills. */
.fnav{position:fixed;top:14px;z-index:130;
  left:max(10px,calc(var(--edge) - 26px));right:max(10px,calc(var(--edge) - 26px));
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  height:62px;padding:0 12px 0 26px;border-radius:999px;color:var(--near);transition:color .4s ease}
/* the tap area is 44px tall, centred on the 21–25px mark */
.fnav__logo{display:flex;align-items:center;min-height:44px;padding-inline:4px;margin-inline:-4px}
.fnav__logosvg{display:block;height:25px;width:auto;fill:currentColor}
.fnav__actions{display:flex;align-items:center;gap:20px}

/* the surface: its own layer so it can fade in without touching the content.
   CSS blur is the fallback; js/liquid-glass.js swaps in real edge refraction. */
.fnav__glass,.wfilter__glass{position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,rgba(245,241,231,.74) 0%,rgba(245,241,231,.52) 55%,rgba(245,241,231,.64) 100%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  box-shadow:0 18px 40px -24px rgba(11,11,13,.5),0 2px 10px -4px rgba(11,11,13,.12),inset 0 0 0 1px rgba(11,11,13,.06);
  opacity:0;transform:scale(1.04);
  transition:opacity .5s var(--ease-out),transform .8s var(--ease-out),background-color .4s ease}
/* specular rim, same construction as the mission panel's */
.fnav__glass::after,.wfilter__glass::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid transparent;
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,255,255,.3) 28%,rgba(255,255,255,0) 55%,rgba(255,255,255,.4) 100%) border-box;
  -webkit-mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);-webkit-mask-composite:xor;
  mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);mask-composite:exclude}
.fnav.is-scrolled .fnav__glass,.wfilter__glass{opacity:1;transform:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .fnav__glass,.wfilter__glass{background:rgba(245,241,231,.97)}
}

/* Menu / Close: one word rolls out as the other rolls in */
.fnav__toggle{display:inline-flex;align-items:center;height:44px;padding:0 10px;background:none;border:0;
  color:inherit;cursor:pointer;font-family:var(--font);font-size:15px;font-weight:500}
/* the box clips top and bottom only (for the roll). it's as wide as "Menu": "Close"
   and its cross hang out to the left, into the gap before the button, so neither the
   toggle nor "Book a call" moves when the cross is added */
.fnav__roll{position:relative;display:block;height:1.2em;line-height:1.2em;clip-path:inset(0 0 0 -3em)}
.fnav__roll > span{display:flex;align-items:center;justify-content:flex-end;gap:8px;height:1.2em;transition:transform .55s var(--ease-io)}
.fnav__roll > span + span{position:absolute;right:0;top:100%}
.fnav__toggle[aria-expanded="true"] .fnav__roll > span{transform:translateY(-100%)}
.fnav__toggle:hover .fnav__roll > span,.fnav__toggle:focus-visible .fnav__roll > span{
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* "Close" gains a small cross that turns a quarter on hover */
.fnav__x{display:block;flex:none;transition:transform .35s var(--ease-out),color .35s var(--ease-out)}
@media(hover:hover){.fnav__toggle:hover .fnav__x{transform:rotate(90deg);color:var(--orange)}}

/* the header's button: ink on the light page, cream over the dark acts (the same
   body.dark-context switch the bar uses), ink again once the cream menu is open */
body.dark-context .fnav .cta{background:var(--cream);color:var(--near)}
body.menu-open .fnav .cta{background:var(--near);color:var(--cream)}

/* dark acts (thesis, closing): ink flips to cream and the glass tints to ink */
body.dark-context .fnav{color:var(--cream)}
body.dark-context .fnav__glass,body.dark-context .wfilter__glass{
  background:linear-gradient(135deg,rgba(11,11,13,.66) 0%,rgba(11,11,13,.46) 55%,rgba(11,11,13,.58) 100%);
  box-shadow:0 18px 40px -24px rgba(0,0,0,.7),inset 0 0 0 1px rgba(245,241,231,.08)}
body.dark-context .fnav__glass::after,body.dark-context .wfilter__glass::after{opacity:.35}
/* menu open: the bar dissolves into the overlay and always reads as ink on cream */
body.menu-open .fnav{color:var(--near)}
body.menu-open .fnav .fnav__glass{opacity:0;transform:none}

/* the overlay: frosted, not opaque, so whatever the page was showing (the shader,
   a dark act) still tints it. links rise from their own masks (js/nav.js). */
.fmenu{position:fixed;inset:0;z-index:125;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7vh;padding:110px var(--pad) 8vh;color:var(--near);
  background:rgba(245,241,231,.86);
  -webkit-backdrop-filter:blur(26px) saturate(150%);backdrop-filter:blur(26px) saturate(150%);
  opacity:0;visibility:hidden}
.fmenu.is-open{opacity:1;visibility:visible}  /* fallback; gsap drives this when present */
.fmenu__links{display:flex;flex-direction:column;align-items:center}
/* the words shrink with the screen's height too, so the menu always fits without
   scrolling, contact links included (five lines of about 1.06em, plus the padding) */
.fmenu__links a{display:block;font-weight:800;font-size:min(clamp(56px,10vw,136px),calc((85vh - 170px) / 5.3));letter-spacing:-.045em;line-height:.98;
  transition:opacity .25s}
/* the word rises out of its mask on open. the mask clips top and bottom only, so the
   dot after the word (.bigdot, BUTTONS below) isn't cut off at the side */
.fmenu__mask{display:block;clip-path:inset(0 -1.5em 0 0);padding:0 .06em .07em}
.fmenu__in{display:block;position:relative}
/* the dot hangs after the word, out of the flow, so the columns don't move */
.fmenu__in .bigdot{position:absolute;left:100%;top:50%;margin:-.104em 0 0 .25em}
/* the other links fade to about a quarter while one is pointed at (buttons handoff).
   the service pages travel with "Services": pointing at it keeps their column clear,
   pointing at one of them keeps "Services" clear (and quietens the other four).
   js/nav.js puts the phones' Back button between "Services" and its list, so each
   "right after Services" selector comes in both forms. */
@media(hover:hover){
  .fmenu__links:has(a:hover) > a:not(:hover),
  .fmenu__links:has(> a:hover) .fmenu__sub{opacity:.26}
  .fmenu__links > a:hover + .fmenu__sub,
  .fmenu__links > a:hover + .fmenu__back + .fmenu__sub,
  .fmenu__links:has(.fmenu__sub:hover) > a:has(+ .fmenu__sub),
  .fmenu__links:has(.fmenu__sub:hover) > a:has(+ .fmenu__back + .fmenu__sub){opacity:1}
  .fmenu__sub:has(a:hover) a:not(:hover){opacity:.45}
}
/* the same for the keyboard, but only while the pointer isn't on a link: then hover leads */
.fmenu__links:not(:has(a:hover)):has(a:focus-visible) > a:not(:focus-visible),
.fmenu__links:not(:has(a:hover)):has(> a:focus-visible) .fmenu__sub{opacity:.26}
.fmenu__links > a:focus-visible + .fmenu__sub,
.fmenu__links > a:focus-visible + .fmenu__back + .fmenu__sub,
.fmenu__links:has(.fmenu__sub a:focus-visible) > a:has(+ .fmenu__sub),
.fmenu__links:has(.fmenu__sub a:focus-visible) > a:has(+ .fmenu__back + .fmenu__sub){opacity:1}
.fmenu__meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 30px;font-size:15px}
/* opened from a dark act, 86% cream over near-black reads as grey, not cream.
   the overlay stays a cream room either way, so it goes near-opaque there */
body.dark-context .fmenu{background:rgba(245,241,231,.96)}
/* the small links (.slink): service pages, Email us, LinkedIn. their dot hangs after
   the words, out of the flow, so the phones' centred lines stay centred */
.fmenu .slink{position:relative}
.fmenu .slink__dot{position:absolute;left:100%;top:50%;margin:-3.5px 0 0 8px}
/* the five service pages (Navin, 12 Nov). wider screens: their own column beside the
   big words, hanging from "Services" behind a hairline. phones: a second screen, reached
   by tapping "Services", with a Back button (js/nav.js adds .is-sub and the button). */
.fmenu__sub{list-style:none;display:flex;flex-direction:column;margin:0;transition:opacity .25s}
.fmenu__links .fmenu__sub a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;letter-spacing:-.01em;line-height:1.2;
  transition:opacity .3s ease}
.fmenu__back{display:none}
/* "All services" opens the list on phones only: elsewhere "Services" itself goes to the Services page */
.fmenu__suball{display:none}
@media(min-width:761px){
  .fmenu__links{display:grid;grid-template-columns:max-content max-content;column-gap:clamp(40px,6vw,110px);justify-items:start}
  .fmenu__links > a{grid-column:1}
  .fmenu__sub{grid-column:2;grid-row:2 / span 4;align-self:start;margin-top:clamp(6px,1.4vh,16px);
    padding-left:clamp(20px,2.4vw,40px);border-left:1px solid rgba(11,11,13,.16)}
  .fmenu__links .fmenu__sub a{font-size:clamp(17px,1.45vw,22px)}
}
@media(max-width:760px){
  .fmenu__sub{display:none}
  .fmenu__links.is-sub > a{display:none}
  .fmenu__links.is-sub .fmenu__sub{display:flex;align-items:center;gap:2px}
  .fmenu__links.is-sub .fmenu__suball{display:block}
  .fmenu__links .fmenu__sub a{font-size:clamp(24px,7vw,32px);font-weight:700;letter-spacing:-.02em;justify-content:center;text-align:center;text-wrap:balance}
  .fmenu__links.is-sub .fmenu__back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-bottom:14px;padding:0 4px;
    border:0;background:none;color:inherit;font-size:15px;font-weight:600;cursor:pointer;opacity:.72}
  .fmenu__back:hover,.fmenu__back:focus-visible{opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .fmenu__links a,.fmenu__sub,.fnav__glass,.fnav__roll > span,.fnav__x,.modetoggle__opt,.modetoggle__dot{transition:none}
}
@media(max-width:760px){
  .fnav{top:10px;height:56px;padding:0 6px 0 18px}
  .fnav__logosvg{height:21px}
  /* room for "Close" and its cross, which hang left of the toggle: the gap and the toggle's
     padding leave 8px between them and the button, as on desktop */
  .fnav__actions{gap:16px}
  .fnav__roll > span{gap:6px}
  .fnav__x{width:12px;height:12px}
  .fnav .cta--sm{padding:14px 14px 14px 16px;font-size:13px;gap:8px}   /* still 44px tall */
  .fmenu{gap:6vh;padding-top:96px}
}
/* the narrowest phones (360px class): the service pages' longer "Book a discovery
   call" has to fit on one line beside the logo and Menu */
@media(max-width:400px){
  .fnav{gap:10px;padding:0 2px 0 14px}
  .fnav__logosvg{height:18px}
  .fnav__actions{gap:18px}
  .fnav .cta--sm{padding:14px 10px 14px 12px;font-size:13px;gap:6px}
  .fnav__toggle{padding:0 8px}
}
/* 320px (the smallest phones, and a desktop browser zoomed to 400%): "discovery" drops out of
   the service pages' button, so it reads "Book a call" as elsewhere and Menu stays on screen */
@media(max-width:340px){.fnav__long{display:none}}

/* ---------- INDEX RAIL (name-revealing, work page) ---------- */
.index{position:fixed;left:var(--edge);top:50%;transform:translateY(-50%);z-index:110;display:flex;flex-direction:column;gap:36px;transition:opacity .35s ease,visibility .35s}
body.rail-off .index{opacity:0;visibility:hidden}
/* the phone dock (current project + filter) steps aside at the same point */
.wdock{transition:opacity .35s ease,visibility .35s}
body.rail-off .wdock{opacity:0;visibility:hidden}
.index__item{display:flex;align-items:center;gap:12px;cursor:pointer;transition:opacity .35s ease}
/* .65 is the floor for small ink on cream: 4.9:1 (the 4.5:1 minimum needs .58) */
.index__num{font-family:var(--label);font-weight:600;font-variant-numeric:tabular-nums;font-size:13px;letter-spacing:.02em;opacity:.65;display:inline-block;transform-origin:left center;transition:opacity .35s ease,color .35s ease,transform .35s var(--ease-io)}
.index__name{font-family:var(--label);font-weight:600;font-size:13px;white-space:nowrap;opacity:0;transform:translateX(-6px);transition:.35s}
.index__item:hover .index__num{opacity:1}
.index__item:hover .index__name{opacity:.75;transform:none}
.index__item.is-active .index__num{opacity:1;color:var(--seal);transform:scale(1.27)}
.index__item.is-active .index__name{opacity:1;transform:none}
body.dark-context .index__num{color:var(--cream)}
body.dark-context .index__item.is-active .index__num{color:var(--seal)}
body.dark-context .index__name{color:var(--cream)}

/* mobile wayfinding (work page) */
.wprogress{position:fixed;top:0;left:0;right:0;height:2px;z-index:118;display:none;background:currentColor;color:var(--near);transform:scaleX(0);transform-origin:left}
body.dark-context .wprogress{color:var(--cream)}

/* breadcrumbs: Notes posts and the service pages (moved here from notes.css, unchanged) */
.ncrumbs ol{display:flex;flex-wrap:wrap;list-style:none;margin-block-end:20px;font-size:15px;color:var(--muted)}
.ncrumbs li+li::before{content:'/';margin-inline:10px;opacity:.6}
.ncrumbs a{display:inline-block;padding-block:4px;text-decoration:underline;text-decoration-color:transparent;
  text-underline-offset:.25em;transition:color .2s ease,text-decoration-color .2s ease}
.ncrumbs a:hover{color:var(--near);text-decoration-color:currentColor}

/* the homepage scroll cue: the X from the logo, no frame, the same cue as the service pages
   (Navin, 20 Nov 2026). it bobs, leans toward the pointer (on .hhero__scrollx), turns as the
   page scrolls (--r) and on hover or focus turns a further 135 degrees; a click spins it away
   and scrolls to the next section. js/home.js initScrollCue. never a coloured background. */
.hhero__scroll{position:absolute;left:50%;bottom:max(2.5vh,16px);z-index:3;display:grid;place-items:center;
  width:72px;height:72px;margin-left:-36px;padding:0;background:none;border:0;border-radius:50%;
  color:var(--near);cursor:pointer}
.hhero__scrollx{display:grid;place-items:center;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.hhero__scroll svg{display:block;width:30px;height:30px;overflow:visible;fill:currentColor;
  animation:hheroScrollBob 2.6s ease-in-out infinite}
.hhero__scroll path{transform-box:fill-box;transform-origin:center;transform:rotate(var(--r,0deg));
  transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.hhero__scroll:hover path,.hhero__scroll:focus-visible path{transform:rotate(calc(var(--r,0deg) + 135deg)) scale(1.15)}
.hhero__scroll:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
.hhero__scroll.is-go svg{animation:hheroScrollGo .7s cubic-bezier(.5,0,.2,1)}
@keyframes hheroScrollBob{50%{transform:translateY(6px)}}
@keyframes hheroScrollGo{40%{transform:scale(1.5) rotate(180deg)}100%{transform:translateY(60px) scale(.4) rotate(360deg);opacity:0}}
@media(prefers-reduced-motion:reduce){
  .hhero__scrollx,.hhero__scroll svg,.hhero__scroll path{animation:none!important;transform:none!important;transition:none}
}

/* [TBC] marks a fact still to be confirmed before launch. loud on purpose. */
.tbc{background:rgba(200,16,46,.12);color:var(--seal);font-weight:600;padding:0 .3em;border-radius:4px;
  -webkit-box-decoration-break:clone;box-decoration-break:clone}

/* ---------- BUTTONS: "dot to arrow" (Navin, 12 Nov; handoff/buttons) ----------
   the one rule: the orange dot means "this one". where a click goes somewhere, the dot
   stretches into an arrow on hover and keyboard focus. where it marks a choice it stays
   a dot (the picked chip or answer, the current page, Human or Bot). orange appears
   nowhere else on a control: one solid colour, no gradients, glows or shadows.
   ported from handoff/buttons/reference/buttons-reference.css (the source of truth):
   its ink, cream and orange are --near, --cream and --orange, its greys the --ctl-*
   mixes, its curve --ease-out.

   .go         goes on whatever is hovered or focused and carries a .dotarrow or .bigdot
   .dotarrow   the fixed 18 x 16 slot after the label, so nothing moves when it animates:
               a 7px dot that flattens into a line while a chevron slides in. aria-hidden.
   .cta        main button. --sm (44px tall), --cream (on dark), --outline (a second choice)
   .ilink      inline link ("View case study"). --cream (on dark), --inherit (takes the
               text colour, for the Work page's project colours)
   .round      round arrows. --sm, --cream, and a direction: --prev --next --up --down
   .chip       choice chip. .chip__dot grows in on the picked one (aria-pressed, or
               aria-current where the chips are links)
   .pillfield  an email field with its button inside
   .bigdot     the menu's big dot (no arrow), in em so it scales with the word
   .dotarrow--big  dot to arrow after a very large word, in em (the Services page)
   .slink      small menu link: dot only (.slink__dot), on hover and on the current page
   hover-only changes sit behind @media(hover:hover): a tap would leave them stuck on. */

.dotarrow{position:relative;display:inline-block;flex:0 0 auto;width:18px;height:16px;color:var(--orange)}
.dotarrow__line{position:absolute;left:0;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:4px;background:currentColor;
  transition:width .35s var(--ease-out),height .35s var(--ease-out),margin-top .35s var(--ease-out)}
.dotarrow svg{display:block;position:absolute;left:2px;top:0;opacity:0;transform:translateX(-7px);
  transition:opacity .25s,transform .35s var(--ease-out)}
.go:focus-visible .dotarrow__line{width:13px;height:2px;margin-top:-1px}
.go:focus-visible .dotarrow svg{opacity:1;transform:none}
@media(hover:hover){
  .go:hover .dotarrow__line{width:13px;height:2px;margin-top:-1px}
  .go:hover .dotarrow svg{opacity:1;transform:none}
}
/* the big one, after a very large word (the Services page's four categories): the same
   dot to arrow, in em so it scales with the word */
.dotarrow--big{width:.7em;height:.6em;margin-left:.28em}
.dotarrow--big .dotarrow__line{width:.24em;height:.24em;margin-top:-.12em;border-radius:.12em}
.dotarrow--big svg{width:.6em;height:.6em;left:.08em;transform:translateX(-.24em)}
.go:focus-visible .dotarrow--big .dotarrow__line{width:.5em;height:.065em;margin-top:-.0325em}
@media(hover:hover){.go:hover .dotarrow--big .dotarrow__line{width:.5em;height:.065em;margin-top:-.0325em}}

/* main button */
.cta{position:relative;display:inline-flex;align-items:center;gap:10px;margin:0;padding:17px 26px;border:0;border-radius:999px;
  background:var(--near);color:var(--cream);font-family:var(--font);font-size:16px;font-weight:600;line-height:1.1;letter-spacing:.005em;
  white-space:nowrap;text-decoration:none;cursor:pointer;transition:transform .2s,background .25s;-webkit-tap-highlight-color:transparent}
.cta:active{transform:scale(.98)}
.cta:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
.cta--sm{font-size:14px;padding:14px 18px}
.cta--cream{background:var(--cream);color:var(--near)}
.cta--outline{background:transparent;color:var(--near);box-shadow:inset 0 0 0 1.5px var(--near)}
.cta--outline.cta--cream{background:transparent;color:var(--cream);box-shadow:inset 0 0 0 1.5px var(--cream)}
@media(hover:hover){
  .cta--outline:hover{background:color-mix(in srgb,var(--near) 6%,transparent)}
  .cta--outline.cta--cream:hover{background:color-mix(in srgb,var(--cream) 10%,transparent)}
}
/* switched off */
.cta[disabled]{background:var(--ctl-off);cursor:not-allowed;transform:none}
.cta[disabled] .dotarrow{color:var(--cream)}
.cta[disabled]:hover .dotarrow__line{width:7px;height:7px;margin-top:-3.5px}
.cta[disabled]:hover .dotarrow svg{opacity:0;transform:translateX(-7px)}

/* inline link */
.ilink{display:inline-flex;align-items:center;gap:9px;padding:6px 0 7px;font-family:var(--font);font-size:16px;font-weight:600;line-height:1.1;
  color:var(--near);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--near) 30%,transparent);transition:border-color .25s}
.ilink:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
/* the link is about 31px tall; this invisible margin makes the touch target 45px
   without moving the underline */
.ilink{position:relative}
.ilink::before{content:'';position:absolute;inset:-7px -4px}
.ilink--cream{color:var(--cream);border-bottom-color:color-mix(in srgb,var(--cream) 35%,transparent)}
.ilink--inherit{color:inherit;border-bottom-color:color-mix(in srgb,currentColor 30%,transparent)}
@media(hover:hover){
  .ilink:hover{border-bottom-color:var(--near)}
  .ilink--cream:hover{border-bottom-color:var(--cream)}
  .ilink--inherit:hover{border-bottom-color:currentColor}
}

/* round arrows */
.round{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0;padding:0;border:0;border-radius:50%;
  background:var(--near);color:var(--cream);cursor:pointer;transition:color .25s,transform .2s}
.round--sm{width:44px;height:44px}
.round svg{display:block;transition:transform .3s var(--ease-out)}
.round:active{transform:scale(.94)}
.round:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
.round--cream{background:var(--cream);color:var(--near)}
@media(hover:hover){
  .round:hover{color:var(--orange)}
  .round--next:hover svg{transform:translateX(3px)}
  .round--prev:hover svg{transform:translateX(-3px)}
  .round--up:hover svg{transform:translateY(-2px)}
  .round--down:hover svg{transform:translateY(2px)}
}
.round[disabled]{background:var(--ctl-off-2);color:var(--ctl-dim);cursor:not-allowed}
.round--cream[disabled]{background:color-mix(in srgb,var(--cream) 14%,transparent);color:var(--ctl-dim)}
.round[disabled]:hover{color:var(--ctl-dim)}
.round[disabled]:hover svg{transform:none}

/* choice chips: the dot marks the one that is picked */
.chip{display:inline-flex;align-items:center;margin:0;padding:14px 20px;border:0;border-radius:999px;background:transparent;color:var(--near);
  box-shadow:inset 0 0 0 1.5px var(--ctl-off);font-family:var(--font);font-size:15px;font-weight:600;line-height:1.1;white-space:nowrap;
  text-decoration:none;cursor:pointer;transition:box-shadow .2s,background .2s,color .2s}
.chip:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
@media(hover:hover){.chip:hover{box-shadow:inset 0 0 0 1.5px var(--near)}}
.chip__dot{width:0;height:7px;margin-right:0;border-radius:50%;background:var(--orange);
  transition:width .25s var(--ease-out),margin-right .25s var(--ease-out)}
.chip[aria-pressed="true"],.chip[aria-current="page"],.chip[aria-current="true"]{background:var(--near);color:var(--cream);box-shadow:inset 0 0 0 1.5px var(--near)}
.chip[aria-pressed="true"] .chip__dot,.chip[aria-current="page"] .chip__dot,.chip[aria-current="true"] .chip__dot{width:7px;margin-right:9px}

/* an email field with its button inside */
.pillfield{display:flex;align-items:center;gap:8px;padding:5px 5px 5px 22px;border-radius:999px;background:var(--paper);
  box-shadow:inset 0 0 0 1.5px var(--ctl-line);transition:box-shadow .2s}
.pillfield:focus-within{box-shadow:inset 0 0 0 1.5px var(--near)}
.pillfield input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--near)}
.pillfield input::placeholder{color:var(--muted)}

/* the menu's big dot. no arrow here (Navin, 12 Nov: the big arrow ran across the service
   column's line): the dot grows in after the word you point at, and the page you are on
   keeps it. the reference sizes it for 72px type (15px); .208em scales it with the word */
.bigdot{display:block;width:.208em;height:.208em;border-radius:50%;background:var(--orange);
  opacity:0;transform:scale(.4);transition:opacity .2s,transform .3s}
[aria-current="page"] .bigdot,.go:focus-visible .bigdot{opacity:1;transform:none}
@media(hover:hover){.go:hover .bigdot{opacity:1;transform:none}}

/* small menu links: dot only, like the big ones (Navin, 12 Nov). the dot shows on hover
   and focus; the page you are on keeps it */
.slink{display:inline-flex;align-items:center;gap:8px;padding:6px 0;color:var(--near);text-decoration:none}
.slink__dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--orange);opacity:0;transition:opacity .2s}
.slink:focus-visible .slink__dot,.slink[aria-current="page"] .slink__dot{opacity:1}
.slink:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
@media(hover:hover){.slink:hover .slink__dot{opacity:1}}

/* reduced motion: states still change, nothing animates */
@media(prefers-reduced-motion:reduce){
  .cta,.ilink,.round,.round svg,.chip,.chip__dot,.pillfield,.dotarrow,.dotarrow *,.bigdot,.slink__dot{transition:none !important}
}

/* ---------- INTRO (work) ---------- */
.intro{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:0 var(--edge) 0 var(--edge-in)}
.intro__title{font-size:var(--fs-display);font-weight:800;letter-spacing:-.04em;line-height:.92;text-wrap:balance}
.intro__sub{max-width:560px;margin-top:32px;font-size:20px;font-weight:300;line-height:1.5;text-wrap:pretty}

/* ---------- WORK FILTER ----------
   one set of controls (js/main.js buildFilterBar) placed in one of two homes by
   viewport width (placeFilter):
   · desktop: inside the index rail (#filterRail), above the project numbers, so the
     filter sits with the list it narrows. a facet's options fly out to the right in
     a glass card.
   · up to 980px, where the rail is hidden: a floating glass pill at the bottom
     (#filterDock), the bottom counterpart of the floating nav. options open above it.
   the pill's glass layer is static in work.html so js/nav.js can refract it at load. */

/* shared: the options card and its options */
.wfilter{position:relative}
.wfilter__panel{display:flex;flex-wrap:wrap;gap:8px;padding:14px;border-radius:var(--r-lg);
  background:rgba(245,241,231,.86);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 24px 50px -28px rgba(11,11,13,.5),inset 0 0 0 1px rgba(11,11,13,.07);
  animation:wfilterIn .35s var(--ease-out)}
.wfilter__panel[hidden]{display:none}
@keyframes wfilterIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* the options are choice chips (.chip, BUTTONS) at the panel's own compact size: outline at
   rest, solid with the orange dot once picked. the panel turns ink over the dark acts, so
   the chips follow it there in cream */
.wfilter__opt{font-size:14px;font-weight:500;padding:8px 14px;color:inherit}
.wfilter__optcount{margin-left:8px;font-size:13px;font-weight:600;opacity:.7;font-variant-numeric:tabular-nums}
body.dark-context .wfilter__opt{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--cream) 28%,transparent)}
@media(hover:hover){body.dark-context .wfilter__opt:hover{box-shadow:inset 0 0 0 1.5px var(--cream)}}
body.dark-context .wfilter__opt[aria-pressed="true"]{background:var(--cream);color:var(--near);box-shadow:inset 0 0 0 1.5px var(--cream)}
/* a choice that would zero out the visible set is disabled, not just left to fail silently */
.wfilter__opt:disabled{opacity:.3;cursor:not-allowed}
.wfilter__opt:disabled:hover{box-shadow:inset 0 0 0 1.5px var(--ctl-off)}
body.dark-context .wfilter__opt:disabled:hover{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--cream) 28%,transparent)}
.wfilter__step,.wfilter__all{color:inherit;background:none;cursor:pointer}
.wfilter__steplabel{overflow:hidden;text-overflow:ellipsis}
.wfilter__step::after{content:'';flex:none;width:6px;height:6px;opacity:.7;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transition:transform .3s var(--ease-io)}
.wfilter__clear{color:inherit;border:0;background:none;cursor:pointer;transition:opacity .25s ease}
.wfilter__clear:hover,.wfilter__clear:focus-visible{opacity:1;text-decoration:underline;text-underline-offset:3px}
.wfilter__empty{padding:8vh var(--edge) 10vh var(--edge-in);font-size:16px;opacity:.75}
body.dark-context .wfilter__panel{background:rgba(11,11,13,.74);
  box-shadow:0 24px 50px -28px rgba(0,0,0,.7),inset 0 0 0 1px rgba(245,241,231,.1)}
@media(prefers-reduced-motion:reduce){.wfilter__panel{animation:none}}

/* the client list, as a card (opened from the dock's project segment) */
.wfilter__panel--list{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;padding:8px;min-width:min(320px,100%)}
.wfilter__row{display:flex;align-items:center;gap:14px;min-height:44px;padding:10px 14px;border:0;border-radius:var(--r-md);background:none;
  color:inherit;cursor:pointer;text-align:left;font-family:var(--label);font-weight:600;font-size:15px;
  transition:background-color .2s ease}
.wfilter__row:hover,.wfilter__row:focus-visible{background:color-mix(in srgb,currentColor 7%,transparent)}
.wfilter__rownum{opacity:.65;font-variant-numeric:tabular-nums}
.wfilter__row.is-active .wfilter__rownum{opacity:1;color:var(--seal)}
.wfilter__proj,.wfilter__all{display:none}
/* the phone card: all three facets stacked */
.wfilter__panel--all{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:16px;padding:16px 16px 14px}
.wfilter__group{display:flex;flex-direction:column;gap:8px}
.wfilter__grouplabel{font-family:var(--label);font-weight:600;font-size:14px;opacity:.7}
.wfilter__groupopts{display:flex;flex-wrap:wrap;gap:6px}
.wfilter__panel--all .wfilter__opt{font-size:13px;padding:7px 12px}
.wfilter__clearall{align-self:flex-start;font-family:var(--font);font-size:14px;font-weight:500;color:inherit;opacity:.7;
  border:0;background:none;cursor:pointer;padding:2px 0;text-decoration:underline;text-underline-offset:3px}
.wfilter__clearall:hover,.wfilter__clearall:focus-visible{opacity:1}

/* home 1 · in the index rail. set in the rail's own voice: small semibold labels */
.index__list{display:flex;flex-direction:column;gap:15px}
.index .wfilter{color:var(--near)}
body.dark-context .index .wfilter{color:var(--cream)}
.index .wfilter__glass{display:none}
.index .wfilter__bar,.index .wfilter__steps{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.index .wfilter__label,.index .wfilter__step,.index .wfilter__clear{font-family:var(--label);font-weight:600;
  font-size:13px;font-variant-numeric:tabular-nums}
.index .wfilter__label{opacity:.65}
.index .wfilter__step{display:inline-flex;align-items:center;gap:9px;max-width:230px;padding:0;border:0;
  text-align:left;opacity:.75;transition:opacity .25s ease,color .25s ease}
.index .wfilter__steplabel{white-space:normal}
.index .wfilter__step::after{transform:rotate(-45deg)}        /* points at the card */
.index .wfilter__step:hover,.index .wfilter__step:focus-visible,.index .wfilter__step.is-open{opacity:1}
.index .wfilter__step.is-active{opacity:1;color:var(--seal)}
.index .wfilter__clear{padding:0;opacity:.65}
.index .wfilter__panel{position:absolute;z-index:2;left:calc(100% + 28px);top:-14px;width:max-content;max-width:340px}

/* home 2 · floating dock, only where the rail is hidden */
.wdock{display:none}
@media(max-width:980px){
  .wdock{display:flex;justify-content:center;position:fixed;left:var(--pad);right:var(--pad);bottom:12px;z-index:100;
    pointer-events:none;color:var(--near);transition:color .4s ease}
  .wdock > *{pointer-events:auto}
  body.dark-context .wdock{color:var(--cream)}
  .wdock .wfilter{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:100%}
  .wdock .wfilter__bar{position:relative;isolation:isolate;order:2;display:flex;align-items:center;gap:6px;
    height:52px;padding:0 6px;border-radius:999px}
  .wdock .wfilter__label{display:none}
  .wdock .wfilter__steps{display:flex;align-items:center;gap:6px}
  .wdock .wfilter__step{display:inline-flex;align-items:center;gap:8px;max-width:17ch;
    font-family:var(--font);font-size:13px;font-weight:500;padding:8px 11px 8px 13px;border-radius:999px;
    border:1px solid color-mix(in srgb,currentColor 20%,transparent);
    transition:border-color .25s ease,background-color .25s ease,color .25s ease}
  .wdock .wfilter__steplabel{white-space:nowrap}
  .wdock .wfilter__step::after{transform:translateY(-2px) rotate(45deg)}       /* points down */
  .wdock .wfilter__step.is-open::after{transform:translateY(1px) rotate(-135deg)}
  .wdock .wfilter__step.is-open,.wdock .wfilter__step.is-active{background:var(--near);border-color:var(--near);color:var(--cream)}
  body.dark-context .wdock .wfilter__step.is-open,body.dark-context .wdock .wfilter__step.is-active{background:var(--cream);border-color:var(--cream);color:var(--near)}
  .wdock .wfilter__clear{font-family:var(--font);font-size:13px;font-weight:500;opacity:.6;padding:8px 10px}
  /* never taller than the space between the dock and the top nav */
  .wdock .wfilter__panel{order:1;justify-content:center;max-width:100%;max-height:min(46vh,calc(100dvh - 160px));overflow:auto}
}
/* every dock (no rail): the project you're on leads the pill; tap it for the client list */
@media(max-width:980px){
  .wdock .wfilter__proj{display:inline-flex;align-items:center;gap:10px;max-width:min(36ch,38vw);padding:8px 14px 8px 16px;
    border:0;border-radius:999px;background:none;color:inherit;cursor:pointer;
    font-family:var(--label);font-weight:600;font-size:13px;
    transition:background-color .25s ease}
  .wdock .wfilter__projnum{color:var(--seal);font-variant-numeric:tabular-nums}
  .wdock .wfilter__projname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .wdock .wfilter__proj::after,.wdock .wfilter__all::after{content:'';flex:none;width:6px;height:6px;opacity:.7;
    border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
    transform:translateY(-2px) rotate(45deg);transition:transform .3s var(--ease-io)}
  .wdock .wfilter__proj.is-open::after,.wdock .wfilter__all.is-open::after{transform:translateY(1px) rotate(-135deg)}
  .wdock .wfilter__proj:hover,.wdock .wfilter__proj.is-open{background:color-mix(in srgb,currentColor 8%,transparent)}
}
/* roomier, squarer screens: foldables open (e.g. the iPhone Duo's inner screen, ~0.7
   aspect) and tablets upright. the three facets sit in the pill beside the project */
@media(max-width:980px) and (min-width:600px) and (min-height:600px){
  .wdock .wfilter__steps{padding-left:10px;border-left:1px solid color-mix(in srgb,currentColor 18%,transparent)}
}
/* phones, and anything short: no room for three facets, so they fold into one Filter
   button whose card stacks all three. the pill reads [ 05 Bravo ▾ ] [ Filter ▾ ] */
@media(max-width:599px),(max-width:980px) and (max-height:599px){
  .wdock .wfilter{width:100%}
  .wdock .wfilter__steps,.wdock .wfilter__clear{display:none}
  .wdock .wfilter__proj{max-width:min(30ch,56vw)}
  .wdock .wfilter__all{display:inline-flex;align-items:center;gap:8px;flex:none;margin-left:2px;
    font-family:var(--font);font-size:13px;font-weight:500;padding:8px 12px 8px 14px;border-radius:999px;
    border:1px solid color-mix(in srgb,currentColor 20%,transparent);
    transition:border-color .25s ease,background-color .25s ease,color .25s ease}
  .wdock .wfilter__all.is-open,.wdock .wfilter__all.is-active{background:var(--near);border-color:var(--near);color:var(--cream)}
  body.dark-context .wdock .wfilter__all.is-open,body.dark-context .wdock .wfilter__all.is-active{background:var(--cream);border-color:var(--cream);color:var(--near)}
  .wdock .wfilter__panel--all,.wdock .wfilter__panel--list{align-self:stretch}
  .wdock .wfilter__panel--all{max-height:min(68vh,560px,calc(100dvh - 160px))}
}

/* ---------- PROJECT ---------- */
.project{position:relative;--p-page:var(--cream);--p-ink:var(--near);--p-line:rgba(11,11,13,.16);background:var(--p-page);color:var(--p-ink)}

/* INFO BAND — 4-col grid, scrolls away (not sticky) */
.pinfo{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:clamp(28px,3.5vw,56px);
  padding:14vh var(--edge) 7vh var(--edge-in)}
.pinfo__id{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.pinfo__folio{font-size:13px;opacity:.75}
.pinfo__name{font-weight:700;font-size:var(--fs-h3-lg);letter-spacing:-.02em;line-height:1}
/* plain overview line — what was done, for what kind of client. deliberately quiet:
   an index entry, not a pitch. see everything.design's own portfolio captions. */
.pinfo__blurb{font-size:16px;font-weight:400;line-height:1.4;max-width:32ch;opacity:.85}
.pinfo__sector{font-size:14px;opacity:.8}
.pinfo__year{font-size:13px;opacity:.75}
.pinfo__live{margin-top:4px}   /* an .ilink--inherit (BUTTONS) */
.pinfo__col{display:flex;flex-direction:column;gap:14px}
.lbl{font-size:14px;opacity:.8}
.pinfo__col p{font-size:16px;font-weight:400;line-height:1.5;max-width:34ch}
.tags{display:flex;flex-wrap:wrap;gap:8px}
/* the same pill as the deck tags below and the homepage's work tags */
.tag{font-size:13px;font-weight:500;line-height:1;border:1px solid var(--p-line);border-radius:999px;padding:8px 12px;transition:border-color .3s ease}
.tag:hover{border-color:var(--p-accent)}

/* GALLERY — 4-col grid */
/* right inset carries an extra 15% of the natural content width (desktop only) so the
   image column reads as a considered, inset frame rather than stretching edge to edge */
.pgallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;
  padding:0 calc(var(--edge) + (100vw - var(--edge-in) - var(--edge)) * 0.15) 12vh var(--edge-in)}
.span-1{grid-column:span 1}.span-2{grid-column:span 2}.span-4{grid-column:span 4}
.block{position:relative;overflow:hidden}
/* used by the adaptive gallery instead of a fixed px height — matches the 3000x2250 (4:3)
   source ratio so a landscape mockup (laptop, cards) never gets squeezed into a narrow
   near-square slot the way a fixed height against a 2- or 4-col row can force it to */
.block--ar{aspect-ratio:4/3}
.ph{position:absolute;inset:0;height:100%;display:flex;align-items:center;justify-content:center;
  font-family:var(--label);font-weight:600;font-size:13px;
  background:var(--p-tile);color:var(--p-fg)}
.ph video{width:100%;height:100%;object-fit:contain;display:block}
/* the Work page's photos load as they come near (js/main.js initLazyPhotos); with scripts off,
   the 1200px copy each frame carries in --bg shows instead (html.fx-js is set by the line in the head) */
html:not(.fx-js) .ph[data-bg]{background-image:var(--bg)}
.ph--dots{background-color:var(--p-tile);background-image:radial-gradient(var(--p-accent) 1.3px,transparent 1.3px);background-size:15px 15px}
.ph--ink{background:var(--p-accent);color:var(--p-bg)}
/* single-image "plate" — presentation-deck case studies (one image, no hero, no quote).
   framed with generous margin rather than run full-bleed, so one image reads as a
   considered feature instead of a thin stretch of the multi-image gallery template. */
.block--plate{grid-column:span 4;padding:4vh clamp(var(--pad),10vw,180px) 10vh clamp(var(--pad),10vw,180px)}
.block--plate__inner{position:relative;aspect-ratio:4/3;overflow:hidden}
/* motion piece (Tosic): the video's own ratio, so nothing jumps while it loads. the one
   button pauses it (small, corner) or, when paused or under reduced motion, offers play
   (large, centred over the poster). */
.block--motion{grid-column:span 4;width:100%;margin:0;aspect-ratio:1000/720;max-height:85vh;background:#0B0B0D}
.motion__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.motion__toggle{position:absolute;left:16px;bottom:16px;width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;background:rgba(245,241,231,.92);color:var(--near);
  box-shadow:0 6px 18px -8px rgba(0,0,0,.5);transition:transform .3s var(--ease-out)}
.motion__toggle:hover{transform:scale(1.06)}
.motion__toggle:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.motion__icon{position:relative;width:12px;height:14px}
.motion__icon::before,.motion__icon::after{content:'';position:absolute;top:0;width:4px;height:14px;background:currentColor;border-radius:1px}
.motion__icon::before{left:1px}.motion__icon::after{right:1px}
.motion__toggle.is-paused{left:50%;bottom:50%;width:72px;height:72px;transform:translate(-50%,50%)}
.motion__toggle.is-paused:hover{transform:translate(-50%,50%) scale(1.06)}
.motion__toggle.is-paused .motion__icon{width:18px;height:20px;margin-left:4px}
.motion__toggle.is-paused .motion__icon::before{left:0;width:0;height:0;background:none;border-radius:0;
  border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent currentColor}
.motion__toggle.is-paused .motion__icon::after{display:none}
@media(prefers-reduced-motion:reduce){.motion__toggle{transition:none}}

/* ---------- DECKS AND PRESENTATIONS (work) ----------
   lighter than the case studies: no colour world, no info band. the copy and one lead
   image side by side, the rest of the images in a row that swipes. static HTML in
   work.html (not built by js/main.js), so crawlers read it as written. */
.decks{position:relative;background:var(--cream);color:var(--near);
  padding:16vh calc(var(--edge) + (100vw - var(--edge-in) - var(--edge)) * 0.15) 12vh var(--edge-in)}
.decks__title{font-size:var(--fs-h2-display);font-weight:700;letter-spacing:-.035em;line-height:1;text-wrap:balance;margin-bottom:clamp(32px,5vh,56px)}
.deck{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(24px,3vw,56px);
  padding:clamp(48px,8vh,88px) 0;border-top:1px solid rgba(11,11,13,.14);scroll-margin-top:90px}
.deck__info{display:flex;flex-direction:column;align-items:flex-start;gap:14px;align-self:start;position:sticky;top:110px}
.deck__client{font-size:var(--fs-h3-lg);font-weight:700;letter-spacing:-.02em;line-height:1.05}
.deck__headline{font-size:clamp(20px,1.7vw,24px);font-weight:600;letter-spacing:-.01em;line-height:1.3;text-wrap:balance}
.deck__body{font-size:16px;line-height:1.55;max-width:46ch;text-wrap:pretty}
.deck__tags{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.deck__tags li{font-size:13px;font-weight:500;line-height:1;padding:8px 12px;border:1px solid rgba(11,11,13,.2);border-radius:999px}
.deck__quote{margin:10px 0 0;padding-top:16px;border-top:1px solid rgba(11,11,13,.12)}
.deck__quote blockquote{font-size:18px;font-weight:600;letter-spacing:-.01em;line-height:1.4;max-width:40ch;text-wrap:pretty}
.deck__quote figcaption{margin-top:8px;font-size:14px;line-height:1.4;color:var(--muted)}
.deck__media{min-width:0;display:flex;flex-direction:column;gap:8px}
.deck__lead,.deck__shot{margin:0;background:var(--tint)}
.deck__lead img,.deck__shot img{display:block;width:100%;height:auto}
.deck__row{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:10px}
.deck__row:focus-visible{outline:2px solid var(--ring);outline-offset:4px}
.deck__shot{flex:0 0 min(46%,560px);scroll-snap-align:start}
@media(max-width:980px){
  .decks{padding:12vh var(--pad) 10vh}
  .deck{grid-template-columns:1fr}
  .deck__info{position:static}
  .deck__shot{flex-basis:82%}
}

/* media tile caption (replaces skeuomorphic browser chrome) */
.block--cap{overflow:visible}
.block__clip{position:absolute;inset:0;overflow:hidden}
.blockcap{position:absolute;left:0;top:calc(100% + 10px);font-family:var(--label);font-weight:500;font-size:13px;opacity:.75}
/* quote block (full-width text, on page bg) */
.block--quote{position:relative;grid-column:span 4;overflow:visible;padding:clamp(40px,7vw,90px) 0;display:flex;flex-direction:column;gap:22px;border-top:1px solid var(--p-line);border-bottom:1px solid var(--p-line)}
.block--quote blockquote{font-weight:600;font-size:clamp(26px,3.4vw,46px);letter-spacing:-.02em;line-height:1.15;max-width:24ch}
.block--quote figcaption{font-family:var(--label);font-weight:500;font-size:15px;opacity:.75}
/* studio-authored outcome lines (no client testimonial yet) — labelled, not disguised as a quote */
.quotelabel{font-family:var(--label);font-weight:500;font-size:15px;opacity:.75}
.block--quote.is-fact p{font-weight:700;font-size:clamp(26px,3.4vw,46px);letter-spacing:-.02em;line-height:1.15;max-width:26ch}
/* a thin accent rule that draws in with the project's own colour when the quote enters —
   echoes the world-turn tween into the one moment on the page that carries a human voice */
.quoteaccent{position:absolute;top:-1px;left:0;height:2px;width:100%;background:var(--p-accent);
  transform:scaleX(0);transform-origin:left center}

/* ---------- CLOSING ACT (work) ---------- */
.closing{position:relative;min-height:92vh;background:var(--near);color:var(--cream);display:flex;flex-direction:column;justify-content:center;gap:26px;padding:14vh var(--edge) 18vh var(--edge-in)}
.closing__title{font-weight:700;font-size:var(--fs-h2-display);letter-spacing:-.04em;line-height:.94}
.closing__sub{max-width:560px;font-size:clamp(17px,2vw,20px);font-weight:300;line-height:1.5;opacity:.9}
.closing__row{display:flex;align-items:center;gap:32px;flex-wrap:wrap;margin-top:12px}

/* ---------- THE ORBIT (work: the opening and the closing) ----------
   From the work motion handover (21 Nov 2026). AltxDesign's gradient X at the centre of eight
   rings; every project is a dark grey X travelling one of them (js/main.js initOrbit, built from
   ALL in the index rail's order). The closing draws the same system at night, with one more
   dashed orbit carrying an empty X: the next project. The orbit sits behind the text and under
   the fixed index rail, takes the pointer only on its marks, and holds still off screen
   (.is-off) and under reduced motion. overflow:clip, not hidden: a keyboard focus on a mark
   outside the section must not scroll the section's own content. */
.intro{position:relative}
.intro,.closing{overflow:hidden;overflow:clip}
.intro__title,.intro__sub,.closing__title,.closing__sub,.closing__row{position:relative;z-index:1}
.orbit{position:absolute;inset:0;pointer-events:none}
.orbit svg{display:block;width:100%;height:100%;overflow:visible}
.orbit a{pointer-events:auto;cursor:pointer}
.orbit a:focus-visible{outline:none}   /* the mark itself answers: it grows, turns ink, the rest dim */
.orb{animation:orbspin linear infinite}
.orbit.is-hold .orb,.orbit.is-off .orb,.orbit.is-off .orbit__sway,.orbit.is-off .orbit__ring--yours{animation-play-state:paused}
.orbit__ring{fill:none;stroke:rgba(11,11,13,.2);stroke-width:1px;vector-effect:non-scaling-stroke;opacity:0;transition:opacity 1.2s ease;transition-delay:calc(var(--k) * .12s)}
.orbit__ring--far{stroke:rgba(11,11,13,.1)}
.orbit.is-in .orbit__ring{opacity:1}
.orbit__m{transform-box:fill-box;transform-origin:center;opacity:0;transform:scale(0) rotate(-90deg);transition:opacity .3s ease,transform .7s var(--ease-out);transition-delay:calc(.5s + var(--i) * 80ms)}
.orbit.is-in .orbit__m{opacity:1;transform:none}
.orbit.is-set .orbit__m{transition:opacity .35s ease,transform .5s var(--ease-out);transition-delay:0s}
.orbit a.is-on .orbit__m{transform:scale(1.5) rotate(90deg)}
.orbit.is-hold a:not(.is-on) .orbit__m{opacity:.3}
/* the project marks are dark grey (Navin, 21 Nov; the handover had them orange); the one under the
   pointer or the keyboard turns orange */
.orbit__m path{fill:color-mix(in srgb,var(--near) 86%,var(--cream));transition:fill .3s ease}
.orbit a.is-on .orbit__m path{fill:var(--orange)}
.orbit__core{transform-box:fill-box;transform-origin:center;opacity:0;transform:scale(.4) rotate(-60deg);transition:opacity .6s ease .2s,transform 1.2s var(--ease-out) .2s}
.orbit.is-in .orbit__core{opacity:1;transform:none}
.orbit__sway{transform-box:fill-box;transform-origin:center;animation:orbsway 14s var(--ease-io) infinite alternate}
.orbit__cap{position:absolute;z-index:1;right:var(--edge);bottom:clamp(28px,6vh,64px);display:flex;align-items:baseline;gap:10px;margin:0;font-size:13px;font-weight:600;white-space:nowrap;opacity:0;transition:opacity .6s ease}
.orbit.is-in + .orbit__cap{opacity:1}
.orbit__cap i{font-style:normal;font-variant-numeric:tabular-nums;color:var(--seal);transform:scale(1.27);transform-origin:right center}
/* closing: night, the projects go quiet, one more orbit is drawn with an empty place on it */
.orbit--next .orbit__ring{stroke:rgba(245,241,231,.24)}
.orbit--next .orbit__ring--far{stroke:rgba(245,241,231,.12)}
.orbit--next.is-in .orbit__m{opacity:.34}
.orbit--next .orbit__m path{fill:var(--cream)}
.orbit__glow{opacity:0;transition:opacity 2s ease}
.orbit.is-in .orbit__glow{opacity:1}
.orbit .orbit__ring--yours{stroke:var(--orange);stroke-dasharray:7 9;animation:orbmarch 2s linear infinite;transition-delay:1.6s}
.orbit__slot{transform-box:fill-box;transform-origin:center;opacity:0;transition:opacity .6s ease 2s}
.orbit.is-in .orbit__slot{opacity:1}
.orbit__slot path{fill:rgba(255,74,28,0);stroke:var(--orange);stroke-width:5;stroke-dasharray:14 11;transition:fill .35s ease}
.orbit.is-yours .orb--yours{animation-play-state:paused}
.orbit.is-yours .orbit__slot{animation:orbstamp .55s var(--ease-out)}
.orbit.is-yours .orbit__slot path{fill:var(--orange);stroke-dasharray:none}
.orbit.is-yours .orbit__ring--yours{stroke-dasharray:none;animation:none}
@keyframes orbspin{to{transform:rotate(360deg)}}
@keyframes orbsway{from{transform:rotate(-8deg)}to{transform:rotate(10deg)}}
@keyframes orbmarch{to{stroke-dashoffset:-16}}
@keyframes orbstamp{0%{transform:scale(2.2) rotate(-40deg)}100%{transform:none}}
/* 980px and below, where the index rail is hidden: the system under the text, centred and
   oversized (js/main.js buildOrbit), the outer rings running off the screen's edges */
@media(max-width:980px){
  /* text, orbit and caption no longer fit one centred screen: the opening starts clear of the nav
     and leaves room under the caption for the rings to run on */
  .intro{padding-block:120px 60px}
  .orbit{position:relative;inset:auto;flex:none;height:min(120vw,540px);margin:36px calc(var(--edge) * -1) 0}
  .orbit__cap{position:static;justify-content:center;margin-top:8px}
  .orbit__cap i{transform-origin:left center}
}
@media(prefers-reduced-motion:reduce){
  .orb,.orbit__sway,.orbit .orbit__ring--yours,.orbit.is-yours .orbit__slot{animation:none}
  .orbit .orbit__m,.orbit.is-set .orbit__m,.orbit__m path,.orbit__core,.orbit__ring,.orbit__slot,.orbit__slot path,.orbit__glow,.orbit__cap{transition:none}
}

/* ---------- FOOTER (every page but Captain Navo) and THE TURN TO NIGHT ----------
   From the home/About/contact handover (20 Nov 2026), section 4.1. The link grid, then the
   scene: the AltxDesign logo fading into the skyline (.scene__logo), the night game over it
   (.gstage; not .stage, the homepage process list uses that) and the ground strip.
   The end of the page turns to night: js/altx-footer.js reads where .scene__logo is and sets
   --p (the background, 0 to 1) and --pf (the text, flips at halfway) on <html>. --bg, --fg,
   --mut and --rule follow them; anything that can be on screen during the turn is painted in
   those, never a fixed ink. Two versions:
     .sfoot           (no page uses it on its own since 21 Nov 2026)
     .sfoot--bare     every page: no closing line and no form above the links. Each page closes
                      on its own section; the footer's one form is the email list. (The closing
                      line and "Leave your email at ___" were removed on 21 Nov 2026.) */
.sfoot{position:relative;background:var(--bg);color:var(--fg)}
.sfoot [hidden]{display:none !important}
.sfoot__pad{padding:0 var(--edge)}
.sfoot__in{max-width:var(--wrap);margin-inline:auto;border-top:1px solid var(--rule);padding-top:56px;display:flex;flex-direction:column;gap:36px}
.sfoot__blank{display:block;margin:2px 0 6px;border-bottom:2px solid color-mix(in srgb,var(--fg) 34%,transparent);transition:border-color .2s ease}
.sfoot__input{display:block;width:100%;height:1.6em;padding:0;border:0;outline:0;background:transparent;color:var(--fg);font:inherit;letter-spacing:inherit;caret-color:var(--orange)}
.sfoot__input::placeholder{color:color-mix(in srgb,var(--fg) 42%,transparent);opacity:1}
/* the send button is the site's round arrow (.round .round--next), in the turning colours */
.sfoot__send.round{flex:none;background:var(--fg);color:var(--bg)}
.sfoot__note{margin-top:6px;font-size:15px;line-height:1.5;color:var(--mut)}
.sfoot__note a{color:var(--fg);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.sfoot--bare .sfoot__links{padding-top:0;border-top:0}
/* the link grid. Rows are 32px with a mouse and 44px on touch screens. */
.sfoot__links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"nav brand creative more";gap:20px clamp(20px,3vw,40px);padding-top:28px;border-top:1px solid var(--rule)}
.sfoot__links .is-nav{grid-area:nav}.sfoot__links .is-brand{grid-area:brand}.sfoot__links .is-creative{grid-area:creative}.sfoot__links .is-more{grid-area:more}
.sfoot__links ul{list-style:none;display:flex;flex-direction:column;align-items:flex-start}
/* no colour transition on these: the text flips with the page at the turn to night, and a fade
   would leave it grey on grey for a moment */
.sfoot__links a{display:inline-flex;align-items:center;min-height:32px;padding:4px 0;font-size:15px;line-height:1.3;color:var(--mut)}
.sfoot__links a.sfoot__top{min-height:34px;font-size:17px;font-weight:600;color:var(--fg);
  background-image:linear-gradient(currentColor,currentColor);background-size:0 1px;background-repeat:no-repeat;background-position:left 84%;transition:background-size .35s var(--ease-io)}
.sfoot__links a:hover,.sfoot__links a[aria-current="page"]{color:var(--fg)}
.sfoot__links a.sfoot__top:hover,.sfoot__links a.sfoot__top[aria-current="page"]{background-size:100% 1px}
@media(pointer:coarse){.sfoot__links a,.sfoot__links a.sfoot__top{min-height:44px}}
/* the social icons (Navin, 21 Nov 2026: the same icons as the Notes share buttons): round icon
   links at the end of the first column, in the footer's --fg and --bg so they turn to night with
   it. Written into every page by tools/footer-social.mjs from content/social.json. */
.sfoot__links .sfoot__social{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sfoot__links .sfoot__social a{display:inline-grid;place-items:center;width:40px;height:40px;min-height:0;padding:0;border-radius:50%;
  box-shadow:inset 0 0 0 1.5px var(--rule);font-size:16px;color:var(--fg);transition:background .3s ease,color .3s ease,box-shadow .3s ease,transform .5s var(--ease-out)}
.sfoot__links .sfoot__social a:hover{background:var(--fg);color:var(--bg);box-shadow:none;transform:translateY(-2px)}
.sfoot__links .sfoot__social a:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
@media(pointer:coarse){.sfoot__links .sfoot__social a{width:44px;height:44px;min-height:0}}
@media(prefers-reduced-motion:reduce){.sfoot__links .sfoot__social a{transition:none}.sfoot__links .sfoot__social a:hover{transform:none}}

/* ICONS · Font Awesome Free 6, cut down to the six icons the site uses (the footer's social icons
   and the Notes share buttons; 1 KB a font, assets/fonts/, cut with fonttools on 21 Nov 2026).
   The one agreed exception to "the logo X replaces icons": social and share icons only.
   Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
   License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
   Copyright 2024 Fonticons, Inc. */
@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../assets/fonts/fa-brands-400.woff2?v=2) format("woff2")}
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../assets/fonts/fa-solid-900.woff2?v=2) format("woff2")}
.fa-brands,.fa-solid{display:inline-block;font-style:normal;font-variant:normal;line-height:1;text-rendering:auto;-webkit-font-smoothing:antialiased}
.fa-brands{font-family:"Font Awesome 6 Brands";font-weight:400}
.fa-solid{font-family:"Font Awesome 6 Free";font-weight:900}
.fa-link::before{content:"\f0c1"}.fa-check::before{content:"\f00c"}.fa-linkedin-in::before{content:"\f0e1"}.fa-x-twitter::before{content:"\e61b"}.fa-facebook-f::before{content:"\f39e"}.fa-instagram::before{content:"\f16d"}
/* the email list (footer handover, 21 Nov 2026): a row under the link columns, above the logo, on
   every page. The heading on the left; the blank, the round arrow and the note on the right.
   js/altx-footer.js types the example addresses into this blank (the one animated field per
   page) and sends the address to the newsletter list. Stacked at 760px and under. */
.sfoot__list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px clamp(20px,3vw,40px);align-items:end;padding-top:28px;border-top:1px solid var(--rule)}
.sfoot__listh{font-size:clamp(23px,2.1vw,30px);font-weight:500;letter-spacing:-.02em;line-height:1.2}
.sfoot__listrow{display:flex;align-items:center;gap:16px;font-size:clamp(20px,1.7vw,24px);font-weight:500;letter-spacing:-.02em}
.sfoot__listrow .sfoot__blank{flex:1;margin:0}
.sfoot__list:focus-within .sfoot__blank{border-color:var(--fg)}
.sfoot__list.is-bad .sfoot__blank{border-color:var(--orange)}
.sfoot__list .sfoot__note{grid-column:2;margin-top:4px}
.sfoot__list.is-done .sfoot__listrow{display:none}
.sfoot__list.is-done .sfoot__note{grid-column:2;align-self:end;font-size:clamp(17px,1.4vw,20px);color:var(--fg)}
@media(max-width:760px){.sfoot__list{grid-template-columns:1fr}.sfoot__list .sfoot__note,.sfoot__list.is-done .sfoot__note{grid-column:1}}
.sfoot__grp{display:flex;align-items:center;gap:2px}
.sfoot__tog{display:none;place-items:center;width:44px;height:44px;margin:-4px 0;border:0;border-radius:50%;background:transparent;color:var(--fg);cursor:pointer}
.sfoot__tog svg{width:16px;height:16px;transition:transform .3s var(--ease-io)}
.sfoot__tog[aria-expanded="true"] svg{transform:rotate(45deg)}   /* the plus turns into an x */
.sfoot__tog:focus-visible{outline:2px solid var(--fg);outline-offset:-4px}

/* the scene: the logo, the game and the ground strip, stacked as one picture. The logo is
   plain artwork. It fades toward its feet and the game sits over its lower part, so the
   skyline rises in front of the letters. */
.scene{position:relative;margin-top:clamp(48px,6vw,88px);--lw:min(var(--wrap),100vw - 2 * var(--pad))}
.scene__logo{position:relative;z-index:0;padding:0 var(--edge)}
.scene__logo svg{display:block;width:100%;max-width:var(--wrap);height:auto;margin-inline:auto}
.scene__logo stop{stop-color:var(--fg)}
.gstage{position:relative;z-index:1;margin-top:calc(var(--lw) * -0.15);height:clamp(250px,27vw,400px)}
.runner{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.runner canvas{display:block;width:100%;height:100%}
.runner:focus-visible{outline:2px solid var(--fg);outline-offset:-4px}
/* the ground strip continues the road to the bottom of the page: the game's text and score,
   then the copyright line. Its colours are the scene's, not the page's. */
.ground{position:relative;z-index:1;background:#101013;color:#F5F1E7;--gm:#A8A296;padding:16px var(--edge) 8px}
.ground__in{max-width:var(--wrap);margin-inline:auto}
.ground__hud{display:flex;justify-content:space-between;align-items:flex-start;gap:10px 40px;min-height:58px}
.ground__msg{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px}
.stage__title{font-size:17px;font-weight:600;line-height:1.4}
.stage__sub{font-size:15px;line-height:1.4;color:var(--gm)}
.stage__cta{font-size:15px;font-weight:600;line-height:1.4;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.stage__cta:hover{text-decoration-thickness:2px}
.ground__score{display:flex;align-items:baseline;gap:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
.stage__now{font-size:17px;font-weight:700}
.stage__best,.stage__toll{font-size:14px;color:var(--gm)}
.ground__bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:6px;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);font-size:14px;color:var(--gm)}
.ground__bar a{display:inline-flex;align-items:center;min-height:44px;transition:color .25s ease}
.ground__bar a:hover,.ground__bar a[aria-current="page"]{color:inherit;text-decoration:underline;text-underline-offset:4px}
/* the work page's fixed project rail sits over the left gutter on desktop */
.index ~ #scroll .sfoot__pad,.index ~ #scroll .scene__logo,.index ~ #scroll .ground{padding-left:var(--edge-in)}

/* TABLET AND PHONE · everything on the left edge, in one order: headline, email form,
   links, email list, logo, game. The links (footer handover, 21 Nov 2026):
   TABLET (641 to 900px) three columns, nothing folded, no plus buttons: pages | Branding with
   its sub-pages, then Web development and Monthly retainer under it | Creative services.
   PHONE (640px and under) the pages in two columns, then the four services as full-width rows
   with a hairline above each; Branding and Creative services fold, the plus at the row's right
   edge opens the sub-pages in place, indented. Tap targets 48px. Markup unchanged. */
@media(max-width:900px){
  .sfoot__in{padding-top:48px;gap:32px}
  .sfoot__links{grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,4fr);grid-template-areas:"nav brand creative" "nav more creative";grid-template-rows:auto 1fr;gap:18px clamp(20px,4vw,40px)}
  .sfoot__links a,.sfoot__links a.sfoot__top{min-height:40px}
  /* the pages column is narrow here: the four social icons sit two by two, not three and one */
  .sfoot__links .sfoot__social{display:grid;grid-template-columns:repeat(2,max-content);justify-content:start}
  .gstage{margin-top:calc(var(--lw) * -0.2)}
}
@media(max-width:640px){
  .sfoot__links{grid-template-columns:1fr;grid-template-areas:"nav" "brand" "creative" "more";grid-template-rows:none;gap:0}
  .sfoot__links a,.sfoot__links a.sfoot__top{min-height:48px}
  .sfoot__links .is-nav{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;padding-bottom:14px}
  .sfoot__links .is-nav .sfoot__social{grid-column:1 / -1;display:flex}
  .sfoot__links ul:not(.is-nav){align-items:stretch}
  .sfoot__links ul:not(.is-nav)>li:not(.is-sub){border-top:1px solid var(--rule)}
  .sfoot__list{padding-top:24px}
  .sfoot__grp{justify-content:space-between}
  .sfoot__grp .sfoot__top{flex:1}
  .sfoot__tog{display:grid;margin:0 -12px 0 0;width:48px;height:48px}
  .sfoot__links ul[data-fold]:not(.is-open) .is-sub{display:none}
  .sfoot__links .is-sub a{padding-left:16px}
  .sfoot__links ul.is-open{padding-bottom:10px}
}
@media(max-width:560px){
  .gstage{margin-top:calc(var(--lw) * -0.4);height:240px}
  .ground__hud{flex-direction:column-reverse;gap:6px;min-height:104px}
}
@media(prefers-reduced-motion:reduce){.sfoot__blank,.sfoot__tog svg,.sfoot__links a,.ground__bar a{transition:none}}

/* ---------- THE CLOSING SECTION (.ask): the homepage and About ----------
   The heading, then the short brief (css/sentence-form.css, js/sentence-form.js; on About since
   21 Nov 2026, in place of "Leave your email at ___"). Painted in --bg and --fg, so it turns
   to night with the footer. */
.ask{background:var(--bg);color:var(--fg);padding:0 var(--edge) clamp(80px,10vw,150px)}
.ask__in{max-width:var(--wrap);margin-inline:auto;padding-top:clamp(48px,6vw,96px);border-top:1px solid var(--rule)}
.ask__title{font-size:clamp(34px,5.4vw,84px);font-weight:700;letter-spacing:-.04em;line-height:1.04}

/* ---------- FAQ (.faqs): the homepage, About and Contact ----------
   The heading stays put on the left; the questions run down the right. One open at a time.
   The toggle is the logo X: turned 45 degrees it reads as a plus; open, it spins upright on a
   black circle. (Named .faqs, not .faq: the service pages' FAQ already uses that.) */
.faqs{padding:clamp(96px,12vw,170px) var(--edge)}
.faqs__in{max-width:var(--wrap);margin-inline:auto;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(32px,5vw,96px);align-items:start}
.faqs__head{position:sticky;top:120px}
.faqs__title{font-size:clamp(34px,4.1vw,60px);font-weight:700;letter-spacing:-.035em;line-height:1}
.faqs__intro{margin-top:16px;font-size:clamp(17px,1.5vw,22px);line-height:1.45;color:rgba(11,11,13,.8)}
.qa{border-top:1px solid rgba(11,11,13,.16)}
.qa:last-of-type{border-bottom:1px solid rgba(11,11,13,.16)}
.qa[hidden]{display:none}
.qa h3{font:inherit}
.qa__q{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;width:100%;padding:clamp(18px,2vw,26px) 0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;
  font:600 clamp(19px,1.75vw,26px)/1.25 var(--font);letter-spacing:-.015em}
.qa__q:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:6px}
.qa__mark{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(11,11,13,.22);transition:background .25s ease,color .25s ease,box-shadow .25s ease}
.qa__mark::before{content:'';width:14px;height:14px;background:currentColor;-webkit-mask:var(--xmark) center/contain no-repeat;mask:var(--xmark) center/contain no-repeat;
  transform:rotate(45deg);transition:transform .5s var(--ease-io)}
.qa__q:hover .qa__mark{box-shadow:inset 0 0 0 1.5px var(--near)}
.qa.is-open .qa__mark{background:var(--near);color:var(--cream);box-shadow:none}
.qa.is-open .qa__mark::before{transform:rotate(180deg)}
.qa__a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--ease-io)}
.qa.is-open .qa__a{grid-template-rows:1fr}
.qa__ain{overflow:hidden;min-height:0}
.qa__ain p{max-width:64ch;padding:0 0 clamp(20px,2.2vw,30px);font-size:clamp(16px,1.25vw,19px);line-height:1.55;color:rgba(11,11,13,.82)}
.qa__ain a{text-decoration:underline;text-decoration-color:rgba(11,11,13,.35);text-underline-offset:3px}
.qa__ain a:hover{text-decoration-color:var(--orange)}
.faqs__more{margin-top:clamp(24px,2.6vw,36px)}
@media(max-width:900px){
  .faqs__in{grid-template-columns:1fr;row-gap:28px}
  .faqs__head{position:static}
}
@media(prefers-reduced-motion:reduce){.qa__a,.qa__mark,.qa__mark::before{transition:none}}
/* .faqs--tone: when the FAQ is the last section before the footer (Contact, Services, Careers),
   the page starts turning to night while it is still on screen, so it is painted in the turning
   colours (--bg, --fg), never fixed ink. Moved here from css/page-contact.css, 20 Nov 2026. */
.faqs--tone{background:var(--bg);color:var(--fg)}
.faqs--tone .qa{border-color:var(--rule)}
.faqs--tone .qa__mark{box-shadow:inset 0 0 0 1.5px var(--rule)}
.faqs--tone .qa__q:hover .qa__mark{box-shadow:inset 0 0 0 1.5px var(--fg)}
.faqs--tone .qa.is-open .qa__mark{background:var(--fg);color:var(--bg);box-shadow:none}
.faqs--tone .qa__ain p{color:var(--mut)}
.faqs--tone .qa__ain a{text-decoration-color:var(--rule)}

/* ---------- CHAT BUBBLES (.chat, .pair, .msg): About's say-no thread and the Services page's
   situations. A request comes in on the left (.msg--in), the answer goes out on the right
   (.msg--out, with the logo X). Each bubble waits hidden until its pair is asked/typed; with
   scripts off, or if js/parts.js never ran (.fx-safe), every bubble simply shows. Moved here
   from css/page-about.css, 20 Nov 2026; About keeps its typing dots and the strike. ---------- */
.chat{display:flex;flex-direction:column;gap:clamp(22px,2.6vw,36px);max-width:760px}
.pair{display:flex;flex-direction:column;gap:10px}
.msg{position:relative;max-width:86%;padding:clamp(12px,1.2vw,18px) clamp(16px,1.6vw,24px);border-radius:24px;font-size:clamp(18px,1.75vw,26px);font-weight:600;letter-spacing:-.015em;line-height:1.25;opacity:0;transform:translateY(14px) scale(.96);transition:opacity .45s ease,transform .6s var(--ease-out)}
.msg--in{align-self:flex-start;border-bottom-left-radius:6px;background:rgba(245,241,231,.1);color:var(--cream);transform-origin:0 100%}
.msg--out{align-self:flex-end;display:flex;align-items:center;gap:12px;border-bottom-right-radius:6px;background:var(--cream);color:var(--near);transform-origin:100% 100%}
.msg__x{flex:none;width:22px;height:22px}
.msg__x path{fill:var(--orange)}
.msg__say{position:relative}
.pair.is-asked .msg--in,.pair.is-typing .msg--out{opacity:1;transform:none}
html:not(.fx-js) .msg,.fx-safe .msg{opacity:1;transform:none;transition:none}
@media(prefers-reduced-motion:reduce){.msg{opacity:1;transform:none;transition:none}}

/* ---------- THE CLIENT STRIP AND ITS CARD (.logos, .peek): the homepage, About, Contact ----------
   The client logos drift left; pointing at one (or focusing it, or tapping it on a phone)
   raises a rounded card over it with that project's image and facts. The strip holds still
   while a card is up. The list is repeated three times so the loop has no seam. js/parts.js */
.logos{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.logos__track{display:flex;align-items:center;width:max-content;animation:x-roll 46s linear infinite}
.logos.is-held .logos__track{animation-play-state:paused}
@keyframes x-roll{to{transform:translateX(calc(-100% / 3))}}
.logo{flex:none;display:grid;place-items:center;height:76px;padding:0 clamp(26px,3.4vw,54px);border-radius:16px}
/* --k sizes the whole strip (About and Contact show it larger); --lk evens out each mark's
   optical size (js/clients.js) */
.logo img{display:block;height:calc(37.4px * var(--k,1) * var(--lk,1));max-width:180px;width:auto;object-fit:contain;filter:brightness(0);opacity:.62;transition:opacity .25s ease}
a.logo:hover img,a.logo:focus-visible img,.logo.is-on img{opacity:1}
.logo:focus-visible{outline:2px solid var(--ring);outline-offset:-6px}
/* a client without a project on the Work page: the logo only, nothing on hover */
.logo--quiet{cursor:default}
.peek{position:fixed;z-index:15;left:0;top:0;width:min(400px,calc(100vw - 32px));padding:8px 8px 14px;border-radius:var(--r-lg);background:var(--paper);
  box-shadow:0 30px 70px -28px rgba(11,11,13,.5),0 0 0 1px rgba(11,11,13,.07);pointer-events:none;
  opacity:0;transform:translate3d(var(--x,0px),var(--y,0px),0) translateY(14px) scale(.96);transform-origin:50% 100%;
  transition:opacity .22s ease,transform .32s var(--ease-out)}
.peek.is-on{opacity:1;transform:translate3d(var(--x,0px),var(--y,0px),0)}
.peek__img{aspect-ratio:16/10;border-radius:calc(var(--r-lg) - 6px);overflow:hidden;background:#1a1a1d}
.peek__img img{display:block;width:100%;height:100%;object-fit:cover}
.peek__cap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:12px 8px 0;font-size:15px;line-height:1.35;color:var(--near)}
.peek__cap b{font-size:17px;font-weight:700}
.peek__cap span{color:var(--muted)}
.peek__cap .peek__where{grid-column:2;grid-row:1;white-space:nowrap;font-weight:600;color:var(--near);font-size:14px;align-self:center}
.peek__cap .peek__what{grid-column:1 / -1}
@media(prefers-reduced-motion:reduce){
  .logos{overflow-x:auto;-webkit-mask-image:none;mask-image:none}.logos__track{animation:none}
  .peek{transition:opacity .15s ease}
}

/* ---------- SMALL SHARED PIECES: About and Contact ---------- */
/* [data-fx] comes in once when scrolled to (js/parts.js adds .is-in); .fx is the default rise.
   It hides only under .fx-js (a line in the page's <head>), so with scripts off, or if js/parts.js
   never runs (.fx-safe after 4 seconds), everything simply shows. */
.fx{transition:opacity .9s ease,transform 1s var(--ease-out)}
@media(prefers-reduced-motion:no-preference){.fx-js:not(.fx-safe) .fx:not(.is-in){opacity:0;transform:translateY(22px)}}
/* the gradient on a key phrase (gold, orange, seal, maroon), drifting slowly */
.grad{color:transparent;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  background-image:linear-gradient(100deg,var(--gold),var(--orange) 34%,var(--seal) 74%,var(--maroon));background-size:180% 100%;animation:x-flow 8s ease-in-out infinite alternate}
@keyframes x-flow{from{background-position:0% 30%}to{background-position:100% 70%}}
/* two client quotes side by side */
.kudos__list{display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(20px,3vw,48px)}
.kudo{display:flex;flex-direction:column;gap:18px;padding-top:22px;border-top:2px solid var(--near)}
.kudo blockquote{font-size:clamp(20px,2vw,30px);font-weight:600;letter-spacing:-.015em;line-height:1.25;text-wrap:pretty}
.kudo figcaption{font-size:15px;font-weight:600;color:var(--muted);padding-left:16px;border-left:2px solid var(--orange)}
@media(max-width:900px){.kudos__list{grid-template-columns:1fr;row-gap:36px}}
@media(prefers-reduced-motion:reduce){.fx{transition:none}.grad{animation:none}}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  :root{--gutter:var(--pad)}
  .index{display:none}
  .wprogress{display:block}
  .pinfo{grid-template-columns:1fr;gap:32px;padding-top:16vh}
  .pgallery{grid-template-columns:repeat(2,1fr);padding-right:var(--pad)}
  .span-4,.block--quote{grid-column:span 2}
  .block{height:auto !important;aspect-ratio:4/3}
  .block--hero{aspect-ratio:3/4}
  .block--quote{aspect-ratio:auto !important;height:auto !important}
}
@media(max-width:600px){
  .pgallery{grid-template-columns:1fr 1fr}
  .span-1{grid-column:span 1}
  .span-2,.span-4,.block--quote{grid-column:span 2}
  .block--hero{aspect-ratio:4/5}
}
