/* ════════════════════════════════════════════════════════════════════════
   PANOPTÈS · Attic Black-Figure Design System
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Attic palette */
  --tc:  #D4763A;   /* terracotta · page */
  --tc2: #B05715;   /* terracotta deep */
  --fg:  #1A1208;   /* figure dark */
  --fg2: #2A1D0E;   /* figure dark soft */
  --cr:  #F0E2C0;   /* cream */
  --cr2: #E5D3A6;   /* cream deep */
  --am:  #D4720A;   /* amber */
  --cd:  #0D0A07;   /* card dark */
  --lt:  #F2EAD8;   /* light cream / viewport fill */

  /* Status */
  --s1: #1D9E75;   /* running */
  --s2: #BA7517;   /* at-risk */
  --s3: #C44B1E;   /* threatened */
  --s4: #A32D2D;   /* deadlock */
  --pur: #7F77DD;  /* attention diagonal */

  /* Type */
  --ff-serif: Georgia, 'Times New Roman', serif;
  --ff-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ff-sans:  system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --r-1: 6px;
  --r-2: 14px;
  --r-3: 18px;
  --r-4: 22px;

  --pad: clamp(20px, 2.4vw, 40px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #DAC89E;
  color: var(--fg);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; cursor: pointer; }

/* Page switching */
.page {
  display: none;
  min-height: 100vh;
}
.page[data-active="true"] { display: block; }

/* Dot status driver */
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--s1);
  flex: 0 0 10px;
  box-shadow: 0 0 0 2px color-mix(in oklab, currentColor, transparent 80%);
}
.dot[data-status="s1"] { background: var(--s1); }
.dot[data-status="s2"] { background: var(--s2); }
.dot[data-status="s3"] { background: var(--s3); }
.dot[data-status="s4"] { background: var(--s4); }
.dot.pulse,
.dot[data-status="s2"],
.dot[data-status="s3"],
.dot[data-status="s4"] {
  position: relative;
}
.dot[data-status="s2"]::after,
.dot[data-status="s3"]::after,
.dot[data-status="s4"]::after {
  content:"";
  position:absolute; inset:-4px;
  border-radius:50%;
  border:1.5px solid currentColor;
  color: var(--s2);
  animation: pulse 1.8s ease-out infinite;
  pointer-events:none;
}
.dot[data-status="s2"]::after { color: var(--s2); }
.dot[data-status="s3"]::after { color: var(--s3); }
.dot[data-status="s4"]::after { color: var(--s4); }

@keyframes pulse {
  0%   { transform: scale(.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Meander strip helpers */
.meander-strip,
.meander-rail {
  width: 100%;
  height: 14px;
  color: var(--fg);
}
.meander-rail--cream { color: var(--cr); }

/* ─────────────────────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  background: var(--fg);
  color: var(--cr);
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--fg);
  color: var(--cr);
  padding: 18px 32px;
  font-size: 16px;
}
.btn--primary:not(:disabled):hover {
  background: var(--am);
  border-color: var(--am);
  color: var(--fg);
}
.btn--lg .btn__arrow { font-size: 20px; transition: transform .2s ease; }
.btn--lg:not(:disabled):hover .btn__arrow { transform: translateX(4px); }

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: transparent;
  color: var(--fg);
}

.btn--pill {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 999px;
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: var(--cr); }

.btn--ghost-cream {
  background: transparent;
  color: var(--cr);
  border-color: var(--cr);
}
.btn--ghost-cream:hover { background: var(--cr); color: var(--fg); }

.btn--danger {
  background: var(--s4);
  border-color: var(--s4);
  color: var(--cr);
}
.btn--danger:hover { background: #c33b3b; border-color: #c33b3b; }

.btn__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--s1);
  display: inline-block;
}
.btn__dot--blink { background: var(--cr); animation: blink 1.3s ease-in-out infinite; }
@keyframes blink {
  50% { opacity: .3; }
}

/* External-link icon on nav shortcut buttons */
.btn__ext {
  font-size: 11px;
  letter-spacing: 0;
  opacity: .7;
  margin-left: -2px;
}


/* ════════════════════════════════════════════════════════════════════════
   PAGE 1 · LOADING
   ════════════════════════════════════════════════════════════════════════ */
#page-loading {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(212,114,10,.12), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(26,18,8,.10), transparent 60%),
    #DAC89E;
  overflow: hidden;
}
#page-loading[data-active="true"] {
  display: flex;
  flex-direction: column;
}

.meander-strip--top    { padding: 14px var(--pad) 8px; }
.meander-strip--bottom { padding: 8px var(--pad) 14px; margin-top: auto; }

.boot-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px var(--pad) 18px;
  color: var(--fg);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.boot-bar__mark { color: var(--fg); display:inline-flex; align-items:center; }
.boot-bar__instance { font-weight: 600; }
.boot-bar__build { margin-left: auto; opacity: .75; }

/* Argos silhouette — looming background watcher on the loading screen */
.boot-figure {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: clamp(340px, 38vw, 620px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: drop-shadow(0 30px 50px rgba(26,18,8,.22));
  animation: bootFigureIn 1.8s cubic-bezier(.2,.7,.2,1) .4s both;
  mix-blend-mode: multiply;
}
.boot-figure img { width: 100%; height: auto; display: block; }
@keyframes bootFigureIn {
  from { transform: translate(40px, 30px); opacity: 0; }
  to   { transform: translate(0, 0); opacity: calc(.22 + .35 * var(--orn, .72)); }
}
@media (max-width: 900px) { .boot-figure { display: none; } }

/* Floating chips */
.boot-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fg);
  color: var(--cr);
  padding: 14px 18px;
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .04em;
  box-shadow: 0 24px 60px -20px rgba(26,18,8,.6), 0 1px 0 var(--am) inset;
  z-index: 5;
  min-width: 240px;
  animation: chipIn .9s cubic-bezier(.2,.8,.2,1) both;
}
.boot-chip--top { top: 14%; right: 7%; animation-delay: .8s; }
.boot-chip--bottom { bottom: 22%; left: 6%; animation-delay: 1.2s; }
.boot-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--s1); flex: 0 0 9px; }
.boot-chip__body { display: flex; flex-direction: column; gap: 2px; }
.boot-chip__label { font-size: 10px; opacity: .55; text-transform: uppercase; letter-spacing: .18em; }
.boot-chip__value { font-size: 14px; font-weight: 600; color: var(--cr); }
.boot-chip__corner { margin-left: auto; color: var(--am); font-size: 18px; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

/* Stage */
.boot-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: 8px var(--pad);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* The eye */
.boot-eye {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  perspective: 900px;
  perspective-origin: 50% 50%;
  /* The eye is a fixed installation — the iris rotates inside, but the eye
     itself never translates. Lock the container against any inherited
     transform leakage from animations on neighbours. */
  transform: none !important;
}
.boot-eye__svg { width: 100%; height: 100%; display: block; }
.boot-eye__iris {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}
/* Satellite orbit foundation — JS sets the animation properties dynamically
   on .boot-eye__satellites + each .boot-eye__sat after boot completes. */
.boot-eye__satellites {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
  transition: opacity .6s ease 1.0s;
}
.boot-eye__sat {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
@keyframes orbit {
  to { transform: rotate(360deg); }
}
@keyframes orbitCounter {
  to { transform: rotate(-360deg); }
}

/* The eyelid opening — used both as the clipPath and as the visible rim.
   ScaleY drives open ↔ closed; the same element handles the blink loop. */
.boot-eye__opening {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scaleY(.04);
  transition: transform 1.8s cubic-bezier(.34,1.56,.64,1) .15s;
}
.boot-eye__lashes {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: scaleY(.2) translateY(18px);
  transition: opacity .5s ease 1.1s, transform 1s cubic-bezier(.34,1.56,.64,1) 1.1s;
}

.boot-eye__ring {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spin 60s linear infinite;
}

/* Open state — fired by [data-boot="open"] on <body> when the handshake finishes */
body[data-boot="open"] .boot-eye__opening    { transform: scaleY(1); animation: eyeBlink 6.5s ease-in-out 3.4s infinite; }
body[data-boot="open"] .boot-eye__satellites { opacity: var(--orn-sat, 1); }
body[data-boot="open"] .boot-eye__lashes     { opacity: var(--orn-cross, 1); transform: scaleY(1) translateY(0); }

@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.04); }
  98%           { transform: scaleY(1); }
}

