/* Layout: fixed 1440x810 stage over full-bleed video; every size in the cinema is calc(N * var(--s)).
   Below the cinema: an ordinary scrolling page in the same brand palette (deep teal + gold). */
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-500.woff2') format('woff2'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-300.woff2') format('woff2'); font-weight: 300; font-display: block; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-500.woff2') format('woff2'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-700.woff2') format('woff2'); font-weight: 700; font-display: block; }

:root {
  color-scheme: dark;
  --ink: #03161b;          /* night behind the mountain */
  --deep: #013c4a;         /* Reven teal */
  --panel: #062830;
  --paper: #f3eee3;
  --mute: rgba(243, 238, 227, 0.68);
  --faint: rgba(243, 238, 227, 0.42);
  --line: rgba(243, 238, 227, 0.14);
  --gold: #ddb66b;         /* Reven gold */
  --gold-hi: #f0d08e;
  --scrim: rgba(3, 22, 27, 0.66);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --s: min(calc(100vw / 1440), calc(100vh / 810));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[hidden] { display: none !important; }
html, body { height: 100%; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
html[data-mode="cinema"] { overflow: hidden; }
html[data-mode="cinema"] body { overflow: hidden; overscroll-behavior: none; touch-action: none; }

/* ---------- video layers ---------- */
.layers { position: fixed; inset: 0; background: #02090c center / cover no-repeat; overflow: hidden; }
.layers.is-ready { background-image: none !important; background: radial-gradient(ellipse at 50% 45%, #06222a, #01090c 70%); }
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pan, 50%) 50%;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--zoom-eff, 1));
  transition: object-position var(--pan-ms, 0ms) ease-in-out, transform var(--zoom-ms, 0ms) cubic-bezier(0.45, 0, 0.25, 1);
  opacity: 0; pointer-events: none;
}
.layer.is-under { opacity: 1; z-index: 1; }
.layer.is-front { opacity: 1; z-index: 2; }
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(3, 22, 27, 0.55), transparent 16%, transparent 80%, rgba(3, 22, 27, 0.55)),
    radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(3, 22, 27, 0.4));
}

/* ---------- stage ---------- */
.stage {
  position: fixed; left: 50%; top: 50%;
  width: calc(1440 * var(--s)); height: calc(810 * var(--s));
  transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
}
.stage a, .stage button { pointer-events: auto; }
.stage.chrome { z-index: 6; }
.menu-bg {
  position: fixed; left: 0; right: 0; top: 0; z-index: 5; pointer-events: none;
  height: calc((100vh - 810 * var(--s)) / 2 + 124 * var(--s));
  background: linear-gradient(to bottom, rgba(3, 22, 27, 0.94), rgba(3, 22, 27, 0.75) 70%, rgba(3, 22, 27, 0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
  opacity: 0; transition: opacity 0.35s;
}
html[data-scrolled="true"] .menu-bg { opacity: 1; }

/* ---------- shared chrome: declared once, never animated in/out ---------- */
.menu {
  position: absolute; left: calc(96 * var(--s)); right: calc(96 * var(--s)); top: calc(40 * var(--s));
  height: calc(44 * var(--s)); display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: calc(12 * var(--s)); color: var(--paper); text-decoration: none; }
.logo img { height: calc(26 * var(--s)); width: auto; display: block; }
.logo span { font-family: var(--display); font-weight: 500; font-size: calc(15 * var(--s)); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: calc(34 * var(--s)); }
.nav a {
  font-size: calc(13 * var(--s)); font-weight: 600; letter-spacing: 0.04em;
  color: var(--mute); text-decoration: none; transition: color 0.2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--paper); }
.nav .nav-cta {
  color: var(--ink); background: var(--gold);
  padding: calc(12 * var(--s)) calc(20 * var(--s)); border-radius: calc(999 * var(--s));
  transition: background 0.2s;
}
.nav .nav-cta:hover { background: var(--gold-hi); color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.counter {
  position: absolute; left: calc(96 * var(--s)); bottom: calc(52 * var(--s));
  display: flex; align-items: center; gap: calc(16 * var(--s));
  font-family: var(--display); font-size: calc(13 * var(--s)); letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
  transition: opacity 0.35s;
}
.counter-num { position: relative; display: inline-block; overflow: hidden; width: calc(26 * var(--s)); height: calc(20 * var(--s)); line-height: calc(20 * var(--s)); color: var(--gold); }
.cn { position: absolute; left: 0; top: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.cn.from-bottom { animation: cn-from-bottom 0.6s var(--ease); }
.cn.from-top { animation: cn-from-top 0.6s var(--ease); }
.cn.to-top { transform: translateY(-100%); opacity: 0; }
.cn.to-bottom { transform: translateY(100%); opacity: 0; }
@keyframes cn-from-bottom { from { transform: translateY(100%); opacity: 0; } }
@keyframes cn-from-top { from { transform: translateY(-100%); opacity: 0; } }
.counter-bar { display: block; height: 1px; background: var(--line); width: calc(120 * var(--s)); position: relative; }
.counter-bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--bar, 0) * var(--s)); background: var(--gold); transition: width 0.8s var(--ease); }
.counter-total { color: var(--faint); }
html[data-scene="0"] .counter { opacity: 0; }

