/* ==========================================================================
   CivilStart v2 — slate blue-gray civic system
   Whites are white. Blue-gray is the accent. No statue, no overlays.
   Grammar: clean gradient hero, white sections, hairline rules, generous air.
   ========================================================================== */

@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/Cormorant-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/Cormorant-italic-var.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --white: #ffffff;
  --ice: #f8fafc;
  --pale: #e8eff5;
  --soft: #a8bdd2;
  --mid: #6886a2;
  --deep: #3a5269;
  --ink: #1e2d3d;
  --ink-deepest: #111b26;

  --accent: #2c6e8f;
  --accent-light: #4a8eaf;

  --line: rgba(30, 45, 61, 0.12);
  --line-strong: rgba(30, 45, 61, 0.24);
  --line-pale: rgba(248, 250, 252, 0.2);

  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 670px;
  --section-max: 900px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 340;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--ice);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Type */
h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 {
  font-family: var(--sans); font-weight: 550;
  font-size: 1rem; letter-spacing: 0.01em;
}
code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--pale); padding: 0.1em 0.35em; border-radius: 2px;
}

/* Buttons */
.button {
  display: inline-block; font-family: var(--sans);
  font-weight: 480; font-size: 0.95rem; text-decoration: none;
  border-radius: 999px; padding: 0.78em 1.7em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.button-solid { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.button-solid:hover { background: var(--deep); border-color: var(--deep); }
.button-outline {
  color: var(--ink); border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.6);
}
.button-outline:hover { border-color: var(--ink); background: var(--white); }
 
 /* Header */
 .site-header {
   position: fixed; inset: 0 0 auto 0; z-index: 50;
   background: rgba(255,255,255,0.85);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--line);
 }
 .header-inner {
   max-width: 1200px; margin: 0 auto;
   padding: 0.65rem var(--gutter);
   display: flex; align-items: center; justify-content: space-between; gap: 1rem;
 }
 .brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
 .brand-mark { display: block; width: 2.4rem; height: 2.4rem; color: var(--ink); }
 .brand-mark svg { width: 100%; height: 100%; }
 .brand-lockup { display: flex; flex-direction: column; line-height: 1.15; text-align: center; }
 .brand-name {
   font-family: var(--serif); font-weight: 520; font-size: 1.05rem;
   letter-spacing: 0.16em; text-transform: uppercase;
 }
 .brand-name .sc-cap {
   font-size: 1.15em;
 }
 .brand-motto {
   font-size: 0.6rem; font-weight: 460;
   letter-spacing: 0.28em; text-transform: uppercase; color: var(--mid);
 }
 .site-nav { display: flex; gap: clamp(0.9rem, 2vw, 1.8rem); }
 .site-nav a {
   font-size: 0.9rem; font-weight: 440; text-decoration: none; color: var(--ink);
   padding: 0.35rem 0; border-bottom: 1px solid transparent;
 }
 .site-nav a:hover { border-bottom-color: var(--ink); }
 .nav-toggle { display: none; }
 
 /* Hero — subtle background image + clean gradient */
 .hero {
   position: relative;
   min-height: 90svh;
   display: flex; align-items: center;
   background: linear-gradient(165deg, var(--pale) 0%, var(--ice) 50%, var(--white) 100%);
   overflow: hidden;
 }
 .hero-bg {
   position: absolute;
   inset: 0;
   background-image: url("assets/hero-bg-subtle.webp");
   background-size: cover;
   background-position: right center;
   background-repeat: no-repeat;
   opacity: 0.7;
   pointer-events: none;
   z-index: 0;
 }
 .hero-inner {
   position: relative;
   z-index: 1;
   width: 100%; max-width: 1200px; margin: 0 auto;
   padding: 8rem var(--gutter) 6rem;
 }
 .hero-inner .eyebrow {
   font-family: var(--sans); font-weight: 520; font-size: 0.72rem;
   letter-spacing: 0.24em; text-transform: uppercase; color: var(--deep);
   margin-bottom: 1.4rem;
 }
 .hero-lede {
   margin-top: 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem);
   font-weight: 340; max-width: 34rem;
 }
 .hero-support {
   margin-top: 1.1rem; max-width: 34rem; font-size: 0.98rem;
   color: color-mix(in srgb, var(--ink) 70%, var(--mid));
 }
 .hero-actions {
   margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
 }
 
 /* Sections */
 .section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
 .section-anchor { scroll-margin-top: 4.5rem; }
 .section-inner { max-width: var(--section-max); margin: 0 auto; padding: 0 var(--gutter); }
 .section-intro {
   max-width: var(--measure); margin-top: 1.4rem;
   font-size: 1.1rem; color: color-mix(in srgb, var(--ink) 75%, var(--mid));
 }
 .section h2 { max-width: 18ch; }
 
 /* §2 Hook strip */
 #problem { border-top: 1px solid var(--line); }
 .hook-kicker {
   margin-bottom: 2.5rem;
   font-family: var(--serif); font-style: italic; font-weight: 400;
   font-size: 1.5rem; color: var(--deep);
 }
 .hook-grid {
   display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
   border-top: 1px solid var(--line-strong);
 }
 .hook-card { padding: 1.8rem 1.5rem 1.8rem 0; border-right: 1px solid var(--line); }
 .hook-card:last-child { border-right: none; padding-right: 0; }
 .hook-card:not(:first-child) { padding-left: 1.5rem; }
 .hook-card p { font-size: 1rem; line-height: 1.55; }
 .hook-card strong {
   font-family: var(--serif); font-weight: 460; font-size: 1.2rem;
   line-height: 1.3; display: block; margin-bottom: 0.5rem;
 }
 .hook-closer {
   margin-top: 3rem; font-family: var(--serif); font-weight: 340;
   font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.3;
   max-width: 28ch; color: var(--ink);
 }
 
 /* §3 The Turn */
 .section-turn {
   background: var(--ink); color: var(--pale);
   padding: clamp(5rem, 10vw, 9rem) 0;
 }
 .turn-frame { max-width: var(--section-max); margin: 0 auto; padding: 0 var(--gutter); }
 .turn-frame + .turn-frame { margin-top: clamp(4rem, 8vw, 7rem); }
 .turn-frame-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
 .turn-caption {
   max-width: var(--measure); text-align: center;
   font-size: 1.05rem; line-height: 1.6; color: var(--soft);
 }
 .turn-caption strong { color: var(--white); font-weight: 520; }
 
 .email-pile { position: relative; width: 100%; max-width: 30rem; height: 18rem; }
 .email-card {
   position: absolute; left: calc(var(--off) * 1.5rem); top: calc(var(--off) * 1.2rem);
   transform: rotate(var(--rot)); width: 20rem;
   background: var(--white); border: 1px solid var(--line);
   padding: 0.9rem 1.1rem; font-size: 0.9rem; font-weight: 430; color: var(--ink);
   box-shadow: 0 2px 8px rgba(0,0,0,0.15);
   z-index: calc(10 - var(--off));
 }
 
 .address-card {
   background: var(--white); border: 1px solid var(--line);
   padding: 2.5rem 2rem; text-align: center; max-width: 28rem; width: 100%;
 }
 .address-text { font-family: var(--mono); font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; }
 .address-action { font-family: var(--serif); font-weight: 440; font-size: 1.4rem; color: var(--deep); }
 
 .livery-card {
   background: var(--white); border: 1px solid var(--line);
   border-left: 3px solid var(--accent);
   padding: 1.5rem 1.8rem; max-width: 30rem; width: 100%; color: #000;
 }
 .livery-header {
   font-family: var(--sans); font-weight: 600; font-size: 0.78rem;
   letter-spacing: 0.18em; text-transform: uppercase; color: #000;
   padding-bottom: 0.8rem; border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 1rem;
 }
 .livery-verdict {
   font-family: var(--sans); font-weight: 700; font-size: 1rem;
   letter-spacing: 0.05em; color: var(--accent); margin-bottom: 1rem;
 }
 .livery-detail {
   font-family: var(--sans); font-size: 0.92rem; line-height: 1.5;
   color: #333; padding-top: 0.6rem; border-top: 1px solid rgba(0,0,0,0.06);
 }
 .livery-detail:first-of-type { border-top: none; padding-top: 0; }
 
 /* §4 Deliverables */
 #deliverables { border-top: 1px solid var(--line); }
 .deliverable-list { list-style: none; margin-top: 2.5rem; counter-reset: item; }
 .deliverable-list li {
   counter-increment: item; padding: 1.8rem 0 1.8rem 3.5rem;
   border-top: 1px solid var(--line); position: relative;
 }
 .deliverable-list li:last-child { border-bottom: 1px solid var(--line); }
 .deliverable-list li::before {
   content: counter(item, decimal-leading-zero);
   position: absolute; left: 0; top: 1.9rem;
   font-family: var(--serif); font-weight: 340; font-size: 1.3rem; color: var(--soft);
 }
 .deliverable-list h3 {
   font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem;
 }
 .deliverable-list p { font-size: 1rem; max-width: var(--measure); }
 
 .tier-label {
   margin-top: 3.5rem; display: block;
   font-family: var(--sans); font-weight: 520; font-size: 0.72rem;
   letter-spacing: 0.24em; text-transform: uppercase; color: var(--deep);
 }
 .tier-grid {
   margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
   border-top: 1px solid var(--line-strong);
 }
 .tier-card { padding: 1.5rem 1.2rem 1.5rem 0; border-right: 1px solid var(--line); }
 .tier-card:last-child { border-right: none; padding-right: 0; }
 .tier-card:not(:first-child) { padding-left: 1.2rem; }
 .tier-card h3 {
   font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-bottom: 0.5rem;
 }
 .tier-card p { font-size: 0.95rem; }
 .stance-line {
   margin-top: 3.5rem; font-family: var(--serif); font-style: italic; font-weight: 420;
   font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; max-width: 40ch;
   color: var(--deep); border-left: 2px solid var(--soft); padding-left: 1.4rem;
 }
 
 /* §5 Contact */
 .contact-section {
   background: var(--ink); color: var(--ice);
   padding: clamp(5rem, 10vw, 8.5rem) 0;
 }
 .contact-inner { max-width: var(--section-max); margin: 0 auto; padding: 0 var(--gutter); }
 .contact-section .eyebrow {
   font-family: var(--sans); font-weight: 520; font-size: 0.72rem;
   letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft);
 }
 .contact-section h2 { color: var(--white); margin-top: 1.2rem; max-width: 20ch; }
 .contact-section p { margin-top: 1.4rem; max-width: 52ch; color: var(--pale); }
 .contact-section .button {
   margin-top: 2.2rem; background: var(--soft); color: var(--ink); border-color: var(--soft);
 }
 .contact-section .button:hover { background: var(--pale); }
 .boundary-line { margin-top: 2rem; font-size: 0.82rem; color: var(--soft); max-width: 60ch; }
 
 /* Footer */
 .site-footer { background: var(--ink-deepest); color: var(--pale); padding: 3.5rem 0 2.5rem; font-size: 0.92rem; }
 .footer-inner {
   max-width: var(--section-max); margin: 0 auto; padding: 0 var(--gutter) 2rem;
   display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
 }
 .footer-brand {
   font-family: var(--serif); font-weight: 500; font-size: 1rem;
   letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 0.5rem;
 }
 .footer-brand .sc-cap {
   font-size: 1.15em;
 }
 .footer-motto { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--soft); }
