/* ==========================================================================
   restyle.css — presentation layer only.
   Loaded after site.css (and after any page <style> block). It changes colour,
   type, spacing, framing and motion. It never adds, removes or reorders copy
   or assets: every rule here only restyles an element that already exists.
   ========================================================================== */

/* ---------- type ----------
   The faces hanif.rest is set in: PP Neue Montreal (Display for the page,
   Text for long reading) and Geist Mono for small labels. PP Neue Montreal
   is a licensed Pangram Pangram face: drop its files into assets/fonts with
   the names below (or have it installed) and it takes over; until then
   Inter stands in at the same sizes. Geist Mono is open source and is here. */
@font-face{font-family:'PP Neue Montreal Display';font-weight:400;font-style:normal;font-display:swap;
  src:local('PP Neue Montreal Regular'),local('PPNeueMontreal-Regular'),url("../fonts/PPNeueMontreal-Regular.woff2") format("woff2"),url("../fonts/PPNeueMontreal-Regular.otf") format("opentype")}
@font-face{font-family:'PP Neue Montreal Display';font-weight:500;font-style:normal;font-display:swap;
  src:local('PP Neue Montreal Medium'),local('PPNeueMontreal-Medium'),url("../fonts/PPNeueMontreal-Medium.woff2") format("woff2"),url("../fonts/PPNeueMontreal-Medium.otf") format("opentype")}
@font-face{font-family:'PP Neue Montreal Text';font-weight:400 600;font-style:normal;font-display:swap;
  src:local('PP Neue Montreal Text'),url("../fonts/PPNeueMontrealText-Variable.woff2") format("woff2"),url("../fonts/PPNeueMontrealText-Variable.ttf") format("truetype")}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:'Inter';font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/inter-latin-400-italic.woff2") format("woff2")}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:'Inter';font-style:italic;font-weight:500;font-display:swap;src:url("../fonts/inter-latin-500-italic.woff2") format("woff2")}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/geist-mono-latin-500-normal.woff2") format("woff2")}

/* ---------- tokens ---------- */
:root,
:root[data-theme="light"],
:root[data-theme="dark"]{
  --r-bg:#F2F1ED;
  --r-ink:#111110;
  --r-mute:#595953;
  --r-hair:#DDDAD2;
  --r-sans:'PP Neue Montreal Display','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --r-text:'PP Neue Montreal Text','PP Neue Montreal Display','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --r-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r-g:clamp(20px,5vw,48px);          /* page gutter */
  --r-col:692px;                        /* reading column */
  --r-band:1080px;                      /* wide band for imagery */
  --r-radius:16px;

  /* the old token names, pointed at the new palette so every existing rule
     that reads them follows along */
  --bg:var(--r-bg);
  --ink:var(--r-ink);
  --copy-ink:var(--r-ink);
  --accent:var(--r-ink);
  --stroke:var(--r-ink);
  --nav:var(--r-mute);
  --nav-mark:var(--r-ink);
  --hint:var(--r-mute);
  --ui-bg:transparent;
  --ui-line:var(--r-hair);
  --ui-fg:var(--r-ink);
  --tile:transparent;
  --tile-fg:var(--r-ink);
  --tile-line:var(--r-hair);
  --ab-mute:var(--r-mute);
  --pbg:var(--r-bg);
  --cream-ink:var(--r-ink);
  --cream-mute:var(--r-mute);
  --font-display:var(--r-sans);
  --font-copy:var(--r-sans);
  --font-ui:var(--r-sans);
}

/* The theme toggle stays and still works. The site is off-white by default;
   choosing dark inverts the opening fold (and the nav sitting on it) to ink,
   the same reach the toggle had before: case studies were always paper. */
:root[data-theme="dark"] body:has(#hero) :is(#hero, body > nav, #clock){
  --bg:var(--r-ink);
  --ink:var(--r-bg);
  --copy-ink:var(--r-bg);
  --accent:var(--r-bg);
  --nav:#B9B8B1;
  --nav-mark:var(--r-bg);
  --hint:#B9B8B1;
  --ui-line:#3A3A37;
  --ui-fg:var(--r-bg);
  --tile-fg:var(--r-bg);
  --tile-line:#3A3A37;
  --r-mute:#B9B8B1;
  --r-hair:#3A3A37;
  color:var(--ink);
}
:root[data-theme="dark"] body:has(#hero) #hero{background:var(--r-ink)}
:root[data-theme="dark"] body:has(#hero) > nav{background:var(--r-ink)}
:root[data-theme="dark"] body:has(#hero) #clock{color:#B9B8B1!important;z-index:61}

/* ---------- ground ---------- */
html{background:var(--r-bg)}
body,
body.scrollable{
  background:var(--r-bg)!important;
  color:var(--r-ink);
  font-family:var(--r-sans);
  font-size:16px;line-height:1.5;
  overflow-x:clip!important;overflow-y:visible!important;   /* no scroll lock, ever */
  cursor:auto!important;
  transition:none;
  text-rendering:optimizeLegibility;
}
/* paper texture: page background only, behind every fold, never over text */
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  opacity:.025;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* one family, two weights, no bold anywhere */
body *{font-family:var(--r-sans)!important;font-weight:400!important}
body :is(h1,h2,h3,h4,h5,h6,b,strong,dt,th,.cst-q){font-weight:500!important}
body svg text{font-weight:400!important}
/* the small meta labels that already exist: clock, dates, eyebrows */
body :is(#clock,#clock *,.ab-when,.ab-eyebrow,.mw-hint){
  font-family:var(--r-mono)!important;
}

::selection{background:var(--r-ink);color:var(--r-bg)}
:focus-visible{outline:2px solid var(--r-ink)!important;outline-offset:3px!important}

/* ---------- decorative chrome that goes: cursor, sound prompt, intro props ---------- */
#hint,#ring,#panel,#sndHint,.eye,.caret,.marker{display:none!important}
.cst-mark::before,.abv-h::before{content:none!important;display:none!important}
.mw-pod-blob{display:none!important}
#soundBtn.pending{animation:none!important}

/* ==========================================================================
   NAV, CLOCK, FOOTER, BACK-TO-TOP
   ========================================================================== */
body > nav{
  position:absolute;top:0;left:0;right:0;z-index:60;
  padding:22px var(--r-g);
  font-size:14px;line-height:20px;
  color:var(--r-mute);
  background:transparent;
  transition:none;
}
body > nav .mark{color:var(--nav-mark);font-weight:500!important;font-size:14px}
body > nav a{letter-spacing:0;transition:color .15s ease}
body > nav .links{gap:clamp(16px,2.6vw,28px)}
body > nav .links a{padding-bottom:2px}
body > nav .links a::after{height:1px;background:currentColor;transition:transform .2s ease}
body > nav .links a:hover,body > nav .links a:focus-visible{color:var(--ink)}
/* the inversion painter has nothing to do on one ground */
body.nav-cream > nav{color:var(--r-mute)}
body.nav-cream > nav .mark{color:var(--nav-mark)}

.ctl,body.nav-cream .ctl{
  width:32px;height:32px;border-radius:99px;
  background:transparent;color:var(--ink);
  border:1px solid var(--r-hair);
  transition:border-color .15s ease;
}
.ctl:hover{transform:none;border-color:var(--ink)}
.ctl:active{transform:scale(.96)}
.ctl svg{width:16px;height:16px}
#soundBtn{margin-left:8px}

#clock,body.on-cream #clock{
  position:absolute;left:var(--r-g);top:64px;bottom:auto;z-index:2;
  font-size:12px;line-height:16px;letter-spacing:.06em;font-weight:400!important;
  color:var(--r-mute);
  opacity:1!important;transition:none;
}

.site-foot{
  background:transparent;color:var(--r-ink);
  border-top:1px solid var(--r-hair);
  max-width:calc(var(--r-band) + 2 * var(--r-g));
  margin:clamp(96px,14vh,160px) auto 0;
  padding:22px var(--r-g) 40px;
  font-size:14px;line-height:20px;
  background-clip:content-box;
}
/* the rule sits on the content edge, not the page edge */
.site-foot{border-top:0;position:relative}
.site-foot::before{content:"";position:absolute;top:0;left:var(--r-g);right:var(--r-g);height:1px;background:var(--r-hair)}
.site-foot-copy{opacity:1;color:var(--r-mute)}
.site-foot-links{gap:clamp(16px,2.4vw,28px)}
.site-foot-links a{color:var(--r-ink)}
.site-foot-links a::after{bottom:-2px;transition:transform .2s ease}

.totop,body.on-cream .totop{
  left:auto;right:var(--r-g);bottom:20px;
  width:36px;height:36px;
  background:var(--r-ink);color:var(--r-bg);border:0;
}
.totop:hover,body.on-cream .totop:hover{color:var(--r-bg);border:0}
.totop svg{width:15px;height:15px}

.skip{background:var(--r-ink);color:var(--r-bg);border-radius:99px;font-size:14px}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */
/* the hero is a block of type now, not a stage: nothing is held back */
#hero{
  height:auto;min-height:0;
  padding:clamp(150px,24vh,220px) var(--r-g) 0;
  background:transparent;
}
:root[data-theme="dark"] #hero{padding-bottom:clamp(64px,10vh,96px)}
#stage{position:static;overflow:visible;inset:auto;max-width:var(--r-band);margin:0 auto}
#copy{
  position:static;transform:none;left:auto;top:auto;
  width:auto;max-width:var(--r-col);padding:0;
}
#copy .line{
  opacity:1!important;transform:none!important;transition:none!important;
  white-space:normal;
  color:var(--ink);
}
/* the statement: one 48px sentence across three existing lines */
#copy > .line[data-i="0"],
#copy .turn .line[data-i="1"],
#copy #reveal{
  font-size:48px;line-height:56px;letter-spacing:-.025em;
  margin:0;
}
#copy > .line[data-i="0"],
#copy .turn .line[data-i="1"]{color:var(--r-mute)}
#copy #reveal{font-weight:500!important;color:var(--ink)}
#copy .turn{display:block}
#copy .turn > *{display:inline}
#copy .turn .line[data-i="1"]{margin-right:.25em}
/* the reveal's wipe, mask and delay all go: it is simply there */
#reveal,#reveal *{
  visibility:visible!important;opacity:1!important;
  -webkit-mask-image:none!important;mask-image:none!important;
  transition:none!important;animation:none!important;clip-path:none!important;
}
#reveal .hl{color:inherit!important;background:none!important}
#copy .line .rest{visibility:visible!important}
/* the supporting lines */
#copy .line.sub{
  font-size:16px;line-height:24px;letter-spacing:0;
  color:var(--ink);
  margin-top:26px;
  max-width:var(--r-col);
}
#copy .line.sub + .line.sub{margin-top:12px}
#copy .line.sub .tw{color:inherit}
/* the small witness keeps his seat at the end of the first line, quietly */
.head{
  opacity:1!important;animation:none!important;
  width:1.1em;height:1em;margin-left:.3em;vertical-align:-.1em;
}
.head{width:auto;height:auto;vertical-align:-.12em}
.head img{position:static;display:inline-block;height:1.05em;width:auto;filter:none}
.head:hover,.head:focus-visible{animation:none!important}

/* ---------- work: one continuous rail ----------
   The existing list (titles + context lines) and the existing plates are laid
   into one grid without moving a single node: each project gets a column,
   its plate on top and its title and line beneath. The grid is the scroller. */
