/* ============================================================
   OTC HEARING TECH — design system
   Dark · champagne gold · clinical precision
   ============================================================ */

:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --surface: #10131b;
  --surface-2: #141827;
  --line: rgba(233, 215, 167, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f5f3ec;
  --muted: #a9adb6;
  --faint: #6f7480;
  --gold: #e9d7a7;
  --gold-2: #c8a668;
  --gold-3: #9a7b47;
  --aqua: #41b1e6;
  --grad-gold: linear-gradient(115deg, #f4e6bd 0%, #d9b87c 45%, #a5854f 100%);
  --grad-gold-soft: linear-gradient(115deg, rgba(244, 230, 189, 0.9), rgba(165, 133, 79, 0.9));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
  --radius: 18px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(233, 215, 167, 0.28); color: #fff; }

body::before { /* film grain */
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container--wide { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 300;
}
.display strong, .h2 strong { font-weight: 600; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 300; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); font-weight: 300; max-width: 62ch; }
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad-gold); }
.muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 300ms var(--ease-out), background 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav.hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.brand__name span { color: var(--gold-2); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted);
  transition: color 200ms ease;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); }
  .nav__links a:hover::after { transform: scaleX(1); }
}
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 160ms var(--ease-out), box-shadow 250ms ease, background 250ms ease, color 250ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: var(--grad-gold);
  color: #14100a;
  box-shadow: 0 10px 40px -12px rgba(216, 184, 124, 0.45);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(233, 215, 167, 0.03);
}
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { box-shadow: 0 14px 52px -10px rgba(216, 184, 124, 0.6); }
  .btn--ghost:hover { background: rgba(233, 215, 167, 0.08); border-color: rgba(233, 215, 167, 0.35); }
}
.btn--lg { padding: 20px 44px; font-size: 0.92rem; }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin-top: 20px; }
.hr-gold { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-img { overflow: hidden; }
.reveal-img img {
  transform: scale(1.08);
  transition: transform 1200ms var(--ease-out);
}
.reveal-img.in img { transform: scale(1); }

/* ---------- hero (landing) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__canvas canvas { width: 100%; height: 100%; display: block; }
.hero::after { /* bottom fade */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30vh; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; }
.hero .display { max-width: 15ch; margin: 26px 0 26px; }
.hero .lead { margin-bottom: 44px; }
.hero__ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold-2), transparent);
  animation: scrollPulse 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- stat strip ---------- */
.stats {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(233, 215, 167, 0.03), transparent);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 44px 30px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem); font-weight: 300; letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num sup { font-size: 0.45em; vertical-align: super; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 0.86rem; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line-soft); padding: 30px 22px; }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 90px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--glow::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(7, 8, 12, 0.55);
}

/* checklist */
.ticks { list-style: none; display: grid; gap: 18px; margin-top: 34px; }
.ticks li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks .tick {
  flex: none; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--gold);
  font-size: 0.7rem;
  background: rgba(233, 215, 167, 0.05);
}

