:root {
  --ink: #0c0c11;
  --ink-2: #14141c;
  --ink-3: #12121e;
  --paper: #f4f1ea;
  --paper-2: #e9e5db;
  --tx: #f5f5fb;
  --tx-dim: #a0a0b8;
  --tx-dark: #16161c;
  --tx-dark-dim: #5a5866;
  --cyan: #2ee6e0;
  --iris: #6d5efc;
  --iris-ink: #4f3fe0;
  --pink: #ff5ea8;
  --line-d: rgba(150, 150, 200, 0.15);
  --line-l: rgba(20, 18, 30, 0.12);
  --flow: linear-gradient(100deg, var(--cyan), var(--iris) 52%, var(--pink));
  --flow-ink: linear-gradient(100deg, #0fb5b0, var(--iris-ink) 52%, #e0367f);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cut: 62px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--tx);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap {
  --gutter: clamp(16px, 4vw, 40px);
  max-width: 1200px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grad { background: var(--flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-ink { background: var(--flow-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan); margin: 0 0 18px; }
.light .eyebrow { color: var(--iris-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  padding: 14px 16px 14px 24px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--iris); color: #fff; box-shadow: 0 12px 40px -12px rgba(109, 94, 252, 0.8); }
.btn-primary:hover { background: #5a4bff; box-shadow: 0 16px 50px -10px rgba(109, 94, 252, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--tx); border: 1px solid var(--line-d); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-ghost .arr { background: var(--iris); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .arr { background: var(--iris); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 80; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); }
.nav.scrolled { background: rgba(12, 12, 17, 0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line-d); }
.nav.on-light.scrolled { background: rgba(244, 241, 234, 0.82); border-bottom-color: var(--line-l); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; color: var(--tx); transition: color 0.2s; }
.brand .mark { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--tx-dim); transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a.act { color: var(--tx); }
.on-light .brand { color: var(--tx-dark); }
.on-light .nav-links a:not(.btn) { color: var(--tx-dark-dim); }
.on-light .nav-links a:not(.btn):hover, .on-light .nav-links a.act { color: var(--tx-dark); }
.nav-links { margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; margin-left: 18px; padding: 3px; border: 1px solid var(--line-d); border-radius: 100px; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 36px; padding: 6px 10px; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; color: var(--tx-dim); transition: color 0.2s, background 0.2s; }
.lang a:hover { color: var(--tx); }
.lang a[aria-current] { background: rgba(255, 255, 255, 0.1); color: var(--tx); }
.on-light .lang { border-color: var(--line-l); }
.on-light .lang a { color: var(--tx-dark-dim); }
.on-light .lang a:hover, .on-light .lang a[aria-current] { color: var(--tx-dark); }
.on-light .lang a[aria-current] { background: rgba(22, 22, 28, 0.08); }
.nav.menu-open .lang { border-color: var(--line-d); }
.nav.menu-open .lang a { color: var(--tx-dim); }
.nav.menu-open .lang a[aria-current] { background: rgba(255, 255, 255, 0.1); color: var(--tx); }
.burger { display: none; background: none; border: 0; color: var(--tx); cursor: pointer; padding: 8px; margin-right: -8px; }
.on-light .burger { color: var(--tx-dark); }

/* Scroll rail */
.rail { position: fixed; left: 22px; top: 0; height: 100vh; width: 14px; z-index: 60; pointer-events: none; }
.rail .track { position: absolute; left: 6px; top: 0; width: 2px; height: 100%; background: var(--line-d); }
.rail .fill { position: absolute; left: 5px; top: 0; width: 4px; height: 0; border-radius: 4px; background: linear-gradient(180deg, var(--cyan), var(--iris), var(--pink)); box-shadow: 0 0 16px rgba(109, 94, 252, 0.6); }
.rail .head { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 0 4px rgba(46, 230, 224, 0.25), 0 0 22px 4px var(--cyan); }

/* Hero */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
#flux { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; z-index: 1; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(46px, 9vw, 124px); letter-spacing: -0.045em; line-height: 0.98; }
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.reveal-line > span { display: block; }
.hero-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end; margin-top: 32px; }
.hero-row .sub { font-size: clamp(17px, 1.7vw, 21px); color: var(--tx-dim); max-width: 54ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.js .reveal-line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js .reveal-line + .reveal-line > span { transition-delay: 0.1s; }
.js .load-in { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease 0.45s, transform 0.8s var(--ease) 0.45s; }
.js .hero-row .load-in { transition-delay: 0.55s; }
.js .hero-row .load-in + .load-in { transition-delay: 0.7s; }
.js .stage.load-in { transition-delay: 0.85s; transform: translateY(40px) scale(0.98); }
.loaded .reveal-line > span, .loaded .load-in { opacity: 1; transform: none !important; }

/* Hero flow diagram */
.stage {
  margin: clamp(40px, 6vw, 72px) 0 0; position: relative;
  border: 1px solid var(--line-d); border-radius: 28px; padding: clamp(12px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.75), rgba(12, 12, 17, 0.55));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow-x: auto;
}
.stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px 220px at 50% 50%, rgba(109, 94, 252, 0.16), transparent 70%); pointer-events: none; }
.stage svg { display: block; width: 100%; min-width: 640px; height: auto; position: relative; }
.stage figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--tx-dim); font-size: 14.5px; padding: 14px 6px 0; position: relative; }

.src rect { fill: var(--ink-3); stroke: var(--line-d); stroke-width: 1.4; }
.src text, .dash text { font-family: var(--body); fill: var(--tx); font-size: 15px; font-weight: 600; }
.src .sub, .dash .muted { font-weight: 400; fill: var(--tx-dim); font-size: 12.5px; }
.pipe { fill: none; stroke: rgba(150, 150, 200, 0.24); stroke-width: 2; }
.pipe.out { stroke: url(#outg); stroke-width: 3; }
.dot.c { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.dot.i { fill: var(--iris); filter: drop-shadow(0 0 6px var(--iris)); }
.dot.p { fill: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }
.hub { fill: url(#hubg); filter: drop-shadow(0 0 24px rgba(109, 94, 252, 0.6)); }
.hub-label { fill: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; }
.ripple { fill: none; stroke: var(--iris); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 2.8s ease-out infinite; }
.ripple.b { animation-delay: 1.4s; stroke: var(--cyan); }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.9); opacity: 0; } }
.dash .panel { fill: var(--ink-3); stroke: var(--line-d); stroke-width: 1.4; }
.dash .bar { fill: var(--iris); transform-box: fill-box; transform-origin: bottom; }
.dash .bar.hi { fill: var(--pink); }
.dash .trend { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.loaded .dash .bar { animation: grow 1.2s var(--ease) both; }
.loaded .dash .trend { stroke-dashoffset: 420; animation: draw 1.6s 1.4s ease forwards; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Tool strip */
.strip { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); padding: 22px 0 calc(22px + var(--cut)); overflow: hidden; position: relative; margin-top: 64px; }
.strip .lbl { font-size: 13px; color: var(--tx-dim); text-align: center; margin-bottom: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--tx-dim); white-space: nowrap; opacity: 0.7; }
@keyframes slide { to { transform: translateX(calc(-50% - 27px)); } }

/* Sections */
.sec { padding: 130px 0; position: relative; }
.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(36px, 5.4vw, 72px); }
.sec-head p:not(.eyebrow) { margin-top: 20px; color: var(--tx-dim); font-size: 19px; max-width: 48ch; }
.light .sec-head p:not(.eyebrow) { color: var(--tx-dark-dim); }
.sec-head-2 { margin-top: 140px; }

.light { background: var(--paper); color: var(--tx-dark); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: 170px; }
.dark-cut { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: 190px; }

/* Services switcher */
.build { display: grid; grid-template-columns: 0.75fr 2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.build-list { display: flex; flex-direction: column; }
.b-item {
  position: relative; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-l);
  padding: 22px 4px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.02em;
  color: var(--tx-dark-dim); cursor: pointer; transition: color 0.25s; display: flex; gap: 16px; align-items: baseline;
}
.b-item:first-child { border-top: 1px solid var(--line-l); }
.b-item:hover { color: var(--tx-dark); }
.b-item .b-num { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--tx-dark-dim); }
.b-item .u { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--flow-ink); transition: width 0.4s var(--ease); }
.b-item[aria-selected="true"] { color: var(--tx-dark); }
.b-item[aria-selected="true"] .b-num { color: var(--iris-ink); }
.b-item[aria-selected="true"] .u { width: 100%; }

