/* =========================================================
   Atmosphere Club — styles
   Deep navy · ivory · antique gold. Cinematic pacing.
   ========================================================= */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --navy: #0f172a;
  --ink: #141a2a;
  --ivory: #f3eee4;
  --cream: #ebe4d6;
  --gold: #c9a96a;
  --gold-2: #e0c68f;
  --muted: #8a90a0;
  --muted-dark: #5f6577;
  --line: rgba(201, 169, 106, 0.32);
  --line-dark: rgba(20, 26, 42, 0.12);
  --ok: #4be0a5;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.77, 0, 0.18, 1);
  --nav-h: 80px;
  --container: 1240px;
  --lb: 1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ivory);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.2em; }

.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--gold); color: var(--bg); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }

.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin: 0 0 1.4rem;
}
.lead { font-size: 1.15rem; max-width: 46ch; color: rgba(243, 238, 228, 0.82); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.1rem; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; border-radius: 2px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--ghost { color: var(--ivory); border-color: rgba(243, 238, 228, 0.45); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(243, 238, 228, 0.08); }
.btn--dark { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn--dark:hover { background: var(--ink); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.66rem; }

.link {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); transition: border-color 0.3s;
}
.link::after { content: "  →"; white-space: pre; }
.link:hover { border-color: var(--gold); }

/* ---------- Chapter title cards ---------- */
.chapter {
  display: flex; align-items: center; gap: 1.1rem; margin: 0 0 2.2rem;
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.chapter__line { width: 0; height: 1px; background: var(--gold); transition: width 1.2s var(--ease) 0.25s; }
.chapter.is-visible .chapter__line { width: 64px; }
.chapter__name { color: var(--muted-dark); }
.chapter--light .chapter__name { color: rgba(243, 238, 228, 0.55); }

/* ---------- Split-word reveals ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split .wi {
  display: inline-block; transform: translateY(120%);
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 0.055s);
}
.is-visible .wi, .split.is-visible .wi { transform: none; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-stagger] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease) calc(var(--i, 0) * 0.09s), transform 0.9s var(--ease) calc(var(--i, 0) * 0.09s);
}
.is-visible [data-stagger] > *, [data-stagger].is-visible > * { opacity: 1; transform: none; }

/* =========================================================
   Preloader
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.loader__half { position: absolute; left: 0; right: 0; height: 50.5%; background: #04060c; transition: transform 1.1s var(--ease-2); }
.loader__half--top { top: 0; }
.loader__half--bottom { bottom: 0; }
.loader.is-open .loader__half--top { transform: translateY(-101%); }
.loader.is-open .loader__half--bottom { transform: translateY(101%); }
.loader__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  transition: opacity 0.45s var(--ease);
}
.loader.is-open .loader__content { opacity: 0; }
.loader__emblem .draw { fill: none; stroke: #d8e6fa; stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.6s var(--ease) forwards; }
.loader__emblem .draw--2 { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s var(--ease) 0.4s forwards, fillIn 0.5s 1.3s forwards; }
.loader__emblem .draw--3 { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s var(--ease) 0.6s forwards, fillIn 0.5s 1.6s forwards; }
.loader__word { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.14em; color: var(--ivory); opacity: 0; animation: fadeUp 1s var(--ease) 0.7s forwards; }
.loader__tag { font-size: 0.62rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: fadeUp 1s var(--ease) 0.95s forwards; }
.loader__bar { width: 140px; height: 1px; background: rgba(201, 169, 106, 0.2); overflow: hidden; margin-top: 1rem; }
.loader__bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); animation: bar 1.7s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: #d8e6fa; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Letterbox, grain, cursor ---------- */
.letterbox { position: fixed; left: 0; right: 0; height: calc(var(--lb) * 6vh); background: #000; z-index: 55; pointer-events: none; }
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

.grain {
  position: fixed; inset: -100%; width: 300%; height: 300%; z-index: 150; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1px solid rgba(201, 169, 106, 0.95); pointer-events: none; z-index: 300; opacity: 0;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s, background 0.35s, border-radius 0.35s;
  display: grid; place-items: center;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(201, 169, 106, 0.14); }
.cursor.is-text { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px; background: var(--gold); }
.cursor__label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; color: var(--ivory);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.5s var(--ease);
}
.nav.is-scrolled { height: 64px; background: rgba(7, 11, 20, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(201, 169, 106, 0.16); }
body.is-loading .nav { opacity: 0; }
body.is-ready .nav { animation: fadeDown 1s var(--ease) 0.2s both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.nav__inner { width: min(1500px, 100% - 3rem); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__emblem { width: 36px; height: 36px; border-radius: 50%; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.06em; white-space: nowrap; }

.nav__links { display: flex; gap: 2.2rem; margin-inline: auto; }
.nav__links a { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; position: relative; padding: 0.3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 0.25rem; font-size: 0.68rem; letter-spacing: 0.22em; }
.lang__btn { background: none; border: 0; color: rgba(243, 238, 228, 0.5); padding: 0.3rem 0.25rem; cursor: pointer; letter-spacing: inherit; font-size: inherit; font-weight: 500; transition: color 0.3s; }
.lang__btn:hover, .lang__btn[aria-pressed="true"] { color: var(--gold); }
.lang__sep { color: rgba(243, 238, 228, 0.3); }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 0.6rem; cursor: pointer; position: relative; z-index: 61; }
.nav__toggle span { width: 26px; height: 1px; background: var(--ivory); transition: transform 0.4s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 58; background: rgba(4, 6, 12, 0.97);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem 2rem 3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 0.6rem; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 3.6rem); display: flex; align-items: baseline; gap: 1.2rem; padding: 0.3rem 0;
  opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.menu__links a small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--gold); min-width: 2.2rem; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.1s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.17s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.24s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.31s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.38s; }
.menu__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #03050c; color: var(--ivory); --hp: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(3, 5, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(3, 5, 12, 0.35) 0%, transparent 25%, transparent 70%, #070b14 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + var(--hp) * 140px));
  width: min(var(--container), 100% - 3rem); margin-inline: auto; opacity: calc(1 - var(--hp) * 1.3);
}
.hero__title { font-size: clamp(2.8rem, 7.2vw, 6.4rem); font-weight: 300; line-height: 1.02; margin: 0 0 1.6rem; letter-spacing: -0.005em; }
.hero__title .line { display: block; }
.hero__title .line--accent { font-style: italic; font-weight: 300; color: var(--gold-2); }
.hero__eyebrow, .hero__lead, .hero__actions, .hero__corner { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
body.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.3s; }
body.is-ready .hero .wi { transform: none; transition-delay: calc(0.45s + var(--i, 0) * 0.09s); }
body.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: 1.1s; }
body.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: 1.3s; }
body.is-ready .hero__corner { opacity: 1; transform: none; transition-delay: 1.7s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__corner {
  position: absolute; bottom: calc(6vh * var(--lb) + 1.6rem); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(243, 238, 228, 0.6);
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__corner--left { left: max(1.5rem, calc((100% - var(--container)) / 2)); }
.hero__corner--right { right: max(1.5rem, calc((100% - var(--container)) / 2)); }
.hero__scrollline { width: 48px; height: 1px; background: rgba(243, 238, 228, 0.2); overflow: hidden; position: relative; display: block; }
.hero__scrollline span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: scrollline 2.4s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* =========================================================
   Chapter I — Agency
   ========================================================= */
.agency { background: linear-gradient(180deg, #070b14 0%, var(--bg-2) 100%); }
.agency__title { font-size: clamp(2rem, 4.2vw, 3.7rem); max-width: 24ch; margin: 0 0 3.5rem; font-weight: 300; }
.agency__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.agency__text p { color: rgba(243, 238, 228, 0.74); max-width: 58ch; font-size: 1.05rem; }
.facts { list-style: none; padding: 2.2rem 0 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; color: var(--gold-2); line-height: 1; }
.facts span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.55rem; }
.arrange { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.6rem); }
.arrange__title { font-size: 1.7rem; margin-bottom: 1rem; }
.arrange__list { list-style: none; margin: 0; padding: 0; }
.arrange__list li { display: flex; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.95rem; color: rgba(243, 238, 228, 0.85); }
.arrange__list li::before { content: "—"; color: var(--gold); }

/* =========================================================
   Chapter II — Filmstrip
   ========================================================= */
.film { position: relative; background: #04060c; --mx: 0; --my: 0; }
.film__sticky { position: relative; }
.film.is-pinned .film__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.film__head { position: absolute; z-index: 3; top: calc(var(--nav-h) + 1.2rem); left: max(1.5rem, calc((100% - var(--container)) / 2)); pointer-events: none; }
.film__head .chapter { margin-bottom: 0.8rem; }
.film__title { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0; font-weight: 300; }
.film__track { display: flex; height: 100%; will-change: transform; }
.panel { position: relative; flex: 0 0 var(--pw, 72vw); height: 100%; overflow: hidden; isolation: isolate; }
.panel + .panel { border-left: 1px solid rgba(201, 169, 106, 0.18); }
.panel .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.panel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(4, 6, 12, 0.92) 0%, rgba(4, 6, 12, 0.5) 45%, transparent 100%); z-index: 1; }
.panel__body { position: absolute; z-index: 2; left: clamp(1.5rem, 6%, 5rem); right: clamp(1.5rem, 6%, 5rem); bottom: clamp(6rem, 16vh, 9rem); max-width: 440px; }
.panel__index { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.2em; color: var(--gold); display: block; margin-bottom: 0.8rem; }
.panel__body h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 300; margin-bottom: 0.6rem; }
.panel__body p { color: rgba(243, 238, 228, 0.78); font-size: 1rem; max-width: 40ch; margin-bottom: 1.4rem; }
.film__foot {
  position: absolute; z-index: 3; bottom: calc(6vh * var(--lb, 0) + 2rem); left: max(1.5rem, calc((100% - var(--container)) / 2)); right: max(1.5rem, calc((100% - var(--container)) / 2));
  display: flex; align-items: center; gap: 1.5rem; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(243, 238, 228, 0.6);
}
.film__progress { flex: 1; height: 1px; background: rgba(243, 238, 228, 0.15); }
.film__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.film__counter { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.1em; color: var(--ivory); }
.film__counter #film-current { color: var(--gold); }

