:root {
  --forest: #0a2463;
  --forest-deep: #061743;
  --forest-soft: #163c86;
  --moss: #4a5b78;
  --sage: #9cc3f5;
  --sage-soft: #dceeff;
  --cream: #ffffff;
  --paper: #f7faff;
  --paper-deep: #e7f1ff;
  --gold: #ffc800;
  --gold-soft: #ffe066;
  --gold-deep: #b88600;
  --wine: #1e4fa3;
  --line: rgba(10, 36, 99, 0.16);
  --line-strong: rgba(10, 36, 99, 0.3);
  --cream-line: rgba(255, 255, 255, 0.2);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-brand: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.77, 0, 0.18, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 86px;
  --shadow: 0 30px 80px rgba(10, 36, 99, 0.12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h1 em,
h2 em,
h3 em,
.display em,
.page-title em {
  font-style: italic;
  font-weight: 400;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

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

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

::selection {
  background: var(--gold-soft);
  color: var(--forest-deep);
}

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

.tab-panel:focus {
  outline: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.container {
  width: min(1320px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 8vw, 116px);
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--moss);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.23em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.display {
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.display em {
  color: var(--gold-deep);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--dark {
  background: var(--forest);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--forest-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--forest);
}

.btn--ghost:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.btn--light {
  background: var(--cream);
  color: var(--forest);
}

.btn--light:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

.btn--outline-light {
  border-color: var(--cream-line);
  color: var(--cream);
}

.btn--outline-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--forest);
  transform: translateY(-2px);
}

.btn--submit {
  width: 100%;
  margin-top: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.8;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--gold-soft);
  border-color: rgba(216, 196, 155, 0.4);
}

.anim {
  opacity: 0;
}

.tab-panel.is-active .anim {
  animation: anim-rise 0.9s var(--ease) both;
  animation-delay: var(--delay, 0s);
}

.d1 { --delay: 0.05s; }
.d2 { --delay: 0.13s; }
.d3 { --delay: 0.21s; }
.d4 { --delay: 0.29s; }
.d5 { --delay: 0.37s; }
.d6 { --delay: 0.45s; }
.d7 { --delay: 0.53s; }
.d8 { --delay: 0.61s; }

.tab-panel.is-active .hero-copy > .eyebrow,
.tab-panel.is-active .page-head .eyebrow {
  animation: anim-rise 0.9s var(--ease) both, eyebrow-track 1.2s var(--ease) both;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}

.hero-title {
  --split-base: 0.14s;
}

.page-title {
  --split-base: 0.1s;
}

.split-line {
  display: inline;
}

.split-word {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0 0.05em 0.1em;
  margin: 0 -0.05em -0.1em;
  vertical-align: top;
}

.split-word__inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(112%) rotate(2deg);
  will-change: transform, opacity;
}

.tab-panel.is-active .split-word__inner {
  animation: split-word-rise 0.95s var(--ease) both;
  animation-delay: calc(var(--split-base, 0.12s) + var(--w, 0) * 0.055s);
}

.hero-title em .split-word,
.page-title em .split-word {
  position: relative;
}

.hero-title em .split-word::after,
.page-title em .split-word::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.02em;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.tab-panel.is-active .hero-title em .split-word::after,
.tab-panel.is-active .page-title em .split-word::after {
  animation: split-underline 0.7s var(--ease) both;
  animation-delay: calc(var(--split-base, 0.12s) + var(--w, 0) * 0.055s + 0.55s);
}

@keyframes anim-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes split-word-rise {
  from {
    opacity: 0;
    transform: translateY(112%) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes split-underline {
  to { transform: scaleX(1); }
}

@keyframes eyebrow-track {
  from { letter-spacing: 0.31em; }
  to { letter-spacing: 0.23em; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--sage);
  border: 2px solid var(--paper-deep);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--moss);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .anim {
    opacity: 1 !important;
    transform: none !important;
  }

  .split-word__inner {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title em .split-word::after,
  .page-title em .split-word::after {
    transform: scaleX(1) !important;
  }

  .kinetic-line__track,
  .footer-word {
    animation: none !important;
    transform: none !important;
  }

  .preloader {
    display: none !important;
  }
}
