/* shahroudi.us: one stylesheet for every page.

   The idea: a quiet site with one live instrument. Warm paper, deep ink, and
   a single amber signal. Headings are set in Fraunces, a serif with
   character; reading text in Instrument Sans; and JetBrains Mono appears only
   where the text is data: times, cadences, labels. The schedule band is the
   one dark surface on the page, and it is labelled as a schedule, not a
   status: the site knows when each job is due, never what it found. */

/* Fallback faces sized to the web fonts, so text does not jump when they land. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 94%;
  ascent-override: 90%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sans Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 98%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  /* Paper */
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --ink: #1b1a17;
  --on-ink: #f6f4ef;
  --muted: #5d5a53;
  --rule: #d9d5cc;
  --rule-strong: #8f8a80;
  --signal: #cf4a16;
  --signal-ink: #a63a0f;
  --signal-wash: rgba(207, 74, 22, .09);
  /* The live band is dark in both themes */
  --band: #1b1a17;
  --band-2: #24221e;
  --band-text: #f3efe6;
  --band-muted: #b3ada2;
  --band-rule: #3a372f;
  --amber: #f2b544;

  --display: "Fraunces", "Serif Fallback", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", "Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale */
  --t-xs: .78rem;
  --t-s: .94rem;
  --t-0: 1.0625rem;
  --t-1: 1.25rem;
  --t-2: 1.6rem;
  --t-3: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  --t-4: clamp(2.8rem, 1.6rem + 4.6vw, 5.6rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --max: 1160px;
  --measure: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412;
    --paper-2: #1d1b18;
    --ink: #ece8df;
    --on-ink: #151412;
    --muted: #aaa49a;
    --rule: #2d2a26;
    --rule-strong: #5f5a52;
    --signal: #ff8a4c;
    --signal-ink: #ff9d66;
    --signal-wash: rgba(255, 138, 76, .12);
    --band: #0f0e0d;
    --band-2: #171614;
    --band-rule: #2d2a26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151412;
  --paper-2: #1d1b18;
  --ink: #ece8df;
  --on-ink: #151412;
  --muted: #aaa49a;
  --rule: #2d2a26;
  --rule-strong: #5f5a52;
  --signal: #ff8a4c;
  --signal-ink: #ff9d66;
  --signal-wash: rgba(255, 138, 76, .12);
  --band: #0f0e0d;
  --band-2: #171614;
  --band-rule: #2d2a26;
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-0);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--signal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 2px; }
.live :focus-visible { outline-color: var(--amber); }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 50; background: var(--ink); color: var(--on-ink); padding: .6rem .9rem; font-size: var(--t-s); text-decoration: none; }
.skip:focus { top: .5rem; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; font-variation-settings: "SOFT" 0, "WONK" 0; }
h4 { margin: 0; font-family: var(--text); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }
b, strong { font-weight: 600; }

/* Labels: small mono caps. They name a thing; they never number it. */
.k { display: block; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.k.sig { color: var(--signal-ink); }
.k.sig::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: .55rem; vertical-align: .1em; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.1rem 0; }
.id { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; font-variation-settings: "SOFT" 0, "WONK" 0; }
.id:hover { color: var(--signal-ink); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a { font-size: var(--t-s); font-weight: 500; color: var(--ink); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--signal-ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* Hero (home) */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: var(--t-4); line-height: .98; letter-spacing: -.025em; max-width: 9em; }
.hero .lede { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); line-height: 1.4; max-width: 24em; margin: 1.75rem 0 2rem; font-weight: 400; }
.hero .lede b { font-weight: 600; }
.spec { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; border-top: 1px solid var(--rule-strong); padding-top: 1rem; max-width: 46rem; }
.spec > div { display: flex; flex-direction: column; gap: .15rem; min-width: 10rem; flex: 1 1 10rem; }
.spec dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-size: var(--t-s); }

