/* =========================================================================
   World Digital Forum — main stylesheet
   Self-hosted, first-party only. No webfonts, no external assets.
   All decoration is CSS-drawn geometry, gradients and type.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Ink family — dark editorial surfaces */
  --ink:        #080D18;
  --ink-2:      #0F1626;
  --ink-3:      #182034;
  --ink-line:   rgba(238, 241, 247, 0.14);

  /* Paper family — light surfaces */
  --paper:      #FFFFFF;
  --paper-2:    #F4F5F8;
  --paper-3:    #E9ECF2;
  --line:       #DCE0E9;

  /* Text */
  --text:           #12182A;
  --text-muted:     #515C72;
  --on-dark:        #EEF1F7;
  --on-dark-muted:  #A5B0C6;

  /* Two accents, and nothing else */
  --gold:       #F2B441;
  --gold-soft:  #FFD27A;
  --blue:       #1B4DE4;
  --blue-deep:  #123AAE;

  /* Feedback */
  --warn:       #7A4A05;

  /* Type */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --shell: 1220px;
  --shell-narrow: 780px;
  --r: 3px;
  --r-lg: 6px;
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.1; letter-spacing: -0.022em; font-weight: 750; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}

/* ---------- 3. Layout primitives ---------------------------------------- */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell-narrow { max-width: var(--shell-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-paper { background: var(--paper); }
.section-mute { background: var(--paper-2); }
.on-ink { background: var(--ink); color: var(--on-dark); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--on-dark); }
.on-ink p { color: var(--on-dark-muted); }
.on-ink a { color: var(--gold); }
.on-ink a:hover { color: var(--gold-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink);
  padding: .85rem 1.4rem; font-weight: 700; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Type helpers --------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px; flex: none;
  background: var(--blue);
}
.on-ink .eyebrow, .eyebrow-gold { color: var(--gold); }
.on-ink .eyebrow::before, .eyebrow-gold::before { background: var(--gold); }

.display {
  font-size: clamp(2.35rem, 6.4vw, 4.6rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: .4em;
}
.h-sec {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.h-sub {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}
.on-ink .lede,
.hero .lede,
.page-head .lede { color: var(--on-dark-muted); }
.muted { color: var(--text-muted); }
.small { font-size: .93rem; }
.smaller { font-size: .85rem; }
.serif-statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.9vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: 400;
  font-style: italic;
  max-width: 26ch;
}
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  padding: .95rem 1.6rem;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold      { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover{ background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn-blue      { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.btn-blue:hover{ background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }
.btn-ink       { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-3); border-color: var(--ink-3); color: var(--on-dark); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: var(--ink-line); }
.btn-ghost-light:hover { background: var(--ink-3); color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn-ghost-dark { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost-dark:hover { background: var(--paper-2); color: var(--text); border-color: var(--text-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn .arw { font-family: var(--mono); font-weight: 400; }

/* ---------- 6. Header / navigation --------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand-mark {
  width: 34px; height: 34px; flex: none; position: relative;
  border: 2px solid var(--gold); border-radius: 50%;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%; border: 2px solid var(--blue);
  border-top-color: transparent; border-right-color: transparent;
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--gold); border-radius: 50%;
}
.brand-name { font-weight: 750; letter-spacing: -0.028em; font-size: 1.06rem; line-height: 1.1; }
.brand-sub {
  display: block; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500;
}
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--on-dark); text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: -0.008em;
  padding: .55rem .8rem; border-radius: var(--r);
  position: relative;
}
.nav a:hover { color: var(--gold); background: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px; background: var(--gold);
}
.header-cta { margin-left: .6rem; padding: .65rem 1.15rem; font-size: .92rem; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--ink-line);
  color: var(--on-dark); border-radius: var(--r); padding: .55rem .8rem;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; gap: .5rem;
  align-items: center;
}
.nav-toggle:hover { background: var(--ink-2); }
.nav-toggle .bars { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after  { top: 5px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--ink-line);
    padding: .6rem var(--gut) 1.4rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--ink-line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .header-cta { margin: 1rem 0 0; justify-content: center; }
  .site-header { position: relative; }
}

/* ---------- 7. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
/* thin measured grid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,.85), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom right, rgba(0,0,0,.85), transparent 72%);
  opacity: .55;
}
/* warm horizon glow */
.hero::after {
  content: ""; position: absolute; z-index: -2;
  right: -18vw; top: -30vh; width: 78vw; height: 130vh;
  background:
    radial-gradient(closest-side, rgba(242,180,65,.22), rgba(242,180,65,0) 70%),
    radial-gradient(closest-side, rgba(27,77,228,.24), rgba(27,77,228,0) 68%);
  background-position: 30% 40%, 72% 66%;
  background-size: 68% 68%, 74% 74%;
  background-repeat: no-repeat;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-block: clamp(3.75rem, 10vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}
.hero-copy { max-width: 22ch; }
.hero .display { max-width: 15ch; }
.hero .lede { max-width: 46ch; margin-bottom: 2.2rem; }
.hero-copy { max-width: none; }
.hero-edition {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--on-dark);
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: .45rem 1rem .45rem .7rem; margin-bottom: 1.9rem;
  background: rgba(255,255,255,.03);
}
.hero-edition .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
}
/* CSS-drawn rings — the only "image" in the hero */
.hero-figure { position: relative; min-height: 300px; align-self: stretch; }
.rings { position: absolute; right: -4%; bottom: -6%; width: min(430px, 92%); aspect-ratio: 1; }
.rings i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--ink-line);
}
.rings i:nth-child(1) { inset: 0; border-color: rgba(242,180,65,.42); }
.rings i:nth-child(2) { inset: 11%; border-color: rgba(27,77,228,.5); border-top-color: transparent; }
.rings i:nth-child(3) { inset: 23%; border-style: dashed; }
.rings i:nth-child(4) {
  inset: 35%;
  border-color: rgba(242,180,65,.3);
  background: radial-gradient(circle at 34% 30%, rgba(242,180,65,.14), transparent 62%);
}
.rings i:nth-child(5) {
  inset: 46%; border: 0;
  background: linear-gradient(135deg, var(--gold), rgba(242,180,65,.15));
  opacity: .35;
}
.rings b {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold);
}
.hero-marks {
  position: absolute; left: 0; top: clamp(1rem, 6vw, 4rem);
  display: grid; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-dark-muted);
}
.hero-marks span { display: flex; align-items: center; gap: .55rem; }
.hero-marks span::before {
  content: ""; width: 14px; height: 1px; background: var(--gold); flex: none;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { min-height: 220px; order: 2; }
  .rings { position: relative; right: auto; bottom: auto; margin-inline: auto; width: min(320px, 78%); }
  .hero-marks { position: static; margin-top: 1.75rem; }
}

/* ---------- 8. Principle band -------------------------------------------- */

.band {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
  color: var(--on-dark);
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.band-item {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.4vw, 2rem);
  border-left: 1px solid var(--ink-line);
}
.band-item:first-child { border-left: 0; padding-left: 0; }
.band-item h2,
.band-item h3 {
  font-size: 1.02rem; letter-spacing: -0.018em; margin-bottom: .45rem;
}
.band-item p { font-size: .92rem; line-height: 1.55; margin: 0; color: var(--on-dark-muted); }
.band-num {
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--gold); margin-bottom: .9rem;
}
@media (max-width: 900px) {
  .band-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .band-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .band-item:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
}
@media (max-width: 540px) {
  .band-grid { grid-template-columns: 1fr; }
  .band-item { border-left: 0; padding-left: 0; }
  .band-item + .band-item { border-top: 1px solid var(--ink-line); }
}

/* ---------- 9. Split editorial ------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-sticky { position: sticky; top: 110px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li {
  padding: 1.05rem 0 1.05rem 2.3rem;
  border-top: 1px solid var(--line);
  position: relative;
  margin: 0;
}
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list li::before {
  content: ""; position: absolute; left: .35rem; top: 1.72rem;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--blue);
}
.on-ink .rule-list li { border-color: var(--ink-line); }
.on-ink .rule-list li::before { border-color: var(--gold); }

/* ---------- 10. Topic grid ----------------------------------------------- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.topic {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  transition: background-color .16s ease;
}
.topic:hover { background: var(--paper-2); }
.topic::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform .18s ease;
}
.topic:hover::after { transform: scaleY(1); }
.topic-num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  color: var(--blue); display: block; margin-bottom: 1.1rem;
}
.topic h3 { font-size: 1.08rem; letter-spacing: -0.02em; margin-bottom: .5rem; }
.topic p { font-size: .93rem; line-height: 1.55; color: var(--text-muted); margin: 0; }

/* ---------- 11. Format cards --------------------------------------------- */

.format-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.format {
  background: var(--paper);
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
}
.format-index {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--paper); background: var(--ink);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
}
.format h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); margin-bottom: .5rem; }
.format p { margin: 0; color: var(--text-muted); }
.format-detail {
  font-family: var(--mono); font-size: .78rem; line-height: 1.6;
  letter-spacing: .04em; color: var(--text);
  border-left: 2px solid var(--gold); padding-left: 1rem;
}
@media (max-width: 860px) {
  .format { grid-template-columns: 2.4rem minmax(0,1fr); }
  .format-detail { grid-column: 2; padding-left: .9rem; }
}

