/* ==========================================================================
   Souhail Razik — v4 site
   Every rule here renders a complete, readable page on its own. The scroll
   choreography in main.js only ever animates from these resting states, and
   motion.css holds the few things that must start hidden.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  background: var(--stage);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, canvas, svg { display: block; max-width: 100%; }

/* Entrances start things off to the side (the industries assemble from
   up to 260px away). Clip each section sideways so a phone never widens
   its layout to fit them. clip, not hidden: it is not a scroll container,
   so the sticky portrait in About still sticks. */
main section { overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; color: var(--ink); }
::selection { background: var(--bronze); color: var(--stage); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: var(--gutter); top: -4rem; z-index: 200;
  padding: .75rem 1rem;
  background: var(--bronze); color: var(--stage); font-weight: 500;
  transition: top var(--dur-1);
}
.skip:focus { top: 1rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ----- Shared type ------------------------------------------------------ */

.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: var(--lh-head);
  letter-spacing: -.02em;
  text-wrap: balance;
}

.note {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: var(--t-lede);
  line-height: 1.6;
}

.head { max-width: 56rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }

.link {
  color: var(--ink);
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color var(--dur-1), background-size var(--dur-2) var(--ease-out);
}
.link:hover { color: var(--glow); }

/* ----- Buttons ---------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.btn span { position: relative; display: inline-block; }
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn-solid { background: var(--bronze); color: var(--stage); }
.btn-solid::before { background: var(--glow); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost::before { background: var(--bronze); }
.btn:hover::before { transform: scaleY(1); }
.btn-ghost:hover { color: var(--stage); border-color: var(--bronze); }

/* ----- Header ----------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2);
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-solid {
  background: rgba(var(--stage-rgb), .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
}

.wordmark {
  position: relative; z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-dot {
  display: inline-block;
  width: .32em; height: .32em;
  margin-left: .12em;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 12px rgba(var(--bronze-rgb), .8);
  vertical-align: baseline;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }

.nav-link {
  position: relative;
  font-size: .9375rem;
  color: var(--ink-muted);
  transition: color var(--dur-1);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.3rem;
  height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(var(--bronze-rgb), .7);
  color: var(--bronze);
  font-size: .9375rem; font-weight: 500;
  transition: background-color var(--dur-2), color var(--dur-2);
}
.nav-cta:hover { background: var(--bronze); color: var(--stage); }

.nav-foot { display: none; }

.nav-toggle { display: none; position: relative; z-index: 2; width: 2.75rem; height: 2.75rem; }
.nav-toggle-bars { position: absolute; inset: 0; }
.nav-toggle-bars i {
  position: absolute; left: .6rem; right: .6rem; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-toggle-bars i:first-child { top: 1.05rem; }
.nav-toggle-bars i:last-child { top: 1.6rem; }
.nav-open .nav-toggle-bars i:first-child { transform: translateY(.275rem) rotate(45deg); }
.nav-open .nav-toggle-bars i:last-child { transform: translateY(-.275rem) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* The menu is a full-screen overlay. A fixed element is positioned
     against the nearest ancestor with a transform or a backdrop filter,
     and the header has both (GSAP's intro leaves a transform, the solid
     state adds a blur) — so while the menu is open the header gives them
     up, and the overlay measures against the screen again. */
  html.nav-open { overflow: hidden; }
  /* The menu carries its own WhatsApp link; the floating one steps aside. */
  html.nav-open .wa { visibility: hidden; opacity: 0; }
  html.nav-open .header {
    transform: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: transparent;
  }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: .15rem;
    padding: 6rem var(--gutter) 2rem;
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(ellipse 80% 50% at 100% 100%, rgba(var(--bronze-rgb), .16), transparent 70%),
      var(--stage);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path var(--dur-3) var(--ease-io), visibility 0s var(--dur-3);
  }
  .nav-open .nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path var(--dur-3) var(--ease-io), visibility 0s;
  }
  .nav-link {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    line-height: 1.22;
    color: var(--ink);
  }
  .nav-link::after { display: none; }
  .nav-link.is-current { color: var(--bronze); }
  .nav-cta { margin-top: 1.5rem; font-size: 1.0625rem; padding: .9rem 1.4rem; }
  .nav-foot {
    display: flex; flex-direction: column; gap: .35rem;
    margin-top: auto; padding-top: 2.5rem;
    font-size: var(--t-small); color: var(--ink-muted);
  }
  .nav-foot a { transition: color var(--dur-1); }
  .nav-foot a:hover { color: var(--bronze); }
  /* Items arrive one after another once the panel has opened. */
  .nav > * { opacity: 0; transform: translateY(.9rem); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
  .nav-open .nav > * { opacity: 1; transform: none; }
  .nav-open .nav > :nth-child(1) { transition-delay: .18s; }
  .nav-open .nav > :nth-child(2) { transition-delay: .23s; }
  .nav-open .nav > :nth-child(3) { transition-delay: .28s; }
  .nav-open .nav > :nth-child(4) { transition-delay: .33s; }
  .nav-open .nav > :nth-child(5) { transition-delay: .38s; }
  .nav-open .nav > :nth-child(6) { transition-delay: .43s; }
  .nav-open .nav > :nth-child(7) { transition-delay: .5s; }
}