/* ---------- tech section (black + gold) ---------- */
.tech {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% 20%, rgba(200, 166, 104, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #0a0a0e 30%, #0a0a0e 70%, var(--bg) 100%);
}
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-top: 60px; }
.tech-card { background: rgba(10, 10, 14, 0.92); padding: 36px 28px; transition: background 300ms ease; }
@media (hover: hover) and (pointer: fine) { .tech-card:hover { background: rgba(20, 18, 16, 0.95); } }
.tech-card__num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 300;
}
.tech-card__title { font-weight: 600; font-size: 0.95rem; margin: 14px 0 8px; }
.tech-card__body { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
@media (max-width: 900px) { .tech__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tech__grid { grid-template-columns: 1fr; } }

/* waveform divider */
.wave-divider { display: block; width: 100%; height: 120px; }

/* ---------- product cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 300ms ease, box-shadow 300ms ease;
  display: flex; flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { border-color: var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(216, 184, 124, 0.25); }
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: radial-gradient(600px 300px at 50% 110%, rgba(200, 166, 104, 0.14), transparent 70%);
  display: grid; place-items: center;
  padding: 30px;
}
.product-card__media img {
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__media img { transform: translateY(-6px) scale(1.03); }
}
.product-card__body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.product-card__tag { font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.product-card__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin: 10px 0 10px; }
.product-card__desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.product-card__meta { display: flex; gap: 20px; margin: 22px 0; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.product-card__meta div span { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.product-card__meta div b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.product-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.product-card__link svg { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .product-card__link:hover svg { transform: translateX(5px); }
}

/* ---------- comparison table ---------- */
.compare {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 22px 28px; text-align: left; font-size: 0.95rem; border-top: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { border-top: 0; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; padding-block: 26px; }
.compare thead th:nth-child(2) { color: var(--faint); }
.compare thead th:nth-child(3) { color: var(--gold); }
.compare td:first-child { color: var(--muted); font-size: 0.86rem; }
.compare td:nth-child(2) { color: var(--faint); }
.compare td:nth-child(3) { background: rgba(233, 215, 167, 0.035); }
.compare tbody tr { transition: background 200ms ease; }
@media (max-width: 700px) {
  .compare { overflow-x: auto; }
  .compare table { min-width: 640px; }
}

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 40px 36px;
  display: flex; flex-direction: column;
  transition: border-color 300ms ease, transform 300ms var(--ease-out);
}
.price-card--hot { border-color: rgba(233, 215, 167, 0.4); background: linear-gradient(180deg, #171408, var(--bg-2) 60%); }
.price-card__flag {
  position: absolute; top: -13px; left: 36px;
  background: var(--grad-gold); color: #14100a;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.price-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.price-card__form { color: var(--faint); font-size: 0.8rem; letter-spacing: 0.08em; margin-top: 4px; }
.price-card__price { margin: 30px 0 6px; font-family: var(--font-display); font-size: 3rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.price-card__price small { font-size: 0.32em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-family: var(--font-body); font-weight: 500; }
.price-card__map { color: var(--muted); font-size: 0.88rem; margin-bottom: 26px; }
.price-card__map b { color: var(--gold); }
.price-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.price-card ul li { padding-left: 24px; position: relative; color: var(--muted); font-size: 0.9rem; }
.price-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold-3); }

/* margin bar */
.margin-note {
  margin-top: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 36px;
  background: linear-gradient(115deg, rgba(233, 215, 167, 0.06), transparent 60%);
}
.margin-note p { color: var(--muted); max-width: 56ch; font-size: 0.95rem; }
.margin-note p b { color: var(--ink); }

/* ---------- guarantee ---------- */
.guarantee {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(50px, 7vw, 90px);
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(200, 166, 104, 0.14), transparent 60%),
    linear-gradient(180deg, #12100a, var(--bg-2));
  text-align: center;
}
.guarantee .h2 { max-width: 22ch; margin: 18px auto 20px; }
.guarantee .lead { margin: 0 auto 40px; }
.guarantee__badge {
  width: 108px; height: 108px; margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: rgba(233, 215, 167, 0.05);
  font-family: var(--font-display);
}
.guarantee__badge b { font-size: 1.9rem; font-weight: 300; display: block; line-height: 1; }
.guarantee__badge span { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 4px;
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 500;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .faq-item__q:hover { color: var(--gold); } }
.faq-item__icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--gold-2);
  transition: transform 300ms var(--ease-out);
}
.faq-item__icon::before { width: 14px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 14px; }
.faq-item.open .faq-item__icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--ease-out);
}
.faq-item.open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { color: var(--muted); padding: 0 4px 30px; max-width: 68ch; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 70px; width: max-content; animation: marquee 36s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
  display: flex; align-items: center; gap: 70px;
}
.marquee__track span::after { content: "◆"; font-size: 0.5rem; color: var(--gold-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA / footer ---------- */
.cta-final { text-align: center; }
.cta-final .display { max-width: 18ch; margin: 24px auto; }
.cta-final .lead { margin: 0 auto 46px; }
.footer { border-top: 1px solid var(--line-soft); padding: 60px 0 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer p, .footer a { color: var(--faint); font-size: 0.85rem; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--gold); } }
.footer__legal { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__legal p { font-size: 0.74rem; max-width: 90ch; }

/* ============================================================
   GATEWAY PAGE
   ============================================================ */
.gate {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 40px 24px;
}
.gate__canvas { position: absolute; inset: 0; }
.gate__canvas canvas { width: 100%; height: 100%; display: block; }
.gate__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(1200px 700px at 50% 50%, transparent 30%, rgba(7, 8, 12, 0.9) 100%); }
.gate__card {
  position: relative; z-index: 4;
  width: min(520px, 100%);
  text-align: center;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.55);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9);
}
.gate__brand { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 34px; }
.gate__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
.gate__sub { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.code-row { display: flex; gap: 12px; justify-content: center; margin: 36px 0 26px; }
.code-cell {
  width: 58px; height: 70px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; text-align: center;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out), background 200ms ease;
  caret-color: var(--gold);
}
.code-cell:focus {
  border-color: rgba(233, 215, 167, 0.6);
  box-shadow: 0 0 0 4px rgba(233, 215, 167, 0.12), 0 0 34px -6px rgba(216, 184, 124, 0.35);
  background: rgba(233, 215, 167, 0.05);
}
.code-cell.filled { border-color: rgba(233, 215, 167, 0.35); }
@media (max-width: 480px) { .code-cell { width: 46px; height: 58px; font-size: 1.4rem; } }
.gate__card.shake { animation: shake 380ms var(--ease-in-out); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  45% { transform: translateX(8px); }
  70% { transform: translateX(-5px); }
  88% { transform: translateX(3px); }
}
.gate__error { color: #e08484; font-size: 0.84rem; min-height: 22px; margin-bottom: 12px; opacity: 0; transition: opacity 200ms ease; }
.gate__error.show { opacity: 1; }
.gate__help { margin-top: 26px; color: var(--faint); font-size: 0.8rem; }
.gate__help a { color: var(--gold-2); border-bottom: 1px solid rgba(200, 166, 104, 0.35); transition: color 200ms ease; }
.gate__footer { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 4; text-align: center; color: var(--faint); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ============================================================
   PRODUCT SELL SHEETS
   ============================================================ */
.psheet-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(50px, 8vw, 100px)) 0 clamp(50px, 7vw, 90px);
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(200, 166, 104, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.psheet-hero .split { align-items: center; }
.psheet-hero__img { position: relative; display: grid; place-items: center; padding: 20px; }
.psheet-hero__img img {
  max-height: 480px; object-fit: contain;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.6));
}
.psheet-hero__halo {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 184, 124, 0.16), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: halo 6s var(--ease-in-out) infinite;
}
@keyframes halo { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 30px; }
.chip {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--gold);
  background: rgba(233, 215, 167, 0.04);
  padding: 8px 16px; border-radius: 999px;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-cell { background: var(--bg-2); padding: 32px 28px; }