.hint {
  position: absolute; right: calc(96 * var(--s)); bottom: calc(52 * var(--s));
  display: flex; align-items: center; gap: calc(12 * var(--s));
  font-size: calc(11 * var(--s)); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute);
  transition: opacity 0.4s;
}
.hint i { display: block; width: 1px; height: calc(28 * var(--s)); background: var(--line); position: relative; overflow: hidden; }
.hint i::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--gold); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { to { top: 100%; } }
html[data-state="transition"] .hint, html[data-scrolled="true"] .hint, html[data-scrolled="true"] .counter { opacity: 0; }

/* ---------- design blocks ---------- */
.block { position: absolute; display: flex; flex-direction: column; }
.block::before { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.b-left::before { left: calc(-260 * var(--s)); top: calc(-150 * var(--s)); bottom: calc(-150 * var(--s)); width: calc(900 * var(--s)); background: radial-gradient(ellipse at 36% 50%, var(--scrim), transparent 64%); }
.b-right::before { right: calc(-260 * var(--s)); top: calc(-150 * var(--s)); bottom: calc(-150 * var(--s)); width: calc(880 * var(--s)); background: radial-gradient(ellipse at 60% 50%, var(--scrim), transparent 64%); }

.eyebrow {
  display: flex; align-items: center; gap: calc(12 * var(--s));
  font-size: calc(12 * var(--s)); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow b { font-family: var(--display); font-weight: 500; letter-spacing: 0.06em; }
.eyebrow i { display: block; width: calc(32 * var(--s)); height: 1px; background: var(--gold); opacity: 0.6; }
.title { margin: calc(18 * var(--s)) 0 0; font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: calc(20 * var(--s)) 0 0; font-size: calc(16 * var(--s)); line-height: 1.65; color: var(--mute); }
.chips { list-style: none; margin: calc(26 * var(--s)) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: calc(8 * var(--s)); }
.chips li {
  font-size: calc(13 * var(--s)); font-weight: 600; color: var(--paper);
  padding: calc(8 * var(--s)) calc(14 * var(--s)); border: 1px solid rgba(221, 182, 107, 0.4); border-radius: calc(999 * var(--s));
  background: rgba(3, 22, 27, 0.35);
}
.cta {
  align-self: flex-start; margin-top: calc(32 * var(--s));
  display: inline-flex; align-items: center; gap: calc(10 * var(--s));
  font-size: calc(14 * var(--s)); font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); background: var(--gold); text-decoration: none;
  padding: calc(16 * var(--s)) calc(26 * var(--s)); border-radius: calc(999 * var(--s)); transition: background 0.2s;
}
.cta:hover { background: var(--gold-hi); }
.cta svg { width: calc(16 * var(--s)); height: calc(16 * var(--s)); }

/* hero on scene 0, under the logo */
.b0 { left: calc(270 * var(--s)); width: calc(900 * var(--s)); top: calc(548 * var(--s)); align-items: center; text-align: center; }
.b0::before { left: calc(-120 * var(--s)); right: calc(-120 * var(--s)); top: calc(-60 * var(--s)); bottom: calc(-120 * var(--s)); background: radial-gradient(ellipse at 50% 55%, rgba(3, 22, 27, 0.72), transparent 70%); }
.b0 .title { margin: 0; font-size: calc(34 * var(--s)); max-width: calc(860 * var(--s)); }
.b0 .lead { margin-top: calc(14 * var(--s)); font-size: calc(15 * var(--s)); max-width: calc(700 * var(--s)); }
.b0 .hero-row { display: flex; align-items: center; gap: calc(22 * var(--s)); margin-top: calc(22 * var(--s)); }
.b0 .cta { margin-top: 0; align-self: auto; }
.b0 .proof { font-size: calc(13 * var(--s)); color: var(--mute); }
.b0 .proof b { color: var(--gold); font-weight: 700; }

.b1 { left: calc(96 * var(--s)); top: calc(214 * var(--s)); width: calc(480 * var(--s)); }
.b1 .title { font-size: calc(46 * var(--s)); }
.b2 { left: calc(944 * var(--s)); top: calc(142 * var(--s)); width: calc(400 * var(--s)); }
.b2 .title { font-size: calc(46 * var(--s)); }
.b3 { left: calc(884 * var(--s)); top: calc(126 * var(--s)); width: calc(460 * var(--s)); }
.b3 .title { font-size: calc(40 * var(--s)); }

/* reveal: rise + fade + unblur, each element with its own delay */
.rv { opacity: 0; transform: translateY(calc(26 * var(--s))); filter: blur(8px); }
.block.is-in .rv { animation: rv-in 0.95s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes rv-in { to { opacity: 1; transform: none; filter: blur(0); } }
.block.is-out { animation: blk-out 0.35s ease-in forwards; }
.block.is-out .rv { opacity: 1; transform: none; filter: none; }
@keyframes blk-out { to { opacity: 0; transform: translateY(calc(-12 * var(--s))); filter: blur(6px); } }

/* ---------- below the cinema: ordinary scrolling page ---------- */
.cine-spacer { height: 100vh; }
.content { position: relative; z-index: 4; background: var(--ink); --gutter: clamp(20px, 5vw, 72px); }
.content::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; pointer-events: none; background: linear-gradient(to bottom, rgba(3, 22, 27, 0), var(--ink)); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.c-sec { padding-block: clamp(72px, 10vw, 140px); scroll-margin-top: 64px; }
.c-sec + .c-sec { border-top: 1px solid var(--line); }
.c-eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.c-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: 0.6; }
.c-h2 { margin: 18px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; }
.c-p { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: var(--mute); max-width: 62ch; }
.c-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 56px; }
.c-head .c-p { margin: 0; max-width: 46ch; }

