:root {
  --bg: #000;
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.72);
  --faint: rgba(245, 245, 247, 0.48);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #00e5c0;
  --accent-ink: #04231d;
  --nav: 84px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #33f0d0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.preloader img { width: 88px; height: 88px; object-fit: contain; }
.preloader.off { opacity: 0; visibility: hidden; pointer-events: none; }
.sai-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
.sai-loader img { width: 56px; height: 56px; object-fit: contain; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 90; background: #fff; color: #000; padding: 8px 12px; }

/* —— Header (Figura layout, SAI color) —— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--nav) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.38);
  color: var(--ink);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-bottom: 1px solid rgba(0, 229, 192, 0.14);
  transition: background 0.4s ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  height: var(--nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  justify-self: start;
}
.logo img { width: 56px; height: 56px; object-fit: contain; }
.logo-sub {
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.95;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a,
.nav-cta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.nav-links a:hover,
.nav-cta:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a::after,
.nav-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after,
.nav-cta:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta { justify-self: end; color: var(--accent); }
.menu-btn {
  display: none;
  justify-self: end;
  width: 42px;
  height: 18px;
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
}
.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: 0.4s var(--ease);
}
.menu-btn span { top: 50%; opacity: 1; }
.menu-btn::before { top: 0; }
.menu-btn::after { bottom: 0; }
.menu-btn.is-open span { opacity: 0; }
.menu-btn.is-open::before { top: 50%; transform: rotate(45deg); }
.menu-btn.is-open::after { bottom: auto; top: 50%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  color: var(--ink);
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 48px;
  transform: translateY(-110%);
  transition: transform 0.8s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: clamp(36px, 9vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .fine {
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* —— Full-viewport chapters —— */
.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding-top: var(--nav);
}
.stage-hero {
  align-items: center;
  min-height: 100svh;
  padding-top: 0;
}
.stage-hero .stage-copy {
  padding-top: 0;
  padding-bottom: 6vh;
}
.stage-hero .stage-shade {
  background: linear-gradient(180deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.42) 38%, rgba(0,0,0,0.55) 100%);
}
.stage-mid { min-height: 88svh; }
.stage-end { min-height: 78svh; }
.stage-short { min-height: 52svh; }
.stage-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.stage-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.78) 100%);
}
.stage-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.stage-copy > * { margin: 0; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.stage h1, .page-hero h1 {
  font-size: clamp(36px, 6.5vw, 72px);
  line-height: 1.12;
  margin: 0;
}
.stage h2 {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.12;
  margin: 0;
}
.sub {
  max-width: 36rem;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 980px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600;
}
.btn:hover { background: #33f0d0; color: var(--accent-ink); }
.text-link {
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* —— Statement band —— */
.statement {
  padding: 120px 22px;
  text-align: center;
}
.statement p {
  max-width: 18em;
  margin: 0 auto;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

/* —— Split —— */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 78svh;
  background: #0a0a0a;
}
.split-media { min-height: 420px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 48px;
}
.split-copy h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
.split-copy p { color: var(--muted); max-width: 32rem; margin-bottom: 24px; }

/* —— Process —— */
.process { padding: 110px 0 120px; background: #050505; }
.process .inner { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.process h2 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 56px; }
.process ol { list-style: none; margin: 0; padding: 0; }
.process li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.process li span {
  font-size: 13px; letter-spacing: 0.12em; color: var(--accent); font-weight: 600;
  padding-top: 6px;
}
.process h3 { font-size: 28px; margin-bottom: 8px; }
.process p { color: var(--muted); margin: 0; max-width: 36rem; }

/* —— Inner pages —— */
.page-hero {
  padding: calc(var(--nav) + 72px) 22px 80px;
  max-width: 980px; margin: 0 auto;
}
.page-hero .inner, .cta-plain .inner { max-width: 720px; }
.page-hero .sub { margin-bottom: 0; }
.prose { padding: 72px 22px 120px; }
.prose .inner { max-width: 640px; margin: 0 auto; }
.prose h2 {
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 2.4rem 0 0.6rem; font-weight: 650;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 18px; }
.prose .btn { margin-top: 12px; }
.cta-plain { padding: 80px 22px 120px; text-align: center; }
.cta-plain h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 10px 0; outline: none; font-size: 16px;
  color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus { border-bottom-color: var(--accent); }

.dd { position: relative; }
.dd-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  color: var(--ink);
  font-size: 16px;
  text-align: left;
  min-height: 44px;
}
.dd-toggle:hover, .dd.open .dd-toggle { border-bottom-color: var(--accent); }
.dd-caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  margin-top: -4px;
  flex-shrink: 0;
  opacity: 0.85;
}
.dd.open .dd-caret { transform: rotate(225deg); margin-top: 4px; }
.dd-menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  margin: 0; padding: 6px;
  list-style: none;
  background: #0c0c0c;
  border: 1px solid rgba(0, 229, 192, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: none;
}
.dd.open .dd-menu { display: block; }
.dd-menu li {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
}
.dd-menu li:hover, .dd-menu li:focus {
  background: rgba(0, 229, 192, 0.1);
  color: var(--ink);
  outline: none;
}
.dd-menu li.is-on {
  color: var(--accent);
}
.dd-native {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }
.error { color: #ff8a8a; font-size: 13px; min-height: 1.2em; }
.fine { margin-top: 32px; font-size: 14px; color: var(--faint); }

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  font-size: 12px; color: var(--faint);
}
.foot .inner {
  max-width: 980px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.foot a { color: var(--faint); margin-left: 18px; }
.foot a:hover { color: var(--ink); }
.foot .inner > div { display: flex; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.stage:first-of-type .reveal { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav-links,
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-inner { grid-template-columns: 1fr auto; width: calc(100% - 32px); }
  .logo img { width: 48px; height: 48px; }
  .stage { min-height: 86svh; }
  .stage-mid { min-height: 72svh; }
  .stage-copy {
    padding: 0 20px calc(40px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }
  .stage h1, .page-hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.15; }
  .stage-hero .stage-copy { padding-top: 0; padding-bottom: 0; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-media { height: 48svh; min-height: 280px; }
  .split-copy { padding: 48px 20px 64px; }
  .process { padding: 72px 0 80px; }
  .process li { grid-template-columns: 48px 1fr; gap: 12px; }
  .process h3 { font-size: 22px; }
  .statement { padding: 80px 20px; }
  .page-hero { padding: calc(var(--nav) + 48px) 20px 48px; }
  .foot .inner { flex-direction: column; align-items: flex-start; }
  .foot a { margin-left: 0; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