/* The eyeball — once open, rotates in 3D toward the Enter button so the
   entire iris pattern tilts as one sphere face, not just the inner pupil. */
.boot-eye__pupil {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(.34,1.56,.64,1) 2.2s;
}
body[data-boot="open"] .boot-eye__pupil {
  transform: rotateY(20deg) rotateX(-12deg);
}
/* When JS is driving the rotation it sets inline transforms every frame —
   make the transition kick in only on the FIRST set (initial settle), then
   the JS adds .is-tracking which switches to no-transition for live updates. */
.boot-eye__pupil.is-tracking { transition: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.boot-eye__tick {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--fg);
  opacity: .55;
}
.boot-eye__tick--n { top: -2px; left: 50%; transform: translateX(-50%); }
.boot-eye__tick--s { bottom: -2px; left: 50%; transform: translateX(-50%); }
.boot-eye__tick--e { right: -8px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }
.boot-eye__tick--w { left: -8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }

/* Identity column */
.boot-identity {
  max-width: 540px;
}
.boot-identity__kicker {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--fg);
  padding: 4px 10px;
  border: 1.2px solid var(--fg);
  border-radius: 999px;
  margin-bottom: 18px;
}
.boot-identity__title {
  font-family: var(--ff-serif);
  font-size: clamp(56px, 8vw, 112px);
  line-height: .94;
  letter-spacing: -.015em;
  color: var(--fg);
  margin: 0 0 14px;
  font-weight: 400;
}
.boot-identity__title::after {
  content: "·";
  color: var(--am);
  margin-left: .15em;
}
.boot-identity__subtitle {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--fg);
  opacity: .75;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.boot-sequence {
  list-style: none;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--fg);
  color: var(--cr);
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 16px 40px -16px rgba(26,18,8,.5);
}
.boot-sequence__line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.boot-sequence__line.is-shown { opacity: 1; transform: translateY(0); }
.boot-sequence__t { color: var(--am); }
.boot-sequence__msg { color: var(--cr); }
.boot-sequence__ok { color: var(--s1); letter-spacing: .16em; }

.boot-progress-block { margin-bottom: 26px; }
.boot-progress {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(26,18,8,.18);
  overflow: hidden;
}
.boot-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fg), var(--am));
  border-radius: 3px;
  transition: width .12s linear;
}
.boot-progress__ticks {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 19px, rgba(26,18,8,.25) 19px 20px);
  pointer-events: none;
}
.boot-progress__meta {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
}
.boot-progress__phase { opacity: .65; }
.boot-progress__pct { font-weight: 600; }

.boot-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; }
.boot-cta__hint {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .6;
}
.boot-cta__hint.is-ready { opacity: 1; color: var(--s1); }

