/* site.css — cinematic 3D-scroll shell. Colors come from CSS vars set per-brief. */
@font-face {
  font-family: "Petrona Vendored";
  src: url("vendor/fonts/petrona-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk Vendored";
  src: url("vendor/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins Vendored";
  src: url("vendor/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins Vendored";
  src: url("vendor/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
:root {
  --bg: #060d18;
  --accent: #39e0ff;
  --accent2: #39e0ff;
  --text: #dfeaf5;
  --muted: rgba(223, 234, 245, 0.55);
  --hairline: rgba(255, 255, 255, 0.12);
  --serif: "Petrona Vendored", Georgia, serif;
  --sans: "Hanken Grotesk Vendored", "Helvetica Neue", Arial, sans-serif;
  --heading-weight: 500;
  --heading-scale: 1;
  --gradient: linear-gradient(135deg, var(--accent2), var(--accent));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* fixed WebGL / canvas backdrop — effectively pinned so text scrolls over it */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  display: block; z-index: 0;
}
/* film grain + vignette for cinematic depth */
.grain, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.vignette { box-shadow: inset 0 0 340px 60px rgba(0,0,0,0.85); }
.grain {
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* content sits above the canvas */
main { position: relative; z-index: 2; }
.chapter {
  min-height: 100vh; display: flex; align-items: center;
  padding: 12vh 8vw 16vh; position: relative;
}
.chapter[data-id="hero"] { padding-top: calc(12vh + 76px); }
.chapter[data-align="center"] { justify-content: center; text-align: center; }
.chapter[data-align="right"] { justify-content: flex-end; text-align: right; }
.chapter-inner {
  max-width: 720px; will-change: transform, opacity; position: relative;
}
/* legibility: a full-frame color-grade darkening (like a cinema LUT crushing
   highlights), not a shape behind the text — there's no inside/outside edge
   for the eye to catch, so it never reads as a panel. Text contrast comes
   from a stacked per-glyph shadow on top of that, which follows the letter
   forms instead of a box. Covers the whole viewport at all times (fixed),
   independent of scroll position or section alignment. */
main::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  /* flat, uniform — no gradient shape at all, so the video (a complement)
     stays consistently subordinate to the text (the priority) everywhere,
     not just near section edges */
  background: rgba(2, 4, 8, 0.5);
  mix-blend-mode: multiply;
}
.kicker {
  font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase;
  /* var(--accent) here fails WCAG AA (~2.7:1 on --bg; brand manual §5.3
     requires 4.5:1) — the brand's blues stay reserved for the gradient
     (buttons, symbol), never small text, matching the manual's own
     confirmed-safe pairing of white text on the brand's black. */
  color: var(--text); opacity: 0.82; margin-bottom: 22px; font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.75), 0 6px 30px rgba(0,0,0,0.55);
}
.chapter h1 {
  font-family: var(--serif); font-weight: var(--heading-weight); line-height: 1.05;
  font-size: calc(clamp(42px, 6.6vw, 104px) * var(--heading-scale, 1)); letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 3px 16px rgba(0,0,0,0.8), 0 10px 46px rgba(0,0,0,0.6);
}
.chapter h2 {
  font-family: var(--serif); font-weight: var(--heading-weight); line-height: 1.1;
  font-size: calc(clamp(32px, 4.6vw, 66px) * var(--heading-scale, 1)); letter-spacing: -0.01em; margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 3px 16px rgba(0,0,0,0.8), 0 10px 46px rgba(0,0,0,0.6);
}
.chapter p.lead {
  margin-top: 22px; font-size: clamp(16px, 1.4vw, 20px); color: var(--text); opacity: 0.62; font-weight: 400;
  max-width: 46ch; line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.98), 0 2px 14px rgba(0,0,0,0.9), 0 8px 34px rgba(0,0,0,0.75);
}
.chapter[data-align="right"] p.lead { margin-left: auto; }
.chapter[data-align="center"] p.lead { margin-left: auto; margin-right: auto; }
.hero-sub {
  margin-top: 22px; font-size: clamp(16px, 1.4vw, 20px); color: var(--text); opacity: 0.62; font-weight: 400;
  max-width: 46ch; line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.98), 0 2px 14px rgba(0,0,0,0.9), 0 8px 34px rgba(0,0,0,0.75);
}

/* spec strip */
.specs { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 40px; }
.spec { border-top: 1px solid var(--hairline); padding-top: 12px; min-width: 120px; }
.spec .k { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.spec .v { font-family: var(--serif); font-size: 30px; margin-top: 6px; }

/* buttons (CTA + modal form share this) */
.btn {
  display: inline-block; padding: 16px 40px; border: 1px solid var(--accent); background: transparent;
  color: var(--accent); text-decoration: none; letter-spacing: 0.22em; text-transform: uppercase; font-size: 13px;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.btn:hover { background: var(--accent); color: #000; }
.btn.btn--gradient { border: none; background: var(--gradient); color: #fff; }
.btn.btn--gradient:hover { background: var(--gradient); color: #fff; opacity: 0.88; }
.cta { text-align: center; }
.cta .btn { margin-top: 30px; }

/* fixed HUD (depth / speed / floor counter) */
.hud {
  position: fixed; top: 0; right: 0; height: 100vh; width: 92px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; pointer-events: none;
}
.hud .rail { position: relative; width: 2px; height: 42vh; background: var(--hairline); overflow: hidden; }
.hud .rail #hud-bar { position: absolute; inset: 0; transform-origin: top; background: var(--accent); transform: scaleY(0); }
.hud .label { writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.hud #hud-value { writing-mode: vertical-rl; font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }

/* brand logo — fixed, top-left, present on every scroll position */
.brand-logo {
  position: fixed; top: 26px; left: 34px; z-index: 4;
  height: 44px; width: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}
@media (max-width: 720px) {
  .brand-logo { top: 18px; left: 20px; height: 34px; }
}

/* scroll cue */
.scrollcue {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
.scrollcue.is-hidden { opacity: 0; pointer-events: none; animation: none; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); opacity: 0.5; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

/* CTA contact icons — instagram + whatsapp, below the CTA button */
.cta-contact {
  display: flex; justify-content: center; gap: 36px; margin-top: 36px;
}
.cta-contact a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.cta-contact a:hover { color: var(--accent); }
.cta-contact span {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .cta-contact { gap: 24px; }
}

/* menu / secondary content */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.menu-cols .row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.menu-cols h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 12px; color: var(--accent); }

@media (max-width: 720px) {
  .chapter { padding: 12vh 7vw; }
  .menu-cols { grid-template-columns: 1fr; gap: 30px; }
  .specs { gap: 24px; }
  .hud { width: 60px; }
}

button.btn { font-family: inherit; font-size: 13px; cursor: pointer; appearance: none; }

/* lead-form modal */
.lead-modal {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lead-modal.open { opacity: 1; pointer-events: auto; }
.lead-modal-backdrop {
  position: absolute; inset: 0; background: rgba(2, 4, 8, 0.72); backdrop-filter: blur(6px);
}
.lead-modal-card {
  position: relative; width: min(440px, 90vw); max-height: 86vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--hairline); padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lead-modal-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 24px; padding-right: 20px;
}
.lead-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
}
.lead-modal-close:hover { color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field span {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.field input {
  background: none; border: none; border-bottom: 1px solid var(--hairline); color: var(--text);
  font-family: var(--sans); font-size: 15px; padding: 8px 0; outline: none; transition: border-color 0.3s;
}
.field input:focus { border-color: var(--accent); }
#lead-form .btn { width: 100%; text-align: center; margin-top: 6px; }
.lead-form-status {
  margin-top: 16px; font-size: 12px; letter-spacing: 0.05em; color: var(--muted); min-height: 1.4em;
}
.lead-form-status.is-notice { color: var(--text); }
.lead-form-status.is-error { color: #ff6b6b; }
@media (max-width: 720px) {
  .lead-modal-card { padding: 30px 24px; }
}

/* site footer — opaque, sits in normal flow below the last chapter */
.site-footer {
  position: relative; z-index: 2; background: var(--bg);
  border-top: 1px solid var(--hairline); padding: 36px 8vw 24px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 480px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 10px; }
.footer-brand-name { font-family: var(--serif); font-size: 22px; display: block; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--text); transition: background 0.3s, color 0.3s;
}
.footer-social a:hover { background: var(--accent); color: #000; }
.footer-contact { text-align: right; }
.footer-contact-label {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.footer-contact a, .footer-contact span {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  color: var(--muted); text-decoration: none; font-size: 15px; margin-top: 8px; transition: color 0.3s;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg { flex-shrink: 0; color: var(--accent); }
@media (max-width: 720px) {
  .site-footer { padding: 48px 7vw 32px; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-contact a, .footer-contact span { justify-content: flex-start; }
}

/* loading veil until the engine reports ready */
#veil { position: fixed; inset: 0; z-index: 9; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity 0.8s; }
#veil.gone { opacity: 0; pointer-events: none; }
#veil .mark { font-family: var(--serif); font-size: 40px; letter-spacing: 0.1em; }
#veil .bar { position: absolute; bottom: 20%; width: 160px; height: 1px; background: var(--hairline); overflow: hidden; }
#veil .bar i { position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }
