:root {
  --ink: #202020;
  --ink-soft: #5f5f5f;
  --paper: #ffffff;
  --paper-soft: #f8f8f8;
  --line: #e2e2e2;
  --blue: #0a3eff;
  --navy: #102a6e;
  --navy-soft: #16327f;
  --sans: "Switzer", "Switzer Placeholder", -apple-system, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", serif;
  --mono: "Chivo Mono", monospace;
  --gap: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.section-inner {
  width: 100%;
  padding: 0 clamp(24px, 3.5vw, 56px);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: 100%;
  padding: 18px clamp(24px, 3.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Buttons: sharp corners, Varick-style */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--paper-soft); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--line); }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover { opacity: 0.9; }
.btn-nav { padding: 9px 16px; font-size: 0.85rem; }
.btn-arrow { font-size: 1rem; line-height: 1; transform: translateY(-1px); }

/* Big hero CTA blocks */
.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
}
.hero-cta-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
  padding: 18px 20px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
  transition: opacity 0.15s ease;
}
.hero-cta-block:hover { opacity: 0.9; }
.hero-cta-block .arrow { font-size: 1.3rem; align-self: flex-end; }
.hero-cta-primary { background: var(--blue); }
.hero-cta-secondary { background: var(--navy); }

/* Labels */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.label-on-navy { color: rgba(255, 255, 255, 0.7); }
.label-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* Sections */
section { padding: 72px 0; }
.gap-section { background: var(--paper-soft); }

/* Split layout: heading one side, body the other. .split-flip mirrors it,
   keeping heading first in DOM order (reads/tabs naturally) and only
   reordering visually. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split-flip .split-heading { order: 2; }
.split-flip .split-body { order: 1; }
.split-body p:first-child { margin-top: 0; }

h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 34ch;
  color: var(--ink);
}
h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.who h2 { color: #fff; max-width: 22ch; }

p {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 20px;
}

.hero-sub { font-size: 1.15rem; margin-top: 24px; max-width: 50ch; }
.hero .hero-ctas { margin-top: 40px; }
.gap-section .btn { margin-top: 32px; }
.who .btn { margin-top: 32px; }

/* Hero texture */
.hero { position: relative; overflow: hidden; }
.hero-texture {
  display: block;
  margin: 56px auto -20px;
  max-width: 100%;
  opacity: 0.5;
}

/* How it works: color-block step cards */
.how-intro { max-width: 48ch; }

.step-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 48px 0 64px;
}
.step-card {
  border-radius: 2px;
  padding: 40px clamp(24px, 5vw, 56px);
  color: #fff;
}
.step-card:nth-child(1) { background: linear-gradient(135deg, var(--navy) 0%, #1c3a8f 100%); }
.step-card:nth-child(2) { background: linear-gradient(135deg, var(--blue) 0%, #2f5cff 100%); }
.step-card:nth-child(3) { background: linear-gradient(135deg, #16327f 0%, var(--navy) 100%); }
.step-card h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.step-card p { color: rgba(255, 255, 255, 0.82); max-width: 60ch; margin-top: 0; }

.trace { margin: 48px 0; }
.trace-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.trace-list { list-style: none; border-top: 1px solid var(--line); }
.trace-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.trace-step { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); }
.trace-note { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); text-align: right; }

.decision { margin: 40px 0; display: flex; flex-direction: column; gap: 0; }
.decision-row {
  display: grid;
  grid-template-columns: 1fr auto 2fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.decision-row:first-child { border-top: 1px solid var(--line); }
.decision-type { font-family: var(--serif); font-style: italic; font-size: 1.02rem; }
.decision-arrow { font-family: var(--mono); color: var(--blue); }
.decision-result { font-size: 0.96rem; color: var(--ink-soft); }

/* Who this is for: full navy section */
.who {
  background: var(--navy);
  padding: 96px 0;
}
.who p { color: rgba(255, 255, 255, 0.72); }

/* Footer: mono numbered index, Varick-style */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 72px 0 32px;
}
.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  margin-bottom: 64px;
  max-width: 480px;
  margin-left: auto;
}
.footer-links li {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.footer-links .idx { color: rgba(255, 255, 255, 0.45); }
.footer-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-logo { font-weight: 500; color: #fff; font-size: 1rem; }

/* Scroll reveal: matches Varick's actual Web Animations timing
   (duration 800ms, cubic-bezier(0.12,0.23,0.5,1), translateY(30px), 75ms stagger) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.12, 0.23, 0.5, 1),
              transform 0.8s cubic-bezier(0.12, 0.23, 0.5, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
  .hero-ctas { grid-template-columns: 1fr; max-width: 320px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-flip .split-heading,
  .split-flip .split-body { order: 0; }
  .decision-row { grid-template-columns: 1fr; gap: 4px; }
  .trace-list li { flex-direction: column; gap: 4px; }
  .trace-note { text-align: left; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-links { grid-template-columns: 1fr; margin-left: 0; }
  section { padding: 56px 0; }
  .who { padding: 64px 0; }
}