.footer-latin {
  font-family: var(--serif); font-style: italic; font-size: 0.85rem;
  color: rgba(168,189,210,0.5); margin-top: 0.3rem;
}
 .footer-inner p { color: var(--soft); }
 .footer-inner a { color: var(--pale); }
 .footer-disclaimer {
   max-width: var(--section-max); margin: 0 auto; padding: 1.6rem var(--gutter) 0;
   border-top: 1px solid var(--line-pale); color: rgba(168,189,210,0.6); font-size: 0.8rem;
 }
 
 /* Reveal */
 .reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity 0.7s ease, transform 0.7s ease; }
 .reveal.is-visible { opacity: 1; transform: none; }

 /* Hero is always visible — don't hide above-the-fold content */
 .hero-inner.reveal { opacity: 1; transform: none; }

 @media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   .reveal { opacity: 1; transform: none; transition: none; }
 }
 
 /* Responsive */
 @media (max-width: 900px) {
   .hook-grid { grid-template-columns: 1fr; }
   .hook-card { padding: 1.5rem 0; border-right: none; border-bottom: 1px solid var(--line); }
   .hook-card:not(:first-child) { padding-left: 0; }
   .tier-grid { grid-template-columns: 1fr; }
   .tier-card { padding: 1.3rem 0; border-right: none; border-bottom: 1px solid var(--line); }
   .tier-card:last-child { border-bottom: none; }
   .tier-card:not(:first-child) { padding-left: 0; }
   .hero { min-height: auto; }
   .hero-inner { padding-top: 10rem; }
   .nav-toggle {
     display: inline-flex; align-items: center; gap: 0.5rem;
     background: none; border: 1px solid var(--line-strong);
     border-radius: 999px; padding: 0.6rem 1.1rem; cursor: pointer; color: var(--ink);
     font-family: var(--sans); font-size: 0.85rem; font-weight: 440;
   }
   .nav-toggle-icon {
     width: 1.1rem; height: 1.1rem; position: relative;
   }
   .nav-toggle-icon::before, .nav-toggle-icon::after {
     content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
     background: currentColor; transition: transform 0.25s;
   }
   .nav-toggle-icon::before { top: 4px; }
   .nav-toggle-icon::after { top: 10px; }
   .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg) translate(3px, 3px); }
   .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg) translate(3px, -3px); }
   .site-nav {
     display: none; position: absolute; top: 100%; left: 0; right: 0;
     flex-direction: column; gap: 0; background: var(--white);
     border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem;
   }
   .site-nav.is-open { display: flex; }
   .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
 }
 @media (max-width: 500px) {
   .email-pile { height: 15rem; }
   .email-card { width: 16rem; left: calc(var(--off) * 0.8rem); }
 }