#work{
  --fw:min(calc(100vw - 2 * var(--r-g)), 548px);   /* frame width; the plates are 1440 x 1024 */
  position:relative;min-height:0;overflow:visible;
  background:transparent!important;transition:none;
  padding-top:clamp(96px,16vh,160px);
}
#work .proj-frame{
  position:relative;left:auto;top:auto;transform:none;
  width:100%;aspect-ratio:auto;container-type:normal;
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:auto auto auto;
  grid-auto-columns:var(--fw);
  column-gap:0;
  overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;
  scroll-padding-inline:max(var(--r-g), calc((100vw - var(--r-band)) / 2));
  padding-inline:max(var(--r-g), calc((100vw - var(--r-band)) / 2));
  scrollbar-width:none;
  cursor:grab;
  -webkit-user-select:none;user-select:none;
}
#work .proj-frame::-webkit-scrollbar{display:none}
#work .proj-frame.dragging{cursor:grabbing}
#work .proj-frame.dragging a{pointer-events:none}
#work .proj-frame::after{content:"";grid-row:2/4;width:max(var(--r-g), calc((100vw - var(--r-band)) / 2))}
#work :is(.proj-nav,.proj-list,.proj-plates){display:contents}
#work .proj-nav{position:static;transform:none;left:auto;top:auto}

/* the section label: same column edge as the hero, ruled to the band's edge */
#work .proj-label{
  grid-row:1;grid-column:1/-1;
  position:sticky;left:0;
  width:min(var(--r-band), calc(100vw - 2 * var(--r-g)));
  justify-self:start;
  font-size:18px;line-height:24px;font-weight:500!important;
  color:var(--r-ink);opacity:1;letter-spacing:0;
  margin:0;padding-bottom:12px;
}

/* plates: row 2, one per column, in their existing order */
#work .proj-plate{
  grid-row:2;
  position:relative;inset:auto;
  width:auto;height:auto;
  aspect-ratio:1440 / 1024;
  margin:var(--pm-y) var(--pm-x);
  border:1px solid var(--r-hair);border-radius:var(--r-radius);
  overflow:hidden;
  opacity:1!important;visibility:visible;
  pointer-events:auto;cursor:inherit;
  transition:none;
  -webkit-user-drag:none;
}
#work .proj-plates > .proj-plate:nth-child(1){grid-column:1}
#work .proj-plates > .proj-plate:nth-child(2){grid-column:2}
#work .proj-plates > .proj-plate:nth-child(3){grid-column:3}
#work .proj-plates > .proj-plate:nth-child(4){grid-column:4}
#work .proj-plates > .proj-plate:nth-child(5){grid-column:5}
#work a.proj-plate>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;pointer-events:none}
#work .plate-hot{display:none}
#work .proj-plate img{-webkit-user-drag:none}

/* titles + lines: row 3, under their plate */
#work .proj-list > li{
  grid-row:3;
  position:relative;transform:none;
  padding:10px var(--pm-x) 20px;
  min-height:100px;
}
#work .proj-list > li:nth-child(1){grid-column:1}
#work .proj-list > li:nth-child(2){grid-column:2}
#work .proj-list > li:nth-child(3){grid-column:3}
#work .proj-list > li:nth-child(4){grid-column:4}
#work .proj-list > li:nth-child(5){grid-column:5}

/* the strip: one ticket, hairline top and bottom, perforated between
   projects. Both are drawn from the title cell upward by exactly the height
   of the plate cell above it, so they run unbroken through both rows. */
#work{--pm-x:14px;--pm-y:12px}
#work .proj-list > li{border-bottom:1px solid var(--r-hair)}
#work .proj-list > li::before,
#work .proj-list > li::after{
  content:"";position:absolute;pointer-events:none;
  top:calc(-1 * ((var(--fw) - 2 * var(--pm-x)) * 1024 / 1440 + 2 * var(--pm-y)));
}
#work .proj-list > li::before{left:0;right:0;height:1px;background:var(--r-hair)}
#work .proj-list > li:not(:first-child)::after{
  left:-3px;bottom:0;width:6px;
  background:radial-gradient(circle at 3px 4px, var(--r-hair) 1.5px, transparent 1.8px) 0 0 / 6px 9px repeat-y;
}

#work .proj{
  display:inline-block;
  font-size:16px;line-height:24px;font-weight:500!important;
  color:var(--r-ink);opacity:1;white-space:normal;
  text-decoration:none;
}
#work .proj.on{font-weight:500!important}
#work .proj-sub{
  position:static;display:block;
  margin-top:2px;max-width:42ch;
  font-size:14px;line-height:20px;letter-spacing:0;
  color:var(--r-mute);
  background:none;box-shadow:none;
  opacity:0;transform:translateY(4px);
  pointer-events:none;
  transition:opacity .18s ease, transform .3s cubic-bezier(.2,.9,.3,1.02);
}
/* the line shows on hover, exactly as before, from the title or the plate */
#work .proj-list > li:is(:hover,:focus-within) .proj-sub,
#work .proj-frame:has(.proj-plate[data-key="nirvana"]:is(:hover,:focus-within))   .proj[data-key="nirvana"]   + .proj-sub,
#work .proj-frame:has(.proj-plate[data-key="optivento"]:is(:hover,:focus-within)) .proj[data-key="optivento"] + .proj-sub,
#work .proj-frame:has(.proj-plate[data-key="uniform"]:is(:hover,:focus-within))   .proj[data-key="uniform"]   + .proj-sub,
#work .proj-frame:has(.proj-plate[data-key="nirvana2"]:is(:hover,:focus-within))  .proj[data-key="nirvana2"]  + .proj-sub,
#work .proj-frame:has(.proj-plate[data-key="unsmoke"]:is(:hover,:focus-within))   .proj[data-key="unsmoke"]   + .proj-sub{
  opacity:1;transform:none;pointer-events:auto;
}
#work .proj-sub:hover{color:var(--r-ink)}
/* nothing hovers on a touch screen: the line is simply there */
@media (hover:none){
  #work .proj-sub{opacity:1;transform:none;pointer-events:auto}
}

/* optivento: the composed plate, placed on its own artboard inside the frame */
#work .proj-plate.op{
  --crop-x:0px;--crop-y:0px;
  --draw-w:49.36%;--draw-h:90.13%;--draw-r:4.42%;
  --dev-r:3.2%;
  --dev-w:calc(var(--draw-w) * .8104);
  --dev-h:calc(var(--draw-h) * .4417);
  container-type:inline-size;
}
#work .op-draw{box-shadow:none;border-radius:4px}
#work .op-bubble{
  left:3%;bottom:7%;width:40%;
}
#work .op-bubble-shape{fill:var(--r-bg);stroke:var(--r-ink);stroke-width:5}
#work .op-bubble-text{font-size:max(5.37cqw,11.5px);line-height:1.35;color:var(--r-ink)}
#work .op-dev{filter:none}
#work .op-hot{visibility:visible}

/* ---------- meanwhile: the artboard on the same ground ---------- */
#meanwhile{
  --mwbg:var(--r-bg);
  --mw-ink:var(--r-ink);
  --mw-mark:var(--r-ink)!important;
  background:transparent!important;
  min-height:0;overflow:hidden;
  padding:clamp(96px,16vh,160px) var(--r-g) 0;
  transition:none;
}
#meanwhile[data-chrome="dark"]{--mw-mark:var(--r-ink)}
#meanwhile::before{
  content:"";display:block;height:1px;background:var(--r-hair);
  max-width:var(--r-band);margin:0 auto clamp(32px,5vh,56px);
}
#meanwhile .mw-frame{
  position:relative;left:auto;top:auto;transform:none;
  width:100%;max-width:var(--r-band);margin:0 auto;
}
#meanwhile .mw-sub,#meanwhile .mw-caret{color:var(--r-ink);background-color:transparent}
#meanwhile .mw-caret{display:none}
#meanwhile .mw-hint{color:var(--r-mute);font-size:max(.95cqw,12px)}
#meanwhile .mw-cap{color:var(--r-ink);font-size:max(1.06cqw,12px)}
#meanwhile .mw-sp-counter b{color:var(--r-ink)}
#meanwhile .mw-tab-label{color:var(--r-ink);opacity:.72}
#meanwhile .mw-tab:hover .mw-tab-label,#meanwhile .mw-tab.sel .mw-tab-label{opacity:1}
#meanwhile .mw-ring path{stroke:var(--r-ink)}
#meanwhile .mw-tab img{transition:transform .25s cubic-bezier(.2,.9,.3,1.02)}
#meanwhile .mw-tab:hover img,#meanwhile .mw-tab.sel img{transform:scale(1.04)}
#meanwhile img{filter:none}
#meanwhile .mw-panel{transition:opacity .18s ease, visibility 0s linear .18s}
#meanwhile .mw-panel.on{transition:opacity .18s ease}

/* ==========================================================================
   CASE STUDIES, ABOUT, 404 — the paper pages
   ========================================================================== */
.cst{
  --cst-paper:var(--r-bg);
  --cst-ink:var(--r-ink);
  --cst-body:var(--r-mute);
  --cst-line:var(--r-hair);
  --cst-lime:var(--r-ink);
  --cst-red:var(--r-ink);
  --cst-green:var(--r-ink);
  --cst-blue:var(--r-ink);
  --cst-display:var(--r-sans);
  --cst-gutter:var(--r-g);
  --cst-shell:calc(var(--r-band) + 2 * var(--r-g));
  background:transparent;color:var(--r-ink);
}
/* two measures: the reading column and the band for imagery */
.cst-shell{max-width:calc(var(--r-band) + 2 * var(--r-g))}
.cst-shell--text,.cst--galls .cst-ctr{max-width:calc(var(--r-col) + 2 * var(--r-g))}
/* text that sits directly in a wide shell keeps to the reading column */
.cst-shell:not(.cst-shell--text) > :is(h1,h2,h3,p,blockquote,ul,ol,.cst-three,.cst-models,.cst-flow,.cst-btns,.cst-close,.cst-off,.cst-opts,.cst-feats){
  max-width:var(--r-col);margin-inline:auto;
}
/* mixed text-and-picture grids become one column: words in the measure,
   pictures in the band */
.cst-head-grid,.cst-two,.cst-dirs,.cst-aside,.cst-dec{display:block}
.cst-two > *,.cst-head-grid > *{max-width:none;margin-top:0}
.cst-two > * + *,.cst-head-grid > * + *{margin-top:48px!important}
.cst-dirs > .cst-opts,.cst-aside > div,.cst-dec > div:first-child{max-width:var(--r-col);margin-inline:auto}
.cst-dirs-sketch{max-width:26rem;margin:48px auto 0}
.cst-aside > img{max-width:28rem;margin:48px auto 0;border-radius:var(--r-radius)}
.cst-dec > .cst-proto{position:static;margin-top:56px}

.cst-sec{padding-block:clamp(88px,14vh,168px)}
.cst-sec--tight{padding-block:clamp(56px,9vh,112px)}
.cst-hero{padding-top:clamp(120px,18vh,180px)}
.cst-head{padding-top:clamp(56px,9vh,104px);padding-bottom:clamp(32px,5vh,56px)}

