/* ─────────────────────────────────────────────────────────────
   FRANKOW · AMAZON
   Light, technical, premium. One CSS file.
   Mobile-first. Built around a tight token system + hairline rules.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand tokens — exact values from brief. Do not invent more. */
  --color-ink:          #06163A;
  --color-accent:       #0555DA;
  --color-flag:         #F9E556;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #F5F6F8;
  --color-text-muted:   #4A5160;
  --color-border:       #E3E6EB;

  /* Derived — kept minimal */
  --color-ink-soft:     rgba(6, 22, 58, 0.62);
  --color-accent-soft:  rgba(5, 85, 218, 0.10);

  /* Type */
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --max:        1200px;
  --max-narrow: 780px;

  /* Hairline */
  --hair: 1px solid var(--color-border);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* ── Layout primitives ─────────────────────────────────────── */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--max-narrow); }

/* ── Top bar ──────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 10px var(--gutter);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 0 var(--color-border);
}
@media (min-width: 720px) {
  .topbar {
    padding: 12px var(--gutter);
    gap: 1.5rem;
  }
}
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

.topbar__tagline {
  /* Quiet centre tag that fills the masthead and signals the offering. */
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .topbar__tagline { display: none; }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1rem;
}
.wordmark__logo {
  /* Local transparent PNG of the Frankow emblem. */
  display: block;
  width: auto;
  height: 48px;
}
@media (min-width: 720px) {
  .wordmark__logo { height: 52px; }
}
@media (max-width: 480px) {
  .wordmark__logo { height: 40px; }
}
.wordmark__fallback {
  /* Shown only if the logo PNG fails to load (toggled via onerror). */
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.05rem;
}
.wordmark__slash {
  color: var(--color-border);
  font-weight: 400;
  font-size: 1.8em;
  line-height: 1;
  margin: 0 0.1ch 0 0.15ch;
}
.wordmark__product {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  text-transform: lowercase;
  padding-top: 3px;
}
@media (max-width: 480px) {
  .wordmark__product { font-size: 0.82rem; }
  .wordmark__slash { font-size: 1.5em; }
}

/* Always-on motif: pulsing accent dot. Used in topbar + footer + capability card. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
  flex: 0 0 auto;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  opacity: 0.6;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  70%  { transform: scale(2.0);  opacity: 0;   }
  100% { transform: scale(2.0);  opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .status__dot::after { animation: none; opacity: 0.35; }
}

/* ── Type primitives ──────────────────────────────────────── */

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }

/* Screen-reader-only utility. Used for SVG descriptions and any other
   content that should be announced but not visually drawn. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: none;
  margin-bottom: 0.9rem;
}
.eyebrow__tag {
  color: var(--color-accent);
  font-weight: 500;
}

.display {
  font-size: clamp(1.85rem, 4.2vw + 0.4rem, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--color-ink);
  text-wrap: balance;
  max-width: 30ch;
}
.display em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
}
.display__sub-line {
  display: block;
  margin-top: 0.4em;
}

.h2 {
  font-size: clamp(1.55rem, 3.2vw + 0.4rem, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--color-ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}
.h2 em {
  font-style: normal;
  color: var(--color-accent);
}
.h2--tight { margin-bottom: 0.75rem; }
.h2--lead {
  font-size: clamp(1.85rem, 3.8vw + 0.5rem, 3rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 22ch;
}
.prose--lead {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--color-ink);
  max-width: 64ch;
}

.pull {
  font-size: clamp(1.75rem, 3.6vw + 0.5rem, 2.85rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--color-ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}
.pull em {
  font-style: normal;
  color: var(--color-accent);
}

.lede {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: 1.4rem;
}

.prose {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 64ch;
}
.prose--centered { margin-left: auto; margin-right: auto; }

/* ── CTA ──────────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 0.9rem;
  padding: 14px 18px 14px 20px;
  border: 1px solid var(--color-accent);
  background: var(--color-surface);
  color: var(--color-accent);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cta:hover, .cta:focus-visible {
  background: var(--color-accent);
  color: var(--color-surface);
  outline: none;
}
.cta:focus-visible { box-shadow: 0 0 0 3px var(--color-accent-soft); }
.cta__label {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
}
.cta__email {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  opacity: 0.85;
}
.cta__arrow {
  font-weight: 500;
  transition: transform 0.15s ease;
}
.cta:hover .cta__arrow { transform: translateX(2px); }

.cta--inline { margin-top: 1.4rem; }

/* ── Section rhythm ───────────────────────────────────────── */

