@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f4f6ee;
  --ink-soft: rgba(244, 246, 238, 0.82);
  --ink-muted: rgba(244, 246, 238, 0.7);
  --line: rgba(244, 246, 238, 0.3);
  --line-strong: rgba(244, 246, 238, 0.52);
  --accent: #c9f58b;
  --accent-ink: #172016;
  --frame: clamp(8px, 0.7vw, 12px);
  --pad: clamp(22px, 3vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: #101a12;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #101a12;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  padding:
    calc(var(--frame) + var(--pad))
    calc(var(--frame) + var(--pad))
    calc(var(--frame) + var(--pad));
}

.hero__media {
  position: absolute;
  z-index: -3;
  inset: var(--frame);
  overflow: hidden;
  border-radius: clamp(18px, 1.7vw, 26px);
  background:
    url("assets/forest-fragrance-poster.png") center center / cover no-repeat,
    #152116;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  scale: 1.025;
  animation: media-settle 1.6s var(--ease) 0.05s both;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 8, 0.42) 0%, transparent 34%),
    linear-gradient(90deg, rgba(7, 15, 8, 0.88) 0%, rgba(7, 15, 8, 0.6) 38%, rgba(7, 15, 8, 0.15) 62%, transparent 72%),
    linear-gradient(0deg, rgba(6, 13, 7, 0.74) 0%, transparent 38%);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  animation: header-in 0.8s var(--ease) 0.1s both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand__mark {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    color 280ms var(--ease),
    transform 280ms var(--ease),
    border-color 280ms var(--ease),
    background-color 280ms var(--ease);
}

.nav__link--desktop {
  color: var(--ink-soft);
}

.nav__link--desktop:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.nav__link--cta {
  gap: 14px;
  min-width: 144px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 24, 14, 0.28);
  backdrop-filter: blur(10px);
}

.nav__link--cta svg,
.primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 280ms var(--ease);
}

.nav__link--cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.nav__link--cta:hover svg {
  transform: translateX(3px);
}

.hero__top-meta {
  position: absolute;
  top: calc(var(--frame) + var(--pad) + 76px);
  left: calc(var(--frame) + var(--pad));
  display: flex;
  gap: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fade-in 0.7s var(--ease) 0.45s both;
}

.hero__top-meta span + span::before {
  content: "·";
  margin-right: 12px;
}

.hero__content {
  position: absolute;
  right: calc(var(--frame) + var(--pad));
  bottom: calc(var(--frame) + var(--pad));
  left: calc(var(--frame) + var(--pad));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  align-items: end;
  gap: clamp(52px, 8vw, 140px);
  padding-right: clamp(88px, 8vw, 148px);
}

.hero__copy {
  width: min(100%, 620px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 2.5vh, 28px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: copy-in 0.7s var(--ease) 0.35s both;
}

.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(201, 245, 139, 0.12);
}

.hero__title {
  max-width: 700px;
  margin: 0;
  font-size: clamp(58px, 6.2vw, 112px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3);
  animation: copy-in 0.9s var(--ease) 0.42s both;
}

.hero__lede {
  max-width: 460px;
  margin: clamp(22px, 3vh, 34px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.44);
  animation: copy-in 0.75s var(--ease) 0.52s both;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: clamp(24px, 3.5vh, 38px);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 300ms var(--ease),
    background-color 300ms var(--ease);
  animation: copy-in 0.75s var(--ease) 0.62s both;
}

.primary-action > span:first-child {
  padding: 0 20px;
}

.primary-action__icon {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  border-left: 1px solid rgba(23, 32, 22, 0.22);
}

.primary-action:hover {
  transform: translateY(-3px);
  background: #dcffac;
}

.primary-action:hover svg {
  transform: translateX(4px);
}

.hero__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 42px);
  align-self: end;
  padding-bottom: 4px;
  animation: copy-in 0.8s var(--ease) 0.72s both;
}

.detail {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detail__label {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail__value {
  margin: 0;
  color: var(--ink);
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.45;
}

.hero__utility {
  position: absolute;
  right: calc(var(--frame) + var(--pad));
  bottom: calc(var(--frame) + var(--pad));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  animation: fade-in 0.7s var(--ease) 0.9s both;
}

.hero__index {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.media-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 20, 11, 0.34);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color 250ms var(--ease),
    border-color 250ms var(--ease),
    background-color 250ms var(--ease);
}

.media-toggle:hover {
  border-color: var(--accent);
  background: rgba(201, 245, 139, 0.14);
}

.media-toggle__bars {
  display: flex;
  align-items: end;
  gap: 2px;
  width: 13px;
  height: 12px;
}

.media-toggle__bars i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--accent);
  animation: equalize 900ms ease-in-out infinite alternate;
}

.media-toggle__bars i:nth-child(2) {
  height: 65%;
  animation-delay: -450ms;
}

.media-toggle__bars i:nth-child(3) {
  height: 82%;
  animation-delay: -700ms;
}

.media-toggle[aria-pressed="true"] .media-toggle__bars i {
  height: 4px;
  animation: none;
}

@keyframes media-settle {
  from { opacity: 0.82; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes equalize {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

@media (max-width: 1180px) {
  .hero__content {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 44px;
    padding-right: 82px;
  }

  .hero__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail:last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --pad: clamp(18px, 5vw, 28px);
  }

  .hero {
    min-height: 100dvh;
    padding-bottom: calc(var(--frame) + var(--pad) + env(safe-area-inset-bottom));
  }

  .hero__video {
    object-position: 56% center;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7, 15, 8, 0.5) 0%, transparent 32%),
      linear-gradient(0deg, rgba(6, 13, 7, 0.9) 0%, rgba(6, 13, 7, 0.72) 48%, rgba(6, 13, 7, 0.15) 72%, transparent 82%);
  }

  .nav__link--desktop {
    display: none;
  }

  .nav__link--cta {
    min-width: 126px;
  }

  .hero__top-meta {
    top: calc(var(--frame) + var(--pad) + 68px);
  }

  .hero__content {
    right: calc(var(--frame) + var(--pad));
    bottom: calc(var(--frame) + var(--pad) + 62px + env(safe-area-inset-bottom));
    left: calc(var(--frame) + var(--pad));
    display: block;
    padding-right: 0;
  }

  .hero__copy {
    width: min(100%, 590px);
  }

  .hero__title {
    font-size: clamp(52px, 12vw, 82px);
    line-height: 0.94;
  }

  .hero__lede {
    max-width: 440px;
  }

  .hero__details {
    display: none;
  }

  .hero__utility {
    right: calc(var(--frame) + var(--pad));
    bottom: calc(var(--frame) + 18px + env(safe-area-inset-bottom));
    left: calc(var(--frame) + var(--pad));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__index {
    display: flex;
    gap: 8px;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    font-size: 14px;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
  }

  .nav__link--cta {
    min-width: 118px;
    padding: 0 12px 0 14px;
  }

  .nav__link--cta svg {
    display: none;
  }

  .hero__top-meta {
    max-width: 200px;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .hero__title {
    font-size: clamp(48px, 14.8vw, 68px);
  }

  .hero__lede {
    font-size: 15px;
    line-height: 1.42;
  }

  .primary-action {
    width: 100%;
    justify-content: space-between;
  }

  .media-toggle__label {
    display: none;
  }

  .media-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero__title {
    font-size: clamp(54px, 5.5vw, 84px);
  }

  .hero__lede {
    margin-top: 18px;
  }

  .primary-action {
    margin-top: 20px;
  }
}

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

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