/* Mast (inner pages) */
.mast { padding: 3rem 0 3rem; border-bottom: 1px solid var(--rule); }
.mast h1 { font-size: var(--t-3); line-height: 1.08; letter-spacing: -.02em; max-width: 18em; margin: 1rem 0 0; }
.mast h1.name { font-size: var(--t-4); line-height: .98; letter-spacing: -.025em; }
.mast .lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; max-width: 36em; margin: 1.25rem 0 1.5rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--signal-ink); }
.crumbs [aria-current] { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.facts li { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .02em; border: 1px solid var(--rule-strong); border-radius: 999px; padding: .35rem .75rem; color: var(--ink); }
.facts a { color: inherit; }

/* The live band: the schedule, with clocks. Dark in both themes. */
.live { background: var(--band); color: var(--band-text); padding: 3rem 0 2.5rem; border-top: 1px solid var(--band-rule); border-bottom: 1px solid var(--band-rule); }
.live .k { color: var(--band-muted); }
.live h2 { font-size: var(--t-2); color: var(--band-text); max-width: 20em; }
.live a { color: var(--amber); }
.live a:hover { color: var(--band-text); }
.live-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.clocks { display: none; grid-template-columns: auto auto; gap: 0 2.5rem; font-family: var(--mono); }
html.js .clocks { display: grid; }
.clocks > div { display: flex; flex-direction: column; gap: .15rem; }
.clocks dt { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); }
.clocks dd { margin: 0; color: var(--amber); font-size: 1.15rem; font-weight: 500; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clocks .due dd { color: var(--band-text); font-size: 1rem; white-space: normal; }
.clocks .due dd b { color: var(--amber); font-weight: 500; }
.sched-wrap { border: 1px solid var(--band-rule); background: var(--band-2); padding: .25rem 1.25rem .5rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--amber); border-radius: 999px; padding: .25rem .65rem; white-space: nowrap; }
.live-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; margin-top: 1.25rem; font-size: var(--t-s); color: var(--band-muted); line-height: 1.5; }
.live-foot p { margin: 0; max-width: 60em; }

/* The schedule table */
.sched { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.sched th, .sched td { text-align: left; vertical-align: top; }
.sched thead th { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); font-weight: 400; padding: .9rem .75rem .6rem 0; border-bottom: 1px solid var(--band-rule); }
.sched tbody th, .sched td { padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--band-rule); font-weight: 400; }
.sched tr:last-child th, .sched tr:last-child td { border-bottom: 0; }
.sched .job { padding-left: 1.1rem; position: relative; }
.sched .job::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--band-rule); }
.sched .job small { display: block; font-size: .84rem; color: var(--band-muted); line-height: 1.4; }
.sched tr.next .job::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 181, 68, .25); }
.sched .when { font-family: var(--mono); font-size: .78rem; color: var(--band-muted); }
.sched .next-at { font-family: var(--mono); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--band-text); }
.sched .in { font-family: var(--mono); font-size: .82rem; font-weight: 500; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; color: var(--band-text); }
.sched tr.next .in { color: var(--amber); }
.sched .num { text-align: right; padding-right: 0; }
.sched .js-col { display: none; }
html.js .sched .js-col { display: table-cell; }

/* Sections */
.sec { padding: 4rem 0; border-top: 1px solid var(--rule); }
.sec:first-of-type { border-top: 0; }
.sec h2 { font-size: var(--t-3); max-width: 16em; margin-bottom: 1.5rem; }
.sec h3 { font-size: var(--t-1); margin-bottom: .75rem; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: start; }
.cols .lead h2 { margin-bottom: .75rem; }
.prose { max-width: var(--measure); }
.prose > p:last-child { margin-bottom: 0; }
.prose.big { font-size: var(--t-1); line-height: 1.5; }

/* Parts: a grid of short facts with a rule above each */
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; margin: 0 0 2rem; }
.parts li { border-top: 1px solid var(--rule-strong); padding-top: .9rem; }
.parts h4 { margin-bottom: .4rem; }
.parts p { font-size: var(--t-s); margin: 0; color: var(--muted); }
.parts .off { border-top: 2px solid var(--signal); }
.parts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Work card */
.card { background: var(--paper-2); border: 1px solid var(--rule); padding: 2rem; }
.card h3 { font-size: var(--t-2); max-width: 18em; margin-bottom: .5rem; }
.card .sub { color: var(--muted); margin-bottom: 1.25rem; }

/* Buttons and the big email link */
.more { display: inline-block; font-weight: 600; font-size: var(--t-s); text-decoration: none; color: var(--on-ink); background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: .7rem 1.2rem; }
.more::after { content: " \2192"; }
.more:hover { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.more.ghost { background: none; color: var(--ink); }
.more.ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.mail { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); letter-spacing: -.01em; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--signal); font-variation-settings: "SOFT" 0, "WONK" 0; overflow-wrap: anywhere; }
.mail:hover { color: var(--signal-ink); }

/* Definition rows */
.log { border-top: 1px solid var(--rule-strong); margin-top: 1.5rem; }
.log > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.log dt { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .25rem; }
.log dd { margin: 0; }