section {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  border-bottom: var(--hair);
}
section:last-of-type { border-bottom: none; }

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 4.5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
.hero__copy {
  min-width: 0;
  max-width: 56ch;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.hero__cta-note {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}
.hero__cta-note .mono {
  color: var(--color-ink);
  font-size: 0.78rem;
  margin-right: 0.25rem;
}

/* ── Console ──────────────────────────────────────────────── */

.console {
  border: var(--hair);
  border-radius: 4px;
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink);
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.console__chrome {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 10px 14px;
  background: var(--color-surface-2);
  border-bottom: var(--hair);
}
.console__dots {
  display: inline-flex;
  gap: 5px;
}
.console__dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  display: inline-block;
}
.console__title {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console__pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.console__pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
}
.console__pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  animation: pulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .console__pulse-dot::after { animation: none; opacity: 0.4; }
}

.console__body {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.console__body li {
  display: grid;
  grid-template-columns: 70px 110px 1fr auto;
  gap: 0.7rem;
  align-items: baseline;
  padding: 8px 12px;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.75rem;
  line-height: 1.5;
  min-width: 0;
}
@media (min-width: 720px) {
  .console__body li {
    grid-template-columns: 78px 130px 1fr auto;
    gap: 0.9rem;
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}
@media (max-width: 420px) {
  .console__body li {
    grid-template-columns: 56px 92px 1fr auto;
    gap: 0.5rem;
    padding: 7px 10px;
    font-size: 0.7rem;
  }
}
.console__body li:last-child { border-bottom: none; }
.console__body .t {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.console__body .k {
  color: var(--color-accent);
  font-weight: 500;
}
.console__body .v {
  color: var(--color-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The FLAG line — single yellow accent inside the console. */
.console__body li.flag {
  background: var(--color-flag);
  border-bottom-color: rgba(6, 22, 58, 0.18);
  border-bottom-style: solid;
  position: relative;
}
.console__body li.flag .t,
.console__body li.flag .k,
.console__body li.flag .v { color: var(--color-ink); }
.console__body li.flag .k { font-weight: 600; }
.flag__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
  padding: 1px 6px;
  border-radius: 2px;
  align-self: center;
}

/* Entering animation for ticker lines (added by JS) */
.console__body li.enter {
  animation: enter 0.35s ease both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .console__body li.enter { animation: none; }
}

.console__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 10px 14px;
  border-top: var(--hair);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

/* ── PROBLEM ──────────────────────────────────────────────── */

.problem { background: var(--color-surface); }
.problem .prose { margin-top: 0.2rem; margin-bottom: 1.6rem; }

/* Week diagram */
.week {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: var(--hair);
  border-radius: 4px;
  background: var(--color-surface-2);
  max-width: 880px;
}
.week__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 760px) {
  .week__row {
    grid-template-columns: 140px 1fr 180px;
  }
}
.week__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink);
  font-weight: 500;
}
.week__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  position: relative;
  height: 28px;
}
.week__bar {
  border-radius: 2px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.week__track--data .week__bar {
  background: var(--color-accent);
  opacity: 0.85;
}
.week__track--data .week__bar:nth-child(2) { opacity: 0.55; }
.week__track--data .week__bar:nth-child(4) { opacity: 0.95; }
.week__track--attention .week__bar--off {
  background: transparent;
  border: 1px dashed var(--color-border);
}
.week__track--attention .week__bar--on {
  background: var(--color-ink);
  color: var(--color-surface);
  font-family: var(--font-mono);
}
.week__tick {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--color-ink);
}
.week__tag {
  font-size: 0.62rem;
  color: var(--color-surface);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.week__note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: right;
  display: none;
}
@media (min-width: 760px) {
  .week__note { display: block; }
}
.week__axis {
  display: flex;
  margin-left: 110px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--color-text-muted);
}
@media (min-width: 760px) {
  .week__axis { margin-left: 140px; }
}
.week__axis > span {
  flex: 1;
  text-align: center;
}

