/* Korypha marketing site. Tokens follow the Korypha brand guidelines (Aegean palette). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --navy: #0F2A47;
  --navy-2: #163657;          /* raised surface on navy */
  --terracotta: #E07A4F;
  --marble: #F4EFE6;
  --gold: #C9A24A;
  --ink: #14171C;
  --navy-tint: #E6ECF3;
  --terra-tint: #FBEAE2;
  --terra-text: #9A4527;      /* on terracotta tint, 5.5:1 */
  --gold-tint: #F7EFD9;
  --gold-text: #7A5F1E;       /* on gold tint, 5.3:1 */
  --white: #FFFFFF;

  --ink-2: #454B55;           /* secondary text on marble / white, 8.3:1 on marble */
  --line: #DDD5C8;            /* hairlines on marble */
  --line-card: #E7E2D9;
  --on-navy-2: #C9D2DD;       /* secondary text on navy, 9.6:1 */
  --line-navy: rgba(244, 239, 230, 0.16);

  /* Semantic status colours: product UI only, not brand colours. */
  --ok: #1D7A46; --ok-tint: #E4F4EA;
  --err: #B42318; --err-tint: #FDECEA;
  --warn: #8A5A00; --warn-tint: #FDF2DC;
  --info: #1F5FA8; --info-tint: #E5EFFA;

  /* Engine chips: each engine's own colours. */
  --claude-bg: #FCEEE8; --claude-fg: #8C3B1A;
  --codex-bg: #E3F5EF; --codex-fg: #0F5944;
  --ag-bg: #E8F0FE; --ag-fg: #1A4B8C;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-card: 12px;
  --r-btn: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--terracotta); color: var(--ink); padding: 10px 16px; border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Type scale */
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terra-text);
}
.on-navy .eyebrow { color: var(--terracotta); }
.display { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.02em; }
.h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.22; letter-spacing: -0.01em; }
.h2 { font-size: 24px; line-height: 32px; }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.on-navy .lede { color: var(--on-navy-2); }
.small { font-size: 13px; line-height: 20px; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-btn);
  font: 600 15px/20px var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
/* Primary: ink label on terracotta (6.0:1). Never white on terracotta. */
.btn-primary { background: var(--terracotta); color: var(--ink); }
.btn-primary:hover { background: #E88D66; }
.btn-ghost { background: transparent; color: var(--marble); border-color: rgba(244, 239, 230, 0.45); }
.btn-ghost:hover { border-color: var(--marble); }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--line); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--marble);
  border-bottom: 1px solid var(--line-navy);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand-link { display: inline-flex; align-items: center; padding: 6px 0; }
.brand-link img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--marble); text-decoration: none; font-size: 15px; font-weight: 400;
  padding: 10px 12px; border-radius: 8px;
}
.nav a:not(.btn):hover { background: var(--navy-2); }
.nav .btn { margin-left: 8px; min-height: 40px; padding: 8px 14px; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}

/* Sections */
section { position: relative; }
.on-navy { background: var(--navy); color: var(--marble); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { color: var(--on-navy-2); font-size: 14px; line-height: 22px; }
.hero-note strong { color: var(--marble); font-weight: 600; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Film frames */
.film {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #173A5F 0%, var(--navy) 70%);
  border: 1px solid var(--line-navy);
  aspect-ratio: 16 / 9;
}
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-caption { margin-top: 12px; color: var(--on-navy-2); font-size: 13px; line-height: 20px; font-weight: 500; }

/* Formation motion: followers gather, the lead dot lands last. */
.formation circle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .formation.animate circle { opacity: 0; animation: gather 560ms var(--ease) forwards; }
  .formation.animate .f3 { animation-delay: 80ms; --dx: -18px; }
  .formation.animate .f2 { animation-delay: 220ms; --dx: -14px; }
  .formation.animate .f1 { animation-delay: 360ms; --dx: -10px; }
  .formation.animate .lead { animation-delay: 560ms; --dx: -8px; }
}
@keyframes gather {
  from { opacity: 0; transform: translateX(var(--dx, -12px)); }
  to { opacity: 1; transform: none; }
}

/* Contrast */
.contrast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contrast-col { border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }
.contrast-col.one { background: var(--white); border: 1px solid var(--line-card); }
.contrast-col.team { background: var(--navy); color: var(--marble); }
.contrast-col h3 { font-size: 20px; line-height: 28px; display: flex; align-items: center; gap: 12px; }
.contrast-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contrast-col li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.contrast-col li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin: 9px 0 0 4px; background: currentColor; opacity: 0.45; }
.contrast-col.team li::before { background: var(--marble); opacity: 0.8; }
.contrast-col.one li { color: var(--ink-2); }
@media (max-width: 760px) { .contrast { grid-template-columns: minmax(0, 1fr); } }