/* Offers (services) */
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 1.75rem; }
.offer li { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.offer h3, .offer h4 { font-size: var(--t-1); margin: 0; }
.offer p { margin: 0; font-size: var(--t-s); color: var(--muted); }
.offer .k { margin-bottom: .25rem; }
.offer.stack { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.offer.stack li { padding: 1.75rem; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .25rem 1rem; }
.offer.stack .n { grid-row: 1 / span 2; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--signal-ink); font-variation-settings: "SOFT" 0, "WONK" 0; }
.offer.stack p { font-size: var(--t-0); color: var(--ink); }

/* Career timeline: a row of stops on desktop, a column on phones */
.tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; border-top: 2px solid var(--rule-strong); margin-top: 2rem; }
.tl li { position: relative; padding-top: 1.25rem; }
.tl li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tl li.now::before { background: var(--signal); border-color: var(--signal); }
.tl .t-when { display: block; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.tl h3, .tl h4 { font-family: var(--text); font-weight: 600; font-size: var(--t-0); line-height: 1.3; margin: 0; }
.tl .t-role { font-size: var(--t-s); color: var(--muted); margin: .15rem 0 .5rem; }
.tl p { font-size: var(--t-s); margin: 0; }

/* Case study: the system map */
.map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; margin: 2rem 0 .5rem; }
.map .col { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.25rem; }
.map .col.core { border: 2px solid var(--ink); }
.map h4 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.map .core h4 { color: var(--signal-ink); }
.map li { font-size: var(--t-s); padding: .35rem 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.map li:last-child { border-bottom: 0; }
.map li small { display: block; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.map .arrow { display: flex; align-items: center; color: var(--rule-strong); }
.map .arrow svg { width: 24px; height: 24px; }

/* Case study: the line */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.split > div { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.25rem 1.4rem; }
.split h4 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.split > div:last-child h4 { color: var(--signal-ink); }
.split li { font-size: var(--t-s); padding: .3rem 0 .3rem 1.1rem; position: relative; }
.split li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); }
.split > div:last-child li::before { background: var(--signal); }
.note { font-size: var(--t-s); color: var(--muted); }
.aside { border-left: 3px solid var(--signal); padding: .25rem 0 .25rem 1.25rem; margin: 1.75rem 0 0; font-size: var(--t-1); line-height: 1.5; }
.aside p { margin: 0; }

/* Case study: the flow. One row per job, five step types. The LLM step is
   dashed (a draft), the code check is a heavy solid box (no model in it),
   the person is the one accent-coloured box, and the outcome is filled. */
