/* ==========================================================================
   INDIKA CIRCUITS — "The board, lit."
   Warm macro design system. Cream paper, gold traces, live signal light.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* paper */
  --paper:        #F3EEE7;
  --paper-raised: #FAF7F2;
  --paper-sunk:   #EAE3D9;
  --hairline:     #E0D8CC;
  --hairline-2:   #CFC4B4;

  /* ink */
  --ink:          #16130F;
  --ink-2:        #413A32;
  --dim:          #6F685E;
  --faint:        #9A9289;

  /* metal */
  --copper:       #A8622F;
  --copper-lit:   #C9733F;
  --gold:         #D4A24C;

  /* live signal — used only for light, state dots, data */
  --sig-cyan:     #2BB3C9;
  --sig-magenta:  #D3509A;
  --sig-violet:   #7B61D9;
  --sig-amber:    #E0953F;
  --sig-green:    #3F9E6B;

  /* machine surfaces (dark inserts) */
  --machine:      #121418;
  --machine-2:    #1C2026;

  /* metrics */
  --gutter:       clamp(16px, 5vw, 72px);
  --maxw:         1320px;
  --measure:      62ch;
  --r:            3px;

  --t-fast:       .18s cubic-bezier(.22,.61,.36,1);
  --t:            .42s cubic-bezier(.22,.61,.36,1);
  --t-slow:       .9s cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--copper); color: #FFF; }

/* ---------- type ---------- */
.display,
h1, h2, h3 {
  font-weight: 700;
  line-height: .94;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1, .t-hero   { font-size: clamp(2.9rem, 8.4vw, 7.4rem); }
h2, .t-sect   { font-size: clamp(2.1rem, 5vw, 4.1rem); }
h3, .t-card   { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.04; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.52;
  color: var(--ink-2);
  max-width: 54ch;
}
.dim { color: var(--dim); }

/* mono — every technical label on this site is mono */
.mono, .eyebrow, .spec-row, .chip, .plate-cap, .tier-meta, .fld-label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-variant-ligatures: none;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.eyebrow::before { content: none; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; }
.band { padding-block: clamp(56px, 6.5vw, 104px); }
.band--tight { padding-block: clamp(34px, 4vw, 56px); }
.band--sunk { background: var(--paper-sunk); }

.grid { display: grid; gap: clamp(24px, 3.2vw, 56px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
@media (max-width: 900px) {
  .g-2, .g-3, .g-4, .g-split { grid-template-columns: 1fr; }
}

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- the signature: a live light strip ---------- */
/* a thin emissive bar echoing the glow strips under components in the ref */
.glowbar {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1, var(--sig-cyan)), var(--c2, var(--sig-violet)));
  opacity: .85;
}
.glowbar::after {
  content: "";
  position: absolute;
  inset: -7px -10px;
  border-radius: 10px;
  background: inherit;
  filter: blur(11px);
  opacity: .45;
  pointer-events: none;
}
.glowbar--amber { --c1: var(--sig-amber); --c2: var(--copper-lit); }
.glowbar--mag   { --c1: var(--sig-magenta); --c2: var(--sig-violet); }
.glowbar--cyan  { --c1: var(--sig-cyan); --c2: #7ED6E4; }

/* a state dot that reads as a lit LED */
.led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sig-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sig-green) 22%, transparent),
              0 0 12px color-mix(in srgb, var(--sig-green) 75%, transparent);
  flex: none;
}
.led--amber { background: var(--sig-amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sig-amber) 22%, transparent), 0 0 12px color-mix(in srgb, var(--sig-amber) 75%, transparent); }
.led--dim   { background: var(--hairline-2); box-shadow: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav[data-stuck="1"] { border-bottom-color: var(--hairline); }
.nav-in {
  display: flex; align-items: center; gap: 22px;
  height: 62px;
}
.brand { display: flex; align-items: flex-end; gap: 6px; margin-right: auto; }
/* the lockup: the mark rises above INDIKA and lands on the CIRCUITS baseline */
.brand svg { width: auto; height: 24px; flex: none; }
.brand-txt { display: flex; flex-direction: column; justify-content: center; }
.brand-txt b {
  display: block; font-weight: 700; font-size: 17px;
  letter-spacing: -0.014em; line-height: 1;
}
/* CIRCUITS is tracked out until it measures the same width as INDIKA above it */
.brand-txt span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 6.2px; font-weight: 500; line-height: 1;
  letter-spacing: .49em; color: var(--dim);
  margin-top: 2.5px; margin-right: -.49em;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  position: relative; padding-block: 4px;
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:hover { background: var(--copper); border-color: var(--copper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn--ghost:hover { background: transparent; color: var(--copper); border-color: var(--copper); }
.btn svg { width: 15px; height: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 3.4vw, 54px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { margin-bottom: 26px; }
.hero h1 em {
  font-style: normal;
  color: var(--copper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-stage {
  position: relative;
  margin-top: 6px;
  aspect-ratio: 16 / 10.6;
  border-radius: var(--r);
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 62% 14%, #FFFDF9 0%, var(--paper-sunk) 58%, #DED5C8 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 30px 70px -38px rgba(60,45,28,.55);
}
.hero-stage img { width: 100%; height: 100%; object-fit: contain; object-position: center 58%; }
.hero-stage::after {
  /* soft vignette so the render sits in air, not on a swatch */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(78% 62% at 50% 46%, transparent 42%, rgba(92,72,48,.13) 100%);
  pointer-events: none;
}

.hero-foot {
  display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
}
.hero-foot span { display: flex; align-items: center; gap: 8px; }

/* ---------- annotation chips over imagery (ref: "L2 220kV") ---------- */
.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  background: rgba(17,19,22,.9);
  color: #F2EFE9;
  border-radius: 4px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,.8);
  backdrop-filter: blur(3px);
}
.chip i { font-style: normal; color: var(--faint); }
.chip--lit { box-shadow: 0 8px 22px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(43,179,201,.5); }

/* ---------- plate: a framed image with a lab caption ---------- */
.plate {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--paper-raised);
  overflow: hidden;
}
.plate-img { position: relative; overflow: hidden; background: var(--machine); }
.plate-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.plate:hover .plate-img img { transform: scale(1.028); }
.plate-cap {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  padding: 13px 16px;
  border-top: 1px solid var(--hairline);
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--dim);
}
.plate-cap b { color: var(--ink); font-weight: 500; }

/* ---------- spec rows: dotted leader, like a datasheet ---------- */
.spec-list { margin: 0; padding: 0; list-style: none; }
.spec-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--dim); letter-spacing: .06em; text-transform: uppercase; flex: none; }
.spec-row .d { flex: 1 1 auto; border-bottom: 1px dotted var(--hairline-2); transform: translateY(-3px); }
.spec-row .v { color: var(--ink); font-weight: 500; flex: none; text-align: right; }

