/*
 * portfolio shell — layout and components
 *
 * Home and /work/ share this sheet. Tokens come from tokens.css (same
 * system as the protected case). No case-specific selectors live here.
 */
*{box-sizing:border-box}
/* Inter ships here with its optical-size axis (opsz 14..32). Letting the
   browser drive it is why display type reads tighter than the 11px meta. */
html{-webkit-text-size-adjust:100%;overflow-x:clip;font-optical-sizing:auto}
body{
  position:relative;
  margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);
  font-size:16.5px;line-height:1.56;letter-spacing:-.006em;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
::selection{background:var(--accent-soft)}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:16px;top:12px;z-index:200;padding:8px 12px;border-radius:7px;
  background:var(--raised);border:1px solid var(--line);color:var(--ink);text-decoration:none;
  /* Clear the offset too, or the parked link peeks in above the bar. */
  transform:translateY(calc(-100% - 16px));transition:transform var(--motion-fast) var(--ease-ui)}
.skip:focus{transform:none;outline:2px solid var(--accent);outline-offset:2px}

/* The bar belongs to the atmosphere rather than sitting on it: a hairline
   divider always, but no frost until content actually scrolls underneath. */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;isolation:isolate;
  border-bottom:1px solid color-mix(in srgb,var(--line) 38%,transparent);
  transition:opacity var(--motion-fast) var(--ease-ui),
             border-color var(--motion-slow) var(--ease-ui)}
.top::before{content:"";position:absolute;inset:0;z-index:-1;opacity:0;
  background:var(--glass-fill);
  -webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);
  transition:opacity var(--motion-slow) var(--ease-ui)}
html.is-scrolled .top::before{opacity:1}
/* Header, content and footer share one column so the brand sits on the
   same spine as the page below it. */
/* The column is capped by --col AND by the drawer gutters, so header,
   lead and drawer content resolve to one spine at every width. */
.top__in{max-width:calc(var(--sf-w) - 2px);margin:0 auto;
  padding:9px var(--sf-pad);min-height:54px;display:flex;align-items:center;gap:16px}
.brand{display:inline-flex;align-items:center;gap:12px;font-weight:600;font-size:14px;line-height:1;
  letter-spacing:-.015em;min-width:0;overflow:visible;
  color:inherit;text-decoration:none;
  /* Mark hangs left so the name sits on the page content spine — but only
     where the gutter can hold it; below that the mark takes the spine. */
  margin-left:calc(-23px - 12px)}
.brand:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.brand__mark{width:23px;height:24px;flex:none;display:block;overflow:visible;color:var(--ink);
  /* optical: face mass sits slightly low vs Latin caps */
  transform:translateY(-0.5px)}
.brand__dot{fill:var(--accent)}
.brand__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.brand__name{display:block;line-height:1;font-weight:600;font-size:14px;letter-spacing:-.014em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Context, not a second title: regular weight, muted, close under the name. */
.brand__sub{display:block;font:400 11.5px/1.15 var(--sans);letter-spacing:-.008em;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand__sep{color:color-mix(in srgb,var(--accent) 52%,transparent);font-weight:500;margin:0 .28em}
.top__sp{flex:1;min-width:8px}
/* Nav and controls travel together: inline in the bar on desktop, a floating
   island at the bottom on phones. Same elements, so no duplicate ids. */
/* Spacing carries the grouping: navigation reads as one pair, the language
   and theme utilities as another, set well apart from it. */
.isle{display:flex;align-items:center;gap:0;flex:none}
.top__nav{display:flex;align-items:center;gap:26px;flex:none;margin-right:36px}
.isle .ctl + .ctl{margin-left:18px}
/* Sans like the rest of the chrome, and quiet enough to leave attention on
   the hero: the current page is a weight and a tone, never bold black. */
.top__nav a{font:500 12.5px/1 var(--sans);letter-spacing:-.005em;color:var(--muted);
  text-decoration:none;
  transition:color var(--motion-base) var(--ease-ui)}
.top__nav a:hover{color:var(--ink)}
.top__nav a[aria-current="page"]{font-weight:600;color:color-mix(in srgb,var(--ink) 78%,transparent)}
.top__nav a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Utilities, desktop default: language as plain inline text — a quiet
   echo of the breadcrumb's own root/sep/view grammar, not a second
   breadcrumb — and the theme control as a bare button. No pill, no
   border, no active background on either at rest. The old segmented
   pill returns only inside the mobile floating island, where a plain
   text pair loses too much tap affordance; see the mobile block for that
   override, scoped so nothing here touches it. */
.ctl{display:inline-flex;align-items:baseline;flex:none}
.ctl[role="group"] button{appearance:none;border:0;background:transparent;color:var(--muted);
  font:500 11.5px/1 var(--mono);letter-spacing:.02em;padding:0;cursor:pointer;
  transition:color var(--motion-base) var(--ease-ui)}
.ctl[role="group"] button[aria-pressed="true"],.ctl[role="group"] button.on{color:var(--ink)}
.ctl[role="group"] button:hover{color:var(--ink)}
.top__lang-sep{font:500 11px/1 var(--sans);margin:0 5px;
  color:color-mix(in srgb,var(--muted) 55%,transparent)}
/* Theme: a real 36px hit area with a much smaller visible chip inside it
   — the same asymmetric-target device the surface kebab already uses, so
   the two bare-button triggers on the page read as one family. */
#themebtn{appearance:none;border:0;background:transparent;color:var(--muted);
  width:36px;height:36px;padding:0;position:relative;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:color var(--motion-fast) var(--ease-ui)}
#themebtn::before{content:"";position:absolute;inset:5px;border-radius:6px;background:transparent;
  transition:background-color var(--motion-fast) var(--ease-ui)}
