:root {
  --bg: #120a07;
  --bg-2: #1d110c;
  --cream: #f7ecdc;
  --muted: #bda895;
  --red: #e0311f;
  --red-2: #ff5a3c;
  --green: #2fb550;
  --line: rgba(247, 236, 220, .12);
  --glass: rgba(29, 17, 12, .55);
  --radius: 22px;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -.02em; }
p { margin: 0 0 1em; color: var(--muted); }
em { font-style: normal; color: var(--red-2); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

/* Canvas + grain */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 50% { transform: translate(-4%, 3%); } }
main, .footer { position: relative; z-index: 2; }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; gap: 22px; justify-items: center; }
.loader img { width: 150px; border-radius: 26px; animation: pulse 1.6s ease-in-out infinite; }
.loader-bar { width: 180px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green)); transition: width .3s; }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* Nav */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 24px);
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 10px; border-radius: 999px;
  background: rgba(18, 10, 7, .55); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translate(-50%, -140%); }
.nav-logo img { height: 44px; width: 44px; object-fit: cover; border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 6px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); background: rgba(247, 236, 220, .08); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(224, 49, 31, .7); }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 90, 60, .8); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: rgba(247, 236, 220, .04); }
.btn-ghost:hover { background: rgba(247, 236, 220, .1); transform: translateY(-2px); }
.btn-block { width: 100%; }
.nav-cta { padding: 12px 20px; }

/* Type */
.eyebrow, .tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.tag { margin-bottom: 18px; }
.display { font-size: clamp(56px, 10vw, 148px); font-weight: 800; }
.title { font-size: clamp(38px, 5.4vw, 76px); font-weight: 700; margin-bottom: 24px; }
.lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 520px; color: var(--cream); opacity: .82; }
.split .line { display: block; overflow: hidden; padding-bottom: .06em; }
.split .line > span { display: inline-block; will-change: transform; }

/* Sections */
.section { padding: clamp(100px, 16vh, 180px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 60px; position: relative; }
.hero .display { margin: 18px 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats {
  position: absolute; right: max(96px, calc((100% - 1200px) / 2)); bottom: 60px;
  display: flex; gap: 36px;
}
.hero-stats div { display: grid; }
.hero-stats strong { font: 800 40px/1 var(--display); }
.hero-stats span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: grid; justify-items: center; gap: 10px;
}
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--cream), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* Marquee */
.marquee { position: relative; z-index: 2; background: var(--red); color: #fff; overflow: hidden; transform: rotate(-2deg); margin: 20px -20px; box-shadow: 0 20px 50px -20px rgba(224, 49, 31, .6); }
.marquee-track { display: flex; gap: 34px; width: max-content; padding: 18px 0; animation: marquee 26s linear infinite; font: 800 clamp(26px, 3.4vw, 44px)/1 var(--display); text-transform: uppercase; }
.marquee b { color: var(--bg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.big-year { font: 800 clamp(120px, 18vw, 260px)/.85 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(247, 236, 220, .5); }
.big-year em { color: var(--red); -webkit-text-stroke: 0; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.mv article { padding: 26px; }
.mv h3 { font-size: 24px; margin-bottom: 10px; color: var(--cream); }
.mv p { font-size: 15px; margin: 0; }

/* Products */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.pcard {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.pcard:hover { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(224, 49, 31, .4); }
.pcard-img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.16); }
.pcard-body { padding: 26px; transform: translateZ(40px); }
.pcard-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.pcard h3 { font-size: 40px; margin: 8px 0 10px; }
.pcard p { font-size: 15px; }
.pcard-num { position: absolute; top: 18px; right: 22px; font: 800 18px var(--display); color: #fff; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 999px; transform: translateZ(60px); }
.chips { display: flex; gap: 8px; }
.chips span { padding: 6px 14px; border-radius: 999px; background: rgba(224, 49, 31, .16); color: var(--red-2); font-weight: 700; font-size: 14px; }
.link { font-weight: 700; color: var(--red-2); }

/* Gallery: 3D ring of photos turned by scroll */
.gallery { position: relative; }
.gallery-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 90px 0 40px; }
.gallery-head .title { margin-bottom: 0; }
.ring-stage { --card-w: min(clamp(170px, 22vw, 290px), 36svh); --radius: calc(var(--card-w) * 1.32); height: calc(var(--card-w) * 1.75); perspective: 1600px; display: grid; place-items: center; margin-top: 20px; }
.ring { position: relative; width: var(--card-w); height: calc(var(--card-w) * 1.4); transform-style: preserve-3d; will-change: transform; }
.ring figure {
  position: absolute; inset: 0; margin: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  transform: rotateY(calc(var(--i) * 360deg / 7)) translateZ(var(--radius));
  transition: filter .4s, opacity .4s;
}
.ring img { width: 100%; height: 100%; object-fit: cover; }
.ring figure:hover { filter: brightness(1.1); }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 6, 4, .92); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 18px; box-shadow: 0 40px 80px rgba(0, 0, 0, .7); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--cream); font-size: 28px; cursor: pointer; }

