:root {
  --paper: #f5f5f2;
  --ink: #0a0a0a;
  --muted: #777772;
  --line: rgba(10, 10, 10, 0.16);
  --purple: #c8c9f6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #5e5ef2;
  outline-offset: 5px;
}

.page-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #7575ff;
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  mix-blend-mode: difference;
  color: #fff;
}

.brand {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.62;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 14vh 6vw 7vh;
  color: white;
  background: #080808;
  align-content: end;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 74% 38%, rgba(169, 171, 255, 0.2), transparent 26%),
    linear-gradient(125deg, transparent 0 55%, rgba(255, 255, 255, 0.06) 55.1%, transparent 56%);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -0.03em;
  color: rgba(255, 255, 255, 0.035);
  font-size: min(66vw, 900px);
  font-weight: 700;
  line-height: 0.65;
  letter-spacing: -0.13em;
  transform: translateY(-50%);
}

.hero-kicker,
.eyebrow {
  position: relative;
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  position: relative;
  max-width: 1100px;
  margin: 0;
  font-size: clamp(64px, 10.8vw, 176px);
  line-height: 0.79;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.64);
}

.hero-meta {
  position: absolute;
  right: 6vw;
  bottom: 8vh;
  text-align: right;
}

.hero-meta p {
  margin: 5px 0;
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 6vw;
  color: white;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-decoration: none;
  opacity: 0.58;
}

.story-section {
  padding: 150px max(5vw, 28px);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 8vw;
  align-items: end;
  max-width: 1500px;
  margin: 0 auto 86px;
}

.section-intro h2 {
  grid-column: 1;
  max-width: 980px;
  margin: 0;
  font-size: clamp(44px, 6vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-note {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.split-intro > div h2 {
  margin: 0;
}

.split-intro .section-note {
  grid-column: auto;
}

.slide-grid {
  display: grid;
  max-width: 1600px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 52px);
}

.slide-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e8e8e5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
}

.slide-card::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 7px 9px;
  content: "OPEN";
  color: white;
  background: rgba(0, 0, 0, 0.72);
  font-size: 9px;
  letter-spacing: 0.13em;
  opacity: 0;
  transition: opacity 180ms ease;
}

.slide-card:hover::after {
  opacity: 1;
}

.slide-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease);
}

.slide-card:hover img {
  transform: scale(1.012);
}

.slide-card.wide,
.slide-card.feature {
  grid-column: 1 / -1;
}

.dark-section {
  color: white;
  background: #0a0a0a;
}

.dark-section .section-note {
  color: #a8a8a3;
}

.dark-section .slide-card {
  background: #222;
  box-shadow: none;
}

.product-section {
  background: linear-gradient(180deg, var(--paper), #e6e6fa 52%, var(--paper));
}

.model-tabs {
  display: flex;
  max-width: 1600px;
  margin: 0 auto 36px;
  border-bottom: 1px solid var(--line);
}

.model-tab {
  padding: 18px 28px 18px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.38;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.model-tab.active,
.model-tab:hover {
  opacity: 1;
}

.model-panel {
  display: none;
  max-width: 1600px;
  margin: 0 auto;
}

.model-panel.active {
  display: block;
  animation: panel-in 500ms var(--ease);
}

.model-label {
  margin: 0 0 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.badge-section {
  background: #fff;
}

.color-section {
  background: #dcdce9;
}

.decision-section {
  padding-top: 200px;
  padding-bottom: 200px;
}

.closing {
  position: relative;
  padding: 0;
  background: #fff;
}

.closing-slide {
  box-shadow: none;
}

.closing > p {
  position: absolute;
  bottom: 5%;
  left: 5%;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: white;
  background: rgba(5, 5, 5, 0.97);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

.lightbox img {
  display: block;
  width: min(84vw, 1600px);
  max-height: 86vh;
  margin: auto;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.64;
}

.lightbox button {
  border: 0;
  color: white;
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 34px;
}

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

@media (max-width: 900px) {
  .site-header {
    padding: 19px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 58px;
    right: 16px;
    display: none;
    width: min(290px, calc(100vw - 32px));
    padding: 18px;
    color: white;
    background: rgba(10, 10, 10, 0.94);
    mix-blend-mode: normal;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 8px 0;
    font-size: 11px;
  }

  .hero {
    padding: 120px 24px 52px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 116px);
  }

  .hero-meta {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 36px;
    text-align: left;
  }

  .scroll-cue {
    display: none;
  }

  .story-section {
    padding: 104px 18px;
  }

  .section-intro,
  .split-intro {
    display: block;
    margin-bottom: 48px;
  }

  .section-intro .eyebrow {
    margin-bottom: 22px;
  }

  .section-intro h2,
  .split-intro > div h2 {
    font-size: clamp(40px, 12vw, 72px);
  }

  .section-note {
    margin-top: 30px;
    max-width: 580px;
  }

  .slide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .slide-card,
  .slide-card.wide,
  .slide-card.feature {
    grid-column: 1;
  }

  .model-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .model-tab {
    flex: 0 0 auto;
  }

  .lightbox[open] {
    display: block;
    padding-top: 13vh;
  }

  .lightbox img {
    width: 100vw;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 26px;
    padding: 20px;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
