:root {
  --ink: #24133d;
  --ink-soft: #5f526a;
  --violet: #5a2d82;
  --paper: #f8f6fb;
  --white: #ffffff;
  --lilac: #e8ddf2;
  --mint: #b9e3cd;
  --apricot: #f7af79;
  --yellow: #eadc57;
  --line: rgba(36, 19, 61, 0.15);
  --accent: var(--violet);
  --signal: var(--mint);
  --shadow: 0 24px 70px rgba(49, 26, 75, 0.12);
  --radius: 28px;
}

body[data-site="s01"] { --accent: #5a2d82; --signal: #f7af79; }
body[data-site="s02"] { --accent: #452064; --signal: #b9e3cd; }
body[data-site="s03"] { --accent: #663476; --signal: #eadc57; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, color-mix(in srgb, var(--signal) 42%, transparent) 0, transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
p { text-wrap: pretty; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  margin: 18px auto 0;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}
.brand {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-radius: 50%;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.brand-mark::before { inset: 7px; background: var(--accent); }
.brand-mark::after {
  width: 6px;
  height: 6px;
  top: 0;
  right: 2px;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--white);
}
.site-role {
  padding-left: 20px;
  color: #75677e;
  border-left: 1px solid var(--line);
  font: 700 11px/1.3 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.site-header nav { margin-left: auto; display: flex; gap: 4px; }
.site-header nav a {
  min-height: 44px;
  padding: 12px 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #594a63;
  font-size: 14px;
  text-decoration: none;
}
.site-header nav a:hover { background: var(--lilac); }

main { overflow: clip; }
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: clamp(44px, 7vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(90, 45, 130, 0.06) 42px 43px);
  box-shadow: var(--shadow);
}
.eyebrow,
.section-kicker,
.source-label {
  margin: 0 0 16px;
  color: var(--accent);
  font: 800 12px/1.3 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1,
h2,
h3 { text-wrap: balance; }
h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 820;
  text-decoration: none;
}
.button-primary { color: var(--white); background: var(--accent); }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { color: var(--accent); border-color: var(--line); background: var(--white); }
.button-secondary:hover { border-color: var(--accent); }

.status-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius);
  background: var(--ink);
}
.status-card::before,
.status-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}
.status-card::before { width: 250px; height: 250px; top: -70px; right: -52px; }
.status-card::after { width: 145px; height: 145px; top: -18px; right: 6px; }
.status-dot {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  top: 52px;
  right: 62px;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.status-card small {
  position: relative;
  z-index: 1;
  color: var(--signal);
  font: 800 11px/1.3 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status-card h2 { position: relative; z-index: 1; margin: 12px 0 10px; font-size: 28px; line-height: 1.08; letter-spacing: -0.04em; }
.status-card p { position: relative; z-index: 1; margin: 0; color: #d9cde2; line-height: 1.52; }

.proof-chain { padding: clamp(74px, 9vw, 112px) 0; }
.section-head { max-width: 830px; }
.section-head h2 { margin: 0; font-size: clamp(38px, 5.5vw, 66px); line-height: 1; letter-spacing: -0.055em; }
.section-head > p:last-child { margin: 20px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.chain {
  margin-top: 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(49, 26, 75, 0.07);
}
.chain li { position: relative; min-height: 152px; padding: 24px; border-right: 1px solid var(--line); }
.chain li:last-child { border-right: 0; }
.chain li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  top: 25px;
  right: -14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.chain span { color: #8e7d98; font: 800 11px/1 Consolas, monospace; }
.chain strong { display: block; margin-top: 26px; font-size: 20px; letter-spacing: -0.025em; }
.chain p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }

.content-section { padding: clamp(78px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.content-section.is-tinted { background: rgba(232, 221, 242, 0.48); }
.section-layout { display: grid; grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr); gap: clamp(36px, 8vw, 110px); }
.section-index { color: var(--accent); font: 800 13px/1.2 Consolas, monospace; letter-spacing: 0.1em; }
.section-copy h2 { max-width: 15ch; margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.055em; }
.section-copy > p { max-width: 760px; margin: 22px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.fact-list { margin: 30px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.fact-list li { padding: 14px 16px 14px 46px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.72); line-height: 1.5; }
.fact-list li::before { content: "✓"; position: absolute; left: 17px; color: var(--accent); font-weight: 900; }
.inline-link { margin-top: 24px; display: inline-flex; color: var(--accent); font-weight: 800; text-underline-offset: 5px; }

.boundary { padding: clamp(78px, 9vw, 112px) 0; color: var(--white); background: var(--ink); }
.boundary-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 8vw, 100px); }
.boundary .section-kicker { color: var(--signal); }
.boundary h2 { margin: 0; font-size: clamp(38px, 5.5vw, 66px); line-height: 1; letter-spacing: -0.055em; }
.boundary-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.boundary-copy article { padding: 24px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; background: rgba(255, 255, 255, 0.06); }
.boundary-copy span { color: var(--signal); font: 800 11px/1 Consolas, monospace; letter-spacing: 0.09em; text-transform: uppercase; }
.boundary-copy h3 { margin: 18px 0 8px; font-size: 23px; letter-spacing: -0.035em; }
.boundary-copy p { margin: 0; color: #d8cce1; line-height: 1.5; }

.faq { padding: clamp(82px, 10vw, 126px) 0; }
.faq-grid { margin-top: 42px; display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
summary { min-height: 68px; padding: 20px 54px 20px 22px; position: relative; display: flex; align-items: center; font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; color: var(--accent); font: 400 30px/1 sans-serif; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 22px 22px; color: var(--ink-soft); line-height: 1.65; }

.contact { padding: 0 0 clamp(82px, 10vw, 126px); }
.contact-card {
  padding: clamp(34px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--signal);
}
.contact-card h2 { margin: 0; font-size: clamp(38px, 5.5vw, 66px); line-height: 1; letter-spacing: -0.055em; }
.contact-card p { max-width: 690px; margin: 18px 0 0; line-height: 1.58; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.contact-card .button-primary { background: var(--ink); }

.sources { padding: 38px 0; border-top: 1px solid var(--line); }
.sources-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.sources-list a { padding: 10px 12px; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--white); font-size: 13px; text-decoration: none; }
.sources-list a:hover { border-color: var(--accent); color: var(--accent); }

.site-footer { padding: 42px 0 50px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 0.7fr 0.8fr 1.5fr; gap: 38px; color: var(--ink-soft); }
.footer-grid p { margin: 0; line-height: 1.55; }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-contact a { text-underline-offset: 4px; }
.legal strong { color: var(--ink); }
.release { margin-top: 14px !important; color: #8d7f95; font: 700 11px/1.4 Consolas, monospace; }

:focus-visible { outline: 3px solid #d48a22; outline-offset: 4px; }

@media (max-width: 900px) {
  .hero,
  .section-layout,
  .boundary-grid,
  .contact-card,
  .footer-grid { grid-template-columns: 1fr; }
  .status-card { min-height: 300px; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li:nth-child(2) { border-right: 0; }
  .chain li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .chain li:nth-child(2)::after { display: none; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { width: calc(100% - 20px); margin-top: 10px; padding: 9px 12px; }
  .site-role { display: none; }
  .site-header nav { overflow-x: auto; }
  .site-header nav a { padding-inline: 10px; white-space: nowrap; }
  .site-header nav a:nth-child(-n + 2) { display: none; }
  .hero { width: calc(100% - 20px); margin-top: 10px; padding: 46px 22px 22px; border-radius: 26px; }
  h1 { font-size: clamp(44px, 14vw, 64px); }
  .lead { font-size: 18px; }
  .button { width: 100%; }
  .status-card { min-height: 270px; margin-top: 4px; }
  .chain { grid-template-columns: 1fr; }
  .chain li { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chain li:last-child { border-bottom: 0; }
  .chain li::after { display: none !important; }
  .boundary-copy { grid-template-columns: 1fr; }
  .contact-actions { display: grid; }
}

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