/* How it works strip */
.how { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { padding: 8px 24px 8px 0; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); opacity: 0.35; }
.steps li:last-child .step-dot { background: var(--terracotta); opacity: 1; }
.steps h3 { font-size: 18px; line-height: 26px; }
.steps p { color: var(--ink-2); font-size: 15px; line-height: 24px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 0 0 0 0; border-left: 0; }
  .steps li + li { padding-top: 20px; border-top: 1px solid var(--line); }
}

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; }
.feature-copy p { color: var(--ink-2); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; color: var(--ink); }
.ticks li svg { margin-top: 4px; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
}

/* Stage: light product screen on a navy ground with a soft vignette. */
.stage {
  position: relative; border-radius: 16px; padding: clamp(16px, 3vw, 32px);
  background: radial-gradient(110% 80% at 50% 45%, #1A3E64 0%, var(--navy) 65%, #0B2038 100%);
}
.stage-label {
  position: absolute; right: 14px; bottom: 8px;
  font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; color: var(--on-navy-2);
}
.screen {
  background: var(--marble); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 18px 40px rgba(5, 14, 26, 0.35);
  font-size: 13px; line-height: 20px; color: var(--ink);
}
.screen-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--white); border-bottom: 1px solid var(--line-card);
}
.screen-bar .crumbs { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.screen-bar .crumbs b { color: var(--ink); font-weight: 400; }
.screen-body { padding: 14px; display: grid; gap: 10px; }
.card { background: var(--white); border: 1px solid var(--line-card); border-radius: var(--r-card); padding: 12px 14px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.between { justify-content: space-between; }
.row.wrap-row { flex-wrap: wrap; }
.muted { color: var(--ink-2); }
.title-sm { font-weight: 600; font-size: 14px; line-height: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl { box-shadow: 0 0 0 2px var(--terracotta); }

/* Chips: tinted, never saturated fills. */
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 500;
  background: var(--navy-tint); color: var(--navy);
}
.chip.claude { background: var(--claude-bg); color: var(--claude-fg); }
.chip.codex { background: var(--codex-bg); color: var(--codex-fg); }
.chip.antigravity { background: var(--ag-bg); color: var(--ag-fg); }
.chip.terra { background: var(--terra-tint); color: var(--terra-text); }
.chip.gold { background: var(--gold-tint); color: var(--gold-text); }
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.err { background: var(--err-tint); color: var(--err); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.info { background: var(--info-tint); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.token { font-family: var(--mono); font-size: 12px; background: var(--navy-tint); color: var(--navy); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }

/* Mock: roles */
.roles { display: grid; gap: 6px; }
.role { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; }
.role .glyph { width: 22px; height: 22px; border-radius: 6px; background: var(--navy-tint); display: grid; place-items: center; }
.role-name { font-weight: 500; }
.role-sub { color: var(--ink-2); font-size: 12px; }

/* Mock: process graph */
.graph { display: grid; gap: 8px; }
.graph-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.node {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line-card); font-size: 12px; line-height: 18px; white-space: nowrap;
}
.node .k { color: var(--ink-2); font-family: var(--mono); font-size: 11px; }
.node.approval { background: var(--navy-tint); border-color: #C9D5E3; }
.node.end { background: var(--navy); color: var(--marble); border-color: var(--navy); }
.node.escalate { background: var(--warn-tint); color: var(--warn); border-color: #F0DDB4; }
.arrow { color: var(--ink-2); font-size: 12px; }
.loop-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-2); border: 1px dashed #B9B2A6; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.rehearse { display: grid; gap: 6px; }
.rehearse-line { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; }

/* Mock: timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; align-items: start; position: relative; }
.timeline li + li { border-top: 1px solid var(--line-card); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; margin: 4px 0 0 4px; background: var(--ink); opacity: 0.3; }
.tl-dot.done { background: var(--ok); opacity: 1; }
.tl-dot.now { background: var(--terracotta); opacity: 1; box-shadow: 0 0 0 4px var(--terra-tint); }

/* Mock: PR */
.checks { display: grid; gap: 6px; }
.check { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; }
.merge-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-mock { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-btn); padding: 7px 12px; font-weight: 600; font-size: 13px; line-height: 18px; white-space: nowrap; }
.btn-mock.primary { background: var(--terracotta); color: var(--ink); }
.btn-mock.quiet { background: var(--white); color: var(--ink); border: 1px solid var(--line-card); }

/* Mock: autonomy */
.seg { display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--navy-tint); border-radius: 10px; padding: 3px; gap: 2px; }
.seg span { padding: 5px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--navy); text-align: center; }
.seg span.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 23, 28, 0.12), 0 0 0 2px var(--terracotta); font-weight: 600; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.level { background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; align-content: start; }
.level b { font-weight: 600; font-size: 13px; }
.level span { color: var(--ink-2); font-size: 12px; line-height: 18px; }
@media (max-width: 520px) { .levels { grid-template-columns: minmax(0, 1fr); } }
.rails { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 12.5px; }
.rails li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: start; }
.rails li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--navy); opacity: 0.6; }
@media (max-width: 520px) { .rails { grid-template-columns: minmax(0, 1fr); } }