/* ----- Chapter readout: which part of the page this is ------------------ */

/* Set vertically in the left margin, inside the gutter, so it never sits
   on top of the text it is labelling. */
.chapter {
  position: fixed; left: max(.5rem, calc(var(--gutter) / 2 - .5rem)); top: 50%; z-index: 50;
  display: flex; align-items: center; gap: .9rem;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--ink-subtle);
  pointer-events: none;
  white-space: nowrap;
}
.chapter-bar {
  position: relative;
  width: 1px; height: 4.5rem;
  background: rgba(var(--ink-rgb), .2);
  overflow: hidden;
}
.chapter-bar i {
  position: absolute; inset: 0;
  background: var(--bronze);
  transform: scaleY(0); transform-origin: 50% 100%;
}
@media (max-width: 1100px) { .chapter { display: none; } }

/* ----- Film grain ------------------------------------------------------- */

.grain {
  position: fixed; inset: -50%; z-index: 90;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Cursor (fine pointers only; ui.js adds html.has-cursor) ---------- */

.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor .cursor span {
  position: fixed; left: 0; top: 0; z-index: 120;
  pointer-events: none;
  border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--glow);
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(var(--bronze-rgb), .65);
  transition: width var(--dur-2) var(--ease-out), height var(--dur-2) var(--ease-out),
              margin var(--dur-2) var(--ease-out), background-color var(--dur-2), border-color var(--dur-2);
}
.cursor.is-hover .cursor-ring {
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  background: rgba(var(--bronze-rgb), .12);
  border-color: rgba(var(--bronze-rgb), .9);
}
.cursor.is-hidden span { opacity: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; }

.hero-stage {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
}

/* The stage fades out at its foot, so the glow never ends on a hard edge. */
.hero-stage::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: 22%;
  background: linear-gradient(180deg, rgba(var(--stage-rgb), 0), var(--stage));
  pointer-events: none;
}
.hero-name, .hero-role, .hero-where, .hero-headline, .hero-cue { z-index: 5; }

/* The orbit: one canvas behind the cutout, one in front of it. */
.orbit {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.orbit-back { z-index: 1; }
.orbit-front { z-index: 3; }

.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 40% 55% at 50% 72%, rgba(var(--bronze-rgb), .30), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(var(--bronze-rgb), .18), transparent 70%);
  opacity: .7;
}

/* Centred with margins, not a transform: GSAP owns this element's transform. */
.hero-media {
  --mh: 90svh;
  position: absolute;
  left: 50%; bottom: 0;
  height: var(--mh);
  width: calc(var(--mh) * .5625);
  margin-left: calc(var(--mh) * -.28125);
  z-index: 2;
  /* No mask and no filter here: combined, they rasterise the cutout's
     transparent area as a dark box in Chromium. The cutout is anchored to
     the foot of the stage, so its crop line sits at the fold, and the
     stage's own fade (::after) takes care of the rest. */
}
/* The bronze light behind the portrait — a separate layer, so the photo itself is
   shown exactly as taken. */