/* Glow that "lights up" the Enter button the moment the eye opens */
#btn-enter {
  position: relative;
  z-index: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .6s ease;
}
body[data-boot="open"] #btn-enter {
  background: var(--am);
  border-color: var(--am);
  color: var(--fg);
  box-shadow:
    0 0 0 0 color-mix(in oklab, var(--am), transparent 0%),
    0 18px 60px -10px color-mix(in oklab, var(--am), transparent 30%),
    0 0 80px 8px color-mix(in oklab, var(--am), transparent 60%);
  animation: enterAwaken 2.8s ease-out 0s 1, enterPulse 3.2s ease-in-out 2.8s infinite;
}
@keyframes enterAwaken {
  0%   { transform: scale(1); filter: brightness(1); }
  20%  { transform: scale(1.04); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes enterPulse {
  0%, 100% {
    box-shadow:
      0 18px 60px -10px color-mix(in oklab, var(--am), transparent 40%),
      0 0 60px 4px color-mix(in oklab, var(--am), transparent 70%);
  }
  50% {
    box-shadow:
      0 18px 60px -10px color-mix(in oklab, var(--am), transparent 25%),
      0 0 110px 16px color-mix(in oklab, var(--am), transparent 50%);
  }
}

/* Soft radial spill behind the CTA when boot completes */
.boot-cta::before {
  content: "";
  position: absolute;
  left: -40px; right: 40%; top: -60px; bottom: -60px;
  background: radial-gradient(ellipse at left center,
    color-mix(in oklab, var(--am), transparent 70%) 0%,
    transparent 65%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 0;
}
body[data-boot="open"] .boot-cta::before { opacity: 1; }


/* ════════════════════════════════════════════════════════════════════════
   PAGE 2 · DASHBOARD
   ════════════════════════════════════════════════════════════════════════ */
#page-dashboard {
  position: relative;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(212,114,10,.12), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(26,18,8,.10), transparent 60%),
    #DAC89E;
  padding-bottom: 110px;
}

/* Top decorative rail */
.meander-rail { padding: 8px var(--pad); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--fg);
  color: var(--cr);
  border-bottom: 1px solid color-mix(in oklab, var(--cr), transparent 88%);
}
.nav__inner {
  max-width: 1640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 28px;
  align-items: center;
  padding: 14px var(--pad);
}

/* External services + Connect cluster on the right edge of the nav */
.nav-services {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--cr); }
.nav-logo__eye { color: var(--cr); display: flex; align-items: center; }
.nav-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo__greek {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--am);
}
.nav-logo__name {
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: -.01em;
  font-weight: 400;
}

.nav-links {
  display: flex; gap: 22px; justify-content: center;
}
.nav-links__a {
  text-decoration: none;
  color: color-mix(in oklab, var(--cr), transparent 28%);
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 4px;
  position: relative;
  transition: color .15s ease;
}
.nav-links__a:hover { color: var(--cr); }
.nav-links__a.is-active { color: var(--cr); }
.nav-links__a.is-active::after {
  content:"";
  position: absolute; left:0; right:0; bottom: 0;
  height: 2px; background: var(--am);
}

.nav-dots {
  display: flex; gap: 14px;
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--cr), transparent 80%);
  border-radius: 999px;
}
.nav-dots__item { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--cr), transparent 35%); }
.nav-dots .dot { width: 8px; height: 8px; flex: 0 0 8px; }

.nav-clock {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
  font-family: var(--ff-mono);
}
.nav-clock__time {
  font-size: 14px; color: var(--cr); letter-spacing: .04em;
}
.nav-clock__sync {
  font-size: 10px; color: var(--s1); letter-spacing: .12em; text-transform: uppercase;
}

#nav-cta-btn { background: transparent; color: var(--cr); border-color: var(--cr); }
#nav-cta-btn:hover { background: var(--cr); color: var(--fg); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) var(--pad) 30px; }
.hero__inner {
  max-width: 1640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--fg);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero__h {
  font-family: var(--ff-serif);
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.018em;
  margin: 0 0 22px;
  color: var(--fg);
  font-weight: 400;
  text-wrap: balance;
}
.hero__h--amber { color: var(--am); font-style: italic; display: inline-block; padding-left: .25em; }
#hero-headline-1 { display: inline-block; }
.hero__sub {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.hero__actionrow { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__count {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1.2px solid var(--fg);
  border-radius: 999px;
  color: var(--fg);
}
.hero__count--warn { background: var(--fg); color: var(--cr); border-color: var(--fg); }
.hero__count--danger {
  background: var(--s3);
  color: var(--cr);
  border-color: var(--s3);
}

.hero__chips { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* Cursor group on the hero — two stacked cursor chips, slight offsets */
.hero-cursors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  align-items: flex-end;
}
.hero-chip--cursor-1 { transform: translateX(40px); }
.hero-chip--cursor-2 { transform: translateX(8px); background: var(--cr); }

.hero-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fg);
  color: var(--cr);
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 20px 50px -22px rgba(26,18,8,.6);
  position: relative;
}
.hero-chip--alt { transform: translateX(-22px); }
.hero-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--s1); flex: 0 0 9px; }
.hero-chip__dot[data-status="s3"] { background: var(--s3); }
.hero-chip__body { display: flex; flex-direction: column; }
.hero-chip__label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in oklab, var(--cr), transparent 50%); }
.hero-chip__value { font-family: var(--ff-mono); font-size: 16px; font-weight: 600; }
.hero-chip__delta { margin-left: auto; font-family: var(--ff-mono); font-size: 12px; color: var(--am); letter-spacing: .08em; }

.hero-chip--cursor {
  background: var(--cr);
  color: var(--fg);
  padding: 8px 14px 8px 8px;
  align-self: flex-end;
  transform: translateX(40px);
  box-shadow: 0 12px 30px -16px rgba(26,18,8,.4);
}
.cursor-svg { display: flex; }
.hero-chip--cursor .hero-chip__value { font-family: var(--ff-mono); font-size: 12px; color: var(--fg); }

.hero__separator {
  margin-top: 30px;
  color: var(--fg);
}

/* Bento grid */
.bento {
  max-width: 1640px;
  margin: 30px auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(440px, auto);
  gap: 22px;
}

#card-litellm { grid-column: span 2; }
#card-attention { grid-column: span 3; min-height: 380px; }
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  #card-litellm, #card-attention { grid-column: span 2; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  #card-litellm, #card-attention { grid-column: span 1; }
}

