/* ==========================================================================
   ZERO2ONE PARTNERS — Foundation layer
   Tokens · reset · typography · layout · buttons · utilities
   ========================================================================== */

:root {
  /* Brand palette (per brief, Part 2.2) */
  --navy: #101D32;
  --navy-deep: #172943;
  --navy-soft: #1E3452;
  --ivory: #F7F5F0;
  --white: #FFFFFF;
  --gold: #B99A62;
  --gold-ink: #8A6B3B;
  --slate: #667085;
  --charcoal: #252B33;
  --blue-grey: #E8EDF2;
  --green: #327A62;

  /* Derived surfaces */
  --ink: var(--charcoal);
  --ink-muted: #5A6472;
  --on-navy: #F2F0EA;
  --on-navy-muted: #A8B2C1;
  --hairline: rgba(16, 29, 50, 0.12);
  --hairline-strong: rgba(16, 29, 50, 0.22);
  --hairline-navy: rgba(255, 255, 255, 0.14);
  --hairline-gold: rgba(185, 154, 98, 0.42);

  /* Type */
  --font-display: "Manrope", "Neue Haas Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;

  /* Metrics */
  --maxw: 1280px;
  --gutter: 24px;
  --section-y: 84px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;
}

@media (min-width: 768px) {
  :root { --gutter: 36px; --section-y: 112px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 72px; --section-y: 132px; --header-h: 88px; }
}

/* ---------------------------------- Reset --------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

::selection { background: rgba(185, 154, 98, 0.28); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------- Typography ------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}
.on-navy .eyebrow,
.eyebrow.on-navy { color: var(--gold); }

.h-hero {
  font-size: clamp(2.375rem, 5.6vw, 5.125rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 600;
}

.h-section {
  font-size: clamp(1.875rem, 3.7vw, 3.375rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.h-sub {
  font-size: clamp(1.3125rem, 1.9vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
}

.h-card {
  font-size: clamp(1.1875rem, 1.35vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.014em;
}

.lede {
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  line-height: 1.68;
  color: var(--ink-muted);
}

.on-navy .lede,
.on-navy .body-lg { color: var(--on-navy-muted); }

.body-lg { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-muted); }

.small {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--slate);
}
.on-navy .small { color: var(--on-navy-muted); }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-style: normal;
}
.serif em { font-style: italic; }

.accent { color: var(--gold); }
.accent-ink { color: var(--gold-ink); }

.mono-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------- Layout --------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }

.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--on-navy); }
.bg-navy-deep { background: var(--navy-deep); color: var(--on-navy); }
.bg-bluegrey { background: var(--blue-grey); }

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.bg-navy-deep h1, .bg-navy-deep h2, .bg-navy-deep h3, .bg-navy-deep h4 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.split {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  align-items: start;
}

.stack > * + * { margin-top: 18px; }
.flow-narrow { max-width: 62ch; }

.hairline { height: 1px; background: var(--hairline); border: 0; }
.on-navy .hairline, .hairline.on-navy { background: var(--hairline-navy); }

/* Section head block */
.section-head { max-width: 880px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lede { margin-top: 26px; max-width: 66ch; }
.section-head--center .lede { margin-inline: auto; }

/* -------------------------------- Buttons -------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 50px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-bd: var(--gold);
  --btn-fg: #14203A;
}
.btn--gold:hover { --btn-bg: #C7A96F; --btn-bd: #C7A96F; }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.32);
}
.btn--ghost-light:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, 0.07); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-bd: var(--hairline-strong);
}
.btn--ghost:hover { --btn-bd: var(--navy); background: rgba(16, 29, 50, 0.04); }

.btn--sm { padding: 12px 20px; min-height: 44px; font-size: 13.5px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 15px; border-color: var(--gold); color: var(--gold-ink); }
.link-arrow svg { width: 14px; height: 14px; flex: none; }
.on-navy .link-arrow { color: var(--gold); border-color: var(--hairline-gold); }
.on-navy .link-arrow:hover { color: #D8BE8A; border-color: #D8BE8A; }

/* ------------------------------- Utilities ------------------------------- */
.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;
}

.nobr { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mt-72 { margin-top: 72px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Progressive grids */
@media (min-width: 700px) {
  .grid { gap: 28px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid { gap: 32px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--wide { grid-template-columns: 0.85fr 1.15fr; }
  .split--sidebar { grid-template-columns: 300px 1fr; gap: 64px; }
}