/* ---------- 12. Audience -------------------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem 2.5rem;
  list-style: none; margin: 0; padding: 0;
}
.audience-grid li {
  border-top: 2px solid var(--ink);
  padding-top: .85rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0;
}
.on-ink .audience-grid li { border-color: var(--gold); }

/* ---------- 13. Newsletter block ------------------------------------------ */

.capture {
  background: var(--gold);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.capture::before {
  content: ""; position: absolute; right: -8%; top: -60%;
  width: 46vw; height: 220%; border-radius: 50%;
  border: 1.5rem solid rgba(8,13,24,.06);
}
.capture::after {
  content: ""; position: absolute; left: -12%; bottom: -120%;
  width: 34vw; height: 200%; border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.capture-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
  gap: clamp(1.75rem, 5vw, 4rem); align-items: center;
}
.capture h2 { color: var(--ink); font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.capture p  { color: var(--ink); max-width: 46ch; }
.capture .eyebrow { color: var(--ink); }
.capture .eyebrow::before { background: var(--ink); }
.capture-side {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg);
}
.capture-side h3 { color: var(--on-dark); font-size: 1.12rem; }
.capture-side p { color: var(--on-dark-muted); font-size: .93rem; }
.capture-side .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .capture-inner { grid-template-columns: 1fr; } }

