@font-face {
  font-family: "TT Fors";
  src: url("/live/assets/fonts/tt-fors-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "TT Fors";
  src: url("/live/assets/fonts/tt-fors-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TT Fors";
  src: url("/live/assets/fonts/tt-fors-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --surface: #171715;
  --surface-warm: #211f1a;
  --text: #f4f1eb;
  --muted: #aaa69d;
  --gold: #d9bd7b;
  --gold-bright: #f0d690;
  --line: rgba(217, 189, 123, 0.19);
  --soft-line: rgba(255, 255, 255, 0.09);
  --radius: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(13, 13, 13, 0.92), rgba(13, 13, 13, 0.98)),
    url("/live/assets/app-fabric.jpg") center top / 1100px auto fixed;
  font-family: "TT Fors", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:where(section, h1, h2)[id] {
  scroll-margin-top: 88px;
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-bright);
  box-shadow: 0 0 16px rgba(240, 214, 144, 0.55);
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 2px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.topbar.is-scrolled {
  border-color: var(--soft-line);
  background: rgba(13, 13, 13, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  width: fit-content;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.nav a,
.topbar-cta {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.topbar-cta:hover,
.topbar-cta:focus-visible {
  color: var(--gold-bright);
}

.topbar-cta {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

main {
  position: relative;
}

.chapter {
  position: relative;
  max-width: 1440px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(110px, 11vw, 170px) clamp(24px, 7vw, 106px);
  border-bottom: 1px solid var(--soft-line);
}

.hero,
.story {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(380px, 1.14fr);
  align-items: center;
  gap: clamp(56px, 8vw, 126px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(52px, 6.2vw, 100px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(43px, 5vw, 78px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lead,
.story-copy > p:last-of-type,
.section-intro > p:last-child,
.forecast-heading > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  gap: 42px;
  margin: 44px 0 38px;
}

.hero-meta span {
  max-width: 130px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 32px;
  font-weight: 300;
}

.scroll-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--gold);
  font-size: 15px;
  text-underline-offset: 6px;
}

.hero-visual,
.single-shot {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  flex: 0 0 auto;
  width: min(100%, 338px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 214, 144, 0.24);
  border-radius: var(--radius);
  background: #080808;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.48);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone {
  width: min(88%, 390px);
  transform: rotate(2deg);
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: min(260px, 42%);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(27, 25, 21, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.floating-note span,
.floating-note strong {
  display: block;
}

.floating-note span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.floating-note strong {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.story:nth-of-type(even) .story-copy {
  order: 2;
}

.story:nth-of-type(even) .single-shot,
.story:nth-of-type(even) .shot-pair {
  order: 1;
}

.step {
  margin-bottom: 30px;
  color: rgba(240, 214, 144, 0.42);
  font-size: 14px;
  letter-spacing: 0.25em;
}

.shot-pair {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 680px;
}

.shot-pair .phone {
  width: min(58%, 316px);
}

.shot-pair .phone-back {
  transform: translateX(12%) rotate(-4deg) scale(0.92);
  opacity: 0.74;
}

.shot-pair .phone-front {
  z-index: 2;
  transform: translateX(-8%) rotate(2deg);
}

.shot-pair.compact {
  gap: 24px;
}

.shot-pair.compact .phone {
  width: min(47%, 300px);
}

.systems,
.forecast-intro {
  display: block;
}

.section-intro,
.forecast-heading {
  max-width: 760px;
  margin-bottom: 72px;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.system-card {
  min-width: 0;
  padding: 24px 24px 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  background: rgba(23, 23, 21, 0.78);
}

.system-copy {
  min-height: 112px;
}

.system-copy span {
  color: var(--gold-bright);
  font-size: 22px;
}

.system-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.system-card .phone {
  width: 100%;
  border-width: 1px 1px 0;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
}

.forecast-intro {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1440px) / 2 + 106px));
  padding-right: 0;
  overflow: hidden;
}

.card-rail {
  display: flex;
  gap: 26px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2 + 106px)) 54px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.06);
}

.card-rail .phone {
  width: clamp(250px, 23vw, 332px);
  scroll-snap-align: start;
}

.rail-hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.final-story {
  border-bottom: 0;
}

.primary-cta {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 164, 80, 0.33), rgba(91, 68, 24, 0.32));
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(201, 164, 80, 0.45), rgba(91, 68, 24, 0.42));
  transform: translateY(-2px);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px clamp(24px, 7vw, 106px) 52px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-delay="1"] {
  transition-delay: 110ms;
}

.reveal[data-delay="2"] {
  transition-delay: 220ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .systems-grid {
    gap: 16px;
  }

  .system-card {
    padding: 18px 18px 0;
    border-radius: 24px;
  }

  .system-copy {
    min-height: 126px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand {
    font-size: 14px;
  }

  .topbar-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .chapter {
    min-height: 0;
    padding: 104px 20px 86px;
  }

  .hero,
  .story {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 52px;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .lead,
  .story-copy > p:last-of-type,
  .section-intro > p:last-child,
  .forecast-heading > p:last-child {
    font-size: 18px;
  }

  .hero-meta {
    margin: 34px 0 28px;
  }

  .hero-visual {
    margin: -48px -4px 0;
  }

  .hero-phone {
    width: min(82vw, 374px);
    transform: rotate(0);
  }

  .floating-note {
    right: -4px;
    bottom: 10%;
    width: 48%;
    padding: 16px;
  }

  .floating-note strong {
    font-size: 15px;
  }

  .story:nth-of-type(even) .story-copy,
  .story:nth-of-type(even) .single-shot,
  .story:nth-of-type(even) .shot-pair {
    order: initial;
  }

  .single-shot .phone {
    width: min(82vw, 374px);
  }

  .shot-pair {
    min-height: 570px;
  }

  .shot-pair .phone {
    width: min(65vw, 306px);
  }

  .shot-pair .phone-back {
    transform: translateX(21%) rotate(-4deg) scale(0.88);
  }

  .shot-pair .phone-front {
    transform: translateX(-21%) rotate(2deg);
  }

  .shot-pair.compact {
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding-right: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .shot-pair.compact .phone {
    width: 76vw;
    max-width: 330px;
    scroll-snap-align: center;
  }

  .systems {
    padding-right: 0;
  }

  .section-intro,
  .forecast-heading {
    margin-right: 20px;
    margin-bottom: 48px;
  }

  .systems-grid {
    display: flex;
    gap: 16px;
    padding-right: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .system-card {
    flex: 0 0 min(78vw, 342px);
    scroll-snap-align: center;
  }

  .forecast-intro {
    padding-left: 20px;
  }

  .card-rail {
    gap: 16px;
    padding-right: 20px;
    padding-bottom: 36px;
  }

  .card-rail .phone {
    width: 76vw;
    max-width: 330px;
  }

  .rail-hint {
    margin-top: 10px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 40px 20px;
  }

  footer p:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