#themebtn:hover::before{background:var(--hover-veil)}
#themebtn:hover{color:var(--ink)}
.ctl button svg,.ico{display:block;width:14px;height:14px;flex:none;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ico-sheet{position:absolute;width:0;height:0;overflow:hidden}
#themebtn .ico{position:absolute;left:50%;top:50%;margin:-7px 0 0 -7px;
  transition:opacity var(--motion-fast) var(--ease-ui)}
#themebtn .i-sun{opacity:1}
#themebtn .i-moon{opacity:0}
html[data-theme="dark"] #themebtn .i-sun{opacity:0}
html[data-theme="dark"] #themebtn .i-moon{opacity:1}

.page,footer .site__in{transition:opacity var(--motion-fast) var(--ease-ui)}
html.is-langing .page,html.is-langing footer,
html.is-theming .page,html.is-theming footer,html.is-theming .top{opacity:.38}

.page{position:relative;z-index:1}
/* Atmospheric column — header and hero sit here, on the canvas. */
/* --sf-w less its two side borders: the panel's content box, which the
   header and the hero share so the spine holds at every width. */
.page__lead{max-width:calc(var(--sf-w) - 2px);margin:0 auto;padding:0 var(--sf-pad)}
/* ── Content surface · a panel around the column, rounded only where it
   meets the atmosphere. It runs to the end of the page, so the bottom
   corners are never exposed. On wide screens --sf-max holds it to a panel
   rather than letting it stretch toward both edges. ── */
.surface{position:relative;
  width:var(--sf-w);
  margin-left:calc(50% - var(--sf-w) / 2);
  background:var(--sf-bg);
  border:1px solid var(--sf-line);border-bottom:0;
  border-radius:var(--sf-r) var(--sf-r) 0 0;
  /* Rules inside the panel span the panel, not the viewport. */
  --bleed-w:calc(var(--sf-w) - 2px)}
/* ── Surface topbar · real application chrome, not a section heading. Its
   own compact UI grid — 14px padding, not --sf-pad — deliberately does not
   line up with the body column beneath it: this is a different interface
   layer (view furniture) sitting above spacious content (the evidence
   itself), and forcing them onto one grid would blur that distinction. */
.sf-head{position:relative;background:var(--sf-head);border-bottom:1px solid var(--sf-line);
  border-radius:calc(var(--sf-r) - 1px) calc(var(--sf-r) - 1px) 0 0}
.sf-head__in{padding:0 14px;min-height:38px;
  display:flex;align-items:center;justify-content:space-between;gap:12px}
/* Context (what this view belongs to) + current view, the way a browser
   tab or a document title bar pairs an object with its open view. */
/* A true breadcrumb — root, then the current view — not two loose labels
   sharing a gap. The slash is the quietest thing in the row: quieter than
   the view name, which is itself already quieter than the root. */
.sf-head__ctx{display:flex;align-items:baseline;gap:6px;min-width:0}
.sf-head__t{font:600 12.5px/1 var(--sans);letter-spacing:-.004em;
  color:color-mix(in srgb,var(--ink) 62%,var(--muted))}
.sf-head__sep{font:500 12px/1 var(--sans);color:color-mix(in srgb,var(--muted) 45%,transparent)}
.sf-head__view{font:500 11.5px/1 var(--sans);letter-spacing:-.002em;color:var(--muted)}
.sf-head__right{flex:none;display:flex;align-items:center;gap:10px}
.sf-head__stat{flex:none;white-space:nowrap;
  font:500 11px/1 var(--mono);letter-spacing:.03em;color:var(--muted);
  font-variant-numeric:tabular-nums}
/* A real 36px hit target with a much smaller visual chip inside it (::before,
   inset 4px → ~28px), so the trigger reads as almost nothing until it's
   touched — the accessible target and the visible button are deliberately
   different sizes. The icon itself sits directly on the button, unaffected
   by the chip's own hover/active state living on the pseudo-element. */