.hero-media::before {
  content: "";
  position: absolute; left: -12%; right: -12%; top: 4%; bottom: 30%;
  background: radial-gradient(ellipse 50% 50% at 50% 38%, rgba(var(--bronze-rgb), .34), rgba(var(--bronze-rgb), .08) 55%, transparent 72%);
  pointer-events: none;
}
.hero-cutout, .hero-seq {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  /* The photo cuts the shoulders at its own edges; fade those sides and
     the foot into the stage. A mask alone is fine — never add a filter to
     this element (see .hero-media). */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 74%, transparent 100%);
  mask-composite: intersect;
}
/* The dissolve takes over from the still only once scrolling starts. */
.hero-seq { opacity: 0; }

.hero-name {
  position: absolute;
  left: 0; right: 0; bottom: clamp(1.5rem, 6vh, 4rem);
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0 .22em;
  padding-inline: var(--gutter);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-name);
  line-height: .86;
  letter-spacing: -.035em;
  text-align: center;
  pointer-events: none;
}
.hero-name > span { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-name > span > span { display: block; }
.hero-name-last > span { color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), .9); }

.hero-role, .hero-where {
  position: absolute;
  top: 38%;
  max-width: 14rem;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--ink-muted);
}
.hero-role { left: var(--gutter); color: var(--ink); }
.hero-role::before {
  content: "";
  display: block;
  width: 2.5rem; height: 1px;
  margin-bottom: .9rem;
  background: var(--bronze);
}
.hero-where { right: var(--gutter); text-align: right; }

.hero-headline {
  position: absolute;
  left: var(--gutter); top: calc(38% + 5.5rem);
  max-width: min(18rem, 26vw);
  font-family: var(--font-serif);
  font-size: var(--t-h3);
  line-height: 1.2;
}

.hero-cue {
  position: absolute; right: var(--gutter); bottom: 1rem;
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
  font-size: var(--t-meta);
  color: var(--ink-subtle);
}
.hero-cue i {
  position: relative; display: block;
  width: 1px; height: 2.25rem;
  background: rgba(var(--ink-rgb), .2);
  overflow: hidden;
}
.hero-cue i::after {
  content: "";
  position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--bronze);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@keyframes cue-x { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.hero-cue { display: none; }

@media (max-width: 860px) {
  .hero-media { --mh: 74svh; }
  .hero-name { bottom: 4rem; }
  .hero-cue { flex-direction: row; align-items: center; bottom: 1.25rem; }
  .hero-cue i { width: 2.25rem; height: 1px; }
  .hero-cue i::after { width: 40%; height: 1px; animation-name: cue-x; }
  .hero-role, .hero-where { top: 5.25rem; max-width: 46%; font-size: var(--t-meta); }
  .hero-role::before { margin-bottom: .6rem; width: 1.75rem; }
  .hero-headline {
    top: auto; bottom: calc(clamp(1.5rem, 6vh, 4rem) + 2 * var(--t-name) * .9);
    left: var(--gutter); right: var(--gutter);
    max-width: none;
    text-align: center;
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Intro and measures
   ========================================================================== */

.intro { padding-block: var(--section-y) calc(var(--section-y) * .6); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.intro-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  line-height: 1.32;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.intro-now { color: var(--ink-muted); margin-bottom: 1.5rem; }

.measures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(4rem, 10vw, 8rem);
}
.measure {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule-strong);
}
.measure + .measure { padding-left: clamp(1rem, 3vw, 2.5rem); }
/* background-clip: text only paints inside the line box, so the line box
   must hold the whole glyph: a tight line-height clips the tops off. */
.measure-num {
  font-family: var(--font-serif);
  font-size: var(--t-num);
  line-height: 1.04;
  padding-top: .04em;
  margin-top: -.12em;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(var(--bronze-rgb), .9));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.measure-label { color: var(--ink-muted); font-size: var(--t-small); }

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .measures { grid-template-columns: 1fr; }
  .measure + .measure { padding-left: 0; }
  .measure { flex-direction: row; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; }
  .measure-num { font-size: clamp(4.5rem, 24vw, 7rem); }
}

/* ==========================================================================
   Manifesto
   ========================================================================== */

.manifesto { padding-block: clamp(6rem, 22vh, 14rem); }
.manifesto-text {
  max-width: 20em;
  font-family: var(--font-serif);
  font-size: var(--t-manifesto);
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

/* ==========================================================================
   Process — how the work gets delivered
   The steps sit on the left as a timeline; the live network (neural.js)
   draws its four columns inside .network-field on the right.
   ========================================================================== */

/* At rest (no motion) every step is open and nothing is pinned, so the
   stage grows with its content; motion.css fixes it to one screen. */
.network-stage {
  position: relative;
  min-height: max(100svh, 36rem);
  overflow: hidden;
  isolation: isolate;
}
/* The clip is atmosphere; the live network in front of it is the subject,
   so the clip is held well down. */
.network-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
}
.network-live {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.network-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--stage-rgb), .95) 0%, rgba(var(--stage-rgb), .84) 34%, rgba(var(--stage-rgb), .25) 58%, rgba(var(--stage-rgb), 0) 76%),
    linear-gradient(180deg, var(--stage) 0%, rgba(var(--stage-rgb), 0) 18%),
    linear-gradient(0deg, var(--stage) 0%, rgba(var(--stage-rgb), 0) 16%);
}
.network-inner {
  position: relative;
  min-height: max(100svh, 36rem);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: 6rem 3rem;
}
.network-field { align-self: stretch; min-height: 60vh; }