/* ---------- cards / tiers ---------- */
.card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.card::before {
  /* the lit edge — off by default, on at hover */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--c1, var(--sig-cyan)), var(--c2, var(--sig-violet)));
  opacity: 0; transition: opacity var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -34px rgba(60,45,28,.5); }
.card:hover::before { opacity: 1; }
.card--amber { --c1: var(--sig-amber); --c2: var(--copper-lit); }
.card--mag   { --c1: var(--sig-magenta); --c2: var(--sig-violet); }

.tier-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.tier-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .18em; color: var(--copper);
}

/* ---------- numbered process ---------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  counter-increment: s;
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: .14em;
  color: var(--copper);
  padding-top: 5px;
}
.step h3 { font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 820px) {
  .step { grid-template-columns: 54px minmax(0,1fr); }
  .step > *:last-child { grid-column: 2; }
}

/* ---------- machine insert: a dark section that reads as "inside" ---------- */
.machine {
  background: var(--machine);
  color: #E7E3DB;
}
.machine h2, .machine h3 { color: #F4F1EA; }
.machine p { color: #A8A49C; }
.machine .eyebrow { color: #8C877E; }
.machine .eyebrow::before { background: var(--copper-lit); }
.machine .rule { background: #2A2F36; }
.machine .spec-row { border-color: #262B31; }
.machine .spec-row .k { color: #847F76; }
.machine .spec-row .v { color: #EDE9E1; }
.machine .spec-row .d { border-bottom-color: #2E343B; }

/* ---------- stack-up diagram (pure CSS, scroll-reactive via JS) ---------- */
.stack { display: flex; flex-direction: column; gap: 3px; }
.layer {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  height: 30px;
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  background: #20252B;
  color: #8D8880;
  transition: background var(--t), color var(--t), transform var(--t);
}
.layer[data-kind="signal"] { background: linear-gradient(90deg, #2A2017, #3A2A1B); color: #C79A6B; }
.layer[data-kind="plane"]  { background: #1B2026; }
.layer[data-kind="core"]   { height: 16px; background: repeating-linear-gradient(90deg, #1A1E23 0 6px, #171B20 6px 12px); color: #5E5952; font-size: 9px; }
.layer.is-live { transform: translateX(6px); }
.layer.is-live[data-kind="signal"] { color: #F0C089; box-shadow: 0 0 0 1px rgba(212,162,76,.4), 0 0 22px -6px rgba(212,162,76,.6); }
.layer .n { color: inherit; opacity: .7; flex: none; width: 34px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 600; letter-spacing: -0.015em;
  transition: color var(--t-fast);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--copper); }
.qa summary::after {
  content: "+";
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400; color: var(--copper);
  transition: transform var(--t);
  flex: none;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa-body { padding: 0 0 26px 0; }
.qa-body p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- calculator / form fields ---------- */
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld-label {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.fld input, .fld select {
  width: 100%;
  padding: 11px 13px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.fld input:focus, .fld select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 16%, transparent);
}
.readout {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.readout small { font-size: .42em; color: var(--dim); letter-spacing: .08em; margin-left: 6px; }

/* ---------- stats ---------- */
.stat .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.stat .lab {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--dim); margin-top: 12px;
}

/* ---------- footer ---------- */
.foot { background: var(--machine); color: #9B968E; padding-block: clamp(56px, 7vw, 96px) 40px; }
.foot a { color: #C9C4BC; font-size: 14px; transition: color var(--t-fast); }
.foot a:hover { color: var(--copper-lit); }
.foot h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: #6E6960; margin: 0 0 18px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-bar {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid #262B31;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6E6960;
}

/* ---------- reveal ---------- */
[data-rise] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--d, 0ms);
}
[data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .plate:hover .plate-img img { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-stage { aspect-ratio: 4 / 3.2; }
  .step { gap: 14px; }
}

/* ---------- mobile menu ---------- */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r);
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block; position: relative;
  width: 17px; height: 1.5px; background: var(--ink);
  transition: background var(--t-fast);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: var(--ink);
  transition: transform var(--t);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }
.nav[data-open="1"] .nav-toggle span { background: transparent; }
.nav[data-open="1"] .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.nav[data-open="1"] .nav-toggle span::after  { transform: translateY(-5.5px) rotate(-45deg); }

.nav-panel {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.nav-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  font-size: 17px; font-weight: 500;
}
.nav-panel a::after {
  content: "→";
  font-family: "IBM Plex Mono", monospace;
  color: var(--copper);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav[data-open="1"] .nav-panel { display: block; }
  .nav-in .btn { padding: 11px 16px; font-size: 13px; }
  .nav-in .btn svg { display: none; }
}
@media (max-width: 420px) {
  .nav-in .btn { display: none; }
}

/* FAQ heading shouldn't strand a tall empty column */
@media (max-width: 900px) {
  .faq-head { position: static !important; }
}

/* ---------- hero clip: the signal loop under the still ---------- */
.hero-col { display: flex; flex-direction: column; gap: 14px; }

.hero-clip {
  position: relative;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-sunk);
  box-shadow: 0 16px 40px -30px rgba(60,45,28,.55);
}
.hero-clip video,
.hero-clip img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  object-position: center 54%;
}
.hero-clip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(18,20,24,.78), rgba(18,20,24,0));
  color: #EFEBE3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.hero-clip figcaption .led { box-shadow: 0 0 0 3px rgba(63,158,107,.3), 0 0 12px rgba(63,158,107,.9); }

/* ---------- order / make / deliver ---------- */
.flow { position: relative; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(20px, 3vw, 44px);
  position: relative;
  z-index: 1;
}
.flow-rail {
  position: absolute;
  left: 16%; right: 16%; top: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-2) 12%, var(--hairline-2) 88%, transparent);
  overflow: visible;
  z-index: 0;
}
.flow-rail::after {
  content: "";
  position: absolute; top: -1.5px; left: 0;
  width: 54px; height: 4px; border-radius: 4px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, var(--sig-cyan), var(--copper-lit), transparent);
  filter: blur(.4px);
  animation: railrun 5.2s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes railrun {
  0%   { left: 0;    transform: translateX(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; transform: translateX(-100%); opacity: 0; }
}
.flow-step { text-align: center; position: relative; z-index: 1; }
.flow-ico {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 30px -22px rgba(60,45,28,.7);
  transition: border-color var(--t), transform var(--t);
}
.flow-step:hover .flow-ico { border-color: var(--copper); transform: translateY(-3px); }
.flow-ico svg { width: 36px; height: 36px; stroke: var(--copper); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 9px;
}
.flow-step h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 10px; }
.flow-step p { font-size: 14.5px; color: var(--ink-2); margin: 0 auto; max-width: 30ch; }

@media (max-width: 820px) {
  .flow-grid { grid-template-columns: 1fr; gap: 34px; }
  .flow-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) { .flow-rail::after { animation: none; opacity: .6; } }

/* ---------- finish carousel ---------- */
.carousel { position: relative; }
.car-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--paper-sunk);
}
.car-track {
  display: flex;
  transition: transform .72s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* the process photographs are small files, so show three at a time rather
   than blowing one up across the whole column */
.car-slide { position: relative; flex: 0 0 33.3333%; }
.car-track > .car-slide + .car-slide { border-left: 1px solid var(--paper-sunk); }
@media (max-width: 900px) { .car-slide { flex-basis: 50%; } }
@media (max-width: 560px) { .car-slide { flex-basis: 100%; } }
.car-slide img {
  display: block; width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.car-tag {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  background: rgba(17,19,22,.88);
  color: #F2EFE9;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.car-tag b { font-weight: 500; }
.car-tag i { font-style: normal; color: #9C978E; }
.car-sw { width: 11px; height: 11px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; }

.car-bar {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; flex-wrap: wrap;
}
.car-dots { display: flex; gap: 7px; }
.car-dot {
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--hairline-2); border: 0; padding: 0; cursor: pointer;
  transition: background var(--t);
}
.car-dot[aria-current="true"] { background: var(--copper); }
.car-nav {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline-2); background: transparent;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
  color: var(--ink);
}
.car-nav:hover { border-color: var(--copper); color: var(--copper); }
.car-nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.car-label {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }


/* ---------- global reach ---------- */
.globe-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.globe-cv {
  width: min(100%, 480px);
  aspect-ratio: 1;
  height: auto;
  display: block;
  border-radius: 50%;
  background: #05080E;
  box-shadow:
    0 0 0 1px rgba(120,160,195,.14),
    0 40px 90px -50px rgba(8,14,24,.9),
    0 0 90px -30px rgba(80,150,200,.35);
}


.routes { display: grid; gap: 0; }
.route {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.route:first-child { border-top: 1px solid var(--hairline); }
.route b { font-size: 16px; font-weight: 600; }
.route .t {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; color: var(--copper); white-space: nowrap;
}
.route small { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }

/* ---------- currency switcher ---------- */
.cur {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--hairline-2); border-radius: var(--r);
}
.cur button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 8px; border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .06em; color: var(--dim);
  transition: background var(--t-fast), color var(--t-fast);
}
.cur button:hover { color: var(--ink); }
.cur button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 1080px) { .nav-in .cur { display: none; } }

/* ---------- process photo strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(10px,1.4vw,18px); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.strip figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-sunk); }
.strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--t-slow); }
.strip figure:hover img { transform: scale(1.04); }

/* ---------- footer desks ---------- */
.desk { margin-bottom: 22px; }
.desk b { display: block; color: #E7E3DB; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.desk span { display: block; font-size: 13.5px; color: #9B968E; line-height: 1.5; }
.pay { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pay span {
  padding: 5px 9px; border: 1px solid #2A2F36; border-radius: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #9B968E;
}

/* ---------- globe city list ---------- */
.cities {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 7px 9px; margin-top: 24px; max-width: 480px;
}
.cities span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--hairline-2); border-radius: 100px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.cities span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper); flex: none;
}

/* ---------- delivery ticker ---------- */
.tick-bar {
  display: flex; align-items: stretch;
  background: var(--machine);
  color: #D9D5CD;
  overflow: hidden;
  border-block: 1px solid #22272E;
}
.tick-head {
  display: flex; align-items: center; gap: 9px;
  padding: 0 18px 0 var(--gutter);
  flex: none;
  background: var(--machine);
  border-right: 1px solid #22272E;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #8C877E; white-space: nowrap;
  z-index: 2;
}
.tick-win { position: relative; overflow: hidden; flex: 1 1 auto; }
.tick-win::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 90px;
  background: linear-gradient(90deg, transparent, var(--machine));
  pointer-events: none;
}
.tick-run { display: flex; width: max-content; animation: tickrun 46s linear infinite; }
.tick-bar:hover .tick-run,
.tick-bar:focus-within .tick-run { animation-play-state: paused; }
@keyframes tickrun { to { transform: translateX(-50%); } }
.tick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: .07em;
  white-space: nowrap;
  border-right: 1px solid #1C2026;
}
.tick-item b { font-weight: 500; color: #F0ECE4; text-transform: uppercase; letter-spacing: .1em; }
.tick-item .t { color: var(--copper-lit); }
.tick-item .c { color: #7E7971; }
.tick-item .led { width: 5px; height: 5px; }
@media (prefers-reduced-motion: reduce) {
  .tick-run { animation: none; }
  .tick-win { overflow-x: auto; }
}
@media (max-width: 640px) {
  .tick-head { padding-left: 16px; font-size: 9px; letter-spacing: .14em; }
  .tick-item { padding: 12px 18px; font-size: 10.5px; }
}

/* ---------- finish tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(12px,1.6vw,22px); }
@media (max-width: 880px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  margin: 0; position: relative;
  border-radius: var(--r); overflow: hidden;
  background: var(--paper-sunk);
  border: 1px solid var(--hairline);
}
.tile img { width: 100%; aspect-ratio: 337/288; object-fit: cover; transition: transform var(--t-slow); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 4px;
  background: rgba(17,19,22,.88); color: #F2EFE9;
  backdrop-filter: blur(4px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase;
}
.tile figcaption b { font-weight: 500; }
.tile figcaption i { font-style: normal; color: #9C978E; }

/* the slideshow now carries photographs, so it wants a photo aspect */
.car-slide img { aspect-ratio: 4 / 3; }

/* ---------- offers panel: one place, stacked, reads like a voucher list ---------- */
.offer-panel {
  background: var(--paper-raised);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 56px -40px rgba(60,45,28,.6);
}
.offer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--machine);
  color: #EFEBE3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
}
.offer-head .led { margin-right: 2px; }
.offer-head span:last-child { margin-left: auto; color: #8C877E; letter-spacing: .14em; }

.offer-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 20px;
}
/* a perforated rule, like the tear line on a voucher */
.offer-row + .offer-row::before {
  content: "";
  position: absolute; left: 20px; right: 20px; top: 0;
  border-top: 1px dashed var(--hairline-2);
}
.offer-row + .offer-row::after {
  content: "";
  position: absolute; top: -7px; left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper);
  box-shadow: calc(100% + 26px) 0 0 var(--paper);
}
.offer-ico {
  width: 54px; height: 54px; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--paper-sunk);
  border: 1px solid var(--hairline);
}
.offer-ico svg { width: 26px; height: 26px; }
.offer-row h3 { font-size: clamp(1.02rem,1.4vw,1.2rem); margin-bottom: 5px; }
.offer-row p { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 46ch; }
.offer-row .worth {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sig-green);
  border: 1px solid color-mix(in srgb, var(--sig-green) 42%, transparent);
  border-radius: 100px; padding: 6px 12px; white-space: nowrap;
}
.offer-foot {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--paper-sunk);
}
.offer-foot .fine {
  font-size: 12.5px; color: var(--dim); margin: 0; flex: 1 1 220px;
}
@media (max-width: 620px) {
  .offer-row { grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 18px 16px; align-items: start; }
  .offer-ico { width: 44px; height: 44px; }
  .offer-ico svg { width: 22px; height: 22px; }
  .offer-row .worth { grid-column: 2; justify-self: start; margin-top: 4px; }
  .offer-row + .offer-row::before { left: 16px; right: 16px; }
}

