:root {
  --navy: #13263d;
  --navy-2: #1e3a5f;
  --ink: #171717;
  --charcoal: #292929;
  --cream: #f4efe6;
  --paper: #fbf7ef;
  --tan: #c8aa65;
  --tan-2: #9a8f82;
  --white: #fffaf2;
  --muted: rgba(255, 250, 242, 0.68);
  --line: rgba(255, 250, 242, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.progress {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--progress, 0) * 100%);
  background: var(--tan);
}

.site-nav {
  position: absolute;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(19, 38, 61, 0.82), rgba(19, 38, 61, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
  box-shadow: 0 0 0 5px rgba(200, 170, 101, 0.16);
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 42px);
  color: rgba(255, 250, 242, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-cta,
.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--tan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  background: var(--tan);
  color: #1b160e;
}

.ghost-button,
.nav-cta {
  background: rgba(19, 38, 61, 0.3);
}

.hero {
  position: relative;
  min-height: 118vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 6vw, 88px) 82px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero::before {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: translateY(calc(var(--progress, 0) * -30px)) scale(1.03);
}

.hero::after {
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 170, 101, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(19, 38, 61, 0.95), rgba(19, 38, 61, 0.68) 42%, rgba(19, 38, 61, 0.14)),
    linear-gradient(0deg, rgba(41, 41, 41, 0.95), rgba(41, 41, 41, 0.1) 60%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(calc(var(--progress, 0) * -22px)) scale(1.02);
}

.cloud-layer {
  position: absolute;
  inset: -10% -12% auto auto;
  width: 70vw;
  height: 42vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 40%, rgba(255, 250, 242, 0.22), transparent 36%),
    radial-gradient(ellipse at 48% 35%, rgba(255, 250, 242, 0.18), transparent 34%),
    radial-gradient(ellipse at 80% 45%, rgba(255, 250, 242, 0.15), transparent 38%);
  filter: blur(18px);
  opacity: 0.72;
  animation: clouds 24s linear infinite alternate;
}

@keyframes clouds {
  from { transform: translateX(-4vw); }
  to { transform: translateX(8vw); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  align-self: start;
  margin-top: clamp(92px, 13vh, 140px);
  transform: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--tan);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 1180px;
  font-size: clamp(3.25rem, 6.1vw, 6.25rem);
  line-height: 0.86;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 .hero-subline {
  margin-top: 0.2em;
  font-size: inherit;
}

h2 {
  font-size: clamp(2.6rem, 5.8vw, 6.5rem);
  line-height: 0.9;
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 1;
}

.hero p:not(.eyebrow),
.intro p,
.card p,
.proof-card p,
.rail-card p,
.case-strip p,
.doc-stack p,
.split p,
.cta p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 6vw, 88px);
  bottom: calc(74px + 15vh);
  width: 230px;
  border-left: 1px solid var(--tan);
  padding-left: 18px;
  color: rgba(255, 250, 242, 0.75);
  font-size: 0.82rem;
  line-height: 1.55;
}

.section {
  padding: clamp(74px, 11vw, 150px) clamp(20px, 6vw, 88px);
}

.intro {
  max-width: 1120px;
}

.intro p {
  max-width: 780px;
  margin-top: 28px;
  font-size: 1.12rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
}

.card,
.proof-card,
.rail-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.045);
}

.card {
  --lift-y: 0px;
  min-height: 280px;
  padding: clamp(26px, 4vw, 46px);
  transform: translate3d(0, var(--lift-y), 0);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease, border-color 320ms ease, background 320ms ease;
  will-change: transform;
}

