:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.1);
  --accent: #db7b47;
  --nav-h: 54px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: pan-y;
}

.stage-light {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 22%, rgba(245,245,247,.06) 58%),
    linear-gradient(180deg, rgba(255,255,255,.3), transparent 45%);
  opacity: 1;
  transition: opacity .8s ease, background 1.2s ease;
}
body[data-scene="performance"] .stage-light,
body[data-scene="camera"] .stage-light {
  opacity: .22;
  background: radial-gradient(circle at 40% 46%, rgba(66,94,145,.26), transparent 38%);
}
body[data-scene="cooling"] .stage-light { opacity: 0; }
body[data-scene="display"] .stage-light { opacity: .38; }
body[data-scene="specs"] .stage-light { opacity: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #4a4a4f;
  background: #f5f5f7;
  transition: opacity .7s ease, visibility .7s ease;
}
.loading.hidden { opacity: 0; visibility: hidden; }
.loading strong { font-size: 15px; letter-spacing: -.02em; }
.loading span { color: #8b8b91; font-size: 11px; }
.loading-mark { display: flex; align-items: end; gap: 4px; height: 24px; }
.loading-mark i {
  width: 4px;
  height: 8px;
  border-radius: 99px;
  background: #1d1d1f;
  animation: bars 1s ease-in-out infinite;
}
.loading-mark i:nth-child(2) { height: 19px; animation-delay: .14s; }
.loading-mark i:nth-child(3) { height: 12px; animation-delay: .28s; }
@keyframes bars { 0%,100% { transform: scaleY(.45); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1240px)/2));
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(250,250,252,.74);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  transform: translateY(0);
  opacity: 1;
  transition: transform .55s ease, opacity .55s ease, color .5s ease, background .5s ease;
}
body[data-scene="hero"] .topbar { transform: translateY(-110%); opacity: 0; }
body[data-scene="performance"] .topbar,
body[data-scene="camera"] .topbar {
  color: #f5f5f7;
  border-color: rgba(255,255,255,.1);
  background: rgba(5,7,10,.64);
}
.wordmark { font-size: 16px; font-weight: 650; text-decoration: none; letter-spacing: -.025em; }
.topbar nav { display: flex; gap: 30px; }
.topbar nav a { color: currentColor; opacity: .72; font-size: 12px; text-decoration: none; transition: opacity .2s ease; }
.topbar nav a:hover { opacity: 1; }
.spec-link {
  justify-self: end;
  padding: 7px 13px;
  color: #fff;
  background: #1d1d1f;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
body[data-scene="performance"] .spec-link,
body[data-scene="camera"] .spec-link { color: #111; background: #f5f5f7; }

.chapter-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 70;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #77777d;
  transform: translateY(-50%);
  transition: color .5s ease, opacity .4s ease;
}
body[data-scene="hero"] .chapter-rail { opacity: .45; }
body[data-scene="performance"] .chapter-rail,
body[data-scene="camera"] .chapter-rail,
body[data-scene="cooling"] .chapter-rail { color: #b7b7bf; }
.rail-line { position: relative; width: 1px; height: 112px; background: rgba(127,127,132,.28); overflow: hidden; }
.rail-line i { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: currentColor; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.chapter-rail b { font-size: 11px; font-weight: 600; }
.chapter-rail small { font-size: 8px; letter-spacing: .14em; writing-mode: vertical-rl; }

main { position: relative; z-index: 4; }
.story {
  position: relative;
  min-height: 112vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 8vh) max(5vw, 28px) 9vh;
  overflow: clip;
  pointer-events: none;
}
.story > * { pointer-events: auto; }

.hero {
  min-height: 100svh;
  justify-content: center;
  background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.18), transparent 58%);
}
.hero-title {
  position: absolute;
  top: max(9vh, 72px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .22em;
  font-size: clamp(42px, 5.7vw, 88px);
  line-height: 1;
  letter-spacing: -.065em;
  pointer-events: none;
}
.hero-title span { font-weight: 560; }
.hero-title strong { font-weight: 720; }
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(0,0,0,.1);
}
.hero-scroll i {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #343438, transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.performance {
  color: #f5f5f7;
  background:
    radial-gradient(circle at 18% 42%, rgba(68,112,185,.15), transparent 34%),
    linear-gradient(90deg, rgba(2,3,5,.96) 0%, rgba(4,6,10,.88) 38%, rgba(8,12,18,.72) 56%, rgba(10,14,22,.32) 72%, rgba(10,14,22,.04) 100%);
}
.copy {
  position: relative;
  z-index: 12;
  width: min(560px, 42vw);
}
.copy-right { margin-left: auto; margin-right: max(6vw, calc((100vw - 1240px)/2)); }
.copy .eyebrow, .spec-head .eyebrow {
  margin: 0 0 17px;
  color: #f0a379;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 650;
  letter-spacing: -.025em;
}
.copy h2, .spec-head h2 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 98px);
  line-height: .93;
  letter-spacing: -.068em;
  font-weight: 700;
}
.lead {
  margin: 28px 0 0;
  max-width: 570px;
  color: #a6a6ad;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -.02em;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}
.metric-grid article {
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
}
.metric-grid b { display: block; font-size: 25px; letter-spacing: -.045em; }
.metric-grid span { display: block; margin-top: 6px; color: #8f8f97; font-size: 10px; }
.focus-label {
  position: fixed;
  z-index: 64;
  display: grid;
  grid-template-columns: 30px auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  color: #fff;
  opacity: 0;
  transform: translate(24px,-50%) scale(.94);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
body[data-scene="performance"] .focus-label { opacity: 1; transform: translate(24px,-50%) scale(1); }
.focus-label > span {
  grid-row: 1 / span 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.64);
  box-shadow: 0 0 0 8px rgba(237,126,68,.13), 0 0 42px rgba(237,126,68,.45);
}
.focus-label b { font-size: 14px; }
.focus-label small { color: #9e9ea5; font-size: 10px; }

.cooling {
  min-height: 120vh;
  color: #f5f5f7;
  background:
    radial-gradient(circle at 28% 47%, rgba(10,79,126,.25), transparent 32%),
    linear-gradient(125deg, #05070a, #0a1118 58%, #05070a);
}
.thermal-wrap {
  width: min(1260px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, .92fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
}
.thermal-visual {
  position: relative;
  min-height: min(78vh, 780px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: clamp(28px, 4vw, 54px);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(9,17,25,.88), rgba(5,10,15,.72));
  box-shadow: 0 40px 100px rgba(0,0,0,.28);
}
#thermalMap { display: block; width: 100%; height: min(78vh, 780px); }
.thermal-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  font-size: 10px;
  color: #bdc2c9;
}
.thermal-caption span { display: flex; align-items: center; gap: 7px; }
.thermal-caption i { width: 8px; height: 8px; border-radius: 50%; }
.thermal-caption .hot { background: #ff9a30; box-shadow: 0 0 12px #ff4b18; }
.thermal-caption .cold { background: #2da8ff; box-shadow: 0 0 12px #156cff; }
.thermal-copy { width: auto; }

.camera {
  color: #f5f5f7;
  background:
    radial-gradient(circle at 74% 42%, rgba(37,66,100,.12), transparent 30%),
    linear-gradient(90deg, rgba(2,3,4,.96) 0%, rgba(2,3,4,.78) 34%, rgba(2,3,4,.42) 58%, rgba(2,3,4,.12) 74%, rgba(2,3,4,.03) 100%);
}
.camera-copy { margin-left: max(5vw, calc((100vw - 1240px)/2)); margin-right: auto; }
.lens-card {
  margin-top: 28px;
  padding: 24px 25px 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 70px rgba(0,0,0,.24);
  transition: transform .35s ease, opacity .35s ease;
}
.lens-card.switching { transform: translateY(8px); opacity: .35; }
.lens-card > span { color: #86b8ea; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.lens-card h3 { margin: 8px 0 7px; font-size: 32px; letter-spacing: -.045em; }
.lens-card p { margin: 0; color: #a4a7ad; font-size: 14px; line-height: 1.55; }
.lens-meta { display: flex; align-items: baseline; gap: 9px; margin-top: 18px; }
.lens-meta b { font-size: 19px; }
.lens-meta span { color: #92969c; font-size: 12px; }
.lens-hotspots {
  position: fixed;
  inset: 0;
  z-index: 66;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
body[data-scene="camera"] .lens-hotspots { opacity: 1; }
.lens-hotspots button {
  position: absolute;
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  gap: 2px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(5,8,12,.5);
  box-shadow: 0 8px 28px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  transform: translate(-50%,-50%) scale(.82);
  pointer-events: auto;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.lens-hotspots button:hover { transform: translate(-50%,-50%) scale(.94); }
.lens-hotspots button.active {
  color: #101215;
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 7px rgba(255,255,255,.1), 0 14px 38px rgba(0,0,0,.35);
  transform: translate(-50%,-50%) scale(1);
}
.lens-hotspots b { font-size: 15px; line-height: 1; }
.lens-hotspots span { font-size: 8px; opacity: .72; }

.display {
  justify-content: flex-start;
  color: #1d1d1f;
  background:
    radial-gradient(circle at 76% 44%, rgba(133,174,238,.12), transparent 30%),
    linear-gradient(90deg, rgba(245,245,247,.98) 0%, rgba(245,245,247,.92) 46%, rgba(245,245,247,.42) 66%, rgba(245,245,247,.1) 82%, transparent 100%);
}
.display-panel {
  width: min(580px, 42vw);
  margin-left: max(6vw, calc((100vw - 1240px)/2));
  position: relative;
  z-index: 12;
}
.display-panel .eyebrow { margin: 0 0 17px; color: #4679bd; font-size: clamp(14px,1.35vw,20px); font-weight: 650; }
.display-panel h2 { margin: 0; font-size: clamp(48px,6.4vw,98px); line-height: .93; letter-spacing: -.068em; }
.display-panel .lead { color: #6e6e73; }
.display-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 30px; }
.display-stats article { padding: 19px 16px; border-radius: 20px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.66); backdrop-filter: blur(14px); }
.display-stats b { display: block; font-size: 25px; letter-spacing: -.045em; }
.display-stats span { display: block; margin-top: 5px; color: #76767c; font-size: 10px; }

.specs {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  padding: 14vh max(6vw, calc((100vw - 1240px)/2)) 9vh;
  color: #1d1d1f;
  background: #f5f5f7;
}
.spec-head { max-width: 820px; }
.spec-head .eyebrow.dark { color: #6e6e73; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 65px;
}
.spec-grid article {
  min-height: 250px;
  padding: 28px 25px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.055);
}
.spec-grid span { color: #85858a; font-size: 11px; }
.spec-grid strong { margin-top: auto; font-size: 27px; letter-spacing: -.045em; }
.spec-grid p { margin: 13px 0 0; color: #6e6e73; font-size: 12px; line-height: 1.55; }
.disclaimer { margin: 70px 0 0; color: #96969b; font-size: 10px; }


.chip-reference {
  margin-top: 24px;
  width: min(360px, 82%);
}
.chip-reference__frame {
  position: relative;
  height: 170px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(circle at 50% 50%, rgba(47,183,255,.24), rgba(9,20,40,.88) 52%, rgba(5,7,12,1) 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.04);
}
.chip-reference__glow {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(circle at 15% 85%, rgba(255,129,42,.62), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(62,200,255,.54), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(134,83,255,.18), transparent 40%);
  filter: blur(28px);
}
.chip-reference__core {
  position: absolute;
  inset: 22px;
  display: grid;
  place-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(7,12,25,.94), rgba(14,18,32,.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.04);
}
.chip-reference__core::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,161,94,.8), rgba(95,222,255,.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.chip-reference__core span,
.chip-reference__core strong {
  position: relative;
  z-index: 1;
  text-align: center;
  letter-spacing: -.04em;
}
.chip-reference__core span { font-size: 44px; font-weight: 700; color: #eef4ff; }
.chip-reference__core strong { font-size: 24px; color: #dbe4f6; }
.performance .copy-right { width: min(560px, 40vw); }
.performance .lead { max-width: 520px; }
.camera .copy { width: min(520px, 38vw); }
.camera .lead { max-width: 470px; }
.display-panel { width: min(560px, 40vw); }
body[data-scene="performance"] .chip-focus { opacity: 1; }
.reveal {
  opacity: .2;
  filter: blur(7px);
  transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.2,.8,.2,1), filter .85s ease, transform .85s cubic-bezier(.2,.8,.2,1);
}
.story.active .reveal, .specs.active .reveal { opacity: 1; filter: blur(0); transform: translateY(0); }

.unsupported {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 500;
  width: min(520px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}
.unsupported strong, .unsupported span { display: block; }
.unsupported span { margin-top: 5px; color: #77777c; font-size: 12px; }

@media (max-width: 900px) {
  :root { --nav-h: 50px; }
  .topbar { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .topbar nav { display: none; }
  .chapter-rail { right: 10px; }
  .story { min-height: 105vh; padding: calc(var(--nav-h) + 8vh) 22px 8vh; }
  .hero-title { top: 12vh; font-size: clamp(42px, 11vw, 72px); }
  .copy, .display-panel { width: min(500px, 88vw); }
  .copy-right, .camera-copy { margin: auto 0 9vh; align-self: flex-end; }
  .chip-reference { width: min(320px, 88vw); }
  .performance, .camera { align-items: flex-end; padding-bottom: 7vh; }
  .performance::after, .camera::after {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    z-index: 5;
    background: linear-gradient(transparent, rgba(2,3,5,.93) 34%, #020305 78%);
    pointer-events: none;
  }
  .copy { z-index: 10; }
  .copy h2, .display-panel h2, .spec-head h2 { font-size: clamp(45px, 12vw, 74px); }
  .lead { font-size: 16px; }
  .metric-grid { gap: 7px; }
  .metric-grid article { padding: 15px 10px; }
  .metric-grid b { font-size: 20px; }
  .focus-label { display: none; }
  .thermal-wrap { grid-template-columns: 1fr; width: min(650px, 90vw); gap: 42px; padding-block: 7vh; }
  .thermal-visual { min-height: 58vh; }
  #thermalMap { height: 58vh; }
  .thermal-wrap { grid-template-columns: 1fr; width: min(650px, 90vw); gap: 42px; }
  .thermal-copy { width: 100%; }
  .camera { min-height: 125vh; }
  .lens-hotspots button { width: 56px; height: 56px; }
  .display { align-items: flex-end; padding-bottom: 8vh; }
  .display-panel { margin: auto 0 0; width: min(500px, 88vw); }
  .display-stats { grid-template-columns: repeat(3, 1fr); }
  .display-stats article { padding: 15px 10px; }
  .display-stats b { font-size: 20px; }
  .specs { padding: 12vh 22px 7vh; }
  .spec-grid { grid-template-columns: repeat(2,1fr); margin-top: 42px; }
}

@media (max-width: 560px) {
  .hero-title { top: 14vh; flex-direction: column; align-items: center; gap: 0; }
  .hero-title span, .hero-title strong { line-height: .9; }
  .chapter-rail { display: none; }
  .spec-link { padding: 6px 11px; }
  .metric-grid { grid-template-columns: 1fr 1fr 1fr; }
  .metric-grid article { min-width: 0; }
  .thermal-visual { min-height: 52vh; border-radius: 28px; }
  #thermalMap { height: 52vh; }
  .lens-card { padding: 19px; }
  .lens-card h3 { font-size: 27px; }
  .lens-hotspots button { width: 50px; height: 50px; }
  .display-stats { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid article { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
