@import url("../fonts/fonts.css");

/* ============================================================
   Astramea — Hard Edge
   Design tokens
   ============================================================ */
:root {
  --ink:        #111111;
  --paper:      #ECEAE3;
  --paper-2:    #E4E2DA;
  --blue:       #3A1BE0;
  --lime:       #D6FF3F;
  --white:      #FFFFFF;
  --amber:      #E8A93A;
  --amber-deep: #B67A00;

  --muted:      #6E6A62;   /* muted text on paper */
  --muted-2:    #8A867C;
  --line:       rgba(17, 17, 17, 0.14);      /* hairline on paper */
  --line-strong:rgba(17, 17, 17, 0.55);

  --on-dark:      #ECEAE3;                    /* text on ink */
  --on-dark-muted:#B4B0A6;
  --on-dark-dim:  rgba(236, 234, 227, 0.55);
  --line-dark:    rgba(236, 234, 227, 0.18);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so body doesn't become a scroll container and break #anchor links */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--lime); color: var(--ink); }

/* Korean page uses Noto Sans KR and looser tracking */
html[lang="ko"] body { font-family: "Noto Sans KR", "Archivo", sans-serif; }
html[lang="ko"] .display,
html[lang="ko"] .hero-title,
html[lang="ko"] .section-title { letter-spacing: -0.01em; line-height: 1.08; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* offset in-page anchor jumps for the sticky header */
main > section[id],
main > div[id] { scroll-margin-top: 72px; }

.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.94;
  font-size: clamp(34px, 6vw, 68px);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--on-dark);
  white-space: nowrap;
}
.brand .sq { width: 9px; height: 9px; background: var(--lime); display: inline-block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  margin-inline-start: 12px;
}
.main-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: 0.85;
  transition: opacity .2s, color .2s;
}
.main-nav a:hover { opacity: 1; color: var(--lime); }

.header-right { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }

/* language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 2px; overflow: hidden; }
.lang-toggle button {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
  transition: background .2s, color .2s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

.lang-return {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--on-dark-muted); border: 1px solid var(--line-dark);
  padding: 6px 12px; border-radius: 2px; transition: color .2s, border-color .2s;
}
.lang-return:hover { color: var(--lime); border-color: var(--lime); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12.5px;
  padding: 12px 20px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #c7f21f; }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: #000; }
.btn-ink .arrow, .btn-lime .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 5vw, 64px); }
.hero-eyebrow-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(22px, 4vw, 40px); }
.hero-badge {
  align-self: flex-start;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
}
.hero-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.86;
  font-size: clamp(52px, 13vw, 150px);
}
.hero-title .line { display: block; }
.hero-title .dot { display: inline-block; width: 0.16em; height: 0.16em; background: var(--ink); margin-left: 0.06em; vertical-align: baseline; }

/* animated lime marker-highlight behind the accent word:
   wipes in from the left, holds, then wipes out to the right — looping */
.hero-title .accent {
  display: inline-block;
  color: var(--blue);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0% 86%;
  background-size: 0% 82%;
  animation: hlword 5.2s 1.65s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}
