@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #f4f4f5;
  --ink-2: #b4b4bd;
  --ink-3: #7c7c87;
  --bg: #09090b;
  --bg-2: #101013;
  --line: #222228;
  --flame: #e5392f;
  --flame-2: #ff6a3d;
  --gold: #dfbf11;
  --display: "Bricolage", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-body-font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-link-color-rgb: 244, 244, 245;
  --bs-link-hover-color-rgb: 255, 255, 255;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { user-select: none; -webkit-user-drag: none; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; color: #000; padding: 8px 12px; }

.grain {
  position: fixed; inset: -50%; z-index: 1500; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* nav */
.site-nav { padding: 14px 0; transition: background-color .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.site-nav.is-solid { background: rgba(9, 9, 11, 0.9); border-bottom-color: var(--line); padding: 8px 0; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 12px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--flame-2), var(--flame)); transform: skewX(-12deg); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-nav .nav-link { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-inline: 14px !important; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: var(--ink); }
.nav-carrier { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.04em; }
.navbar-toggler { border-color: var(--line); }

/* shared type */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.2rem; }
.kicker, .kicker.justify-content-center { display: flex; }
.kicker-alert { color: #ff8a80; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px rgba(229, 57, 47, 0.18); flex: none; }
.big-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 1.2rem; }
.mid-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; margin: 0; }
.lead-copy { color: var(--ink-2); font-size: 1.1rem; line-height: 1.65; max-width: 36rem; }
.mono-note { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.04em; margin: 0; }