/* Card base */
.card {
  position: relative;
  background: var(--cd);
  color: var(--cr);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 30px 60px -32px rgba(0,0,0,.55),
    0 1px 0 color-mix(in oklab, var(--cr), transparent 88%) inset;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  /* status accent line at top */
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 2px;
  background: var(--s1);
  border-radius: 0 0 2px 2px;
}
.card[data-status="s1"]::before { background: var(--s1); }
.card[data-status="s2"]::before { background: var(--s2); }
.card[data-status="s3"]::before { background: var(--s3); }
.card[data-status="s4"]::before { background: var(--s4); }

/* viewport */
.viewport {
  flex: 1 1 auto;
  min-height: 170px;
  background: var(--lt);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  /* subtle grid hint — bg only, no DOM content */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26,18,8,.10) 1px, transparent 1px);
  background-size: 14px 14px;
  background-color: var(--lt);
}
.viewport::before {
  /* corner crosshair */
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(var(--fg), var(--fg)) top left / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) top left / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) top right / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) top right / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) bottom right / 1px 14px no-repeat;
  opacity: .55;
}
.viewport::after {
  content: attr(data-geometry);
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .55;
}
.viewport--wide { min-height: 170px; }

/* card head */
.card__head {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid color-mix(in oklab, var(--cr), transparent 88%);
  padding-bottom: 12px;
}
.card__greek {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--cr);
}
.card__service {
  font-family: var(--ff-serif);
  font-size: 16px;
  color: var(--cr);
  letter-spacing: .005em;
}
.card__service::before { content: "·"; margin-right: 8px; color: var(--am); }
.card__dot { margin-left: auto; }
.card[data-status="s2"] .card__dot { color: var(--s2); }
.card[data-status="s3"] .card__dot { color: var(--s3); }
.card__tag {
  margin-left: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--am);
  border: 1px solid var(--am);
  border-radius: 999px;
  padding: 2px 8px;
}
.card__tag--warn { color: var(--s3); border-color: var(--s3); }

/* arithmetic */
.card__arith {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--am);
  letter-spacing: .02em;
}
.card__arith em {
  font-style: normal;
  color: var(--cr);
  font-weight: 600;
}
.card__arith__sep {
  color: color-mix(in oklab, var(--cr), transparent 60%);
}

/* description */
.card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--cr), transparent 25%);
  text-wrap: pretty;
}

/* footer */
.card__foot {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in oklab, var(--cr), transparent 84%);
}
.metrics { display: flex; gap: 16px; flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; line-height: 1.1; }
.metric__k {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--cr), transparent 55%);
}
.metric__v {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--cr);
}

.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.action {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--s1);
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.card[data-status="s1"] .action { color: var(--s1); }
.card[data-status="s2"] .action { color: var(--s2); }
.card[data-status="s3"] .action { color: var(--s3); }
.action:hover {
  background: currentColor;
  transform: translateY(-1px);
}
.action:hover { color: var(--cd); }
.card[data-status="s1"] .action:hover { background: var(--s1); color: var(--cd); }
.card[data-status="s2"] .action:hover { background: var(--s2); color: var(--cd); }
.card[data-status="s3"] .action:hover { background: var(--s3); color: var(--cd); }

/* Threatened decoration */
.card--threatened {
  outline: 1px dashed color-mix(in oklab, var(--s3), transparent 50%);
  outline-offset: -4px;
}
.card--threatened .viewport {
  background-color: color-mix(in oklab, var(--lt), var(--s3) 8%);
}

/* Flancs (envoy corner pips) */
.flanc {
  position: absolute;
  width: 16px; height: 16px;
  border: 1.5px solid var(--s2);
  pointer-events: none;
}
.flanc--tl { top: 8px;    left: 8px;    border-right: none;  border-bottom: none; }
.flanc--tr { top: 8px;    right: 8px;   border-left: none;   border-bottom: none; }
.flanc--bl { bottom: 8px; left: 8px;    border-right: none;  border-top: none; }
.flanc--br { bottom: 8px; right: 8px;   border-left: none;   border-top: none; }
.flanc[data-status="s1"] { border-color: var(--s1); }
.flanc[data-status="s2"] { border-color: var(--s2); }
.flanc[data-status="s3"] { border-color: var(--s3); }
.flanc[data-status="s4"] { border-color: var(--s4); }

/* attention card viewport — small geometry strip at top, like other cards */
.viewport--attention {
  min-height: 70px;
  margin-bottom: 6px;
  background-color: var(--lt);
}

/* Attention card */
.card--attention {
  background: var(--cd);
  padding: 22px;
}
.card--attention::before { background: var(--pur); }
.card__head--dark { padding-bottom: 14px; }
.card__greek--cream { color: var(--cr); letter-spacing: .3em; }
.card__service--cream { color: var(--cr); }
.card__attn-legend {
  margin-left: auto;
  display: flex; gap: 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--cr), transparent 35%);
}
.legend-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

.attn-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.attn-grid {
  display: grid;
  grid-template-columns: 90px repeat(5, 1fr);
  grid-template-rows: 32px repeat(5, 1fr);
  gap: 6px;
  min-height: 260px;
}
.attn-cell {
  background: #3a2a14;
  border-radius: 4px;
  position: relative;
}
.attn-cell--diag {
  background: transparent;
  border: 1.5px solid var(--pur);
}
.attn-cell--diag::after {
  content: "";
  position: absolute; inset: 2px;
  background: color-mix(in oklab, var(--pur), transparent 70%);
  border-radius: 2px;
}
.attn-cell--corner { background: transparent; }
.attn-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--cr), transparent 35%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}
.attn-label--col {
  justify-content: center;
  padding-right: 0;
  text-align: center;
}

