:root {
  --night: #0c0e0b;          /* the shade under the pines */
  --moss: #1b2119;           /* the colour behind the photo while it loads */
  --gold: #f0bf73;           /* the one accent: warm light */
  --beam: #ffd9a0;           /* the colour of the drawn beams */
  --ink: #f6f1e7;
  --ink-soft: rgba(246, 241, 231, 0.72);
  --ink-faint: rgba(246, 241, 231, 0.5);
  --line: rgba(246, 241, 231, 0.16);
  --cta-ink: #1a1408;
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  --serif: "Newsreader Variable", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 20% 0%, #2a2f24, var(--moss) 45%, var(--night));
}

/* the photo: GSAP moves .photo, the CSS scales the image inside, so the edges never show */
.photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0;
}
.photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  transform: scale(1.09);
  /* a little darker and warmer than the original, so the drawn light has room above it */
  filter: brightness(0.66) contrast(1.08) saturate(0.82) sepia(0.12);
}

/* the beams: drawn small and stretched, which makes them soft; screen only adds light */
.rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: blur(6px);
}

/* the veil: the forest stays bright on the right, the words sit on a quiet shade on the left and at the bottom */
.veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 12, 9, 0.82) 0%, rgba(10, 12, 9, 0.55) 34%, rgba(10, 12, 9, 0.08) 64%, rgba(10, 12, 9, 0) 80%),
    linear-gradient(0deg, rgba(10, 12, 9, 0.7) 0%, rgba(10, 12, 9, 0) 38%),
    linear-gradient(180deg, rgba(10, 12, 9, 0.45) 0%, rgba(10, 12, 9, 0) 18%);
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* a still film grain over everything, so the soft gradients do not band */
.grain {
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- the bar on top */
.bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.4vh, 30px) clamp(16px, 4.4vw, 56px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: 'wdth' 108;
}
.brand__mark {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bar__nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 32px);
}
.bar__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-variation-settings: 'wdth' 100;
  transition: color 0.3s ease, font-variation-settings 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .bar__nav a:hover { color: var(--ink); font-variation-settings: 'wdth' 112; }
}

/* ---------------------------------------------------------------- the words */
.hero {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 4.4vw, 56px);
  bottom: clamp(18px, 9vh, 96px);
  width: min(560px, 86vw);
}
.label {
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(8px, 1.8vh, 16px);
}
.title {
  font-size: min(9.4vw, 9.6vh, 76px);
  line-height: 0.98;
  font-weight: 560;
  letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 92;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}
.title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  color: var(--gold);
}
.lede {
  margin-top: clamp(10px, 2.2vh, 20px);
  max-width: 40ch;
  font-size: clamp(13px, 1.9vh, 16px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.actions {
  margin-top: clamp(14px, 3.2vh, 30px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

/* the button: a warm pill whose label widens on the wdth axis */
.cta {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--cta-ink);
  border-radius: 999px;
}
.cta__face {
  position: relative;
  display: grid;
  height: clamp(40px, 6.2vh, 50px);
  padding: 0 clamp(18px, 2.2vw, 24px);
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, #f7cf8d, var(--gold) 55%, #e2a95a);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.75),
    inset 0 -1px 0 rgba(120, 74, 20, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 24px -6px rgba(240, 180, 90, 0.45),
    0 18px 40px -12px rgba(0, 0, 0, 0.6);
}
.cta__row {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(13.5px, 2vh, 15px);
  font-weight: 600;
  white-space: nowrap;
  font-variation-settings: 'wdth' 100;
  transition: font-variation-settings 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cta__row[data-row="done"] { opacity: 0; }
.cta__arrow, .cta__tick {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta__tick path { stroke-dasharray: 14; stroke-dashoffset: 14; }
.cta__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255, 252, 240, 0.7), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
.cta.is-over .cta__row { font-variation-settings: 'wdth' 112; }

.ghostlink {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(13px, 1.9vh, 14.5px);
  font-weight: 500;
  padding: 10px 2px;
  opacity: 0.82;
  transition: opacity 0.3s ease, letter-spacing 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .ghostlink:hover { opacity: 1; letter-spacing: 0.02em; }
}

/* ---------------------------------------------------------------- the availability card, frosted glass */
.chip {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 4.4vw, 56px);
  bottom: clamp(18px, 9vh, 96px);
  width: 220px;
  padding: 14px 16px 15px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 42, 34, 0.5), rgba(18, 20, 15, 0.55));
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 240, 210, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 220, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 20px 44px -16px rgba(0, 0, 0, 0.7);
}
.chip__top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.chip__count {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.chip__count span {
  display: inline-block;
  color: var(--gold);
  font-variant-numeric: proportional-nums;
}
.chip__bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}
.chip__bar i {
  height: 4px;
  border-radius: 2px;
  background: rgba(246, 241, 231, 0.16);
  transform-origin: 50% 100%;
}
.chip__bar i.is-free { background: var(--gold); }

/* the drawn pointer of the autopilot */
.pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  fill: #fff;
  stroke: #111;
  stroke-width: 1;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

/* ---------------------------------------------------------------- narrow and short screens */
@media (max-width: 760px) {
  .chip { display: none; }
  .veil {
    background:
      linear-gradient(0deg, rgba(10, 12, 9, 0.88) 0%, rgba(10, 12, 9, 0.55) 46%, rgba(10, 12, 9, 0.05) 78%),
      linear-gradient(180deg, rgba(10, 12, 9, 0.45) 0%, rgba(10, 12, 9, 0) 20%);
  }
}
@media (max-width: 520px) {
  .bar__nav a:not(:first-child) { display: none; }
}
@media (max-height: 520px) {
  .lede { display: none; }
  .chip { display: none; }
}
@media (max-height: 360px) {
  .label { display: none; }
}