/* the cross animation keeps working inside the smaller tile */
.x-draw .x { stroke: #C8402F; stroke-width: 4.5; stroke-linecap: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
  animation: xin 4.4s cubic-bezier(.5,0,.3,1) infinite; }
.x-draw .x:nth-of-type(2) { animation-delay: .18s; }
.x-draw .tick { fill: none; stroke: var(--sig-green); stroke-width: 4.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 34; stroke-dashoffset: 34; opacity: 0;
  animation: tickin 4.4s cubic-bezier(.5,0,.3,1) infinite; }
.x-draw .ring { fill: none; stroke: var(--hairline-2); stroke-width: 2; }
@keyframes xin {
  0%        { stroke-dashoffset: 24; opacity: 1; }
  12%, 46%  { stroke-dashoffset: 0;  opacity: 1; }
  56%, 100% { stroke-dashoffset: 0;  opacity: 0; }
}
@keyframes tickin {
  0%, 52%   { stroke-dashoffset: 34; opacity: 0; }
  60%       { opacity: 1; }
  74%, 94%  { stroke-dashoffset: 0;  opacity: 1; }
  100%      { stroke-dashoffset: 0;  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .x-draw .x { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .x-draw .tick { animation: none; opacity: 0; }
}

/* ---------- the spec ticker that runs under the nav on every page ---------- */
.spec-bar {
  position: relative;
  overflow: hidden;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--hairline);
}
.spec-bar::before,
.spec-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2;
  pointer-events: none;
}
.spec-bar::before { left: 0;  background: linear-gradient(90deg, var(--paper-raised), transparent); }
.spec-bar::after  { right: 0; background: linear-gradient(270deg, var(--paper-raised), transparent); }
.spec-run {
  display: flex; width: max-content;
  animation: specrun 58s linear infinite;
}
.spec-bar:hover .spec-run { animation-play-state: paused; }
@keyframes specrun { to { transform: translateX(-50%); } }
.spec-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap;
}
.spec-item::after {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--copper); opacity: .55; margin-left: 12px;
}
.spec-item b { color: var(--ink); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .spec-run { animation: none; }
  .spec-bar { overflow-x: auto; }
}
@media (max-width: 640px) {
  .spec-item { padding: 8px 15px; font-size: 9.5px; letter-spacing: .12em; }
  .spec-bar::before, .spec-bar::after { width: 36px; }
}

