:root{
  --bg: #0b0908;
  --bg-alt: #141110;
  --warm-1: #ff7a3d;
  --warm-2: #ffb35c;
  --warm-3: #ff4d3d;
  --cream: #f4ead9;
  --muted: #a89c8e;
  --line: rgba(244,234,217,0.16);
}

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

html{ scroll-behavior:smooth; }

body{
  background: var(--bg);
  color: var(--cream);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

h1,h2,h3{ font-family: inherit; letter-spacing: -0.02em; }

a{ color: inherit; text-decoration: none; }

/* ---------- Loader ---------- */
#loader{
  position: fixed; inset:0; z-index: 9999;
  background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-inner{ display:flex; flex-direction:column; align-items:center; gap:14px; width:220px; }
.loader-label{ font-size:11px; letter-spacing:0.3em; color: var(--muted); }
.loader-bar{ width:100%; height:2px; background: var(--line); position:relative; }
.loader-bar-fill{ position:absolute; left:0; top:0; height:100%; width:0%; background: linear-gradient(90deg,var(--warm-3),var(--warm-1)); transition: width 0.15s linear; }
.loader-pct{ font-size:11px; color: var(--warm-2); font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
#navbar{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: linear-gradient(to bottom, rgba(11,9,8,0.85), rgba(11,9,8,0));
  backdrop-filter: blur(6px);
}
.nav-inner{
  max-width: 1400px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 32px;
}
.nav-logo{ font-size:20px; font-weight:700; letter-spacing:0.04em; }
.nav-logo span{ color: var(--warm-1); }
.nav-links{ list-style:none; display:flex; gap:36px; }
.nav-links a{
  font-size:13px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--muted); transition: color 0.25s ease;
}
.nav-links a:hover{ color: var(--warm-2); }
.nav-order{
  font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
  background: var(--warm-1); color:#1a0e06; border:none;
  padding:11px 22px; border-radius:100px; cursor:pointer; font-weight:600;
  transition: background 0.25s ease, transform 0.2s ease;
}
.nav-order:hover{ background: var(--warm-2); transform: translateY(-1px); }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer;
  padding:8px; z-index: 600;
}
.nav-toggle span{ width:22px; height:2px; background: var(--cream); display:block; transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-links-mobile{
  display:none;
  list-style:none;
  position:fixed; top:0; right:0; height:100vh; width:78vw; max-width:340px;
  background: var(--bg-alt);
  flex-direction:column; align-items:flex-start; justify-content:center; gap:28px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.65,0,.35,1);
  border-left:1px solid var(--line);
}
.nav-links-mobile.open{ transform: translateX(0); }
.nav-links-mobile a{ font-size:20px; text-transform:uppercase; letter-spacing:0.05em; color: var(--cream); }
.nav-order-mobile{ margin-top:10px; }

/* ---------- Hero ---------- */
#hero{ position:relative; height: 600vh; background: var(--bg); }
.hero-sticky{
  position: sticky; top:0; left:0;
  height:100vh; width:100%;
  overflow:hidden;
  background: var(--bg);
}
#reel{
  position:absolute; inset:0;
  width:100%; height:100%;
  display:block;
}

