/*
 * Otorithm — white stage, ink type, one amber accent.
 * Layout: wide single column with 5/7 splits; hairline-separated lists instead of cards;
 * the particle constellation is the only imagery.
 * Deliberately light-only: every colour is set explicitly on :root.
 */
:root {
  /* Surfaces */
  --bg: #ffffff;          /* white: page background */
  --bg-rgb: 255, 255, 255;
  --surface: #f5f5f3;     /* mega panel, notices */
  --field: #ffffff;       /* form fields, pills, tags */
  /* Text */
  --fg: #111418;          /* ink: headings, primary text, logo */
  --fg-muted: #45484d;    /* body copy */
  --fg-subtle: #64666a;   /* meta, nav, captions */
  /* Accent */
  --accent: #c27a2c;      /* fills: buttons, logo stem, particles, markers */
  --accent-hover: #b56e22;
  --accent-text: #9a5a1a; /* amber for small text on paper (5:1) */
  --on-accent: #111418;
  /* Lines */
  --rule: rgba(17, 20, 24, 0.1);
  --rule-strong: rgba(17, 20, 24, 0.2);

  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --nav-h: 72px;
  --max: 1280px;
  --gutter: 20px;
  --section: 72px;

  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --gutter: 48px; --section: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 24px; font-weight: 600; font-size: 14px; }
.skip:focus { top: 12px; }

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

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .h4 { margin: 0; font-weight: 400; color: var(--fg); text-wrap: balance; }
.display { font-size: clamp(46px, 7.2vw, 104px); line-height: 1; letter-spacing: -0.045em; }
.h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.035em; }
.h3 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -0.022em; }
.h4 { font-size: 19px; line-height: 1.35; letter-spacing: -0.012em; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--fg-muted); max-width: 60ch; text-wrap: pretty; }
.body { margin: 0; color: var(--fg-muted); max-width: 64ch; text-wrap: pretty; }
.small { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.label {
  display: inline-block; margin: 0;
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-text);
}
a.label:hover { color: var(--fg); }
.meta { font-size: 13px; font-weight: 400; letter-spacing: 0.02em; color: var(--fg-subtle); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1;
  padding: 16px 24px; border-radius: 24px; white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn-sm { padding: 12px 18px; font-size: 12.5px; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--fg); font-size: 16px; font-weight: 400; line-height: 1.4;
  transition: color 0.2s ease;
}
.ghost .arrow { display: inline-block; transition: transform 0.2s ease; }
.ghost:hover { color: var(--accent-text); }
.ghost:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.copy { font-variant-numeric: tabular-nums; }
.copy svg { width: 13px; height: 13px; flex: none; }

/* ---------- Logo ---------- */
.lockup { display: inline-flex; align-items: center; gap: 11px; }
.lockup svg { flex: none; }
.wordmark { font-weight: 600; font-size: 23px; letter-spacing: -0.02em; line-height: 1; color: var(--fg); }
.nav .lockup svg { width: 30px; height: 30px; }
@media (min-width: 640px) {
  .wordmark { font-size: 26px; }
  .nav .lockup svg { width: 34px; height: 34px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s ease;
}
.nav.scrolled, .nav:has(.has-panel:hover), .nav:has(.has-panel:focus-within) {
  background: rgba(var(--bg-rgb), 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: none; align-items: stretch; height: 100%; gap: 30px; }
.nav-item { display: flex; align-items: stretch; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 100%;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-subtle); transition: color 0.2s ease; position: relative;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--accent);
}
.nav-link .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-cta { display: none; box-shadow: 0 0 0 1px rgba(var(--bg-rgb), 0.55); }

/* Mega panel */
.panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-block: 1px solid var(--rule);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.has-panel:hover .panel, .has-panel:focus-within .panel {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; padding-block: 36px 44px; }
.panel-intro { display: flex; flex-direction: column; gap: 12px; padding-right: 24px; border-right: 1px solid var(--rule); }
.panel-group { display: flex; flex-direction: column; gap: 18px; }
.panel-link { display: flex; flex-direction: column; gap: 4px; }
.panel-link strong { font-weight: 400; font-size: 16px; color: var(--fg); line-height: 1.35; transition: color 0.2s ease; }
.panel-link span { font-size: 13.5px; line-height: 1.5; color: var(--fg-subtle); }
.panel-link:hover strong { color: var(--accent-text); }

.burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--fg); transition: transform 0.3s ease, opacity 0.3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.menu-inner { display: flex; flex-direction: column; gap: 32px; }
.menu-main { display: flex; flex-direction: column; gap: 6px; }
.menu-main a { font-size: 30px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.3; }
.menu-sub { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--rule); }
.menu-sub a { font-size: 17px; color: var(--fg-muted); }
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger, .menu { display: none; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: var(--section); }
.section.tight { padding-block: calc(var(--section) * 0.6); }
.section.ruled { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
.sec-head > * { min-width: 0; }
.sec-head .stack-sm { gap: 16px; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 5fr 6fr; gap: 64px; align-items: end; margin-bottom: 64px; }
}
.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ---------- Hero (home): looping video, paper scrim, agent typewriter ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(660px, 94svh, 920px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--nav-h) + 40px) 88px;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 72% center;
  background: var(--bg); opacity: var(--video-opacity, 1);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0) 82%, rgba(var(--bg-rgb), 1) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.35) 0%, rgba(var(--bg-rgb), 0.88) 46%, rgba(var(--bg-rgb), 0.96) 100%);
}
.hero-inner { width: 100%; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-inner > * { min-width: 0; }
/* Cursor-reactive particle logo: faint behind the text on phones, its own column on desktop */
.hero-visual { position: absolute; inset: 0; z-index: -1; opacity: 0.16; pointer-events: none; }
.hero-visual canvas { display: block; width: 100%; height: 100%; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.agent { display: flex; flex-direction: column; gap: 14px; }
.agent-intro {
  margin: 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.3; font-weight: 400; color: var(--fg);
  filter: blur(3.5px); opacity: 0.75; user-select: none; -webkit-user-select: none; pointer-events: none;
}
.typed {
  margin: 0; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.4; font-weight: 400; color: var(--fg);
  max-width: 32em; min-height: calc(3 * 1.4em); text-wrap: pretty;
}
.cursor {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.12em;
  background: var(--accent); animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; animation: rise 0.45s ease 0.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; cursor: pointer;
  background: var(--field); color: var(--fg); border: 1px solid var(--rule-strong); border-radius: 9999px;
  font-size: 13.5px; font-weight: 400; line-height: 1.3; padding: 9px 16px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill.outline { background: transparent; border-color: var(--fg); }
.pill.outline:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pill svg { width: 12px; height: 12px; flex: none; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-subtle); background: rgba(var(--bg-rgb), 0.75); border: 1px solid var(--rule);
  border-radius: 9999px; padding: 8px 12px; cursor: pointer;
}
.video-toggle:hover { color: var(--fg); border-color: var(--rule-strong); }
@media (min-width: 640px) {
  .pill { font-size: 15px; padding: 10px 18px; }
}
@media (min-width: 960px) {
  .hero { align-items: center; padding-block: calc(var(--nav-h) + 48px) 72px; }
  .hero-media { object-position: right center; }
  .hero-inner { grid-template-columns: 6fr 5fr; gap: 48px; }
  .hero-visual { position: relative; inset: auto; z-index: auto; opacity: 1; height: min(74vh, 700px); margin-right: calc(-1 * var(--gutter)); }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), 0.85) 0, rgba(var(--bg-rgb), 0) 150px),
      linear-gradient(180deg, rgba(var(--bg-rgb), 0) 84%, rgba(var(--bg-rgb), 1) 100%),
      linear-gradient(90deg, rgba(var(--bg-rgb), 0.97) 0%, rgba(var(--bg-rgb), 0.9) 36%, rgba(var(--bg-rgb), 0.35) 62%, rgba(var(--bg-rgb), 0) 82%);
  }
  .video-toggle { bottom: 28px; }
  /* When the particle logo sits over the video, soften the footage so the logo reads as the foreground */
  .hero.has-particles .hero-scrim::after { content: ""; position: absolute; inset: 0; background: rgba(var(--bg-rgb), 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .pills { animation: none; }
}
.visual canvas { display: block; width: 100%; height: 100%; }

/* ---------- Full-width image bands ---------- */
.section.has-band { padding-top: 0; }
.band {
  margin: 0 0 calc(var(--section) * 0.75); width: 100%;
  height: clamp(140px, 16vw, 260px); overflow: hidden; background: var(--surface);
}
.band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band-ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding-inline: var(--gutter); text-align: center;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='11.5' y='11.5' width='5' height='5' fill='none' stroke='%23111418' stroke-opacity='0.13'/%3E%3C/svg%3E");
}
.band-tag { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface); padding: 10px 18px; border-radius: 10px; box-shadow: 0 0 0 10px var(--surface); }
.band-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-subtle); }
.band-hint { font-size: 14px; color: var(--fg-muted); max-width: 46ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: calc(var(--nav-h) + 56px) 48px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.page-hero-grid > * { min-width: 0; }
.page-hero .stack { gap: 22px; }
.page-hero .visual { display: none; height: 400px; }
@media (min-width: 960px) {
  .page-hero { padding-block: calc(var(--nav-h) + 72px) 64px; }
  .page-hero-grid.has-visual { grid-template-columns: 7fr 5fr; gap: 48px; }
  .page-hero .visual { display: block; }
}
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb .sep { color: var(--fg-subtle); font-size: 12px; }

/* ---------- Lists with hairlines ---------- */
.rows { border-bottom: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding-block: 26px; border-top: 1px solid var(--rule);
}
.row > * { min-width: 0; }
a.row { transition: background-color 0.2s ease; }
a.row:hover .h3, a.row:hover .h4 { color: var(--accent-text); }
a.row .arrow { color: var(--fg-subtle); transition: transform 0.2s ease, color 0.2s ease; justify-self: start; }
a.row:hover .arrow { color: var(--accent-text); transform: translateX(4px); }
.row .h3, .row .h4 { transition: color 0.2s ease; }
@media (min-width: 900px) {
  .row { grid-template-columns: 5fr 6fr 40px; gap: 48px; align-items: baseline; padding-block: 32px; }
  .row.two { grid-template-columns: 5fr 7fr; }
  a.row .arrow { justify-self: end; }
}
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }

/* Feature grid: hairline above each item, no boxes */
.features { display: grid; grid-template-columns: 1fr; gap: 36px 48px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--rule); min-width: 0; }

/* Square-bullet list (the particle glyph) */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; color: var(--fg-muted); font-size: 16px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px;
  border: 1.25px solid var(--accent);
}
.ticks.paper li { color: var(--fg); }

/* ---------- Sequences ---------- */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; }
.loop li { display: flex; flex-direction: column; gap: 10px; padding-block: 24px; border-top: 1px solid var(--rule); min-width: 0; }
.loop .num { font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .loop { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
  .loop.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .loop li { padding-top: 26px; border-top: 1px solid var(--rule-strong); position: relative; }
  .loop li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--bg); border: 1.25px solid var(--accent); }
}

.phases { display: grid; grid-template-columns: 1fr; gap: 0; }
.phase { display: grid; grid-template-columns: 1fr; gap: 8px; padding-block: 24px; border-top: 1px solid var(--rule); }
.phase > * { min-width: 0; }
.phase .when { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .phase { grid-template-columns: 70px 4fr 7fr; gap: 32px; align-items: baseline; }
}
.phases { border-bottom: 1px solid var(--rule); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--fg-subtle); padding: 0 20px 14px 0; border-bottom: 1px solid var(--rule-strong);
}
.table td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--fg-muted); line-height: 1.55; }
.table td:first-child { color: var(--fg); font-weight: 400; }
.table td.term { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px; font-size: 19px; font-weight: 400; letter-spacing: -0.01em; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--accent); transition: transform 0.2s ease;
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding-bottom: 24px; max-width: 70ch; }

/* ---------- Blocks ---------- */
.block { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 44px; border-top: 1px solid var(--rule); }
.block > * { min-width: 0; }
.block:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .block { grid-template-columns: 5fr 7fr; gap: 64px; padding-block: 56px; } }
.cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cols > * { min-width: 0; }
@media (min-width: 640px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-subtle); margin: 0 0 14px; }

.timeline { display: flex; flex-direction: column; }
.timeline .tl { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding-block: 14px; border-top: 1px solid var(--rule); }
.timeline .tl > * { min-width: 0; }
.timeline .tl .when { font-size: 13px; font-weight: 600; color: var(--fg-subtle); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline .tl p { margin: 0; color: var(--fg-muted); font-size: 16px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
a.tag:hover { border-color: var(--accent); color: var(--fg); }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); background: var(--field); border: 1px solid var(--rule-strong); border-radius: 9999px; padding: 5px 11px; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: var(--section); border-top: 1px solid var(--rule); }
.cta-band .stack { gap: 32px; }

/* ---------- Article ---------- */
.article-head { padding-block: calc(var(--nav-h) + 64px) 40px; }
.article-head .stack { gap: 22px; max-width: 900px; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 56px; padding-bottom: var(--section); }
.article-layout > * { min-width: 0; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 68ch) 1fr; gap: 96px; } }
.prose { font-size: 18px; line-height: 1.75; color: var(--fg-muted); }
.prose > * { margin: 0 0 22px; }
.prose h2 { margin: 52px 0 18px; font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; color: var(--fg); text-wrap: balance; }
.prose h3 { margin: 36px 0 12px; font-size: 21px; font-weight: 400; letter-spacing: -0.015em; color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 400; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 7px; border: 1.25px solid var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font-size: 13px; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.prose blockquote { margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--accent); color: var(--fg); font-size: 21px; line-height: 1.5; letter-spacing: -0.01em; }
.aside { display: flex; flex-direction: column; gap: 28px; align-self: start; }
@media (min-width: 1000px) { .aside { position: sticky; top: calc(var(--nav-h) + 32px); } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-subtle); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--field); color: var(--fg);
  border: 1px solid var(--rule-strong); border-radius: 12px;
  padding: 14px 16px; font-size: 16px; font-weight: 300; line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-subtle) 50%), linear-gradient(135deg, var(--fg-subtle) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 122, 44, 0.25); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); opacity: 0.75; }
.form-note { font-size: 13.5px; color: var(--fg-subtle); }
.notice { border: 1px solid var(--rule-strong); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.notice textarea { width: 100%; min-height: 160px; background: var(--field); color: var(--fg-muted); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.6; resize: vertical; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.foot-grid > * { min-width: 0; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 2fr 1.2fr 1fr 1.2fr; gap: 48px; } }
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-brand p { margin: 0; font-size: 15px; color: var(--fg-subtle); max-width: 36ch; }
.foot-col h2 { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fg-subtle); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a, .foot-col li { font-size: 15px; color: var(--fg-muted); }
.foot-col a:hover { color: var(--fg); }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--fg-subtle); }
.foot-legal a:hover { color: var(--fg); }