/* ── SHIFT ────────────────────────────────────────────────── */

.shift {
  background: var(--color-surface-2);
}
.shift .pull { margin-bottom: 1.2rem; }

/* Two-column on wider viewports: copy left, brand mark right.
   Stacks below text on mobile. */
.shift__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .shift__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}
.shift__copy { min-width: 0; }

.shift__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}
.shift__logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  /* aspect-ratio reserves space so layout doesn't jump when the real logo
     (which will have an alpha channel and a roughly square footprint) swaps in. */
  aspect-ratio: 6 / 7;
  object-fit: contain;
}
@media (max-width: 879px) {
  .shift__logo { max-width: 200px; }
}

/* ── CAPABILITIES ─────────────────────────────────────────── */

.caps__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--hair);
  border-left: var(--hair);
  margin-top: 1.6rem;
}
.caps__intro {
  margin-bottom: 0;
}
@media (min-width: 900px) {
  .caps__grid { grid-template-columns: repeat(3, 1fr); }
}
.cap {
  border-right: var(--hair);
  border-bottom: var(--hair);
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--color-surface);
  position: relative;
  transition: background 0.18s ease;
}
.cap:hover { background: var(--color-surface-2); }

/* Lead capabilities — the three the brand wants weighted heaviest.
   Subtle accent: blue corner mark + slightly heavier num label. */
.cap--lead::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 28px;
  background: var(--color-accent);
}
.cap--lead .cap__num { color: var(--color-accent); font-weight: 600; }

.cap__num {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cap__title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-wrap: balance;
  line-height: 1.25;
}
.cap__body {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.cap__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.cap__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: lowercase;
}
.cap__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
}
.cap__live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  animation: pulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cap__live-dot::after { animation: none; opacity: 0.35; }
}

/* ── SAMPLE ALERT (the single use of yellow) ──────────────── */

.alert {
  margin: 0;
}
.alerts {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 780px;
}
.alerts__caption {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.alert__kind {
  font-size: 0.66rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.alert__caption {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

.alert__card {
  position: relative;
  border: 1px solid var(--color-ink);
  background: var(--color-surface);
  border-radius: 3px;
  padding: 1.15rem 1.4rem 1rem;
  /* The yellow stripe runs down the left edge — assertive but contained. */
  box-shadow: inset 6px 0 0 0 var(--color-flag);
  padding-left: calc(1.4rem + 6px);
}
.alert__card--compact {
  padding-top: 0.9rem;
  padding-bottom: 0.8rem;
}
.alert__flag {
  position: absolute;
  top: -1px;
  right: -1px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-flag);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px 6px 8px;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--color-ink);
  border-top: none;
  border-right: none;
}
.alert__flag svg { color: var(--color-ink); }
.alert__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.alert__time { font-size: 0.74rem; color: var(--color-text-muted); }
.alert__sep  { color: var(--color-border); }
.alert__type {
  font-size: 0.74rem;
  color: var(--color-accent);
  font-weight: 600;
}
.alert__line {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-ink);
  margin-bottom: 0.85rem;
  text-wrap: pretty;
}
.alert__line strong { font-weight: 600; }
.alert__line-meta {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.alert__card--compact .alert__line { margin-bottom: 0; }
.alert__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 560px) {
  .alert__meta { grid-template-columns: repeat(4, 1fr); }
}
.alert__meta > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.alert__meta dt {
  font-size: 0.64rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.alert__meta dd {
  font-size: 0.84rem;
  color: var(--color-ink);
  font-weight: 500;
}
.alert__foot {
  padding-top: 0.55rem;
  border-top: var(--hair);
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

/* ── OPERATOR ─────────────────────────────────────────────── */

.operator { background: var(--color-surface-2); }

.operator__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 960px) {
  .operator__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.operator__card {
  border: var(--hair);
  background: var(--color-surface);
  padding: 1.2rem 1.4rem 1.2rem;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.operator__id {
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--hair);
}
.operator__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.operator__list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.operator__list li:last-child { border-bottom: none; }
.operator__k {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}
.operator__v {
  font-size: 0.92rem;
  color: var(--color-ink);
  line-height: 1.45;
}
.operator__cta {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-accent);
  text-decoration: none;
  border-top: var(--hair);
  padding-top: 0.9rem;
  display: inline-flex;
  gap: 0.4rem;
}
.operator__cta:hover { text-decoration: underline; }

/* ── SCOPE ────────────────────────────────────────────────── */

.scope__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--hair);
  border-bottom: var(--hair);
  margin: 1.4rem 0 1.4rem;
  font-size: 0.94rem;
}
@media (min-width: 640px) {
  .scope__list { grid-template-columns: 1fr 1fr; }
}
.scope__list li {
  padding: 0.7rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-ink);
}
.scope__list li:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .scope__list li:nth-last-child(-n+2) { border-bottom: none; }
  .scope__list li:nth-child(odd) {
    border-right: 1px dashed var(--color-border);
    padding-right: 1rem;
  }
  .scope__list li:nth-child(even) { padding-left: 1rem; }
}

