:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --orange: #bd592b;
  --blue: #18334f;
  --silver: #c9c9c7;
  --accent: #bd592b;
  --nav-height: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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, input { font: inherit; }
a { color: inherit; }

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

.ambient-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .035;
  pointer-events: none;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  font-size: 13px;
  color: #76767b;
  background: #f5f5f7;
  transition: opacity .6s ease, visibility .6s ease;
}
#loading.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 38px;
  height: 38px;
  margin: auto;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.1);
  border-top-color: #1d1d1f;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1180px)/2));
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(250,250,252,.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.brand {
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -.02em;
}
.site-nav nav { display: flex; gap: 30px; }
.site-nav nav a {
  font-size: 12px;
  text-decoration: none;
  color: #4b4b50;
  transition: color .2s ease;
}
.site-nav nav a:hover { color: #000; }
.nav-pill {
  justify-self: end;
  color: #fff;
  background: #1d1d1f;
  text-decoration: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
}

main { position: relative; z-index: 2; }
.story {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 7vh) max(5vw, 24px) 8vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  background:
    radial-gradient(circle at 73% 47%, rgba(205,115,72,.18), transparent 31%),
    linear-gradient(115deg, rgba(245,245,247,.99) 0%, rgba(245,245,247,.94) 42%, rgba(245,245,247,.18) 67%, rgba(245,245,247,.04) 100%);
}
.hero-copy { width: min(590px, 47vw); margin-left: max(2vw, calc((100vw - 1250px)/2)); }
.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.4vw, 21px);
  font-weight: 650;
  letter-spacing: -.02em;
  color: color-mix(in srgb, var(--accent) 75%, white);
}
.dark-eyebrow { color: var(--accent); }
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 8.3vw, 132px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 720;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(29,29,31,.25);
}
.hero-lead {
  width: min(520px, 100%);
  margin: 34px 0 0;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.48;
  color: var(--muted);
  letter-spacing: -.02em;
}
.hero-actions { display: flex; gap: 10px; margin-top: 32px; }
.primary-button, .secondary-button, .inline-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 19px;
  color: #fff;
  background: #1d1d1f;
  font-weight: 620;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.primary-button:hover, .secondary-button:hover, .inline-button:hover { transform: translateY(-2px); }
.button-icon { font-size: 19px; line-height: 1; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.primary-button[aria-pressed="true"] .button-icon { transform: rotate(45deg); }
.secondary-button {
  padding: 13px 18px;
  color: var(--ink);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(0,0,0,.1);
}
.interaction-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #8a8a8f;
  font-size: 12px;
}
.interaction-hint span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

