/* viewport lock: nothing may widen the page past the screen. html-level
   because iOS Safari ignores overflow-x on body alone (cream-strip bug, 7/11) */
html { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }

/* =================================================================
   YEC. — Shared design system
   Brand: grounded, energizing, warm. Person first. Business second.
   ================================================================= */

/* ---- Fonts: loaded via <link> in each <head> (not @import) to avoid render-blocking ---- */

/* ---- Tokens ---- */
:root {
  /* Brand palette (verified kit) */
  --orange:     #E98500;
  --teal:       #007396;
  --navy:       #172029;
  --slate:      #2E3641;
  --charcoal:   #282828;
  --gray:       #515151;
  --warm-gray:  #B8B4B1;
  --cool-light: #E8ECF0;
  --cream:      #ECECE4;
  --white:      #FFFFFF;

  /* Tints (derived, used sparingly for borders/hovers) */
  --orange-deep: #cf7600;
  --teal-deep:   #005e7a;
  --navy-soft:   #20303c;

  /* Type */
  --font-head: 'Open Sans', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-kicker: 'Montserrat', system-ui, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(22px, 5vw, 64px);
  --section-y: clamp(80px, 11vw, 168px);

  /* Tweakable (overridden by tweaks panel) */
  --tw-accent: var(--orange);
  --tw-head-weight: 300;

  /* Accent text color, surface-aware. Orange fails WCAG AA on light fields,
     so accent TEXT (kickers, pillar numbers, link arrows) uses this token:
     teal on light surfaces, orange on dark. The orange graphical motifs
     (the spot, orbit, buttons) keep --tw-accent. */
  --accent-ink: var(--teal);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.62;
  font-size: 1.125rem; /* 18px at default root; rem so browser font-size prefs scale (7/12 audit) */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---- Focus visibility (WCAG 2.4.7 / 2.4.11) ---- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 1px; }
/* dark / teal fields: a white ring reads clearly */
.bg-navy :focus-visible, .bg-slate :focus-visible, .bg-teal :focus-visible,
.nav-drawer :focus-visible, .site-nav.nav-light :focus-visible {
  outline-color: var(--white);
}
/* orange fields: navy ring (white is only ~2.7:1 on orange) */
.bg-orange :focus-visible, body[data-herobg="orange"] .hero :focus-visible,
.site-nav.nav-onorange :focus-visible {
  outline-color: var(--navy);
}
/* the scrolled nav is a cream bar regardless of mode: use a dark ring */
.site-nav.scrolled :focus-visible { outline-color: var(--navy); }