.feature-cell__icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); margin-bottom: 18px; background: rgba(233, 215, 167, 0.04); }
.feature-cell h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 8px; }
.feature-cell p { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }

.spec-table { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.spec-table table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 18px 28px; border-top: 1px solid var(--line-soft); font-size: 0.94rem; }
.spec-table tr:first-child td { border-top: 0; }
.spec-table td:first-child { color: var(--faint); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; width: 44%; }
.spec-table td:last-child { font-family: var(--font-display); font-weight: 400; }

.psheet-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  background: linear-gradient(115deg, rgba(233, 215, 167, 0.07), transparent 55%);
}
.psheet-cta__price { font-family: var(--font-display); }
.psheet-cta__price b { font-size: 2.2rem; font-weight: 300; }
.psheet-cta__price span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; font-family: var(--font-body); }

.pager { display: flex; justify-content: space-between; gap: 20px; }
.pager a { display: flex; flex-direction: column; gap: 6px; color: var(--muted); transition: color 200ms ease; }
.pager a span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.pager a b { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .pager a:hover b { color: var(--gold); } }
.pager a:last-child { text-align: right; }

/* ============================================================
   ORDER PAGE
   ============================================================ */
.order-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } }
.order-block { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.order-block__head { padding: 26px 32px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.order-block__head h3 { font-size: 1.05rem; font-weight: 600; }
.order-block__head span { color: var(--faint); font-size: 0.8rem; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 22px 32px; border-top: 1px solid var(--line-soft); }
.order-row:first-of-type { border-top: 0; }
.order-row__name b { font-family: var(--font-display); font-weight: 500; }
.order-row__name span { display: block; color: var(--faint); font-size: 0.8rem; margin-top: 2px; }
.order-row__price { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--gold); font-size: 1.1rem;
  transition: background 160ms ease, transform 120ms var(--ease-out);
}
.qty button:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: rgba(233, 215, 167, 0.08); } }
.qty input {
  width: 44px; text-align: center; background: none; border: 0; color: var(--ink);
  font-family: var(--font-display); font-size: 1rem; font-weight: 500; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
@media (max-width: 560px) {
  .order-row { grid-template-columns: 1fr auto; }
  .order-row__price { display: none; }
}

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.field input, .field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--ink);
  font: inherit; font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input:focus, .field textarea:focus {
  border-color: rgba(233, 215, 167, 0.5);
  box-shadow: 0 0 0 4px rgba(233, 215, 167, 0.1);
}
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.summary__rows { padding: 8px 32px 0; }
.summary__row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.summary__row.total { border-bottom: 0; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; padding-block: 20px; }
.summary__row.total b { font-weight: 600; }
.summary__margin { margin: 0 32px 26px; padding: 16px 20px; border-radius: 12px; background: rgba(233, 215, 167, 0.06); border: 1px solid var(--line); font-size: 0.86rem; color: var(--gold); text-align: center; }
.summary__actions { padding: 0 32px 32px; display: grid; gap: 12px; }
.order-note { color: var(--faint); font-size: 0.8rem; text-align: center; padding: 0 32px 28px; }

