/* ---------- Tokens ---------- */
:root {
  --bg: #f8f7f5;
  --bg-alt: #f0edeb;
  --card: #ffffff;
  --ink: #16131a;
  --muted: #5d5963;
  --line: rgba(22, 19, 26, 0.12);
  --line-strong: rgba(22, 19, 26, 0.3);
  --brand: #e61f48;
  --accent: #dc1a43;
  --accent-soft: rgba(230, 31, 72, 0.12);
  --on-accent: #ffffff;
  --plan: rgba(22, 19, 26, 0.06);

  --f-display: "Outfit", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e12;
    --bg-alt: #17141a;
    --card: #1d1a21;
    --ink: #f3f0f2;
    --muted: #aaa3ad;
    --line: rgba(243, 240, 242, 0.11);
    --line-strong: rgba(243, 240, 242, 0.28);
    --accent: #ff4a6c;
    --accent-soft: rgba(255, 74, 108, 0.14);
    --on-accent: #ffffff;
    --plan: rgba(243, 240, 242, 0.06);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.35em;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 600 0.95rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn span { transition: transform 0.2s ease; }
.btn:hover span { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn-small { padding: 0.65em 1.1em; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand); }
.brand { height: 46px; width: auto; fill: currentColor; }

.nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--plan); }
.nav li:last-child { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.bars, .bars::before, .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav ul {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .nav ul.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 8px; font-size: 1.05rem; color: var(--ink); }
  .nav li:last-child { margin: 10px 0 0; }
  .nav .btn { width: 100%; justify-content: center; padding: 1em; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 9vw, 110px) clamp(56px, 8vw, 100px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.78rem/1 var(--f-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 28px;
}
@media (max-width: 440px) { .eyebrow { font-size: 0.66rem; letter-spacing: 0.02em; } }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft), 0 0 0 0 var(--accent); }
  70% { box-shadow: 0 0 0 10px transparent, 0 0 0 0 transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 13ch;
}
.hl { color: var(--brand); }

.lede {
  margin-top: 26px;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; padding: 0; margin: 38px 0 0;
  font-size: 0.92rem; color: var(--muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 8px 8px no-repeat;
  border: 1px solid var(--line-strong); border-radius: 3px;
}

/* Lot map */
.hero-visual { position: relative; }

.lotmap {
  --cols: 8;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 6px;
  aspect-ratio: 1;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--card);
  position: relative;
}
.lotmap::after {
  content: "LOT MAP · v1"; position: absolute; top: -10px; left: 22px;
  padding: 0 8px; background: var(--bg);
  font: 500 0.68rem/20px var(--f-mono); letter-spacing: 0.08em; color: var(--muted);
}

.lot {
  border-radius: 5px;
  background: var(--plan);
  border: 1px dashed var(--line-strong);
  transition: background 0.6s ease, border-color 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.lot.wip {
  background: var(--accent);
  border: 1px solid var(--accent);
  transform: scale(0.94);
}
.lot.done {
  background: var(--ink);
  border: 1px solid var(--ink);
}
.lot.span2 { grid-column: span 2; }
.lot.tall { grid-row: span 2; }

.lotmap-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center;
  margin-top: 16px;
  font: 400 0.75rem/1 var(--f-mono); color: var(--muted);
}
.lotmap-legend span { display: inline-flex; align-items: center; gap: 7px; }
.k { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.k-done { background: var(--ink); }
.k-wip { background: var(--accent); }
.k-plan { background: var(--plan); border: 1px dashed var(--line-strong); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 130px); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

.kicker {
  font: 500 0.8rem/1 var(--f-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.035em;
}

.section-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40em;
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  display: flex; flex-direction: column;
  padding: 30px 28px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.35);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 44px; }
.card-no {
  font: 500 0.8rem/1 var(--f-mono); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 8px;
}
.card-ico {
  width: 44px; height: 44px;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s ease;
}
.card:hover .card-ico { stroke: var(--accent); }
.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card > p { color: var(--muted); }