/* type */
.cst-wordmark{
  font-size:14px;line-height:20px;letter-spacing:0;text-align:left;
  color:var(--r-mute);
}
.cst-head .cst-wordmark{margin-bottom:12px}
.cst-kicker,.abv-h,.nf-h{
  font-size:48px;line-height:56px;letter-spacing:-.025em;
  font-weight:500!important;color:var(--r-ink);
}
.cst-h2,.cst-figures h2,.cst--galls .cst-figures h2,.ab-h2{
  display:block;
  font-size:18px;line-height:24px;letter-spacing:-.005em;
  color:var(--r-ink);
  padding-bottom:12px;margin-bottom:26px;
  border-bottom:1px solid var(--r-hair);
}
.cst-h3,.ab-row h3{font-size:16px;line-height:24px;color:var(--r-ink);letter-spacing:0}
.cst-q{font-size:16px;line-height:24px;color:var(--r-ink);margin-top:0!important;letter-spacing:0}
.cst-h2 + .cst-q{margin-top:0!important}
.cst-q + .cst-p{margin-top:8px}
.cst-p,.cst-lead,.cst-opt p,.cst-model li,.cst-flow .cst-p,.abv-p,.abv-close,.nf-lead,.ab-story p{
  font-size:16px;line-height:24px;letter-spacing:0;
  color:var(--r-mute);
  max-width:none;
}
.cst-lead{color:var(--r-ink);margin-top:26px!important}
.cst-p + .cst-p,.abv-p + .abv-p,.ab-story p + p{margin-top:26px}
.cst-flow .cst-p + .cst-p{margin-top:0}
.cst-p strong,.abv-p strong,.cst-caveat b,.cst-note b{color:var(--r-ink)}
.cst p a,.abv-p a{color:var(--r-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* captions: small, muted, centred under the image */
.cst-cap,.cst-proto-note,.cst-breath-note,.ab-fig figcaption,.cst figcaption{
  font-size:13px;line-height:20px;letter-spacing:0;
  color:var(--r-mute);
  text-align:center;
  max-width:var(--r-col)!important;margin-inline:auto!important;
  padding-left:0!important;
}
.cst-cap{margin-top:14px}

/* images and embeds: rounded, no shadows, never re-cropped */
.cst img{filter:none!important;box-shadow:none!important}
.cst-plateshot,.cst-shell > div[style*="overflow:hidden"],.cst-shell > div > div[style*="overflow:hidden"]{
  border-radius:var(--r-radius)!important;
}
.cst-shot,.cst-loop,.cst-diagram img,.cst-shell > div > img,.cst figure img,.abv-chart,.abv-board img{border-radius:var(--r-radius)}
.cst-diagram > div[style],.cst-shell > div[style*="border:1px"]{border-color:var(--r-hair)!important;border-radius:var(--r-radius)!important}
.cst-band img{border-radius:0}
.cst-proto-stage{border-color:var(--r-hair);border-radius:var(--r-radius)}

/* the facts card becomes a ruled list */
.cst-meta{
  background:transparent;border:0;border-radius:0;padding:0;
  border-top:1px solid var(--r-hair);
}
.cst-meta dl{gap:0}
.cst-meta dl > div{
  display:grid;grid-template-columns:9.5rem minmax(0,1fr);gap:16px;
  padding:12px 0;border-bottom:1px solid var(--r-hair);
}
.cst-meta dt{font-size:12px;line-height:24px;letter-spacing:.02em;color:var(--r-mute);margin:0;font-weight:400!important}
.cst-meta dd{font-size:14px;line-height:24px;color:var(--r-ink)}
.cst-pen{top:-46px;right:0;width:40px}
@media (max-width:560px){.cst-meta dl > div{grid-template-columns:1fr;gap:2px}}

/* buttons: ink pill, hairline pill */
.cst-btns{gap:10px;margin-top:32px}
.cst-btn{
  font-size:14px;line-height:20px;letter-spacing:0;
  padding:10px 18px;border-radius:99px;border-width:1px;
  transition:transform .2s cubic-bezier(.2,.9,.3,1.02),background-color .15s ease,color .15s ease,border-color .15s ease;
}
.cst-btn--go,.cst-btn--go:hover{background:var(--r-ink);color:var(--r-bg);border-color:var(--r-ink)}
.cst-btn--line{border-color:var(--r-ink);color:var(--r-ink);background:transparent}
.cst-btn--line:hover{background:transparent}
.cst-btn:hover{transform:translateY(-1px)}

/* the verdict pills */
.cst-verdict{font-size:13px;line-height:16px;padding:8px 14px;border-width:1px}
.cst-verdict--out{color:var(--r-ink);border:1px solid var(--r-hair)}
.cst-verdict--in{color:var(--r-bg);background:var(--r-ink)}

/* rules: hairlines only */
.cst-three,.cst-feat,.cst-ruled{border-top:1px solid var(--r-hair)}
.cst-three{display:block;padding-top:0}
.cst-three > div{padding:20px 0;border-bottom:1px solid var(--r-hair)}
.cst-three > div:last-child{border-bottom:0}
.cst-feats{grid-template-columns:minmax(0,1fr);gap:0}
.cst-feat{padding:20px 0 24px}
.cst-model{border-top:1px solid var(--r-hair)}
.cst-model--in{border-top-color:var(--r-ink)}
.cst-model--out{border-top-color:var(--r-hair)}
.cst-models{grid-template-columns:minmax(0,1fr);gap:40px;max-width:var(--r-col)}
.cst-opt + .cst-opt{border-top:1px solid var(--r-hair)}
.cst-note,.cst-caveat{border-left:1px solid var(--r-ink);color:var(--r-mute);font-size:13px;line-height:20px}
blockquote{border-color:var(--r-hair)!important}

/* the figures band: on paper like everything else, ruled top and bottom */
.cst-figures{
  background:transparent;color:var(--r-ink);
  padding-block:clamp(72px,11vh,128px);
}
.cst-figures .cst-shell{max-width:calc(var(--r-col) + 2 * var(--r-g))}
.cst-stats{gap:24px;margin-top:8px}
.cst-num{font-size:48px;line-height:56px;letter-spacing:-.03em;color:var(--r-ink);font-weight:500!important}
.cst-num .sg{color:var(--r-ink)}
.cst-stat p:last-child{font-size:13px;line-height:20px;color:var(--r-mute)}
.cst-note{margin-top:40px}
@media (max-width:560px){.cst-num{font-size:40px;line-height:48px}}

/* the sign-off at the foot of a study */
.cst-off{margin-top:72px}

/* ---------- about ---------- */
.abv-wrap{max-width:calc(var(--r-col) + 2 * var(--r-g));padding-inline:var(--r-g)}
.abv-intro{padding-top:clamp(140px,22vh,200px)}
.abv-center{text-align:left}
.abv-intro .abv-h{display:block;padding-bottom:0;border:0}
.abv-do .abv-h,.abv-timeline .abv-h{
  display:block;font-size:18px;line-height:24px;letter-spacing:-.005em;
  padding-bottom:12px;border-bottom:1px solid var(--r-hair);margin-bottom:26px;
}
.abv-do{margin-top:clamp(96px,14vh,160px)}
.abv-bio{grid-template-columns:120px minmax(0,1fr);gap:32px;margin-top:48px}
.abv-bio-text{max-width:none}
.abv-tags{gap:8px;margin-top:0}
.abv-tag{border-color:var(--r-hair);color:var(--r-ink);font-size:13px;line-height:16px;padding:7px 13px}
.abv-tools{font-size:14px;line-height:22px;color:var(--r-mute)}
.abv-board{max-width:calc(var(--r-band) + 2 * var(--r-g));margin:clamp(96px,14vh,160px) auto 0;padding-inline:var(--r-g)}
.abv-timeline{margin-top:clamp(96px,14vh,160px)}
.abv-portrait{filter:none}
.abv-endbtns{padding-bottom:0}

/* ---------- 404 ---------- */
.nf-wrap{max-width:calc(var(--r-col) + 2 * var(--r-g));padding:clamp(150px,24vh,220px) var(--r-g) 0;text-align:left}
.nf-eyebrow,.nf-list-h{font-size:12px;line-height:16px;color:var(--r-mute);text-align:left}
.nf-btns{justify-content:flex-start}
.nf-item a{border-top:1px solid var(--r-hair);transition:transform .2s cubic-bezier(.2,.9,.3,1.02)}
.nf-item a:hover,.nf-item a:focus-visible{padding-left:2px;transform:translateX(4px)}
.nf-item .nf-title{font-size:16px;font-weight:500!important}
.nf-item .nf-when{font-size:12px;color:var(--r-mute)}

/* ==========================================================================
   MOTION CHROME: the hover pill and the section pill (built by restyle.js)
   ========================================================================== */
.r-pill{
  position:fixed;left:0;top:0;z-index:120;pointer-events:none;
  padding:6px 12px;border-radius:99px;
  background:var(--r-ink);color:var(--r-bg);
  font-size:13px;line-height:16px;font-weight:500!important;white-space:nowrap;
  opacity:0;will-change:transform,opacity;
  transition:opacity .15s ease;
}
.r-pill.on{opacity:1}

.r-toc{
  position:fixed;left:50%;bottom:16px;z-index:110;
  transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;
  pointer-events:none;
}
.r-toc > *{pointer-events:auto}
.r-toc-btn{
  appearance:none;-webkit-appearance:none;border:0;cursor:pointer;
  background:var(--r-ink);color:var(--r-bg);
  font:inherit;font-size:13px;line-height:16px;
  padding:9px 16px;border-radius:99px;
  max-width:min(80vw,360px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  transition:opacity .18s ease, transform .18s ease;
}
.r-toc.hide .r-toc-btn{opacity:0;transform:translateY(8px);pointer-events:none}
.r-toc-list{
  list-style:none;margin:0 0 8px;padding:6px;
  background:var(--r-ink);border-radius:18px;
  max-height:min(60vh,420px);overflow:auto;
  width:min(86vw,340px);
  transform-origin:50% 100%;
}
.r-toc-list[hidden]{display:none}
.r-toc-list button{
  appearance:none;-webkit-appearance:none;border:0;cursor:pointer;
  display:block;width:100%;text-align:left;
  background:transparent;color:#C9C8C1;
  font:inherit;font-size:13px;line-height:18px;
  padding:9px 12px;border-radius:12px;
}
.r-toc-list button:hover,.r-toc-list button[aria-current="true"]{color:var(--r-bg);background:#2A2A28}
.r-toc-list button:focus-visible,.r-toc-btn:focus-visible{outline:2px solid var(--r-bg)!important;outline-offset:-2px!important}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width:820px){
  #copy > .line[data-i="0"],#copy .turn .line[data-i="1"],#copy #reveal,
  .cst-kicker,.abv-h,.nf-h{font-size:34px;line-height:40px}
  .abv-do .abv-h,.abv-timeline .abv-h{font-size:18px;line-height:24px}
  #hero{padding-top:128px}
  #clock{top:56px}
  body > nav{padding:18px var(--r-g)}
  #work{--fw:calc(100vw - 2 * var(--r-g));display:block;padding-bottom:0}
  /* undo the old phone stack: the rail is the same rail on every screen */
  #work .proj-frame{justify-items:stretch;gap:0;row-gap:0}
  #work .proj-nav{text-align:left}
  #work .proj-list{gap:0}
  #work .proj{font-size:16px;line-height:24px;padding:0}
  #work .proj-sub{display:block;margin:2px 0 0;text-align:left;font-size:14px;max-width:none}
  #work .proj-label{font-size:18px;letter-spacing:0;margin:0}
  #work .op-bubble{display:none}
  #work{--pm-x:8px;--pm-y:10px}
  /* the phone keeps the plate's own end state, as it always had */
  #work .proj-plate.op{--dev-r:12%}
  #work a.proj-plate>img{object-fit:contain;object-position:50% 50%}
  #work .op-draw{right:auto;left:22%;top:4.88%;width:49.36%;transform:none}
  #meanwhile .mw-frame{width:100%}
  .site-foot{flex-direction:column;align-items:flex-start}
  .abv-bio{grid-template-columns:1fr}
  .cst-dude{margin-left:0}
}

/* ==========================================================================
   REDUCED MOTION: calm and fully usable
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:0s!important;animation:none!important}
  .r-pill{display:none!important}
  #work .proj-sub{transform:none}
}

/* ==========================================================================
   SECOND PASS — matched to hanif.rest: its faces, its column, its type
   sizes and spacing, its strip. Later in the file on purpose: these win.
   ========================================================================== */

/* ---------- nav: 16px medium, 20px from the edges ---------- */
body > nav{padding:20px;font-size:16px;line-height:16px;align-items:flex-start}
body > nav a,body > nav .mark{font-size:16px;line-height:16px;font-weight:500!important;letter-spacing:-.01em;color:var(--ink)}
body > nav .links{gap:20px}
body > nav .links a{padding-bottom:0;color:var(--ink)}
body > nav .links a::after{bottom:-3px}
body > nav .right{gap:20px;align-items:center;margin-top:-8px}
/* the clock becomes the small ink pill at the top centre */
#clock,body.on-cream #clock{
  position:absolute;top:13px;left:50%;transform:translateX(-50%);
  z-index:61;
  font-size:12px;line-height:16px;letter-spacing:.02em;
  padding:7px 14px;border-radius:999px;
  background:var(--r-ink);color:#EEEDE6!important;
  white-space:nowrap;
}
#clock .sep{opacity:.5}
:root[data-theme="dark"] body:has(#hero) #clock{background:#2A2A28}

/* ---------- the strip (JS mode) ---------- */
#work.r-rail{
  overflow-x:clip;overflow-y:visible;
  padding:clamp(5rem,14svh,12rem) 0 112px;
  --rtop:66px;
}
#work.r-rail .proj-frame{
  display:block;position:relative;
  height:calc(var(--rtop) + var(--rfh) + 12px + 72px);
  padding:0;overflow:visible;
  touch-action:pan-y;
  -webkit-mask-image:linear-gradient(to right,transparent calc(var(--redge) - var(--rramp)),#000 var(--redge),#000 calc(100% - var(--redge)),transparent calc(100% - var(--redge) + var(--rramp)));
          mask-image:linear-gradient(to right,transparent calc(var(--redge) - var(--rramp)),#000 var(--redge),#000 calc(100% - var(--redge)),transparent calc(100% - var(--redge) + var(--rramp)));
}
#work.r-rail .proj-frame::after{content:none}
#work.r-rail .proj-label{
  position:static;width:100%!important;max-width:none;left:auto;
  text-align:center;
  font-size:20px;line-height:26px;font-weight:500!important;
  margin:0;padding:0;border:0;
}
#work.r-rail .proj-plates > .proj-plate{
  position:absolute;left:0;top:var(--rtop);
  width:var(--rw);height:var(--rfh);aspect-ratio:auto;
  margin:0;
  border:0;border-radius:18px;
  background:#F7F6F3;
  will-change:transform;
}
/* the hairline sits inside the frame, as on the inspo */
#work.r-rail .proj-plates > .proj-plate::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  border:1px solid rgba(17,17,16,.1);
}
#work.r-rail .proj-list > li{
  position:absolute;left:0;top:calc(var(--rtop) + var(--rfh) + 12px);
  width:var(--rw);min-height:0;
  padding:0;border:0;
  will-change:transform;
}
#work.r-rail .proj-list > li::before,
#work.r-rail .proj-list > li::after{content:none}
#work.r-rail .proj{font-size:16px;line-height:24px}
#work.r-rail .proj-sub{font-size:14px;line-height:21px;margin-top:0}
.r-bleed{position:absolute;left:0;pointer-events:none;z-index:0}