.card span,
.rail-card span {
  display: block;
  margin-bottom: 72px;
  color: var(--tan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.sticky-story {
  position: relative;
  min-height: 260vh;
  background: var(--paper);
  color: var(--ink);
}

.sticky-inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(72px, 8vw, 110px) clamp(20px, 6vw, 88px);
  overflow: hidden;
}

.story-copy .eyebrow {
  color: #8a6d31;
}

.story-panel {
  display: grid;
  gap: 18px;
}

.proof-card {
  --proof-x: 22px;
  --lift-y: 0px;
  padding: clamp(24px, 3vw, 36px);
  color: rgba(23, 23, 23, 0.5);
  background: rgba(30, 58, 95, 0.04);
  border-color: rgba(30, 58, 95, 0.16);
  transform: translate3d(var(--proof-x), var(--lift-y), 0);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 360ms ease, border-color 360ms ease, background 360ms ease, color 360ms ease;
  will-change: transform;
}

.proof-card.is-active {
  --proof-x: 0px;
  color: var(--ink);
  background: #fffaf2;
  box-shadow: 0 24px 70px rgba(19, 38, 61, 0.12);
}

.card:hover,
.card:focus-within,
.rail-card:hover,
.rail-card:focus-within,
.concept-list a:hover,
.concept-list a:focus-visible {
  --lift-y: -14px;
  border-color: rgba(200, 170, 101, 0.62);
  box-shadow: 0 28px 80px rgba(19, 38, 61, 0.18);
}

.proof-card p {
  color: rgba(23, 23, 23, 0.68);
}

.case-strip {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  background: #fffaf2;
  color: var(--ink);
}

.case-strip .eyebrow {
  color: #8a6d31;
}

.case-strip h2 {
  max-width: 760px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.case-metrics article {
  min-height: 210px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(30, 58, 95, 0.16);
  background: rgba(30, 58, 95, 0.04);
}

.case-metrics strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  font-weight: 500;
  line-height: 0.95;
}

.case-metrics span {
  display: block;
  margin-top: 22px;
  color: rgba(23, 23, 23, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.horizontal {
  min-height: 260vh;
  padding: 0;
}

.horizontal-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: 84px 0;
}

.rail-heading {
  padding: 0 clamp(20px, 6vw, 88px) 38px;
}

.rail {
  display: flex;
  gap: 22px;
  width: max-content;
  transform: translateX(var(--rail-x, 0px));
  transition: transform 80ms linear;
  padding: 0 clamp(20px, 6vw, 88px);
}

.rail-card {
  --lift-y: 0px;
  width: min(72vw, 520px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  transform: translate3d(0, var(--lift-y), 0);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease, border-color 320ms ease, background 320ms ease;
  will-change: transform;
}

.rail-card:nth-child(even) {
  background: rgba(30, 58, 95, 0.45);
}

.split,
.packet-scroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  background: var(--paper);
  color: var(--ink);
}

.packet-scroll {
  display: block;
  min-height: 320vh;
  padding: 0;
}

.packet-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 8vw, 110px) clamp(20px, 6vw, 88px);
}

.packet-copy {
  position: relative;
  z-index: 2;
}

.packet-copy .eyebrow {
  color: #8a6d31;
}

.packet-copy h2 {
  max-width: 680px;
}

.packet-copy p:not(.eyebrow) {
  max-width: 600px;
  color: rgba(23, 23, 23, 0.7);
  line-height: 1.7;
}

.packet-stage {
  position: relative;
  min-height: min(88vh, 900px);
  perspective: 1400px;
}

.packet-stage::before {
  content: none;
}

.packet-page {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 630px);
  min-height: min(88vh, 930px);
  aspect-ratio: 8.5 / 11;
  padding: 0;
  border: 1px solid rgba(30, 58, 95, 0.16);
  background: #fffaf2;
  box-shadow: 0 18px 46px rgba(19, 38, 61, 0.11);
  transform:
    translate(-50%, -50%)
    translate3d(var(--page-x, 130vw), var(--page-y, 120px), 0)
    rotate(var(--page-r, 9deg))
    scale(var(--page-scale, 0.9));
  opacity: var(--page-opacity, 0);
  transition: transform 120ms linear, opacity 120ms linear;
  will-change: transform, opacity;
  overflow: hidden;
}

.packet-page::before {
  content: none;
}

.packet-page::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: var(--lens-x, 50%);
  top: var(--lens-y, 50%);
  width: 142px;
  height: 142px;
  border: 1px solid rgba(255, 250, 242, 0.84);
  border-radius: 50%;
  background-image: var(--lens-image);
  background-position: var(--lens-bg-x, 50%) var(--lens-bg-y, 50%);
  background-repeat: no-repeat;
  background-size: var(--lens-bg-w, 200%) var(--lens-bg-h, 200%);
  box-shadow: 0 18px 44px rgba(19, 38, 61, 0.24), inset 0 0 0 1px rgba(19, 38, 61, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 120ms ease, transform 120ms ease;
}

.packet-page.is-magnifying::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.packet-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.packet-page-1 { z-index: 1; }
.packet-page-2 { z-index: 2; }
.packet-page-3 { z-index: 3; }
.packet-page-4 { z-index: 4; }

.split-image {
  min-height: 620px;
  background-image: var(--split-image);
  background-size: cover;
  background-position: center;
}

.doc-stack {
  display: grid;
  gap: 16px;
}

.doc-stack article {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(30, 58, 95, 0.18);
  background: #fffaf2;
  box-shadow: 0 20px 80px rgba(19, 38, 61, 0.08);
}