/* ---- Skip link (first focusable element; revealed on focus) ---- */
.skip-link {
  position: fixed; top: -120px; left: 12px; z-index: 300;
  background: var(--navy); color: var(--white);
  font-family: var(--font-kicker); font-weight: 600; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 12px 18px; border: 2px solid var(--white);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
[tabindex="-1"]:focus { outline: none; } /* programmatic focus target (e.g. #main) shows no ring */

/* =================================================================
   Typography
   ================================================================= */
h1, h2, h3, h4, .display, .h1, .h2, .h3 { font-family: var(--font-head); font-weight: var(--tw-head-weight); line-height: 1.04; letter-spacing: -0.015em; } /* classes included so p.h2 etc. get heading rhythm (audit M20) */

.display {
  font-weight: var(--tw-head-weight);
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.lead { font-size: clamp(1.18rem, 1.7vw, 1.45rem); font-weight: 400; line-height: 1.55; }
.body-lg { font-size: 1.18rem; }
.small { font-size: 0.95rem; }

/* The kicker — Montserrat, uppercase, tracked */
.kicker {
  font-family: var(--font-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--accent-ink);
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.kicker.no-rule::before { display: none; }

.measure { max-width: 64ch; }
.measure-sm { max-width: 52ch; }

/* =================================================================
   Layout
   ================================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(56px, 7vw, 104px); }

/* Section background fields — flat, confident.
   Each surface also sets --accent-ink so accent text passes contrast:
   teal on light fields, orange on dark, navy on orange, cream on teal. */
.bg-orange { background: var(--orange); color: var(--white); --accent-ink: var(--navy); }
.bg-teal   { background: var(--teal);   color: var(--white); --accent-ink: var(--cream); }
.bg-navy   { background: var(--navy);   color: var(--cream); --accent-ink: var(--orange); }
.bg-slate  { background: var(--slate);  color: var(--cream); --accent-ink: var(--orange); }
.bg-cream  { background: var(--cream);  color: var(--navy);  --accent-ink: var(--teal); }
.bg-light  { background: var(--cool-light); color: var(--navy); --accent-ink: var(--teal); }
.bg-white  { background: var(--white);  color: var(--navy);  --accent-ink: var(--teal); }

/* On dark fields, secondary text softens */
.bg-orange .muted, .bg-teal .muted, .bg-navy .muted, .bg-slate .muted { color: rgba(255,255,255,0.78); }
/* kickers are small bold caps: 78%-white on teal is 3.9:1 (needs 4.5) — full white passes 5.3:1 (axe, 7/12) */
.bg-teal .kicker.muted { color: var(--white); }
.muted { color: var(--gray); }
.bg-cream .muted, .bg-light .muted, .bg-white .muted { color: var(--gray); }

/* =================================================================
   Buttons / CTAs
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-kicker);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 1.05em 1.7em;
  border-radius: 0;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-2px); }

.btn-accent { background: var(--tw-accent); color: var(--navy); }
.btn-accent:hover { filter: brightness(.94); transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); }

.text-link { color: var(--accent-ink); border-bottom: 1px solid currentColor; } /* in-copy links (audit L18) */

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.bg-navy .btn-outline:hover, .bg-orange .btn-outline:hover, .bg-teal .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
/* resting state per surface (replaces per-button inline patches) */
.bg-orange .btn-outline { color: var(--navy); border-color: var(--navy); }
.bg-teal .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.75); }

/* Text link with underline reveal */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-kicker); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  color: var(--accent-ink);
  transition: gap .25s ease;
}
.link-arrow:hover { gap: 0.85em; }

/* =================================================================
   The spot — the period made visible
   ================================================================= */
.spot {
  display: inline-block;
  /* a period, slightly oversized — sits ON the baseline like the logo's dot
     (was 0.58em: read as a floating box, not punctuation — Drew, 7/8) */
  width: 0.17em; height: 0.17em;
  margin-left: 0.06em;
  border-radius: 0; /* the period is a square (brand decision) */
  background: var(--tw-accent);
  vertical-align: baseline;
}

/* Orbit system (built per-page, base styles here) */
.orbit-stage { position: relative; aspect-ratio: 1; width: min(560px, 86vw); margin-inline: auto; }
.orbit-core {
  position: absolute; inset: 0; margin: auto;
  width: 30%; height: 30%; border-radius: 50%;
  background: var(--tw-accent);
  display: grid; place-items: center;
  z-index: 3;
}
.orbit-ring { position: absolute; inset: 0; border: 1.5px solid rgba(255,255,255,0.42); border-radius: 50%; }
.orbit-dot {
  position: absolute; top: 50%; left: 50%;
  display: flex; align-items: center; gap: 0.55rem;
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.orbit-dot .node { width: 18px; height: 18px; border-radius: 0; flex: none; box-shadow: 0 0 0 6px rgba(0,0,0,0.15); } /* square period/dot motif */
.orbit-dot .label {
  font-family: var(--font-kicker); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
}
/* left-half dots: label sits to the LEFT of the node, right-aligned */
.orbit-dot.flip { flex-direction: row-reverse; }
.orbit-dot.flip .label { text-align: right; }
/* phones: labels wrap instead of running off the viewport (Drew, 7/11) */
@media (max-width: 700px) {
  .orbit-dot .label { white-space: normal; max-width: 104px; font-size: 0.7rem; line-height: 1.3; }
}

/* =================================================================
   Cards & content blocks
   ================================================================= */
.card {
  background: var(--white);
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(23,32,41,0.10);
  height: 100%;
}
.card.on-dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 84px); align-items: center; }
.split.lean-left { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) { .split, .split.lean-left { grid-template-columns: 1fr; gap: 40px; } }

/* Pillar / numbered item */
.pillar-num {
  font-family: var(--font-kicker); font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.16em;
  color: var(--accent-ink);
}

/* =================================================================
   Image slots (placeholders the user fills)
   ================================================================= */