.scope__state {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.scope__state--on {
  color: var(--color-surface);
  background: var(--color-accent);
}
.scope__state--next {
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0 1.4rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.2rem;
  align-items: center;
  justify-content: space-between;
}
.footer__name {
  font-weight: 600;
  color: var(--color-surface);
  letter-spacing: -0.005em;
  font-size: 0.95rem;
}
.footer__email {
  color: var(--color-surface);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  line-height: 1.2;
  transition: border-color 0.15s ease;
}
.footer__email:hover { border-bottom-color: var(--color-surface); }
.footer__status {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}
.footer__status .status__dot { background: var(--color-accent); }
.footer__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4ch;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__mark:hover { color: rgba(255,255,255,0.95); }
.footer__mark-name { color: rgba(255,255,255,0.95); font-weight: 500; }
.footer__mark-slash { color: rgba(255,255,255,0.3); font-size: 1.15em; }
.footer__mark-product { color: rgba(255,255,255,0.7); }

.footer__tagline {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}
.footer__legal {
  margin-top: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── BUYER'S-EYE VIEW (§04) ──────────────────────────────── */
/* Lead-differentiator section. Two-column on desktop — text left,
   concept diagram right. Stacks on mobile. */

.buyers {
  background: var(--color-surface);
  position: relative;
}
.buyers::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}
.buyers .eyebrow { margin-bottom: 1.1rem; }

.buyers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 960px) {
  .buyers__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
.buyers__copy {
  min-width: 0;
  max-width: 56ch;
}

.buyers__axes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0;
}

/* Concept diagram — contained beside the copy, never full-bleed.
   Vertically centred inside its column (via .buyers__grid align-items: center)
   and capped so the visual stays smaller than the text block. */
.buyers__diagram-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 960px) {
  .buyers__diagram-wrap {
    margin: 0 0 0 auto;
  }
}
.buyers__diagram {
  display: block;
  width: 100%;
  height: auto;
}
.buyers__axis {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 8px 12px 7px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--color-ink);
}
.buyers__axis-num {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.buyers__axis-label {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.buyers__axis--cadence {
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
}
.buyers__axis-sep {
  color: var(--color-text-muted);
  margin-right: 0.1rem;
}

/* ── SHIFT LOGO FALLBACK ─────────────────────────────────── */
.shift__logo-fallback {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 6 / 7;
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shift__logo-fallback .mono {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

/* ── Section-to-section transition lines ─────────────────── */
/* Small mono cue at the bottom of each section signalling what
   comes next. Aria-hidden because they're decorative connective
   tissue, not content. */

.transition {
  display: block;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.005em;
}
.shift .transition { text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ── Reveal-on-scroll (added by JS, gated by reduced-motion) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Print ───────────────────────────────────────────────── */

@media print {
  .topbar, .footer__status, .console { display: none; }
  section { padding: 1.5rem 0; break-inside: avoid; }
  body { font-size: 11pt; }
}

/* ── Selection ───────────────────────────────────────────── */

::selection {
  background: var(--color-accent);
  color: var(--color-surface);
}