/* Earth photo and compact destination browser — October 2026. */
.global-reach { scroll-margin-top: 75px; }
.global-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 30px; }
.global-heading .eyebrow { margin-bottom: 14px; }
.global-heading h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.04; }
.global-intro { font-size: 15px; line-height: 1.65; color: var(--dim); max-width: 55ch; margin: 0; }
.global-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.earth-visual { margin: 0; position: relative; isolation: isolate; overflow: hidden; border-radius: 5px; background: var(--paper-raised); border: 1px solid var(--hairline); min-height: 470px; box-shadow: 0 26px 60px -46px rgba(60,45,28,.55); }
.earth-art { position: absolute; inset: 0; }
.earth-canvas { display: block; width: 100%; height: 100%; }

.earth-topline { position: absolute; z-index: 2; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--dim); font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .12em; }
.earth-motion { border: 1px solid var(--hairline-2); background: var(--paper); color: var(--ink-2); padding: 6px 9px; border-radius: 3px; font-size: 10px; cursor: pointer; letter-spacing: 0; }
.earth-motion:hover { border-color: var(--copper); color: var(--copper); }
.earth-visual figcaption { position: absolute; inset: auto 0 0; padding: 34px 22px 18px; background: linear-gradient(transparent, var(--paper-raised) 62%); color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; z-index: 2; }
.earth-origin { display: flex; align-items: center; gap: 7px; color: var(--dim); font: 9px 'IBM Plex Mono',monospace; letter-spacing: .07em; }
.earth-origin i { width: 5px; height: 5px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 3px rgba(168,98,47,.16); }