/* ---------- the cursor bud (hover pill) ---------- */
.r-pill{
  font-size:16px;line-height:20px;font-weight:400!important;
  padding:4px 11px;border-radius:10px;
  background:#171717;color:#fff;
}

/* ---------- the section pill, as the inspo's bottom island ---------- */
.r-toc-btn{
  height:42px;padding:0 22px;border-radius:21px;
  background:#171717;color:#EBE7DE;
  font-size:16px;line-height:24px;font-weight:400!important;
}
.r-toc-list{background:#171717;border-radius:21px}
.r-toc-list button{font-size:15px;line-height:20px;color:#9A9993}
.r-toc-list button:hover,.r-toc-list button[aria-current="true"]{color:#EBE7DE;background:#262624}

/* ---------- mobile ---------- */
@media (max-width:640px){
  #work.r-rail .proj-frame{height:calc(var(--rtop) + var(--rfh) + 12px + 112px)}
}
@media (max-width:820px){
  #clock,body.on-cream #clock{top:52px}
}
@media (max-width:560px){
  body > nav{padding:20px 16px}
  body > nav .links{gap:14px}
  body > nav a,body > nav .mark{font-size:15px}
}

@media (prefers-reduced-motion:reduce){
  .r-bleed{display:none}
}

/* ==========================================================================
   THIRD PASS — the strip and its hover, as on hanif.rest
   ========================================================================== */
/* cards: the inspo's proportion (w x 0.857), images fill the card */
#work.r-rail .proj-label{position:absolute!important;width:1px!important;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#work.r-rail{--rtop:0px}
#work.r-rail a.proj-plate>img{object-fit:cover}
#work.r-rail a.proj-plate[data-key="nirvana"]>img{object-position:67% 50%}
#work.r-rail a.proj-plate[data-key="uniform"]>img{object-position:60% 48%}
#work.r-rail a.proj-plate[data-key="nirvana2"]>img{object-position:50% 50%}
#work.r-rail a.proj-plate[data-key="unsmoke"]>img{object-position:63% 52%}
#work.r-rail .proj-plate.op{--draw-w:52%;--draw-h:84.2%;--draw-r:4%;--dev-r:3%}
#work.r-rail .op-bubble{left:3%;bottom:5%;width:46%}
#work.r-rail .op-bubble-text{font-size:max(5.37cqw,9.5px);line-height:1.28}
/* the names and lines move into the hover bud on a pointer screen; they stay
   under the cards on touch, and come back for keyboard focus */
@media (hover:hover) and (pointer:fine){
  #work.r-rail .proj-frame{height:calc(var(--rfh) + 8px)}
  #work.r-rail .proj-list > li{opacity:0;transition:opacity .15s ease}
  #work.r-rail .proj-list > li:focus-within{opacity:1}
}

/* the bud: the project's name over a dark "View case study" pill */
.r-pill{display:none!important}
.r-bud{position:fixed;left:0;top:0;z-index:120;pointer-events:none}
/* no opacity or will-change on the bud itself: the title has to blend with
   the card underneath, so the bud must not isolate it */
.r-bud > *{opacity:0;transition:opacity .15s ease}
.r-bud.on > *{opacity:1}
.r-bud-title.on{opacity:1}
.r-bud-title{
  position:fixed;left:0;top:0;z-index:121;pointer-events:none;
  margin:-26px 0 0 44px;
  opacity:0;transition:opacity .15s ease;
  white-space:nowrap;
  font-size:16px;line-height:20px;font-weight:500!important;letter-spacing:-.01em;
  color:#fff;mix-blend-mode:difference;
}
.r-bud-pill{
  display:flex;align-items:center;gap:10px;
  height:40px;padding:0 18px 0 14px;border-radius:20px;
  background:rgba(23,23,23,.92);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  color:#EEEDE6;
  font-size:16px;line-height:20px;font-weight:400!important;white-space:nowrap;
}
.r-bud-pill svg{width:20px;height:20px;flex:none}
@media (prefers-reduced-motion:reduce){.r-bud,.r-bud-title{display:none!important}}


/* ==========================================================================
   EDITORIAL SYSTEM — the "apollo mix knob." reference.
   Outfit Light for the page title, Helvetica/Arial (Arimo as the fallback
   that ships with the site) for everything else. Left-aligned on a 1200px
   measure with 48px page padding. Sizes run fluidly from the mobile values
   at 390px wide to the desktop values at 1440px:
     H1   48 -> 116px, lh 1.0, -5px at full size
     H2   22 ->  30px, lh 1.2, -0.5px, bold, with a hairline running right
     body 18 ->  30px, lh 1.33
   ========================================================================== */
@font-face{font-family:'Outfit';font-style:normal;font-weight:300;font-display:swap;src:url("../fonts/outfit-latin-300-normal.woff2") format("woff2")}
@font-face{font-family:'Arimo';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/arimo-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:'Arimo';font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/arimo-latin-700-normal.woff2") format("woff2")}

:root,
:root[data-theme="light"],
:root[data-theme="dark"]{
  --r-bg:#FAF9F7;
  --r-ink:#171717;
  --r-mute:#555555;
  --r-hair:#DEDEDE;
  --r-display:'Outfit','Avenir Next','Futura',sans-serif;
  --r-sans:'Helvetica Neue',Helvetica,Arial,'Arimo',sans-serif;
  --r-text:var(--r-sans);
  --r-g:clamp(20px,4.4vw,48px);
  --r-max:1200px;
  /* type */
  --t-h1:clamp(48px,calc(22.74px + 6.476vw),116px);
  --t-h1-ls:-.0431em;                      /* -5px at 116px */
  --t-h2:clamp(22px,calc(19.03px + .762vw),30px);
  --t-h3:clamp(18px,calc(15.77px + .571vw),24px);
  --t-body:clamp(18px,calc(13.54px + 1.143vw),30px);
  --t-small:clamp(14px,calc(12.51px + .381vw),18px);
  /* space */
  --s-top:clamp(32px,calc(17.9px + 3.62vw),70px);
  --s-hero:clamp(64px,calc(35.8px + 7.24vw),140px);
  --s-h2:clamp(24px,calc(12.5px + 2.95vw),55px);
  --s-p:clamp(18px,calc(12.8px + 1.33vw),32px);
}

/* ---------- one measure, left-aligned, everywhere ---------- */
.cst-shell,.cst-shell--text,.cst--galls .cst-ctr,
.cst-figures .cst-shell,.abv-wrap,.abv-board,.nf-wrap{
  max-width:calc(var(--r-max) + 2 * var(--r-g))!important;
  padding-inline:var(--r-g);margin-inline:auto;
}
body .cst :is(.cst-shell > h1,.cst-shell > h2,.cst-shell > h3,.cst-shell > p,.cst-shell > blockquote,.cst-shell > ul,
  .cst-three,.cst-models,.cst-flow,.cst-btns,.cst-close,.cst-off,.cst-opts,.cst-feats,
  .cst-dirs > .cst-opts,.cst-aside > div,.cst-dec > div:first-child,.cst-figures .cst-shell > *,
  .cst-cap,.cst-proto-note,.cst-breath-note,figcaption,.cst-p,.cst-lead,.abv-bio-text,.abv-close){
  max-width:none!important;margin-inline:0!important;
}
.cst-dirs-sketch,.cst-aside > img{margin-left:0;margin-right:auto}
.abv-center,.abv-timeline,.cst-off-say,.cst-breath,.nf-wrap{text-align:left}
.abv-chart,.abv-infinity,.cst-loop,.cst-inf,.cst-breath-hand{margin-left:0!important;margin-right:auto!important}
.abv-tl-arrow{margin-left:auto}
.cst-off .cst-btns,.abv-endbtns,.nf-btns{justify-content:flex-start}

/* ---------- H1: the page title ---------- */
body :is(.cst .cst-kicker,.cst .abv-intro .abv-h,.nf-h),
body #hero #copy .line:not(.sub),
body #hero #copy .line:not(.sub) *:not(img){
  font-family:var(--r-display)!important;
  font-weight:300!important;font-style:normal;
  font-size:var(--t-h1);line-height:1;letter-spacing:var(--t-h1-ls);
  text-transform:none;color:var(--r-ink);
  text-align:left;
}
body #hero #copy .line:not(.sub) *:not(img){font-size:inherit;line-height:inherit;letter-spacing:inherit}
body :is(.cst .cst-kicker,.cst .abv-intro .abv-h,.nf-h){display:block;margin:0;padding:0;border:0;text-wrap:balance}

/* ---------- H2: section headings, with the rule running right ---------- */
body :is(.cst .cst-h2,.cst .cst-figures h2,.cst .abv-do .abv-h,.cst .abv-timeline .abv-h,.cst .ab-h2,.cst .cst-off h2){
  font-family:var(--r-sans)!important;font-weight:700!important;
  font-size:var(--t-h2);line-height:1.2;letter-spacing:-.5px;
  color:var(--r-ink);text-align:left;
  margin:0!important;padding:0;border:0;
}
/* restyle.js wraps the heading's own text in a span (no words change), so
   flexbox can seat a 1px rule 24px after it, centred on the heading */
.r-h2{display:flex!important;align-items:center;gap:24px}
.r-h2 > .r-h2t{flex:0 1 auto;min-width:0}
.r-h2::after{content:"";flex:1 1 48px;min-width:48px;height:1px;background:var(--r-hair)}
body .cst :is(.cst-h2,.cst-figures h2,.abv-do .abv-h,.abv-timeline .abv-h,.ab-h2,.cst-off h2) + *{margin-top:var(--s-h2)!important}

/* ---------- H3 ---------- */
body .cst :is(.cst-h3,.cst-q,.ab-row h3,.cst-opt h3,.cst-model h3,.cst-feat h3,.cst-three h3){
  font-family:var(--r-sans)!important;font-weight:700!important;
  font-size:var(--t-h3);line-height:1.3;letter-spacing:-.3px;color:var(--r-ink);
}
body .cst :is(.cst-h3,.cst-q) + *{margin-top:14px!important}

/* ---------- body ---------- */
body :is(.cst .cst-p,.cst .cst-lead,.cst .cst-opt p,.cst .cst-model li,.cst .cst-three p,.cst .cst-feat p,
  .cst blockquote,.cst blockquote p,.cst .abv-p,.cst .abv-close,.nf-lead,.cst .ab-story p),
body #hero #copy .line.sub,body #hero #copy .line.sub *{
  font-family:var(--r-sans)!important;font-weight:400!important;
  font-size:var(--t-body);line-height:1.333;letter-spacing:0;
  color:var(--r-ink);text-align:left;
}
body .cst :is(.cst-p,.abv-p) + :is(.cst-p,.abv-p),
body #hero #copy .line.sub + .line.sub{margin-top:var(--s-p)}
body .cst .cst-flow .cst-p + .cst-p{margin-top:0}
body .cst .cst-model li{margin-top:12px}
body .cst :is(.cst-p,.abv-p) strong{font-weight:400!important}   /* no unnecessary bold */
body .cst .cst-lead{margin-top:var(--s-h2)!important}

/* ---------- small: captions, labels, meta ---------- */
body :is(.cst .cst-cap,.cst .cst-proto-note,.cst .cst-breath-note,.cst figcaption,.cst .cst-stat p:last-child,
  .cst .cst-note,.cst .cst-caveat,.cst .abv-tools,.cst .cst-wordmark,.nf-eyebrow,.nf-list-h,.nf-item .nf-when){
  font-family:var(--r-sans)!important;font-weight:400!important;
  font-size:var(--t-small);line-height:1.45;letter-spacing:0;
  color:var(--r-mute);text-align:left!important;
}
body .cst :is(.cst-cap,figcaption){margin-top:16px}
body .cst .cst-wordmark{margin-bottom:12px}
body .cst :is(.cst-note,.cst-caveat) b{font-weight:400!important;color:var(--r-ink)}
body :is(.cst .abv-tag,.cst .cst-btn,.cst .cst-verdict,.nf-item .nf-title){
  font-family:var(--r-sans)!important;font-size:var(--t-small);line-height:1.2;
}
.cst-btn{padding:.7em 1.2em}
.cst-btns{margin-top:32px}

/* the fact list */
.cst-meta{border-top:1px solid var(--r-hair)}
.cst-meta dl > div{grid-template-columns:minmax(8rem,14rem) minmax(0,1fr);gap:24px;padding:14px 0;border-bottom:1px solid var(--r-hair)}
body .cst .cst-meta :is(dt,dd){font-family:var(--r-sans)!important;font-size:var(--t-small);line-height:1.45}
body .cst .cst-meta dt{font-weight:400!important;color:var(--r-mute)}
body .cst .cst-meta dd{color:var(--r-ink)}
/* the pen sticker sits above the list, on the left edge */
.cst-meta .cst-pen{display:block;position:static;margin:0 0 16px;width:40px}

/* figures */
body .cst .cst-num{font-family:var(--r-display)!important;font-weight:300!important;font-size:calc(var(--t-h1) * .72);line-height:1;letter-spacing:var(--t-h1-ls)}
.cst-stats{gap:clamp(20px,3vw,48px)}

/* ---------- vertical rhythm ---------- */
.cst-hero{padding-top:calc(60px + var(--s-top))!important}
.cst-head{padding-top:var(--s-hero)!important;padding-bottom:0!important}
.cst-sec,.cst-sec--tight,.cst-figures{padding-block:calc(var(--s-hero) / 2)!important}
.cst-sec:last-of-type{padding-bottom:var(--s-hero)!important}
.abv-intro{padding-top:calc(60px + var(--s-top))}
.abv-bio{margin-top:var(--s-h2);grid-template-columns:minmax(100px,180px) minmax(0,1fr);gap:clamp(20px,3vw,48px)}
.abv-do,.abv-board,.abv-timeline{margin-top:var(--s-hero)}
.nf-wrap{padding-top:calc(60px + var(--s-top))}

/* ---------- the homepage hero on the same system ---------- */
#hero{height:auto;min-height:0;padding:calc(56px + var(--s-top)) var(--r-g) 0;text-align:left}
#hero #stage{position:static;inset:auto;max-width:var(--r-max);margin:0 auto;overflow:visible}
#hero #copy{position:static;left:auto;top:auto;transform:none;width:auto;max-width:none;margin:0;padding:0}
body #hero #copy > .line[data-i="0"],
body #hero #copy .turn .line[data-i="1"],
body #hero #copy #reveal{white-space:normal;margin:0;opacity:1!important;color:var(--ink)}
body #hero #copy .turn{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.24em;line-height:1}
body #hero #copy .turn > *{display:block}
body #hero #copy .line.sub{
  width:auto;min-width:0;max-width:none;white-space:normal;text-wrap:pretty;
  margin:var(--s-h2) 0 0;color:var(--ink);
}
body #hero #copy .line.sub + .line.sub{margin-top:var(--s-p)}
#hero .head{width:auto;height:auto;margin-left:.12em;vertical-align:-.04em}
#hero .head img{position:static;display:inline-block;height:.82em;width:auto;filter:none}
#work.r-rail{padding-top:var(--s-hero)!important}

@media (max-width:640px){
  .cst-meta dl > div{grid-template-columns:1fr;gap:4px}
  .abv-bio{grid-template-columns:1fr}
  .cst-stats{grid-template-columns:1fr}
}
body .r-h2 > .r-h2t{font-weight:inherit!important;font-family:inherit!important}
body #hero #copy .turn{column-gap:calc(var(--t-h1) * .24)}
body .cst .cst-cap[style*="padding-left"]{padding-left:clamp(58px,7vw,116px)!important}

/* ---------- the strip gets its heading back: "work", as a section heading
   on the same left edge as every other one, rule running right ---------- */
#work.r-rail .proj-label{
  position:static!important;width:auto!important;height:auto;overflow:visible;clip:auto;white-space:normal;
  box-sizing:border-box;
  max-width:calc(var(--r-max) + 2 * var(--r-g))!important;
  margin:0 auto!important;padding:0 var(--r-g)!important;
  font-family:var(--r-sans)!important;font-weight:700!important;
  font-size:var(--t-h2);line-height:1.2;letter-spacing:-.5px;
  color:var(--r-ink);text-align:left;
}
#work.r-rail{--rtop:calc(var(--t-h2) * 1.2 + var(--s-h2))}
/* keep the heading out of the edge fade: the mask lets the top band through
   untouched and fades only the strip beneath it */
