/* =========================================================================
   RBI Automation — design system
   Navy + cyan on a near-black canvas, glass surfaces, light-weight geometric
   headings. Dark is the default; light is a genuine second theme, not an
   inversion. Every animation is opt-out via prefers-reduced-motion.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  --brand-navy: #173a5e;
  --brand-cyan: #2ad3e8;

  /* One family for everything — the same Golos Text the company's commercial
     estimates are set in. Two tokens are kept so headings could diverge later,
     but today they are deliberately identical. */
  --font-head: Golos, "Segoe UI", system-ui, sans-serif;
  --font-body: Golos, "Segoe UI", system-ui, -apple-system, sans-serif;

  --shell: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(.98rem, .95rem + .18vw, 1.06rem);
  --step-1:  clamp(1.12rem, 1.05rem + .35vw, 1.32rem);
  --step-2:  clamp(1.4rem, 1.25rem + .7vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-5:  clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);

  --ease: cubic-bezier(.22, .68, .32, 1);
  --dur: .5s;
}

[data-theme="dark"] {
  --bg: #05080d;
  --bg-2: #080e17;
  --bg-3: #0b1320;
  --surface: rgba(255, 255, 255, .038);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);
  --text: #eef3f9;
  --text-dim: rgba(238, 243, 249, .64);
  --text-faint: rgba(238, 243, 249, .40);
  --accent: #48ddef;
  --accent-vivid: #2ad3e8;
  --accent-soft: rgba(42, 211, 232, .13);
  --accent-line: rgba(42, 211, 232, .3);
  --on-accent: #04222a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --scene-glow: #ffd39a;
  --scene-floor: rgba(255, 255, 255, .022);
  --logo-dark: block;
  --logo-light: none;
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --bg-3: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --border: rgba(23, 58, 94, .13);
  --border-strong: rgba(23, 58, 94, .26);
  --text: #0c1b2a;
  --text-dim: rgba(12, 27, 42, .68);
  --text-faint: rgba(12, 27, 42, .46);
  --accent: #0a7f92;
  --accent-vivid: #12a8c0;
  --accent-soft: rgba(18, 168, 192, .1);
  --accent-line: rgba(18, 168, 192, .32);
  --on-accent: #ffffff;
  --shadow: 0 18px 44px -22px rgba(15, 40, 70, .35);
  --scene-glow: #f5b455;
  --scene-floor: rgba(23, 58, 94, .035);
  --logo-dark: none;
  --logo-light: block;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-vivid); color: var(--on-accent);
  padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ typography */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.h1, h1 { font-size: var(--step-4); }
.h2, h2 { font-size: var(--step-3); }
.h3, h3 { font-size: var(--step-2); }
.h4, h4 { font-size: var(--step-1); }

.display { font-size: var(--step-5); font-weight: 500; }

.lead {
  font-size: var(--step-1);
  color: var(--text-dim);
  line-height: 1.55;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent-line);
}

p + p { margin-top: 1em; }
.muted { color: var(--text-dim); }
.accent { color: var(--accent); }

/* ---------------------------------------------------------------- layout */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-2); }
.section--alt-3 { background: var(--bg-3); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-top: 1rem; }
.section__head h2 { margin-top: .8rem; }

.grid { display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.stack > * + * { margin-top: 1.1rem; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--accent-vivid);
  --btn-fg: var(--on-accent);
  --btn-bd: transparent;
  box-shadow: 0 8px 26px -10px var(--accent-vivid);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px var(--accent-vivid); }

.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); border-color: var(--accent-line); }

.btn--sm { padding: .6rem 1.05rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
.is-sending .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
/* Surface appears only after scrolling, so the header never cuts a bar across
   the hero. app.js toggles .is-stuck past 8px. */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: auto; height: 40px; }
.brand__mark--dark { display: var(--logo-dark); }
.brand__mark--light { display: var(--logo-light); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .01em; }
.brand__sub { font-size: .7rem; color: var(--text-faint); letter-spacing: .07em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; }
.site-nav__list a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  font-size: .92rem; color: var(--text-dim);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav__list a:hover { color: var(--text); background: var(--surface); }
.site-nav__list a[aria-current="page"] { color: var(--accent); }

.site-nav__tools { display: flex; align-items: center; gap: .6rem; }