.attn-summary {
  background: color-mix(in oklab, var(--cd), var(--cr) 4%);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--cr);
}
.attn-summary h4 { margin: 0 0 10px; font-family: var(--ff-serif); font-size: 18px; font-weight: 400; letter-spacing: .005em; }
.attn-summary ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.attn-summary li { font-size: 13px; color: color-mix(in oklab, var(--cr), transparent 18%); line-height: 1.45; }
.attn-summary li strong { color: var(--am); font-family: var(--ff-mono); font-weight: 500; letter-spacing: .04em; }
.attn-summary__foot { font-family: var(--ff-mono); font-size: 11px; color: color-mix(in oklab, var(--cr), transparent 55%); letter-spacing: .04em; }

@media (max-width: 960px) {
  .attn-wrap { grid-template-columns: 1fr; }
}

/* Action bar */
.actionbar {
  position: sticky;
  bottom: 16px;
  margin-top: 36px;
  z-index: 15;
  padding: 0 var(--pad);
}
.actionbar__inner {
  max-width: 1640px;
  margin: 0 auto;
  background: var(--fg);
  color: var(--cr);
  border-radius: 999px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px -20px rgba(26,18,8,.55);
}
.actionbar__group { display: flex; gap: 10px; align-items: center; }
.actionbar__group--center { justify-content: center; gap: 14px; }
.actionbar__group--end { justify-content: flex-end; }
.actionbar__greek {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--am);
}
.actionbar__sync {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cr);
}
.actionbar__pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--s1);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--s1), transparent 30%);
  animation: pip 2s ease-in-out infinite;
}
@keyframes pip {
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--s1), transparent 80%); }
}

.actionbar .btn--pill.btn--ghost {
  color: var(--cr); border-color: color-mix(in oklab, var(--cr), transparent 70%);
}
.actionbar .btn--pill.btn--ghost:hover { background: var(--cr); color: var(--fg); border-color: var(--cr); }

/* HITL toggle button */
.hitl-toggle {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 30;
  display: flex; align-items: center; gap: 10px;
  background: var(--fg);
  color: var(--cr);
  border: 1.5px solid var(--am);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px -18px rgba(26,18,8,.6);
  transition: transform .15s ease, background .15s ease;
}
.hitl-toggle:hover { transform: translateY(-2px); }
.hitl-toggle__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--am);
  animation: blink 1.5s ease-in-out infinite;
}
.hitl-toggle__count {
  background: var(--am); color: var(--fg);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}


/* ════════════════════════════════════════════════════════════════════════
   HITL PANEL
   ════════════════════════════════════════════════════════════════════════ */
.hitl {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(440px, 96vw);
  background: var(--fg);
  color: var(--cr);
  z-index: 40;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -20px rgba(0,0,0,.5);
}
.hitl[data-open="true"] { transform: translateX(0); }
.hitl__head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid color-mix(in oklab, var(--cr), transparent 88%);
  display: flex; align-items: flex-start; gap: 18px;
}
.hitl__head h3 {
  margin: 4px 0 6px;
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.005em;
}
.hitl__head p { margin: 0; font-size: 12px; color: color-mix(in oklab, var(--cr), transparent 40%); line-height: 1.45; }
.hitl__greek {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--am);
}
.hitl__close {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--cr), transparent 70%);
  color: var(--cr);
  font-size: 14px;
  transition: background .15s ease;
}
.hitl__close:hover { background: var(--cr); color: var(--fg); }

.hitl__list { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }

.hitl__item {
  background: color-mix(in oklab, var(--fg), var(--cr) 6%);
  border-radius: 8px;
  padding: 16px;
  border-left: 3px solid var(--am);
}
.hitl__item[data-priority="high"] { border-left-color: var(--s3); }
.hitl__item[data-priority="mid"]  { border-left-color: var(--am); }
.hitl__item[data-priority="low"]  { border-left-color: var(--s1); }

.hitl__item-head {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--cr), transparent 45%);
  margin-bottom: 8px;
}
.hitl__item h4 { margin: 0 0 6px; font-family: var(--ff-serif); font-size: 17px; font-weight: 400; color: var(--cr); letter-spacing: -.005em; }
.hitl__item p { margin: 0 0 12px; font-size: 13px; color: color-mix(in oklab, var(--cr), transparent 25%); line-height: 1.45; }

.hitl__actions { display: flex; gap: 6px; }
.hitl__btn {
  flex: 1;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.hitl__btn--approve { color: var(--s1); }
.hitl__btn--reject  { color: var(--s3); }
.hitl__btn--defer   { color: var(--am); }
.hitl__btn:hover { background: currentColor; }
.hitl__btn--approve:hover { color: var(--fg); background: var(--s1); }
.hitl__btn--reject:hover  { color: var(--fg); background: var(--s3); }
.hitl__btn--defer:hover   { color: var(--fg); background: var(--am); }


/* ════════════════════════════════════════════════════════════════════════
   PAGE 3 · ABOUT
   ════════════════════════════════════════════════════════════════════════ */
.page--about {
  background: #DAC89E;
  color: var(--fg);
  padding-bottom: 0;
}

.about-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px;
  padding: 16px var(--pad);
  background: color-mix(in oklab, var(--tc), var(--cr) 5%);
  border-bottom: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
  backdrop-filter: blur(8px);
}
.about-nav__home {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.about-nav__links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.about-nav__links a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in oklab, var(--fg), transparent 35%);
  transition: color .15s ease;
}
.about-nav__links a:hover { color: var(--fg); }
.about-nav .btn { color: var(--fg); border-color: var(--fg); }
.about-nav .btn:hover { background: var(--fg); color: var(--cr); }