/* stats */
.c-stats-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
.c-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 0; border-top: 1px solid var(--line); }
.c-stats > div { padding: 28px 24px 0 0; min-width: 0; }
.c-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.c-stats dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.c-stats dt { margin-top: 14px; font-size: 14px; color: var(--mute); }
.c-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.c-stats dt { margin-top: 14px; }

/* services */
.svc-group + .svc-group { margin-top: 72px; }
.svc-group-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.svc-group-head b { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--gold); }
.svc-group-head h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
  min-width: 0; padding: 26px 24px 22px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(1, 60, 74, 0.55), rgba(6, 40, 48, 0.35)); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.svc h4 { margin: 0; font-size: 18px; font-weight: 700; }
.svc > p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--mute); }
.svc details { margin-top: auto; padding-top: 16px; }
.svc summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: '+'; font-size: 16px; line-height: 1; transition: transform 0.2s; }
.svc details[open] summary::after { transform: rotate(45deg); }
.svc details p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--mute); }

/* about */
.c-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.values { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.values > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.values b { grid-row: span 2; font-family: var(--display); font-weight: 500; font-size: 13px; color: var(--gold); padding-top: 3px; }
.values h3 { margin: 0; font-size: 18px; font-weight: 700; }
.values p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mute); }

/* team */
.team-group + .team-group { margin-top: 48px; }
.team-group h3 { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.person { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(1, 60, 74, 0.25); }
.person .av { grid-row: span 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink); background: linear-gradient(145deg, var(--gold-hi), var(--gold)); }
.person h4 { margin: 0; font-size: 16px; font-weight: 700; }
.person p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mute); }
.person small { font-size: 12px; color: var(--gold); font-weight: 600; }
.join { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 14px; border: 1px dashed rgba(221, 182, 107, 0.45); }
.join p { margin: 0; font-size: 17px; font-weight: 600; }
.join a { color: var(--gold); font-weight: 700; text-decoration: none; }

