/* ═══════════════════════════════════════════════════════════════════════
   DIMERION STUDIO
   Single-accent dark system. One accent carries every interactive state;
   everything else is greyscale. Contrast notes are marked inline.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* colour */
  --bg:        #040508;
  --surface:   #0B0D11;
  --line:      #191B20;
  --line-2:    #26282E;
  --white:     #FFFFFF;
  --text:      #D8D8D8;
  --muted:     #85868C;   /* 4.6:1 on --bg — above the 4.5:1 AA floor for body text. */
  --dim:       #7A7C84;   /* 4.9:1 on --bg — clears the 4.5:1 AA floor with
                             headroom for text sitting over the hero canvas. */
  --ghost:     #56575E;   /* ~2.9:1 — decorative only, never text. */
  --accent:      #C63A24;   /* burned red. FILLS. White label on it = 5.2:1. */
  --accent-deep: #A82F1D;   /* fill hover — darkens, so white climbs to 6.8:1. */
  --accent-tx:   #EF5C45;   /* accent as TEXT or icon on dark = 6.1:1 on --bg. */
  --accent-hi:   #FF7A63;   /* text hover = 8.0:1. */

  /* type */
  --display: 'Familjen Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'Martian Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --pad: clamp(20px, 4.2vw, 60px);
  --gut: clamp(18px, 2.8vw, 40px);
  --sec: clamp(56px, 6.4vw, 92px);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.72s;
}

/* ─────────────────────────────── reset ──────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* clears the fixed header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: var(--accent-tx); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-hi); }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 14px 20px; background: var(--text); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
}
.skip:focus { left: 0; color: var(--bg); }

/* ───────────────────────────── primitives ───────────────────────────── */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.65;
  text-transform: uppercase;
}
.dim    { color: var(--dim); }
.accent { color: var(--accent-tx); }

.h2 {
  font-family: var(--display);
  font-size: clamp(38px, 4.7vw, 68px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--white);
  text-wrap: pretty;
}

.kicker { color: var(--dim); }

.arr { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-deep); color: var(--white); }

.btn--light { background: var(--text); color: var(--bg); min-height: 42px; padding: 0 18px; }
.btn--light:hover { background: var(--white); color: var(--bg); }

.btn--block { display: flex; width: 100%; }

/* ─────────────────────────────── header ─────────────────────────────── */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), background-color 0.4s ease,
              border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.hdr.is-stuck {
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.hdr.is-hidden { transform: translateY(-101%); }

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
}

.brand { display: flex; align-items: baseline; gap: 9px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__name {
  font-family: var(--display);
  font-size: 22px; font-weight: 500; letter-spacing: -0.035em;
}
/* The dot is the mark. It carries the accent on its own so the wordmark
   stays a single readable string at any size. */
.brand__dot { color: var(--accent-tx); transition: color 0.3s ease; }
.brand:hover .brand__dot { color: var(--accent-hi); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav__link {
  position: relative;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.hdr__right { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ──────────────────────────────── menu ──────────────────────────────── */

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 40px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }

.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 52px); font-weight: 400;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--white);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s ease;
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.14s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.20s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.26s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.32s; }
.menu__link:hover { color: var(--accent-tx); }
.menu__link i {
  font-family: var(--mono); font-style: normal;
  font-size: 11px; letter-spacing: 0.08em; color: var(--dim);
}
.menu__foot { display: flex; flex-direction: column; gap: 8px; }

/* ═══════════════════════════════ 3D intro ═════════════════════════════ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  perspective: 800px;
  pointer-events: none;
}
.intro.is-done { display: none; }

.intro__stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  transform-style: preserve-3d;
}
.intro__panel {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transform-origin: top center;
  backface-visibility: hidden;
  transform: rotateX(0deg);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro.is-out .intro__panel { transform: rotateX(-94deg); }
.intro.is-out .intro__panel:nth-child(1) { transition-delay: 0.04s; }
.intro.is-out .intro__panel:nth-child(2) { transition-delay: 0.13s; }
.intro.is-out .intro__panel:nth-child(3) { transition-delay: 0.22s; }

.intro__line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  display: flex; justify-content: center; gap: 12px;
  color: var(--dim);
  letter-spacing: 0.16em;
  transform: translateY(-50%) translateZ(50px);
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro__line .sep { color: var(--line-2); }
.intro.is-out .intro__line {
  opacity: 0;
  transform: translateY(-50%) translateZ(190px);
}

/* ──────────────────────────────── hero ──────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(120px, 13vw, 176px) var(--pad) clamp(48px, 5vw, 70px);
}

/* WebGL flow field. Sits behind the hero content, never takes a click,
   and paints its own edges down to --bg so it has no visible boundary. */