/* About hero */
.about-hero { padding: clamp(48px, 8vw, 120px) var(--pad) clamp(48px, 6vw, 100px); }
.about-hero__grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-hero__kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--fg);
  text-transform: uppercase;
  display: inline-block;
  padding-left: 36px;
  position: relative;
  margin-bottom: 28px;
}
.about-hero__kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 24px; height: 1px; background: var(--fg);
}
.about-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(80px, 14vw, 200px);
  line-height: .9;
  letter-spacing: -.025em;
  margin: 0 0 28px;
  font-weight: 400;
  color: var(--fg);
}
.about-hero__lede {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.about-hero__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px;
  font-family: var(--ff-mono);
  font-size: 12px;
  margin: 0;
  max-width: 520px;
}
.about-hero__meta dt {
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg), transparent 45%);
  margin-bottom: 2px;
}
.about-hero__meta dd {
  margin: 0;
  color: var(--fg);
  border-top: 1px solid var(--fg);
  padding-top: 6px;
}

.about-hero__figure { position: relative; }
.about-hero__plaque {
  background: var(--fg);
  border-radius: 10px;
  padding: 14px 14px 18px;
  box-shadow: 0 30px 70px -30px rgba(26,18,8,.55);
  position: relative;
}
.about-hero__plaque img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  filter: contrast(1.05) saturate(.95);
}

/* When the plaque is the figure-only silhouette, give it room to breathe
   and let the background be the terracotta page so the black-figure reads
   the way it would on an actual pot. */
.about-hero__plaque--figure {
  background: color-mix(in oklab, var(--tc), var(--cr) 8%);
  padding: 22px 18px 16px;
}
.about-hero__plaque--figure img {
  aspect-ratio: 601/687;
  object-fit: contain;
  background: transparent;
  filter: none;
  border-radius: 4px;
}
.about-hero__plaque--figure figcaption { color: var(--fg); }
.about-hero__plaque--figure .about-hero__plaque__sub { color: color-mix(in oklab, var(--fg), transparent 40%); }
.about-hero__plaque__inv {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg), transparent 50%);
  background: color-mix(in oklab, var(--cr), transparent 60%);
  padding: 4px 8px;
  border-radius: 3px;
}

/* Gallery item that holds the cut-out figure — show it on the terracotta
   instead of cropping it inside a dark frame. */
.gallery .gallery__item--figure { background: color-mix(in oklab, var(--tc), var(--cr) 6%); }
.gallery .gallery__item--figure img { object-fit: contain; padding: 18px; }
.gallery .gallery__item--figure figcaption { background: linear-gradient(transparent, rgba(26,18,8,.7)); color: var(--cr); }

.about-hero__plaque figcaption {
  display: flex; justify-content: space-between;
  padding: 12px 4px 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cr);
}
.about-hero__plaque__sub { color: color-mix(in oklab, var(--cr), transparent 40%); }
.about-hero__chips {
  position: absolute; left: -22px; bottom: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cr);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px -16px rgba(26,18,8,.4);
}
.about-chip i { width: 8px; height: 8px; border-radius: 50%; }
.about-chip i.dot[data-status="s1"] { background: var(--s1); }
.about-chip i.dot[data-status="s2"] { background: var(--s2); }
.about-chip i.dot[data-status="s3"] { background: var(--s3); }

@media (max-width: 900px) {
  .about-hero__grid { grid-template-columns: 1fr; }
}

.about-section-mark {
  color: var(--fg);
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Sections */
.about-section {
  padding: clamp(60px, 8vw, 120px) var(--pad);
  max-width: 1640px;
  margin: 0 auto;
}
.about-section--dark {
  background: var(--fg);
  color: var(--cr);
  max-width: 100%;
  margin: 0;
}
.about-section--dark .about-section__head h2 { color: var(--cr); }
.about-section--dark .about-section__head p { color: color-mix(in oklab, var(--cr), transparent 25%); }
.about-section--dark .about-section__num { color: var(--am); }

.about-section__head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px 32px;
  align-items: baseline;
  margin-bottom: 56px;
  max-width: 1200px;
}
.about-section__num {
  font-family: var(--ff-mono);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--am);
  grid-row: span 2;
  border-top: 1.5px solid var(--am);
  padding-top: 8px;
  align-self: start;
}
.about-section__head h2 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--fg);
  line-height: 1.05;
}
.about-section__head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  max-width: 720px;
  color: color-mix(in oklab, var(--fg), transparent 25%);
  text-wrap: pretty;
}

/* Game list */
.game-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--fg);
}
.game {
  display: grid;
  grid-template-columns: 220px 28px 240px 28px 220px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg), transparent 75%);
}
.game__greek {
  font-family: var(--ff-mono);
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--fg);
  font-weight: 500;
}
.game__arrow { color: var(--am); font-family: var(--ff-mono); font-size: 18px; text-align: center; }
.game__arrow--alt { color: var(--fg); }
.game__math {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: .04em;
  padding: 6px 12px;
  border: 1.2px dashed var(--fg);
  border-radius: 4px;
  text-align: center;
}
.game__role {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--am);
}
.game__caption {
  font-size: 13.5px;
  color: color-mix(in oklab, var(--fg), transparent 30%);
  line-height: 1.45;
  text-wrap: pretty;
}
@media (max-width: 1100px) {
  .game { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .game__arrow { display: none; }
}

/* Pipeline */
.pipeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid color-mix(in oklab, var(--cr), transparent 78%);
  border-left: 1px solid color-mix(in oklab, var(--cr), transparent 78%);
}
.pipeline__step {
  border-right: 1px solid color-mix(in oklab, var(--cr), transparent 78%);
  border-bottom: 1px solid color-mix(in oklab, var(--cr), transparent 78%);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.pipeline__step:hover { background: color-mix(in oklab, var(--fg), var(--am) 5%); }
.pipeline__n {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--am);
}
.pipeline__step h3 {
  margin: 4px 0;
  font-family: var(--ff-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--cr);
}
.pipeline__step p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in oklab, var(--cr), transparent 30%);
  line-height: 1.5;
  text-wrap: pretty;
}
.pipeline__step code {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--am);
  padding: 6px 10px;
  border: 1px dashed color-mix(in oklab, var(--am), transparent 50%);
  border-radius: 4px;
  align-self: flex-start;
}
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr; } }