/* Production */
.production-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.prod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.prod-list li { display: flex; gap: 22px; padding: 24px 26px; align-items: center; }
.prod-list span { font: 800 34px var(--display); color: var(--red); }
.prod-list h3 { font-size: 24px; margin-bottom: 4px; }
.prod-list p { margin: 0; font-size: 15px; }
.production .btn { margin-top: 10px; }

/* Franchise hero */
.franchise-hero { min-height: 110svh; display: grid; align-items: center; }
.franchise-hero .display { margin-bottom: 30px; text-shadow: 0 6px 40px rgba(18, 10, 7, .9); }
.franchise-hero .lead, .counter span { text-shadow: 0 2px 14px rgba(18, 10, 7, 1); }
.franchise-hero .lead { margin-inline: auto; }
.counter { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 20px; text-align: left; }
.counter strong { font: 800 clamp(80px, 12vw, 160px)/1 var(--display); background: linear-gradient(120deg, var(--red-2), var(--red) 50%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter span { font-size: 18px; color: var(--cream); line-height: 1.3; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.why-grid article { padding: 30px; transition: transform .6s var(--ease), border-color .4s; transform-style: preserve-3d; }
.why-grid article:hover { border-color: rgba(224, 49, 31, .5); }
.why-grid i { font-style: normal; font-size: 34px; display: block; margin-bottom: 18px; transform: translateZ(30px); }
.why-grid h3 { font-size: 24px; margin-bottom: 10px; }
.why-grid p { margin: 0; font-size: 15px; }

/* Process (horizontal pin) */
.process { position: relative; padding: 80px 0; }
.process-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.process-track { display: flex; gap: 22px; padding: 0 max(16px, calc((100% - 1200px) / 2)); will-change: transform; }
.step {
  flex: 0 0 min(440px, 82vw); min-height: 360px; padding: 34px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(224, 49, 31, .22), rgba(29, 17, 12, .75) 55%);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.step:nth-child(even) { background: linear-gradient(160deg, rgba(47, 181, 80, .2), rgba(29, 17, 12, .75) 55%); }
.step-n { font: 800 110px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(247, 236, 220, .4); margin-bottom: auto; }
.step h3 { font-size: 34px; margin-bottom: 12px; }
.step p { margin: 0; }

/* Apply */
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.phone { display: inline-block; margin-top: 10px; font: 800 clamp(30px, 3.4vw, 46px)/1 var(--display); border-bottom: 2px solid var(--red); padding-bottom: 6px; }
.form { padding: 30px; display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cream); }
.form input, .form textarea {
  font: 500 16px var(--body); color: var(--cream); background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(189, 168, 149, .6); }
.form input:focus, .form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 49, 31, .18); }
.form input.invalid { border-color: var(--red-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pill { display: inline-flex !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; transition: all .3s; }
.pill input:checked + span { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.pill input:focus-visible + span { outline: 2px solid var(--red); }
.form-note { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--red-2); }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font: 700 20px var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-2); font-size: 26px; line-height: 1; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; }

/* Social */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; perspective: 1200px; }
.scard {
  display: grid; gap: 10px; padding: 40px; min-height: 340px; align-content: end; border-radius: 28px;
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .6s var(--ease); transform-style: preserve-3d;
}
.scard-red { background: linear-gradient(150deg, var(--red), #8c1a0f); }
.scard-red p, .scard-red span { color: rgba(255, 255, 255, .85); }
.scard span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.scard h3 { font-size: clamp(34px, 4vw, 54px); }
.scard p { margin: 0; }
.scard b { font: 700 18px var(--display); margin-top: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact .display { font-size: clamp(54px, 8vw, 120px); margin-bottom: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 4px; }
.contact-list a, .contact-list span { font: 600 22px/1.35 var(--display); }
.contact-list a:hover { color: var(--red-2); }
.map { overflow: hidden; aspect-ratio: 1; padding: 0; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.footer img { height: 56px; width: 56px; object-fit: cover; border-radius: 14px; }
.footer p { margin: 0; font-size: 14px; }
.footer a { font-weight: 700; font-size: 14px; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(47, 181, 80, .8); transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* Reveal default (JS animates) */
.js .reveal { opacity: 0; transform: translateY(40px); }

/* Responsive */
@media (max-width: 1280px) { .scroll-hint { display: none; } }
@media (max-width: 960px) {
  .nav { gap: 12px; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 14px;
    background: rgba(18, 10, 7, .96); border: 1px solid var(--line); border-radius: 24px;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all .4s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-size: 20px; padding: 14px 18px; }
  .nav-cta { margin-left: auto; padding: 11px 16px; font-size: 14px; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--cream); transition: transform .3s; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .story-grid, .production-grid, .apply-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .why-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .hero-stats { position: static; margin: 50px auto 0; gap: 26px; width: min(1200px, 100% - 32px); }
  .hero-stats strong { font-size: 30px; }
  .scroll-hint { display: none; }
  .process-pin { min-height: 0; }
  .process-track { flex-direction: column; }
  .step { flex-basis: auto; min-height: 280px; }
  .step-n { font-size: 80px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .form .row { grid-template-columns: 1fr; }
  .scard { padding: 28px; min-height: 280px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .grain, .loader img, .scroll-hint i { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