.btn { font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.5rem; border-radius: 999px; }
.btn-flame { --bs-btn-bg: var(--flame); --bs-btn-border-color: var(--flame); --bs-btn-color: #fff; --bs-btn-hover-bg: #ff4a3f; --bs-btn-hover-border-color: #ff4a3f; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #c52c23; --bs-btn-active-border-color: #c52c23; --bs-btn-focus-shadow-rgb: 229, 57, 47; }
.btn-ghost { --bs-btn-color: var(--ink); --bs-btn-border-color: #3a3a42; --bs-btn-hover-bg: rgba(255, 255, 255, 0.06); --bs-btn-hover-border-color: #5a5a64; --bs-btn-hover-color: #fff; }

/* the device */
.stage { position: relative; perspective: 1600px; perspective-origin: 50% 40%; }
.device {
  --ry: -16deg; --rx: 6deg; --rz: 0deg;
  position: relative; width: min(100%, 360px); aspect-ratio: 540 / 1088; margin-inline: auto;
  transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(-30px 40px 38px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.device .screen { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateZ(1px) scale(1.012); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.device .screen.is-on { opacity: 1; transform: translateZ(1px) scale(1); }
.device .sheen {
  position: absolute; inset: 0; transform: translateZ(2px); pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 44%, rgba(255, 255, 255, 0.02) 52%, transparent 62%);
  background-size: 260% 100%; background-position: var(--sheen, 80%) 0;
  -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
}
.floor { position: absolute; left: 50%; bottom: -34px; width: 70%; height: 60px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(229, 57, 47, 0.26), transparent); filter: blur(10px); pointer-events: none; }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8); transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.82) 40%, rgba(9, 9, 11, 0.55) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(9, 9, 11, 0) 35%); }
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 11vw, 9.6rem); line-height: 0.84; letter-spacing: -0.055em; margin: 0; }
.hero-title-2 { display: inline-block; background: linear-gradient(90deg, var(--flame-2), var(--flame) 55%, #b3261e); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.hero-lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 34rem; margin-top: 1.6rem; }
.device-hero { width: min(100%, 380px); }
.callouts { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.co { position: absolute; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); letter-spacing: 0.04em; white-space: nowrap; padding: 6px 10px; border: 1px solid #2c2c33; border-radius: 6px; background: rgba(9, 9, 11, 0.72); }
.co b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.co-1 { top: 12%; left: 2%; }
.co-2 { top: 46%; right: 0; }
.co-3 { bottom: 14%; left: 6%; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid #4a4a53; border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-track span { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.02em; padding: 18px 28px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 28px; }
.ticker-track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--flame); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* story */
.story { padding: 40px 0 60px; }
.chapter { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; max-width: 34rem; }
.ch-num { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flame-2); margin-bottom: 1rem; }
.ch-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1; letter-spacing: -0.035em; margin: 0 0 1.2rem; }
.ch-text { color: var(--ink-2); font-size: 1.12rem; line-height: 1.65; margin: 0; }
.ch-meta { display: inline-flex; align-items: center; gap: 12px; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.ch-alert .ch-num { color: #ff8a80; }
.ch-phone { display: none; }
.chapter { opacity: 0.28; transition: opacity .5s ease; }
.chapter.is-on { opacity: 1; }
.story-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.stage-story { width: 100%; }
.device-story { width: min(78%, 400px); }
.story-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-dots li { width: 3px; height: 18px; border-radius: 2px; background: #2e2e35; transition: background .3s, height .3s; }
.story-dots li.is-on { background: var(--flame); height: 34px; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: #a38bf5; border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* dispatch */
.dispatch { padding: clamp(90px, 12vw, 160px) 0; background: radial-gradient(80% 60% at 50% 0%, #1a0c0d 0%, var(--bg) 70%); border-top: 1px solid var(--line); }
.console { margin: 0; perspective: 2000px; }
.console-frame { border: 1px solid #2c2c33; border-radius: 12px; overflow: hidden; background: #0c0c0f; transform: rotateX(14deg) scale(0.96); transform-origin: 50% 100%; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
.console.is-in .console-frame { transform: rotateX(0) scale(1); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #22222a; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-3); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c33; }
.console-bar span { margin-left: 10px; }
.console img { display: block; width: 100%; height: auto; }

/* apps wall */
.apps { padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.wall { margin: 56px 0 64px; display: grid; gap: 22px; transform: rotate(-4deg) scale(1.08); }
.wall-row { overflow: hidden; }
.wall-track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.wall-row-rev .wall-track { animation-direction: reverse; animation-duration: 70s; }
.wall:hover .wall-track { animation-play-state: paused; }
.wall-track img { width: clamp(150px, 15vw, 220px); height: auto; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)); }
.app-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.app-index li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.app-index b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.app-index span { color: var(--ink-3); font-size: 0.9rem; }

/* themes fan */
.themes { padding: clamp(90px, 12vw, 160px) 0 60px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.fan { position: relative; height: clamp(420px, 52vw, 700px); margin-top: 40px; }
.fan-card {
  position: absolute; left: 50%; bottom: 0; width: clamp(170px, 20vw, 300px); height: auto;
  transform-origin: 50% 160%;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)) brightness(0.8);
  translate: -50% 0;
}
.fan-card:nth-child(1) { transform: translateX(-200%) translateY(52px) rotate(-12deg); z-index: 1; }
.fan-card:nth-child(2) { transform: translateX(-100%) translateY(26px) rotate(-6deg); z-index: 2; }
.fan-card:nth-child(3) { transform: none; z-index: 3; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.fan-card:nth-child(4) { transform: translateX(100%) translateY(26px) rotate(6deg); z-index: 2; }
.fan-card:nth-child(5) { transform: translateX(200%) translateY(52px) rotate(12deg); z-index: 1; }
.fan-card:hover { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.7)); z-index: 5; }

/* photos */
.photos { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.photos-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(90px, 11vw, 160px); gap: 12px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.photo-grid img:hover { transform: scale(1.02); }
.pg-a { grid-column: 1 / span 5; grid-row: span 3; }
.pg-b { grid-column: 6 / span 4; grid-row: span 2; }
.pg-c { grid-column: 10 / span 3; grid-row: span 3; }
.pg-d { grid-column: 6 / span 4; grid-row: span 2; }
.pg-e { grid-column: 1 / span 5; grid-row: span 1; }
.pg-f { grid-column: 10 / span 3; grid-row: span 1; }

/* whiz */
.whiz { padding: clamp(90px, 12vw, 160px) 0; background: #0d0c06; border-top: 1px solid #25220f; }
.whiz .big-title { color: #fff; }
.specs { margin: 0; border-top: 1px solid #2d2912; }
.specs div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #2d2912; }
.specs dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 500; padding-top: 3px; }
.specs dd { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

/* closing */
.closing { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 8vw, 110px); border-top: 1px solid var(--line); overflow: hidden; }
.closing-title { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 11.5rem); line-height: 0.86; letter-spacing: -0.055em; margin: 0; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; }
.closing-by { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--ink-2); margin: 0; }
.closing-soon { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.closing-soon .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(223, 191, 17, 0.18); }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--ink-3); font-size: 0.85rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .site-nav { background: rgba(9, 9, 11, 0.9); }
  .hero { min-height: auto; padding-top: 110px; }
  .hero-shade { background: linear-gradient(180deg, rgba(9, 9, 11, 0.75) 0%, rgba(9, 9, 11, 0.9) 60%, var(--bg) 100%); }
  .device-hero { width: min(72%, 320px); }
  .co-1 { left: 0; } .co-2 { right: 0; } .co-3 { left: 0; }
  .scroll-cue { display: none; }
  .chapter { min-height: 0; opacity: 1; padding: 56px 0; max-width: none; border-bottom: 1px solid var(--line); }
  .ch-phone { display: block; width: min(64%, 300px); height: auto; margin: 32px auto 0; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.6)); }
  .app-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .photo-grid img { grid-column: auto !important; grid-row: auto !important; }
  .pg-a { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
  .nav-carrier { margin: 10px 0 12px; }
}
@media (max-width: 575.98px) {
  .co { display: none; }
  .app-index { grid-template-columns: minmax(0, 1fr); }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .fan-card { width: 130px; }
  .fan { height: 380px; }
  .wall { transform: rotate(-4deg) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .wall-track, .eq i, .scroll-cue span { animation: none; }
  .device, .device .screen, .console-frame, .fan-card, .reveal, .chapter { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
