/* ==========================================================================
   Devil's Lettuce — local replica
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --page-bg: #1c1919;
  --deep-bg: #0a0a0a;
  --header-bg: #06060b;

  --orange: #e24212;      /* hero display type, "GET 30% OFF" */
  --logo-red: #ef5122;    /* wordmark */
  --red: #f94c4c;         /* timeline decade labels */
  --olive: #a1b65f;       /* timeline footnotes */
  --bone: #cbc4c3;        /* history hero display type */

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --text-dim: rgba(255, 255, 255, 0.55);

  /* hwt-aetna-extra-condensed is the original face (Adobe Fonts, licensed to
     the live domain). Bodoni Moda is the closest freely available stand-in;
     if an Adobe kit is added, the real face takes over automatically. */
  --font-display: "hwt-aetna-extra-condensed", "Bodoni Moda", "Playfair Display", Georgia, serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 84px;
  --container: 1500px;
  --content-w: 460px;    /* the narrow measure most blocks sit in */
  --gutter: 6vw;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 0.98;
}

/* Keep the focus ring visible for keyboard users without boxing every click. */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------ structure -- */
.section {
  position: relative;
  padding: 110px var(--gutter);
}

.section--flush { padding-top: 0; padding-bottom: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.measure {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 28px;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 2px;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.site-header__logo { justify-self: center; }
.site-header__logo img { width: 92px; }

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 7px 16px 7px 13px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
}

.cart-link svg { width: 15px; height: 15px; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-pill:hover { opacity: 0.82; }

.site-header .btn-pill { padding: 8px 16px; font-size: 9px; }

/* ---------------------------------------------- animated conic backdrop -- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
  min-height: 76vh;
  overflow: hidden;
  background: #000;
}

/* The home hero is one tall section: headline, video, offer and form all sit
   on the same animated backdrop. Spacing below is measured off the original
   at a 1700px viewport, expressed in vw so it scales with the funnel. */
.hero--home { padding: 7vw var(--gutter) 6.4vw; }

.hero__stack {
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero__stack > * { width: 100%; }
.hero__stack .video-wrap { margin-top: 1.8vw; }
.hero__stack .offer { margin-top: 3.9vw; }
.hero__stack .signup { margin-top: 4.5vw; }

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

.bg-fx-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* If WebGL is missing, fall back to a static approximation of the funnel. */
.bg-fx--unsupported {
  background:
    radial-gradient(ellipse 45% 55% at 50% 46%, rgba(255, 255, 255, 0.3), transparent 70%),
    repeating-conic-gradient(from 200deg at 50% 46%,
      #1a1527 0deg 9deg, #000 9deg 18deg);
}

.bg-fx-toggle {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff;
  opacity: 0.75;
}

.bg-fx-toggle:hover { opacity: 1; }
.bg-fx-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.bg-fx-toggle .icon-play { display: none; }
.hero.is-paused .bg-fx-toggle .icon-play { display: block; }
.hero.is-paused .bg-fx-toggle .icon-pause { display: none; }

/* ----------------------------------------------------------- home hero -- */
.hero__title {
  color: var(--orange);
  font-size: clamp(2.6rem, 4.7vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 9ch;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.28vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.8vw 0 1.5vw;
}

.hero__brand { width: 10vw; min-width: 130px; max-width: 190px; margin: 0 auto; }

/* -------------------------------------------------------- history hero -- */
.hero--history {
  min-height: 0;
  height: 31.8vw;
  min-height: 420px;
  padding: 0 var(--gutter);
}

.hero--history .hero__title {
  color: var(--bone);
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1.34;
  text-transform: none;
  letter-spacing: 0;
  max-width: 520px;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------ home: offer/CTA -- */
.video-wrap {
  width: 58.5vw;
  max-width: 1050px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #2b2b2b;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.offer { text-align: center; }

.offer__title {
  color: var(--orange);
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.offer__note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 12px 0 0;
}

/* ------------------------------------------------------ home: sign-up -- */
.signup {
  width: 27.4vw;
  min-width: 320px;
  max-width: 470px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  overflow: hidden;
}

.signup__head {
  background: #000;
  padding: 30px 24px;
  display: grid;
  place-items: center;
}

.signup__head img { width: 220px; }

.signup__body { padding: 26px 34px 34px; }

.signup__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.06rem;
  text-align: center;
  margin: 0 0 8px;
  color: #111;
}

.signup__intro {
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  color: #333;
  margin: 0 0 20px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.7rem;
  color: #444;
  margin-bottom: 5px;
}

.field .req { color: #7c6cf5; }

.field input {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.85rem;
  color: #111;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
}

.field input:focus {
  border-color: #7c6cf5;
  outline: none;
}

.signup__submit {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: #7c6cf5;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.signup__submit:hover { background: #6a58f0; }

.consent {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.62rem;
  line-height: 1.45;
  color: #333;
}

.consent input { margin-top: 2px; flex: none; }

/* ------------------------------------------------------ home: mission -- */
.mission {
  background: var(--deep-bg);
  padding: 150px var(--gutter);
}

.mission p {
  margin: 0 0 26px;
  font-size: 1.02rem;
  line-height: 1.62;
}

.mission p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- home: destigmatize -- */
.destigmatize {
  position: relative;
  padding: 130px var(--gutter);
  background-image: url("../assets/devilslettuce-embarc-02.webp");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.destigmatize::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.destigmatize__title {
  color: var(--red);
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.16;
  margin-bottom: 54px;
}

.destigmatize p {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.destigmatize p:last-child { margin-bottom: 0; }
.destigmatize .measure { max-width: 540px; }

.destigmatize em { font-style: italic; }
.destigmatize u { text-underline-offset: 3px; }

/* ---------------------------------------------------------- home: links -- */
.links {
  background: var(--deep-bg);
  text-align: center;
  padding: 190px var(--gutter) 108px;
}

.links__title {
  font-size: clamp(1.9rem, 3.2vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 62px;
}

.links__list {
  display: grid;
  gap: 32px;
  width: 22.6vw;
  min-width: 300px;
  max-width: 400px;
  margin: 0 auto;
}

.links__list .btn-pill {
  padding: 26px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--deep-bg);
  padding: 85px var(--gutter) 75px;
  text-align: center;
}

.site-footer__brand { width: 84px; margin: 0 auto 56px; }

.site-footer__note {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer__legal {
  max-width: 600px;
  margin: 0 auto 14px;
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.site-footer__licenses {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.62rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ------------------------------------------------------------- timeline -- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 140px 0 40px;
}

/* The spine, plus the brighter segment that fills as the page scrolls. */
.timeline__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.22);
}

.timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #fff;
  transform-origin: top;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 100px;
}

.timeline__item {
  position: relative;
  padding: 0 0 74px;
  max-width: 250px;
}

/* Odd entries sit left of the spine, even entries right, each pushed down so
   the two columns interleave rather than line up. */
.timeline__item--left {
  grid-column: 1;
  justify-self: end;
  text-align: left;
}

.timeline__item--right {
  grid-column: 2;
  justify-self: start;
}

.timeline__item--left::after,
.timeline__item--right::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 45px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.timeline__item--left::after { right: -45px; }
.timeline__item--right::after { left: -45px; }

.timeline__item::before {
  content: "";
  position: absolute;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: var(--page-bg);
  z-index: 1;
}

.timeline__item--left::before { right: -54px; }
.timeline__item--right::before { left: -54px; }

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--red);
  margin: 0 0 8px;
  line-height: 1;
}

.timeline__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.35;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.timeline__item p {
  margin: 0 0 14px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.timeline__item p:last-child { margin-bottom: 0; }
.timeline__item strong { font-weight: 700; color: var(--text); }
.timeline__item em { font-style: italic; }

.timeline__note {
  color: var(--olive);
  font-weight: 700;
  font-size: 0.66rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.timeline__more {
  font-size: 0.8rem;
  color: var(--red);
}

.timeline__more a { color: var(--red); text-underline-offset: 3px; }

/* ------------------------------------------------------- history: 2024 -- */
.finale {
  text-align: center;
  padding: 130px var(--gutter) 150px;
}

.finale__year {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  color: var(--bone);
  margin-bottom: 26px;
}

.finale__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.75vw, 1.8rem);
  color: var(--bone);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 48px;
}

.finale p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------ history: clips -- */
.clips { padding: 40px var(--gutter) 120px; }

.clips__title {
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 66px;
  line-height: 0.95;
}

.clips__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.clips__grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}

/* --------------------------------------------------------- breakpoints -- */
@media (max-width: 900px) {
  .timeline__list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .timeline__spine { left: 10px; }

  .timeline__item,
  .timeline__item--left,
  .timeline__item--right {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    text-align: left;
    padding: 0 0 54px 42px;
  }

  .timeline__item--left::before,
  .timeline__item--right::before { left: 6px; right: auto; }

  .timeline__item--left::after,
  .timeline__item--right::after { left: 15px; right: auto; }

  .clips__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; --gutter: 22px; }

  body { font-size: 16px; }

  .site-header { padding: 0 16px; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 11px; }
  .site-header__logo img { width: 74px; }
  .site-header .btn-pill { display: none; }

  .hero { min-height: 60vh; padding: 80px var(--gutter); }
  .hero--home { padding: 60px var(--gutter); }
  .hero--history { height: auto; min-height: 58vh; padding: 60px var(--gutter); }

  /* The vw-based measures collapse to full width once the gutter dominates. */
  .hero__stack .video-wrap,
  .hero__stack .offer,
  .hero__stack .signup { margin-top: 46px; }

  .video-wrap,
  .signup,
  .links__list {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero--history .hero__title { max-width: none; }
  .section { padding: 70px var(--gutter); }
  .mission, .links { padding: 90px var(--gutter); }
  .signup__body { padding: 22px 20px 26px; }
  .destigmatize { padding: 90px var(--gutter); }
  .destigmatize__title { margin-bottom: 34px; }
  .timeline { padding-top: 70px; }
  .clips__title { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .timeline__progress { transition: none !important; }
}