#work.r-rail .proj-frame{
  -webkit-mask-image:linear-gradient(#000,#000),linear-gradient(to right,transparent calc(var(--redge) - var(--rramp)),#000 var(--redge),#000 calc(100% - var(--redge)),transparent calc(100% - var(--redge) + var(--rramp)));
          mask-image:linear-gradient(#000,#000),linear-gradient(to right,transparent calc(var(--redge) - var(--rramp)),#000 var(--redge),#000 calc(100% - var(--redge)),transparent calc(100% - var(--redge) + var(--rramp)));
  -webkit-mask-size:100% var(--rtop),100% 100%;mask-size:100% var(--rtop),100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
@media (hover:hover) and (pointer:fine){
  #work.r-rail .proj-frame{height:calc(var(--rtop) + var(--rfh) + 8px)}
}

/* the clock pill: no monospace, the system sans with tabular figures */
body #clock,body #clock *{font-family:var(--r-sans)!important;font-variant-numeric:tabular-nums}
#clock,body.on-cream #clock{font-size:12px;letter-spacing:.04em}

/* ---------- the first fold: statement, lines and the strip together.
   The hero's type is capped by the window's height as well as its width,
   so on a laptop the work strip arrives inside the first screen; on a tall
   screen the spec sizes still apply. ---------- */
#hero{
  --hh1:min(var(--t-h1),10svh);
  --hbody:min(var(--t-body),2.5svh);
  padding-top:calc(56px + min(var(--s-top),4svh));
}
body #hero #copy .line:not(.sub){font-size:var(--hh1)}
body #hero #copy .turn{column-gap:calc(var(--hh1) * .24)}
body #hero #copy .line.sub,body #hero #copy .line.sub *{font-size:var(--hbody);max-width:62ch}
body #hero #copy .line.sub{margin-top:min(var(--s-h2),3svh)}
body #hero #copy .line.sub + .line.sub{margin-top:min(var(--s-p),1.6svh)}
#work.r-rail{padding-top:min(var(--s-hero),4.5svh)!important;--rtop:calc(var(--t-h2) * 1.2 + min(var(--s-h2),2.8svh))}
/* the bleed sits under the type, never over it */
.r-bleed{z-index:-1}

/* ---------- the rotating sun cursor stays: on fine pointers it replaces
   the system cursor everywhere, the hover bud and the strip included ---------- */
html.r-sun,html.r-sun body,html.r-sun body *{cursor:none!important}
#cursor{z-index:130}

/* ---------- fixes: "work" heading on the left edge; the page background
   lives on <html> only, so the edge bend (and the paper grain) can sit
   under the type and still show ---------- */
#work.r-rail .proj-label{width:100%!important;box-sizing:border-box}
html{background:var(--r-bg)}
body,body.scrollable{background:transparent!important}

/* ==========================================================================
   NAV: pinned, quiet, easy
   ========================================================================== */
body > nav{
  position:fixed;top:0;left:0;right:0;z-index:60;
  padding:14px var(--r-g);align-items:center;
  background:transparent;
  transition:background-color .2s ease,box-shadow .2s ease;
}
body > nav.r-stuck{
  background:color-mix(in srgb,var(--r-bg) 88%,transparent);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  box-shadow:0 1px 0 var(--r-hair);
}
:root[data-theme="dark"] body:has(#hero) > nav:not(.r-stuck){background:transparent}
body > nav .right{margin-top:0;gap:clamp(12px,2vw,24px)}
body > nav .links{gap:4px;align-items:center}
/* every link gets a real hit area */
body > nav .mark,body > nav .links a{padding:8px 10px;margin:-8px -10px;border-radius:999px}
body > nav .links a{margin:0;transition:background-color .15s ease,color .15s ease}
body > nav .links a::after{left:10px;right:10px;bottom:4px}
body > nav .links a:hover{background:color-mix(in srgb,var(--r-ink) 6%,transparent)}
/* where you are */
body > nav .links a[aria-current="page"]::after{transform:scaleX(1)}
/* the one action: contact, as a small ink pill */
body > nav .links a[href^="mailto:"]{background:var(--r-ink);color:var(--r-bg);margin-left:6px;padding:8px 14px}
body > nav .links a[href^="mailto:"]::after{content:none}
body > nav .links a[href^="mailto:"]:hover{background:#000;color:var(--r-bg)}
:root[data-theme="dark"] body:has(#hero) > nav:not(.r-stuck) .links a[href^="mailto:"]{background:var(--r-bg);color:var(--r-ink)}
/* the two toggles step back */
.ctl,body.nav-cream .ctl{width:30px;height:30px;border-color:transparent;background:transparent;color:var(--r-mute)}
.ctl:hover{border-color:var(--r-hair);color:var(--ink)}
.ctl svg{width:15px;height:15px}
#soundBtn{margin-left:2px}

/* the clock: plain, small, grey: there, but not the headline */
#clock,body.on-cream #clock{
  position:absolute;top:22px;left:50%;transform:translateX(-50%);z-index:59;
  background:transparent!important;padding:0;border-radius:0;
  font-size:13px;line-height:16px;letter-spacing:.01em;text-transform:none;
  color:var(--r-mute)!important;
}
:root[data-theme="dark"] body:has(#hero) #clock{background:transparent!important}
@media (max-width:820px){
  #clock,body.on-cream #clock{top:60px}
}
@media (max-width:560px){
  body > nav .links a{padding:8px 7px}
  body > nav .links a[href^="mailto:"]{padding:8px 11px;margin-left:2px}
  body > nav .right{gap:6px}
  .ctl{width:28px;height:28px}
}

/* the hover title: the project's name in its own ink pill above the card */
.r-bud-title{
  margin:0!important;mix-blend-mode:normal!important;
  padding:9px 18px;border-radius:999px;
  background:#171717;color:#fff;
  font-size:16px;line-height:20px;font-weight:400!important;letter-spacing:0;
}

/* ==========================================================================
   SCALE: the reference at its true on-screen size (the earlier numbers were
   read off a 2x screenshot). Outfit Regular titles at 60px, 15/20 text, a
   centred 550px reading column with imagery on a 768px band, text inside
   it left-aligned.
   ========================================================================== */
@font-face{font-family:'Outfit';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/outfit-latin-400-normal.woff2") format("woff2")}
:root,
:root[data-theme="light"],
:root[data-theme="dark"]{
  --r-col:550px;
  --r-band:768px;
  --r-max:550px;
  --t-h1:clamp(40px,calc(32.57px + 1.905vw),60px);
  --t-h1-ls:-.05em;                  /* -3px at 60px */
  --t-h2:15px;
  --t-h3:15px;
  --t-body:15px;
  --t-small:12px;
  --s-top:clamp(40px,calc(28.9px + 2.86vw),70px);
  --s-hero:clamp(48px,calc(42px + 1.52vw),64px);
  --s-h2:24px;
  --s-p:16px;
}

/* titles: Outfit 400, 60/60, -3px */
body :is(.cst .cst-kicker,.cst .abv-intro .abv-h,.nf-h),
body #hero #copy .line:not(.sub),
body #hero #copy .line:not(.sub) *:not(img){font-weight:400!important}
body .cst .cst-num{font-weight:400!important}

/* section headings: 15/20 medium, the rule still running right */
body :is(.cst .cst-h2,.cst .cst-figures h2,.cst .abv-do .abv-h,.cst .abv-timeline .abv-h,.cst .ab-h2,.cst .cst-off h2){
  font-weight:500!important;line-height:20px;letter-spacing:0;
}
body .cst :is(.cst-h3,.cst-q,.ab-row h3,.cst-opt h3,.cst-model h3,.cst-feat h3,.cst-three h3){font-weight:500!important;line-height:20px;letter-spacing:0}
body .cst :is(.cst-h3,.cst-q) + *{margin-top:8px!important}
/* body 15/20 */
body :is(.cst .cst-p,.cst .cst-lead,.cst .cst-opt p,.cst .cst-model li,.cst .cst-three p,.cst .cst-feat p,
  .cst blockquote,.cst blockquote p,.cst .abv-p,.cst .abv-close,.nf-lead,.cst .ab-story p){line-height:20px}
body .cst .cst-model li{margin-top:8px}
/* small 12/18 */
body :is(.cst .cst-cap,.cst .cst-proto-note,.cst .cst-breath-note,.cst figcaption,.cst .cst-stat p:last-child,
  .cst .cst-note,.cst .cst-caveat,.cst .abv-tools,.cst .cst-wordmark,.nf-eyebrow,.nf-list-h,.nf-item .nf-when){line-height:18px}
body .cst .cst-cap,body .cst figcaption{margin-top:24px}
body .cst .cst-wordmark{font-size:15px;line-height:20px;margin-bottom:16px}
body :is(.cst .cst-btn,.nf-item .nf-title){font-size:15px;line-height:20px}
body .cst :is(.abv-tag,.cst-verdict){font-size:13px;line-height:16px}
body .cst .cst-meta dd{font-size:15px;line-height:20px}
body .cst .cst-meta dt{font-size:12px;line-height:20px}
.cst-meta dl > div{grid-template-columns:8rem minmax(0,1fr);gap:16px;padding:10px 0}

/* columns: centred, text on 550, imagery on 768 */
.cst-shell,.cst-figures .cst-shell,.abv-board{max-width:calc(var(--r-band) + 2 * var(--r-g))!important}
.cst-shell--text,.cst--galls .cst-ctr,.abv-wrap,.nf-wrap{max-width:calc(var(--r-col) + 2 * var(--r-g))!important}
body .cst :is(.cst-shell > h1,.cst-shell > h2,.cst-shell > h3,.cst-shell > p,.cst-shell > blockquote,.cst-shell > ul,
  .cst-three,.cst-models,.cst-flow,.cst-btns,.cst-close,.cst-off,.cst-opts,.cst-feats,
  .cst-dirs > .cst-opts,.cst-aside > div,.cst-dec > div:first-child,.cst-figures .cst-shell > *,
  .cst-cap,.cst-proto-note,.cst-breath-note,figcaption){
  max-width:var(--r-col)!important;margin-inline:auto!important;
}
.cst-dirs-sketch,.cst-aside > img{margin-inline:auto}
.abv-chart,.abv-infinity,.cst-loop,.cst-inf,.cst-breath-hand{margin-inline:auto!important}
.abv-bio{grid-template-columns:120px minmax(0,1fr);gap:24px}

/* ---------- homepage: smaller hero, same carousel position, no "work" title ---------- */
#hero{
  --hh1:var(--t-h1);
  --hbody:16px;
  padding-top:calc(56px + var(--s-top));
}
#hero #stage{max-width:var(--r-band)}
body #hero #copy .line.sub,body #hero #copy .line.sub *{font-size:16px;line-height:24px;max-width:none}
body #hero #copy .line.sub{margin-top:32px}
body #hero #copy .line.sub + .line.sub{margin-top:12px}
#work.r-rail .proj-label{
  position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
  clip:rect(0 0 0 0)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;
}
#work.r-rail{--rtop:0px;padding-top:clamp(48px,calc(21svh - 60px),140px)!important}

/* ---------- cards: each case study's hero image, filling the card ---------- */
#work.r-rail a.proj-plate>img{object-fit:cover;object-position:50% 50%!important}
#work.r-rail a.proj-plate>img.r-thumb-phone{
  inset:auto;left:50%;bottom:0;top:auto;
  width:auto;height:86%;object-fit:contain;
  transform:translateX(-50%);
}
#work.r-rail .proj-plates > .proj-plate{background:#E9E8E4}

/* ---------- the cursor becomes the hover: over a card the sun steps aside
   and "View case study" sits where the pointer is ---------- */
html.r-bud-on #cursor{opacity:0!important;transition:opacity .12s ease}
.r-bud-pill{transform:translate(-50%,-50%)}

/* ---------- case studies: the lead image clears the pinned nav ---------- */
.cst-sec.cst-hero{padding-top:calc(60px + var(--s-top))!important}

/* ---------- hero motion, after hanif.rest ----------
   1) the second line carries the same shimmer: a lighter band at 110deg
      sweeping through the text every 2s (a gradient clipped to the glyphs)
   2) the hero settles in from a 3px blur, line by line, once on load */
@keyframes r-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@keyframes r-mat{0%{opacity:0;filter:blur(3px)}100%{opacity:1;filter:blur(0)}}
body #hero #copy .turn{
  --sh:color-mix(in srgb,var(--ink) 100%,transparent);
  background-image:linear-gradient(110deg,
    var(--ink) calc(50% - 140px),
    color-mix(in srgb,var(--ink) 55%,transparent) calc(50% - 70px),
    color-mix(in srgb,var(--ink) 18%,transparent) 50%,
    color-mix(in srgb,var(--ink) 55%,transparent) calc(50% + 70px),
    var(--ink) calc(50% + 140px));
  background-size:calc(200% + 280px) 100%;
  background-repeat:no-repeat;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:r-shimmer 2.4s linear infinite;
  width:fit-content;
}
body #hero #copy .turn *{-webkit-text-fill-color:transparent;background:none!important}
body #hero #copy > .line[data-i="0"]{animation:r-mat .7s cubic-bezier(.2,.7,.2,1) both}
body #hero #copy .turn{animation:r-shimmer 2.4s linear infinite,r-mat .7s cubic-bezier(.2,.7,.2,1) .12s both}
body #hero #copy .line.sub[data-i="2"]{animation:r-mat .7s cubic-bezier(.2,.7,.2,1) .24s both}
body #hero #copy .line.sub[data-i="3"]{animation:r-mat .7s cubic-bezier(.2,.7,.2,1) .34s both}
#work.r-rail .proj-frame{animation:r-mat .8s cubic-bezier(.2,.7,.2,1) .44s both}
@media (prefers-reduced-motion:reduce){
  body #hero #copy .turn,body #hero #copy .turn *{-webkit-text-fill-color:currentColor!important;background-image:none!important;animation:none!important}
}

/* ---------- the eye intro (built by restyle.js) ---------- */
#hero{position:relative}
.r-eyes{position:fixed;inset:0;pointer-events:none;z-index:65}
.r-eye{position:absolute;aspect-ratio:120/70;transform-origin:50% 50%;will-change:transform,opacity}
.r-eye svg{display:block;width:100%;height:100%;overflow:visible}
.r-lid{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1}
.r-lid.a{stroke-width:1.5px;opacity:.95}
.r-lid.b{stroke-width:1px;opacity:.35}
.r-iris{fill:none;stroke:var(--ink);stroke-width:1.1px;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1}
.r-pupil{fill:var(--ink);transform-box:fill-box;transform-origin:50% 50%;opacity:0}
/* while the eyes are out, the hero words and the strip wait at their first
   frame; the moment the class goes, their fade-in plays */
html.r-intro body #hero #copy > *,
html.r-intro body #hero #copy .turn,
html.r-intro #work.r-rail .proj-frame,
html.r-intro .r-bleed{animation-play-state:paused!important}
html.r-intro .r-bleed{opacity:0}
.r-bleed{transition:opacity .6s ease .5s}
@media (prefers-reduced-motion:reduce){.r-eyes{display:none}}
html.r-intro body #hero #copy{opacity:0}

/* ---------- hero at 16pt / 12pt ---------- */
#hero{--hh1:16pt}
body #hero #copy .line:not(.sub){font-size:16pt;line-height:1.3;letter-spacing:-.01em}
body #hero #copy .turn{line-height:1.3;column-gap:.26em}
body #hero #copy .line.sub,body #hero #copy .line.sub *{font-size:12pt;line-height:1.5}
body #hero #copy .line.sub{margin-top:20px;max-width:46em}
body #hero #copy .line.sub + .line.sub{margin-top:10px}
/* the strip keeps its place in the fold */
#work.r-rail{padding-top:clamp(80px,calc(24svh - 10px),220px)!important}

/* ---------- the photo in the hero, and what it says ---------- */
#hero .head{cursor:pointer;border-radius:50%;transform-origin:50% 60%}
#hero .head img{height:1.05em;width:1.05em;border-radius:50%;filter:none;vertical-align:-.15em}
#hero .head:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.r-me{
  display:inline-block;margin-left:.6em;vertical-align:.12em;
  font-family:var(--r-sans)!important;font-size:12pt!important;line-height:1;letter-spacing:0;
  font-weight:400!important;color:var(--r-mute);-webkit-text-fill-color:currentColor;
  opacity:0;transform:translateX(-4px);
  transition:opacity .25s ease,transform .35s cubic-bezier(.2,.9,.3,1.05);
  white-space:nowrap;
}
.r-me.on{opacity:1;transform:none}
.r-me a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){.r-me{transition:none;transform:none}}
body #hero #copy .line .r-me,body #hero #copy .line .r-me *{font-family:var(--r-sans)!important;font-size:12pt!important;letter-spacing:0;line-height:1}
body #hero #copy .line:not(.sub) .r-me.r-me,body #hero #copy .line:not(.sub) .r-me.r-me *:not(img){font-family:var(--r-sans)!important;font-size:12pt;letter-spacing:0;line-height:1;font-weight:400!important}