.sf-kebab{appearance:none;border:0;background:transparent;color:var(--muted);
  width:36px;height:36px;padding:0;position:relative;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:color var(--motion-fast) var(--ease-ui)}
.sf-kebab::before{content:"";position:absolute;inset:4px;border-radius:6px;
  background:transparent;
  transition:background-color var(--motion-fast) var(--ease-ui)}
.sf-kebab:hover::before{background:var(--hover-veil)}
.sf-kebab:hover{color:var(--ink)}
.sf-kebab[aria-expanded="true"]::before{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.sf-kebab[aria-expanded="true"]{color:var(--ink)}
.sf-kebab .ico{position:relative;width:13px;height:3px;fill:currentColor;stroke:none}
.sf-kebab:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

/* ── The menu itself: sharper and denser than the drawer it sits on, the
   way a real popover reads sharper than the page behind it. Anchored to
   the trigger's own right edge (--sf-head__in's 14px padding, so the
   kebab's outer box and the menu's outer edge coincide exactly) with a
   6px gap and a top-right transform origin — the animation has to open
   from the corner it's anchored to, or the motion reads as arbitrary. ── */
/* +4px, not +6: the header's own bottom inset around the 36px button
   already contributes ~3px, so the real trigger→menu gap this produces is
   the intended ~6-7px, not 6px plus that inset on top. */
.sf-menu{position:absolute;top:calc(100% + 4px);right:14px;z-index:6;
  width:220px;padding:5px;display:flex;flex-direction:column;gap:1px;
  background:var(--raised);border:1px solid var(--sf-line);border-radius:8px;
  box-shadow:var(--menu-lift);transform-origin:top right;
  animation:sf-menu-in 130ms cubic-bezier(.16,1,.3,1)}
.sf-menu[hidden]{display:none}
.sf-menu.is-closing{animation:sf-menu-out 90ms cubic-bezier(.4,0,1,1) forwards}
@keyframes sf-menu-in{
  from{opacity:0;transform:translateY(-2px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sf-menu-out{
  from{opacity:1;transform:translateY(0) scale(1)}
  to{opacity:0;transform:translateY(-1px) scale(.99)}}
.sf-menu__item{appearance:none;border:0;width:100%;text-align:left;cursor:pointer;
  display:flex;align-items:center;min-height:31px;padding:0 9px;border-radius:5px;
  font:500 12.5px/1.3 var(--sans);letter-spacing:-.002em;color:var(--ink);
  background:transparent;text-decoration:none;
  transition:background-color var(--motion-fast) var(--ease-ui)}
.sf-menu__item:hover,.sf-menu__item:focus-visible{background:var(--hover-veil)}
.sf-menu__item:active{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.sf-menu__item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* System info: present, not promoted — a tone quieter than the actions
   above it, no colour, no icon standing in for importance. */
.sf-menu__item--quiet{color:var(--muted)}
.sf-menu__sep{height:1px;margin:4px 6px;background:var(--line)}

/* ── System info · the one small dialog the kebab opens. A real scrim, a
   real dismiss path (Escape, backdrop, close button) — tiny, not a modal
   framework. ── */
.sf-dialog{position:fixed;inset:0;z-index:60;display:flex;
  align-items:center;justify-content:center;padding:24px;
  background:var(--overlay)}
.sf-dialog[hidden]{display:none}
.sf-dialog__box{width:min(340px,100%);padding:20px 22px 22px;
  background:var(--raised);border:1px solid var(--sf-line);border-radius:14px;
  box-shadow:var(--sheet-lift);
  animation:sf-menu-in var(--motion-base) var(--ease-ui)}
.sf-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.sf-dialog__title{margin:0;font-size:15px;font-weight:600;letter-spacing:-.012em;color:var(--ink)}
.sf-dialog__close{appearance:none;border:0;background:transparent;color:var(--muted);
  width:28px;height:28px;border-radius:7px;cursor:pointer;flex:none;margin:-4px -4px 0 0;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background-color var(--motion-fast) var(--ease-ui),color var(--motion-fast) var(--ease-ui)}
.sf-dialog__close .ico{width:14px;height:14px}
.sf-dialog__close:hover{background:var(--hover-veil);color:var(--ink)}
.sf-dialog__close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sf-dialog__body{margin:0;font-size:13.5px;line-height:1.55;letter-spacing:-.006em;color:var(--muted)}
.surface__in{max-width:calc(var(--sf-w) - 2px);margin:0 auto;padding:0 var(--sf-pad)}
/* The footer carries the same surface so the panel has no visible end. */
.sf-tail{width:var(--sf-w);
  margin-left:calc(50% - var(--sf-w) / 2);
  background:var(--sf-bg);
  border-left:1px solid var(--sf-line);border-right:1px solid var(--sf-line)}

/* Full-bleed rules escape the column with the 100vw trick, which is safe
   because html sets overflow-x:clip. */
.sec{position:relative}
.bleed{position:absolute;left:50%;width:var(--bleed-w,100vw);height:0;transform:translateX(-50%);
  border-top:1px solid var(--line);pointer-events:none}
.bleed--top{top:0}
.bleed--bottom{bottom:0}
.sec--stand{padding:clamp(40px,7vh,60px) 0 clamp(48px,8vh,72px)}
/* Symmetric air around the rule that divides the list from the contact. */
.sec--scope{padding:clamp(34px,4vh,42px) 0 64px}
.sec--contact{padding:52px 0 48px}

/* One kicker on the page, on the one list that needs a label. The hero
   opens with the mark instead. */
.sec__h{display:flex;flex-direction:column;gap:9px;margin:0 0 28px}
.sec__k{font:500 10.5px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* ── Atmosphere · two soft cool light sources and a fine grain behind the
   header and hero. Masked away well before Experience, which returns to a
   flat rational surface. Radial gradients only — no blur filters, so this
   costs nothing to composite. ── */
.atmo{position:absolute;top:0;left:0;right:0;z-index:0;pointer-events:none;
  height:clamp(540px,88vh,920px);overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 38%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 38%,transparent 100%)}
.atmo__glow{position:absolute;display:block;will-change:transform}
.atmo__glow--a{left:-18%;top:-36%;width:78%;height:124%;
  background:radial-gradient(closest-side,var(--atmo-a),transparent 72%);
  animation:atmo-a 54s ease-in-out infinite}
.atmo__glow--b{right:-24%;top:-14%;width:66%;height:104%;
  background:radial-gradient(closest-side,var(--atmo-b),transparent 74%);
  animation:atmo-b 71s ease-in-out infinite}
/* The tile is translated by exactly its own size, so the loop is seamless
   and no repeating motif can surface. */
.atmo__grain{position:absolute;inset:-170px;opacity:var(--atmo-grain);
  background-repeat:repeat;background-size:150px 150px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change:transform;animation:atmo-grain 30s linear infinite}
@keyframes atmo-a{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(3%,-2.5%,0)}}
@keyframes atmo-b{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-2.5%,2%,0)}}
@keyframes atmo-grain{from{transform:translate3d(0,0,0)}to{transform:translate3d(-150px,-150px,0)}}

/* ── Hero · headline on the left, positioning on the right. The atmosphere
   behind it lives in .atmo; this block stays pure type. ── */
/* Twelve columns with one gutter. The headline takes seven, the rail the
   last three, and the measure is the track — not a max-width guessed next
   to it. Baseline alignment ties the rail's first line to the headline's,
   so the two blocks read as one composition at any headline size. */
.stand{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:24px;align-items:start}
/* span 8: Geist runs wider than Inter; 7 columns wrapped the statement onto four lines. */
.stand__main{grid-column:1 / span 8;min-width:0}
.stand__stmt{margin:0 0 24px;
  font-size:37px;line-height:1.11;
  letter-spacing:-.035em;font-weight:600;text-wrap:balance}
/* The closing full stop picks up the mark's accent dot. */
.stand__stmt .dot{color:var(--accent)}
.stand__prin{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px;margin:0;padding:0;
  list-style:none;font:500 10.5px/1.6 var(--mono);letter-spacing:.07em;
  text-transform:uppercase;color:var(--muted)}
.stand__prin li:not(:last-child)::after{content:" ·"}
/* Right rail: one block in three ranks — positioning, then the vocabulary
   that backs it a tone quieter, then the only dark element, the CTA. */
/* Only the CTA lives here now. It isn't centered in the hero and it
   doesn't sit on the headline's own baseline (.stand uses align-items:start
   for exactly this) — padding-top drops it into the principles line's own
   vertical zone instead, so it reads as anchored to that line, not as a
   stray link floating in the empty right column. Tuned against the
   headline at 37px/3 lines; re-check this if the headline's size changes. */
.stand__side{grid-column:9 / -1;min-width:0;display:flex;flex-direction:column;
  align-items:flex-start;padding-top:148px}
.stand__cta{display:inline-flex;align-items:center;gap:7px;
  font:600 14px/1 var(--sans);letter-spacing:-.012em;color:var(--ink);text-decoration:none;
  transition:opacity var(--motion-fast) var(--ease-ui)}
.stand__cta span{border-bottom:1px solid var(--ink);padding-bottom:3px}
.stand__cta:hover{opacity:.7}
.stand__cta .ico{width:13px;height:13px;transition:transform var(--motion-fast) var(--ease-ui)}
.stand__cta:hover .ico{transform:translateX(2px)}
.stand__cta:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}

/* ── /work/ · the home page's grammar, with the depth a detail page owes:
   same spine, same head row, same label/value rows. ── */
.sec--whead{position:relative;padding:clamp(40px,7vh,56px) 0 clamp(40px,6vh,60px)}
.whead__t{margin:0 0 14px;font-size:36px;line-height:1.13;
  letter-spacing:-.034em;font-weight:600}
.whead__b{margin:0;max-width:60ch;font-size:15.5px;line-height:1.55;letter-spacing:-.008em;
  color:var(--muted);text-wrap:pretty}
/* No top padding: the flagship row's tint should meet the chrome's own
   divider directly, not sit behind a stripe of the panel's white. */
.sec--wlist{padding:0 0 64px}

/* Every row is ruled top and the list is closed at the bottom, so the
   registry reads as a continuous table. The rules run the panel's full width
   like the chrome's — no gutters — so they all read as one set of edges.
   Home threads a rail through its stations instead; neither page borrows the
   other's device. */
.rec{position:relative;display:flex;align-items:flex-start;gap:32px;
  padding:36px 0 36px var(--lead-col);scroll-margin-top:84px}
.rec::before{content:"";position:absolute;left:50%;top:0;
  width:var(--bleed-w,100%);height:1px;transform:translateX(-50%);pointer-events:none;
  background:color-mix(in srgb,var(--line) 78%,transparent)}
/* The chrome's rule already opens the list — a second one right under it
   would read as a doubled edge. */
.rec:first-of-type::before{display:none}
/* The list doesn't close itself at the bottom — the footer's own top
   border does that a few pixels later, and a second rule right above it
   only doubled the edge. */
.rec__body{flex:1;min-width:0}
/* Absolute offsets are measured from the border box, so the index has to
   clear the entry's own top padding to sit on the title's baseline. */
.rec__i{position:absolute;left:0;top:40px;font:500 10.5px/1.6 var(--mono);letter-spacing:.07em;
  color:var(--accent);font-variant-numeric:tabular-nums}
/* Status/period sits under the title, not beside it — a title should not
   have to share its line with data. */
.rec__head{display:flex;flex-direction:column;gap:5px;margin:0 0 9px}
.rec__head h2,.rec__head h3{margin:0;font-size:20px;line-height:1.24;letter-spacing:-.03em;font-weight:600}
.rec--flag .rec__head h2,.rec--flag .rec__head h3{font-size:24px;letter-spacing:-.032em}
/* The flagship row leans on the same atmosphere system as the body canvas
   instead of sitting on a flat swatch: a soft accent glow behind the
   glyph, mixed from the same --accent-soft the rest of the page already
   uses, and a hairline of the identical grain tile the hero runs — at a
   fraction of its presence, so it reads as kin to the canvas rather than
   a repeat of it. z-index:0 gives the row its own stacking context so
   both pseudo-elements stay scoped to it; without one, .rec has no
   z-index of its own and they'd escape to .page's context, painting
   behind .surface's white fill instead of behind the row's content. */
.rec--flag{z-index:0}
.rec--flag::before,.rec--flag::after{content:"";position:absolute;z-index:-1;left:50%;
  top:0;bottom:0;width:var(--bleed-w,100%);transform:translateX(-50%)}
.rec--flag::before{
  background:radial-gradient(640px 460px at 86% -14%,var(--accent-soft),transparent 66%),
             var(--band)}
/* Painted after (so above) the tint — the identical noise tile from .atmo,
   at roughly 60% of its presence there: felt, not seen. */
.rec--flag::after{opacity:calc(var(--atmo-grain) * .6);
  background-repeat:repeat;background-size:150px 150px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E")}
.rec__std{display:flex;flex-wrap:wrap;align-items:baseline;gap:9px;margin:0;
  font-variant-numeric:tabular-nums}
.rec__av{font:500 10.5px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.rec--flag .rec__av{color:var(--accent)}
.rec__when{font:500 10.5px/1.4 var(--mono);letter-spacing:.04em;color:var(--muted)}
.rec__when::before{content:"· "}
/* Mono closes the entry, the same way it closes every zone on the site —
   so the sentence sits with the title instead of trailing the data line. */
.rec__co{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;margin:12px 0 0;
  font:500 10.5px/1.6 var(--mono);letter-spacing:.05em;color:var(--muted)}
.rec__dot{color:var(--dash-line)}
.rec__thesis{margin:9px 0 0;max-width:54ch;font-size:16px;line-height:1.45;
  letter-spacing:-.016em;font-weight:500;color:var(--ink);text-wrap:pretty}
.rec__go{display:inline-flex;align-items:center;gap:8px;margin-top:16px;
  font:600 14px/1 var(--sans);letter-spacing:-.01em;
  color:var(--ink);text-decoration:none;transition:opacity var(--motion-fast) var(--ease-ui)}
.rec__go span{border-bottom:1px solid var(--ink);padding-bottom:3px}
.rec__go:hover{opacity:.7}
.rec__go .ico{width:14px;height:14px;transition:transform var(--motion-fast) var(--ease-ui)}
.rec__go:hover .ico{transform:translateX(2px)}
.rec__go:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}

/* ── Work · case glyphs. One grammar for all of them so the column reads as
   a system: gf boundary, gm module, gc connector, gn node, ga accent stroke,
   gd accent node, gs accent field. Every glyph uses the same 56x40 box. ── */
.rec__art{--g-line:color-mix(in srgb,var(--muted) 48%,transparent);
  --g-soft:color-mix(in srgb,var(--muted) 27%,transparent);
  flex:none;width:112px;margin-top:4px}
.glyph{display:block;width:100%;height:auto;overflow:visible}
.glyph .gf,.glyph .gm,.glyph .gc,.glyph .ga{fill:none;stroke-width:1;
  stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.glyph .gm,.glyph .gc{stroke:var(--g-line)}
.glyph .gf{stroke:var(--g-soft)}
.glyph .gn{fill:var(--g-line)}
.glyph .ga{stroke:var(--accent)}
.glyph .gd{fill:var(--accent)}
.glyph .gs{fill:var(--accent-soft)}
/* One element per glyph picks up the accent while its row is hovered. */
.glyph .gx,.glyph .gx-f{transition:stroke var(--motion-base) var(--ease-ui),
  fill var(--motion-base) var(--ease-ui)}
.rec:hover .glyph .gx,.rec:focus-within .glyph .gx{stroke:var(--accent)}
.rec:hover .glyph .gx-f,.rec:focus-within .glyph .gx-f{fill:var(--accent)}


/* ── Experience · one entry per station, no rail. Company anchors the left,
   the standing sits right, and every supporting fact uses the same row. ── */
/* ── Home · Experience · a career trajectory on one internal grid:
   [rail] [gap] [content] [gap] [role/date]. Every element is placed by a
   track, none by an ad-hoc margin, so the text edge, the node and the meta
   column hold their positions at every width. Work's registry shares none
   of this grid — only the tokens underneath it. ── */
.scope{display:grid;
  --sc-rail:16px;
  --sc-gap:calc(var(--lead-col) - var(--sc-rail));
  --sc-mgap:56px;
  --sc-meta:190px}
.scope__e{position:relative;display:grid;align-items:baseline;
  grid-template-columns:var(--sc-rail) var(--sc-gap) minmax(0,1fr) var(--sc-mgap) var(--sc-meta);
  padding:30px 0}
.scope__b{grid-column:3;min-width:0}
/* Flush to the column's right edge, which is the surface's right padding —
   so the meta stops the same distance from the panel as the rail starts. */
.scope__meta{grid-column:5;min-width:0;display:flex;flex-direction:column;
  align-items:flex-end;text-align:right;gap:5px}
.scope__e:first-child{padding-top:0}
.scope__e:last-child{padding-bottom:0}
/* The rail sits inside the grid's first track — attached to the content,
   not a column of its own. Both ends stop at their own node. */
.scope__e::after{content:"";position:absolute;left:calc(var(--sc-rail) / 2 - .5px);
  top:0;bottom:0;width:1px;background:var(--line)}
.scope__e:first-child::after{top:13px}
.scope__e:last-child::after{bottom:calc(100% - 41px)}
/* The node hangs off the company line back onto the rail, so it holds the
   company's optical centre whatever the entry's padding is. */
.scope__b h3{position:relative;margin:0 0 9px;
  font-size:18.5px;line-height:1.22;letter-spacing:-.022em;font-weight:600}
.scope__b h3::before{content:"";position:absolute;
  left:calc(var(--sc-rail) / 2 - var(--lead-col) - 3.5px);
  top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;
  background:var(--accent);z-index:1}
.scope__pri{margin:0;font-size:15.5px;line-height:1.45;letter-spacing:-.013em;
  font-weight:500;color:var(--ink);text-wrap:pretty}
.scope__adj{margin:6px 0 0;font-size:14.5px;line-height:1.5;letter-spacing:-.006em;
  font-weight:400;color:var(--muted);text-wrap:pretty}
/* Role then date, the row's last rank — quiet enough not to compete with the
   company. Accent is reserved for the levels that actually carry seniority. */
.scope__tier{margin:0;font:500 11px/1.4 var(--mono);letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted)}
.scope__e--lead .scope__tier{color:var(--accent)}
.scope__e--senior .scope__tier{color:var(--ink)}
.scope__when{margin:0;font:500 11px/1.4 var(--mono);letter-spacing:.04em;
  color:color-mix(in srgb,var(--muted) 74%,transparent);font-variant-numeric:tabular-nums}
/* The early station is quieter — the trajectory tapers rather than stopping. */
.scope__e--early .scope__b h3{font-size:16.5px}
.scope__e--early .scope__pri{font-size:14.5px}
.scope__e--early .scope__adj{font-size:14px}

/* ── Contact · the page's third zone, same shape as the other two:
   sans at heading weight, closed by a quiet mono line. ── */
/* Editorial navigation, not CTAs: the rule sits close under the text and
   only its colour moves on hover. */
.contact__links{display:flex;flex-wrap:wrap;gap:14px 48px;margin:0}
.contact__links a{font-size:22px;line-height:1.25;letter-spacing:-.024em;font-weight:600;
  color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:3px;
  transition:border-color var(--motion-fast) var(--ease-ui)}
.contact__links a:hover{border-color:var(--ink)}
.contact__links a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}
/* Availability belongs to the links above it, not to the space below. */
.contact__where{margin:28px 0 0;font:500 12.5px/1.5 var(--mono);letter-spacing:.06em;color:var(--muted)}

/* ── The closing rail · chrome, the same way the panel's own header is
   chrome: the tint bookends the white content between two identical
   bands instead of the footer reading as one more line of body copy.
   Compact — the interface ends, it does not make a footer moment. ── */
footer.site{border-top:1px solid var(--line);margin-top:0;background:var(--sf-head)}
.site__in{max-width:calc(var(--sf-w) - 2px);margin:0 auto;
  padding:14px var(--sf-pad) calc(14px + env(safe-area-inset-bottom,0px));
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;align-items:center}
/* The name stays legible sans — it's a name, not data — a size down from
   body copy. Role and focus drop into the site's own meta register, the
   same device Experience uses for level/date, so the line reads as
   infrastructure closing the page rather than a fourth paragraph. */
.site__id{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .4em;min-width:0}
.site__id strong{display:inline;font:600 12.5px/1.3 var(--sans);letter-spacing:-.008em;
  color:color-mix(in srgb,var(--ink) 82%,var(--muted))}
.site__desc{font:500 10.5px/1.4 var(--mono);letter-spacing:.04em;color:var(--muted)}
.site__sep{color:color-mix(in srgb,var(--accent) 72%,transparent);font-weight:500;font-size:11px}
.site__links{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;min-width:0}
/* Legal links travel together, so a narrow screen breaks the row before them, not between them. */
.site__legal{display:inline-flex;align-items:center;gap:18px}
.site__links a{display:inline-flex;align-items:center;gap:6px;
  font:500 10.5px/1 var(--mono);letter-spacing:.04em;color:var(--muted);
  text-decoration:none;transition:color var(--motion-fast) var(--ease-ui)}
.site__links a .ico{width:12px;height:12px;flex:none}
.site__links a:hover{color:var(--ink)}
.site__links a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}