.gl {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--dim);
  letter-spacing: 0.14em;
  margin-bottom: clamp(28px, 3.6vw, 52px);
}
.hero__eyebrow .sep { color: var(--line-2); }

.hero__title {
  font-family: var(--display);
  font-size: clamp(46px, 7.5vw, 108px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--white);
  max-width: 15ch;
  text-wrap: pretty;
}
.ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.ln__i { display: block; }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
  align-items: end;
  margin-top: clamp(34px, 4.4vw, 62px);
}
.hero__lede {
  grid-column: 1 / span 5;
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__act { grid-column: 7 / span 4; display: flex; flex-direction: column; gap: 13px; }
.hero__note { letter-spacing: 0.1em; font-size: 11px; }
.hero__scroll { grid-column: 12 / span 1; display: flex; justify-content: flex-end; }
.hero__scroll svg {
  width: 26px; height: 42px; fill: none; stroke: var(--dim);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: bob 2.6s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ─────────────────────────────── sections ───────────────────────────── */

.sec { padding: var(--sec) var(--pad); border-top: 1px solid var(--line); }

.sec__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
  align-items: start;
}

.sec__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: clamp(30px, 3.6vw, 52px);
}

/* statement */
.statement__body {
  grid-column: 3 / span 10;
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--muted);
  text-wrap: pretty;
}
.statement .kicker { grid-column: 1 / span 2; }
.statement__hi { color: var(--white); }

/* One phrase per paragraph, no more. It only reads as emphasis while it
   stays rare — accent is reserved for things you can click. */
em.em {
  color: var(--white);
  font-style: normal;
  font-weight: 500;
}
.statement__body > span { display: inline; }

/* ────────────────────────────── services ────────────────────────────── */

.svc__row { border-top: 1px solid var(--line); }
.svc__row--last { border-bottom: 1px solid var(--line); }

/* <details> stays the mechanism, so every description is in the DOM and
   crawlable whether the domain is open or shut. */
.svc__q {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
  align-items: baseline;
  padding: clamp(20px, 2.1vw, 30px) 0;
  cursor: pointer;
  list-style: none;
  color: inherit;
  isolation: isolate;
}
.svc__q::-webkit-details-marker { display: none; }
.svc__q::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -0.5);
  z-index: -1;
  background: linear-gradient(90deg, rgba(198, 58, 36, 0.09), rgba(198, 58, 36, 0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.svc__q:hover::before, .svc__item[open] > .svc__q::before { transform: scaleX(1); }

.svc__n { grid-column: 1 / span 1; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); transition: color 0.35s ease; }
.svc__q:hover .svc__n, .svc__item[open] > .svc__q .svc__n { color: var(--accent-tx); }

.svc__h {
  grid-column: 2 / span 5;
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.035em;
  color: var(--white);
  transition: transform 0.45s var(--ease);
}
.svc__q:hover .svc__h { transform: translateX(10px); }

.svc__p { grid-column: 7 / span 5; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

.svc__ico {
  grid-column: 12 / span 1; justify-self: end;
  position: relative; width: 16px; height: 16px; margin-top: 0.4em;
  color: var(--accent); transition: color 0.35s ease;
}
.svc__q:hover .svc__ico, .svc__item[open] > .svc__q .svc__ico { color: var(--accent-tx); }
.svc__ico::before, .svc__ico::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1.8px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.svc__ico::after { transform: rotate(90deg); }
.svc__item[open] .svc__ico::after { transform: rotate(0deg); }

.svc__a { overflow: hidden; }
.svc__a-in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut);
  padding-bottom: clamp(22px, 2.4vw, 34px);
}

/* 1px gap over a --line background gives hairline dividers without
   painting a border on each cell. */
/* Shared vanishing point, the same trick the work cards use: perspective
   lives on the grid, so the four cards unfold as one hinged sheet instead
   of four unrelated flips. */
.svc__sub {
  grid-column: 2 / span 10;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 0%;
}

/* The li stretches to the tallest card in its row; the anchor has to
   fill it, or the grid's --line background shows through underneath as a
   pale band. Base rule, so it holds with JS on or off. */
.sub { display: flex; }

/* Hinged on the top edge and staggered by --i.

   Driven by .is-open rather than [open], and scoped to html.js. A closed
   <details> keeps its subtree out of rendering, so a transition that
   starts in the same frame the panel opens has no previous style to
   interpolate from and snaps straight to the end — which is exactly what
   [open] did. main.js adds .is-open a frame later, once the subtree is
   live, and the transition has something to run from. Without JS the
   cards are never hidden in the first place. */