.b-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; animation: panel-in 0.5s var(--ease); }
.b-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.vframe { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-l); box-shadow: 0 30px 60px -30px rgba(22, 22, 28, 0.55); clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
.vframe svg { display: block; width: 100%; height: auto; }
.v-node rect { fill: var(--ink-3); }
.vframe text { font-family: var(--body); font-size: 12px; fill: #cfd0e6; text-anchor: middle; }
.vframe .v-sub { fill: #8a8aa0; font-size: 11px; }
.vframe .v-strong { fill: #fff; font-weight: 600; font-size: 13px; }
.vframe .v-big { fill: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; }
.v-check text { text-anchor: start; fill: #a0a0b8; }
.v-wire { fill: none; stroke: #6d5efc; stroke-width: 2; stroke-dasharray: 5 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.b-copy h3 { font-size: 28px; margin-bottom: 14px; }
.b-copy p { color: var(--tx-dark-dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: 100px; border: 1px solid var(--line-l); color: var(--tx-dark); background: rgba(255, 255, 255, 0.55); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-l); border-radius: 24px; overflow: hidden; background: #fbfaf6; }
.step { padding: 36px 30px; border-right: 1px solid var(--line-l); display: flex; flex-direction: column; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; background: var(--flow-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 26px; margin: 20px 0 10px; }
.step p { color: var(--tx-dark-dim); }
.step .len { margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 15px; }

/* Work */
.work { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.case {
  border: 1px solid var(--line-d); border-radius: 24px; padding: 32px;
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.6), rgba(12, 12, 17, 0.3));
  display: flex; flex-direction: column; gap: 14px; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.case:hover { border-color: rgba(109, 94, 252, 0.55); transform: translateY(-4px); }
.case.lead { grid-row: span 2; position: relative; overflow: hidden; background: linear-gradient(160deg, #1a1640, #120f2b 60%, #0c0c11); }
.case.lead::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(109, 94, 252, 0.45), transparent 65%); pointer-events: none; }
.case .who { font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: 0.03em; text-transform: uppercase; }
.case h3 { font-size: 26px; }
.case.lead h3 { font-size: clamp(30px, 3.4vw, 44px); max-width: 16ch; }
.case p { color: var(--tx-dim); }
.case .result { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-d); font-weight: 600; }
.case.lead .result { font-size: 19px; }

.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 22px; overflow: hidden; margin-bottom: 20px; }
.use { background: var(--ink); padding: 26px 26px 28px; transition: background 0.3s; }
.use:hover { background: #12121a; }
.use .k { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.use:hover .k { background: var(--flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.use p { color: var(--tx-dim); font-size: 15.5px; }

/* Calculator */
.sec#calculator { padding-top: 40px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-d); }
.calc-in { background: var(--ink-2); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 12px; }
.field output { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--cyan); min-width: 2ch; text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--iris)) 0 / var(--p) 100% no-repeat, rgba(150, 150, 200, 0.2); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(150, 150, 200, 0.2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--iris)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(109, 94, 252, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(109, 94, 252, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4); }
.calc-out { background: linear-gradient(140deg, #6d5efc, #8b5cf6 45%, #ff5ea8); color: #fff; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 92px); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-out .lbl { font-size: 18px; opacity: 0.92; margin-top: 8px; }
.calc-out .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-out .mid { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); font-variant-numeric: tabular-nums; }
.calc-out small { display: block; opacity: 0.85; font-size: 14.5px; line-height: 1.4; margin-top: 4px; }
.calc-out .btn { align-self: flex-start; }

/* CTA */
.fcta { position: relative; background: linear-gradient(140deg, #6d5efc, #8b5cf6 45%, #ff5ea8); color: #fff; clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding: 190px 0 130px; text-align: center; overflow: hidden; }
.fcta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 10%, rgba(46, 230, 224, 0.35), transparent 70%); pointer-events: none; }
.fcta .wrap { position: relative; }
.fcta h2 { font-size: clamp(42px, 7.6vw, 108px); letter-spacing: -0.045em; }
.fcta p { margin: 24px auto 34px; max-width: 46ch; font-size: 19px; color: rgba(255, 255, 255, 0.92); }
.fcta .mail { margin: 22px auto 0; font-size: 15px; opacity: 0.85; }

/* Footer */
footer { background: var(--ink); border-top: 1px solid var(--line-d); padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.foot-in .brand { margin-bottom: 14px; }
footer p { color: var(--tx-dim); font-size: 14.5px; max-width: 36ch; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tx-dim); margin: 0 0 14px; }
.foot-col a { display: block; color: #c7c8dc; font-size: 15px; margin-bottom: 10px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--tx-dim); font-size: 13px; }

/* Booking modal */
html.modal-open { overflow: hidden; }
.book {
  width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; margin: auto;
  color: var(--tx); background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 24px;
  box-shadow: 0 40px 120px -30px rgba(109, 94, 252, 0.45); overflow: auto; overscroll-behavior: contain;
}
.book[open] { animation: book-in 0.4s var(--ease); }
.book::backdrop { background: rgba(6, 6, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes book-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.book-form { padding: clamp(20px, 4vw, 32px); position: relative; }
.book-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--flow); }
.book-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.book-head .eyebrow { margin-bottom: 10px; }
.book-head h2 { font-size: clamp(26px, 4vw, 34px); }
.book-head h2:focus { outline: none; }
.book-x { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-d); color: var(--tx); cursor: pointer; transition: border-color 0.2s, transform 0.2s var(--ease); }
.book-x:hover { border-color: var(--pink); transform: rotate(90deg); }

.book-field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.book-field legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 10px; }
.book-field .tz { font-weight: 400; color: var(--tx-dim); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; scroll-snap-type: x proximity; }
.chips-days::-webkit-scrollbar { display: none; }
.chips-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.chip { position: relative; flex: none; scroll-snap-align: start; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 64px;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, 0.03);
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chip small { font-weight: 500; font-size: 12px; color: var(--tx-dim); }
.chip:hover span { border-color: rgba(109, 94, 252, 0.6); }
.chip input:checked + span { background: var(--iris); border-color: var(--iris); color: #fff; box-shadow: 0 10px 30px -10px rgba(109, 94, 252, 0.9); }
.chip input:checked + span small { color: rgba(255, 255, 255, 0.85); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.book-empty { color: var(--tx-dim); font-size: 15px; grid-column: 1 / -1; }

.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.book-input { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; font-weight: 600; font-size: 15px; }
.book-input em { font-style: normal; font-weight: 400; color: var(--tx-dim); }
.book-input input, .book-input textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--tx); background: var(--ink); width: 100%;
  border: 1px solid var(--line-d); border-radius: 12px; padding: 12px 14px; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s;
}
.book-input input:focus, .book-input textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.3); }
.book-err { color: var(--pink); font-size: 14px; min-height: 1.4em; margin-bottom: 6px; }
.book-actions { display: flex; justify-content: flex-end; }

.book-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--line-d); border-radius: 16px; background: var(--ink); }
.book-summary dt { color: var(--tx-dim); font-size: 14px; }
.book-summary dd { margin: 0; font-weight: 600; }
.book-lead { color: var(--tx-dim); }
.book-send { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.btn-even { padding: 14px 22px; }
.book-note { color: var(--tx-dim); font-size: 14px; }
.book-note strong { color: var(--tx); font-weight: 600; }
.book-back { margin-top: 18px; padding: 0; background: none; border: 0; color: var(--tx-dim); font: inherit; font-size: 15px; cursor: pointer; }
.book-back:hover { color: var(--tx); }

@media (max-width: 620px) {
  .book-row { grid-template-columns: 1fr; }
  .book-send .btn { flex: 1 1 auto; justify-content: center; }
  .book-actions .btn { width: 100%; justify-content: center; }
}

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive
   Tiers: XXL ≥2200 · XL ≥1600 · laptop ≤1180 · tablet ≤940 · phone ≤620 · small phone ≤360,
   plus short landscape screens, touch input and print. */

/* Large monitors (FHD and up) */
@media (min-width: 1600px) {
  body { font-size: 18px; }
  .wrap { max-width: 1360px; }
  .nav-in { height: 80px; }
  .brand { font-size: 25px; }
  .brand .mark { width: 31px; height: 31px; }
  .nav-links { gap: 34px; }
  .nav-links a:not(.btn) { font-size: 16px; }
  .lang a { font-size: 14px; min-width: 40px; padding: 7px 12px; }
  .btn { font-size: 17px; }
  .eyebrow { font-size: 15px; }
  .hero { padding-top: 170px; }
  .hero h1 { font-size: clamp(124px, 7.6vw, 150px); }
  .hero-row .sub { font-size: 22px; }
  .stage figcaption { font-size: 16px; }
  .strip .lbl { font-size: 14px; }
  .marquee span { font-size: 24px; }
  .sec { padding: 150px 0; }
  .sec-head { max-width: 1000px; }
  .sec-head h2 { font-size: clamp(72px, 4.6vw, 88px); }
  .sec-head p:not(.eyebrow) { font-size: 21px; }
  .b-item { font-size: 27px; }
  .b-copy h3 { font-size: 32px; }
  .tags span { font-size: 14px; }
  .step { padding: 42px 36px; }
  .step .n { font-size: 64px; }
  .step h3 { font-size: 30px; }
  .case { padding: 38px; }
  .case h3 { font-size: 30px; }
  .case.lead h3 { font-size: 52px; }
  .case.lead .result { font-size: 21px; }
  .use { padding: 30px 30px 32px; }
  .use .k { font-size: 22px; }
  .use p { font-size: 17px; }
  .field output { font-size: 24px; }
  .big { font-size: 108px; }
  .calc-out .mid { font-size: 40px; }
  .calc-out small { font-size: 16px; }
  .fcta h2 { font-size: clamp(108px, 6.8vw, 130px); }
  .fcta p { font-size: 21px; }
  footer p, .foot-col a { font-size: 16px; }
  .book { width: min(700px, calc(100% - 24px)); }
}

/* 2K, 4K and ultrawide */
@media (min-width: 2200px) {
  body { font-size: 20px; }
  .wrap { max-width: 1600px; }
  .nav-in { height: 92px; }
  .brand { font-size: 29px; }
  .brand .mark { width: 36px; height: 36px; }
  .nav-links { gap: 40px; }
  .nav-links a:not(.btn) { font-size: 18px; }
  .lang { margin-left: 24px; }
  .lang a { font-size: 16px; min-width: 46px; padding: 9px 14px; }
  .btn { font-size: 19px; padding: 17px 19px 17px 30px; }
  .btn-sm { padding: 13px 26px; }
  .btn .arr { width: 30px; height: 30px; }
  .eyebrow { font-size: 17px; }
  .hero { padding-top: 200px; }
  .hero h1 { font-size: clamp(150px, 7vw, 180px); }
  .hero-row .sub { font-size: 26px; }
  .stage { border-radius: 34px; }
  .stage figcaption { font-size: 18px; }
  .strip .lbl { font-size: 16px; }
  .marquee span { font-size: 28px; }
  .sec { padding: 180px 0; }
  .sec-head { max-width: 1240px; margin-bottom: 72px; }
  .sec-head h2 { font-size: clamp(88px, 4.4vw, 104px); }
  .sec-head p:not(.eyebrow) { font-size: 24px; }
  .b-item { font-size: 32px; padding: 28px 4px; }
  .b-item .b-num { font-size: 15px; }
  .b-copy h3 { font-size: 38px; }
  .tags span { font-size: 16px; padding: 8px 16px; }
  .step { padding: 50px 42px; }
  .step .n { font-size: 76px; }
  .step h3 { font-size: 34px; }
  .step .len { font-size: 18px; }
  .case { padding: 46px; border-radius: 30px; }
  .case .who { font-size: 15px; }
  .case h3 { font-size: 34px; }
  .case.lead h3 { font-size: 64px; }
  .case.lead .result { font-size: 24px; }
  .uses { border-radius: 28px; }
  .use { padding: 36px 36px 38px; }
  .use .k { font-size: 26px; }
  .use p { font-size: 19px; }
  .calc { border-radius: 34px; }
  .field output { font-size: 28px; }
  .big { font-size: 130px; }
  .calc-out .lbl { font-size: 21px; }
  .calc-out .mid { font-size: 46px; }
  .calc-out small { font-size: 18px; }
  .fcta h2 { font-size: clamp(130px, 6.6vw, 160px); }
  .fcta p { font-size: 24px; }
  footer p, .foot-col a { font-size: 18px; }
  .foot-col h4, .foot-bottom { font-size: 15px; }
  .rail { left: 32px; }
  .book { width: min(820px, calc(100% - 24px)); }
  .book-head h2 { font-size: 42px; }
  .chip span { font-size: 18px; padding: 12px 18px; }
  .chip small { font-size: 14px; }
  .chips-times { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
  .book-input { font-size: 18px; }
  .book-input input, .book-input textarea { font-size: 19px; padding: 15px 18px; }
}

/* Laptops and tablets in landscape */
@media (max-width: 1180px) {
  .b-panel { grid-template-columns: 1fr; }
}

/* Tablets in portrait and smaller: burger menu, stacked hero */
@media (max-width: 940px) {
  .rail { display: none; }
  .burger { display: block; }
  .lang { margin-left: auto; margin-right: 6px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px)) 20px max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
    background: rgba(12, 12, 17, 0.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-d);
    max-height: calc(100dvh - 72px); overflow-y: auto;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-d); font-size: 17px; color: var(--tx) !important; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav.menu-open { background: rgba(12, 12, 17, 0.96); }
  .nav.menu-open .brand, .nav.menu-open .burger { color: var(--tx); }
  .hero-row { grid-template-columns: 1fr; }
  .cta-row { justify-content: flex-start; }
  .build { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-l); }
  .step:last-child { border-bottom: 0; }
  .work { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .case.lead { grid-row: auto; }
  .calc { grid-template-columns: 1fr; }
}

/* Tablets in portrait: use the width instead of stacking everything */
@media (min-width: 621px) and (max-width: 940px) {
  .build-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .b-item:nth-child(2) { border-top: 1px solid var(--line-l); }
  .b-panel { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .b-copy h3 { font-size: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 30px 22px; border-bottom: 0; border-right: 1px solid var(--line-l); }
  .step:last-child { border-right: 0; }
  .step .n { font-size: 44px; }
  .step h3 { font-size: 22px; margin-top: 16px; }
  .step p { font-size: 15.5px; }
  .work { grid-template-columns: 1fr 1fr; }
  .case.lead { grid-column: 1 / -1; }
  .case.lead h3 { max-width: 20ch; }
}
@media (min-width: 760px) and (max-width: 940px) {
  .calc { grid-template-columns: 1fr 1fr; }
  .big { font-size: 64px; }
  .calc-out .row { grid-template-columns: 1fr; gap: 16px; }
}

/* Phones */
@media (max-width: 620px) {
  :root { --cut: 36px; }
  body { font-size: 16px; }
  .sec { padding: 88px 0; }
  .light { padding-top: 120px; }
  .dark-cut { padding-top: 130px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head-2 { margin-top: 96px; }
  .sec-head p:not(.eyebrow) { font-size: 17.5px; }
  .hero { padding-top: 120px; }
  .btn { padding: 13px 14px 13px 20px; }
  .b-item { padding: 18px 4px; }
  .case { padding: 26px; }
  .calc-out .row { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr; }
  .stage { overflow: visible; padding: 10px; border-radius: 20px; }
  .stage svg { min-width: 0; }
  .stage figcaption { font-size: 13.5px; }
  .fcta { padding: 130px 0 calc(96px + env(safe-area-inset-bottom, 0px)); }
  .foot-links { gap: 40px; }

  /* Booking modal becomes a bottom sheet */
  .book {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh;
    border-radius: 24px 24px 0 0; border-bottom: 0;
  }
  .book[open] { animation: sheet-in 0.4s var(--ease); }
  .book-form { padding-bottom: calc(clamp(20px, 4vw, 32px) + env(safe-area-inset-bottom, 0px)); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* Small phones (iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
  .wrap { --gutter: 14px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(36px, 13vw, 46px); }
  .cta-row .btn { width: 100%; justify-content: space-between; }
  .sec-head h2 { font-size: clamp(30px, 10.5vw, 36px); }
  .sec-head p:not(.eyebrow) { font-size: 16.5px; }
  .b-item { font-size: 19px; gap: 12px; }
  .b-copy h3 { font-size: 23px; }
  .step { padding: 26px 20px; }
  .step .n { font-size: 46px; }
  .step h3 { font-size: 23px; }
  .case, .use { padding: 22px 20px; }
  .case h3 { font-size: 23px; }
  .case.lead h3 { font-size: 28px; }
  .calc-in, .calc-out { padding: 22px 20px; }
  .big { font-size: 50px; }
  .fcta h2 { font-size: clamp(34px, 12vw, 42px); }
  .fcta p { font-size: 17px; }
  .foot-links { gap: 28px; }
  .chips-times { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .book-head h2 { font-size: 24px; }
}

/* Short landscape screens (phones turned sideways) */
@media (max-height: 500px) and (orientation: landscape) {
  html { scroll-padding-top: 64px; }
  .nav-in { height: 56px; }
  .nav-links { max-height: calc(100dvh - 56px); }
  .hero { padding-top: 92px; }
  .hero h1 { font-size: clamp(44px, 7vw, 72px); }
  .sec { padding: 80px 0; }
  .light, .dark-cut { padding-top: 120px; }
  .fcta { padding: 120px 0 80px; }
  .book { max-height: calc(100dvh - 16px); }
  .book-form { padding: 16px 24px; }
  .book-head { margin-bottom: 12px; }
  .book-head .eyebrow { display: none; }
  .book-head h2 { font-size: 22px; }
  .book-x { width: 34px; height: 34px; }
  .book-field { margin-bottom: 14px; }
  .chip span { padding: 7px 12px; }
}

/* Touch screens: no sticky hover states after a tap */
@media (hover: none) {
  html { -webkit-tap-highlight-color: transparent; }
  .lang a { min-height: 38px; min-width: 42px; }
  .btn:hover, .btn:hover .arr, .book-x:hover { transform: none; }
  .btn-primary:hover { background: var(--iris); box-shadow: 0 12px 40px -12px rgba(109, 94, 252, 0.8); }
  .btn-ghost:hover { border-color: var(--line-d); }
  .case:hover { transform: none; border-color: var(--line-d); }
  .use:hover { background: var(--ink); }
  .use:hover .k { background: none; color: inherit; }
  .chip:hover span { border-color: var(--line-d); }
  .btn:active, .chip span:active { transform: scale(0.97); }
}

/* Print: a clean, ink-friendly version */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .nav, .lang, .rail, #flux, .strip, .stage, .book, .burger, .cta-row, .calc, .vframe { display: none !important; }
  .js .reveal, .js .load-in, .js .reveal-line > span { opacity: 1 !important; transform: none !important; }
  .light, .dark-cut, .fcta { clip-path: none; margin-top: 0; }
  .hero, .sec, .light, .dark-cut, .fcta { padding: 24px 0; background: none; color: #111; }
  .hero::after, .fcta::before, .case.lead::before { display: none; }
  .grad, .grad-ink, .step .n { background: none; color: #4f3fe0; -webkit-text-fill-color: #4f3fe0; }
  .hero-row .sub, .sec-head p:not(.eyebrow), .case p, .use p, .b-copy p, .step p, footer p { color: #444; }
  .case, .use, .uses, .steps { background: none; border-color: #ccc; break-inside: avoid; }
  .case h3, .use .k, .b-copy h3 { color: #111; }
  .b-panel[hidden] { display: grid; margin-top: 16px; }
  .b-panel { animation: none; grid-template-columns: 1fr; }
  .fcta h2 { font-size: 32pt; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-weight: 400; }
  footer { background: none; border-color: #ccc; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .load-in, .js .reveal-line > span { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .ripple { display: none; }
}
