/* ATKAI site styles. Palette taken from the ATKAI mark; tier colors are the
   ones ATK itself uses for provenance, so the site and the product agree. */

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --abyss: #050a18;
  --deep: #081128;
  --hull: #0c1633;
  --hull-2: #111e42;
  --line: #1d2c57;
  --ice: #e7eefc;
  --mist: #a3b2d1;
  --dim: #7383a6;
  --cyan: #3ee8ff;
  --violet: #8d6bff;
  --magenta: #e44bff;

  /* ATK provenance tiers */
  --t-record: #e7ecf3;
  --t-measured: #3ddc97;
  --t-cleaned: #4fa3ff;
  --t-inferred: #ffc23d;
  --t-invented: #ff00dd;
  --t-proposed: #b48cff;

  /* maturity */
  --m-field: #3ddc97;
  --m-built: #4fa3ff;
  --m-dev: #ffc23d;
  --m-planned: #8a96b3;

  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--ice);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #9ff4ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(141, 107, 255, .45); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.measure { max-width: 66ch; }
.lead { font-size: 1.2rem; color: var(--mist); max-width: 60ch; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--abyss); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 10, 24, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(29, 44, 87, .7); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ice); }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 18px rgba(62, 232, 255, .35); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; line-height: 1; }
.wordmark b { font-weight: 700; background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--mist); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: var(--ice); background: rgba(141, 107, 255, .12); }
.nav a[aria-current="page"] { color: var(--ice); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #04101a; background: linear-gradient(100deg, var(--cyan), #74c8ff 60%, #a993ff); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ice); border-radius: 8px; padding: 8px 12px; font: 500 0.95rem var(--text); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(29, 44, 87, .6); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 12px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--text); text-decoration: none; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease; }
.btn-primary { color: #04101a; background: linear-gradient(100deg, var(--cyan), #74c8ff 60%, #a993ff); box-shadow: 0 0 0 rgba(62, 232, 255, 0); }
.btn-primary:hover { color: #04101a; box-shadow: 0 0 26px rgba(62, 232, 255, .45); }
.btn-ghost { color: var(--ice); border-color: rgba(141, 107, 255, .6); background: rgba(141, 107, 255, .08); }
.btn-ghost:hover { color: #fff; background: rgba(141, 107, 255, .2); }
.nav .btn-primary { padding: 9px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 0; background: radial-gradient(1100px 520px at 78% 30%, rgba(141, 107, 255, .16), transparent 70%), radial-gradient(800px 420px at 92% 60%, rgba(62, 232, 255, .10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 18px; }
.hero-mark { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-mark img { width: 100%; border-radius: 24px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 74%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 74%); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: min(70vw, 300px); }
}

/* waterfall band */
.band { position: relative; margin-top: clamp(36px, 6vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #040817; }
.band-readout { position: absolute; top: 8px; left: var(--gutter); z-index: 2; display: flex; align-items: baseline; gap: 14px; font-family: var(--mono); color: var(--ice); pointer-events: none; background: rgba(5, 10, 26, .82); padding: 2px 10px; border-radius: 6px; }
.band-readout .freq { font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 500; }
.band-readout .mode { color: var(--mist); font-size: .95rem; }
.band-legend { position: absolute; top: 10px; right: var(--gutter); z-index: 2; display: flex; gap: 14px; font-size: .82rem; color: var(--mist); pointer-events: none; background: rgba(5, 10, 26, .82); padding: 4px 10px; border-radius: 6px; }
.band-legend span { display: inline-flex; align-items: center; gap: 6px; }
.band-legend i { width: 18px; height: 10px; display: inline-block; border: 1.5px dashed var(--t-proposed); }
.band-legend i.c { border: 1.5px solid var(--t-measured); }
.band canvas { display: block; width: 100%; height: clamp(190px, 26vw, 280px); }
.band-axis { display: flex; justify-content: space-between; padding: 6px var(--gutter) 8px; font-family: var(--mono); font-size: .78rem; color: var(--dim); border-top: 1px solid rgba(29, 44, 87, .8); }
@media (max-width: 600px) { .band-legend { display: none; } .band-axis span:nth-child(even) { display: none; } }

/* status strip — mirrors ATK's own status bar */
.statusbar { background: #060c1e; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--mist); }
.statusbar ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; flex-wrap: wrap; }
.statusbar ul { justify-content: space-between; column-gap: 28px; }
.statusbar li { padding: 13px 0; white-space: nowrap; }
.statusbar strong { color: var(--ice); font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-right: 6px; }
.statusbar .offline { color: var(--t-measured); font-family: var(--mono); font-size: .86rem; }
.statusbar .offline::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t-measured); margin-right: 8px; box-shadow: 0 0 10px var(--t-measured); }
@media (max-width: 700px) { .statusbar ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding-top: 6px; padding-bottom: 6px; } .statusbar li { padding: 7px 0; white-space: normal; } .statusbar li:first-child { grid-column: 1 / -1; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: linear-gradient(180deg, var(--deep), var(--abyss)); border-top: 1px solid rgba(29, 44, 87, .6); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--mist); font-size: 1.12rem; }

/* home: workspace rail with live preview */
.rail-demo { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.rail { list-style: none; margin: 0; padding: 10px; background: #0a1124; border: 1px solid var(--line); border-radius: var(--radius); }
.rail li + li { margin-top: 2px; }
.rail a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--mist); border-left: 3px solid transparent; }
.rail a strong { display: block; color: var(--ice); font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.rail a span { display: block; font-size: .93rem; line-height: 1.5; margin-top: 2px; }
.rail a:hover, .rail a.active { background: rgba(141, 107, 255, .12); border-left-color: var(--cyan); }
.rail-preview { margin: 0; position: sticky; top: 92px; }
.rail-preview .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(62, 232, 255, .28), 0 0 0 1px rgba(141, 107, 255, .15); background: #0b0f1a; }
.rail-preview img { width: 100%; transition: opacity .25s ease; }
.rail-preview img.swapping { opacity: .15; }
.rail-preview figcaption { margin-top: 12px; color: var(--dim); font-size: .92rem; }
@media (max-width: 900px) {
  .rail-demo { grid-template-columns: 1fr; }
  .rail-preview, .hint-wide { display: none; }
}

/* differentiators */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.point { padding: 26px 0; border-top: 1px solid var(--line); }
.point h3 { color: var(--ice); margin-bottom: .35em; }
.point p { color: var(--mist); margin: 0; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* tagged report sample */
.report-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .report-wrap { grid-template-columns: 1fr; } }
.report-fig { margin: 0; }
.report { background: #070e22; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; font-size: .97rem; }
.report-title { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px 12px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.report-title b { color: var(--ice); font-weight: 600; }
.report ol { list-style: none; margin: 0; padding: 6px 0; }
.report li { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 14px; padding: 11px 20px; border-left: 3px solid transparent; }
.report li + li { border-top: 1px solid rgba(29, 44, 87, .5); }
.report .src { display: block; color: var(--dim); font-size: .85rem; margin-top: 3px; }
.tag { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em; align-self: start; justify-self: start; padding: 3px 7px; border-radius: 4px; border: 1px solid currentColor; }
.tag-fact { color: var(--t-measured); }
.tag-assess { color: var(--t-cleaned); }
.tag-hypo { color: var(--t-proposed); }
.tag-gap { color: var(--t-inferred); }
.tag-collect { color: var(--cyan); }
li.l-fact { border-left-color: var(--t-measured); }
li.l-assess { border-left-color: var(--t-cleaned); }
li.l-hypo { border-left-color: var(--t-proposed); }
li.l-gap { border-left-color: var(--t-inferred); }
li.l-collect { border-left-color: var(--cyan); }
.note { color: var(--dim); font-size: .9rem; margin-top: 12px; }
@media (max-width: 520px) { .report li { grid-template-columns: 1fr; gap: 6px; } }

/* maturity bar */
.maturity { margin-top: 8px; }
.mbar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.mbar span { display: block; height: 100%; }
.seg-field { flex: 122 1 0; background: var(--m-field); }
.seg-built { flex: 616 1 0; background: var(--m-built); }
.seg-dev { flex: 91 1 0; background: repeating-linear-gradient(135deg, var(--m-dev) 0 6px, #c99418 6px 10px); }
.seg-planned { flex: 54 1 0; background: repeating-linear-gradient(135deg, var(--m-planned) 0 3px, transparent 3px 8px); }
.mlegend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mlegend li { border-top: 3px solid; padding-top: 10px; }
.mlegend .n { display: block; font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--ice); }
.mlegend .k { display: block; font-weight: 600; }
.mlegend .d { display: block; color: var(--dim); font-size: .9rem; line-height: 1.45; margin-top: 4px; }
.mlegend .f { border-color: var(--m-field); } .mlegend .f .k { color: var(--m-field); }
.mlegend .b { border-color: var(--m-built); } .mlegend .b .k { color: var(--m-built); }
.mlegend .dv { border-color: var(--m-dev); } .mlegend .dv .k { color: var(--m-dev); }
.mlegend .p { border-color: var(--m-planned); } .mlegend .p .k { color: var(--m-planned); }
@media (max-width: 760px) { .mlegend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* call to action */
.cta { position: relative; overflow: hidden; border: 1px solid rgba(141, 107, 255, .45); border-radius: 16px; padding: clamp(32px, 5vw, 56px); background: radial-gradient(600px 300px at 90% 0%, rgba(62, 232, 255, .16), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(228, 75, 255, .14), transparent 70%), #0a1230; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--mist); margin: 0; max-width: 58ch; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(900px 400px at 85% 0%, rgba(141, 107, 255, .16), transparent 70%); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 32px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.facts dt { color: var(--dim); font-size: .85rem; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.doc { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc p { color: var(--dim); font-size: .85rem; margin: 0 0 8px 14px; }
.toc ol { list-style: none; margin: 0; padding: 8px; background: #0a1124; border: 1px solid var(--line); border-radius: var(--radius); }
.toc a { display: block; padding: 8px 12px; color: var(--mist); text-decoration: none; border-radius: 6px; border-left: 3px solid transparent; font-size: .96rem; line-height: 1.35; }
.toc a:hover { color: var(--ice); background: rgba(141, 107, 255, .1); }
.toc a.active { color: var(--ice); border-left-color: var(--cyan); background: rgba(62, 232, 255, .07); }
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { border-left: 0; border: 1px solid var(--line); padding: 6px 10px; font-size: .9rem; }
}

.cap { padding: 0 0 clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.cap:last-child { border-bottom: 0; margin-bottom: 0; }
.cap-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.cap-head img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.cap-head h2 { margin: 0; }
.cap > p { max-width: 68ch; }
.cap .intro { color: var(--mist); font-size: 1.12rem; }
.cap ul.specs { list-style: none; padding: 0; margin: 20px 0 24px; max-width: 72ch; }
.cap ul.specs li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid rgba(29, 44, 87, .6); }
.cap ul.specs li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); transform: rotate(45deg); }
.cap ul.specs strong { color: var(--ice); }
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; margin-left: 6px; vertical-align: 2px; white-space: nowrap; line-height: 1.5; }
.chip-field { color: var(--m-field); }
.chip-built { color: var(--m-built); }
.chip-dev { color: var(--m-dev); }
.chip-planned { color: var(--m-planned); }
.posture { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(61, 220, 151, .5); background: rgba(61, 220, 151, .07); color: var(--t-measured); font-weight: 600; margin: 4px 0 18px; }

.shot { margin: 26px 0 8px; }
.shot .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0f1a; box-shadow: 0 24px 60px -28px rgba(62, 232, 255, .25); }
.shot figcaption { margin-top: 10px; color: var(--dim); font-size: .92rem; max-width: 72ch; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 8px; }
.shot-pair .shot { margin: 0; }
@media (max-width: 760px) { .shot-pair { grid-template-columns: 1fr; } }

.df-figure { margin: 26px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(500px 260px at 60% 45%, rgba(62, 232, 255, .08), transparent 70%), #060c1f; padding: 8px; }
.df-figure svg { width: 100%; height: auto; display: block; }
.df-figure figcaption { padding: 4px 10px 8px; color: var(--dim); font-size: .92rem; }

.planned-list { list-style: none; padding: 0; margin: 16px 0 0; }
.planned-list li { padding: 12px 0; border-top: 1px dashed rgba(138, 150, 179, .4); color: var(--mist); }
.planned-list strong { color: var(--ice); }

/* principles */
.principles { counter-reset: none; }
.principle { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: 34px 0; border-top: 1px solid var(--line); }
.principle h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.principle p { color: var(--mist); max-width: 66ch; }
.principle p strong { color: var(--ice); }
@media (max-width: 820px) { .principle { grid-template-columns: 1fr; gap: 6px; } }

.tiers { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.tiers li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 16px; border-radius: 8px; background: #0a1228; border: 1px solid var(--line); border-left: 4px solid; }
.tiers .w { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.tiers span:last-child { color: var(--mist); }
.tiers .record { border-left-color: var(--t-record); } .tiers .record .w { color: var(--t-record); }
.tiers .measured { border-left-color: var(--t-measured); } .tiers .measured .w { color: var(--t-measured); }
.tiers .cleaned { border-left-color: var(--t-cleaned); } .tiers .cleaned .w { color: var(--t-cleaned); }
.tiers .inferred { border-left: 4px dashed var(--t-inferred); } .tiers .inferred .w { color: var(--t-inferred); }
.tiers .invented { border-left: 4px dashed var(--t-invented); } .tiers .invented .w { color: var(--t-invented); }
@media (max-width: 560px) { .tiers li { grid-template-columns: 1fr; gap: 2px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #0a1228; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 36px); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--dim); font-weight: 400; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--text); color: var(--ice); background: #060c1f; border: 1px solid #2a3b6c; border-radius: 8px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 232, 255, .2); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.hp { position: absolute; left: -5000px; }
.caution { border-left: 3px solid var(--t-inferred); padding: 10px 14px; background: rgba(255, 194, 61, .06); color: var(--mist); font-size: .95rem; border-radius: 0 8px 8px 0; margin: 4px 0 22px; }
.side h2 { font-size: 1.35rem; margin-top: 4px; }
.side section + section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.side p, .side li { color: var(--mist); }
.side ol { padding-left: 1.2em; }
.side ol li + li { margin-top: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #040816; padding: 44px 0 36px; color: var(--dim); font-size: .93rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.foot .brand { margin-bottom: 10px; }
.foot .tagline { color: var(--mist); }
.foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.foot nav a { color: var(--mist); text-decoration: none; }
.foot nav a:hover { color: var(--ice); }
.legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(29, 44, 87, .6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.legal p { margin: 0; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } .foot nav ul { justify-content: flex-start; } }

/* simple pages */
.simple { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.simple .lead { margin: 0 auto; }
.simple .actions { justify-content: center; }

/* O.W.L. reconsider illustration */
.ledger-fig { margin: 26px 0 8px; }
.ledger { border: 1px solid var(--line); border-radius: var(--radius); background: #070e22; padding: 6px 0; }
.lrow { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 2px 14px; padding: 12px 18px; border-left: 3px solid transparent; align-items: baseline; }
.lrow .ls { grid-column: 2; }
.lrow + .lrow { border-top: 1px solid rgba(29, 44, 87, .5); }
.lrow .lt { font-family: var(--mono); font-size: .82rem; color: var(--mist); }
.lrow .ls { color: var(--dim); font-size: .86rem; }
.lrow.obs { border-left-color: var(--t-measured); }
.lrow.obs.old .lx { text-decoration: line-through; text-decoration-color: rgba(255, 194, 61, .8); color: var(--mist); }
.lrow.dec { border-left-color: var(--t-cleaned); }
.lrow.alert { border-left-color: var(--t-inferred); background: rgba(255, 194, 61, .07); }
.lrow.alert .lt, .lrow.alert .lx { color: var(--t-inferred); font-weight: 600; }
@media (max-width: 640px) { .lrow { grid-template-columns: 1fr; gap: 2px; } .lrow .ls { grid-column: 1; } }

/* antenna strip */
.ant-figure svg { max-height: 190px; }

/* assistants page */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rules div { padding: 18px 20px; border-right: 1px solid var(--line); }
.rules div:last-child { border-right: 0; }
.rules h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--cyan); }
.rules p { margin: 0; color: var(--mist); font-size: .95rem; }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } .rules div:nth-child(2) { border-right: 0; } .rules div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } .rules div { border-right: 0; border-bottom: 1px solid var(--line); } }
.agroup { padding: clamp(40px, 6vw, 64px) 0 0; scroll-margin-top: 90px; }
.agroup > h2 { margin-bottom: 18px; }
.assist { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 10px clamp(20px, 4vw, 48px); padding: 22px 0; border-top: 1px solid var(--line); }
.assist h3 { margin: 0 0 4px; }
.assist .where { color: var(--dim); font-size: .9rem; display: block; }
.assist p { margin: 0 0 10px; color: var(--mist); max-width: 68ch; }
.assist .honest { margin: 0; max-width: 68ch; padding-left: 14px; border-left: 3px solid var(--t-measured); color: var(--ice); font-size: .97rem; }
.assist .honest b { color: var(--t-measured); font-weight: 600; }
@media (max-width: 760px) { .assist { grid-template-columns: 1fr; } }
.posture-warn { color: var(--t-inferred); border-color: rgba(255, 194, 61, .55); background: rgba(255, 194, 61, .07); }