.destination-panel { min-width: 0; }
.destination-panel .routes { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 34px), transparent 100%);
                             mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 34px), transparent 100%); }
.destinations-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 13px; border-bottom: 1px solid var(--hairline-2); }
.destinations-heading h3 { font-size: 18px; letter-spacing: -.02em; }
.destinations-heading>span { font: 9px 'IBM Plex Mono',monospace; letter-spacing: .1em; color: var(--dim); white-space: nowrap; }
.global-reach .routes { display: block; height: 266px; overflow-y: auto; padding-right: 14px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--copper) var(--hairline); }
.global-reach .routes::-webkit-scrollbar { width: 5px; }
.global-reach .routes::-webkit-scrollbar-track { background: var(--hairline); }
.global-reach .routes::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 5px; }
.global-reach .routes:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.global-reach .route { padding: 14px 0; gap: 4px 14px; }
.global-reach .route:first-child { border-top: 0; }
.global-reach .route b { font-size: 14px; }
.global-reach .route .t { font-size: 11px; }
.global-reach .route small { font-size: 12px; line-height: 1.5; }
.destinations-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hairline-2); padding: 10px 0 14px; }
.destinations-footer p { font-size: 11px; margin: 0; color: var(--dim); }
.route-buttons { display: flex; gap: 5px; }
.route-buttons[hidden],.earth-motion[hidden] { display: none; }
.route-buttons button { width: 30px; height: 28px; border: 1px solid var(--hairline-2); border-radius: 3px; background: var(--paper-raised); cursor: pointer; font-size: 16px; line-height: 1; }
.route-buttons button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.route-buttons button:disabled { opacity: .35; cursor: default; }
.destination-panel .spec-list { margin: 0; }
.destination-panel .spec-row { padding-block: 7px; font-size: 11px; }
.destination-panel .spec-row .k,.destination-panel .spec-row .v { font-size: 11px; }
.transit-note { font-size: 11px; line-height: 1.5; color: var(--dim); margin: 13px 0 0; }
@media(max-width: 850px) {
  .global-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 25px; }
  .global-intro { max-width: 64ch; }
  .global-layout { gap: 28px; grid-template-columns: 1fr 1.05fr; }
  .earth-visual { min-height: 440px; }
  .earth-topline { top: 16px; left: 14px; right: 14px; font-size: 8px; letter-spacing: .04em; }
  .earth-visual figcaption { flex-direction: column; align-items: flex-start; gap: 8px; padding-inline: 14px; }
}
@media(max-width: 640px) {
  .global-layout { grid-template-columns: 1fr; }
  .earth-visual { min-height: 0; height: 390px; }
  .global-reach .routes { height: 250px; }
  .global-intro { font-size: 14px; }
  .earth-topline { left: 18px; right: 18px; }
  .earth-visual figcaption { flex-direction: row; align-items: center; padding-inline: 18px; }
}
@media(prefers-reduced-motion: reduce) {
}