/* ---------- 14. FAQ ------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.15rem);
  letter-spacing: -0.018em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .55rem; top: 50%;
  width: 13px; height: 13px; margin-top: -9px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }
.faq summary:hover { color: var(--blue-deep); }
.faq .faq-a { padding: 0 clamp(1rem, 6vw, 6rem) 1.5rem 0; }
.faq .faq-a p { color: var(--text-muted); margin: 0; }

/* ---------- 15. Cards / callouts ------------------------------------------ */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.card h3 { font-size: 1.1rem; }
.card p:last-child { margin-bottom: 0; }
.note {
  border-left: 3px solid var(--blue);
  background: var(--paper-2);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--r) var(--r) 0;
}
.note p:last-child { margin-bottom: 0; }
.note-gold { border-left-color: var(--gold); }

.stat-line {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-muted);
  border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem;
}
.on-ink .stat-line,
.hero .stat-line { color: var(--on-dark-muted); border-color: var(--ink-line); }

/* ---------- 16. CTA strip ------------------------------------------------- */

.cta-strip {
  background: var(--ink);
  color: var(--on-dark);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, transparent 40%, rgba(27,77,228,.22) 70%, transparent 92%);
}
.cta-inner {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
}
.cta-inner h2 { margin-bottom: .3rem; max-width: 20ch; }

/* ---------- 17. Forms ----------------------------------------------------- */

.form-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.4vw, 2.5rem);
}
.field { margin-bottom: 1.35rem; }
.field > label, .fieldset-legend {
  display: block; font-weight: 700; font-size: .93rem;
  letter-spacing: -0.008em; margin-bottom: .4rem;
}
.field .hint { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.req { color: var(--warn); font-weight: 700; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--text-muted);
  border-radius: var(--r);
  padding: .8rem .9rem;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  border-color: var(--blue);
}
textarea { min-height: 170px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; margin: 0 0 1.35rem; }
legend { font-weight: 700; font-size: .93rem; padding-inline: .4rem; }

.check {
  display: grid; grid-template-columns: 1.35rem 1fr; gap: .8rem;
  align-items: start; margin-bottom: .85rem;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 1.25rem; height: 1.25rem; margin: .18rem 0 0; accent-color: var(--blue);
}
.check label { font-size: .95rem; line-height: 1.55; }
.consent-box {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper-2);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.4rem;
}
.consent-box .check { margin-bottom: 0; }
.consent-box .consent-meta {
  margin: .9rem 0 0; font-size: .82rem; color: var(--text-muted);
  border-top: 1px solid var(--line); padding-top: .8rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.4rem; }
.form-foot p { font-size: .86rem; color: var(--text-muted); }
.form-foot p:last-child { margin-bottom: 0; }

/* ---------- 18. Legal pages ----------------------------------------------- */