.lang-switch { display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lang-switch__item {
  padding: .28rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
  letter-spacing: .05em; color: var(--text-faint); transition: all .2s var(--ease);
}
.lang-switch__item:hover { color: var(--text); }
.lang-switch__item.is-active { background: var(--accent-vivid); color: var(--on-accent); }

.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent-line); color: var(--accent); }
.theme-toggle .icon { width: 17px; height: 17px; }
[data-theme="dark"] .icon--sun { display: none; }
[data-theme="light"] .icon--moon { display: none; }

.header-call {
  display: none; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 500; color: var(--text-dim);
}
.header-call:hover { color: var(--accent); }
.header-call .icon { width: 16px; height: 16px; fill: currentColor; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.burger span { display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.icon { width: 20px; height: 20px; }
.icon--line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 50% at 78% 8%, color-mix(in srgb, var(--accent-vivid) 16%, transparent), transparent 70%),
    radial-gradient(50% 45% at 12% 70%, color-mix(in srgb, var(--brand-navy) 55%, transparent), transparent 72%);
  filter: blur(10px);
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: .5;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}

.hero__title { margin-top: 1.1rem; font-size: var(--step-5); font-weight: 500; }
.hero__title strong { font-weight: 600; color: var(--accent); }
.hero__sub { margin-top: 1.35rem; max-width: 54ch; }
.hero__note {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; padding: .5rem .95rem;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; font-size: var(--step--1); color: var(--accent);
}

.hero__logo-video {
  position: absolute; right: -4%; top: -6%; width: min(260px, 34%);
  opacity: .5; mix-blend-mode: screen; pointer-events: none; z-index: 0;
}
[data-theme="light"] .hero__logo-video { display: none; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--border); }
.hero__meta-item { display: flex; flex-direction: column; gap: .15rem; }
.hero__meta-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); }
.hero__meta-v { font-family: var(--font-head); font-size: var(--step-1); font-weight: 500; }

/* ----------------------------------------------------------------- scene */
.scene { position: relative; }
.scene__svg { width: 100%; height: auto; overflow: visible; }

.scene__floor { fill: var(--scene-floor); stroke: none; }
.scene__walls { fill: none; stroke: var(--border-strong); stroke-width: 2.4; stroke-linecap: round; }
.scene__windows .win { stroke: var(--accent-vivid); stroke-width: 4; stroke-linecap: round; opacity: .55; }

.scene__lights .lp { opacity: 0; transition: opacity .9s var(--ease); }

.scene__labels text {
  fill: var(--text-faint); font-family: var(--font-body); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
}

.curtain-rail { stroke: var(--border-strong); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.curtain path { stroke: var(--accent-vivid); stroke-width: 3; stroke-linecap: round; opacity: .75; }
.curtain { transition: transform 1.1s var(--ease); }
.curtain--left { transform-origin: 86px 33px; transform: scaleX(.16); }
.curtain--right { transform-origin: 210px 33px; transform: scaleX(.16); }

.tv-screen { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5;
  transition: fill .6s var(--ease); }
.tv-stand { fill: var(--border-strong); }

.dev { fill: none; stroke: var(--text-faint); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.dev circle:first-child, .dev rect:first-child { fill: var(--bg-2); }

/* --- scene states --- */
.scene[data-scene="home"]    .lp--living,
.scene[data-scene="home"]    .lp--kitchen,
.scene[data-scene="home"]    .lp--hall     { opacity: .9; }
.scene[data-scene="home"]    .lp--bed      { opacity: .45; }

.scene[data-scene="away"]    .lp           { opacity: 0; }
.scene[data-scene="away"]    .dev          { stroke: var(--accent-vivid); }

.scene[data-scene="evening"] .lp--living   { opacity: 1; }
.scene[data-scene="evening"] .lp--kitchen  { opacity: .8; }
.scene[data-scene="evening"] .lp--hall     { opacity: .3; }

.scene[data-scene="movie"]   .lp--living   { opacity: .16; }
.scene[data-scene="movie"]   .lp--tv       { opacity: .95; }
.scene[data-scene="movie"]   .tv-screen    { fill: url(#tvGrad); }
.scene[data-scene="movie"]   .curtain--left,
.scene[data-scene="movie"]   .curtain--right { transform: scaleX(1); }

.scene[data-scene="night"]   .lp--hall     { opacity: .34; }
.scene[data-scene="night"]   .lp--bath     { opacity: .2; }
.scene[data-scene="night"]   .curtain--left,
.scene[data-scene="night"]   .curtain--right { transform: scaleX(1); }

.scene__chips { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 1.5rem; }
.scene__chip {
  padding: .42rem .95rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--step--1); color: var(--text-dim);
  transition: all .25s var(--ease);
}
.scene__chip:hover { color: var(--text); border-color: var(--border-strong); }
.scene__chip.is-active {
  background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent);
}

/* ----------------------------------------------------------------- cards */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
  overflow: hidden;
}
[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(15, 40, 70, .05); }

.card--service:hover, .card--link:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: var(--surface-2);
}

