:root {
  --vt-canopy-black-green: #102216;
  --vt-living-forest: #1B401D;
  --vt-mineral-field-paper: #F2EEE3;
  --vt-lichen-signal: #DDE21A;
  --vt-mist-evidence-blue: #86A9C8;
  --vt-root-umber: #60422C;
  --vt-carbon-root: #080D09;
  --vt-bone-light: #FAF7EF;
  --vt-moss-recovery: #647457;
  --vt-ochre-clay: #9A713A;

  --text-light: rgba(250, 247, 239, 0.96);
  --text-soft: rgba(250, 247, 239, 0.76);
  --line-light: rgba(250, 247, 239, 0.18);
  --shadow: 0 26px 90px rgba(8, 13, 9, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--vt-carbon-root);
  color: var(--vt-bone-light);
  font-family: "Public Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--vt-carbon-root);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--vt-bone-light);
  color: var(--vt-carbon-root);
  border-radius: 6px;
  transform: translateY(-140%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 22px clamp(18px, 4vw, 72px) 0;
  transition: padding 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-shell {
  width: min(1560px, 100%);
  min-height: 62px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
  transition:
    min-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-scrolled .site-header {
  padding: 0;
}

.is-scrolled .nav-shell {
  width: 100%;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 72px);
  border-radius: 0;
  border-color: rgba(250, 247, 239, 0.12);
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  background: rgba(8, 13, 9, 0.82);
  box-shadow: 0 16px 54px rgba(8, 13, 9, 0.28);
  backdrop-filter: blur(18px);
}

.site-menu {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand,
.nav-links,
.nav-actions,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: center;
  width: clamp(142px, 13vw, 190px);
  height: 62px;
  display: grid;
  place-items: center;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-brand {
  display: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.is-scrolled .brand {
  height: 52px;
  width: clamp(126px, 10vw, 160px);
}

.nav-links {
  justify-self: start;
  gap: clamp(18px, 2.5vw, 42px);
}

.nav-actions {
  justify-self: end;
  gap: clamp(14px, 1.8vw, 24px);
}

.nav-links a,
.nav-docs {
  color: rgba(221, 226, 26, 0.86);
  font-size: 15px;
  font-weight: 540;
  outline: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.nav-docs:hover,
.footer-links a:hover {
  color: var(--vt-bone-light);
}

.nav-links a:focus-visible,
.nav-docs:focus-visible,
.footer-links a:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--vt-mist-evidence-blue);
  outline-offset: 4px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 14px;
}

.button-primary {
  background: var(--vt-bone-light);
  color: var(--vt-carbon-root);
}

.button-primary:hover {
  background: var(--vt-lichen-signal);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: rgba(250, 247, 239, 0.28);
  background: rgba(250, 247, 239, 0.06);
  color: var(--vt-bone-light);
}

.button-secondary:hover {
  border-color: rgba(250, 247, 239, 0.5);
  background: rgba(250, 247, 239, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(250, 247, 239, 0.18);
  border-radius: 6px;
  background: rgba(250, 247, 239, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--vt-bone-light);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(132px, 15vh, 188px) clamp(22px, 5.5vw, 116px) clamp(76px, 11vh, 130px);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    url("assets/viaterra-hero-forest-stream.jpg") center / cover;
  filter: saturate(0.86) contrast(1.05) brightness(0.78);
  transform: scale(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-radial-gradient(circle at 40% 35%, rgba(242, 238, 227, 0.045) 0 0.55px, transparent 0.7px 3px),
    linear-gradient(rgba(250, 247, 239, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 247, 239, 0.018) 1px, transparent 1px);
  background-size: auto, 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 58% 42% at 50% 50%, rgba(16, 34, 22, 0.08) 0%, rgba(8, 13, 9, 0.22) 48%, rgba(8, 13, 9, 0.5) 100%),
    radial-gradient(ellipse 54% 32% at 28% 70%, rgba(27, 64, 29, 0.22) 0%, rgba(16, 34, 22, 0.12) 38%, transparent 76%),
    radial-gradient(ellipse 46% 26% at 73% 24%, rgba(96, 66, 44, 0.1) 0%, rgba(8, 13, 9, 0.08) 48%, transparent 80%),
    linear-gradient(180deg, rgba(8, 13, 9, 0.48) 0%, rgba(8, 13, 9, 0.18) 42%, rgba(8, 13, 9, 0.62) 100%);
  filter: blur(16px);
  transform: scale(1.06);
}

.hero-shade::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 38% 24% at 52% 44%, rgba(250, 247, 239, 0.08) 0%, rgba(250, 247, 239, 0.025) 34%, transparent 70%),
    radial-gradient(ellipse 32% 44% at 63% 62%, rgba(134, 169, 200, 0.08) 0%, rgba(16, 34, 22, 0.12) 42%, transparent 78%),
    radial-gradient(ellipse 64% 48% at 50% 54%, rgba(8, 13, 9, 0) 0%, rgba(8, 13, 9, 0.24) 74%, rgba(8, 13, 9, 0.44) 100%);
  filter: blur(34px);
  opacity: 0.74;
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 44% 34%, rgba(242, 238, 227, 0.04) 0 0.52px, transparent 0.65px 2.8px),
    linear-gradient(90deg, rgba(8, 13, 9, 0.42) 0%, rgba(8, 13, 9, 0.06) 42%, rgba(8, 13, 9, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 13, 9, 0.34) 0%, transparent 38%, rgba(8, 13, 9, 0.42) 100%);
  mix-blend-mode: normal;
  opacity: 0.68;
}

.hero-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.audience-line,
.continuity-strip p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin-bottom: clamp(26px, 3.4vh, 44px);
  color: rgba(250, 247, 239, 0.9);
  font-size: clamp(13px, 0.85vw, 20px);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
  animation: fade-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

h1 {
  max-width: 1180px;
  margin: 0 auto;
  color: var(--text-light);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 6.2vw, 132px);
  line-height: 1.01;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

.h1-line {
  display: block;
  overflow: hidden;
  margin-block: -0.08em;
  padding-block: 0.08em 0.12em;
}

.h1-line span {
  display: block;
  transform: translateY(34px);
  opacity: 0;
  filter: blur(22px);
  animation: h1-reveal 2100ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both;
}

.h1-line:nth-child(2) span {
  animation-delay: 720ms;
}

.hero-lede {
  max-width: 820px;
  margin: clamp(30px, 3.8vh, 48px) auto 0;
  color: var(--vt-lichen-signal);
  font-size: clamp(17px, 1.08vw, 22px);
  line-height: 1.46;
  animation: fade-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 840ms both;
}

.hero-actions {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(30px, 3.8vh, 48px);
  animation: fade-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms both;
}

.cta-svg-link {
  display: block;
  width: min(clamp(320px, 18vw, 382px), 100%);
  margin-inline: auto;
  line-height: 0;
  outline: none;
}

.cta-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  cursor: pointer;
}