.ticks {
  list-style: none; padding: 20px 0 0; margin: auto 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
  font-size: 0.93rem;
}
.card > p + .ticks { margin-top: 24px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px;
  background: var(--accent); transform: translateY(-2px);
}

.card-feature { box-shadow: inset 0 3px 0 var(--accent); }
.card-feature:hover { box-shadow: inset 0 3px 0 var(--accent), 0 24px 50px -30px rgba(0, 0, 0, 0.35); }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  margin-top: 22px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--accent);
}
.card-link span { transition: transform 0.2s ease; }
.card-link:hover span { transform: translateX(4px); }

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .card-top { margin-bottom: 28px; }
}

/* ---------- References ---------- */
.refs { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.refs-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px clamp(32px, 6vw, 80px); align-items: end;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.refs-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.refs-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; }
.refs-head .section-sub { margin-top: 0; }
.refs + .section { padding-top: clamp(48px, 7vw, 88px); }
@media (max-width: 800px) { .refs-head { grid-template-columns: 1fr; } }

.ref-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ref-grid li {
  display: grid; place-items: center;
  min-height: 150px; padding: 24px 18px;
  background: var(--card);
}
.ref-grid img {
  height: var(--h, 48px); width: auto; max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.ref-grid li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@media (prefers-color-scheme: dark) {
  .ref-grid li { background: #f6f4f5; }
  .ref-grid img { opacity: 0.8; }
}
/* 7 logos: 4 + 3 on tablets, 2-2-2-1 on phones — the last one widens so no empty cells show */
@media (max-width: 1100px) {
  .ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ref-grid li:last-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid li { min-height: 120px; }
  .ref-grid img { height: calc(var(--h, 48px) * 0.8); }
}

/* ---------- AI ---------- */
.lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lane {
  display: flex; flex-direction: column;
  padding: 28px 28px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lane-tag {
  display: flex; gap: 10px; align-items: center;
  font: 500 0.8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 34px;
}
.lane-tag span { color: var(--muted); }
.lane h3 { font-size: 1.5rem; margin-bottom: 22px; }
.lane .ticks { margin-top: 0; }

.transform { margin-top: clamp(48px, 6vw, 72px); }
.transform-title { font-size: 1.35rem; margin-bottom: 22px; }
.transform-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  counter-reset: tstep;
}
.transform-steps li { padding: 22px 22px 0 0; counter-increment: tstep; }
.transform-steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.transform-steps li::before {
  content: counter(tstep, decimal-leading-zero) " →";
  display: block; margin-bottom: 12px;
  font: 500 0.75rem/1 var(--f-mono); color: var(--accent);
}
.transform-steps li:last-child::before { content: counter(tstep, decimal-leading-zero); }
.transform-steps strong { display: block; font: 600 1.25rem/1.2 var(--f-display); letter-spacing: -0.02em; margin-bottom: 8px; }
.transform-steps span { color: var(--muted); font-size: 0.95rem; }

.trust {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.trust > div {
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.trust h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.trust h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; }
.trust p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 960px) {
  .lanes, .trust { grid-template-columns: 1fr; }
  .lane-tag { margin-bottom: 20px; }
  .transform-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transform-steps li, .transform-steps li + li { padding: 22px 20px 22px 0; border-left: 0; }
  .transform-steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .transform-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .transform-steps { grid-template-columns: 1fr; }
  .transform-steps li, .transform-steps li + li, .transform-steps li:nth-child(even) { padding: 20px 0; border-left: 0; }
  .transform-steps li + li { border-top: 1px solid var(--line); }
}

/* ---------- Pills ---------- */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  font: 500 0.76rem/1 var(--f-mono); letter-spacing: 0.03em;
  padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted);
}

/* ---------- Fintech ---------- */
.fin-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.licences { margin-top: 30px; }
.licences li { color: var(--ink); }

.console {
  background: #0d0e0c;
  color: #e9e6de;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font: 400 0.78rem/1 var(--f-mono);
}
.console-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34332f; }
.console-bar span { margin-left: auto; color: #8d897f; font-size: 0.7rem; letter-spacing: 0.04em; }
.console-log {
  list-style: none; margin: 0; padding: 14px 16px 16px;
  height: calc(9 * 1.95em + 30px);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.console-log li {
  display: grid;
  grid-template-columns: 8ch 7ch minmax(0, 1fr) 11ch 9ch;
  gap: 1.4ch;
  line-height: 1.95;
  white-space: nowrap;
  animation: logIn 0.45s ease both;
}
.console-log li > span { overflow: hidden; text-overflow: ellipsis; }
.console-log .t { color: #6f6c64; }
.console-log .r, .console-log .a { color: #b9b5ab; }
.console-log .a { text-align: right; }
.console-log .s { color: #7fd18b; font-weight: 500; }
.console-log .s.warn { color: #ffb35c; }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); background: rgba(230, 31, 72, 0.14); } }
@media (max-width: 520px) {
  .console-log li { grid-template-columns: 8ch 7ch minmax(0, 1fr) 9ch; gap: 1ch; }
  .console-log .a { display: none; }
}

.fin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fin-cap { background: var(--card); padding: 28px 28px 32px; }
.fin-cap h3 { font-size: 1.22rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.fin-cap h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; transform: translateY(-1px); }
.fin-cap p { color: var(--muted); font-size: 0.95rem; }

.ops-band {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.ops-band .kicker { margin-bottom: 14px; }
.ops-band h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.ops-band p:not(.kicker) { color: var(--muted); }
.ops-list { margin: 0; padding: 0; border-top: 0; align-content: center; }

@media (max-width: 900px) {
  .fin-top, .ops-band { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fin-grid { grid-template-columns: 1fr; }
}

/* ---------- Unreal / cinematic ---------- */
.cine {
  --bg: #0c0a0d;
  --bg-alt: #151217;
  --card: #19161b;
  --ink: #efebe2;
  --muted: #a39e92;
  --line: rgba(239, 235, 226, 0.12);
  --line-strong: rgba(239, 235, 226, 0.28);
  --accent: #ff4a6c;
  --on-accent: #ffffff;
  background: var(--bg);
  color: var(--ink);
}
.cine-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.cine-head .section-sub { margin-top: 0; }
@media (max-width: 900px) { .cine-head { grid-template-columns: 1fr; } }

.viewport {
  position: relative;
  aspect-ratio: 2.39 / 1;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 100px -50px rgba(230, 31, 72, 0.45);
  isolation: isolate;
}
@media (max-width: 640px) { .viewport { aspect-ratio: 16 / 10; } }

.scene { position: absolute; inset: 0; animation: push 18s ease-in-out infinite alternate; transform-origin: 50% 65%; }
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 50%, rgba(0, 0, 0, 0.65));
}
@keyframes push { to { transform: scale(1.09) translateY(1.5%); } }

.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #05050c 0%, #120f26 32%, #3d1233 55%, #b3173f 68%, #ff5470 74%, #ffb3bf 75%);
}
.sun {
  position: absolute; left: 50%; top: 70%;
  width: 15%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3f5 0%, #ff9fb0 36%, #e61f48 62%, rgba(230, 31, 72, 0) 71%);
  box-shadow: 0 0 140px 50px rgba(230, 31, 72, 0.35);
}
.ridge { position: absolute; left: -4%; right: -4%; }
.ridge-far {
  bottom: 25%; height: 32%;
  background: linear-gradient(#35162c, #1a0d18);
  clip-path: polygon(0 100%, 0 62%, 7% 48%, 14% 57%, 23% 31%, 31% 50%, 40% 38%, 49% 60%, 57% 36%, 66% 49%, 75% 20%, 84% 45%, 92% 34%, 100% 52%, 100% 100%);
}
.ridge-near {
  bottom: 23%; height: 22%;
  background: #0d090c;
  clip-path: polygon(0 100%, 0 52%, 9% 70%, 17% 38%, 27% 62%, 37% 48%, 45% 72%, 54% 44%, 65% 66%, 73% 36%, 82% 60%, 91% 46%, 100% 64%, 100% 100%);
}
.floor {
  position: absolute; left: -60%; right: -60%; bottom: 0; height: 24%;
  background-color: #0a0708;
  background-image:
    linear-gradient(rgba(255, 74, 108, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 74, 108, 0.38) 1px, transparent 1px);
  background-size: 44px 44px;
  transform-origin: 50% 0;
  transform: perspective(200px) rotateX(58deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
  animation: dolly 2.6s linear infinite;
}
@keyframes dolly { to { background-position: 0 44px, 0 0; } }
.fog {
  position: absolute; left: 0; right: 0; bottom: 16%; height: 18%;
  background: linear-gradient(transparent, rgba(255, 90, 120, 0.16), transparent);
}

.vp-ui {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.vp-ui > span { position: absolute; }
.vp-rec { top: 16px; left: 18px; display: flex; align-items: center; gap: 7px; }
.vp-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.vp-tr { top: 16px; right: 18px; }
.vp-tc { bottom: 16px; left: 18px; font-variant-numeric: tabular-nums; }
.vp-br { bottom: 16px; right: 18px; }
.vp-guides {
  --c: rgba(255, 255, 255, 0.5);
  inset: 14% 9%;
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 18px,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 18px,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}
@media (max-width: 520px) {
  .vp-ui { font-size: 0.6rem; }
  .vp-rec, .vp-tr { top: 11px; }
  .vp-tc, .vp-br { bottom: 11px; }
  .vp-rec, .vp-tc { left: 12px; }
  .vp-tr, .vp-br { right: 12px; }
}

/* three.js viewport + sequencer timeline */
.vp-canvas {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1s ease;
}
.viewport.is-3d .vp-canvas { opacity: 1; }
.viewport.is-3d .scene, .viewport.is-3d .scene * { animation-play-state: paused; }

.seq { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.seq-play {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.seq-play:hover { border-color: var(--accent); color: var(--accent); }
.i-pause { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.seq-play.paused .i-pause {
  width: 0; height: 0; border: 0; margin-left: 3px;
  border-left: 11px solid currentColor; border-block: 7px solid transparent;
}
.seq-track {
  position: relative; flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  height: 40px; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none;
}
.seq-clip {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 0 12px;
  font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.04em; text-align: left;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line); border-radius: 6px;
  cursor: inherit; overflow: hidden; white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.seq-clip span { color: var(--ink); }
.seq-clip em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.seq-clip.active { color: var(--ink); background: rgba(230, 31, 72, 0.16); border-color: rgba(255, 74, 108, 0.55); }
.seq-head {
  position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px;
  transform: translateX(-1px);
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  pointer-events: none;
}
.seq-head::before {
  content: ""; position: absolute; top: -3px; left: 50%;
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%) rotate(45deg);
}
.seq-note { margin-top: 12px; font: 400 0.74rem/1.5 var(--f-mono); color: var(--muted); }
@media (max-width: 520px) {
  .seq-clip { justify-content: center; padding: 0 6px; }
  .seq-clip em { display: none; }
}

.cine-grid { margin-top: clamp(40px, 5vw, 56px); }
.cine-no { display: block; margin-bottom: 14px; font: 500 0.78rem/1 var(--f-mono); color: var(--accent); }
.cine-tools { margin-top: 40px; }

/* Approach */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.step {
  padding: 28px 22px 8px 0;
  position: relative;
  display: flex; flex-direction: column;
}
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 2px; background: var(--ink);
}
.step:last-child::before { background: var(--accent); }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step + .step::before { left: 22px; }
.step-no { font: 500 0.8rem/1 var(--f-mono); color: var(--muted); margin-bottom: 20px; }
.step h3 { font-size: 1.4rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .step-out {
  margin-top: auto; padding-top: 22px;
  color: var(--ink); font-size: 0.9rem; font-weight: 500;
}
.step-out span {
  display: block; margin-bottom: 4px;
  font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 4px; }
  .step, .step + .step { padding: 0 0 36px 28px; border-left: 0; }
  .step::before, .step + .step::before { top: 4px; left: -5px; }
  .step-no { margin-bottom: 10px; }
  .step .step-out { padding-top: 14px; }
  .step:last-child { padding-bottom: 0; }
}

/* Delivery / split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.split > div:first-child .btn { margin-top: 32px; }

@media (min-width: 901px) {
  .split > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.board-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  padding: 24px 28px;
  align-items: baseline;
}
.board-row + .board-row { border-top: 1px solid var(--line); }
.board-row h3 {
  font-size: 1.12rem; display: flex; align-items: center; gap: 12px;
}
.board-row h3::before {
  content: ""; width: 10px; height: 10px; flex: none; border-radius: 2px;
  background: var(--accent);
}
.board-row p { color: var(--muted); font-size: 0.97rem; }

@media (max-width: 620px) {
  .board-row { grid-template-columns: 1fr; padding: 22px 22px; }
  .board-row p { padding-left: 22px; }
}

/* Stack marquee */
.stack {
  padding-block: 34px 40px;
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee-track span {
  font: 600 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--f-display);
  letter-spacing: -0.03em;
  padding-inline: 0.7em;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 1.4em;
}
.marquee-track span::before {
  content: ""; flex: none; width: 0.26em; height: 0.26em; border-radius: 2px; background: var(--accent);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stack-note {
  margin-top: 18px; text-align: center;
  font: 400 0.8rem/1.5 var(--f-mono); color: var(--muted);
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.principle { padding: 28px 24px 0 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
.principle h3 { font-size: 1.3rem; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle, .principle + .principle { padding: 26px 20px 26px 0; border-left: 0; }
  .principle:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle, .principle:nth-child(even) { padding: 24px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font: 600 1.15rem/1.35 var(--f-display);
  letter-spacing: -0.015em;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font: 400 1.2rem/1 var(--f-body);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq summary:hover::after { border-color: var(--ink); }
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.faq details p { color: var(--muted); padding: 0 52px 24px 0; }

/* Contact */
.contact {
  background: var(--brand);
  color: #ffffff;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.84);
  --line-strong: rgba(255, 255, 255, 0.5);
  --accent: #ffffff;
}
.contact .kicker { color: rgba(255, 255, 255, 0.85); }
.contact h2 { max-width: 16ch; }

/* Bracket frame, echoing the logo */
.contact-frame {
  position: relative;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 80px);
}
.contact-frame::before, .contact-frame::after {
  content: ""; position: absolute; pointer-events: none;
  border: 0 solid #ffffff;
}
.contact-frame::before {
  top: 0; right: 0; left: 28%; bottom: 14%;
  border-top-width: clamp(6px, 1vw, 12px); border-right-width: clamp(6px, 1vw, 12px);
}
.contact-frame::after {
  bottom: 0; left: 0; right: 30%; top: 14%;
  border-bottom-width: clamp(6px, 1vw, 12px); border-left-width: clamp(6px, 1vw, 12px);
}

.contact-mail {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 36px;
  font: 700 clamp(1.6rem, 5vw, 3.4rem)/1.1 var(--f-display);
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(#fff, #fff) 0 100% / 0 3px no-repeat;
  transition: background-size 0.3s ease;
}
.contact-mail span { font-weight: 500; transition: transform 0.2s ease; }
.contact-mail:hover { background-size: 100% 3px; }
.contact-mail:hover span { transform: translateX(6px); }

.btn-invert { background: #ffffff; border-color: #ffffff; color: var(--brand); }
.btn-invert:hover { background: #16131a; border-color: #16131a; color: #ffffff; }

/* Footer */
.site-footer {
  --bg: #f3f0f2; --ink: #100e12;
  background: var(--ink); color: var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  padding-block: 36px;
}
.site-footer .brand { height: 40px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  font-size: 0.9rem;
}
.footer-inner p { color: color-mix(in srgb, var(--bg) 62%, var(--ink)); }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--accent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
