:root {
  --bg: #f3f4f6;
  --bg-2: #eceef2;
  --ink: #111318;
  --muted: #5c6370;
  --line: rgba(17, 19, 24, 0.1);
  --surface: rgba(255, 255, 255, 0.78);
  --accent: #0e7490;
  --accent-2: #334155;
  --glow: rgba(14, 116, 144, 0.16);
  --shadow: 0 30px 80px rgba(17, 19, 24, 0.08);
  --radius: 2px;
  --header: 64px;
  --announce: 44px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #071018;
  --bg-2: #0c1824;
  --ink: #e8eef6;
  --muted: #9aadc2;
  --line: rgba(232, 238, 246, 0.12);
  --surface: rgba(10, 22, 34, 0.72);
  --accent: #2dd4bf;
  --accent-2: #93c5fd;
  --glow: rgba(45, 212, 191, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { overflow-x: clip; overflow-y: scroll; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 18px;
}

h1 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.page-hero h1 { max-width: 20ch; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.86; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

.announce {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--announce);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 22px;
  background: #071018;
  color: #e8eef6;
  font-size: 13px;
}
.announce a { color: inherit; text-decoration: none; }
.announce-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.announce-close {
  width: 32px; height: 32px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 22px;
}
.announce.is-off { display: none; }

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.lang-btn small { opacity: 0.6; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.lang-menu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 10px;
}
.lang-menu a[aria-current="true"], .lang-menu a:hover { background: var(--bg-2); }

.binary-rail {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  opacity: 0.45;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.binary-rail span { display: inline-block; padding-right: 48px; animation: drift 28s linear infinite; }

.has-announce .header { top: var(--announce); }
.has-announce .mask-sticky { top: calc(var(--announce) + 70px); height: calc(100vh - var(--announce) - 70px); }
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
  padding: 0 22px;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand {
  width: 108px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #071018;
  display: grid;
  place-items: center;
}
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 14px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 13px; opacity: 0.72; }
.nav a.is-on, .nav a:hover { opacity: 1; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn, .menu-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.menu-btn { display: none; }
.menu-btn i { display: block; height: 1px; margin: 5px 11px; background: var(--ink); }
.theme-btn span::before { content: "◐"; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 18vh 8vw 14vh;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 42rem; }
.hero-copy p { max-width: 36rem; color: var(--muted); font-size: 19px; line-height: 1.55; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 32px 0 0; }
.scroll-cue {
  position: absolute;
  right: 8vw;
  bottom: 8vh;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.voyage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 340vh;
  background: #07090d;
  color: #e8eaee;
}
.voyage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.voyage-sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.voyage-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.voyage-hud {
  position: relative;
  z-index: 3;
  height: 100%;
  pointer-events: none;
}
.voyage-hud .kicker {
  position: absolute;
  left: 8vw;
  bottom: calc(12vh + 7.5rem);
  color: rgba(244,241,234,.5);
}
.voyage-hud p {
  position: absolute;
  left: 8vw;
  bottom: 12vh;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 500;
  opacity: 0;
  width: min(28rem, 84vw);
}
.assemble-labels {
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 7vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,234,238,0.65);
}
.home {
  background: #07090d;
}
.home .header {
  background: rgba(7, 9, 13, 0.78);
}

.chapter {
  width: 100%;
  padding: 16vh 8vw;
}
.chapter-copy { max-width: 42rem; }
.chapter-copy p { color: var(--muted); }
.chapter-media {
  width: 100vw;
  margin: 8vh 0 8vh calc(50% - 50vw);
}
.chapter-media img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
}

.service-block, .about-band, .partners, .page-hero, .page-split, .page-structure, .contact-grid, .refs-wrap {
  width: min(1120px, calc(100% - 8vw));
  margin: 0 auto;
  padding: 72px 0;
}
.chapter .refs-wrap, .chapter .structure {
  width: 100%;
  max-width: none;
  padding: 48px 0 0;
}
.service-block {
  display: grid;
  gap: 28px;
  border-top: 1px solid var(--line);
}
.service-intro p, .about-band p { color: var(--muted); max-width: 640px; }
.service-media img, .page-split img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
}
.about-band img {
  width: 100%;
  height: 64vh;
  object-fit: cover;
}
.structure ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.structure li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}
.structure li strong { display: block; font-family: var(--display); margin-bottom: 6px; }
.structure li span { color: var(--muted); font-size: 15px; }

.refs-wrap h3, .refs-wrap h2 { margin-bottom: 18px; }
.refs-track { display: grid; gap: 12px; }
.refs.is-rail .refs-track {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.refs.is-grid .refs-track { grid-template-columns: repeat(2, 1fr); }
.ref-card { min-width: 0; scroll-snap-align: start; }
.ref-visual {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  background: #0b1520;
}
.ref-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ref-card:hover img { transform: scale(1.04); }
.ref-card p { margin: 10px 0 0; font-size: 14px; }

.partners { border-top: 1px solid var(--line); }
.partner-rail { overflow: hidden; margin-top: 22px; }
.partner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  gap: 12px;
  animation: drift 36s linear infinite;
  width: max-content;
}
.partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  background: var(--surface);
}
.partner-card img { height: 28px; width: auto; }
.partner-card .mono {
  font-family: var(--mono);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
}

.about-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.page-hero { padding-top: 56px; }
.page-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.lead { font-size: 20px; color: var(--muted); }
.points { padding-left: 18px; color: var(--muted); }
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.form label { display: grid; gap: 6px; font-size: 13px; }
.form .full, .form .check, .form .btn { grid-column: 1 / -1; }
.form input, .form textarea, .form select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.mail { font-family: var(--mono); text-decoration: none; }
.legal-body { max-width: 720px; color: var(--muted); }
.flash-bar {
  margin: 0;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
}

.footer { border-top: 1px solid var(--line); padding: 48px 22px 24px; }
.footer-top {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.footer-top a, .footer-top p { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.footer-logo { width: 92px; background: #071018; padding: 8px; border-radius: 12px; margin-bottom: 12px; }
.footer-bin {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.45;
  text-align: center;
}

.cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  z-index: 60;
}
.cookie p { margin: 0 0 12px; font-size: 14px; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 960px) {
  .refs.is-rail .refs-track { grid-auto-columns: calc((100% - 48px) / 5); }
  .refs.is-grid .refs-track { grid-template-columns: repeat(5, 1fr); }
  .partner-track { grid-auto-columns: calc((100% - 48px) / 5); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 12px; right: 12px; top: calc(100% + 8px);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
  }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; }
  .structure ol, .about-band, .page-split, .footer-top, .form { grid-template-columns: 1fr; }
  .header { flex-wrap: wrap; }
}

.chapter.about-band,
.chapter.contact-band {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 8vw;
}
.chapter.about-band { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.chapter.contact-band { grid-template-columns: 1fr; }
.partners {
  width: 100%;
  max-width: none;
  padding: 10vh 8vw;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partner-track { animation: none; }
  .voyage { height: 100vh; }
}