/* mouse parallax on scene layers */
.lyr { transition: transform 0.8s var(--ease); }
.lyr[data-depth="1"] { transform: translate(calc(var(--mx) * -4px), calc(var(--my) * -2px)); }
.lyr[data-depth="2"] { transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -3px)); }
.lyr[data-depth="3"] { transform: translate(calc(var(--mx) * -13px), calc(var(--my) * -5px)); }
.lyr[data-depth="4"] { transform: translate(calc(var(--mx) * -19px), calc(var(--my) * -7px)); }
.lyr[data-depth="5"] { transform: translate(calc(var(--mx) * -26px), calc(var(--my) * -9px)); }

/* scene palettes */
.star { fill: #fff; animation: tw 3.2s ease-in-out infinite; animation-delay: var(--tw, 0s); }
@keyframes tw { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.moon { fill: #f7edd8; }
.sun { fill: #ffd9a0; }
.win { fill: #ffd58a; opacity: 0.85; animation: tw 5s ease-in-out infinite; animation-delay: var(--tw, 0s); }
.water { fill: url(#g-water); }
.glint { fill: #ffd9a0; opacity: 0.45; animation: tw 2.6s ease-in-out infinite; animation-delay: var(--tw, 0s); }

.panel--alps { background: linear-gradient(180deg, #05070f 0%, #141a36 40%, #3a2f52 72%, #7a5468 100%); }
.panel--alps .l1 { fill: #2c3457; } .panel--alps .l2 { fill: #1f2745; } .panel--alps .l3 { fill: #141a30; } .panel--alps .l4 { fill: #0b0f1e; } .panel--alps .l5 { fill: #04060c; }

.panel--sea { background: linear-gradient(180deg, #0a1028 0%, #2b2a55 45%, #a45a4b 68%, #e08c5a 100%); }
.panel--sea .l2 { fill: #1a1f3a; } .panel--sea .ship { fill: #04060c; } .panel--sea .ship .mast { stroke: #04060c; stroke-width: 2; }
.panel--sea .wave { fill: none; stroke: rgba(255, 220, 180, 0.12); stroke-width: 1; animation: wave 6s ease-in-out infinite; animation-delay: var(--tw, 0s); }
@keyframes wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-30px); } }

.panel--desert { background: linear-gradient(180deg, #05070f 0%, #1a1636 45%, #4a2b3c 72%, #8a4b3a 100%); }
.panel--desert .l1 { fill: #6a3d3e; } .panel--desert .l2 { fill: #472a35; } .panel--desert .l3 { fill: #26172a; } .panel--desert .camp path { fill: #0b0812; }
.panel--desert .fire { animation: tw 1.6s ease-in-out infinite; }

.panel--city { background: linear-gradient(180deg, #03050c 0%, #0f1834 55%, #3a2c47 100%); }
.panel--city .l1 rect { fill: #1a2140; } .panel--city .l2 rect { fill: #10162c; } .panel--city .l3 rect { fill: #05070f; }
.panel--city .l1 .win { fill: #d8c9a0; opacity: 0.5; } .panel--city .l2 .win { opacity: 0.7; }

.panel--north { background: linear-gradient(180deg, #010409 0%, #06121f 50%, #0f2c40 100%); }
.panel--north .aurora { animation: aurora 9s ease-in-out infinite alternate; animation-delay: var(--tw, 0s); }
@keyframes aurora { from { transform: translateX(-40px) scaleY(1); opacity: 0.8; } to { transform: translateX(40px) scaleY(1.15); opacity: 1; } }
.panel--north .l1 { fill: #0b1c2a; } .panel--north .ice1 { fill: #cfe3ef; } .panel--north .ice2 { fill: #b6d2e3; } .panel--north .ice3 { fill: #9fc1d6; }
.panel--north .ice-reflect { fill: rgba(200, 230, 245, 0.12); }

.panel--events { background: linear-gradient(180deg, #06081a 0%, #1f1740 50%, #4a2a48 100%); }
.panel--events .l1 { fill: #1a1428; } .panel--events .l3 { fill: #07060f; } .panel--events .castle path { fill: #05040c; } .panel--events .castle .flag { fill: var(--gold); }
.panel--events .fw line { stroke: #ffd58a; stroke-width: 1; } .panel--events .fw circle { fill: #ffe6b0; }
.panel--events .fw { transform-origin: center; transform-box: fill-box; animation: burst 3.4s ease-out infinite; animation-delay: var(--tw, 0s); }
@keyframes burst { 0% { transform: scale(0.2); opacity: 0; } 15% { opacity: 1; } 60% { opacity: 0.9; } 100% { transform: scale(1.15); opacity: 0; } }

/* unpinned filmstrip (small screens, or reduced motion): a native horizontal scroller */
.film:not(.is-pinned) { padding: 6rem 0 3rem; }
.film:not(.is-pinned) .film__head { position: static; padding: 0 max(1.5rem, calc((100% - var(--container)) / 2)) 1.8rem; }
.film:not(.is-pinned) .film__track { overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.8rem; padding: 0 max(1.5rem, calc((100% - var(--container)) / 2)); scrollbar-width: none; }
.film:not(.is-pinned) .film__track::-webkit-scrollbar { display: none; }
.film:not(.is-pinned) .panel { flex: 0 0 min(86vw, 640px); height: 66vh; min-height: 440px; max-height: 620px; scroll-snap-align: start; border-radius: 6px; border-left: 0; }
.film:not(.is-pinned) .panel__body { left: 1.6rem; right: 1.6rem; bottom: 1.8rem; }
.film:not(.is-pinned) .film__foot { position: static; padding: 1.5rem max(1.5rem, calc((100% - var(--container)) / 2)) 0; }
.film:not(.is-pinned) .film__hint { display: none; }

/* =========================================================
   Chapter III — Routes
   ========================================================= */
.routes { background: var(--bg); }
.routes__map { margin: 3rem 0 1.4rem; border: 1px solid rgba(201, 169, 106, 0.16); border-radius: 6px; background: radial-gradient(ellipse 70% 60% at 50% 45%, #0f172c 0%, #070b14 75%); padding: 1rem; overflow-x: auto; }
#routes-svg { width: 100%; min-width: 760px; height: auto; display: block; }
.routes__grid line, .routes__grid ellipse { stroke: rgba(201, 169, 106, 0.07); fill: none; stroke-width: 1; }
.routes__star { fill: #fff; opacity: 0.5; animation: tw 3s ease-in-out infinite; animation-delay: var(--tw, 0s); }
.routes__arc { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.8; }
.routes__plane { fill: #fff; filter: drop-shadow(0 0 5px var(--gold)); opacity: 0; transition: opacity 0.3s; }
.routes__node { opacity: 0; }
.routes__dot { fill: var(--gold); }
.is-hub .routes__dot { fill: var(--ivory); }
.routes__halo { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.7; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.routes__label { fill: var(--ivory); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }
.routes__hub { fill: var(--gold); font-family: var(--sans); font-size: 8.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.routes__caption { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }

/* =========================================================
   Chapter IV — Technology
   ========================================================= */
.tech { background: var(--ivory); color: var(--ink); }
.tech .chapter__name { color: var(--muted-dark); }
.tech__head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: 3.5rem; }
.tech h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 300; margin: 0; }
.tech__intro { font-size: 1.08rem; color: var(--muted-dark); margin: 0; }
.tech__sub { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; margin: 5rem 0 1.6rem; }

/* --- demo --- */
.demo { margin: 1rem 0 2rem; }
.demo__label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.4rem; }
.demo__try { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.demo__text { color: var(--muted-dark); font-size: 0.95rem; }
.demo__replay { margin-left: auto; background: none; border: 1px solid var(--line-dark); color: var(--ink); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 0.55rem 1rem; border-radius: 2px; cursor: pointer; transition: border-color 0.3s; }
.demo__replay:hover { border-color: var(--gold); }
.demo__stage {
  display: grid; grid-template-columns: 300px 90px minmax(0, 1fr); align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: #0b1120 radial-gradient(ellipse 70% 70% at 50% 30%, rgba(201, 169, 106, 0.14), transparent 70%);
  border-radius: 12px; color: var(--ivory);
}
.device { position: relative; }
.device--phone { justify-self: center; }

.phone {
  width: 290px; height: 600px; border-radius: 44px; background: #0f1626; border: 8px solid #1c2334;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.phone__island { width: 88px; height: 24px; background: #000; border-radius: 20px; margin: 10px auto 0; flex: none; }
.phone__screen { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 6px 12px 12px; }
.app__bar { display: flex; gap: 10px; align-items: center; padding: 8px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.app__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--bg); font-family: var(--serif); font-weight: 600; font-size: 18px; display: grid; place-items: center; flex: none; }
.app__who { display: flex; flex-direction: column; line-height: 1.25; font-size: 10.5px; color: var(--muted); min-width: 0; }
.app__who strong { color: var(--ivory); font-size: 12.5px; font-weight: 500; }
.app__who > span { display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 5px; flex: none; }
.app__tabs { display: flex; gap: 6px; padding: 10px 0; }
.app__tabs button { flex: 1; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px; padding: 7px 4px; position: relative; cursor: pointer; transition: 0.3s; }
.app__tabs button.is-active { background: rgba(201, 169, 106, 0.16); color: var(--gold); border-color: rgba(201, 169, 106, 0.4); }
.badge { position: absolute; top: -5px; right: -3px; background: var(--gold); color: var(--bg); font-size: 9px; font-weight: 600; min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; font-style: normal; }
.app__views { flex: 1; min-height: 0; position: relative; }
.app__view { position: absolute; inset: 0; display: none; flex-direction: column; }
.app__view.is-active { display: flex; }
.chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; scrollbar-width: none; }
.chat::-webkit-scrollbar { display: none; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 12.3px; line-height: 1.45; animation: pop 0.45s var(--ease); position: relative; }
.msg p { margin: 0; }
.msg time { display: block; font-size: 9px; opacity: 0.5; margin-top: 4px; text-align: right; }
.msg--client { align-self: flex-end; background: rgba(201, 169, 106, 0.22); color: var(--ivory); border-bottom-right-radius: 4px; }
.msg--concierge { align-self: flex-start; background: rgba(255, 255, 255, 0.08); color: #e7e2d8; border-bottom-left-radius: 4px; }
.msg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg--typing span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); animation: blink 1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: 0.15s; } .msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.msg--card { align-self: stretch; max-width: 100%; padding: 0; background: none; }
.pcard { border: 1px solid rgba(201, 169, 106, 0.45); border-radius: 14px; padding: 12px 14px; background: linear-gradient(180deg, rgba(201, 169, 106, 0.14), rgba(201, 169, 106, 0.04)); transition: border-color 0.4s; }
.pcard__head { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.pcard__route { display: block; font-family: var(--serif); font-size: 21px; color: var(--ivory); margin: 4px 0 2px; font-weight: 500; }
.pcard__meta { display: block; font-size: 10.5px; color: var(--muted); }
.pcard__actions { display: flex; gap: 8px; margin-top: 11px; }
.pcard__approve, .pcard__changes { border-radius: 999px; padding: 8px 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: 0.3s; }
.pcard__approve { flex: 1.3; background: var(--gold); color: var(--bg); border: 0; }
.pcard__approve:hover { background: var(--gold-2); }
.pcard__changes { flex: 1; background: transparent; color: var(--ivory); border: 1px solid rgba(255, 255, 255, 0.2); }
.pcard__done { color: var(--ok); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.is-approved .pcard { border-color: rgba(75, 224, 165, 0.55); }
.composer { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.composer input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 9px 14px; color: var(--ivory); font: 300 12.3px var(--sans); outline: none; }
.composer input:focus { border-color: rgba(201, 169, 106, 0.6); }
.composer button { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--bg); border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer button svg { width: 16px; height: 16px; }
.app__h { font-family: var(--serif); font-size: 18px; color: var(--ivory); margin: 6px 0 8px; font-weight: 500; }
.trip, .docs { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: none; }
.trip li, .docs li { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 11.8px; color: #e7e2d8; }
.trip time { font-family: var(--serif); font-size: 15px; color: var(--gold); min-width: 40px; }
.trip span, .docs span { flex: 1; }
.chip { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; font-style: normal; font-weight: 600; white-space: nowrap; }
.chip--ok { background: rgba(75, 224, 165, 0.15); color: var(--ok); }
.chip--pending { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.chip--wait { background: rgba(201, 169, 106, 0.18); color: var(--gold); }
.is-new { animation: flash 1.8s var(--ease); }
@keyframes flash { 0% { background: rgba(201, 169, 106, 0.35); } 100% { background: transparent; } }
.demo__hint { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); white-space: nowrap; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }

.demo__link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(201, 169, 106, 0.55) 0 6px, transparent 6px 13px); align-self: center; }
.demo__pulse { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 14px var(--gold); opacity: 0; }
.is-to-console .demo__pulse { animation: toConsole 0.7s ease-in-out forwards; }
.is-to-phone .demo__pulse { animation: toPhone 0.7s ease-in-out forwards; }
@keyframes toConsole { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes toPhone { 0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }

.console { background: #fbf9f4; color: var(--ink); border-radius: 12px; box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5); overflow: hidden; position: relative; font-size: 12.3px; }
.console__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f0ebe1; border-bottom: 1px solid var(--line-dark); }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d8d2c6; display: inline-block; margin-right: 5px; }
.console__title { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }
.console__client { margin-left: auto; font-family: var(--serif); font-size: 14.5px; font-weight: 500; }
.console__body { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 400px; }
.console__thread { padding: 14px; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; min-width: 0; }
.console h5 { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; font-family: var(--sans); font-weight: 600; }
.thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 340px; scrollbar-width: thin; }
.trow { display: flex; gap: 10px; animation: pop 0.45s var(--ease); }
.trow i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--serif); font-style: normal; flex: none; }
.trow--client i { background: #e6dfd0; color: var(--ink); }
.trow--agent i { background: var(--navy); color: var(--gold); }
.trow b { display: block; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 2px; font-weight: 600; }
.trow p { margin: 0; line-height: 1.45; }
.trow--card p { border-left: 2px solid var(--gold); padding-left: 8px; font-family: var(--serif); font-size: 14px; }
.console__side { padding: 14px; }
.status { list-style: none; margin: 0 0 18px; padding: 0; }
.status li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--muted-dark); position: relative; transition: color 0.3s; }
.status li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #cfc7b8; background: #fff; flex: none; transition: 0.3s; }
.status li + li::before { content: ""; position: absolute; left: 4.5px; top: -8px; height: 14px; width: 1px; background: #e0d9cb; }
.status li.is-done { color: var(--ink); }
.status li.is-done i { background: #3fb98a; border-color: #3fb98a; }
.status li.is-active { color: var(--ink); font-weight: 500; }
.status li.is-active i { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.22); animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 2px rgba(201, 169, 106, 0.4); } 100% { box-shadow: 0 0 0 9px rgba(201, 169, 106, 0); } }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-dark); }
.tasks .chip--ok { background: rgba(63, 185, 138, 0.15); color: #2c8a64; }
.tasks .chip--wait { background: rgba(201, 169, 106, 0.22); color: #8a6a2c; }
.tasks .chip--pending { background: #ece6da; color: var(--muted-dark); }
.console__toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: var(--ivory); padding: 9px 16px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.04em; transition: 0.45s var(--ease); pointer-events: none; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.console__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- features --- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.features li { padding: 2.2rem 1.9rem 2.4rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background 0.4s; }
.features li:hover { background: rgba(201, 169, 106, 0.06); }
.features__num { font-family: var(--serif); color: var(--gold); font-size: 1rem; letter-spacing: 0.14em; }
.features__icon { width: 30px; height: 30px; color: var(--navy); display: block; margin: 1.2rem 0 1rem; }
.features h4 { font-size: 1.55rem; margin: 0 0 0.5rem; }
.features p { margin: 0; color: var(--muted-dark); font-size: 0.95rem; }

/* --- custom software --- */
.custom__head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.custom__head .tech__sub { margin-bottom: 0.4rem; }
.custom__head p { color: var(--muted-dark); margin: 0 0 0.6rem; max-width: 50ch; }
.custom__cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.custom__cards li { background: #fff; border: 1px solid var(--line-dark); border-radius: 6px; padding: 1.8rem 1.6rem 2rem; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s; }
.custom__cards li:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(20, 26, 42, 0.08); border-color: rgba(201, 169, 106, 0.5); }
.custom__cards svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1.2rem; }
.custom__cards h4 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.custom__cards p { margin: 0; color: var(--muted-dark); font-size: 0.93rem; }

/* --- build --- */
.build__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.build__steps li { position: relative; padding-top: 1.6rem; }
.build__steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: -2rem; height: 1px; background: var(--line-dark); }
.build__steps li:last-child::before { right: 0; }
.build__steps li i { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--ivory); }
.build__steps h4 { font-size: 1.45rem; margin: 0 0 0.4rem; }
.build__steps p { margin: 0; color: var(--muted-dark); font-size: 0.93rem; }
.build__foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }
.privacy { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink); max-width: 60ch; }
.privacy svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 0.15rem; }

/* =========================================================
   Chapter V — Method
   ========================================================= */
.method { background: var(--cream); color: var(--ink); }
.method .chapter__name { color: var(--muted-dark); }
.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
.steps li { border-top: 1px solid var(--gold); padding-top: 1.4rem; }
.steps__num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); letter-spacing: 0.14em; display: block; margin-bottom: 0.8rem; }
.steps h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; font-size: 0.95rem; color: var(--muted-dark); }

/* =========================================================
   Chapter VI — Contact
   ========================================================= */
.contact { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__info p { color: rgba(243, 238, 228, 0.7); max-width: 40ch; }
.contact__details { margin: 2.2rem 0 0; }
.contact__details dt { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-top: 1.3rem; }
.contact__details dd { margin: 0.25rem 0 0; }
.contact__details a { border-bottom: 1px solid var(--line); }
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243, 238, 228, 0.55); }
.form input, .form select, .form textarea {
  font: 300 1rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ivory);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(243, 238, 228, 0.16); border-radius: 2px; padding: 0.9rem 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: 0.9rem; color: var(--gold); min-height: 1.4em; }
.form__status.is-error { color: #e08a8a; }
.form .is-invalid { border-color: #e08a8a; }
.form .hp { display: none !important; }
.form button[disabled] { opacity: 0.6; cursor: wait; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #04060c; color: rgba(243, 238, 228, 0.65); padding: 3.5rem 0; border-top: 1px solid rgba(201, 169, 106, 0.12); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ivory); }
.footer__brand span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; }
.footer__links a:hover { color: var(--gold); }
.footer__legal { grid-column: 1 / -1; margin: 0; font-size: 0.78rem; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 1.5rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .demo__stage { grid-template-columns: 1fr; justify-items: center; gap: 1.4rem; }
  .demo__link { width: 2px; height: 56px; background: repeating-linear-gradient(180deg, rgba(201, 169, 106, 0.55) 0 6px, transparent 6px 13px); }
  .demo__pulse { left: 50%; top: 0; }
  .is-to-console .demo__pulse { animation-name: toConsoleV; }
  .is-to-phone .demo__pulse { animation-name: toPhoneV; }
  .device--console { width: 100%; max-width: 720px; }
  .demo__hint { bottom: -30px; }
}
@keyframes toConsoleV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes toPhoneV { 0% { top: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }

@media (max-width: 1024px) {
  .nav__links, .nav__portal { display: none; }
  .nav__toggle { display: flex; }
  .tech__head, .custom__head { grid-template-columns: 1fr; gap: 1.2rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .custom__cards, .build__steps { grid-template-columns: repeat(2, 1fr); }
  .build__steps li:nth-child(2n)::before { right: 0; }
  .panel { --pw: 80vw; }
}

@media (max-width: 960px) {
  .agency__grid, .contact__grid { grid-template-columns: 1fr; }
  .arrange { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .brand__name { font-size: 1.1rem; }
  .brand { gap: 0.55rem; }
  .nav__inner { gap: 1rem; }
  .nav__right { gap: 0.5rem; }
  .letterbox { height: calc(var(--lb) * 4vh); }
  .nav__enquire { display: none; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero__corner--right { display: none; }
  .features, .custom__cards, .build__steps, .steps, .form__row { grid-template-columns: 1fr; }
  .build__steps li::before { right: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .phone { width: 270px; height: 560px; }
  .console__body { grid-template-columns: 1fr; }
  .console__thread { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .thread { max-height: 240px; }
  .console__client { display: none; }
  .demo__replay { margin-left: 0; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  [data-reveal], [data-stagger] > *, .split .wi { opacity: 1; transform: none; }
  .grain { display: none; }
  .hero__eyebrow, .hero__lead, .hero__actions, .hero__corner { opacity: 1; transform: none; }
}