.process { max-width: 36rem; }
.network-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: var(--lh-tight);
  letter-spacing: -.03em;
}
.process-lede {
  margin-top: 1.1rem;
  max-width: 30rem;
  color: var(--ink-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* The steps are a real sequence, so they are numbered, and joined by a
   line that fills as each one is reached. */
.steps { margin-top: 2.25rem; }
.step {
  --fill: 1;
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-bottom: 1.35rem;
}
.step:last-child { padding-bottom: 0; }
.step::before, .step::after {
  content: "";
  position: absolute; left: calc(1.5rem - .5px); top: 3.4rem; bottom: .2rem;
  width: 1px;
}
.step::before { background: rgba(var(--ink-rgb), .14); }
.step::after {
  background: linear-gradient(180deg, var(--bronze), rgba(var(--bronze-rgb), .2));
  transform: scaleY(var(--fill)); transform-origin: 50% 0;
}
.step:last-child::before, .step:last-child::after { display: none; }

.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1.5px solid rgba(var(--bronze-rgb), .7);
  border-radius: 50%;
  background: rgba(var(--stage-rgb), .7);
  color: var(--bronze);
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-3) var(--ease-out);
}
.step-copy { transition: opacity var(--dur-2); }
.step-name {
  padding-top: .55rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
}
/* Collapsible body: rows animate between 0fr and 1fr, so the height
   follows the text without measuring it. */
.step-more {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.step-more > p { overflow: hidden; min-height: 0; }
.step-body {
  padding-top: .55rem;
  color: var(--ink-muted);
  font-size: var(--t-small);
  line-height: 1.6;
}

/* Shorter screens: the whole timeline, with one step open, still has to
   fit the pinned stage. */
@media (min-width: 861px) and (max-height: 820px) {
  .network-inner { padding-block: 5.25rem 1.5rem; }
  .process-lede { margin-top: .7rem; font-size: .9375rem; }
  .steps { margin-top: 1.4rem; }
  .step { grid-template-columns: 2.6rem minmax(0, 1fr); padding-bottom: .9rem; }
  .step::before, .step::after { left: calc(1.3rem - .5px); top: 3rem; }
  .step-n { width: 2.6rem; height: 2.6rem; font-size: .75rem; }
  .step-name { font-size: 1.3rem; padding-top: .45rem; }
  .step-body { padding-top: .4rem; line-height: 1.5; }
}

@media (max-width: 860px) {
  .network-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-block: 5.25rem 1.25rem;
  }
  .network-field { display: none; }
  /* On a phone the live network is left out: behind the steps it only
     competed with them. The looping clip stays as the background. */
  .network-live { display: none; }
  .network-scrim {
    background:
      linear-gradient(180deg, var(--stage) 0%, rgba(var(--stage-rgb), .72) 30%, rgba(var(--stage-rgb), .72) 70%, var(--stage) 100%);
  }
  .network-title { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .process-lede { font-size: .9375rem; margin-top: .8rem; }
  .steps { margin-top: 1.5rem; }
  .step { grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; padding-bottom: 1rem; }
  .step::before, .step::after { left: calc(1.25rem - .5px); top: 2.85rem; }
  .step-n { width: 2.5rem; height: 2.5rem; font-size: .75rem; }
  .step-name { font-size: 1.2rem; padding-top: .45rem; }
  .step-body { font-size: .875rem; line-height: 1.5; }
}

/* ==========================================================================
   Systems
   ========================================================================== */

.systems { padding-top: var(--section-y); }
.systems-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.systems-head .title { font-size: var(--t-display); line-height: var(--lh-tight); letter-spacing: -.03em; max-width: 11em; }

/* Resting layout: a grid. main.js turns it into a horizontal track. */
.systems-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: var(--section-y);
}