.ctl button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;z-index:2}

@media(max-width:1024px){
  :root{--sf-gut:16px}
}
/* Below the hug the panel is viewport-bound, so its padding steps down with
   it and the left/right breathing room stays even. */
@media(max-width:860px){
  :root{--sf-pad:32px}
  .stand__stmt,.whead__t{font-size:33px}
  .stand{column-gap:20px}
  .top__nav{gap:22px;margin-right:26px}
  .isle .ctl + .ctl{margin-left:14px}
}
@media(max-width:900px){
  .sec--scope{padding:38px 0 52px}
  .sec--contact{padding:48px 0 44px}
  .contact__links{gap:14px 40px}
}
@media(max-width:800px){
  /* No gutter left to hang into — the mark itself takes the spine. */
  .brand{margin-left:0}
}
@media(max-width:720px){
  /* Narrower gutter, smaller radius — still a strip of canvas on both sides. */
  :root{--sf-gut:10px;--sf-r:10px}
  :root{--sf-pad:20px;--lead-col:30px}
  .sf-head__in{min-height:40px}
  .top__in{padding:10px 16px;gap:10px;min-height:0}
  /* The bar keeps only the brand; everything else drops into a floating
     island so the header stops fighting for width at phone sizes. */
  .isle{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));
    transform:translateX(-50%);z-index:50;gap:6px;padding:6px;
    border:1px solid var(--line);border-radius:15px;
    background:var(--glass-fill);box-shadow:var(--island-lift);
    -webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter)}
  .isle .top__nav{gap:2px}
  .isle .top__nav a{padding:8px 12px;font-size:12px}
  /* The plain-text language pair reads fine at desktop reading distance,
     but loses too much tap affordance floating in a touch island — the
     segmented pill comes back here, scoped to this breakpoint only. */
  .ctl[role="group"]{display:inline-flex;align-items:stretch;height:28px;
    box-sizing:border-box;border:1px solid color-mix(in srgb,var(--line) 62%,transparent);
    border-radius:7px;overflow:hidden;background:transparent;position:relative;
    transition:border-color var(--motion-base) var(--ease-ui)}
  .ctl[role="group"]:hover,.ctl[role="group"]:focus-within{border-color:var(--line)}
  .ctl[role="group"] button{flex:1;height:100%;padding:0 9px;
    font:500 10.5px/1 var(--mono);letter-spacing:.04em;position:relative;z-index:1}
  .ctl[role="group"]::before{content:"";position:absolute;z-index:0;pointer-events:none;
    top:2px;bottom:2px;left:2px;width:calc(50% - 2px);border-radius:5px;
    background:color-mix(in srgb,var(--raised) 52%,transparent);
    border:1px solid color-mix(in srgb,var(--line) 64%,transparent);box-sizing:border-box;
    transform:translate3d(0,0,0);transition:transform var(--motion-base) var(--ease-ui)}
  html[lang="en"] .ctl[role="group"]::before{transform:translate3d(100%,0,0)}
  /* No slash floating loose inside a sliding pill. */
  .top__lang-sep{display:none}
  /* Clear the island so it never sits on the last line of content. */
  footer.site{padding-bottom:76px}
  .brand__sub{font-size:10.5px}
  .sec--stand{padding-top:40px}
  .sec--scope{padding:30px 0 44px}
  /* One column: the links stack, availability closes them, and the rail
     folds into two lines rather than compressing the desktop row. */
  .sec--contact{padding:40px 0 36px}
  .contact__links{flex-direction:column;gap:18px}
  .contact__links a{align-self:flex-start;font-size:20px}
  .contact__where{margin-top:24px;font-size:12px}
  .site__in{flex-direction:column;align-items:flex-start;gap:9px;padding-top:18px}
  .site__id{display:block}
  .site__id strong{display:block;margin-bottom:3px}
  .site__id .site__sep:first-of-type{display:none}
  .sec__h{margin-bottom:24px;gap:8px}
  /* Single column: headline, principles, then the CTA — stacked, so the
     148px desktop push (which lands the CTA beside the principles line
     in a side column) would just be dead space here instead. */
  .stand{grid-template-columns:minmax(0,1fr);gap:26px 0;align-items:start}
  .stand__main,.stand__side{grid-column:1}
  .stand__stmt{font-size:30px;margin-bottom:18px}
  .whead__t{font-size:30px}
  .stand__side{padding-top:0}
  /* The island is a touch surface: utilities get a real target there. */
  .isle{gap:6px}
  .top__nav{gap:2px;margin-right:0}
  .isle .ctl + .ctl{margin-left:0}
  .ctl{height:36px}
  #themebtn{width:40px}
  /* Cheaper on phones: one light source, no moving grain. */
  .atmo{height:clamp(380px,56vh,520px)}
  .atmo__glow--b{display:none}
  .atmo__grain{animation:none;opacity:calc(var(--atmo-grain) * .7)}
  /* No room for a meta column: role and date fold under the content as one
     line, keeping the scan order. The rail and its node stay. */
  .scope{--sc-rail:12px}
  .scope__e{grid-template-columns:var(--sc-rail) var(--sc-gap) minmax(0,1fr);
    padding-top:26px;padding-bottom:26px}
  .scope__meta{grid-column:3;flex-direction:row;flex-wrap:wrap;align-items:baseline;
    justify-content:flex-start;text-align:left;gap:3px 12px;margin-top:11px}
  .scope__b h3{font-size:16.5px;margin-bottom:8px}
  .scope__pri{font-size:15px}
  .scope__adj{font-size:14px}
  .sec--whead{padding:40px 0 26px}
  .sec--wlist{padding-top:0}
  /* The glyph joins the content column rather than vanishing; it stays
     small enough that the title keeps the row. */
  .rec{flex-direction:column;gap:0;padding:30px 0 30px var(--lead-col)}
  .rec__art{width:92px;margin:18px 0 0}
  .rec__i{top:34px}
  .rec__head h2,.rec__head h3{font-size:18px}
  .rec--flag .rec__head h2,.rec--flag .rec__head h3{font-size:21px}
}
@media(max-width:520px){
  .ctl:has([data-lang]) button{padding:0 10px}
}

@media(prefers-reduced-motion:reduce){
  /* Atmosphere stays, movement goes. */
  .atmo__glow,.atmo__grain{animation:none}
  .ctl:has([data-lang])::before,.ctl button,.page,footer,.top,#themebtn .ico,
  .contact__links a,.glyph .gx,.glyph .gx-f,
  .sf-kebab,.sf-kebab::before,.sf-menu__item,.sf-dialog__close{transition:none}
  /* No transform, no keyframe: the menu simply appears. JS already skips
     the timed close under reduced motion, so nothing here needs to animate
     the exit either. */
  .sf-menu,.sf-dialog__box{animation:none}
  html.is-langing .page,html.is-langing footer,
  html.is-theming .page,html.is-theming footer,html.is-theming .top{opacity:1}
}
@media print{
  .top,.skip{display:none}
  body{background:#fff;color:#000}
}