/* ---------- meanwhile: same faces and sizes as the rest of the site ---------- */
body #meanwhile :is(.mw-hint,.mw-tab-label,.mw-cap,.mw-sub,.mw-type,.mw-sp-counter,.mw-sp-counter b){
  font-family:var(--r-sans)!important;letter-spacing:0;text-transform:none;
}
body #meanwhile .mw-hint{font-size:12px!important;line-height:18px;font-weight:400!important;color:var(--r-mute)}
body #meanwhile .mw-tab-label{font-size:15px!important;line-height:20px;font-weight:400!important;color:var(--r-ink)}
body #meanwhile :is(.mw-cap,.mw-sub,.mw-type){font-size:max(1.06cqw,12px)}
body :is(.ab-when,.ab-eyebrow){font-family:var(--r-sans)!important}

/* ---------- hero: a tight, centred column in the middle of the fold ---------- */
#hero #stage{max-width:560px}
#hero #copy{text-align:center}
body #hero #copy > .line[data-i="0"]{text-align:center}
body #hero #copy .turn{justify-content:center;margin-inline:auto}
body #hero #copy .line.sub{text-align:center;max-width:560px;margin-inline:auto;text-wrap:balance}
.r-me{position:absolute;margin-left:.6em}
#hero .line[data-i="0"]{position:relative}
/* the photo at twice the size, seated so it doesn't push the lines apart */
#hero .head img{height:2.1em;width:2.1em;vertical-align:middle;margin:-.55em 0 -.5em}
#hero .head{margin-left:.2em}
/* the sun cursor at ordinary pointer size, still centred on the hot spot */
#cursor{width:20px;height:20px;margin:-10px 0 0 -10px}
#cursor i{filter:drop-shadow(0 1px 3px rgba(0,0,0,.22))}
/* hero: same centred column, every line left-aligned */
#hero #copy,body #hero #copy > .line[data-i="0"],body #hero #copy .line.sub{text-align:left}
body #hero #copy .turn{justify-content:flex-start;margin-inline:0}
body #hero #copy .line.sub{margin-inline:0}
/* the note sits level with the photo */
.r-me{top:50%;margin-top:-.5em;line-height:1}