.doc-stack article:nth-child(2) {
  margin-left: clamp(12px, 4vw, 54px);
}

.doc-stack article:nth-child(3) {
  margin-left: clamp(24px, 8vw, 108px);
}

.doc-stack span {
  display: block;
  margin-bottom: 34px;
  color: #8a6d31;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split p {
  color: rgba(23, 23, 23, 0.7);
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  background: linear-gradient(135deg, var(--navy), #252525);
}

.cta p {
  max-width: 650px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 28px;
}

.contact-links a {
  color: var(--tan);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
}

.contact-links span {
  max-width: 420px;
  color: rgba(255, 250, 242, 0.7);
  line-height: 1.55;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.request-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 38, 0.72);
  backdrop-filter: blur(10px);
}

.request-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 46px);
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid rgba(200, 170, 101, 0.45);
  box-shadow: 0 34px 110px rgba(10, 20, 32, 0.34);
}

.request-modal__panel h2 {
  max-width: 620px;
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
}

.request-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(30, 58, 95, 0.18);
  color: var(--ink);
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: rgba(23, 23, 23, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(30, 58, 95, 0.18);
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  line-height: 1.45;
}

.request-form input:focus,
.request-form textarea:focus,
.request-modal__close:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 2px;
}

.request-form__wide,
.request-form__submit,
.request-form__note {
  grid-column: 1 / -1;
}

.request-form__submit {
  justify-self: start;
  cursor: pointer;
}

.request-form__submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.request-form__note {
  margin: 0;
  color: rgba(23, 23, 23, 0.64);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms ease, transform 800ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.concept-index {
  min-height: 100vh;
  padding: clamp(80px, 10vw, 150px) clamp(20px, 6vw, 88px);
  background: var(--navy);
}

.concept-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.concept-list a {
  --lift-y: 0px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.05);
  transform: translate3d(0, var(--lift-y), 0);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease, border-color 320ms ease, background 320ms ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .hero-video,
  .cloud-layer,
  .packet-page,
  .card,
  .proof-card,
  .rail-card,
  .reveal,
  .concept-list a {
    animation: none;
    transition: none;
    transform: none;
  }

  .card:hover,
  .card:focus-within,
  .rail-card:hover,
  .rail-card:focus-within,
  .concept-list a:hover,
  .concept-list a:focus-visible {
    transform: none;
  }
}

body.board-ready {
  --tan: #d7bc7a;
}

body.board-ready .hero {
  min-height: 100vh;
  align-items: center;
}

body.board-ready .hero::after {
  background:
    linear-gradient(90deg, rgba(19, 38, 61, 0.88), rgba(19, 38, 61, 0.62) 46%, rgba(19, 38, 61, 0.26)),
    linear-gradient(0deg, rgba(41, 41, 41, 0.72), rgba(41, 41, 41, 0.18) 62%);
}

body.before-storm {
  --navy: #102033;
  --charcoal: #202326;
}

body.legacy {
  --navy: #252525;
  --charcoal: #2d2d2b;
  --tan: #d1b36b;
}

@media (max-width: 1320px) {
  h1 span {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .site-nav nav {
    display: none;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    margin-top: 92px;
    transform: none;
  }

  .scroll-cue {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 38px;
  }

  .cards,
  .case-strip,
  .case-metrics,
  .sticky-inner,
  .packet-sticky,
  .split,
  .cta,
  .concept-list {
    grid-template-columns: 1fr;
  }

  .sticky-story {
    min-height: auto;
  }

  .packet-scroll {
    min-height: auto;
  }

  .sticky-inner,
  .packet-sticky {
    position: relative;
  }

  .packet-stage {
    min-height: min(72vh, 620px);
  }

  .packet-page {
    width: min(68vw, 380px);
    min-height: auto;
    transition: none;
  }

  .proof-card {
    transform: none;
  }

  .horizontal {
    min-height: auto;
  }

  .horizontal-sticky {
    position: relative;
    min-height: auto;
  }

  .rail {
    width: auto;
    overflow-x: auto;
    transform: none !important;
    scroll-snap-type: x mandatory;
  }

  .rail-card {
    flex: 0 0 84vw;
    scroll-snap-align: center;
  }
}

@media (max-width: 620px) {
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  h1 span {
    white-space: normal;
  }

  h1 .hero-subline {
    font-size: inherit;
  }

  .hero-actions a {
    width: 100%;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .packet-stage {
    min-height: 460px;
  }

  .packet-page {
    width: min(64vw, 260px);
    box-shadow: 0 12px 34px rgba(19, 38, 61, 0.12);
  }

  .split-image {
    min-height: 380px;
  }
}