/* two bands of the same colour in a row read as one stretch of empty page,
   so the join between them loses its padding */
.band--sunk + .band--sunk,
.machine + .machine { padding-top: 0; }
.band:not(.band--sunk):not(.machine) + .band:not(.band--sunk):not(.machine) { padding-top: 0; }

/* ---------- header: clear at the top, glass once you move ---------- */
.nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav[data-stuck="1"] {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}

/* ---------- headings drift down as their section passes ---------- */
[data-drift] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-drift] { transform: none !important; } }

/* ---------- essay: long-form prose for the About page ---------- */
.essay { max-width: 1120px; margin-inline: auto; }

.essay-part { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); }
.essay-part + .essay-part { margin-top: clamp(48px, 6vw, 92px); }
.essay-part > .eyebrow { margin: 10px 0 0; position: sticky; top: 104px; align-self: start; }

.essay-body { max-width: 68ch; }
.essay-body h2 { font-size: clamp(1.75rem, 3.1vw, 2.65rem); line-height: 1.02; margin: 0 0 26px; }
.essay-body h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.25;
  margin: 38px 0 12px;
  color: var(--ink);
}
.essay-body p {
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: none;
  margin: 0 0 1.25em;
}
.essay-body p strong { color: var(--ink); font-weight: 600; }
.essay-body p.first::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: .82;
  padding: .06em .12em 0 0;
  font-weight: 700;
  color: var(--copper);
}