.sys-group {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--rule-strong);
}
.sys-group-name {
  font-family: var(--font-serif);
  font-size: var(--t-h3);
  line-height: 1.1;
}
.sys-group-count { font-size: var(--t-small); color: var(--bronze); }

.sys-card {
  position: relative;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--raised);
  border: 1px solid var(--rule);
  transition: border-color var(--dur-2), background-color var(--dur-2);
}
.sys-card::after {
  content: "";
  position: absolute; inset: -1px;
  border: 1px solid var(--bronze);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2);
}
.sys-card:hover { background: var(--raised-2); }
.sys-card:hover::after { opacity: .7; }

.sys-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.delta { display: flex; flex-direction: column; gap: .2rem; font-size: var(--t-small); line-height: 1.45; }
.delta-key { color: var(--ink-subtle); font-size: var(--t-meta); }
.delta-from {
  position: relative;
  justify-self: start;
  width: fit-content;
  color: var(--ink-subtle);
}
.delta-from::after {
  content: "";
  position: absolute; left: -2px; right: -2px; top: 55%;
  height: 1px; background: var(--bronze);
  transform-origin: 0 50%;
}
.delta-to { color: var(--glow); font-size: 1.0625rem; font-weight: 500; }

.sys-body { font-size: var(--t-small); color: var(--ink-muted); line-height: 1.6; }

.stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.stack li {
  padding: .3rem .6rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.sys-end {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  padding: 3rem 0 0;
}
.sys-end p { font-family: var(--font-serif); font-size: var(--t-h3); line-height: 1.25; max-width: 18em; }

.systems-meter { display: none; }

/* System marks — line diagrams in the lattice language: apparatus in ink,
   the part that carries data in bronze. */
.sysicon { display: block; width: 3.5rem; height: 3.5rem; }
.sysicon svg { width: 100%; height: 100%; overflow: visible; }
.sysicon svg * {
  fill: none;
  stroke: rgba(var(--ink-rgb), .55);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.sysicon svg .hot { stroke: var(--bronze); stroke-width: 1.4; }

/* Hover mechanics live in motion.css, so they are off under reduced motion. */

/* ==========================================================================
   Experience
   ========================================================================== */

.experience { padding-block: var(--section-y); }

.timeline { --meta: 17rem; position: relative; }

.tl-scale {
  position: relative;
  height: 1.5rem;
  margin-left: calc(var(--meta) + 2rem);
  font-size: var(--t-meta);
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}
.tl-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.tl-scale span:nth-child(1) { left: 0; transform: none; }
.tl-scale span:nth-child(2) { left: calc(100% / 7 * 1); }
.tl-scale span:nth-child(3) { left: calc(100% / 7 * 2); }
.tl-scale span:nth-child(4) { left: calc(100% / 7 * 3); }
.tl-scale span:nth-child(5) { left: calc(100% / 7 * 4); }
.tl-scale span:nth-child(6) { left: calc(100% / 7 * 5); }
.tl-scale span:nth-child(7) { left: calc(100% / 7 * 6); }
.tl-scale span:nth-child(8) { left: 100%; transform: translateX(-100%); }

.tl-row {
  display: grid;
  grid-template-columns: var(--meta) minmax(0, 1fr);
  column-gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}
.tl-org {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.1;
}
.tl-role { margin-top: .4rem; font-weight: 500; }
.tl-dates { margin-top: .2rem; font-size: var(--t-meta); color: var(--ink-subtle); }

.tl-track {
  position: relative;
  height: 1.75rem;
  align-self: start;
  margin-top: .45rem;
  background:
    repeating-linear-gradient(90deg, rgba(var(--ink-rgb), .12) 0 1px, transparent 1px calc(100% / 7));
}
.tl-track::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--rule);
}
.tl-bar {
  position: absolute; top: 50%;
  left: calc(var(--from) / var(--years) * 100%);
  width: calc((var(--to) - var(--from)) / var(--years) * 100%);
  height: 6px; margin-top: -3px;
  background: linear-gradient(90deg, var(--bronze-deep), var(--bronze));
  transform-origin: 0 50%;
}
.tl-bar.is-current { background: linear-gradient(90deg, var(--bronze), var(--glow)); box-shadow: 0 0 18px rgba(var(--bronze-rgb), .7); }
.tl-bar.is-current::after {
  content: "";
  position: absolute; right: -5px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 0 rgba(var(--bronze-rgb), .6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(var(--bronze-rgb), 0); } }