/* ---------- the clock: out of the nav, a quiet pill floating at the
   bottom centre of the first fold ---------- */
#clock,body.on-cream #clock{
  position:absolute;top:calc(100svh - 50px);bottom:auto;left:50%;transform:translateX(-50%);
  z-index:5;
  padding:6px 12px!important;border-radius:999px!important;
  background:color-mix(in srgb,var(--r-ink) 5%,transparent)!important;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  font-size:12px;line-height:16px;
  color:var(--r-ink)!important;opacity:.5!important;
  pointer-events:none;
}
@media (max-width:820px){ #clock,body.on-cream #clock{top:calc(100svh - 46px)} }

/* hero a few notches up */
#hero{padding-top:calc(56px + min(36px,4svh))!important}
/* the floating clock belongs to the homepage fold, where that space is empty;
   on reading pages it would sit on the text */
body:not(:has(#hero)) #clock{display:none!important}

/* ---------- smaller hover pills ---------- */
.r-bud-title{font-size:13px!important;line-height:16px;padding:6px 12px!important}
.r-bud-pill{height:32px;padding:0 13px 0 10px;gap:7px;font-size:13px!important;line-height:16px;border-radius:16px}
.r-bud-pill svg{width:15px;height:15px}

/* ---------- hero: one invisible rectangle, centred on the fold, filled ---------- */
#hero #stage{max-width:480px!important;margin-inline:auto}
#hero #copy{width:100%}
body #hero #copy .line.sub{
  max-width:none;width:100%;
  text-align:justify;text-align-last:left;text-wrap:wrap;
  -webkit-hyphens:auto;hyphens:auto;
}
body #hero #copy .line.sub{-webkit-hyphens:manual;hyphens:manual;word-spacing:-.01em}

/* ---------- the clock: a constant, quiet pill. Bottom centre in the
   homepage's first fold; bottom left everywhere after that ---------- */
body:not(:has(#hero)) #clock{display:block!important}
#clock,body.on-cream #clock{
  position:fixed!important;top:auto!important;bottom:18px;left:0!important;
  transform:translateX(var(--r-g))!important;
  z-index:55;
  transition:transform .55s cubic-bezier(.2,.9,.25,1.02),opacity .3s ease!important;
}
html.r-clock-mid #clock{transform:translateX(calc(50vw - 50%))!important}
/* phones: no room in the margin for it while reading, so it only shows in
   the first fold of the homepage */
@media (max-width:820px){
  #clock,body.on-cream #clock{bottom:14px}
  html:not(.r-clock-mid) #clock{opacity:0!important}
}
@media (prefers-reduced-motion:reduce){#clock{transition:none!important}}

/* ---------- images exported on white: let the page show through ----------
   multiply keeps every line, photo and colour as drawn and turns the white
   ground into the page's own off-white, so there is no white box */
.cst img:is([src$="nv-loop.webp"],[src$="nv-whatsapp.webp"],[src$="nv2-hand-notes.webp"],[src$="nv2-engine.webp"],
  [src$="nv2-infinity.webp"],[src$="galls-flow-before.png"],[src$="galls-flow-after.png"],
  [src$="ab-board.png"],[src$="ab-timeline.png"],[src$="ab-infinity.png"]){
  mix-blend-mode:multiply;border-radius:0!important;
}
/* their frames and bands lose the white or grey they were mounted on */
.cst :is(.cst-shot,.cst-loop,.cst-diagram,.cst-aside,.abv-board,.abv-timeline){background:transparent!important}
.cst .cst-shell > div[style*="overflow:hidden"]:has(> img[src$="galls-flow-before.png"],> img[src$="galls-flow-after.png"]){background:transparent!important}

/* ---------- about: the board and the timeline, big enough to read ---------- */
.abv-board{max-width:calc(1200px + 2 * var(--r-g))!important}
.cst .abv-chart{
  width:min(1000px,calc(100vw - 2 * var(--r-g)))!important;max-width:none!important;
  margin-left:calc(50% - min(500px,calc(50vw - var(--r-g))))!important;
}
.cst .abv-tl-arrow{margin-right:calc(50% - min(500px,calc(50vw - var(--r-g))) + 8%)}

/* ---------- hero paragraphs: plain left alignment ---------- */
body #hero #copy .line.sub{text-align:left;text-align-last:auto;word-spacing:normal}

/* ---------- meanwhile: the broken clock takes the girl's place ---------- */
#meanwhile .mw-panel .mw-clock{
  position:absolute;display:block;
  left:3%;top:18%;width:44%;height:auto;aspect-ratio:1/1;
  border-radius:var(--r-radius);
}
@media (max-width:820px){
  #meanwhile .mw-panel .mw-clock{left:14%;width:72%;top:36%}
}
/* no rule above the Meanwhile fold */
#meanwhile::before{content:none!important;display:none!important}

/* ---------- nav in the title face; contact centred in its pill ---------- */
body > nav a,body > nav .mark{
  font-family:var(--r-display)!important;font-weight:400!important;
  font-size:16px;line-height:1;letter-spacing:-.01em;
}
body > nav .links a{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 10px}
body > nav .links a[href^="mailto:"]{padding:0 16px 1px;margin-left:6px;text-align:center}
body > nav .links a::after{bottom:6px}
@media (max-width:560px){
  body > nav .links a{padding:0 7px;height:32px}
  body > nav .links a[href^="mailto:"]{padding:0 12px 1px}
}

/* ---------- meanwhile menu: one faint pill to sit in, each item a soft
   rounded target ---------- */
#meanwhile .mw-rail{
  gap:.35cqw;
  padding:.9cqw .7cqw;
  background:color-mix(in srgb,var(--r-ink) 2.5%,transparent);
  border:1px solid color-mix(in srgb,var(--r-ink) 6%,transparent);
  border-radius:999px;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
#meanwhile .mw-tab{
  width:auto;height:auto;min-width:7.4cqw;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45cqw;
  padding:1.05cqw 1cqw .95cqw;
  border-radius:999px;
  transition:background-color .2s ease,transform .3s cubic-bezier(.2,.9,.3,1.05);
}
#meanwhile .mw-tab:hover,#meanwhile .mw-tab:focus-visible{background:color-mix(in srgb,var(--r-ink) 5%,transparent)}
#meanwhile .mw-tab.sel{background:color-mix(in srgb,var(--r-ink) 7%,transparent)}
#meanwhile .mw-tab:focus-visible{outline:2px solid var(--r-ink)!important;outline-offset:-2px!important}
#meanwhile .mw-tab-label{position:static;transform:none;left:auto;top:auto;opacity:.7}
#meanwhile .mw-tab:hover .mw-tab-label,#meanwhile .mw-tab.sel .mw-tab-label{opacity:1}
#meanwhile .mw-ring{display:none!important}
#meanwhile .mw-tab:hover img,#meanwhile .mw-tab.sel img{transform:scale(1.06)}
@media (max-width:820px){
  #meanwhile .mw-rail{padding:6px;gap:2px}
  #meanwhile .mw-tab{min-width:0;padding:10px 12px 8px;gap:4px}
}

/* ---------- the page key (case studies, wide screens) ----------
   A quiet index in the left margin: one line per section, in the page's
   own heading words. The current section is in ink with a longer tick; a
   hairline beside the list fills as you read. */
.r-key{display:none}
@media (min-width:1180px){
  .r-key{
    display:block;position:fixed;z-index:50;
    left:var(--r-g);top:50%;transform:translateY(-50%);
    width:calc((100vw - var(--r-band)) / 2 - var(--r-g) - 32px);max-width:220px;
    padding-left:14px;
  }
  .r-key::before,.r-key::after{
    content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;
    background:var(--r-hair);
  }
  .r-key::after{
    background:var(--r-ink);bottom:auto;
    height:calc((100% - 8px) * var(--r-progress,0));
    transition:height .2s linear;
  }
  .r-key ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
  .r-key button{
    appearance:none;-webkit-appearance:none;border:0;background:none;cursor:pointer;
    display:flex;align-items:center;gap:10px;width:100%;text-align:left;
    padding:5px 0;
    font-family:var(--r-sans)!important;font-size:13px;line-height:16px;font-weight:400!important;
    color:var(--r-mute);opacity:.75;
    transition:opacity .2s ease,color .2s ease;
  }
  .r-key-tick{
    flex:none;width:8px;height:1px;background:currentColor;
    transform-origin:0 50%;transition:transform .35s cubic-bezier(.2,.9,.3,1.05);
  }
  .r-key-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .r-key button:hover{opacity:1;color:var(--r-ink)}
  .r-key button[aria-current="true"]{opacity:1;color:var(--r-ink)}
  .r-key button[aria-current="true"] .r-key-tick{transform:scaleX(2.5)}
  .r-key button:focus-visible{outline:2px solid var(--r-ink)!important;outline-offset:2px!important;border-radius:4px}
  /* with the key on screen, the bottom pill is not needed */
  .r-toc{display:none!important}
}
@media (prefers-reduced-motion:reduce){.r-key *,.r-key::after{transition:none!important}}
@media (min-width:1180px){
  .r-key button{gap:14px}
  .r-key button[aria-current="true"] .r-key-tick{transform:scaleX(2)}
}

/* ---------- page key, compact: a narrow pill that opens on hover ---------- */
@media (min-width:1180px){
  .r-key{
    width:auto;max-width:none;
    padding:10px 12px 10px 22px;
    background:color-mix(in srgb,var(--r-ink) 2.5%,transparent);
    border:1px solid color-mix(in srgb,var(--r-ink) 6%,transparent);
    border-radius:18px;
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  }
  .r-key::before,.r-key::after{left:11px;top:14px;bottom:14px}
  .r-key::after{height:calc((100% - 28px) * var(--r-progress,0))}
  .r-key ol{gap:0}
  .r-key button{gap:8px;padding:3px 0;font-size:12px;line-height:15px}
  .r-key-tick{width:5px}
  .r-key button[aria-current="true"] .r-key-tick{transform:scaleX(2.2)}
  .r-key-text{
    display:block;max-width:132px;
    transition:max-width .35s cubic-bezier(.2,.9,.3,1.02);
  }
  .r-key:hover .r-key-text,.r-key:focus-within .r-key-text{max-width:320px}
}
@media (min-width:1180px){ .r-key{width:max-content;right:auto} }

/* =====================================================================
   MOBILE
   ===================================================================== */

/* ---------- meanwhile on phones: a compact block, panels as tidy grids ----------
   The desktop artboard places every photo by percentage; squeezed onto a
   phone the captions wrap a word per line and sit on the photos. Below 820px
   the fold becomes a fixed-height block and each panel lays its own pieces
   out in a simple grid under the tab bar. */
@media (max-width:820px){
  #meanwhile{min-height:0}
  #meanwhile .mw-frame{min-height:0;height:660px;margin-top:24px}
  #meanwhile .mw-lockup{top:16px;width:min(60%,250px)}
  #meanwhile .mw-sub{top:78px}
  #meanwhile .mw-rail{top:112px;left:50%;width:min(100%,520px);transform:translateX(-50%)}
  #meanwhile .mw-panel .mw-clock{top:226px;left:50%;width:min(300px,76%);transform:translateX(-50%)}

  #meanwhile .mw-panel:not([data-key="intro"]){
    inset:auto;top:224px;left:max(20px,calc(50% - 210px));right:max(20px,calc(50% - 210px));
    transform:none;
    display:grid;gap:12px;align-items:start;align-content:start;
  }
  #meanwhile .mw-panel:not([data-key="intro"]) :is(img,.mw-cap,.mw-cook-grid,a){
    position:static!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;height:auto!important;max-width:none!important;
    transform:none!important;margin:0;
  }
  #meanwhile .mw-panel:not([data-key="intro"]) .mw-arrow,
  #meanwhile .mw-pod-blob{display:none!important}
  body #meanwhile .mw-panel .mw-cap{font-size:14px!important;line-height:20px;text-align:left}

  /* cooking: line, then the six dishes in a 3 x 2 grid */
  #meanwhile [data-key="cook"]{grid-template-columns:1fr}
  #meanwhile [data-key="cook"] .mw-cook-grid{display:grid!important;grid-template-columns:repeat(3,1fr);gap:4px;aspect-ratio:auto}
  #meanwhile [data-key="cook"] .mw-cook-grid img{aspect-ratio:706/596;object-fit:cover}
  #meanwhile .mw-panel[data-key="cook"] img.mw-cook-sticker.mw-cook-sticker{width:72px!important;justify-self:end;margin-top:-4px}

  /* art: line, canvas + stall + fair in a row, merch beside its line */
  #meanwhile [data-key="art"]{grid-template-columns:repeat(3,1fr);align-items:center}
  #meanwhile [data-key="art"] .mw-art-c1{grid-column:1/-1;grid-row:1}
  #meanwhile [data-key="art"] .mw-art-canvas{grid-row:2;grid-column:1}
  #meanwhile [data-key="art"] .mw-art-stall{grid-row:2;grid-column:2}
  #meanwhile [data-key="art"] .mw-art-fair{grid-row:2;grid-column:3}
  #meanwhile [data-key="art"] .mw-art-merch{grid-row:3;grid-column:1}
  #meanwhile [data-key="art"] .mw-art-c2{grid-row:3;grid-column:2/-1}

  /* podcast: the room on the left, cube, card and badges on the right */
  #meanwhile [data-key="pod"]{grid-template-columns:1.1fr 1fr;align-items:center}
  #meanwhile [data-key="pod"] .mw-pod-room{grid-column:1;grid-row:1/span 4}
  #meanwhile .mw-panel[data-key="pod"] img.mw-pod-cube.mw-pod-cube{grid-column:2;grid-row:1;width:78%!important;justify-self:center}
  #meanwhile [data-key="pod"] .mw-pod-card{grid-column:2;grid-row:2}
  #meanwhile .mw-panel[data-key="pod"] a.mw-pod-spotify.mw-pod-spotify{grid-column:2;grid-row:3;width:62%!important}
  #meanwhile .mw-panel[data-key="pod"] a.mw-pod-apple.mw-pod-apple{grid-column:2;grid-row:4;width:72%!important}
  #meanwhile [data-key="pod"] a{display:block;min-height:0}

  /* sports: line, the two photos side by side, counter beside the badge */
  #meanwhile [data-key="sport"]{grid-template-columns:1fr 1fr;align-items:center}
  #meanwhile [data-key="sport"] .mw-sp-cap{grid-column:1/-1;grid-row:1}
  #meanwhile [data-key="sport"] .mw-sp-cluster{grid-row:2;grid-column:1}
  #meanwhile [data-key="sport"] .mw-sp-tennis{grid-row:2;grid-column:2}
  #meanwhile [data-key="sport"] .mw-sp-counter{grid-row:3;grid-column:1}
  #meanwhile [data-key="sport"] .mw-sp-badge{grid-row:3;grid-column:2}
}