.essay-quote {
  margin: clamp(32px, 4vw, 52px) 0;
  padding-left: clamp(20px, 2.4vw, 30px);
  border-left: 2px solid var(--copper);
}
.essay-quote p {
  font-size: clamp(1.25rem, 2.1vw, 1.72rem);
  line-height: 1.32;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

.essay-facts { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.essay-facts li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.essay-facts li b {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}

@media (max-width: 860px) {
  .essay-part { grid-template-columns: 1fr; gap: 14px; }
  .essay-part > .eyebrow { position: static; margin: 0 0 4px; }
  .essay-facts li { grid-template-columns: 1fr; gap: 5px; }
}

/* ---------- the two of us ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(30px, 4vw, 46px); }
.person { border-top: 2px solid var(--ink); padding-top: 20px; }
.person .role {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--copper);
  display: block; margin-bottom: 14px;
}
.person h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 12px; }
.person p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 42ch; }
.person a { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; display: inline-block; margin-top: 14px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* ---------- preloader: the mark draws itself, three traces in sequence ---------- */
.preload {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--paper);
  /* fail-safe: if the script never runs, the curtain still lifts */
  animation: preload-failsafe 0s 2.8s forwards;
}
.preload.is-done {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .52s cubic-bezier(.22,.61,.36,1), visibility 0s .52s;
}
@keyframes preload-failsafe { to { opacity: 0; visibility: hidden; } }

.preload-in { display: grid; justify-items: center; gap: 22px; }

.preload-mark { width: 62px; height: 59px; overflow: visible; }
.preload-mark polygon {
  clip-path: inset(0 100% 0 0);
  animation: preload-trace .52s cubic-bezier(.3,.8,.35,1) forwards;
}
.preload-mark polygon:nth-child(1) { animation-delay: .04s; }
.preload-mark polygon:nth-child(2) { animation-delay: .20s; }
.preload-mark polygon:nth-child(3) { animation-delay: .36s; }
@keyframes preload-trace { to { clip-path: inset(0 0 0 0); } }

.preload-txt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  animation: preload-fade .5s .54s forwards;
}
.preload-txt b { color: var(--ink); font-weight: 600; }
@keyframes preload-fade { to { opacity: 1; } }