.c-link { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 700; color: var(--gold); text-decoration: none; }
.c-link:hover { color: var(--gold-hi); }
/* team page: ordinary page, header fixed on top */
.page-plain .content::before { display: none; }
.page-plain .menu-bg { opacity: 1; }
.team-page { padding-top: clamp(120px, 14vw, 180px); border-top: 0; }
.nav a[aria-current="page"] { color: var(--paper); }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; font-size: 16px; line-height: 1.7; color: var(--mute); max-width: 70ch; }

/* contact */
.c-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contacts { margin: 32px 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contacts > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts dt { font-size: 14px; color: var(--mute); }
.contacts dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.contacts a { color: var(--paper); text-decoration: none; }
.contacts a:hover { color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.socials a { font-size: 13px; font-weight: 700; color: var(--paper); text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.c-form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: linear-gradient(160deg, rgba(1, 60, 74, 0.7), rgba(6, 40, 48, 0.5)); border: 1px solid var(--line); }
.f-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f-row label { font-size: 13px; font-weight: 600; color: var(--mute); }
.f-row input, .f-row textarea {
  font: inherit; font-size: 16px; color: var(--paper); background: rgba(3, 22, 27, 0.55);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; min-width: 0; resize: vertical;
}
.f-row input:focus, .f-row textarea:focus { outline: none; border-color: var(--gold); }
.f-row input::placeholder, .f-row textarea::placeholder { color: var(--faint); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.content .f-submit { margin-top: 4px; align-self: flex-start; border: 0; cursor: pointer; font-family: var(--body); font-size: 15px; padding: 16px 28px; gap: 10px; border-radius: 999px; }
.content .f-submit:disabled { opacity: 0.6; cursor: progress; }
.f-status { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); min-height: 1.6em; }
.f-status[data-kind="warn"] { color: var(--gold-hi); }
.f-status[data-kind="ok"] { color: var(--paper); }

.c-foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.c-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.c-foot .logo img { height: 24px; }
.c-foot .logo span { font-size: 14px; }
.c-foot-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.c-foot-nav a { font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none; }
.c-foot-nav a:hover { color: var(--gold); }
.c-foot-copy { font-size: 13px; color: var(--faint); }

.has-reveal .content [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.has-reveal .content [data-reveal].is-shown { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .c-about, .c-contact, .svc-grid, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .c-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .contacts > div { flex-direction: column; gap: 4px; }
  .contacts dd { text-align: left; }
}

/* ---------- boot / error message ---------- */
.boot { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 24px calc(10vh + env(safe-area-inset-bottom, 0px)); gap: 14px; text-align: center; pointer-events: none; }
.boot-label { font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute); }
.boot-line { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.boot-line::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--gold); animation: boot 1.4s ease-in-out infinite; }
@keyframes boot { from { left: -40%; } to { left: 100%; } }
.boot [data-msg] { margin: 0; max-width: 34em; font-size: 14px; line-height: 1.6; color: var(--paper); }
.boot.is-error { justify-content: center; background: rgba(3, 22, 27, 0.86); pointer-events: auto; }
.boot.is-error .boot-line { display: none; }
.boot:not(.is-error) [data-msg] { color: var(--faint); font-size: 12px; }

/* ---------- narrow portrait screens ---------- */
@media (max-aspect-ratio: 4/5) {
  :root { --s: calc(100vw / 480); }
  .layer { object-fit: contain; object-position: 50% 50%; }
  .layers.is-framed .layer {
    -webkit-mask-image: linear-gradient(to bottom, transparent var(--m0), #000 var(--m1), #000 var(--m2), transparent var(--m3));
    mask-image: linear-gradient(to bottom, transparent var(--m0), #000 var(--m1), #000 var(--m2), transparent var(--m3));
  }
  .layers:not(.is-ready) { background-size: 200% auto; background-position: 50% 32%; }
  .stage { width: 100vw; height: 100%; }
  .menu { left: calc(20 * var(--s)); right: calc(20 * var(--s)); top: calc(24 * var(--s) + env(safe-area-inset-top, 0px)); }
  .menu-bg { height: calc(92 * var(--s) + env(safe-area-inset-top, 0px)); }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { font-size: calc(14 * var(--s)); }
  .logo img { height: calc(30 * var(--s)); }
  .logo span { font-size: calc(17 * var(--s)); }
  .counter { left: calc(24 * var(--s)); bottom: calc(28 * var(--s) + env(safe-area-inset-bottom, 0px)); }
  .hint { right: calc(24 * var(--s)); bottom: calc(28 * var(--s) + env(safe-area-inset-bottom, 0px)); }
  .block, .b0, .b1, .b2, .b3 {
    left: calc(24 * var(--s)); right: calc(24 * var(--s)); width: auto; top: auto;
    bottom: calc(84 * var(--s) + env(safe-area-inset-bottom, 0px));
  }
  .block::before, .b0::before {
    left: calc(-24 * var(--s)); right: calc(-24 * var(--s)); width: auto; top: calc(-110 * var(--s)); bottom: calc(-84 * var(--s));
    background: linear-gradient(to top, rgba(3, 22, 27, 0.92), rgba(3, 22, 27, 0.55) 62%, transparent);
  }
  .b0 .title { font-size: calc(28 * var(--s)); }
  .b0 .hero-row { flex-direction: column; gap: calc(14 * var(--s)); }
  .b1 .title, .b2 .title { font-size: calc(36 * var(--s)); }
  .b3 .title { font-size: calc(30 * var(--s)); }
  .lead { font-size: calc(16 * var(--s)); }
  .chips li { font-size: calc(13 * var(--s)); }
}

@media (prefers-reduced-motion: reduce) {
  .rv { transform: none; filter: none; }
  .block.is-in .rv { animation: rv-fade 0.5s ease forwards; animation-delay: 0s; }
  @keyframes rv-fade { to { opacity: 1; } }
  .block.is-out { animation: rv-out-fade 0.35s ease forwards; }
  @keyframes rv-out-fade { to { opacity: 0; } }
  .cn.from-bottom, .cn.from-top { animation: none; }
  .cn { transition: opacity 0.3s; }
  .cn.to-top, .cn.to-bottom { transform: none; }
  .hint i::after, .boot-line::after { animation: none; }
  .layer { transition: none; }
  .has-reveal .content [data-reveal] { transform: none; transition: opacity 0.4s; }
}