@keyframes hlword {
  0%, 5%     { background-size: 0% 82%;   background-position: 0% 86%; }
  16%, 26%   { background-size: 100% 82%; background-position: 0% 86%; }
  26.01%     { background-size: 100% 82%; background-position: 100% 86%; }
  38%, 99.9% { background-size: 0% 82%;   background-position: 100% 86%; }
  100%       { background-size: 0% 82%;   background-position: 0% 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .accent { animation: none; background-size: 100% 82%; }
}

.hero-rule { border: 0; border-top: 1.5px solid var(--ink); margin: clamp(26px, 4vw, 42px) 0 clamp(22px, 3vw, 34px); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.hero-lede { max-width: 40ch; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink); }

/* ============================================================
   Live demo section
   ============================================================ */
.demo { padding: clamp(46px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.demo-head { margin-bottom: clamp(26px, 3.5vw, 44px); }

.check-card {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-dark);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
}
.card-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.card-bar .mono { font-weight: 700; }
.card-bar .dim { color: var(--on-dark-dim); }
.card-status {
  margin-inline-start: auto;
  font-weight: 800; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
  background: var(--line-dark); color: var(--on-dark-muted);
  transition: background .35s, color .35s;
}
.card-status.is-resolved { background: var(--lime); color: var(--ink); }

/* left / input panel */
.card-input { background: var(--paper); color: var(--ink); padding: clamp(20px, 2.4vw, 30px); }
.panel-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.claim { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; font-weight: 500; }
.claim .hl { padding: 1px 2px; border-radius: 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.claim .hl-s1 { background: rgba(58, 27, 224, 0.16); }
.claim .hl-s2 { background: rgba(58, 27, 224, 0.16); }
.claim .hl-s3 { background: rgba(232, 169, 58, 0.22); }

.spans { margin-top: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.span-row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 12px; font-size: 12.5px; }
.span-row .sid { font-weight: 700; }
.span-track { height: 6px; background: rgba(17,17,17,0.12); border-radius: 4px; overflow: hidden; }
.span-track i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1s var(--ease); }
.span-row.s1 .span-track i, .span-row.s2 .span-track i { background: var(--blue); }
.span-row.s3 .span-track i { background: var(--amber-deep); }
.span-row .val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); min-width: 34px; text-align: right; }
.span-row .tag { font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.span-row.s3 .tag { color: var(--amber-deep); }

.replay {
  margin-top: clamp(22px, 2.8vw, 32px);
  background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 2px; align-self: flex-start;
  transition: transform .15s var(--ease), background .2s;
}
.replay:hover { background: #c7f21f; }
.replay:active { transform: translateY(1px); }

/* right / source trace panel */
.card-trace { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; }
.trace-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.trace-head .panel-label { color: var(--on-dark-muted); margin: 0; }
.trace-head .dim { font-size: 11px; color: var(--on-dark-dim); letter-spacing: 0.04em; }

.source { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.source:first-of-type { border-top: 0; }
.source-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.source-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; }
.badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 7px; border-radius: 2px; white-space: nowrap;
}
.badge-ok { background: var(--lime); color: var(--ink); }
.badge-ctx { background: var(--amber); color: #2a2000; }
.source-quote { font-size: 12.5px; line-height: 1.5; color: var(--on-dark); opacity: 0.92; }
.source-meta { font-size: 11px; color: var(--on-dark-dim); margin-top: 6px; letter-spacing: 0.02em; }

.trace-verdict { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.verdict-row { display: flex; align-items: flex-start; gap: 14px; }
.verdict-row .badge { margin-top: 2px; }
.verdict-text { font-size: 12.5px; line-height: 1.5; color: var(--on-dark-muted); }
.conf { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.conf-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.conf-track { flex: 1; height: 8px; background: var(--line-dark); border-radius: 4px; overflow: hidden; }
.conf-track i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 1.1s var(--ease); }
.conf-val { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; }
.disclaimer { font-size: 11px; color: var(--on-dark-dim); margin-top: 14px; }

/* ============================================================
   Method (dark)
   ============================================================ */
.method { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 104px) 0; }
.method .section-title { max-width: 16ch; margin-bottom: clamp(40px, 5vw, 68px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 6px clamp(18px, 2vw, 28px) 40px; border-left: 1px solid var(--line-dark); }
.step:first-child { border-left: 0; padding-left: 0; }
.step .num { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--lime); line-height: 1; margin-bottom: 20px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--on-dark-muted); max-width: 26ch; }
.step.feature {
  background: var(--blue); color: var(--white);
  border-left: 0; padding: clamp(22px,2.4vw,30px) clamp(22px,2.4vw,30px) clamp(28px,3vw,38px);
  margin: -6px 0;
}
.step.feature .num { color: var(--white); }
.step.feature p { color: rgba(255,255,255,0.86); }

/* ============================================================
   Numbers
   ============================================================ */
.numbers { padding: clamp(50px, 6vw, 92px) 0; }
.numbers .eyebrow { margin-bottom: clamp(24px, 3vw, 38px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.stat { padding: clamp(20px, 2.2vw, 30px); border-left: 1px solid var(--ink); }
.stat:first-child { border-left: 0; }
.stat.hot { background: var(--lime); }
.stat .figure { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .figure sup { font-size: 0.4em; font-weight: 700; color: var(--blue); vertical-align: super; margin-left: 2px; }
.stat.hot .figure sup { color: var(--ink); }
.stat p { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.stat.hot p { color: rgba(17,17,17,0.72); }

/* ============================================================
   Roadmap
   ============================================================ */
.roadmap { padding: clamp(46px, 5vw, 80px) 0 clamp(60px, 7vw, 100px); border-top: 1px solid var(--line); }
.roadmap .section-title { margin-bottom: clamp(30px, 4vw, 52px); }
.rm-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); border-bottom: 0; }
.rm-card { padding: clamp(20px, 2.2vw, 30px); border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-height: 168px; display: flex; flex-direction: column; }
.rm-card:nth-child(3n+1) { border-left: 0; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: auto; }
.rm-id { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); }
.rm-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.rm-badge.live { background: var(--lime); color: var(--ink); }
.rm-badge.progress { background: var(--lime); color: var(--ink); }
.rm-badge.planned { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.rm-title { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; margin: 20px 0 10px; }
.rm-card p { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* R04 feature card, full width, blue */
.rm-card.feature {
  grid-column: 1 / -1;
  background: var(--blue); color: var(--white);
  border-left: 0;
  min-height: 150px;
}
.rm-card.feature .rm-id { color: rgba(255,255,255,0.7); }
.rm-card.feature .rm-title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.rm-card.feature .rm-title .cycler { display: inline-block; min-width: 4ch; }
.rm-card.feature p { color: rgba(255,255,255,0.85); max-width: 60ch; }
.rm-card.feature .rm-badge.progress { background: var(--lime); color: var(--ink); }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 104px) 0; }
.about .eyebrow { color: var(--on-dark-muted); margin-bottom: clamp(20px, 3vw, 30px); }
.about-title {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 20ch;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: start;
}
.about-lede { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.62; color: var(--on-dark); max-width: 54ch; }
.about-aside { display: flex; flex-direction: column; gap: 22px; }
.about-motto { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; color: var(--lime); }
.about-note { font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding-top: 16px; }

/* ============================================================
   Contact CTA
   ============================================================ */
.cta { background: var(--blue); color: var(--paper); padding: clamp(60px, 8vw, 120px) 0 clamp(30px, 4vw, 54px); }
.cta-title { font-size: clamp(40px, 8vw, 96px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9; max-width: 15ch; }
.cta .btn-lime { margin-top: clamp(34px, 4vw, 56px); font-size: 14px; padding: 15px 24px; letter-spacing: 0.04em; text-transform: none; }
.cta-wordmark { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: clamp(30px, 4vw, 60px); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 6vw, 66px); letter-spacing: -0.02em; }
.cta-wordmark .sq { width: 0.22em; height: 0.22em; background: var(--lime); display: inline-block; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(44px, 5vw, 72px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: clamp(36px, 4vw, 56px); }
.footer-brand .brand { font-size: 19px; margin-bottom: 12px; }
.footer-brand .tag { font-size: 13px; color: var(--on-dark-muted); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--on-dark-muted); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-note { font-size: 13px; line-height: 1.55; color: var(--on-dark-muted); }
.footer-note h4 { color: var(--on-dark-dim); }
.footer-bottom { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark-dim); }
.footer-bottom a:hover { color: var(--lime); }
.footer-bottom .stamp { margin-inline-start: auto; font-weight: 700; letter-spacing: 0.06em; color: var(--on-dark-muted); }

/* ============================================================
   Legal page
   ============================================================ */
.legal { padding: clamp(48px, 6vw, 96px) 0; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 28px; }
.legal h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal .muted { color: var(--muted); }
.legal ul { padding-left: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .check-card { grid-template-columns: 1fr; }
  .card-input { border-bottom: 1px solid var(--line-dark); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding-bottom: 32px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step.feature { margin: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--ink); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .rm-grid { grid-template-columns: repeat(1, 1fr); }
  .rm-card { border-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--ink); padding: 16px var(--gutter); border-bottom: 1px solid var(--line-dark);
    margin: 0;
  }
  .main-nav.open a { padding: 10px 0; font-size: 14px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--on-dark); position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .header-right .btn { display: none; }
  .hero-foot { flex-direction: column; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-wordmark { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--ink); }
  .stat:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding-left: 0; }
}

/* ============================================================
   Sub-pages — shared
   ============================================================ */
.page-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.page-h1 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9; font-size: clamp(40px, 8vw, 92px); }
.page-lead { margin-top: clamp(20px, 3vw, 32px); max-width: 62ch; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.55; color: var(--ink); }