/* Palette swatches */
.palette {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 16px;
}
.swatch {
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 20px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid color-mix(in oklab, var(--fg), transparent 80%);
}
.swatch__chip {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .18;
}
.swatch__meta { display: flex; flex-direction: column; gap: 4px; }
.swatch__name {
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: -.005em;
}
.swatch__code { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; opacity: .65; }
.swatch__use { font-size: 12px; opacity: .8; text-wrap: pretty; }

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

.status-palette { margin-top: 40px; padding-top: 30px; border-top: 1px solid color-mix(in oklab, var(--fg), transparent 80%); }
.status-palette h4 { margin: 0 0 16px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.status-palette__row { display: flex; gap: 10px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 12px;
}
.status-pill i { width: 10px; height: 10px; border-radius: 50%; }
.status-pill[data-status="s1"] i { background: var(--s1); }
.status-pill[data-status="s2"] i { background: var(--s2); }
.status-pill[data-status="s3"] i { background: var(--s3); }
.status-pill[data-status="s4"] i { background: var(--s4); }
.status-pill--pur i { background: var(--pur); }

/* Architecture */
.arch {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1.4fr;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}
.arch__col {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--fg), var(--cr) 4%);
}
.arch__role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--am);
}
.arch__node {
  background: var(--cd);
  padding: 14px;
  border-radius: 6px;
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid color-mix(in oklab, var(--cr), transparent 85%);
}
.arch__node--cream { background: var(--cr); color: var(--fg); }
.arch__node--cream .arch__sub { color: color-mix(in oklab, var(--fg), transparent 30%); }
.arch__name { font-family: var(--ff-serif); font-size: 19px; }
.arch__sub { font-family: var(--ff-mono); font-size: 11px; opacity: .7; letter-spacing: .04em; }
.arch__wire {
  align-self: center;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--am) 0 4px, transparent 4px 8px);
}
.arch__agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arch__agent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cd);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 12px;
  border: 1px solid color-mix(in oklab, var(--cr), transparent 85%);
}
.arch__agent i { width: 8px; height: 8px; border-radius: 50%; }
.arch__agent[data-status="s1"] i { background: var(--s1); }
.arch__agent[data-status="s2"] i { background: var(--s2); }
.arch__agent[data-status="s3"] i { background: var(--s3); }

.arch__path {
  margin: 32px 0 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--am);
  padding: 16px 18px;
  border: 1px dashed var(--am);
  border-radius: 6px;
  white-space: pre-wrap;
  letter-spacing: .04em;
}

@media (max-width: 1100px) {
  .arch { grid-template-columns: 1fr; }
  .arch__wire { display: none; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 280px;
  gap: 18px;
}
.gallery__item {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fg);
}
.gallery__item--lg { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}
.gallery__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,18,8,.85));
  color: var(--cr);
  padding: 32px 18px 14px;
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gallery__item figcaption span:last-child { color: color-mix(in oklab, var(--cr), transparent 40%); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery__item--lg { grid-row: span 1; grid-column: span 2; }
}

/* About footer */
.about-footer {
  background: var(--fg);
  color: var(--cr);
}
.about-footer__inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 36px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 28px;
  align-items: center;
}
.about-footer__mark { color: var(--cr); }
.about-footer__col { display: flex; flex-direction: column; gap: 4px; }
.about-footer__title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--am);
}
.about-footer__sub { font-family: var(--ff-mono); font-size: 12px; color: var(--cr); }

@media (max-width: 800px) {
  .about-footer__inner { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE · tablet & phone breakpoints
   ════════════════════════════════════════════════════════════════════════ */

/* ─── Tablet landscape · 1180px ────────────────────────────────────────── */
@media (max-width: 1180px) {
  /* Nav becomes denser */
  .nav__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
  }
  /* Hide the agent-dots cluster on tablets — covered by nav-services + clock */
  #nav-agent-dots { display: none; }
  .nav-services .btn--pill { padding: 8px 12px; font-size: 12px; }
  .nav-services { gap: 6px; }
}

/* ─── Tablet portrait · 980px ──────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Boot-stage stacks: eye above identity */
  .boot-stage {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px var(--pad);
  }
  .boot-eye { max-width: 360px; }
  .boot-identity { max-width: 100%; }
  .boot-identity__title { font-size: clamp(48px, 12vw, 84px); }

  /* Boot chips repositioned so they don't overlap the eye */
  .boot-chip { min-width: auto; padding: 12px 14px; }
  .boot-chip--top    { top: 8%;  right: 4%; }
  .boot-chip--bottom { bottom: 4%; left: 4%; }

  /* Hero stacks */
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-chip--alt { transform: none; }
  .hero-chip--cursor { transform: none; align-self: flex-start; }
  #hero-cursors { align-items: flex-start; }
  .hero-chip--cursor-1, .hero-chip--cursor-2 { transform: none; }

  /* Hero typography scales down */
  .hero__h { font-size: clamp(38px, 7vw, 72px); }

  /* Action bar wraps into 2 rows */
  .actionbar__inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    border-radius: 18px;
    padding: 14px 16px;
  }
  .actionbar__group--center {
    grid-column: 1 / -1;
    justify-content: center;
    order: -1;
  }

  /* About — stack hero and palette */
  .about-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-hero__chips { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 18px; }
  .palette { grid-template-columns: 1fr 1fr; }

  /* Arch becomes a single column with explicit wires hidden */
  .arch { grid-template-columns: 1fr; gap: 12px; }
  .arch__wire { display: none; }
}