html.js .sub {
  transform-origin: 50% 0%;
  transform: rotateX(-68deg) translateZ(-26px);
  opacity: 0;
  transition: transform 0.66s var(--ease), opacity 0.42s ease;
  transition-delay: calc(var(--i, 0) * 0.07s);
}
html.js .svc__item.is-open .sub { transform: none; opacity: 1; }
.sub__link {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; gap: 7px;
  min-height: 96px; padding: 20px 22px;
  background: var(--surface); color: inherit;
  isolation: isolate;
  transition: background 0.3s ease;
}
.sub__link:hover { background: #10131A; }

/* The same pointer-following bloom the hero canvas has, at card scale —
   --gx/--gy are written by main.js on mousemove. */
.sub__link::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(150px circle at var(--gx, 50%) var(--gy, 50%),
                              rgba(239, 92, 69, 0.13), rgba(239, 92, 69, 0) 72%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.sub__link:hover::after { opacity: 1; }
.sub__h {
  font-family: var(--display); font-size: 19px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.025em; color: var(--white);
  padding-right: 26px;
  transition: color 0.3s ease;
}
.sub__link:hover .sub__h { color: var(--accent-tx); }
.sub__p { font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.sub__arr {
  position: absolute; top: 22px; right: 20px;
  width: 15px; height: 15px; stroke: var(--dim); stroke-width: 1.8;
  transition: transform 0.45s var(--ease), stroke 0.35s ease;
}
.sub__link:hover .sub__arr { transform: translate(3px, -3px); stroke: var(--accent-tx); }

/* ──────────────────────────────── facts ─────────────────────────────── */

.facts .kicker { grid-column: 1 / span 3; }
.facts__grid {
  grid-column: 4 / span 9;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut);
}
.fact { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.fact__v {
  font-family: var(--display);
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 0.9; letter-spacing: -0.05em; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.fact__l { font-size: 11px; color: var(--muted); }

/* ──────────────────────────────── work ──────────────────────────────── */

.work__note { text-align: right; font-size: 11px; }

/* Shared vanishing point across each row, so tilting one card reads as part
   of one 3D space rather than three unrelated wobbles. */

/* While the pointer is driving it, drop to a short linear transition so the
   card tracks the cursor instead of lagging a third of a second behind. */

/* Specular sheen that follows the pointer across the surface. */

.card__top .mono { font-size: 10px; color: var(--muted); }

.tag { font-size: 10px; padding: 4px 8px; border-radius: 2px; }
.tag--shipped { background: var(--text); color: var(--bg); }

.card__big .mono { font-size: 10px; }

.bars { display: flex; flex-direction: column; gap: 11px; }
.bar { display: flex; align-items: center; gap: 14px; }
.bar__l { flex: 0 0 clamp(100px, 11vw, 140px); font-size: 13.5px; color: var(--muted); }
.bar__t { flex-grow: 1; height: 5px; background: var(--line); overflow: hidden; }
.bar__t i {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width 1.1s var(--ease);
}
.bar__t i.bar--mute { background: var(--ghost); }
.is-in .bar__t i { width: var(--w); }
.bar__v { flex: 0 0 62px; text-align: right; font-size: 10px; color: var(--text); letter-spacing: 0.04em; }

.cell { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); }
.cell__k { font-size: 10px; color: var(--muted); }
.cell--hl .cell__k { color: var(--accent-tx); }
.cell__v { font-family: var(--display); font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.04em; color: var(--white); }

.spark i.on { background: var(--accent); }
.is-in .spark i { transform: scaleY(1); }
.is-in .spark i:nth-child(1)  { transition-delay: 0.02s; }
.is-in .spark i:nth-child(2)  { transition-delay: 0.06s; }
.is-in .spark i:nth-child(3)  { transition-delay: 0.10s; }
.is-in .spark i:nth-child(4)  { transition-delay: 0.14s; }
.is-in .spark i:nth-child(5)  { transition-delay: 0.18s; }
.is-in .spark i:nth-child(6)  { transition-delay: 0.22s; }
.is-in .spark i:nth-child(7)  { transition-delay: 0.26s; }
.is-in .spark i:nth-child(8)  { transition-delay: 0.30s; }
.is-in .spark i:nth-child(9)  { transition-delay: 0.34s; }
.is-in .spark i:nth-child(10) { transition-delay: 0.38s; }
.is-in .spark i:nth-child(11) { transition-delay: 0.42s; }
.is-in .spark i:nth-child(12) { transition-delay: 0.46s; }

/* ═══════════════════════════════ 3D deck ══════════════════════════════
   Coverflow on one shared vanishing point. Only the active slide is fully
   opaque; the neighbours rotate away in Z so the row reads as depth rather
   than as three flat cards side by side.
   ═══════════════════════════════════════════════════════════════════════ */

.deck { perspective: 1900px; perspective-origin: 50% 46%; }

.deck__stage {
  position: relative;
  height: clamp(400px, 46vw, 660px);
  transform-style: preserve-3d;
  cursor: grab;
}
.deck__stage.is-dragging { cursor: grabbing; }

.slide {
  position: absolute;
  top: 0; left: 50%;
  width: min(880px, 74vw);
  margin-left: calc(min(880px, 74vw) / -2);
  transform-style: preserve-3d;
  transform:
    translate3d(var(--sx, 0px), 0, var(--sz, 0px))
    rotateY(var(--sr, 0deg))
    scale(var(--ss, 1));
  opacity: var(--so, 1);
  transition: transform 0.85s var(--ease), opacity 0.85s var(--ease), filter 0.85s var(--ease);
  filter: brightness(var(--sb, 1));
  will-change: transform, opacity;
}
.slide[hidden] { display: none; }
.slide:not(.is-active) { pointer-events: none; }

/* the window chrome that makes a screen read as a real tool */
.win {
  background: #07090D;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.slide.is-active .win { border-color: #33363E; }

.win__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: #0C0E13;
  border-bottom: 1px solid var(--line);
}
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 8px; height: 8px; border-radius: 50%; background: #2A2D34; }
.win__url {
  flex-grow: 1; font-size: 10px; color: var(--muted);
  background: #060810; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 3px; text-align: center;
}
.tag--proto { background: transparent; color: var(--accent-hi); border: 1px solid rgba(198,58,36,0.4); }

.win__body { height: clamp(250px, 30vw, 424px); padding: 20px; overflow: hidden; }

.slide__cap { display: flex; flex-direction: column; gap: 7px; padding: 22px 4px 0; max-width: 60ch; }
.slide__h { font-family: var(--display); font-size: clamp(23px, 2.2vw, 31px); font-weight: 400; letter-spacing: -0.03em; color: var(--white); }
.slide__p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.deck__ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(18px, 2.4vw, 32px); }
.deck__btn {
  display: flex; align-items: center; justify-content: center;
  /* flex: 0 0 auto so the dot strip shrinks instead of the hit target —
     without it these squeezed to 44px at 375px and would go under the
     44px minimum on a narrower phone. */
  flex: 0 0 auto;
  width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.deck__btn svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deck__btn:hover { border-color: var(--accent); background: rgba(198,58,36,0.08); }
.deck__btn:hover svg { stroke: var(--accent-tx); }

.deck__dots { display: flex; align-items: center; gap: 9px; }
.deck__dot {
  width: 30px; height: 3px; background: var(--line-2); border-radius: 2px;
  transition: background-color 0.4s ease, width 0.4s var(--ease);
}
.deck__dot.is-on { background: var(--accent); width: 52px; }

/* ── shared tool-screen primitives ─────────────────────────────────────── */
.muted { color: var(--muted); }
.hot   { color: var(--accent-tx); }
.ok    { color: #6FAE8C; }

.win__body .mono { font-size: 10px; letter-spacing: 0.07em; }

/* app / operator dashboard */
.app { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
.app__side { display: flex; flex-direction: column; gap: 11px; border-right: 1px solid var(--line); padding-right: 14px; }
.app__logo { color: var(--accent-tx); font-size: 10px !important; }
.app__nav { color: var(--dim); padding: 5px 0; }
.app__nav--on { color: var(--white); }
.app__main { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.app__h { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 3px; background: #090B10; }
.kpi--alert { border-color: rgba(198,58,36,0.35); }
.kpi__k { color: var(--dim); }
.kpi__v { font-family: var(--display); font-size: clamp(17px, 1.6vw, 23px); letter-spacing: -0.035em; color: var(--white); }
.kpi__d { font-size: 10px; color: var(--dim); }
.kpi__d.up { color: #6FAE8C; }
.kpi__d.down { color: var(--accent-hi); }
.dec { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; }
.dec__i { width: 5px; height: 5px; border-radius: 50%; background: var(--ghost); flex: 0 0 auto; }
.dec__i--hot { background: var(--accent); }
.dec__t { flex-grow: 1; font-size: 12.5px; color: var(--text); }
.dec__v { font-size: 12.5px; color: var(--muted); }
.dec__b { color: var(--dim); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 2px; }
.trend { display: flex; align-items: flex-end; gap: 4px; height: 42px; margin-top: 2px; }
.trend i { flex-grow: 1; height: var(--h); background: #22252B; border-radius: 1px; }
.trend i.on { background: var(--accent); }

/* revenue scanner */
.scan { display: flex; flex-direction: column; gap: 16px; }
.scan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.scan__head > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.scan__big { font-family: var(--display); font-size: clamp(34px, 3.4vw, 50px); line-height: 0.9; letter-spacing: -0.05em; color: var(--white); }
.scan__meta { display: grid; grid-template-columns: auto auto; gap: 3px 12px; align-items: baseline; text-align: right; }
.scan__meta-v { font-size: 11.5px; color: var(--text); }
.bars--lg .bar__l { flex-basis: 130px; font-size: 12.5px; }
.bars--lg .bar__t { height: 6px; }
.bars--lg .bar__v { font-size: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-weight: 400; }
.tbl td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.tbl td:first-child { color: var(--text); }
.tbl th:last-child, .tbl td:last-child { text-align: right; }

/* runway model */
.run { display: flex; flex-direction: column; gap: 15px; }
.run__pills { display: flex; align-items: center; gap: 8px; }
.pill { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 20px; color: var(--muted); }
.pill--on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.run__q { margin-left: auto; color: var(--dim); }
.run__chart { position: relative; height: clamp(110px, 13vw, 176px); }
.run__chart svg { width: 100%; height: 100%; }
.run__flag { position: absolute; left: 58%; top: 34%; color: var(--accent-tx); }
.run__zero { position: absolute; right: 0; top: 68%; color: var(--dim); }
.run__cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.run__cells .cell { padding: 11px; }
.verdict { color: #E0A24B !important; }

/* quote engine */
.quote { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.quote__left { display: flex; flex-direction: column; }
.quote__row { display: grid; grid-template-columns: minmax(0,1fr) 74px 74px; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.quote__row span:not(:first-child) { text-align: right; }
.quote__row--h { color: var(--dim); border-bottom-color: var(--line-2); }
.quote__row--tot { color: var(--white); border-bottom: 0; padding-top: 11px; }
.quote__stages { display: flex; gap: 6px; margin-top: 14px; }
.stage { flex-grow: 1; text-align: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: 2px; color: var(--dim); }
.stage--done { color: var(--muted); border-color: var(--line-2); }
.stage--on { background: rgba(198,58,36,0.12); border-color: var(--accent); color: var(--accent-tx); }
.quote__right { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.gauge { position: relative; width: clamp(88px, 9vw, 118px); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; }
.gauge__v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: clamp(19px, 1.9vw, 25px); letter-spacing: -0.04em; color: var(--white); }
.quote__note { font-size: 11.5px; color: var(--muted); }
.quote__warn { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-left: 2px solid var(--accent); background: rgba(198,58,36,0.06); font-size: 11.5px; color: var(--muted); }
.quote__warn .mono { color: var(--accent-tx); }

/* inbox triage */
.inbox { display: flex; flex-direction: column; gap: 14px; }
.inbox__list { display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid transparent; border-radius: 3px; }
.msg--on { border-color: rgba(198,58,36,0.3); background: rgba(198,58,36,0.05); }
.msg--mute { opacity: 0.45; }
.msg__t { flex-grow: 1; font-size: 12.5px; color: var(--muted); }
.msg__t b { color: var(--text); font-weight: 500; }
.msg__w { color: var(--dim); }
.pill--urgent { background: var(--accent); border-color: var(--accent); color: var(--white); padding: 4px 9px; }
.pill--quote { border-color: #E0A24B; color: #E0A24B; padding: 4px 9px; }
.msg .pill { flex: 0 0 auto; padding: 4px 9px; }
.inbox__draft { display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: #090B10; }
.draft__b { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.draft__acts { display: flex; align-items: center; gap: 8px; }
.draft__btn { padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); }
.draft__btn--on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.draft__meta { margin-left: auto; color: var(--dim); }

/* ════════════════════════════ not a stranger ══════════════════════════ */

.local__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: start; }
.local__portrait { grid-column: 1 / span 4; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; }

/* Was a fixed 4:5 for a portrait. It now holds a map plus its caption,
   which is taller than that — so the ratio becomes a floor rather than a
   promise the content immediately breaks. */
.frame {
  position: relative;
  min-height: 0;
  aspect-ratio: auto;
  background: linear-gradient(160deg, #0D1015, #07090D);
  border: 1px solid var(--line);
  display: flex; align-items: stretch; justify-content: stretch;
}
.frame__ph { color: var(--dim); font-size: 10px; letter-spacing: 0.1em; }

/* Fills the portrait frame with the one thing a local buyer can check:
   where you actually turn up. Not decoration standing in for a face. */
.where {
  width: 100%; height: 100%;
  padding: clamp(22px, 2.4vw, 32px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px;
}
.where__k { color: var(--accent-tx); }
/* ── service-area map ──────────────────────────────────────────────
   Real OpenStreetMap boundary geometry, simplified to half a pixel at
   display size and inlined as SVG — no tile service, no API key, no
   script, no request at load. Coloured from the site's own tokens so it
   reads as part of the page rather than an embedded widget. */
.map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: auto 0;
  overflow: visible;
}

/* Context, not subject: the lake and the airport exist only so a local
   recognises the shape of their own area at a glance. */
.m-lake { fill: #0F1720; stroke: #1C2836; stroke-width: 2; }
.m-air  { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 7 6; }

.m-city {
  fill: rgba(198, 58, 36, 0.16);
  stroke: var(--accent-tx);
  stroke-width: 2.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.m-label {
  font-family: var(--mono);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--white);
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(4, 5, 8, 0.85);
  stroke-width: 5;
  stroke-linejoin: round;
}

.where__cred {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ghost);
  text-transform: none;
}
.where__note {
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  max-width: 24ch;
}
.frame__c { position: absolute; width: 12px; height: 12px; border: 1px solid var(--accent); }
.frame__c--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame__c--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame__c--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame__c--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.frame__cap { font-size: 11px; color: var(--muted); }

.local__body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 18px; }
.local__h { font-size: clamp(34px, 4.1vw, 58px); }
.local__lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.local__list { display: flex; flex-direction: column; margin-top: 8px; }
.local__item { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.local__item:last-child { border-bottom: 1px solid var(--line); }
.local__k { font-family: var(--display); font-size: clamp(20px, 1.8vw, 25px); font-weight: 400; letter-spacing: -0.03em; color: var(--white); }
.local__p { font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ─────────────────────────────── stories ────────────────────────────── */

.stories { padding-top: calc(var(--sec) * 0.62); padding-bottom: calc(var(--sec) * 0.62); }
.stories .kicker { grid-column: 1 / span 2; }
/* No box and no left edge to hang from — the section is small on purpose
   and the surrounding whitespace does the framing. Centred in the middle
   six columns so it sits in the page rather than against it. */
.slot {
  grid-column: 4 / span 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.slot__p {
  font-family: var(--display);
  font-size: clamp(19px, 1.85vw, 27px);
  font-weight: 400; line-height: 1.3; letter-spacing: -0.03em;
  color: var(--muted); text-wrap: balance;
  max-width: 34ch;
}
.slot__hi { color: var(--white); }

/* Sits on the pixel grid deliberately: crispEdges, integer coordinates,
   no anti-aliasing. It reads as a game sprite because it is drawn like one. */
/* The sprite bounces; the shadow belongs to the floor and stays there,
   spreading and darkening as the sword lands. Two animations on the same
   clock rather than one filter travelling with the sprite. */
.slot__stage {
  order: -1;
  position: relative;
  display: block;
  padding-bottom: 16px;
}
.slot__stage::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 54%; height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              rgba(198, 58, 36, 0.5), rgba(198, 58, 36, 0) 70%);
  transform: translateX(-50%) scale(0.7);
  animation: land 1.9s cubic-bezier(0.3, 0, 0.4, 1) infinite;
  pointer-events: none;
}

.slot__emblem {
  display: block;
  width: clamp(78px, 7.5vw, 104px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(198, 58, 36, 0.22));
  animation: bounce 1.9s cubic-bezier(0.3, 0, 0.4, 1) infinite;
  will-change: transform;
}

@keyframes land {
  0%   { transform: translateX(-50%) scale(0.68); opacity: 0.30; }
  38%  { transform: translateX(-50%) scale(1);    opacity: 0.85; }
  46%  { transform: translateX(-50%) scale(1.14); opacity: 1; }
  54%  { transform: translateX(-50%) scale(1);    opacity: 0.85; }
  100% { transform: translateX(-50%) scale(0.68); opacity: 0.30; }
}

/* Weighted like a real bounce: quick fall, brief squash at the floor, slow
   rise. An even sine just reads as floating. */
@keyframes bounce {
  0%   { transform: translateY(-22px) scaleY(1.06); }
  38%  { transform: translateY(0)     scaleY(1); }
  46%  { transform: translateY(2px)   scaleY(0.9) scaleX(1.08); }
  54%  { transform: translateY(0)     scaleY(1); }
  100% { transform: translateY(-22px) scaleY(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .slot__emblem { animation: none; transform: none; }
  .slot__stage::after { animation: none; opacity: 0.55; }
  html.js .sub { transform: none; opacity: 1; transition: none; }
}

/* ────────────────────────────── questions ───────────────────────────── */

.qa__side { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 10px; }
.qa__note { font-size: 11px; color: var(--muted); }
.qa__list { grid-column: 5 / span 8; }

.qa__item { border-top: 1px solid var(--line); }
.qa__item--last { border-bottom: 1px solid var(--line); }

.qa__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.1vw, 28px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400; line-height: 1.2; letter-spacing: -0.03em;
  color: var(--white);
  transition: color 0.3s ease;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--accent-tx); }

.qa__ico { position: relative; flex: 0 0 14px; height: 14px; margin-top: 0.42em; }
.qa__ico::before, .qa__ico::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.qa__ico::after { transform: rotate(90deg); }
.qa__item[open] .qa__ico::after { transform: rotate(0deg); }

.qa__a { overflow: hidden; }
.qa__a p {
  padding-bottom: clamp(20px, 2.1vw, 28px);
  max-width: 68ch;
  font-size: 16px; line-height: 1.65; color: var(--muted);
  text-wrap: pretty;
}

/* ─────────────────────────────── contact ────────────────────────────── */

.contact__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut);
  align-items: start;
}
.contact__side { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 26px; }
.contact__h { font-size: clamp(40px, 5.3vw, 76px); line-height: 0.92; letter-spacing: -0.05em; }
.contact__p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 42ch; }

/* Shown only to someone arriving from the business card's QR. The
   negative margin pulls it against the heading, inside the column's
   26px gap. */
.met {
  color: var(--accent-tx);
  font-size: 11px;
  margin-bottom: -16px;
}
.contact__links { display: flex; flex-direction: column; gap: 10px; }
.contact__links a { color: var(--text); font-size: 11px; letter-spacing: 0.06em; }
.contact__links a:hover { color: var(--accent-tx); }
.contact__where { font-size: 11px; padding-top: 8px; }

.contact__main { grid-column: 7 / span 6; }

.form { display: flex; flex-direction: column; gap: 26px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }

.field { position: relative; display: flex; flex-direction: column; gap: 9px; }
.lab { font-size: 11px; color: var(--dim); transition: color 0.3s ease; }
.field:focus-within .lab { color: var(--accent-tx); }

.in {
  width: 100%;
  padding: 0 0 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color 0.35s ease;
  appearance: none;
  -webkit-appearance: none;
}
.in::placeholder { color: var(--ghost); }
.in:focus { outline: none; border-bottom-color: var(--accent-tx); }
.in:focus-visible { outline: none; }
.ta { resize: vertical; min-height: 92px; line-height: 1.6; }

.field--sel .chev {
  position: absolute; right: 0; bottom: 16px;
  width: 14px; height: 14px; fill: none; stroke: var(--ghost);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
  transition: transform 0.35s var(--ease), stroke 0.3s ease;
}
.field--sel:focus-within .chev { stroke: var(--accent-tx); transform: translateY(2px); }
.in option { background: var(--surface); color: var(--text); }

.field.is-bad .in { border-bottom-color: var(--accent-tx); }

.hp { position: absolute; left: -9999px; }

.err { font-size: 13.5px; color: var(--accent-tx); }

.form__send {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.form__send .mono { font-size: 11px; }

/* [hidden] is a UA rule (display:none) and ANY author display rule beats
   it — so this panel was visible even while hidden, showing 'Got it.' above
   a form nobody had submitted. Same guard .menu and .slide already carry. */
.sent[hidden] { display: none; }
.sent { display: flex; flex-direction: column; gap: 10px; padding: 34px 0; }
.sent__h { font-family: var(--display); font-size: 42px; font-weight: 400; letter-spacing: -0.04em; color: var(--white); }
.sent__p { color: var(--muted); }

/* ─────────────────────────────── footer ─────────────────────────────── */

.foot { padding: clamp(48px, 5vw, 70px) var(--pad) 44px; border-top: 1px solid var(--line); }

.foot__cta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: clamp(34px, 4.2vw, 58px);
  margin-bottom: clamp(30px, 3.8vw, 54px);
  border-bottom: 1px solid var(--line);
}
.foot__big {
  font-family: var(--display);
  font-size: clamp(46px, 8.4vw, 118px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--white);
  transform: translateX(var(--px, 0px));
  will-change: transform;
}
.foot__act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 8px; }
.foot__act .mono { font-size: 11px; }

.foot__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut);
  align-items: end;
}
.foot__desc { grid-column: 1 / span 4; font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot__nav { grid-column: 6 / span 3; display: flex; flex-direction: column; gap: 8px; }
.foot__nav a { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }
.foot__nav a:hover { color: var(--accent-tx); }
.foot__end { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; text-align: right; }
.foot__end a { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }
.foot__end a:hover { color: var(--accent-tx); }
.foot__end .mono { font-size: 11px; }

/* ═══════════════════════════ animation states ═══════════════════════════
   Everything below is scoped to html.js. Without JS — and before JS runs —
   all text is fully visible and present in the DOM.
   ═══════════════════════════════════════════════════════════════════════ */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}

html.js .ln__i { transform: translateY(105%); }
html.js .ln__i.is-in {
  transform: none;
  transition: transform 0.95s var(--ease);
  transition-delay: var(--d, 0s);
}

html.js [data-hero] { opacity: 0; transform: translateY(18px); }
html.js [data-hero].is-in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ═══════════════════════════════ responsive ═══════════════════════════ */

@media (max-width: 1080px) {
  .hero__lede { grid-column: 1 / span 7; }
  .hero__act  { grid-column: 8 / span 5; }
  .hero__scroll { display: none; }

  .statement .kicker, .facts .kicker, .stories .kicker, .qa__side { grid-column: 1 / span 12; }
  .statement__body, .facts__grid, .slot, .qa__list { grid-column: 1 / span 12; }

  .contact__side { grid-column: 1 / span 12; }
  .contact__main { grid-column: 1 / span 12; margin-top: 12px; }

  .local__portrait { grid-column: 1 / span 5; position: static; }
  .local__body { grid-column: 7 / span 6; }

  .svc__h { grid-column: 2 / span 9; }
  .svc__p { grid-column: 2 / span 9; margin-top: 8px; }
  .svc__ico { grid-column: 12 / span 1; align-self: start; }
  .svc__sub { grid-column: 2 / span 11; }

  .foot__desc { grid-column: 1 / span 12; }
  .foot__nav  { grid-column: 1 / span 6; }
  .foot__end  { grid-column: 7 / span 6; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .hdr__cta { display: none; }
  .burger { display: flex; }

  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .hero__title { max-width: none; }

  .sec__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .work__note { text-align: left; }

  .work__grid, .work__mini, .facts__grid, .row, .cells { grid-template-columns: minmax(0, 1fr); }
  .facts__grid { gap: 22px; }

  .svc__q { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .svc__n { grid-column: 1; }
  .svc__h { grid-column: 1 / span 2; }
  .svc__p { grid-column: 1 / span 2; margin-top: 0; }
  .svc__ico { grid-column: 2; grid-row: 1; margin-top: 0.2em; }
  .svc__q:hover .svc__h { transform: none; }
  .svc__a-in { grid-template-columns: minmax(0, 1fr); }
  .svc__sub { grid-column: 1; grid-template-columns: minmax(0, 1fr); }

  .qa__q { gap: 16px; }
  .form__send { flex-direction: column; align-items: stretch; gap: 16px; }
  .form__send .btn { justify-content: space-between; }

  /* Deck: one screen at a time, no neighbours peeking in at phone width. */
  .slide { width: 100%; margin-left: 0; left: 0; }
  .deck { perspective: 900px; }
  .deck__stage { height: auto; min-height: 430px; }
  .win__body { height: 288px; padding: 14px; }
  .app { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .quote__right { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
  .scan__head { flex-direction: column; gap: 10px; }
  .scan__meta { text-align: left; }
  .dec__b, .msg--mute, .quote__warn { display: none; }
  .deck__btn { width: 52px; height: 52px; }
  .deck__ctrl { gap: 14px; }
  .deck__dots { gap: 7px; min-width: 0; }
  .deck__dot { width: 18px; }
  .deck__dot.is-on { width: 34px; }

  .local__portrait { grid-column: 1 / span 12; max-width: 280px; }
  .local__body { grid-column: 1 / span 12; }

  .foot__cta { flex-direction: column; align-items: flex-start; gap: 26px; }
  .foot__act { width: 100%; }
  .foot__act .btn { width: 100%; }

  .foot__nav { grid-column: 1 / span 12; }
  .foot__end { grid-column: 1 / span 12; align-items: flex-start; text-align: left; }
}

/* ══════════════════════════ reduced motion ════════════════════════════ */

@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;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal],
  html.js [data-hero] { opacity: 1; transform: none; }
  html.js .ln__i { transform: none; }

  .bar__t i { width: var(--w); }
  .spark i  { transform: scaleY(1); }
  .btn      { transform: none; }
  .foot__mark span { transform: none; }
  .hero__scroll svg { animation: none; }

  /* 3D layers off entirely: no intro, no tilt, no shader (gl.js returns
     before it ever creates a context). */
  .intro { display: none; }
  .card, .mini { transform: none; }
  .card::after { display: none; }
  .gl { display: none; }

  /* Deck flattens into a plain stack — still fully readable, no rotation,
     no auto-advance (main.js never starts the timer). */
  .deck { perspective: none; }
  .deck__stage { height: auto; transform-style: flat; }
  .slide { position: static; width: 100%; margin-left: 0; transform: none; opacity: 1; filter: none; margin-bottom: 40px; }
  .slide:not(.is-active) { pointer-events: auto; }
  .slide[hidden] { display: block; }
  .deck__ctrl { display: none; }
}