/* people list (founder / contact rows) */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 38px); }
.person { border-top: 1px solid var(--line); padding-top: 18px; }
.person .role { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.person .pname { font-size: clamp(15px, 1.5vw, 18px); font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; margin: 8px 0 10px; }
.person a { display: block; font-size: 14px; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.person a + a { margin-top: 4px; }
.person .tel { font-size: 13px; color: var(--muted-2); margin-top: 4px; }

/* ============================================================
   About page
   ============================================================ */
.ab-hero { padding: clamp(44px, 7vw, 92px) 0 clamp(34px, 5vw, 60px); }
.ab-blocks { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.ab-block { padding: clamp(28px, 4vw, 46px) clamp(22px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.ab-block:nth-child(even) { border-left: 1px solid var(--line); }
.ab-block h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.ab-block p { font-size: 15px; line-height: 1.65; max-width: 48ch; color: var(--ink); }

.ab-contact { background: var(--ink); color: var(--on-dark); padding: clamp(44px, 6vw, 84px) 0; }
.ab-contact .page-kicker { color: var(--on-dark-muted); }
.ab-contact .person { border-top-color: var(--line-dark); }
.ab-contact .person .role { color: var(--on-dark-dim); }
.ab-contact .person a { color: var(--lime); }
.ab-contact .person .tel { color: var(--on-dark-muted); }

/* ============================================================
   Contact page
   ============================================================ */
.ct-hero { background: var(--blue); color: var(--paper); padding: clamp(46px, 7vw, 92px) 0 clamp(40px, 6vw, 68px); }
.ct-hero .page-kicker { color: rgba(236, 234, 227, 0.72); }
.ct-hero .page-h1 { max-width: 16ch; }
.ct-hero .page-lead { color: rgba(236, 234, 227, 0.9); max-width: 56ch; }

.ct-body { padding: clamp(40px, 6vw, 80px) 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(34px, 5vw, 76px); }
.block-l { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 12px 14px; transition: border-color .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.ct-form button[type="submit"] { margin-top: 4px; }
.ct-reply { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* honeypot — visually hidden, off the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submit feedback */
.form-status { margin-top: 14px; font-size: 13.5px; line-height: 1.5; min-height: 1.2em; }
.form-status.is-ok { color: #1f7a3a; font-weight: 600; }
.form-status.is-err { color: #b3261e; font-weight: 600; }

.ct-aside > * + * { margin-top: clamp(34px, 4vw, 52px); }
.ct-aside .people { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.ct-aside .person { padding: 16px 0; }
.ct-aside .person:first-child { border-top: 0; padding-top: 0; }

.ct-next ol { list-style: none; counter-reset: step; }
.ct-next li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink); }
.ct-next li::before { content: counter(step, decimal-leading-zero); font-weight: 800; color: var(--blue); font-size: 15px; }

/* ============================================================
   Legal extras
   ============================================================ */
.legal-lead { font-size: 13px; color: var(--muted); margin: 0 0 8px; letter-spacing: 0.04em; }
.legal .foot-note { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.legal address { font-style: normal; }

@media (max-width: 860px) {
  .ct-body { grid-template-columns: 1fr; gap: 44px; }
  .people { grid-template-columns: 1fr; gap: 0; }
  .ab-contact .person, .person { padding: 16px 0; }
  .ab-contact .person:first-of-type { border-top: 0; }
}
@media (max-width: 620px) {
  .ab-blocks { grid-template-columns: 1fr; }
  .ab-block:nth-child(even) { border-left: 0; }
}