/* ─── Phone landscape · 720px ──────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --pad: 16px; }

  /* Nav: hide the links row entirely; logo + clock + services CTA only */
  .nav__inner {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    padding: 12px 16px;
  }
  #nav-links { display: none; }
  .nav-clock { font-size: 11px; }
  .nav-clock__time { font-size: 12px; }
  .nav-services {
    grid-column: 1 / -1;
    order: 99;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }
  .nav-services .btn--pill {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 130px;
  }
  #nav-cta-btn { flex: 1 1 100%; }

  /* Loading instance bar wraps */
  .boot-bar { flex-wrap: wrap; gap: 8px; }
  .boot-bar__build { margin-left: 0; flex-basis: 100%; }

  /* HITL toggle slightly smaller */
  .hitl-toggle { right: 12px; bottom: 76px; padding: 10px 14px; font-size: 11px; }
  .hitl-toggle__count { width: 18px; height: 18px; font-size: 11px; }

  /* Cards more compact */
  .card { padding: 14px; gap: 10px; }
  .card__service { font-size: 14px; }
  .card__desc { font-size: 12.5px; }
  .actions { gap: 4px; }
  .action { font-size: 10px; padding: 6px 10px; }
  .metrics { gap: 10px; }

  /* Attention card */
  .card--attention { padding: 16px; }
  .attn-grid {
    grid-template-columns: 60px repeat(5, 1fr);
    grid-template-rows: 24px repeat(5, 1fr);
    gap: 4px;
  }
  .attn-label { font-size: 8px; letter-spacing: .08em; padding-right: 4px; }
  .card__attn-legend { font-size: 8px; gap: 8px; flex-wrap: wrap; }

  /* HITL panel goes nearly full-width */
  .hitl { width: min(380px, 100vw); }

  /* About hero — bigger lede spacing */
  .about-hero { padding: 60px var(--pad) 40px; }
  .about-hero__title { font-size: clamp(64px, 18vw, 120px); }
  .about-hero__meta { grid-template-columns: 1fr; gap: 12px; }

  /* About section heads stack */
  .about-section__head { grid-template-columns: 1fr; gap: 12px; }
  .about-section__num { grid-row: auto; border-top: none; padding-top: 0; }
  .about-section__head h2 { font-size: clamp(28px, 7vw, 44px); }

  /* About nav stacks links into a wrap */
  .about-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px var(--pad);
  }
  .about-nav__links { gap: 12px; flex-wrap: wrap; justify-content: flex-start; width: 100%; order: 99; }
  .about-nav__links a { font-size: 10px; }

  /* Palette becomes 1 column on phones */
  .palette { grid-template-columns: 1fr; }
  .swatch { min-height: 140px; padding: 16px; }
  .swatch__chip { width: 40px; height: 40px; }

  /* Gallery single column */
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--lg { grid-column: span 1; grid-row: span 1; }

  /* Action bar columns merge */
  .actionbar { bottom: 8px; padding: 0 12px; }
  .actionbar__inner { padding: 10px 12px; }
  .actionbar__group .btn--pill { padding: 8px 12px; font-size: 12px; }
  #btn-emergency-stop { width: 100%; }
  .actionbar__inner { grid-template-columns: 1fr; }
  .actionbar__group { justify-content: center; flex-wrap: wrap; }

  /* Game-list rows compact */
  .game { padding: 16px 0; }
  .game__greek { font-size: 13px; }
  .game__role { font-size: 16px; }

  /* Pipeline tiles bigger touch targets */
  .pipeline__step { padding: 24px 18px; }
  .pipeline__step h3 { font-size: 22px; }

  /* Boot identity title smaller */
  .boot-identity__title { font-size: clamp(44px, 13vw, 70px); }
  .boot-identity__subtitle { font-size: 11px; }
  .boot-sequence { padding: 14px; font-size: 11px; }
  .boot-sequence__line { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .boot-sequence__t { font-size: 10px; }

  /* Tweaks panel position adjusted on small screens */
}

/* ─── Phone portrait · 460px ───────────────────────────────────────────── */
@media (max-width: 460px) {
  /* Nav clock collapses to just time */
  .nav-clock__sync { display: none; }

  /* Boot bar shows only the essentials */
  .boot-bar__build { display: none; }

  /* Hero counts tighter */
  .hero__count { font-size: 10px; padding: 5px 10px; }
  .hero-chip { padding: 12px 14px; }
  .hero-chip__value { font-size: 14px; }

  /* Bento gap shrinks */
  .bento { gap: 14px; }
  .card__greek { font-size: 11px; letter-spacing: .2em; }

  /* Action buttons wrap on dashboard sticky bar */
  .actionbar__group--end .btn--pill { flex: 1; }

  /* Card head wraps */
  .card__head { flex-wrap: wrap; gap: 6px; }
  .card__service { font-size: 13px; }
  .card__service::before { display: none; }
  .card__tag { font-size: 9px; padding: 1px 6px; }

  /* About hero gets less padding */
  .about-hero { padding: 48px 16px 32px; }
  .about-hero__title { font-size: clamp(56px, 20vw, 96px); }
  .about-hero__lede { font-size: 15px; }
  .about-hero__plaque { padding: 12px 12px 14px; }
  .about-hero__plaque__inv { font-size: 8px; padding: 3px 6px; }

  /* About footer fits single column */
  .about-footer__inner { grid-template-columns: 1fr; gap: 16px; }
}

/* Touch-device tweaks — disable hover hover-translate on touch-only devices */
@media (hover: none) and (pointer: coarse) {
  .btn:hover, .action:hover, .card:hover, .gallery__item:hover { transform: none; }
}

/* Reduced motion — disable the eye-open, blink, pulse, ring spin animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05s !important;
  }
  .boot-eye__ring,
  .boot-eye__satellites,
  body[data-boot="open"] .boot-eye__opening { animation: none !important; }
}


/* ── M10 pages background fix ── */
#page-agents, #page-registry, #page-logs {
  background: #DAC89E;
}