.flow { --fgap: 1.5rem; margin: 2rem 0 0; }
.flow-key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.flow-key li { display: flex; align-items: center; gap: .55rem; }
.flow .sw { display: inline-block; width: 18px; height: 14px; border: 1px solid var(--rule-strong); background: var(--paper-2); flex: none; }
.flow .sw.llm { background: var(--paper); border: 1.5px dashed var(--ink); }
.flow .sw.code { background: var(--paper); border: 2px solid var(--ink); }
.flow .sw.person { background: var(--signal-wash); border: 2px solid var(--signal); }
.flow .sw.out { background: var(--ink); border-color: var(--ink); }
.flow-lanes { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.lane { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .75rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.lane:last-child { border-bottom: 0; }
.lane-head { grid-row: 1 / span 2; align-self: start; }
.lane-head h3 { font-size: var(--t-1); margin: 0 0 .3rem; }
.lane-when { display: block; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--fgap); align-items: stretch; }
.step { position: relative; min-width: 0; padding: .8rem .9rem .9rem; font-size: .84rem; line-height: 1.45; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule-strong); }
.step .st { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.step.llm { background: var(--paper); border: 1.5px dashed var(--ink); }
.step.llm .st { color: var(--ink); }
.step.code { background: var(--paper); border: 2px solid var(--ink); }
.step.code .st { color: var(--ink); }
.step.person { background: var(--signal-wash); border: 2px solid var(--signal); }
.step.person .st { color: var(--signal-ink); }
.step.out { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.step.out .st { color: var(--on-ink); opacity: .75; }
.step.x2 { grid-column: span 2; }
.step.nollm { background: transparent; border: 1px dashed var(--rule-strong); display: flex; align-items: center; justify-content: center; text-align: center; }
.step.nollm .st { margin: 0; }
.step.none { background: transparent; border: 0; padding: 0; }
/* Connectors: a line across the gap, with a chevron at the next box. */
.steps > li + li::before { content: ""; position: absolute; top: 50%; left: calc(-1 * var(--fgap) - 1px); width: calc(var(--fgap) + 1px); height: 1px; background: var(--rule-strong); }
.steps > li + li::after { content: ""; position: absolute; top: 50%; left: -7px; width: 7px; height: 7px; border-top: 1.5px solid var(--rule-strong); border-right: 1.5px solid var(--rule-strong); transform: translateY(-50%) rotate(45deg); }
.steps > .none::before { left: calc(-1 * var(--fgap)); right: calc(-1 * var(--fgap)); width: auto; }
.steps > .none::after { content: none; }
.lane-loop { grid-column: 2; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .25rem .75rem; align-items: baseline; margin: .25rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted); max-width: 52rem; }
.lane-loop svg { width: 16px; height: 16px; align-self: center; color: var(--ink); }
.lane-loop .st { display: inline; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.lane-loop.why { grid-template-columns: auto minmax(0, 1fr); }
.flow figcaption { margin-top: 1.25rem; font-size: var(--t-s); color: var(--muted); max-width: 44rem; }

/* Resume */
.job { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.job:first-child { border-top: 0; padding-top: 0; }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.5rem; }
.job-head h3 { font-size: var(--t-1); margin: 0; }
.years { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.org { color: var(--muted); margin: .25rem 0 .9rem; }
.job ul { list-style: disc; padding-left: 1.2rem; }
.job li { margin-bottom: .6rem; }
.job li::marker { color: var(--rule-strong); }
.edu { margin-top: .5rem; }
.edu li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.edu li:last-child { border-bottom: 1px solid var(--rule); }
.contact-line { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; }

/* 404 */
.lost { padding: 5rem 0 7rem; }
.lost .code { font-family: var(--mono); font-size: var(--t-s); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 1rem; }
.lost h1 { font-size: var(--t-3); max-width: 16em; margin-bottom: 1.25rem; }
.lost p { max-width: 36em; }

/* Footer */
.foot { border-top: 1px solid var(--rule); margin-top: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding: 1.5rem 0 2rem; font-size: var(--t-s); color: var(--muted); }
.foot ul { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--signal-ink); }

/* Breakpoints */
@media (max-width: 1000px) {
  .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; border-top: 0; }
  .tl li { border-top: 2px solid var(--rule-strong); }
  .map { grid-template-columns: minmax(0, 1fr); }
  .map .arrow { justify-content: center; }
  .map .arrow svg { transform: rotate(90deg); }
  .lane { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .lane-head { grid-row: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
  .lane-head h3 { margin: 0; }
  .lane-loop { grid-column: 1; }
  .live-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .clocks { justify-content: start; }
}
@media (max-width: 760px) {
  .hero { padding: 3rem 0 2.5rem; }
  .sec { padding: 2.75rem 0; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .parts, .parts.three, .offer, .split { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 0; border-left: 2px solid var(--rule-strong); margin-left: 5px; padding-left: 1.25rem; }
  .tl li { border-top: 0; padding: 0 0 1.5rem; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { left: calc(-1.25rem - 7px); top: .3rem; }
  .log > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .card { padding: 1.4rem; }
  .offer.stack li { grid-template-columns: minmax(0, 1fr); padding: 1.4rem; }
  .offer.stack .n { grid-row: auto; }
  .sched-wrap { padding: 0 1rem .25rem; }
  html.js .sched .next-at, html.js .sched th.w-at { display: none; }
  .sched .when { white-space: normal; }
  .clocks { grid-template-columns: minmax(0, 1fr); gap: .75rem 0; }
  .live-foot { grid-template-columns: minmax(0, 1fr); }
  /* The flow stacks: each row becomes a column of boxes with arrows pointing down. */
  .flow { --fgap: 1.25rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step.x2 { grid-column: auto; }
  .step.none { display: none; }
  .step.nollm { padding: .6rem .9rem; }
  .steps > li + li::before { top: calc(-1 * var(--fgap) - 1px); left: 50%; width: 1px; height: calc(var(--fgap) + 1px); }
  .steps > li + li::after { top: -7px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .lane-loop, .lane-loop.why { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .lane-loop svg { display: none; }
}

/* Contact form (assets/contact.js sends it through Web3Forms) */
.contact-form { display: grid; gap: 1rem; margin-top: 2rem; max-width: var(--measure); }
.contact-form .field { display: grid; gap: .35rem; min-width: 0; }
.contact-form label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea { box-sizing: border-box; width: 100%; font-family: var(--text); font-size: 1rem; color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); border-radius: 10px; padding: .7rem .85rem; }
.contact-form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 1px; border-color: var(--signal-ink); border-radius: 10px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button.more { font-family: var(--text); cursor: pointer; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form-note { margin: 0; font-size: var(--t-xs); color: var(--muted); }
.form-status { margin: 0; min-height: 1.4em; font-size: var(--t-s); }
.form-status[data-state="ok"] { color: var(--ink); font-weight: 600; }
.form-status[data-state="error"] { color: var(--signal-ink); }
