/* FLICKER — The Artificially Intelligent Lamp™ */

@font-face {
  font-family: "ABC Normal";
  src: url("assets/fonts/ABCNormal_Book-s.p.39bhrra-599fh.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Normal";
  src: url("assets/fonts/ABCNormal_Normal-s.p.2jdih_vag200t.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Normal";
  src: url("assets/fonts/ABCNormal_Neutral-s.p.08h030ywpbiq5.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --fg-soft: rgba(255, 255, 255, 0.72);
  --fg-mute: rgba(255, 255, 255, 0.48);
  --fg-faint: rgba(255, 255, 255, 0.38);
  --radius: clamp(8px, 0.9vw, 14px);
  --gutter: clamp(20px, 4.3vw, 68px);
  --content: 1600px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "ABC Normal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(245, 217, 168, 0.9); color: #000; }

img, video { display: block; max-width: 100%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--fg);
  color: #000;
  font-family: inherit;
  font-size: clamp(12px, 0.95vw, 13.5px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.btn:hover { background: #ececec; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- Hero ---------- */

.hero { height: 260vh; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(16px, 2.5vw, 32px) var(--gutter) var(--gutter);
}

.hero-frame {
  position: relative;
  width: min(100%, var(--content));
  max-height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Feather the video's edges so its black dissolves into the page background */
  -webkit-mask-image: radial-gradient(ellipse 86% 90% at 50% 45%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 86% 90% at 50% 45%, #000 58%, transparent 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6%, 90px);
  pointer-events: none;
}
.hero-left { display: flex; flex-direction: column; gap: 0.5em; }
.hero-brand {
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--fg-soft);
}
.hero-title,
.hero-right {
  font-size: clamp(13px, 1.32vw, 19px);
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* ---------- Meet ---------- */

.meet {
  margin-top: -100px;
  padding: clamp(28px, 3.4vw, 50px) var(--gutter) 0;
  text-align: center;
}
.eyebrow {
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.meet h1 {
  margin-top: clamp(14px, 1.6vw, 24px);
  font-size: clamp(34px, 3.75vw, 54px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.lede {
  margin: clamp(18px, 2vw, 28px) auto 0;
  max-width: min(80ch, 980px);
  font-size: clamp(14px, 1.32vw, 19px);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: 0.002em;
  color: var(--fg-soft);
}

/* ---------- Film ---------- */

.film {
  margin-top: clamp(40px, 4.5vw, 66px);
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.film-frame {
  position: relative;
  display: block;
  width: min(100%, 82vw, 1440px);
  aspect-ratio: 1920 / 824;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #050505;
}
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.film-frame:hover img { transform: scale(1.025); }

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play svg {
  width: clamp(26px, 3vw, 44px);
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.film-frame:hover .play svg,
.making-card:hover .play svg { transform: scale(1.12); }
.film-frame:focus-visible,
.making-card:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.preorder {
  margin-top: clamp(40px, 4.3vw, 64px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.preorder-note {
  font-size: clamp(10px, 0.85vw, 12px);
  color: var(--fg-mute);
}

/* ---------- Making-of card ---------- */

.making {
  margin-top: clamp(40px, 5vw, 72px);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: center;
}
.making-card {
  position: relative;
  display: block;
  width: min(92vw, 640px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #050505;
}
.making-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1);
}
.making-card:hover img { transform: scale(1.025); }

/* ---------- Specs ---------- */

.specs {
  margin-top: clamp(72px, 8vw, 130px);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: center;
}
.specs-grid {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.85fr;
  gap: clamp(32px, 3.5vw, 56px);
}
.specs-head h2 {
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  max-width: 8em;
}
.specs-lamp {
  width: 86%;
  margin-top: clamp(20px, 2.2vw, 34px);
}
.specs dl > div { margin-bottom: clamp(20px, 2vw, 30px); }
.specs dl > div:last-child { margin-bottom: 0; }
.specs dt {
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 400;
  color: var(--fg);
}
.specs dd {
  margin-top: 0.45em;
  font-size: clamp(12px, 0.97vw, 14px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--fg-faint);
}

/* ---------- CTA & footer ---------- */

.cta {
  margin-top: clamp(90px, 11vw, 180px);
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.4vw, 20px);
  text-align: center;
}
.cta p {
  font-size: clamp(16px, 1.6vw, 23px);
  font-weight: 400;
  letter-spacing: 0.002em;
}

footer {
  margin-top: clamp(36px, 4vw, 60px);
  padding: 0 var(--gutter) clamp(36px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.logo { display: block; }
.logo img {
  width: auto;
  height: clamp(18px, 1.75vw, 25px);
  filter: invert(1);
  transition: opacity 0.25s ease;
}
.logo:hover img { opacity: 0.8; }
.legal p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--fg-mute);
}
.legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal a:hover { color: var(--fg); }

/* ---------- Lightbox ---------- */

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 64px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.lightbox-body {
  position: relative;
  width: min(100%, 1600px);
  transform: scale(0.965);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lightbox-body { transform: scale(1); }
/* Definite viewport-based box (iframes have no intrinsic size, so avoid
   percentage-of-parent + aspect-ratio, which can collapse to 300x150). Both
   dimensions share the same three 16:9-consistent constraints. */
.video-embed {
  width: min(92vw, 1600px, calc(86vh * 16 / 9));
  height: min(51.75vw, 900px, 86vh);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 36px);
  right: clamp(16px, 3vw, 36px);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lightbox-close svg { width: 13px; height: 13px; }
.lightbox-close:hover { background: var(--fg); color: #000; }

/* ---------- Breakpoints ---------- */

@media (max-width: 1024px) {
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .specs-head { grid-column: 1 / -1; }
  .specs-head h2 { max-width: none; }
  .specs-lamp { width: min(46%, 300px); }
}

@media (max-width: 640px) {
  .hero { height: 220vh; }
  .hero-frame {
    aspect-ratio: auto;
    width: 100%;
    height: min(76vh, 170vw);
  }
  .hero-copy {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    padding: 26px 24px;
  }
  .specs-grid { grid-template-columns: 1fr; }
  .film-frame { width: 100%; }
  .preorder { flex-direction: column; gap: 14px; }
  .cta { flex-direction: column; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; }
  .film-frame img, .film-frame .play svg, .btn { transition: none; }
}