.grain{
  position:absolute; inset:0; pointer-events:none; mix-blend-mode:overlay; opacity:0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
.vignette{
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
}
.warm-grade{
  position:absolute; inset:0; pointer-events:none; mix-blend-mode:soft-light; opacity:0.55;
  background: linear-gradient(160deg, rgba(255,122,61,0.35), rgba(20,10,5,0.2) 55%, rgba(255,77,61,0.25));
}

/* ---------- Viewfinder / camera chrome ---------- */
.viewfinder{ position:absolute; inset:0; pointer-events:none; z-index:20; }

.corner{ position:absolute; width:34px; height:34px; border-color: rgba(244,234,217,0.55); }
.corner-tl{ top:28px; left:28px; border-top:2px solid; border-left:2px solid; }
.corner-tr{ top:28px; right:28px; border-top:2px solid; border-right:2px solid; }
.corner-bl{ bottom:28px; left:28px; border-bottom:2px solid; border-left:2px solid; }
.corner-br{ bottom:28px; right:28px; border-bottom:2px solid; border-right:2px solid; }

.reticle{
  position:absolute; top:50%; left:50%; width:64px; height:64px;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(255,179,92,0.55);
}
.reticle-tick{ position:absolute; background: rgba(255,179,92,0.7); }
.tick-top{ top:-10px; left:50%; width:1px; height:8px; transform:translateX(-50%); }
.tick-bottom{ bottom:-10px; left:50%; width:1px; height:8px; transform:translateX(-50%); }
.tick-left{ left:-10px; top:50%; width:8px; height:1px; transform:translateY(-50%); }
.tick-right{ right:-10px; top:50%; width:8px; height:1px; transform:translateY(-50%); }

.rec-indicator{
  position:absolute; top:78px; left:32px;
  display:flex; align-items:center; gap:8px;
  font-size:11px; letter-spacing:0.1em; color: rgba(244,234,217,0.75);
  font-variant-numeric: tabular-nums;
}
.rec-dot{
  width:8px; height:8px; border-radius:50%; background: var(--warm-3);
  box-shadow: 0 0 8px var(--warm-3);
  animation: blink 1.2s infinite;
}
@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:0.15;} }
.rec-time{ color: rgba(244,234,217,0.45); margin-left:2px; }

.cam-specs{
  position:absolute; top:78px; right:32px;
  display:flex; flex-direction:column; align-items:flex-end; gap:4px;
  font-size:10px; letter-spacing:0.08em; color: rgba(244,234,217,0.45);
  font-variant-numeric: tabular-nums;
}

.frame-counter{
  position:absolute; bottom:78px; left:32px;
  font-size:11px; letter-spacing:0.05em; color: rgba(244,234,217,0.5);
  font-variant-numeric: tabular-nums;
}

.scroll-progress-track{
  position:absolute; top:120px; bottom:120px; right:32px; width:2px;
  background: rgba(244,234,217,0.14);
}
.scroll-progress-fill{
  position:absolute; top:0; left:0; width:100%; height:0%;
  background: linear-gradient(to bottom, var(--warm-2), var(--warm-3));
}

/* ---------- Hero text ---------- */
.hero-text{
  position:absolute; z-index:15; opacity:0; pointer-events:none;
  transition: opacity 0.15s linear;
}
.hero-text h1{
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--cream);
  text-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.hero-text h2{
  font-size: clamp(16px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--warm-2);
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}

.hero-text-1{ left:6%; bottom:14%; text-align:left; }
.hero-text-2{ right:6%; top:16%; text-align:right; }
.hero-text-2 h1{ font-size: clamp(32px, 6vw, 70px); }
.hero-text-2 h2{ font-size: clamp(44px, 8vw, 110px); color: var(--warm-1); font-weight:700; margin-top:8px; }
.hero-text-3{ left:50%; bottom:16%; transform: translateX(-50%); text-align:center; }
.hero-text-4{ left:6%; bottom:14%; text-align:left; }
.hero-text-4 h1{ font-size: 52px; }