.preload-bar {
  width: 118px;
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
  display: block;
}
.preload-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: preload-bar 1.5s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes preload-bar { 0% { transform: scaleX(0); } 62% { transform: scaleX(.72); } 100% { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .preload { animation-delay: 0s; }
  .preload-mark polygon, .preload-txt, .preload-bar i { animation: none; clip-path: none; opacity: 1; transform: none; }
}

/* ---------- order tracking ---------- */
.track-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3vw, 38px); max-width: 620px; }
.track-form input {
  flex: 1 1 280px;
  padding: 14px 16px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--ink);
}
.track-form input:focus-visible { outline: 2px solid var(--copper); outline-offset: 1px; }

.track-msg { margin-top: 18px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--dim); }
.track-msg[data-bad="1"] { color: var(--copper); }

.order { margin-top: clamp(34px, 4vw, 54px); }
.order-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px;
  padding-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.order-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.order-head .ref { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--dim); }
.order-state {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-2); background: var(--paper-raised); color: var(--ink-2);
}

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(28px, 3.5vw, 44px); }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

.order-spec { list-style: none; margin: 0; padding: 0; }
.order-spec li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
  font-size: 14.5px; color: var(--ink);
}
.order-spec li b {
  font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); flex: none; min-width: 150px;
}
.order-spec li span { margin-left: auto; text-align: right; }

.tl { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 10px; width: 1px; background: var(--hairline-2); }
.tl li { position: relative; padding-bottom: 26px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -30px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--hairline-2);
}
.tl li[data-state="done"]::before { background: var(--ink); border-color: var(--ink); }
.tl li[data-state="current"]::before {
  background: var(--copper); border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(168,98,47,.16);
}
.tl h3 { font-size: 1.02rem; line-height: 1.25; margin: 0 0 5px; }
.tl li[data-state="pending"] h3 { color: var(--dim); font-weight: 500; }
.tl time {
  display: block; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .1em; color: var(--dim); margin-bottom: 7px;
}
.tl p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 46ch; }
.tl li[data-state="current"] h3 { color: var(--copper); }

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