.tl-marks {
  grid-column: 2;
  display: flex; flex-direction: column; gap: .6rem;
  margin-top: 1.25rem;
  max-width: 44rem;
  color: var(--ink-muted);
  font-size: var(--t-small);
}
.tl-marks li { position: relative; padding-left: 1.25rem; }
.tl-marks li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: .45rem; height: 1px; background: var(--bronze);
}

@media (max-width: 860px) {
  .timeline { --meta: 0; }
  .tl-scale { margin-left: 0; }
  /* display, not visibility: the entrance tween sets visibility itself. */
  .tl-scale span:nth-child(2n) { display: none; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-track { margin-top: 1rem; }
  .tl-marks { grid-column: 1; }
}

/* ==========================================================================
   Toolkit marquees
   ========================================================================== */

.toolkit { padding-block: var(--section-y); overflow: hidden; }
.toolkit .head { margin-bottom: 3rem; }

.mq {
  display: grid;
  grid-template-columns: clamp(7rem, 14vw, 12rem) minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-left: var(--gutter);
}
.mq:last-child { border-bottom: 1px solid var(--rule); }
.mq-key { font-size: var(--t-small); color: var(--bronze); padding-block: 1rem; }
.mq-track { overflow: hidden; padding-block: clamp(.6rem, 1.4vw, 1.1rem); }
.mq-rail { display: flex; width: max-content; will-change: transform; }
.mq-list {
  display: flex; flex-wrap: wrap;
  gap: .5rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.6vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.mq-list li { display: flex; align-items: center; white-space: nowrap; }
.mq-list li::after {
  content: "";
  width: .18em; height: .18em;
  margin-inline: .6em;
  background: var(--bronze);
  transform: rotate(45deg);
  opacity: .8;
}
.mq-rail .mq-list { flex-wrap: nowrap; }

@media (max-width: 720px) {
  .mq { grid-template-columns: 1fr; padding-top: .75rem; }
  .mq-key { padding-block: 0; }
}

/* ==========================================================================
   Reach — languages and industries
   ========================================================================== */

.reach { padding-block: var(--section-y); }
.reach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.lang {
  --line: 1;
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0;
}
.lang::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--rule-strong);
  transform: scaleX(var(--line, 1));
  transform-origin: 0 50%;
}
.lang-name {
  font-family: var(--font-serif);
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -.02em;
}
.lang-level { font-size: var(--t-small); color: var(--bronze); }

.industries-count { color: var(--ink-muted); margin-bottom: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .7rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  transition: border-color var(--dur-2), color var(--dur-2), background-color var(--dur-2);
}
.chip:hover { border-color: var(--bronze); color: var(--glow); background: rgba(var(--bronze-rgb), .08); }