.cta-white-shape {
  fill: rgba(250, 247, 239, 0.07);
  stroke: rgba(250, 247, 239, 0.34);
  stroke-width: 1;
}

.cta-hover-fill {
  fill: rgba(250, 247, 239, 0.14);
}

.cta-text {
  fill: var(--vt-bone-light);
  font-family: "Public Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 560;
  pointer-events: none;
}

.cta-arrow {
  fill: var(--vt-bone-light);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cta-reveal-rect {
  transition: width 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-svg-link:hover .cta-reveal-rect,
.cta-svg-link:focus-visible .cta-reveal-rect {
  width: 419.14px;
}

.cta-svg-link:hover .cta-arrow,
.cta-svg-link:focus-visible .cta-arrow {
  transform: translateX(9px) scaleX(1.07);
}

.cta-svg-link:focus-visible {
  outline: 2px solid var(--vt-mist-evidence-blue);
  outline-offset: 5px;
  border-radius: 999px;
}

.audience-line {
  max-width: 1020px;
  margin: clamp(30px, 4vh, 52px) auto 0;
  color: rgba(250, 247, 239, 0.62);
  font-size: clamp(11px, 0.72vw, 14px);
  line-height: 1.7;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  animation: fade-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 1160ms both;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px clamp(18px, 5vw, 76px) 42px;
  background: var(--vt-mineral-field-paper);
  color: var(--vt-canopy-black-green);
}

@keyframes h1-reveal {
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.footer-brand {
  width: clamp(118px, 9vw, 158px);
  display: block;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer p {
  margin: 10px 0 0;
  color: rgba(16, 34, 22, 0.68);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(16, 34, 22, 0.7);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .site-header {
    padding: 0;
  }

  .nav-shell {
    position: relative;
    min-height: 64px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 0;
    border-color: transparent transparent rgba(250, 247, 239, 0.13);
    background: rgba(8, 13, 9, 0.58);
    backdrop-filter: blur(16px);
  }

  .nav-toggle {
    display: block;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .site-menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    display: none;
    padding: 18px;
    border: 1px solid rgba(250, 247, 239, 0.16);
    border-radius: var(--radius);
    background: rgba(8, 13, 9, 0.94);
    box-shadow: var(--shadow);
  }

  .site-menu[data-open="true"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand {
    justify-self: start;
    width: 138px;
    height: 52px;
  }

  .site-menu > .brand {
    display: none;
  }

  .nav-links,
  .nav-actions {
    display: grid;
    justify-self: stretch;
    gap: 4px;
  }

  .nav-links a,
  .nav-docs {
    padding: 12px 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 142px;
    padding-bottom: 72px;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    padding-inline: 16px;
  }

  .hero {
    min-height: 100svh;
    padding: 126px 20px 64px;
  }

  .hero-content {
    width: min(100%, 430px);
  }

  .eyebrow {
    max-width: 360px;
    margin-inline: auto;
    margin-bottom: 24px;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.45;
  }

  h1 {
    max-width: 390px;
    font-size: clamp(48px, 14vw, 66px);
    line-height: 1.02;
  }

  .hero-lede {
    max-width: 390px;
    font-size: clamp(16px, 4.4vw, 18px);
    line-height: 1.46;
    margin-top: 28px;
  }

  .hero-actions {
    align-items: stretch;
    margin-top: 32px;
  }

  .hero-actions .button {
    flex: 1 1 220px;
    width: 100%;
  }

  .cta-svg-link {
    width: min(324px, 100%);
    margin-inline: auto;
  }

  .audience-line {
    max-width: 360px;
    margin-top: 32px;
    font-size: 10px;
    line-height: 1.65;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

}

@media (max-width: 460px) {
  .button {
    width: 100%;
  }
}