/* Mock: run grid */
.rungrid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; }
.rungrid i { aspect-ratio: 1; border-radius: 50%; background: var(--ink); opacity: 0.14; }
.rungrid i.r { background: var(--info); opacity: 0.85; }
.rungrid i.d { background: var(--ok); opacity: 0.85; }
.rungrid i.lead { background: var(--terracotta); opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.subs { display: grid; gap: 6px; }
.sub { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; font-size: 12.5px; }
.meter { height: 6px; border-radius: 999px; background: var(--navy-tint); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--navy); border-radius: inherit; }

/* Mock: events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12.5px; }
.event time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); padding-top: 1px; }
.phone {
  width: 190px; border-radius: 26px; background: var(--ink); padding: 8px;
  box-shadow: 0 18px 40px rgba(5, 14, 26, 0.45);
}
.phone-screen { background: var(--marble); border-radius: 20px; padding: 14px 12px; display: grid; gap: 8px; font-size: 12px; line-height: 18px; }
.resilient-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
@media (max-width: 560px) { .resilient-stage { grid-template-columns: minmax(0, 1fr); } .phone { justify-self: center; } }

/* Mock: memory */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.switch i { width: 30px; height: 18px; border-radius: 999px; background: var(--navy); position: relative; }
.switch i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); }

/* Range grid */
.range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.range-card { background: var(--white); border: 1px solid var(--line-card); border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; align-content: start; }
.range-card h3 { font-size: 20px; line-height: 28px; }
.range-card p { color: var(--ink-2); }
.mini { background: var(--marble); border-radius: 10px; padding: 12px; display: grid; gap: 8px; font-size: 12.5px; line-height: 18px; }
.mini .card { padding: 8px 10px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; padding: 8px 10px; }
.stat b { display: block; font-family: var(--mono); font-weight: 400; font-size: 15px; line-height: 22px; }
.stat span { color: var(--ink-2); font-size: 11.5px; }
.checkbox { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #8C8579; flex: none; display: inline-grid; place-items: center; }
.checkbox.on { background: var(--navy); border-color: var(--navy); }
@media (max-width: 800px) { .range { grid-template-columns: minmax(0, 1fr); } }

/* Film section */
.film-wrap { max-width: 960px; margin: 0 auto; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px; line-height: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 27px; width: 10px; height: 10px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
  transition: transform 300ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); top: 31px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); display: grid; gap: 10px; max-width: 70ch; }

/* CTA */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.cta-copy { display: grid; gap: 18px; }
.form { background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 13px; line-height: 20px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: 400 16px/24px var(--sans); color: var(--ink);
  padding: 10px 12px; border: 1.5px solid #B9B2A6; border-radius: var(--r-btn); background: var(--white);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terra-tint); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks-inline label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; min-height: 32px; }
.checks-inline input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-note { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.form-status { font-size: 14px; line-height: 22px; padding: 10px 12px; border-radius: 10px; background: var(--navy-tint); color: var(--navy); }
.form-status[hidden] { display: none; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-2); border-top: 1px solid var(--line-navy); padding: 40px 0; font-size: 14px; line-height: 22px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-grid img { height: 24px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--marble); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { margin-top: 20px; font-size: 13px; line-height: 20px; }

/* Brand page */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brand-tile { border-radius: var(--r-card); padding: clamp(28px, 5vw, 48px); display: grid; place-items: center; min-height: 220px; }
.brand-tile.dark { background: var(--navy); }
.brand-tile.light { background: var(--white); border: 1px solid var(--line-card); }
.brand-tile img { width: min(100%, 320px); height: auto; }
.brand-tile.icon img { width: 120px; }
.brand-cap { margin-top: 10px; color: var(--ink-2); font-size: 13px; line-height: 20px; font-weight: 500; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.swatch { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-card); background: var(--white); }
.swatch-chip { height: 96px; }
.swatch-meta { padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; line-height: 20px; }
.swatch-meta b { font-weight: 600; }
.swatch-meta code { color: var(--ink-2); }
.pairs { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.pairs th, .pairs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pairs th { font-weight: 600; font-size: 13px; }
.pair-sample { display: inline-block; padding: 4px 10px; border-radius: 8px; font-weight: 600; }
.table-scroll { overflow-x: auto; }
@media (max-width: 700px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Narrow screens: let mock rows wrap instead of widening their card. */
.screen-body > *, .mini > * { min-width: 0; }
.merge-bar .row { flex-wrap: wrap; }
@media (max-width: 520px) {
  .mini .row.between, .merge-bar { flex-wrap: wrap; row-gap: 6px; }
  .mini .row.between > .truncate { flex-basis: 100%; }
  .stage { padding: 12px 12px 28px; }
}

/* Hero: issues in flight, to show the team working in parallel. */
.lanes { margin-top: 20px; }
.lane { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; background: var(--white); border: 1px solid var(--line-card); border-radius: 10px; }
.lane-id { color: var(--ink-2); font-size: 12px; }