@media (max-width: 860px) { .reach-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About
   ========================================================================== */

.about { padding-block: var(--section-y); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.about-media { position: sticky; top: 6rem; }
.about-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--raised);
}
.about-frame > * {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--stage-rgb), .55), transparent 35%);
  pointer-events: none;
}
.about-caption { margin-top: .9rem; font-size: var(--t-meta); color: var(--ink-subtle); }

.about-copy .title { margin-bottom: 2rem; }
.about-prose { display: flex; flex-direction: column; gap: 1.25rem; max-width: var(--measure); color: var(--ink-muted); font-size: var(--t-lede); line-height: 1.62; }

.facts { display: flex; flex-direction: column; margin-top: 3rem; }
.fact {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.fact dt { font-size: var(--t-small); color: var(--bronze); }
.fact dd { color: var(--ink-muted); font-size: var(--t-small); }
.fact dd strong { display: block; margin-bottom: .25rem; font-size: var(--t-body); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: relative; top: 0; max-width: 26rem; }
  .fact { grid-template-columns: 1fr; gap: .4rem; }
}

/* ==========================================================================
   CV
   ========================================================================== */

.cvs { padding-block: var(--section-y); overflow: hidden; }
.cv-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.cv-copy .actions { margin-top: 2.25rem; }
.cv-which { margin-top: 1.75rem; max-width: var(--measure); color: var(--ink-muted); font-size: var(--t-small); }

.cv-stage { perspective: 1600px; display: flex; justify-content: center; }
.cv-sheet {
  width: min(24rem, 100%);
  aspect-ratio: 1 / 1.414;
  padding: 1.75rem 1.6rem;
  background: #faf8f4;
  color: #1c1a17;
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 40px 90px rgba(0,0,0,.65), 0 0 120px rgba(var(--bronze-rgb), .16);
  transform-style: preserve-3d;
  transform-origin: 50% 80%;
}
.cv-mini-band {
  display: flex; align-items: center; gap: .9rem;
  margin: -1.75rem -1.6rem 1.4rem;
  padding: 1.25rem 1.6rem;
  background: #1c1a17; color: #f7f3ec;
}
.cv-mini-photo { width: 3.25rem; height: 3.25rem; object-fit: cover; }
.cv-mini-name { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.1; }
.cv-mini-title { margin-top: .25rem; font-size: .5625rem; letter-spacing: .24em; text-transform: uppercase; color: #c9a36a; }
.cv-mini-section { margin-bottom: 1.1rem; }
.cv-mini-label {
  padding-bottom: .35rem; margin-bottom: .6rem;
  border-bottom: 1px solid #8f857a;
  font-size: .5rem; letter-spacing: .2em; text-transform: uppercase; color: #7a5228;
}
.cv-mini-line { height: 5px; margin-bottom: .45rem; background: #ddd5c8; transform-origin: 0 50%; }
.cv-mini-line.strong { background: #8f857a; }
.w-48 { width: 48%; } .w-58 { width: 58%; } .w-60 { width: 60%; } .w-72 { width: 72%; } .w-84 { width: 84%; } .w-90 { width: 90%; }

@media (max-width: 860px) {
  .cv-panel { grid-template-columns: 1fr; }
  .cv-sheet { width: min(20rem, 88%); }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: var(--section-y);
  overflow: hidden;
  isolation: isolate;
}
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
}
.contact-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--stage) 0%, rgba(var(--stage-rgb), .35) 30%, rgba(var(--stage-rgb), .35) 70%, var(--stage) 100%),
    linear-gradient(90deg, rgba(var(--stage-rgb), .85) 0%, rgba(var(--stage-rgb), .2) 60%);
}

.contact-title {
  max-width: 12em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  align-items: start;
}
.contact-lede { color: var(--ink-muted); font-size: var(--t-lede); line-height: 1.6; max-width: var(--measure); }

