@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #2c5234;
  --forest-lit: #6f9e78;
  --sage: #8fa394;
  --off-white: #f4f3ed;
  --charcoal: #333333;
  --black: #000000;
  --white: #ffffff;

  --surface: var(--black);
  --surface-veil: var(--black);
  --ink: var(--off-white);
  --ink-muted: rgb(244 243 237 / 0.66);
  --ink-foot: rgb(244 243 237 / 0.6);
  --hairline-fade: rgb(244 243 237 / 0.25);
  --terrain-occlude: var(--black);
  --terrain-line-core: rgb(200 228 204);
  --terrain-line-mid: rgba(111, 158, 120, 0.58);
  --terrain-line-edge: rgba(244, 243, 237, 0.31);
  --glow-blend: screen;
  --status-border: rgb(244 243 237 / 0.16);
  --status-bg: linear-gradient(to bottom, rgb(244 243 237 / 0.14), rgb(244 243 237 / 0.03) 55%, rgb(44 82 52 / 0.28));
  --status-inset: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -1px 0 rgb(0 0 0 / 0.5), 0 10px 28px -10px rgb(0 0 0 / 0.9);
  --hero-veil: linear-gradient(to bottom, var(--surface-veil) 0%, var(--surface-veil) 78%, transparent 100%);
  --hero-radial: radial-gradient(closest-side at 50% 88%, rgb(0 0 0 / 0.85), transparent 70%);
  --foot-veil: linear-gradient(to top, var(--surface-veil) 45%, transparent);
  --beam-soft: rgb(244 243 237 / 0.16);
  --beam-accent: rgb(143 190 152 / 0.75);
  --glow-a: rgb(160 205 168 / 0.7);
  --glow-b: rgb(44 82 52 / 1);
  --glow-b-mid: rgb(44 82 52 / 0.35);
  --glow-opacity: 1;
  --terrain-strength: 2.4;
  --hero-veil-height: 72%;

  --frame: clamp(16px, 2.4vw, 32px);
  --mark-w: clamp(260px, min(54vw, 76vh), 880px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--forest) var(--black);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

::selection {
  background: transparent;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

h1,
p,
ul {
  margin: 0;
  padding: 0;
}

/* Stage */

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: var(--frame);
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 54%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 54%, #000 70%);
}

.glow {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: min(760px, 100vw);
  aspect-ratio: 2.4;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, var(--glow-a), transparent 32%),
    radial-gradient(closest-side, var(--glow-b), var(--glow-b-mid) 60%, transparent);
  opacity: var(--glow-opacity);
  filter: blur(20px);
  mix-blend-mode: var(--glow-blend);
}

.beam {
  position: absolute;
  top: 56%;
  width: 1px;
  height: min(36vh, 320px);
  background: linear-gradient(to bottom, transparent, var(--beam-soft) 45%, transparent);
}

.beam--1 { left: 16%; opacity: 0.4; }
.beam--2 { left: 31%; opacity: 0.4; }
.beam--3 {
  top: auto;
  bottom: 6%;
  left: 50%;
  height: min(34vh, 280px);
  background: linear-gradient(to bottom, transparent, var(--beam-accent) 55%, transparent);
}
.beam--4 { left: 69%; opacity: 0.4; }
.beam--5 { left: 84%; opacity: 0.4; }

/* Header bar */

.bar {
  justify-self: center;
  width: min(100%, 1240px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
}

.bar__brand,
.bar__word {
  height: auto;
}

.bar__brand {
  width: 64px;
}

.bar__word {
  width: clamp(128px, 16vw, 176px);
}

.status {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border: 1px solid var(--status-border);
  border-radius: 999px;
  background: var(--status-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--status-inset);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest-lit);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(32px, 6vh, 80px) clamp(40px, 9vh, 120px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: var(--hero-veil-height);
  transform: translateX(-50%);
  z-index: -1;
  background: var(--hero-veil), var(--hero-radial);
  pointer-events: none;
}

.title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 600;
}

.title__mark-wrap {
  position: relative;
  display: block;
  line-height: 0;
  padding-inline: clamp(28px, 5vw, 72px);
  background: var(--surface-veil);
  isolation: isolate;
}

.title__mark-wrap::before {
  content: "";
  position: absolute;
  inset: -8px clamp(-20px, -2vw, -12px);
  z-index: -1;
  background: var(--surface-veil);
}

.title__mark {
  display: block;
  width: var(--mark-w);
  height: auto;
  aspect-ratio: 376.17 / 85.04;
}

.purpose > span:first-child {
  color: var(--ink);
}

.purpose {
  margin-top: clamp(36px, 6vh, 64px);
  color: var(--ink);
  max-width: 18em;
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.purpose__tone {
  color: var(--accent-text, var(--sage));
}

.purpose--slogan {
  max-width: 18em;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.3;
}

.purpose--slogan .purpose__tone {
  display: block;
}

@media (min-width: 720px) {
  .purpose {
    max-width: none;
  }

  .purpose--slogan {
    max-width: 18em;
  }
}

.services {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(28px, 5vh, 48px);
}

.services::before,
.services::after {
  content: "";
  flex: 0 0 72px;
  height: 1px;
  background: linear-gradient(to left, var(--hairline-fade), transparent);
}

.services::after {
  background: linear-gradient(to right, var(--hairline-fade), transparent);
}

.services li {
  position: relative;
  padding-inline: clamp(14px, 1.6vw, 24px);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}

.services li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--forest-lit);
  transform: translate(-50%, -50%);
}

/* Footer */

.foot {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-foot);
}

.foot::before {
  content: "";
  position: absolute;
  inset: -48px calc(var(--frame) * -1) calc(var(--frame) * -1);
  z-index: -1;
  background: var(--foot-veil);
}

/* Arrival */

@media (prefers-reduced-motion: no-preference) {
  body:not(.static-surface) .purpose,
  body:not(.static-surface) .services {
    animation: resolve 1200ms var(--ease-out) both;
  }

  body:not(.static-surface) .purpose {
    animation-delay: 360ms;
  }

  body:not(.static-surface) .services {
    animation-delay: 520ms;
  }

  body:not(.static-surface) .terrain {
    animation: rise 2400ms var(--ease-out) both;
  }

  body:not(.static-surface) .status__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--forest-lit);
    animation: pulse 2400ms ease-out infinite;
  }
}

@keyframes resolve {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

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

@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3.2); opacity: 0; }
}

/* Narrow screens */

@media (max-width: 900px) {
  .services {
    flex-direction: column;
    row-gap: 14px;
  }

  .services::before,
  .services::after {
    flex-basis: auto;
    width: 40px;
  }

  .services::after {
    background: linear-gradient(to right, transparent, var(--hairline-fade), transparent);
  }

  .services::before {
    background: linear-gradient(to right, transparent, var(--hairline-fade), transparent);
  }

  .services li + li::before {
    display: none;
  }

  .beam--3 {
    height: min(22vh, 180px);
  }
}

@media (max-width: 560px) {
  :root {
    --mark-w: min(84vw, 360px);
  }

  .bar__brand {
    width: 54px;
  }

  .bar__word {
    width: 112px;
  }

  .status {
    padding: 9px 14px 9px 12px;
    font-size: 12px;
  }

  .foot {
    gap: 6px 18px;
  }
}