.toast-ok {
  position: fixed; left: 50%; bottom: 34px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 26px; border-radius: 14px; font-size: 0.9rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
  pointer-events: none;
  max-width: min(480px, calc(100vw - 48px));
  text-align: center;
}
.toast-ok.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- misc ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(50px, 9vw, 110px)) 0 clamp(40px, 6vw, 70px); }
.kbd-note { color: var(--faint); font-size: 0.8rem; }

@media print {
  body::before, .nav, .hero__scroll, .btn, .pager, .footer__legal { display: none !important; }
  body { background: #fff; color: #111; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img img { transition: opacity 300ms ease; transform: none; }
  .reveal { transform: none; }
  .marquee__track { animation: none; }
  .hero__scroll::after, .psheet-hero__halo { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   CINEMA — scroll-driven continuous scene (home)
   ============================================================ */
body[data-cinema] { background: #050609; }
.cinema-field {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.cinema-field canvas { width: 100%; height: 100%; display: block; }
.keylight {
  position: fixed; inset: -20%; z-index: 1; pointer-events: none;
  background: radial-gradient(52% 38% at var(--kx, 70%) var(--ky, 22%), rgba(216, 184, 124, 0.11), transparent 70%);
  transition: opacity 600ms ease;
}
body[data-cinema] main, body[data-cinema] section, body[data-cinema] footer { position: relative; z-index: 2; }

/* progress rail */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  pointer-events: none;
}
.rail__track { width: 1px; height: 34vh; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.rail__fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--grad-gold); transform: scaleY(0); transform-origin: top; }
.rail__label {
  margin-top: 14px;
  font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-2); writing-mode: vertical-rl;
  min-height: 9em;
}
@media (max-width: 1100px) { .rail { display: none; } }

/* generic full-bleed pinned scene */
.scene {
  position: relative;
  overflow: clip;
}
.scene__stage {
  height: 100svh;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.scene__bg { position: absolute; inset: -6%; z-index: 0; background-size: cover; background-position: center; will-change: transform; }

/* ---------- X-RAY scene ---------- */
.xray { background: #030304; }
.xray .scene__stage { background: radial-gradient(900px 520px at 50% 46%, #0b0a08 0%, #030304 70%); }
.xray__frame {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  will-change: transform, opacity, filter;
}
.xray__frame img {
  max-width: min(72vw, 860px);
  max-height: 74svh;
  object-fit: contain;
}
.xray__head {
  position: absolute; top: max(12svh, 96px); left: 50%; transform: translateX(-50%); z-index: 6;
  text-align: center; width: min(90vw, 780px);
  will-change: transform, opacity;
}
.xray__head .h2 { margin-top: 14px; }
.xray__cap {
  position: absolute; bottom: 9svh; left: 50%; transform: translateX(-50%); z-index: 6;
  text-align: center; width: min(88vw, 640px);
  color: var(--muted); font-size: 1.02rem; font-weight: 300;
  will-change: transform, opacity;
}
.xray__cap b { color: var(--gold); font-weight: 600; }

/* callouts */
.callout {
  position: absolute; z-index: 5;
  width: 240px;
  will-change: transform, opacity;
}
.callout__line {
  height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent);
  transform-origin: left; margin-bottom: 12px;
}
.callout--left .callout__line { background: linear-gradient(270deg, var(--gold-2), transparent); transform-origin: right; }
.callout b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; }
.callout span { color: var(--muted); font-size: 0.8rem; line-height: 1.5; display: block; margin-top: 4px; }
.callout--left { text-align: right; }
@media (max-width: 860px) { .callout { display: none; } }

/* chip glow pulse overlay */
.xray__glow {
  position: absolute; z-index: 4; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 190, 100, 0.28), transparent 70%);
  mix-blend-mode: screen; pointer-events: none;
  will-change: transform, opacity;
}

/* ---------- AFC comparison band ---------- */
.afc { position: relative; background: #050505; padding: clamp(70px, 9vw, 120px) 0; }
.afc__wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.afc__img { display: block; width: 100%; }
.afc__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(150, 30, 30, 0.22), transparent 55%);
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
.afc__scanline {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--grad-gold);
  box-shadow: 0 0 24px 2px rgba(216, 184, 124, 0.55);
  left: 0; will-change: transform;
}
.afc__labels { display: flex; justify-content: space-between; margin-top: 22px; gap: 20px; }
.afc__labels p { font-size: 0.86rem; color: var(--muted); max-width: 42ch; }
.afc__labels p b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.afc__labels p:last-child { text-align: right; }
.afc__labels p:last-child b { color: var(--gold); }

/* ---------- command center scene ---------- */
.command { background: #060505; }
.command .scene__bg { opacity: 0.55; }
.command__card {
  position: relative; z-index: 3;
  width: min(92vw, 520px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.62);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 40px 44px;
  will-change: transform, opacity;
}
.command__card .eyebrow { margin-bottom: 14px; }
.command__steps { position: relative; margin-top: 18px; min-height: 132px; }
.command-step { position: absolute; inset: 0; will-change: transform, opacity; }
.command-step h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 10px; }
.command-step p { color: var(--muted); font-size: 0.95rem; }
.command__dots { display: flex; gap: 8px; margin-top: 26px; }
.command__dots i { width: 22px; height: 2px; background: rgba(255,255,255,0.14); transition: background 300ms ease; }
.command__dots i.on { background: var(--grad-gold); }
.command__screen {
  position: absolute; right: clamp(10px, 6vw, 90px); bottom: 8svh; z-index: 3;
  width: min(30vw, 300px); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
  will-change: transform, opacity;
}
.command__screen img { display: block; width: 100%; }
@media (max-width: 900px) { .command__screen { display: none; } }

/* depth utility for GSAP parallax */
[data-depth] { will-change: transform; }

/* lineup fly-in perspective */
.products-grid { perspective: 1200px; }

/* trust band */
.trust { }
.trust__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr; } }
.trust__chart { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-soft); }
.trust__chart img { width: 100%; }
.trust__chart figcaption { color: #555; font-size: 0.78rem; margin-top: 10px; text-align: center; }

/* hero exit will-change */
.hero__content { will-change: transform, opacity, filter; }

@media (prefers-reduced-motion: reduce) {
  .rail, .keylight { display: none; }
}

/* cinema page overrides */
body[data-cinema] .hero { background: transparent; }
body[data-cinema] .hero::after { display: none; }
body[data-cinema] .hero .display { text-shadow: 0 30px 80px rgba(0,0,0,0.65); }

/* mobile: pinned scenes flatten into stacked frames */
@media (max-width: 860px) {
  .xray .scene__stage { height: auto; padding: 80px 24px; display: block; background: #030304; }
  .xray__frame { position: static; margin: 30px auto; }
  .xray__frame img { max-width: 100%; max-height: none; }
  .xray__head, .xray__cap { position: static; transform: none; width: auto; margin: 18px auto; }
  .xray__glow { display: none; }
  .command .scene__stage { height: auto; padding: 90px 24px; display: block; }
  .command__card { margin-inline: auto; }
  .command__steps { min-height: 0; }
  .command-step { position: static; margin-bottom: 26px; }
  .command__dots { display: none; }
}

/* finale legibility + reduced-motion scene flattening */
body[data-cinema] .footer {
  background: linear-gradient(180deg, rgba(5, 6, 9, 0), rgba(5, 6, 9, 0.9) 26%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
@media (prefers-reduced-motion: reduce) {
  .xray .scene__stage { height: auto; padding: 80px 24px; display: block; background: #030304; }
  .xray__frame { position: static; margin: 30px auto; max-width: 760px; }
  .xray__head, .xray__cap { position: static; transform: none; width: auto; margin: 18px auto; text-align: center; }
  .xray__glow, .xray .callout { display: none; }
  .command .scene__stage { height: auto; padding: 90px 24px; display: block; }
  .command__steps { min-height: 0; }
  .command-step { position: static; margin-bottom: 26px; }
  .command__dots, .command__screen { display: none; }
  .afc__veil, .afc__scanline { display: none; }
}
body[data-cinema] .stats {
  background: rgba(5, 6, 9, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* assembly stack (parts converge on scroll) */
.assembly { display: grid; place-items: center; }
.assembly .asm {
  grid-area: 1 / 1;
  max-width: min(72vw, 860px);
  max-height: 74svh;
  object-fit: contain;
  will-change: transform, opacity, filter;
}
@media (max-width: 860px) {
  .assembly { display: block; }
  .assembly .asm { max-width: 100%; max-height: none; }
  .asm-part { display: none; }
}
@media (prefers-reduced-motion: reduce) { .asm-part { display: none; } }

/* hi-def product plates in lineup cards */
.product-card__media--plate { padding: 0; }
.product-card__media--plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  max-height: none;
  filter: none;
}
.psheet-hero__img img.plate { width: 100%; border-radius: 20px; }

/* assembly precision pass */
.asm-reticle { width: min(56vw, 640px); height: auto; max-height: none; opacity: 0; }
.asm-sweep {
  width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 250, 235, 0.14) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}
.asm-tag {
  align-self: end; justify-self: start;
  margin: 0 0 8% 6%;
  font-family: var(--font-display);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0;
  border-left: 1px solid rgba(216, 184, 124, 0.5);
  padding-left: 12px;
}
@media (max-width: 860px) { .asm-reticle, .asm-sweep, .asm-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .asm-reticle, .asm-sweep, .asm-tag { display: none; } }

/* ============================================================
   21st-sourced: cursor-tracked border glow (gold translation)
   ============================================================ */
[data-glow] { position: relative; }
.glow-ring {
  pointer-events: none;
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: var(--active, 0);
  transition: opacity 300ms ease;
}
.glow-ring::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background:
    conic-gradient(from calc(var(--start, 0) * 1deg),
      transparent 0deg,
      rgba(244, 230, 189, 0.9) 20deg,
      rgba(217, 184, 124, 1) 40deg,
      rgba(165, 133, 79, 0.9) 60deg,
      transparent 80deg)
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0) border-box;
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0) border-box;
  mask-composite: exclude;
}
.glow-ring::after { /* soft outer halo following the same wedge */
  content: "";
  position: absolute; inset: -14px;
  border-radius: inherit;
  background: conic-gradient(from calc(var(--start, 0) * 1deg),
    transparent 8deg, rgba(217, 184, 124, 0.16) 40deg, transparent 72deg);
  filter: blur(18px);
  z-index: -1;
}

/* subtle dot-grid mask behind pricing */
#pricing { position: relative; }
#pricing::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(233, 215, 167, 0.13) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(58% 42% at 50% 42%, #000 20%, transparent 75%);
  mask-image: radial-gradient(58% 42% at 50% 42%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* ============================================================
   Mobile navigation sheet (JS-injected)
   ============================================================ */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform 120ms var(--ease-out);
}
.nav__burger:active { transform: scale(0.9); }
.nav__burger i {
  width: 22px; height: 1.6px; background: var(--gold);
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.nav__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
@media (max-width: 860px) { .nav__burger { display: flex; } }

.mobile-sheet {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(7, 8, 12, 0.68);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) 34px 40px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4%) scale(1.015);
  transform-origin: top right;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.mobile-sheet.open {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 340ms var(--ease-out), transform 340ms var(--ease-out), visibility 0s;
}
.mobile-sheet a {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: calc(var(--i) * 40ms);
}
.mobile-sheet.open a { opacity: 1; transform: translateY(0); }
.mobile-sheet a:active { color: var(--gold); }
.mobile-sheet .btn { margin-top: 28px; border-bottom: 0; font-size: 0.92rem; opacity: 0; transform: translateY(14px); transition-delay: calc(var(--i) * 40ms); }
.mobile-sheet.open .btn { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mobile-sheet, .mobile-sheet a, .mobile-sheet .btn { transform: none !important; transition-duration: 150ms; }
}
@media (prefers-reduced-transparency: reduce) {
  .mobile-sheet { background: rgba(7, 8, 12, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