.contact-item {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule-strong);
}
.contact-item:last-child { border-bottom: 1px solid var(--rule-strong); }
.contact-item::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--bronze);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur-3) var(--ease-out);
}
.contact-item:hover::before { transform: scaleX(1); }
.contact-key { font-size: var(--t-small); color: var(--ink-subtle); }
.contact-val {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.contact-item:hover .contact-val { color: var(--glow); transform: translateX(.4rem); }
.contact-hint {
  font-size: var(--t-meta); color: var(--ink-subtle);
  opacity: 0; transition: opacity var(--dur-2), color var(--dur-2);
}
.contact-item:hover .contact-hint, .contact-item:focus-visible .contact-hint, .contact-hint.is-on { opacity: 1; }
.contact-hint.is-on { color: var(--bronze); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr auto; row-gap: .25rem; }
  .contact-key { grid-column: 1 / -1; }
  .contact-hint { opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 6.5rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem;
  font-size: var(--t-small); color: var(--ink-subtle);
}
.footer-sign { font-family: var(--font-serif); font-size: 1.375rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { transition: color var(--dur-1); }
.footer-links a:hover { color: var(--bronze); }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.wa {
  position: fixed; right: var(--gutter); bottom: 1.25rem; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
  pointer-events: none;
}
.wa-btn {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--bronze); color: var(--stage);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 0 rgba(var(--bronze-rgb), .5);
  opacity: 0; transform: translateY(1rem) scale(.8);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), background-color var(--dur-1);
}
.wa-btn svg { width: 1.5rem; height: 1.5rem; }
.wa-btn:hover { background: var(--glow); }
.wa.is-shown .wa-btn { opacity: 1; transform: none; pointer-events: auto; }

.wa-note {
  position: relative;
  width: min(18rem, calc(100vw - 2 * var(--gutter)));
  padding: 1.1rem 2.5rem 1.1rem 1.1rem;
  background: var(--raised-2);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(.5rem);
  visibility: hidden;
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out), visibility 0s var(--dur-2);
}
.wa-note.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.wa-note-title { font-weight: 500; margin-bottom: .3rem; }
.wa-note-body { font-size: var(--t-small); color: var(--ink-muted); line-height: 1.5; }
.wa-close { position: absolute; top: .6rem; right: .6rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; color: var(--ink-subtle); }
.wa-close svg { width: .625rem; height: .625rem; }
.wa-close:hover { color: var(--ink); }

/* ==========================================================================
   Sub-pages (CV, Writing, 404) share this simple page head
   ========================================================================== */

.page-head { padding-block: clamp(8rem, 18vh, 12rem) clamp(3rem, 6vw, 5rem); }
.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: -.03em;
  max-width: 12em;
}
.page-lede { margin-top: 1.5rem; max-width: var(--measure); color: var(--ink-muted); font-size: var(--t-lede); }

/* A still from the Higgsfield set behind a sub-page head, as light only.
   The image is set inline on .page-still: a url() inside a custom property
   would resolve against this stylesheet rather than the page. */
.page-head--still { position: relative; isolation: isolate; overflow: hidden; }
.page-still {
  position: absolute; inset: 0 0 0 38%; z-index: -1;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(0deg, transparent, #000 40%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(0deg, transparent, #000 40%);
  mask-composite: intersect;
}
html.motion .page-still { animation: still-drift 24s var(--ease-io) infinite alternate; }
@keyframes still-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-2%); } }

/* ----- Writing ---------------------------------------------------------- */

.writing { padding-bottom: var(--section-y); }
.writing-group {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 1rem 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule-strong);
}
.writing-group-name { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.15; }
.writing-group-count { display: block; margin-top: .5rem; font-size: var(--t-small); color: var(--bronze); }
.post {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.post:first-child { padding-top: .2rem; }
.post:last-child { border-bottom: 0; }
.post-title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.25;
  transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.post-blurb { display: block; margin-top: .45rem; max-width: 40rem; color: var(--ink-muted); font-size: var(--t-small); }
.post:hover .post-title { color: var(--glow); transform: translateX(.35rem); }
.writing-foot { margin-top: 3rem; max-width: var(--measure); color: var(--ink-muted); font-size: var(--t-lede); }

@media (max-width: 860px) {
  .writing-group { grid-template-columns: 1fr; }
}

/* ----- 404 -------------------------------------------------------------- */

.lost { min-height: 100svh; display: flex; align-items: center; }
.lost .page-head { padding-block: 8rem 4rem; width: 100%; }
.lost .actions { margin-top: 2.5rem; }