/* ---------- footer + small links: thumb-sized tap targets ---------- */
@media (max-width:820px){
  .site-foot-links{gap:0 24px!important;flex-wrap:wrap}
  .site-foot-links a{display:inline-flex;align-items:center;min-height:44px}
  .cst-proto-note a{display:inline-block;padding:12px 0;margin:-12px 0}
}

/* ---------- wide diagrams: they scroll sideways, so say so with a fade ---------- */
.r-scrolls{
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);
          mask-image:linear-gradient(90deg,#000 calc(100% - 56px),transparent);
  scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
.r-scrolls::-webkit-scrollbar{display:none}
.r-scrolls.r-mid{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 56px),transparent);
          mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 56px),transparent);
}
.r-scrolls.r-end{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 40px);
          mask-image:linear-gradient(90deg,transparent,#000 40px);
}

/* ---------- about on phones: portrait above the words, chart you can swipe ---------- */
@media (max-width:820px){
  body .abv-bio{grid-template-columns:1fr!important;gap:20px!important}
  body .abv-bio .abv-suit{width:132px!important;height:auto}
  .r-xscroll{overflow-x:auto;margin-inline:calc(-1 * var(--r-g));padding-inline:var(--r-g)}
  .r-xscroll > .abv-chart{width:720px!important;max-width:none!important}
}

@media (max-width:820px){
  /* keep the Meanwhile sticker up top while a tab is open, instead of a blank
     band above the tabs; only the clock gives way to the open panel */
  #meanwhile .mw-panel[data-key="intro"]{opacity:1;visibility:visible}
  #meanwhile .mw-panel[data-key="intro"]:not(.on) .mw-clock{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
  #meanwhile .mw-pod-link img{mix-blend-mode:multiply}
}
/* short phones: the floating time would sit on the cards' titles */
@media (max-width:820px) and (max-height:700px){ html.r-clock-mid body #clock{opacity:0!important;pointer-events:none} }

/* the photo's note, wrapped beside it on narrow screens */
body #hero #copy .line .r-me.r-me-tight{
  white-space:normal;line-height:1.25!important;font-size:13px!important;
  margin-top:0;transform:translate(-4px,-50%);
}
body #hero #copy .line .r-me.r-me-tight *{font-size:13px!important}
body #hero #copy .line .r-me.r-me-tight.on{transform:translate(0,-50%)}
