/* Security — public offering page. Loads after styles.css and doc.css. */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14vh clamp(20px, 6vw, 60px) 12vh;
}
.hero-inner { width: min(1000px, 92vw); }

.hero-sub {
  margin: clamp(26px, 4vh, 44px) auto 0;
  max-width: 40ch;
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.45;
  color: color-mix(in oklch, var(--ink) 86%, var(--bg));
  text-wrap: balance;
}

.scrolltip {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 0; right: 0;
  font-family: var(--grot);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes tip-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; filter: blur(6px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

/* the headline assembles from dust and the line under it follows; the default
   delays are a fallback so the copy appears even if the script never runs */
.hero-sub { animation: rise 1.3s var(--ease-out-expo) 3s both; }
.scrolltip { animation: rise 1.3s var(--ease-out-expo) 3.6s both, tip-breathe 2.6s ease-in-out 4.9s infinite; }
.is-ready .hero-sub { animation-delay: 1.05s; }
.is-ready .scrolltip { animation-delay: 1.9s, 3.2s; }
.no-dust .hero-sub { animation-delay: 0.2s; }

/* ---------- Section rhythm ---------- */

.sec { padding: clamp(56px, 9vh, 110px) 0; }
.sec + .sec { padding-top: 0; }

.sec .wrap {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}

.sec-rail {
  position: sticky;
  top: clamp(84px, 12vh, 120px);
  padding-top: 0.9em;
  border-top: 1px solid color-mix(in oklch, var(--ink) 40%, var(--bg));
}

.sec-body { min-width: 0; }

.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: clamp(24px, 3.4vh, 40px);
  max-width: 18ch;
  text-wrap: balance;
}

.sec-body > * + * { margin-top: clamp(26px, 3.8vh, 42px); }
.sec-body .prose + .prose { margin-top: 1em; }

.sec-page h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* a quieter line that stands slightly apart from the prose */
.aside-note {
  padding-left: clamp(18px, 2vw, 26px);
  border-left: 1px solid color-mix(in oklch, var(--ink) 30%, var(--bg));
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: color-mix(in oklch, var(--ink) 78%, var(--bg));
  max-width: 46ch;
}

.plain.three li { font-size: clamp(16px, 1.2vw, 17px); }

/* ---------- The speed-gap figure ---------- */

.gap-fig { margin: 0; }
.gap-scroll { overflow-x: auto; }
.gap-fig svg {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
  overflow: visible;
}

.g-axis { stroke: var(--faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-tick { stroke: color-mix(in oklch, var(--ink) 45%, var(--bg)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-dot { fill: var(--ink); }
.g-dot.hollow { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }

.g-tag {
  font-family: var(--grot);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--muted);
  text-anchor: middle;
}
.g-tag.defence { fill: var(--ink); }

.g-val {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.01em;
  fill: var(--ink);
  text-anchor: middle;
}
.g-cap {
  font-family: var(--grot);
  font-size: 13px;
  fill: var(--muted);
  text-anchor: middle;
}

.g-gapline { stroke: color-mix(in oklch, var(--ink) 25%, var(--bg)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-gapval {
  font-family: var(--grot);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  fill: var(--muted);
  text-anchor: middle;
}

.gap-fig figcaption {
  margin-top: 18px;
  font-family: var(--grot);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 70ch;
}

/* small screens read it as a list instead of scrolling a chart sideways */
.gap-list { display: none; list-style: none; border-top: 1px solid var(--faint); }
.gap-list li { padding: 18px 0; border-bottom: 1px solid var(--faint); }
.gap-list b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-right: 12px;
}
.gap-list .label.defence { color: var(--ink); }
.gap-list p {
  margin-top: 8px;
  font-family: var(--grot);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Pillars ---------- */

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 84px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-top: clamp(26px, 3.6vh, 36px);
  border-top: 1px solid var(--faint);
}
.pillar + .pillar { margin-top: clamp(36px, 5vh, 56px); }
.pillar-n {
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: color-mix(in oklch, var(--ink) 32%, var(--bg));
}
.pillar .prose { margin-top: 16px; }

/* ---------- What we will not tell you ---------- */

.wont-list { list-style: none; border-top: 1px solid var(--faint); }
.wont-list li { padding: clamp(20px, 3vh, 28px) 0; border-bottom: 1px solid var(--faint); }
.wont-list b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
}
.wont-list p {
  margin-top: 10px;
  font-family: var(--grot);
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.6;
  color: color-mix(in oklch, var(--ink) 78%, var(--bg));
  max-width: 62ch;
}

/* ---------- Closer ---------- */

.closer {
  padding: clamp(60px, 11vh, 130px) 0 clamp(70px, 12vh, 140px);
}
.closer .wrap { text-align: center; }
.closer-line {
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: balance;
}
.closer-note {
  margin: clamp(28px, 4vh, 44px) auto 0;
  max-width: 44ch;
  font-family: var(--grot);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .sec .wrap { grid-template-columns: 1fr; gap: 18px; }
  .sec-rail { position: static; padding-top: 14px; }
  .sec-title { max-width: none; }
  .pillar { grid-template-columns: 1fr; gap: 10px; }
  .pillar-n { font-size: 36px; }
  .gap-scroll { display: none; }
  .gap-list { display: block; }
  .doc-masthead { position: absolute; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-sub, .scrolltip { animation: none !important; }
}

/* ---------- Print ---------- */

@media print {
  .scrolltip { display: none; }
  .hero { min-height: 0; padding: 40px 0 48px; }
  .hero-sub { animation: none !important; }
  .sec-rail { position: static; }
  .sec, .pillar, .wont-list li, .gap-fig { break-inside: avoid; }
  .sec { padding: 26px 0; }
  .gap-scroll { display: block; }
  .gap-list { display: none; }
  .gap-fig svg { min-width: 0; }
}