.page-head {
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; right: -6%; top: -110%;
  width: 40vw; height: 320%; border-radius: 50%;
  border: 1px solid var(--ink-line);
}
.page-head::after {
  content: ""; position: absolute; right: 4%; top: -80%;
  width: 26vw; height: 260%; border-radius: 50%;
  border: 1px solid rgba(242,180,65,.28);
}
.page-head .shell { position: relative; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -0.033em; max-width: 18ch; }
.page-head .lede { color: var(--on-dark-muted); }
.page-meta {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-dark-muted); margin-top: 1.5rem;
}

.legal-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.legal-toc { position: sticky; top: 105px; }
.legal-toc h2 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: .9rem;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin: 0; border-top: 1px solid var(--line); }
.legal-toc li:last-child { border-bottom: 1px solid var(--line); }
.legal-toc a {
  display: block; padding: .6rem 0 .6rem 2rem; position: relative;
  font-size: .9rem; text-decoration: none; color: var(--text); line-height: 1.4;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; font-family: var(--mono); font-size: .72rem;
  color: var(--blue); top: .72rem;
}
.legal-toc a:hover { color: var(--blue); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--ink);
  scroll-margin-top: 100px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { line-height: 1.6; }
.prose table { margin: 1.5rem 0 2rem; font-size: .93rem; }
.prose th, .prose td {
  text-align: left; vertical-align: top;
  padding: .8rem .9rem; border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--paper-2); font-size: .78rem; letter-spacing: .09em;
  text-transform: uppercase; font-family: var(--mono); font-weight: 600;
}
.prose caption { text-align: left; font-size: .88rem; color: var(--text-muted); padding-bottom: .6rem; }

.identity-block {
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0 2rem;
  background: var(--paper-2);
}
.identity-block h3 {
  margin-top: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 600;
}
.identity-block dl { margin: 0; display: grid; grid-template-columns: minmax(0,13rem) minmax(0,1fr); gap: .55rem 1.2rem; }
.identity-block dt { font-size: .82rem; color: var(--text-muted); letter-spacing: .02em; }
.identity-block dd { margin: 0; font-weight: 650; letter-spacing: -0.012em; }
.identity-block dd a { font-weight: 650; word-break: break-word; }
@media (max-width: 620px) {
  .identity-block dl { grid-template-columns: 1fr; gap: .1rem; }
  .identity-block dd { margin-bottom: .7rem; }
}

/* ---------- 19. Result pages ---------------------------------------------- */

.result {
  min-height: 58vh; display: grid; place-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--paper-2);
}
.result-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  max-width: 620px; width: 100%;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: left;
}
.result-mark {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.5rem;
  border: 2px solid var(--ink);
  font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--ink);
}
.result-mark-gold { border-color: var(--gold); background: var(--gold); }
.result-card h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.result-next { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.4rem; }
.result-next h2 { font-size: .95rem; margin-bottom: .7rem; }

/* ---------- 20. 404 ------------------------------------------------------- */

.notfound { position: relative; overflow: hidden; }
.notfound-code {
  font-family: var(--mono); font-size: clamp(4rem, 17vw, 11rem);
  line-height: .9; letter-spacing: -0.05em; color: var(--gold);
  margin: 0 0 1.5rem;
}

/* ---------- 21. Footer ----------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 3px solid var(--gold);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink-line);
}
.footer-col h2 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { color: var(--on-dark-muted); max-width: 40ch; font-size: .93rem; }
.footer-identity {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--ink-line);
}
.footer-identity dl { margin: 0; display: grid; gap: .3rem; }
.footer-identity .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-identity dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-muted); min-width: 8.5rem;
}
.footer-identity dd { margin: 0; color: var(--on-dark); font-size: .9rem; }
.footer-identity dd a { color: var(--gold); word-break: break-word; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.8rem; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer-legal-links li { margin: 0; }
.footer-legal-links a { color: var(--on-dark); text-decoration: none; }
.footer-legal-links a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 22. Cookie notice ---------------------------------------------- */

.cookie-notice {
  position: fixed; z-index: 80; left: var(--gut); right: var(--gut); bottom: var(--gut);
  max-width: 640px;
  background: var(--paper);
  color: var(--text);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 18px 44px rgba(8,13,24,.28);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice h2 { font-size: 1.02rem; margin-bottom: .45rem; }
.cookie-notice p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.cookie-notice .btn { padding: .65rem 1.2rem; font-size: .92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* ---------- 23. Utilities --------------------------------------------------- */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.flow > * + * { margin-top: 1.1rem; }