.control-dock {
  position: absolute;
  right: max(4vw, calc((100vw - 1250px)/2));
  bottom: 7vh;
  width: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px 11px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.68);
  box-shadow: 0 18px 55px rgba(0,0,0,.09);
  backdrop-filter: blur(18px);
}
.dock-label { display: grid; gap: 1px; }
.dock-label span { font-size: 10px; color: #86868b; }
.dock-label strong { font-size: 13px; }
.swatches { display: flex; gap: 7px; }
.swatch {
  position: relative;
  width: 24px; height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.95);
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(0,0,0,.16);
  cursor: pointer;
}
.swatch.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  color: #8b8b90; font-size: 10px;
}
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(#777, transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

.section-copy { position: relative; z-index: 3; width: min(560px, 42vw); }
.right-copy { margin-left: auto; margin-right: max(3vw, calc((100vw - 1220px)/2)); }
.left-copy { margin-left: max(3vw, calc((100vw - 1220px)/2)); }
.centered-copy { margin: 0 auto; text-align: center; width: min(760px, 72vw); }
.section-copy h2, .specs-heading h2, .display-copy h2 {
  margin: 0;
  font-size: clamp(48px, 6.3vw, 100px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 710;
}
.section-copy > p:not(.eyebrow), .display-copy > p:not(.eyebrow) {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.55;
  letter-spacing: -.02em;
  color: #6e6e73;
}
.light-copy { color: #f5f5f7; }
.light-copy > p:not(.eyebrow) { color: #a9a9b0; }

.design-section {
  background: linear-gradient(90deg, rgba(245,245,247,.13), rgba(245,245,247,.92) 58%, #f5f5f7 100%);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.metric-row article {
  min-height: 110px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.07);
  backdrop-filter: blur(14px);
}
.metric-row strong { font-size: 32px; letter-spacing: -.05em; }
.metric-row span { font-size: 12px; color: #78787d; }

.performance-section {
  background: linear-gradient(90deg, #030405 0%, rgba(3,4,5,.94) 48%, rgba(3,4,5,.22) 76%, rgba(3,4,5,.04) 100%);
}
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}
.chip-grid div {
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
}
.chip-grid b { display: block; font-size: 25px; letter-spacing: -.04em; }
.chip-grid span { display: block; margin-top: 5px; color: #98989f; font-size: 11px; }

.cooling-section {
  background:
    radial-gradient(circle at 50% 50%, rgba(208,84,29,.18), transparent 29%),
    rgba(3,4,5,.94);
}
.inline-button {
  margin-top: 30px;
  padding: 12px 18px;
  color: #fff;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
}
.inline-button.active { background: var(--accent); border-color: transparent; }

.camera-section {
  background: linear-gradient(90deg, rgba(1,1,2,.04), rgba(1,1,2,.64) 48%, #010102 72%);
}
.camera-copy { width: min(610px, 46vw); }
.zoom-control {
  margin-top: 34px;
  padding: 20px 22px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
}
.zoom-readout { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.zoom-readout span { color: #9c9ca2; font-size: 12px; }
.zoom-readout strong { font-size: 18px; }
#zoomSlider {
  width: 100%; margin: 22px 0 9px;
  accent-color: #fff;
}
.zoom-ticks { display: flex; justify-content: space-between; color: #77777e; font-size: 10px; }

.display-section {
  align-items: center;
  justify-content: center;
  background: rgba(245,245,247,.95);
}
.display-card {
  width: min(1180px, 92vw);
  min-height: 72vh;
  padding: clamp(28px, 5vw, 74px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
  border-radius: clamp(32px, 5vw, 70px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 16%, rgba(117,174,255,.4), transparent 23%),
    radial-gradient(circle at 16% 85%, rgba(179,86,255,.28), transparent 26%),
    linear-gradient(145deg, #0b1234, #03050d 64%);
  box-shadow: 0 45px 120px rgba(13,19,49,.22);
}
.display-copy .dark-eyebrow { color: #99bdff; }
.display-copy > p:not(.eyebrow) { color: #b7bbca; }
.display-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.display-metrics article {
  min-height: 148px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.display-metrics b { font-size: clamp(30px, 4vw, 55px); letter-spacing: -.06em; }
.display-metrics span { margin-top: 8px; color: #aeb3c4; font-size: 12px; }

.detail-section {
  background: linear-gradient(90deg, rgba(245,245,247,.97) 0%, rgba(245,245,247,.88) 44%, rgba(245,245,247,.12) 69%);
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.feature-tags span { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(0,0,0,.08); font-size: 12px; }

.hotspot {
  position: absolute;
  z-index: 8;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(255,255,255,.16), 0 10px 35px rgba(0,0,0,.22);
  animation: pulse 2.2s ease-in-out infinite;
}
.hotspot span { font-size: 12px; font-weight: 700; }
@keyframes pulse { 50% { box-shadow: 0 0 0 15px rgba(255,255,255,0), 0 10px 35px rgba(0,0,0,.22); } }
.hotspot-body { left: 42%; top: 40%; }
.hotspot-chip { right: 30%; top: 52%; }
.hotspot-camera { left: 33%; top: 34%; }

.specs-section {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  padding: 14vh max(5vw, calc((100vw - 1180px)/2));
  background: #f5f5f7;
}
.specs-heading { width: min(900px, 90vw); }
.specs-heading h2 { font-size: clamp(52px, 7vw, 108px); }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 65px;
}
.specs-grid article {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.055);
}
.specs-grid article > span { color: #86868b; font-size: 12px; }
.specs-grid strong { margin-top: auto; font-size: clamp(25px, 3vw, 42px); letter-spacing: -.055em; }
.specs-grid p { margin: 14px 0 0; color: #6f6f75; font-size: 13px; line-height: 1.55; }
.source-note {
  margin-top: 60px;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  color: #86868b;
  font-size: 11px;
  line-height: 1.6;
}
.source-note p { max-width: 600px; margin: 0; }
.source-note div { display: flex; gap: 18px; flex-wrap: wrap; }
.source-note a { text-decoration: none; color: #424247; }

.info-panel {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 48px));
  padding: 24px 24px 25px;
  border-radius: 25px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 25px 90px rgba(0,0,0,.17);
  backdrop-filter: blur(25px) saturate(160%);
  transform: translateY(28px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .35s cubic-bezier(.2,.8,.2,1);
}
.info-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.info-panel button {
  position: absolute;
  right: 15px; top: 13px;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.055);
  cursor: pointer;
  font-size: 19px;
}
.info-panel > p:first-of-type { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.info-panel h3 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.info-panel > p:last-of-type { margin: 13px 0 0; color: #67676d; font-size: 14px; line-height: 1.55; }

.unsupported {
  position: fixed;
  z-index: 500;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0,0,0,.16);
  font-size: 12px;
}
.unsupported strong, .unsupported span { display: block; }
.unsupported span { margin-top: 5px; color: #717176; }

@media (max-width: 900px) {
  .site-nav { grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-nav nav { display: none; }
  .hero { align-items: flex-start; padding-top: 15vh; background: linear-gradient(180deg, rgba(245,245,247,.98), rgba(245,245,247,.82) 44%, rgba(245,245,247,.05) 68%); }
  .hero-copy { width: 100%; margin: 0; }
  .hero h1 { font-size: clamp(56px, 16vw, 94px); }
  .hero-lead { width: min(520px, 90%); font-size: 17px; }
  .control-dock { right: 16px; bottom: 50px; }
  .story { align-items: flex-start; padding-top: 12vh; }
  .section-copy, .camera-copy { width: 100%; }
  .right-copy, .left-copy { margin: 0; }
  .centered-copy { width: 100%; }
  .section-copy h2, .display-copy h2 { font-size: clamp(48px, 13vw, 76px); }
  .design-section { background: linear-gradient(180deg, #f5f5f7 0%, rgba(245,245,247,.9) 47%, rgba(245,245,247,.12) 75%); }
  .performance-section { background: linear-gradient(180deg, #030405 0%, rgba(3,4,5,.94) 52%, rgba(3,4,5,.16) 78%); }
  .camera-section { background: linear-gradient(180deg, #010102 0%, rgba(1,1,2,.92) 54%, rgba(1,1,2,.12) 82%); }
  .detail-section { background: linear-gradient(180deg, #f5f5f7 0%, rgba(245,245,247,.9) 50%, rgba(245,245,247,.08) 80%); }
  .metric-row, .chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-row article { padding: 13px; min-height: 95px; }
  .metric-row strong { font-size: 25px; }
  .hotspot { display: none; }
  .display-card { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .source-note { flex-direction: column; }
}

@media (max-width: 560px) {
  .nav-pill { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .control-dock { left: 16px; right: auto; bottom: 52px; }
  .scroll-cue { display: none; }
  .metric-row, .chip-grid, .display-metrics, .specs-grid { grid-template-columns: 1fr; }
  .metric-row { gap: 8px; }
  .metric-row article { min-height: 75px; }
  .chip-grid div { padding: 14px; }
  .display-card { width: 94vw; padding: 30px 22px; border-radius: 30px; }
  .display-metrics article { min-height: 110px; }
  .specs-section { padding-top: 11vh; }
  .specs-grid article { min-height: 190px; }
}

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

/* Cinematic focus system inspired by high-end product storytelling */
.focus-ui {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.focus-ui.active { opacity: 1; }
.focus-ring {
  position: absolute;
  left: var(--focus-x, 70%);
  top: var(--focus-y, 48%);
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%) scale(.82);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 45px rgba(255,255,255,.12);
  backdrop-filter: blur(1px);
  transition: left .7s cubic-bezier(.22,.8,.2,1), top .7s cubic-bezier(.22,.8,.2,1), transform .7s cubic-bezier(.22,.8,.2,1);
}
.focus-ui.active .focus-ring { transform: translate(-50%, -50%) scale(1); }
.focus-ring i { position:absolute; background:rgba(255,255,255,.86); }
.focus-ring i:nth-child(1), .focus-ring i:nth-child(2) { width:18px; height:1px; top:50%; }
.focus-ring i:nth-child(1) { left:-10px; }
.focus-ring i:nth-child(2) { right:-10px; }
.focus-ring i:nth-child(3), .focus-ring i:nth-child(4) { width:1px; height:18px; left:50%; }
.focus-ring i:nth-child(3) { top:-10px; }
.focus-ring i:nth-child(4) { bottom:-10px; }
.focus-caption {
  position: absolute;
  left: calc(var(--focus-x, 70%) + 76px);
  top: calc(var(--focus-y, 48%) + 58px);
  display:grid;
  gap:5px;
  min-width:170px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  color:#fff;
  background:rgba(12,12,14,.42);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translateY(8px);
  opacity:0;
  transition: opacity .35s ease .25s, transform .45s cubic-bezier(.22,.8,.2,1) .25s;
}
.focus-ui.light .focus-caption { color:#1d1d1f; background:rgba(255,255,255,.62); border-color:rgba(0,0,0,.08); }
.focus-ui.light .focus-ring { border-color:rgba(29,29,31,.42); box-shadow:0 0 0 1px rgba(255,255,255,.5),0 0 40px rgba(0,0,0,.06); }
.focus-ui.light .focus-ring i { background:rgba(29,29,31,.7); }
.focus-ui.active .focus-caption { opacity:1; transform:translateY(0); }
.focus-caption span { font-size:9px; letter-spacing:.17em; opacity:.58; }
.focus-caption strong { font-size:14px; letter-spacing:-.02em; }
.chapter-rail {
  position:fixed;
  z-index:20;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  justify-items:end;
  gap:12px;
  pointer-events:none;
  mix-blend-mode:difference;
  color:#fff;
}
.rail-line { width:1px; height:126px; background:rgba(255,255,255,.25); position:relative; overflow:hidden; }
.rail-line i { position:absolute; inset:0 0 auto; height:14%; background:#fff; transition:height .7s cubic-bezier(.22,.8,.2,1); }
.chapter-rail div { writing-mode:vertical-rl; font-size:9px; letter-spacing:.12em; opacity:.75; }
.story .section-copy { transition: opacity .55s ease, transform .75s cubic-bezier(.22,.8,.2,1), filter .55s ease; }
.story:not(.is-active) .section-copy { opacity:.18; transform:translateY(28px); filter:blur(3px); }
.story.is-active .section-copy { opacity:1; transform:translateY(0); filter:blur(0); }
@media (max-width: 760px) {
  .chapter-rail { right:9px; }
  .focus-ring { width:78px; height:78px; }
  .focus-caption { display:none; }
}
