:root {
  --paper: #f4ebdd;
  --paper-raised: #fbf6ed;
  --navy: #233044;
  --olive: #59633a;
  --olive-light: #c4ce9b;
  --sand: #d7c3aa;
  --olive-dark: #303923;
  --watch: #82622c;
  --rule: rgba(102, 89, 79, 0.2);
  --muted: #66594f;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--paper-raised);
  color: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: white;
  transition:
    background 180ms ease,
    color 180ms ease,
    height 180ms ease;
}

.site-header.is-scrolled {
  height: 60px;
  background: rgba(244, 235, 221, 0.96);
  color: var(--navy);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.wordmark-logo,
.console-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 980 / 300;
  background: currentColor;
  -webkit-mask: url('/assets/vayca-logo.png') center / contain no-repeat;
  mask: url('/assets/vayca-logo.png') center / contain no-repeat;
}

.console-brand-logo {
  width: 62px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header.is-scrolled .header-meta {
  color: var(--muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-header.is-scrolled .nav-cta {
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: min(100svh, 820px);
  overflow: hidden;
  display: grid;
  align-items: end;
  color: white;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: -4%;
}

.hero-media {
  background: url('/assets/hero-train.jpg') center / cover no-repeat;
  will-change: transform;
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(25, 31, 19, 0.9) 0%,
      rgba(25, 31, 19, 0.56) 42%,
      rgba(25, 31, 19, 0.08) 80%
    ),
    linear-gradient(0deg, rgba(25, 31, 19, 0.72), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  margin: 0 0 clamp(110px, 15vh, 150px) clamp(20px, 6vw, 88px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 700ms 60ms forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-kicker::before {
  width: 34px;
  height: 1px;
  background: var(--olive-light);
  content: '';
}

.hero-content h1 {
  max-width: 900px;
  margin: 0;
  font: 400 clamp(3.2rem, 6.3vw, 7.2rem) / 0.91 var(--serif);
  letter-spacing: -0.07em;
}

.hero-content h1 span {
  display: block;
  opacity: 0;
  animation: rise 800ms forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1 span:first-child {
  animation-delay: 140ms;
}

.hero-content h1 span:last-child {
  animation-delay: 220ms;
  color: var(--olive-light);
}

.hero-copy {
  max-width: 420px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  opacity: 0;
  animation: rise 700ms 320ms forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  opacity: 0;
  animation: rise 700ms 400ms forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-light {
  background: var(--paper-raised);
  color: var(--navy);
}

.button-light:hover,
.button-light:focus-visible {
  background: white;
}

.button-olive {
  background: var(--olive);
  color: white;
}

.button-olive:hover,
.button-olive:focus-visible {
  background: #454e2c;
}

.hero-caption {
  color: rgba(255, 255, 255, 0.58);
  font: italic 0.95rem var(--serif);
}

.hero-rail {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 56px);
  bottom: 22px;
  left: clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-rail a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.hero-rail b {
  color: var(--olive-light);
  font-size: 1rem;
}

.section {
  padding: clamp(76px, 9vw, 128px) clamp(20px, 6vw, 88px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 24px;
  color: var(--olive);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-index b {
  color: var(--navy);
  font-size: 0.7rem;
}

.section-index span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-index span::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: '';
}

.proof {
  background: var(--paper-raised);
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
  gap: clamp(42px, 8vw, 132px);
  align-items: center;
  margin-top: 54px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.proof-copy h2,
.process-heading h2,
.final-cta h2 {
  margin: 0;
  font: 400 clamp(2.8rem, 5.2vw, 5.8rem) / 0.96 var(--serif);
  letter-spacing: -0.06em;
}

.proof-copy > p:last-child {
  max-width: 390px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.trip-console {
  position: relative;
  overflow: hidden;
  background: #fbf6ed;
  color: var(--navy);
  border: 1px solid var(--sand);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(75, 65, 44, 0.08);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trip-console:hover {
  transform: translateY(-6px);
}

.console-top,
.console-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--sand);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.console-brand-logo {
  color: var(--olive);
}

.console-label {
  color: var(--muted);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--olive);
}

.console-live i {
  width: 6px;
  height: 6px;
  background: #59633a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(89, 99, 58, 0.13);
}

.console-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 30px 24px 26px;
  background: #e9e6d5;
  border-bottom: 1px solid #d5d6bc;
}

.console-glyph {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--olive);
  color: white;
  font-size: 1.25rem;
}

.console-summary small,
.console-summary strong,
.console-summary p {
  display: block;
  margin: 0;
}

.console-summary small {
  color: var(--olive);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.console-summary strong {
  margin-top: 7px;
  font: 400 1.45rem var(--serif);
}

.console-summary p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.console-rows {
  padding: 0 24px;
}

.console-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand);
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.row-high .state-dot {
  background: #9b3737;
  box-shadow: 0 0 0 4px rgba(155, 55, 55, 0.12);
}

.row-watch .state-dot {
  background: var(--watch);
  box-shadow: 0 0 0 4px rgba(130, 98, 44, 0.12);
}

.row-safe .state-dot {
  background: #59633a;
  box-shadow: 0 0 0 4px rgba(89, 99, 58, 0.12);
}

.console-row b,
.console-row small {
  display: block;
  margin: 0;
}

.console-row b {
  font-size: 0.82rem;
}

.console-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.console-row em {
  color: var(--muted);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.row-high em {
  color: #9b3737;
}

.row-watch em {
  color: var(--watch);
}

.row-safe em {
  color: #59633a;
}

.console-footer {
  justify-content: space-between;
  border: 0;
  background: #f0e7d8;
  color: var(--muted);
  font-size: 0.58rem;
}

.console-footer b {
  color: var(--olive);
  font-weight: 700;
}

.process {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: clamp(40px, 9vw, 140px);
  align-items: end;
  margin-top: 54px;
}

.process-heading p {
  max-width: 400px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 78px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  min-height: 150px;
  padding: 18px 24px 0 0;
}

.process-list li + li {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.process-list li > span {
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 800;
}

.process-list h3 {
  margin: 0;
  font: 400 1.65rem var(--serif);
  letter-spacing: -0.03em;
}

.process-list p {
  max-width: 240px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: clamp(38px, 8vw, 120px);
  row-gap: 28px;
  align-items: end;
  min-height: 360px;
  padding: clamp(74px, 8vw, 112px) clamp(20px, 6vw, 88px);
  background: var(--olive-dark);
}

.final-cta .section-index {
  grid-column: 1 / -1;
}

.final-main {
  grid-column: 1;
  align-self: end;
}

.final-cta .section-index b {
  color: white;
}

.final-cta .section-index {
  color: var(--olive-light);
}

.principle {
  margin: 0 0 24px;
  color: white;
  font: 400 clamp(1.35rem, 2.4vw, 2.2rem) / 1.05 var(--serif);
  letter-spacing: -0.04em;
}

.principle span {
  color: var(--olive-light);
}

.final-cta h2 {
  color: white;
}

.final-main p:last-child {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.final-actions {
  grid-column: 2;
  align-self: end;
  margin: 0;
}

.final-actions .button {
  min-height: 54px;
  padding-inline: 24px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.final-actions .button-olive {
  background: var(--olive-light);
  color: var(--navy);
}

.final-actions .button-olive:hover,
.final-actions .button-olive:focus-visible {
  background: white;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 84px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.73rem;
}

footer p {
  margin: 0;
}

.wordmark-dark {
  color: var(--navy);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .proof-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .proof-copy > p:last-child {
    max-width: 520px;
  }

  .process-heading {
    gap: 46px;
  }

  .final-cta {
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .header-meta > span {
    display: none;
  }

  .hero-content {
    margin-bottom: 116px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 10vw, 5.3rem);
  }

  .hero-copy {
    max-width: 340px;
  }

  .hero-caption {
    display: none;
  }

  .hero-rail {
    grid-template-columns: 1fr auto;
  }

  .hero-rail span:nth-child(2) {
    display: none;
  }

  .about-main,
  .signal,
  .process-heading,
  .final-cta {
    display: block;
  }

  .about-main,
  .process-heading,
  .signal-main,
  .final-main {
    margin-top: 38px;
  }

  .about-note,
  .process-heading p,
  .signal-list {
    margin-top: 36px;
  }

  .signal .section-index,
  .final-cta .section-index {
    margin-bottom: 0;
  }

  .signal-main {
    display: block;
  }

  .signal-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 54px;
  }

  .process-list li,
  .process-list li + li {
    min-height: 0;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .final-cta {
    min-height: 0;
  }

  .final-actions {
    margin-top: 34px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  footer a:nth-of-type(2),
  footer > span {
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 64px;
  }

  .site-header.is-scrolled {
    height: 56px;
  }

  .hero {
    min-height: 700px;
  }

  .wordmark-logo {
    width: 86px;
  }

  .hero-content {
    margin-bottom: 116px;
  }

  .hero-actions,
  .final-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-rail a {
    justify-self: start;
  }

  .signal-list {
    grid-template-columns: 1fr;
  }

  .signal-list li + li {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  footer a:nth-of-type(2),
  footer > span {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