.imgslot {
  position: relative;
  background: var(--cool-light);
  border: 1px solid rgba(23,32,41,0.12);
  overflow: hidden;
  display: grid; place-items: center;
}
.bg-navy .imgslot, .bg-slate .imgslot, .bg-teal .imgslot { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.bg-orange .imgslot { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.imgslot .imgslot-tag {
  font-family: var(--font-kicker); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.68rem; color: var(--gray);
  padding: 0.5em 0.9em; text-align: center; line-height: 1.5;
}
.bg-navy .imgslot .imgslot-tag, .bg-teal .imgslot .imgslot-tag, .bg-orange .imgslot .imgslot-tag, .bg-slate .imgslot .imgslot-tag { color: rgba(255,255,255,0.62); }
.imgslot.ratio-portrait { aspect-ratio: 4 / 5; }
.imgslot.ratio-square   { aspect-ratio: 1; }
.imgslot.ratio-wide     { aspect-ratio: 16 / 10; }
.imgslot.ratio-tall     { aspect-ratio: 3 / 4; }
/* faint corner ticks to read as a deliberate frame */
.imgslot::before, .imgslot::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1.5px solid rgba(23,32,41,0.18);
}
.imgslot::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.imgslot::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.bg-navy .imgslot::before, .bg-navy .imgslot::after, .bg-teal .imgslot::before, .bg-teal .imgslot::after, .bg-orange .imgslot::before, .bg-orange .imgslot::after { border-color: rgba(255,255,255,0.3); }

/* =================================================================
   Iceberg poster (final art, 2026-07-07) — the image carries its own
   waterline labels + logo, so the old mock frame/waterline CSS is gone
   ================================================================= */
.iceberg-art {
  display: block; width: 100%; max-width: 600px; height: auto;
  box-shadow: 0 34px 70px -38px rgba(0,0,0,0.6);
}
/* click-to-zoom trigger: the whole poster is a button; a "Zoom in" pill appears
   on hover/keyboard focus (and stays visible on touch screens, which can't hover) */
.iceberg-zoom {
  position: relative; display: block; padding: 0; border: 0; background: none;
  cursor: zoom-in; max-width: 600px; width: 100%; text-align: left;
}
.iceberg-zoom .iceberg-art { max-width: none; }
.iceberg-zoom:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(233,133,0,0.6); }
.iceberg-zoom-pill {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(23,32,41,0.82); color: var(--cream);
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.64rem; padding: 9px 14px;
  border: 1px solid rgba(236,236,228,0.28); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.iceberg-zoom-pill .izp-icon { font-size: 1rem; line-height: 1; color: var(--orange); }
.iceberg-zoom:hover .iceberg-zoom-pill,
.iceberg-zoom:focus-visible .iceberg-zoom-pill { opacity: 1; transform: none; }
@media (hover: none) { .iceberg-zoom-pill { opacity: 1; transform: none; } }

/* the lightbox overlay */
.ib-lb {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(23,32,41,0.9);
  opacity: 0; transition: opacity .24s ease;
}
.ib-lb.show { opacity: 1; }
.ib-lb-scroll {
  position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch;
  display: flex; align-items: flex-start; justify-content: center; padding: 4vh 18px;
  cursor: zoom-out;
}
.ib-lb-scroll img {
  display: block; width: min(92vw, 780px); max-width: none; height: auto;
  margin: auto; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8); cursor: default;
}
@media (max-width: 700px) { .ib-lb-scroll img { width: 96vw; } }
.ib-lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--navy); font-size: 26px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.6);
}
.ib-lb-close:hover { background: #fff; }
.ib-lb-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(233,133,0,0.6); }

/* =================================================================
   Reveal on scroll (restrained)
   ================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   Rule / divider
   ================================================================= */
.rule { height: 1px; background: rgba(23,32,41,0.12); border: 0; }
.bg-navy .rule, .bg-teal .rule, .bg-orange .rule, .bg-slate .rule { background: rgba(255,255,255,0.18); }

/* Eyebrow stat-free fact line */
.facts dt { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.3rem,2.2vw,1.8rem); }
.facts dd { color: var(--gray); margin-top: 6px; }

/* Utility */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: var(--stack, 1.2rem); }
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.7rem; }
.gap { gap: 1.1rem; }
.gap-lg { gap: 1.8rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.full { width: 100%; }
.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; }