/* Cursor-follow highlight; --mx/--my are set in JS, defaults keep it invisible. */
.card--service::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, -100%) var(--my, -100%),
              var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card--service:hover::before { opacity: 1; }

.card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.card__icon .icon { width: 22px; height: 22px; }
.card__title { font-size: var(--step-1); }
.card__text { margin-top: .55rem; color: var(--text-dim); font-size: .94rem; flex-grow: 1; }
.card__more { margin-top: 1.1rem; color: var(--accent); font-size: 1.1rem;
  transition: transform .3s var(--ease); }
.card--service:hover .card__more { transform: translateX(5px); }

.card--wide { grid-column: span 2; }
@media (max-width: 720px) { .card--wide { grid-column: span 1; } }

/* system comparison cards */
.card--system { padding: clamp(1.5rem, 3vw, 2.2rem); }
.card--system .card__title { font-size: var(--step-2); }
.card--system .badge { align-self: flex-start; margin-bottom: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: .74rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
}
.badge--neutral { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { padding: clamp(1.1rem, 2.5vw, 1.8rem); background: var(--bg); text-align: center; }
.stat__n { font-family: var(--font-head); font-size: var(--step-4); font-weight: 500;
  line-height: 1; color: var(--accent); }
.stat__l { margin-top: .5rem; font-size: .84rem; color: var(--text-dim); line-height: 1.4; }

/* --------------------------------------------------------- facts / table */
.facts { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts__row { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 2fr); gap: 1rem;
  padding: .95rem clamp(1rem, 2.4vw, 1.5rem); border-bottom: 1px solid var(--border); }
.facts__row:last-child { border-bottom: 0; }
.facts__row:nth-child(odd) { background: var(--surface); }
.facts__k { color: var(--text-faint); font-size: .88rem; }
.facts__v { font-weight: 500; }
@media (max-width: 620px) {
  .facts__row { grid-template-columns: 1fr; gap: .2rem; }
}

/* ------------------------------------------------------------ check list */
.check-list { display: grid; gap: .7rem; }
.check-list__item { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start;
  color: var(--text-dim); }
.check-list__tick { width: 18px; height: 18px; margin-top: .25rem; color: var(--accent); stroke-width: 2.2; }

/* -------------------------------------------------------------- prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.6rem; margin-bottom: .8rem; font-size: var(--step-2); }
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; font-size: var(--step-1); }
.prose p { color: var(--text-dim); }
.prose > *:first-child { margin-top: 0; }

.answer-box {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
}
.answer-box__label {
  display: block; margin-bottom: .6rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}
.answer-box p { color: var(--text); font-size: var(--step-1); line-height: 1.55; }

.note-box {
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent-vivid);
  border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: .95rem;
}

/* ------------------------------------------------------------------- faq */
.faq { display: grid; gap: .6rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden; transition: border-color .25s var(--ease); }
.faq__item[open] { border-color: var(--accent-line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem clamp(1rem, 2.2vw, 1.4rem); cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 500; font-size: var(--step-0); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__chevron { position: relative; flex-shrink: 0; width: 14px; height: 14px; }
.faq__chevron::before, .faq__chevron::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.6px;
  background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq__chevron::after { transform: rotate(90deg); }
.faq__item[open] .faq__chevron::after { transform: rotate(0); }
.faq__a { padding: 0 clamp(1rem, 2.2vw, 1.4rem) 1.2rem; color: var(--text-dim); }

/* ----------------------------------------------------------- breadcrumbs */
/* Sits directly under the header, so an opaque fill here reads as a second bar.
   Transparent, with the rule fading out at both ends. */
.crumbs { position: relative; background: none; border: 0; }
.crumbs::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.crumbs__list { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .8rem;
  font-size: .82rem; color: var(--text-faint); }
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: .5rem; color: var(--text-faint); }
.crumbs__item a:hover { color: var(--accent); }

/* ------------------------------------------------------------ page-head */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head__inner { max-width: 68ch; }
.page-head h1 { margin-top: .9rem; }
.page-head .lead { margin-top: 1.2rem; }

/* -------------------------------------------------------------- projects */
.project-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.project-card__name { font-family: var(--font-head); font-size: var(--step-1); font-weight: 500; }
.project-card__text { margin-top: .6rem; color: var(--text-dim); font-size: .9rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------- equipment */
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.equip__item { padding: 1.2rem 1rem; background: var(--bg); text-align: center;
  transition: background-color .3s var(--ease); }
.equip__item:hover { background: var(--surface-2); }
.equip__img { width: 76px; height: 76px; margin: 0 auto .8rem; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 6px; }
.equip__name { font-size: .86rem; font-weight: 500; line-height: 1.35; }
.equip__note { margin-top: .3rem; font-size: .76rem; color: var(--text-faint); line-height: 1.4; }

/* ------------------------------------------------------------- price tier */
.tier { display: flex; flex-direction: column; }
.tier__name { font-family: var(--font-head); font-size: var(--step-2); font-weight: 500; }
.tier__range { margin-top: .7rem; font-family: var(--font-head); font-size: var(--step-3);
  font-weight: 500; color: var(--accent); line-height: 1.1; }
.tier__avg { margin-top: .35rem; color: var(--text-faint); font-size: .88rem; }
.tier__list { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------ form */
.lead-form { display: grid; gap: 1rem; }
.lead-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

.field { display: grid; gap: .4rem; }
.field__label { font-size: .82rem; color: var(--text-dim); }
.field__label span { color: var(--accent); }
.field__input {
  width: 100%; padding: .8rem 1rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field__input:focus { outline: none; border-color: var(--accent-vivid); background: var(--bg-3); }
.field__input::placeholder { color: var(--text-faint); }
.field__input--area { resize: vertical; min-height: 84px; }
.field__select { position: relative; }
.field__select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px;
  border-right: 1.6px solid var(--text-faint); border-bottom: 1.6px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field__select select { appearance: none; padding-right: 2.4rem; cursor: pointer; }
.field__error { display: none; font-size: .78rem; color: #ff7a7a; }
.field.is-invalid .field__input { border-color: #ff7a7a; }
.field.is-invalid .field__error { display: block; }

.lead-form__consent { font-size: .76rem; color: var(--text-faint); line-height: 1.45; }
.lead-form__result { padding: 1rem 1.2rem; border-radius: 12px; font-size: .92rem; }
.lead-form__result.is-ok { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.lead-form__result.is-err { background: rgba(255, 122, 122, .1); border: 1px solid rgba(255, 122, 122, .35); color: #ff9b9b; }

/* Honeypot: off-screen rather than display:none so headless bots still fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.card--form { background: var(--bg-2); }

/* -------------------------------------------------------------- cta band */
.cta-band { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); background: none;
  border: 0; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-2); opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 100%);
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent-vivid) 13%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); } }
.cta-band__contacts { display: grid; gap: .9rem; margin-top: 2rem; }
.cta-band__contact { display: flex; align-items: center; gap: .8rem; color: var(--text-dim); }
.cta-band__contact .icon { color: var(--accent); flex-shrink: 0; }
.cta-band__contact strong { color: var(--text); font-weight: 500; }

/* ------------------------------------------------------------------ blog */
.post-card { display: flex; flex-direction: column; }
.post-card__cover { aspect-ratio: 16 / 9; margin: calc(-1 * clamp(1.2rem, 2.4vw, 1.7rem));
  margin-bottom: 1.2rem; background: var(--surface-2); overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: contain; padding: 12%;
  background: #fff; transition: transform .5s var(--ease); }
.post-card:hover .post-card__cover img { transform: scale(1.05); }
.post-card__meta { display: flex; gap: .7rem; font-size: .76rem; color: var(--text-faint); }
.post-card__title { margin-top: .5rem; font-size: var(--step-1); }
.post-card__excerpt { margin-top: .6rem; color: var(--text-dim); font-size: .92rem; flex-grow: 1; }

.post-body { max-width: 72ch; }
.post-body h2 { margin-top: 2.4rem; margin-bottom: .7rem; }
.post-body p { color: var(--text-dim); font-size: var(--step-1); line-height: 1.68; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  border-top: 0; }
.site-footer__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer__brand .brand__mark { height: 52px; margin-bottom: 1rem; }
.site-footer__tagline { font-family: var(--font-head); font-size: var(--step-1);
  font-weight: 500; max-width: 26ch; }
.site-footer__note { margin-top: .8rem; font-size: .84rem; color: var(--text-faint); max-width: 34ch; }
.site-footer__social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.site-footer__social a { font-size: .86rem; color: var(--accent); }
.site-footer__title { font-size: .76rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer__col a, .site-footer__contacts li { font-size: .9rem; color: var(--text-dim); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__phone { font-family: var(--font-head); font-size: var(--step-1) !important;
  font-weight: 500; color: var(--text) !important; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-faint); }

/* ------------------------------------------------------------ animations */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .curtain, .scene__lights .lp, .tv-screen { transition: none; }
  .btn:hover, .card--service:hover { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .site-nav__list a { padding: .5rem .5rem; font-size: .88rem; }
}

@media (max-width: 960px) {
  .burger { display: flex; }
  .header-call { display: flex; margin-left: auto; }

  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    display: grid; gap: 1.5rem; align-content: start;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
    margin-left: 0;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav__list a { padding: .8rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .site-nav__tools { justify-content: space-between; flex-wrap: wrap; }
  .site-nav__cta { width: 100%; }
}

@media (max-width: 620px) {
  .brand__sub { display: none; }
  .header-call span { display: none; }
  .hero__logo-video { display: none; }
  .site-footer__bottom { flex-direction: column; }
}

/* =========================================================================
   Animated background + the simplified landing page
   ========================================================================= */

/* The canvas paints blobs and particles; this gradient is what shows if the
   canvas fails, if JS is off, or before the first frame. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 60% at 78% 6%, color-mix(in srgb, var(--accent-vivid) 13%, transparent), transparent 68%),
    radial-gradient(70% 55% at 10% 78%, color-mix(in srgb, var(--brand-navy) 48%, transparent), transparent 72%),
    var(--bg);
}

#bgfx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* Never a scrollbar trigger, never interactive. */
  contain: strict;
}

/* Content must sit above the background canvas and the base gradient.
   .site-header is deliberately NOT listed here: it already declares
   position:sticky and z-index:100 above, and repeating the selector at equal
   specificity would silently overwrite both — dropping the header out of the
   stacking order so page content paints over the open mobile menu. */
main, .site-footer { position: relative; z-index: 1; }

/* Opaque section fills would hide the animation, so the landing page uses
   translucent ones instead. */
/* A section "wash" is a translucent panel whose top and bottom edges fade out.
   Hard edges are what made the page read as separate slabs; a masked gradient
   gives the same depth with nothing to see the join. The pseudo-element sits at
   z-index -1 inside <main>, which is its own stacking context, so it stays above
   the fixed background canvas. */
.section--glass, .section--alt { position: relative; background: none; border: 0; }

.section--glass::before, .section--alt::before {
  content: "";
  position: absolute;
  inset: -1px 0;
  z-index: -1;
  background: var(--bg-2);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  pointer-events: none;
}

/* ------------------------------------------------------------ hero (simple) */
.hero-lite {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(88svh, 780px);
  padding-block: clamp(3rem, 10vw, 6rem);
  text-align: center;
}

.hero-lite__inner { max-width: 56rem; margin-inline: auto; }

.hero-lite__title {
  margin-top: 1.2rem;
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.hero-lite__title strong { font-weight: 600; color: var(--accent); }

.hero-lite__sub {
  margin-top: 1.5rem;
  margin-inline: auto;
  max-width: 46ch;
  font-size: var(--step-1);
  color: var(--text-dim);
}

.hero-lite__actions {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: 2.2rem;
}

.hero-lite__trust {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center;
  margin-top: 2.8rem; padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1); color: var(--text-faint);
}
.hero-lite__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-lite__trust b { color: var(--text); font-weight: 500; }

/* Scroll hint sits at the bottom of the first screen. */
.scroll-hint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-hint::after {
  content: ""; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--accent-line), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;  transform: scaleY(1);  transform-origin: top; }
}
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* ----------------------------------------------------------------- tiles */
/* Fixed column counts rather than auto-fit: with 8 tiles, auto-fit lands on 7
   columns at desktop width and leaves a single orphan on the second row. */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
}
@media (min-width: 620px)  { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 920px)  { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.tile__icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.tile__icon .icon { width: 20px; height: 20px; }
.tile__name { font-family: var(--font-head); font-size: var(--step-0); font-weight: 500; }
.tile__note { font-size: .86rem; color: var(--text-dim); line-height: 1.45; }

/* ------------------------------------------------------------ mini steps */
.steps-mini { display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step-mini { display: grid; gap: .6rem; }
.step-mini__n {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--accent-line);
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-head); font-weight: 600;
}
.step-mini__h { font-family: var(--font-head); font-size: var(--step-1); font-weight: 500; }
.step-mini__p { color: var(--text-dim); font-size: .94rem; }

/* ------------------------------------------------------------- form panel */
.form-panel {
  max-width: 42rem; margin-inline: auto;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.form-panel__head { text-align: center; margin-bottom: 1.8rem; }
.form-panel__head h2 { font-size: var(--step-3); }
.form-panel__head p { margin-top: .8rem; color: var(--text-dim); }

/* Direct-contact fallbacks under the form, for people who will not fill one in. */
.form-alt {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
}
.form-alt__link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .9rem; color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.form-alt__link:hover { color: var(--accent); border-color: var(--accent-line); }

/* --------------------------------------------------- footer link directory */
.footer-links {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.footer-links__group h3 {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .9rem;
}
.footer-links__group ul { display: grid; gap: .45rem; }
.footer-links__group a { font-size: .86rem; color: var(--text-dim); line-height: 1.4; }
.footer-links__group a:hover { color: var(--accent); }

@media (max-width: 500px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .footer-links__group a { font-size: .8rem; }
}

/* The landing page drops the washes entirely — the animated background runs
   unbroken from the hero to the footer and the surfaces are the cards. */
.page--home .section { background: none; }
.page--home .section--glass::before,
.page--home .section--alt::before { display: none; }

/* Even spacing between every landing section so the eye reads continuous flow
   rather than a sequence of blocks. */
.page--home .section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page--home .section + .section { padding-top: 0; }

/* A hairline that fades to nothing at both ends — enough to separate ideas,
   not enough to cut the page. */
.page--home .section + .section > .shell::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(to right, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* The footer is the one place a real edge helps: it ends the page. */
.site-footer { background: color-mix(in srgb, var(--bg-2) 72%, transparent); backdrop-filter: blur(12px); }

@media (max-width: 400px) {
  .tile { padding: .9rem; gap: .5rem; }
  .tile__icon { width: 34px; height: 34px; }
  .tile__icon .icon { width: 17px; height: 17px; }
  .tile__note { font-size: .78rem; }
}

/* =========================================================================
   Touch ergonomics
   Applied by pointer type rather than width: a small laptop window should keep
   the compact desktop sizing, a tablet should not.
   ========================================================================= */
@media (pointer: coarse) {
  /* iOS Safari zooms the whole page when a focused input is under 16px.
     On the lead form that means every visitor who taps "name" gets thrown into
     a zoomed viewport they then have to pinch back out of. */
  .field__input,
  .field__input--area,
  .field__select select {
    font-size: 16px;
  }

  /* 44px is the smallest reliably tappable target. These were 16-36px. */
  .header-call {
    min-height: 44px;
    padding-inline: .5rem;
  }

  .lang-switch__item {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding-inline: .85rem;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .site-nav__cta.btn--sm {
    min-height: 46px;
    font-size: var(--step-0);
  }

  .burger {
    width: 46px;
    height: 46px;
  }

  /* Footer directory links sit in dense two-column lists; a little vertical
     room stops neighbouring entries being hit by mistake. */
  .footer-links__group a,
  .site-footer__col a {
    display: inline-block;
    padding-block: .2rem;
  }
}

/* ------------------------------------------------------------ legal pages */
/* Long-form policy text: slightly tighter measure and clearer list spacing
   than marketing prose, because people scan these for one specific clause. */
.legal { max-width: 68ch; }
.legal h2 {
  margin-top: 2.4rem;
  margin-bottom: .7rem;
  font-size: var(--step-1);
}
.legal p { margin-top: .9rem; }
.legal__list { display: grid; gap: .5rem; margin-top: 1rem; }
.legal__list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: .96rem;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal__list a { color: var(--accent); }