/* ---------- Scroll hint ---------- */
.scroll-hint{
  position:absolute; bottom:36px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  z-index:20; transition: opacity 0.4s ease;
}
.scroll-hint span{ font-size:10px; letter-spacing:0.3em; color: rgba(244,234,217,0.6); }
.scroll-hint-line{ width:1px; height:36px; background: rgba(244,234,217,0.25); position:relative; overflow:hidden; }
.scroll-hint-dot{ position:absolute; top:0; left:-1.5px; width:4px; height:4px; border-radius:50%; background: var(--warm-2); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot{ 0%{ top:0; opacity:0; } 15%{ opacity:1; } 85%{ opacity:1; } 100%{ top:32px; opacity:0; } }

/* ---------- Skip intro ---------- */
.skip-intro-btn{
  position:absolute; bottom:36px; right:36px; z-index:30;
  font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
  font-family: inherit; color: rgba(244,234,217,0.75);
  background: rgba(20,15,10,0.4);
  border:1px solid rgba(244,234,217,0.3);
  padding:11px 20px; border-radius:100px;
  cursor:pointer; backdrop-filter: blur(4px);
  transition: opacity 0.35s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, color 0.25s ease;
}
.skip-intro-btn:hover{
  background: rgba(255,122,61,0.2); border-color: rgba(255,179,92,0.65);
  color: var(--cream); transform: translateY(-1px);
}
.skip-intro-btn.hidden{ opacity:0; pointer-events:none; }

/* ---------- Product / menu section ---------- */
#menu{ background: var(--bg); padding: 120px 32px; }
.section-head{ max-width: 640px; margin: 0 auto 64px; text-align:center; }
.eyebrow{ font-size:12px; letter-spacing:0.2em; color: var(--warm-1); text-transform:uppercase; }
.section-head h2{ font-size: clamp(30px,5vw,52px); margin: 14px 0 16px; }
.section-head p{ color: var(--muted); line-height:1.6; font-size:15px; }

.product-grid{
  max-width:1300px; margin:0 auto;
  display:grid; grid-template-columns: repeat(4, 1fr); gap:24px;
}
.product-card{
  background: var(--bg-alt);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.product-card:hover{ transform: translateY(-6px); border-color: rgba(255,122,61,0.4); }
.product-thumb{ height:180px; background-size:cover; background-position:center; }
.thumb-1{ background: radial-gradient(circle at 30% 30%, #6b3a1f, #1c0f08); }
.thumb-2{ background: radial-gradient(circle at 60% 40%, #d99a3f, #2a1408); }
.thumb-3{ background: radial-gradient(circle at 40% 60%, #b7402c, #1c0806); }
.thumb-4{ background: radial-gradient(circle at 50% 50%, #8a4a1f, #241005); }
.product-body{ padding:22px; }
.product-body h3{ font-size:19px; margin-bottom:8px; }
.product-body p{ font-size:13px; color: var(--muted); line-height:1.5; min-height:40px; }
.product-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:18px; }
.price{ font-weight:700; color: var(--warm-2); font-size:15px; }
.add-btn{
  font-size:12px; letter-spacing:0.05em; text-transform:uppercase;
  background: transparent; color: var(--cream); border:1px solid var(--line);
  padding:8px 16px; border-radius:100px; cursor:pointer;
  transition: all 0.25s ease;
}
.add-btn:hover{ background: var(--warm-1); border-color: var(--warm-1); color:#1a0e06; }

/* ---------- Story ---------- */
.story-section{
  padding: 140px 32px;
  background: linear-gradient(180deg, var(--bg), #1a0f0a);
  text-align:center;
}

/* ---------- Footer ---------- */
footer{ background:#0b0908; border-top:1px solid var(--line); padding:48px 32px; }
.footer-inner{ max-width:1300px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-inner p{ color: var(--muted); font-size:13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px){
  .nav-links, .nav-inner .nav-order{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-links-mobile{ display:flex; }

  .cam-specs{ display:none; }
  .rec-indicator{ top:70px; left:20px; }
  .corner{ width:22px; height:22px; }
  .corner-tl, .corner-tr{ top:20px; }
  .corner-bl, .corner-br{ bottom:20px; }
  .corner-tl, .corner-bl{ left:20px; }
  .corner-tr, .corner-br{ right:20px; }
  .frame-counter{ bottom:60px; left:20px; }
  .scroll-progress-track{ right:20px; top:100px; bottom:100px; }
  .skip-intro-btn{ bottom:60px; right:20px; padding:9px 16px; font-size:10px; }

  .hero-text-1{ left:6%; bottom:20%; }
  .hero-text-2{ right:6%; top:14%; }
  .hero-text-2 h2{ font-size: clamp(34px, 14vw, 60px); }
  .hero-text-3{ bottom:20%; width:90%; }
  .hero-text-4{ left:6%; bottom:20%; }

  .product-grid{ grid-template-columns: 1fr; }
  #menu{ padding:80px 20px; }
}
