/* MG Local Web: shared styles for the main site (home SL/EN, niche pages, case studies).
   Brand: lime on near-black, Space Grotesk + Inter, chamfered corners from the logo plate. */

@property --bd {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(243, 242, 238, 0.18);
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0E0E0C;
  --bg-2: #141412;
  --bg-3: #1B1B18;
  --bg-4: #23231F;
  --text: #F3F2EE;
  --muted: #A9A8A1;
  --dim: #85847D;
  --line: rgba(243, 242, 238, 0.1);
  --line-2: rgba(243, 242, 238, 0.18);
  --lime: #C6F135;
  --lime-soft: rgba(198, 241, 53, 0.14);
  --ink: #0E0E0C;
  --paper: #F3F2EE;
  --paper-2: #E7E6E0;
  --paper-text: #3A3A35;
  --paper-line: rgba(14, 14, 12, 0.12);
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --hdr: 72px;
  --section: clamp(72px, 9.6vw, 164px);
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --fs-hero: clamp(2.6rem, 1.05rem + 6.5vw, 7.75rem);
  --fs-h2: clamp(2.05rem, 1.05rem + 4vw, 5rem);
  --fs-h3: clamp(1.45rem, 1rem + 1.4vw, 2.25rem);
  --fs-lede: clamp(1.03rem, 0.98rem + 0.3vw, 1.22rem);
}

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

/* The chamfered corners of the logo plate. Declared on each element that clips,
   so var(--c) resolves to that element's own corner size. */
.ch, .chb, .chb::before, .tag, .btn, .btn-ghost::before, .lang, .flowcard .ic, .flow-tab, .svc-icon,
.sys-tag, .sys-port, .sys-num, .shot, .shot img, .shot-wide, .shot-wide img, .step-num, .faq-ic, .form-status, .portrait, .pain-num {
  --chamfer: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  --chamfer-in: polygon(calc(var(--c) - 0.42px) 0, calc(100% - var(--c) + 0.42px) 0, 100% calc(var(--c) - 0.42px), 100% calc(100% - var(--c) + 0.42px), calc(100% - var(--c) + 0.42px) 100%, calc(var(--c) - 0.42px) 100%, 0 calc(100% - var(--c) + 0.42px), 0 calc(var(--c) - 0.42px));
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 12px);
}

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

body.menu-open { overflow: hidden; }

img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

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

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Chamfer motif ---------- */

.ch { --c: 10px; clip-path: var(--chamfer); }

.chb {
  --c: 18px;
  --bd: var(--line-2);
  --fill: var(--bg-2);
  position: relative;
  isolation: isolate;
  background: var(--bd);
  clip-path: var(--chamfer);
  transition: --bd 0.5s var(--ease);
}

.chb::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(243, 242, 238, 0.05), rgba(243, 242, 238, 0) 44%), var(--fill);
  clip-path: var(--chamfer-in);
}

/* ---------- Labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--lime);
  clip-path: polygon(3px 0, 7px 0, 10px 3px, 10px 7px, 7px 10px, 3px 10px, 0 7px, 0 3px);
}

.eyebrow b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

.tag {
  --c: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-3);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.tag-lime { background: var(--lime); color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  --c: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}

.btn:hover { background: #D6FF4D; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }

.btn-roll { display: block; overflow: hidden; height: 1.15em; }
.btn-roll > span {
  display: block;
  line-height: 1.15;
  transition: transform 0.55s var(--ease);
}
.btn-roll > span::after {
  content: attr(data-t);
  display: block;
}
.btn:hover .btn-roll > span { transform: translateY(-50%); }

.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn .ext { transition: transform 0.45s var(--ease); }
.btn:hover .ext { transform: translate(2px, -2px); }
.btn .down { transition: transform 0.45s var(--ease); }
.btn:hover .down { transform: translateY(3px); }

.btn-ghost {
  --c: 10px;
  --bd: rgba(243, 242, 238, 0.32);
  --fill: var(--bg);
  isolation: isolate;
  background: var(--bd);
  color: var(--text);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--chamfer-in);
  transition: background-color 0.35s var(--ease);
}
.btn-ghost:hover { background: var(--lime); }
.btn-ghost:hover::before { background: var(--bg-3); }
.btn-ghost:focus-visible { outline-color: var(--lime); }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; --c: 8px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.link-arrow:hover { background-size: 100% 1px; color: var(--lime); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.hdr.is-solid {
  background: rgba(14, 14, 12, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.hdr.is-hidden { transform: translateY(-100%); }

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--hdr);
}

.brand { display: block; flex: none; }
.brand img { width: 194px; height: 28px; }

.nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.lang {
  --c: 6px;
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-3);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s, background-color 0.3s;
}
.lang:hover { color: var(--ink); background: var(--lime); }

.hdr-cta { flex: none; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 2px 0 8px;
  border: 0;
  background: none;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.menu-btn .bars { position: relative; width: 24px; height: 12px; }
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--hdr) + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0.6s;
  overflow-y: auto;
}

.mmenu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.6s var(--ease-in-out);
}

.mmenu-links { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: mm; }

.mmenu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

/* numbered by CSS, so the order can never get out of step with the list */
.mmenu-links a::before {
  counter-increment: mm;
  content: counter(mm, decimal-leading-zero);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.mmenu.is-open .mmenu-links a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu-links li:nth-child(2) a { transition-delay: 50ms; }
.mmenu.is-open .mmenu-links li:nth-child(3) a { transition-delay: 100ms; }
.mmenu.is-open .mmenu-links li:nth-child(4) a { transition-delay: 150ms; }
.mmenu.is-open .mmenu-links li:nth-child(5) a { transition-delay: 200ms; }
.mmenu.is-open .mmenu-links li:nth-child(6) a { transition-delay: 250ms; }
.mmenu.is-open .mmenu-links li:nth-child(7) a { transition-delay: 300ms; }

.mmenu-foot { display: grid; gap: 18px; margin-top: auto; padding-top: 36px; }
.mmenu-foot .btn { justify-self: start; }
.mmenu-foot p { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.mmenu-foot a:hover { color: var(--lime); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--hdr) + clamp(32px, 6vh, 80px)) 0 clamp(28px, 5vh, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 88% 92%, #1C2408 0%, rgba(14, 14, 12, 0) 70%),
    var(--bg);
}

.hero-bg i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: drift var(--dur, 16s) ease-in-out infinite alternate;
}

.hero-bg .b1 {
  width: 90vmax;
  height: 90vmax;
  right: -38vmax;
  bottom: -52vmax;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.5), rgba(198, 241, 53, 0.16) 42%, rgba(198, 241, 53, 0) 72%);
  --dur: 14s;
}

.hero-bg .b2 {
  width: 70vmax;
  height: 70vmax;
  left: -30vmax;
  top: -42vmax;
  background: radial-gradient(closest-side, rgba(110, 140, 25, 0.32), rgba(110, 140, 25, 0) 70%);
  --dur: 19s;
  animation-direction: alternate-reverse;
}

.hero-bg .b3 {
  width: 46vmax;
  height: 46vmax;
  right: 4vmax;
  top: 4vmax;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.2), rgba(198, 241, 53, 0) 70%);
  --dur: 11s;
}

.hero.is-off .hero-bg i,
.hero.gl-on .hero-bg i { animation-play-state: paused; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7vmax, -5vmax, 0) scale(1.08); }
  100% { transform: translate3d(5vmax, -9vmax, 0) scale(0.94); }
}

.hero-gl {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-gl.is-on { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 14, 12, 0.82) 0%, rgba(14, 14, 12, 0.45) 42%, rgba(14, 14, 12, 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 14, 12, 0) 22%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(243, 242, 238, 0.045) 1px, transparent 1px);
  background-size: calc((100% - var(--gutter) * 2) / 6) 100%;
  background-position: var(--gutter) 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(32px, 5vw, 96px);
  flex: 1;
}

.hero .eyebrow { grid-column: 1 / -1; }

.hero-title {
  grid-column: 1 / -1;
  margin-top: clamp(22px, 3.6vh, 40px);
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-wrap: initial;
}

.hero-title .ln { display: block; }
.hero-title .nw { white-space: nowrap; }
.hero-title .ln-3 { color: var(--lime); }

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.w > span { display: inline-block; }

.hero-title .w > span {
  transform: translateY(110%);
  animation: word-up 1.05s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--i) * 55ms);
}

@keyframes word-up { to { transform: none; } }

.hero-foot {
  grid-column: 1;
  align-self: end;
  display: grid;
  gap: 28px;
  margin-top: clamp(28px, 5vh, 56px);
}

.hero-lede {
  max-width: 50ch;
  font-size: clamp(17px, 1.05rem + 0.25vw, 20px);
  line-height: 1.55;
  color: #D3D2CB;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 1s var(--ease) forwards;
  animation-delay: calc(0.5s + var(--d, 0s));
}

@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Signature piece: one inquiry travelling through the system, in three trades */

.flowcard {
  --c: 16px;
  --fill: rgba(20, 20, 18, 0.92);
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  width: 100%;
  padding: 18px 20px 8px;
}

.flowcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.flowcard-head b { font-weight: 500; color: var(--text); }

.flow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.flow-tab {
  --c: 6px;
  position: relative;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  background: var(--bg-4);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s, background-color 0.3s;
}

.flow-tab:hover { color: var(--text); }
.flow-tab[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

/* thin timer on the active tab while the card cycles on its own */
.flow-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(14, 14, 12, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}
.flowcard.is-cycling .flow-tab[aria-pressed="true"]::after { animation: flow-timer var(--flow-ms, 7000ms) linear forwards; }
@keyframes flow-timer { to { transform: scaleX(1); } }

.flow-list { display: none; margin: 0; padding: 0; list-style: none; min-height: 268px; }
.flow-list.is-active { display: block; }

.flow-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
}

.flow-list li:last-child { border-bottom: 0; }

.flow-list.is-active li {
  animation: flow-in 0.7s var(--ease) both;
  animation-delay: calc(0.12s + var(--i) * 0.42s);
}

.fade-up .flow-list.is-first li { animation-delay: calc(1.2s + var(--i) * 0.5s); }

@keyframes flow-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.flowcard .ic {
  --c: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--bg-4);
  clip-path: var(--chamfer);
  color: var(--lime);
}

.flowcard .ic svg { width: 15px; height: 15px; }
.flow-list li:first-child .ic { background: var(--lime); color: var(--ink); }
.flow-list strong { display: block; font-weight: 500; color: var(--text); }
.flow-list span { color: var(--muted); }
.flow-list time { font-family: var(--display); font-size: 12.5px; color: var(--dim); white-space: nowrap; padding-top: 2px; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee li {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding-right: clamp(20px, 2.6vw, 40px);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(243, 242, 238, 0.55); }

.marquee li::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  flex: none;
  background: var(--lime);
  clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.sec { position: relative; padding: var(--section) 0; }
.sec-alt { background: var(--bg-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 112px);
  margin-bottom: clamp(48px, 6vw, 88px);
}

.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { max-width: 44ch; color: var(--muted); font-size: var(--fs-lede); line-height: 1.55; }

/* ---------- Problem ---------- */

.pains { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.pain {
  display: grid;
  grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr);
  gap: 16px clamp(24px, 4vw, 72px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.pain-num {
  --c: 8px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 36px;
  background: var(--bg-3);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
}

.pain h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.05; }
.pain p { color: var(--muted); max-width: 52ch; }

.pain-out {
  margin-top: clamp(36px, 5vw, 64px);
  max-width: 26ch;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.pain-out em { font-style: normal; color: var(--lime); }

/* ---------- Services ---------- */

.svcs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}

.svc {
  --c: 24px;
  --fill: var(--bg);
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 2.6vw, 40px);
  min-height: 100%;
  padding: clamp(24px, 2.6vw, 40px) clamp(24px, 2.6vw, 40px) 0;
  overflow: hidden;
}

.svc-1 { grid-column: span 12; }
.svc-1.is-wide .svc-visual { align-self: center; }
.svc-2, .svc-3 { grid-column: span 6; }
.svc-4 { grid-column: span 7; }
.svc-5 { grid-column: span 5; }

.svc.is-wide {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto;
  padding-bottom: 0;
}

/* light that follows the pointer (set by site.js); a fixed corner glow without it */
.spot::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 85%) var(--my, 0%), rgba(198, 241, 53, 0.16), rgba(198, 241, 53, 0) 62%);
  clip-path: var(--chamfer-in);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.spot:hover { --bd: rgba(198, 241, 53, 0.55); }
.spot:hover::after { opacity: 1; }

.svc-text { display: flex; flex-direction: column; min-width: 0; padding-bottom: clamp(24px, 2.6vw, 40px); }

.svc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(28px, 3.4vw, 56px);
}

.svc-num {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.svc-icon {
  --c: 12px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--bg-4);
  clip-path: var(--chamfer);
  color: var(--lime);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.svc:hover .svc-icon { background: var(--lime); color: var(--ink); }
.svc-icon svg { width: 28px; height: 28px; }

.svc h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.02; }
.svc-lead { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 46ch; }

.get-label {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.get { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.get li, .case-body li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.45;
  color: #DAD9D2;
}

.get li::before, .case-body li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--lime);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.svc-note { margin-top: 14px; font-size: 14px; color: var(--dim); }

.svc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: auto; padding-top: 26px; }
.svc-links .link-arrow { font-size: 15.5px; }
.svc-links .link-arrow.is-main { color: var(--lime); background-size: 100% 1px; }

/* visuals */

.svc-visual { position: relative; min-width: 0; align-self: end; }
.svc.is-wide .svc-visual { align-self: stretch; }

.vis-frame {
  --c: 16px;
  position: relative;
  padding: 6px;
  background: linear-gradient(160deg, #2E2E29, #121210 60%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c));
  transition: transform 0.9s var(--ease);
}
.vis-frame img { width: 100%; clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%, 0 11px); }

/* 01: two site screenshots, fanned, rising from the bottom edge */
.vis-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; height: clamp(170px, 15.5vw, 236px); }
.vis-sites .vis-frame { align-self: start; }
.vis-sites .vis-frame:nth-child(1) { transform: rotate(-2deg) translateY(14px); transform-origin: 0 100%; }
.vis-sites .vis-frame:nth-child(2) { transform: rotate(2deg) translateY(34px); transform-origin: 100% 100%; }
.svc:hover .vis-sites .vis-frame:nth-child(1) { transform: rotate(-3deg) translateY(0); }
.svc:hover .vis-sites .vis-frame:nth-child(2) { transform: rotate(3deg) translateY(12px); }

/* 02 and 03: phone screens rising from the bottom edge */
.vis-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(220px, 22vw, 320px); overflow: hidden; }
.vis-phones .vis-frame { align-self: start; }
.vis-phones .vis-frame:nth-child(2) { margin-top: 28px; }
.svc:hover .vis-phones .vis-frame:nth-child(1) { transform: translateY(-14px); }
.svc:hover .vis-phones .vis-frame:nth-child(2) { transform: translateY(-26px); }

/* 04: the automation in four plain steps */
.vis-flow { position: relative; display: grid; gap: 10px; margin: 0; padding: 0 0 clamp(24px, 2.6vw, 40px); list-style: none; }

.vis-flow::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: calc(clamp(24px, 2.6vw, 40px) + 22px);
  width: 1px;
  background: var(--line-2);
}

.vis-flow::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(198, 241, 53, 0.16), 0 0 22px 4px rgba(198, 241, 53, 0.5);
  animation: flow-pulse 5.2s var(--ease-in-out) infinite;
}

@keyframes flow-pulse {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translateY(var(--travel, 232px)); opacity: 0; }
}

.vis-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 0;
  background: linear-gradient(90deg, rgba(27, 27, 24, 0) 22px, var(--bg-2) 22px);
}

.vis-flow .ic {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg-4);
  color: var(--lime);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.vis-flow .ic svg { width: 20px; height: 20px; }
.vis-flow li:first-child .ic { background: var(--lime); color: var(--ink); }
.vis-flow strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.vis-flow span { display: block; font-size: 14px; color: var(--muted); }
.vis-flow time { font-family: var(--display); font-size: 12.5px; color: var(--dim); white-space: nowrap; }

/* 05: the reel, playing in a phone */
.svc-5.is-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.vis-reel { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 2vw, 32px); height: 100%; }

.reel-phone {
  --c: 22px;
  position: relative;
  width: min(100%, 250px);
  padding: 7px 7px 0;
  background: linear-gradient(160deg, #3A3A34, #121210 60%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c));
}
.reel-phone video, .reel-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  background: var(--bg-3);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}

.reel-meta { display: grid; gap: 8px; padding-bottom: clamp(24px, 2.6vw, 40px); font-family: var(--display); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.reel-meta b { display: block; font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--text); text-transform: none; }

/* ---------- System: one inquiry, start to finish ---------- */

.sys { background: var(--bg-2); overflow: hidden; }
.sys-pin { position: relative; }
.sys .sec-head { margin-bottom: clamp(40px, 5vw, 72px); }
.sys-track { position: relative; }

.sys-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sys-base { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 7; }
.sys-prog { fill: none; stroke: var(--lime); stroke-width: 2; }
.sys-glow { fill: none; stroke: var(--lime); stroke-width: 10; opacity: 0.16; filter: blur(6px); }

.sys-dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(198, 241, 53, 0.18), 0 0 32px 6px rgba(198, 241, 53, 0.45);
  pointer-events: none;
  opacity: 0;
}

.sys-tag {
  --c: 6px;
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 10px;
  background: var(--lime);
  color: var(--ink);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sys-nodes {
  --rail: clamp(92px, 11vh, 120px);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sys-node { position: relative; padding-top: var(--rail); --py: 18px; }
.sys-node:nth-child(even) { --py: calc(var(--rail) - 30px); }

.sys-node::before {
  content: "";
  position: absolute;
  left: 26px;
  top: var(--py);
  height: calc(var(--rail) - var(--py));
  border-left: 1px dashed var(--line-2);
  transition: border-color 0.4s var(--ease);
}

.sys-port {
  --c: 4px;
  position: absolute;
  left: 26px;
  top: var(--py);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--bg-4);
  clip-path: var(--chamfer);
  transition: background-color 0.4s var(--ease);
}

.sys-card {
  --c: 16px;
  --fill: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 20px 20px 18px;
  transition: --bd 0.4s;
}

.sys-card-top { display: flex; justify-content: space-between; align-items: center; }

.sys-num {
  --c: 6px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  background: var(--bg-4);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.sys-card svg { width: 22px; height: 22px; color: var(--dim); transition: color 0.4s var(--ease); }
.sys-card h3 { font-size: clamp(1.15rem, 0.9rem + 0.6vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.05; }
.sys-card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.sys-ex {
  margin-top: auto;
  padding: 10px 12px;
  background: var(--bg-3);
  border-left: 2px solid var(--line-2);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.4;
  color: var(--dim);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.sys-node.is-on .sys-port { background: var(--lime); }
.sys-node.is-on::before { border-left: 1px solid var(--lime); }
.sys-node.is-on .sys-card { --bd: rgba(198, 241, 53, 0.5); }
.sys-node.is-on .sys-num { background: var(--lime); color: var(--ink); }
.sys-node.is-on .sys-card svg { color: var(--lime); }
.sys-node.is-on .sys-ex { color: var(--text); border-left-color: var(--lime); background: rgba(198, 241, 53, 0.07); }

.sys.is-pinned {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--hdr) + 3vh) 0 3vh;
}

.sys.is-pinned .sys-pin { width: 100%; }
.sys.is-pinned .sec-head { margin-bottom: 5.5vh; }
.sys.is-pinned .sec-head h2 { font-size: min(var(--fs-h2), 7.4vh); }
.sys.is-pinned .sys-note { margin-top: 3vh; }

.sys-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--dim);
}

.sys-note b { font-weight: 500; color: var(--muted); }

/* ---------- Case studies ---------- */

.work-fine { margin-top: 14px; font-size: 14px; color: var(--dim); }

.cases { display: grid; gap: clamp(72px, 9vw, 136px); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.case:nth-child(even) .case-media { order: 2; }

.case-media { min-width: 0; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.shots .shot:nth-child(2) { margin-top: clamp(28px, 5vw, 72px); }

.shot, .shot-wide {
  --c: 20px;
  position: relative;
  margin: 0;
  padding: 7px;
  background: linear-gradient(160deg, #2E2E29, #121210 60%);
  clip-path: var(--chamfer);
}

.shot img, .shot-wide img {
  --c: 14px;
  width: 100%;
  clip-path: var(--chamfer);
  background: var(--bg-3);
}

.shot figcaption, .shot-wide figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot figcaption::before, .shot-wide figcaption::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--lime);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.shots-mixed { position: relative; display: block; padding: 0 0 clamp(40px, 7vw, 96px); }
.shots-mixed .shot-wide { margin-right: 14%; }
.shots-mixed .shot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  margin: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.case-body h3 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.25rem); letter-spacing: -0.045em; }

.case-prob { margin-top: 20px; color: var(--muted); max-width: 46ch; }

.case-prob b, .case-get {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.case-get { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.case-body ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.case-body .btn { margin-top: 30px; }

/* ---------- All demos: filterable grid ---------- */

.demos { margin-top: clamp(80px, 10vw, 144px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }

.demos-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 32px;
  margin-bottom: 28px;
}
.demos-head h3 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.25rem); letter-spacing: -0.045em; }
.demos-head p { max-width: 40ch; color: var(--muted); font-size: 16px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }

.filter {
  --c: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--bg-3);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}
.filter b { font-weight: 500; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.filter:hover { color: var(--text); background: var(--bg-4); }
.filter[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.filter[aria-pressed="true"] b { color: rgba(14, 14, 12, 0.6); }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-item { min-width: 0; transition: opacity 0.28s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--fi, 0) * 35ms); }
.demo-item[hidden] { display: none; }
.demo-grid.is-switching .demo-item { opacity: 0; transform: translateY(14px) scale(0.985); transition-delay: 0s; }

.demo-card {
  --c: 20px;
  --fill: var(--bg-2);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7px 7px 0;
}

.demo-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-3);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.demo-thumb .demo-desk { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease), filter 0.6s; filter: saturate(0.92) brightness(0.9); }
.demo-card:hover .demo-thumb .demo-desk { transform: scale(1.05); filter: none; }

.demo-thumb::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg, rgba(14, 14, 12, 0.72), rgba(14, 14, 12, 0));
  pointer-events: none;
}

.demo-phone {
  --c: 9px;
  position: absolute;
  right: 5%;
  bottom: -10%;
  z-index: 1;
  width: 21%;
  padding: 3px;
  background: linear-gradient(160deg, #4A4A44, #121210 60%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: transform 0.9s var(--ease);
}
.demo-phone img { display: block; width: 100%; height: auto; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.demo-card:hover .demo-phone { transform: translateY(-9%); }

.demo-go {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: var(--ink);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  transform: translateY(70px);
  transition: transform 0.55s var(--ease);
}
.demo-go svg { width: 18px; height: 18px; }
.demo-card:hover .demo-go, .demo-card:focus-visible .demo-go { transform: none; }

.demo-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 12px 18px; }
.demo-kind { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.demo-line { font-family: var(--display); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); }
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.demo-tags span { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 4px 8px; background: var(--bg-3); }
.demo-tags .is-client { color: var(--ink); background: var(--lime); }

.demos-empty { display: none; color: var(--muted); }

/* ---------- LODE: what a modern website can do ---------- */

.lode { overflow: hidden; background: #0A0A09; }

.lode::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 120vw;
  height: 80vw;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 228, 218, 0.1), rgba(232, 228, 218, 0) 70%);
  pointer-events: none;
}

.lode .wrap { position: relative; }
.lode-word { color: #E8E4DA; }

.lode-stage {
  --c: 26px;
  position: relative;
  display: block;
  padding: 8px;
  background: linear-gradient(160deg, #3A3A34, #151513 55%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transform-origin: 50% 0;
  will-change: transform;
}

.lode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 14px;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lode-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4A4A44; }
.lode-bar .url { margin-left: 10px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lode-bar .rec { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.lode-bar .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF4D1A; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }

.lode-view {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #E8E4DA;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}
.lode-view img, .lode-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lode-view video { opacity: 0; transition: opacity 0.8s ease; }
.lode-view video.is-on { opacity: 1; }

.lode-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vw, 48px);
  transform: translateX(-50%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.lode-stage:hover .lode-cta { background: #D6FF4D; }
.lode-stage:hover .lode-cta .btn-roll > span { transform: translateY(-50%); }
.lode-stage:hover .lode-cta .ext { transform: translate(2px, -2px); }

.lode-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(28px, 3.4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.lode-facts li { padding: 22px 24px 0 0; border-right: 1px solid var(--line); }
.lode-facts li + li { padding-left: 24px; }
.lode-facts li:last-child { border-right: 0; }
.lode-facts b { display: block; font-family: var(--display); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #E8E4DA; }
.lode-facts span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.lode-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; margin-top: clamp(28px, 3.4vw, 44px); color: var(--dim); font-size: 15px; }

/* ---------- Light block: process + FAQ ---------- */

.light {
  position: relative;
  background: var(--paper);
  color: var(--paper-text);
}

.light h2, .light h3 { color: var(--ink); }
.light .eyebrow { color: #5E5D57; }
.light .eyebrow b { color: var(--ink); }
.light .eyebrow::before { background: var(--ink); }
.light .sec-head p { color: #55544E; }
.light ::selection { background: var(--ink); color: var(--lime); }
.light :focus-visible { outline-color: var(--ink); }

.light-mark { width: 74px; margin-bottom: 36px; }

.steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }

.step {
  --c: 24px;
  --bd: var(--paper-line);
  --fill: #FBFAF7;
  position: sticky;
  top: calc(var(--hdr) + 24px + var(--i) * 18px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 72px);
  min-height: clamp(240px, 34vh, 340px);
  padding: clamp(26px, 3.6vw, 52px);
  overflow: hidden;
}

.step::after {
  content: attr(data-n);
  position: absolute;
  right: clamp(-12px, -1vw, 0px);
  bottom: -0.2em;
  z-index: -1;
  font-family: var(--display);
  font-size: clamp(8rem, 4rem + 14vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14, 14, 12, 0.09);
  pointer-events: none;
}

.step-num {
  --c: 14px;
  display: grid;
  place-items: center;
  width: clamp(76px, 8vw, 116px);
  aspect-ratio: 59 / 40;
  background: var(--ink);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.step h3 { font-size: clamp(1.8rem, 1.1rem + 2.1vw, 3.2rem); letter-spacing: -0.045em; }
.step-text p { margin-top: 18px; font-size: 17px; color: var(--paper-text); max-width: 44ch; }

.step ul {
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--paper-line);
}

.step li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.step li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 6vw, 112px);
  align-items: start;
}

.faq-side { position: sticky; top: calc(var(--hdr) + 40px); }
.faq-side h2 { font-size: var(--fs-h2); margin-top: 28px; }
.faq-side p { margin-top: 24px; color: #55544E; max-width: 36ch; }
.faq-side .link-arrow { margin-top: 20px; color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); }
.faq-side .link-arrow:hover { color: var(--ink); }

.faq-list { border-top: 1px solid var(--paper-line); }

.faq-item { border-bottom: 1px solid var(--paper-line); interpolate-size: allow-keywords; }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-ic {
  --c: 7px;
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--ink);
  clip-path: var(--chamfer);
  transition: background-color 0.4s var(--ease);
}

.faq-ic::before,
.faq-ic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: var(--lime);
  transition: transform 0.45s var(--ease);
}

.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic::after { transform: rotate(0deg); }
.faq-item summary:hover .faq-ic { background: #2A2A25; }

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete;
}

.faq-item[open]::details-content { block-size: auto; }

.faq-a { padding: 0 64px 28px 0; font-size: 16.5px; color: var(--paper-text); max-width: 62ch; }
.faq-a a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 6vw, 112px);
  align-items: center;
}

.portrait {
  --c: 26px;
  position: relative;
  margin: 0;
  max-width: 440px;
  padding: 8px;
  background: linear-gradient(160deg, #2E2E29, #121210 60%);
  clip-path: var(--chamfer);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-3);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px 10px;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait figcaption b { font-weight: 500; color: var(--text); }

.about-copy h2 { margin-top: 28px; font-size: var(--fs-h2); }
.about-copy > p { margin-top: 24px; max-width: 56ch; color: #D3D2CB; font-size: clamp(17px, 1rem + 0.3vw, 19px); }
.about-copy > p + p { margin-top: 16px; color: var(--muted); }

.about-facts { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 640px; }
.about-facts li {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.about-facts span { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }

/* ---------- Contact ---------- */

.contact { overflow: hidden; }

.contact::before {
  content: "";
  position: absolute;
  right: -20vw;
  top: -10vw;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.12), rgba(198, 241, 53, 0));
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(32px, 6vw, 112px);
  align-items: start;
}

.contact h2 { margin-top: 28px; font-size: var(--fs-h2); }
.contact-copy > p { margin-top: 24px; color: var(--muted); max-width: 44ch; }

.contact-points { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
  color: var(--text);
}
.contact-points svg { width: 18px; height: 18px; color: var(--lime); flex: none; }

.direct { margin-top: 40px; display: grid; gap: 18px; justify-items: start; }
.direct small { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(1.2rem, 0.6rem + 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.3s;
}

.mail svg { width: 0.85em; height: 0.85em; flex: none; color: var(--lime); transition: transform 0.45s var(--ease); }
.mail:hover { color: var(--lime); }
.mail:hover svg { transform: translate(3px, -3px); }

.ig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 17px;
  color: var(--muted);
  transition: color 0.3s;
}
.ig img { width: 32px; height: 32px; }
.ig:hover { color: var(--text); }

.form {
  --c: 24px;
  --fill: var(--bg-2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  padding: clamp(24px, 3.4vw, 52px);
}

.form-title {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field.is-wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.req { color: var(--lime); }
.opt { color: var(--dim); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6F135' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 20px;
}

.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6F6E68; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(243, 242, 238, 0.4); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--lime);
  box-shadow: 0 1px 0 0 var(--lime);
}

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 4px;
}

.form-actions small { max-width: 34ch; font-size: 13.5px; line-height: 1.5; color: var(--dim); }

.submit[disabled] { cursor: wait; opacity: 0.85; }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(14, 14, 12, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit[aria-busy="true"] .spinner { display: block; }
.submit[aria-busy="true"] svg { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  --c: 10px;
  grid-column: 1 / -1;
  display: none;
  padding: 14px 16px;
  clip-path: var(--chamfer);
  font-size: 15px;
  line-height: 1.5;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--lime); color: var(--ink); }
.form-status.is-error { background: #3A1A12; color: #FFB59E; }
.form-status.is-info { background: var(--bg-4); color: var(--text); }
.form-status a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.foot {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: end;
}

.foot-sign { width: min(100%, 380px); }
.foot-sign img { width: 100%; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-cols h2 {
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-cols li { color: var(--muted); }
.foot-cols a { color: var(--muted); transition: color 0.3s; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--lime); }

.foot-claim {
  margin-top: clamp(48px, 6vw, 80px);
  font-family: var(--display);
  font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 24ch;
  text-wrap: balance;
}

.foot-claim em { font-style: normal; color: var(--lime); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}

.foot-bottom img { width: 180px; height: 26px; }
.foot-bottom a:hover { color: var(--lime); }

/* ---------- Scroll reveals (only once site.js is running) ---------- */

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--ri, 0) * 80ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

.reveal-on [data-split] .w > span {
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--wi, 0) * 45ms);
}
.reveal-on [data-split].is-in .w > span { transform: none; }

.reveal-on .shots .shot, .reveal-on .shots-mixed .shot-wide, .reveal-on .shots-mixed .shot {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease);
}
.reveal-on .shots .shot:nth-child(2), .reveal-on .shots-mixed .shot { transition-delay: 0.14s; }
.reveal-on .case-media.is-in .shot, .reveal-on .case-media.is-in .shot-wide { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav, .hdr-cta { display: none; }
  .lang { margin-left: auto; }
  .menu-btn { display: inline-flex; }


  .step { grid-template-columns: auto minmax(0, 1fr); }
  .step ul { grid-column: 2; }
}

@media (max-width: 1023px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case:nth-child(even) .case-media { order: 0; }
  .case-body { max-width: 640px; }
  .pain { grid-template-columns: 64px minmax(0, 1fr); }
  .pain p { grid-column: 2; }
  .faq-grid, .contact-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 340px; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .flowcard { grid-column: 1; grid-row: auto; margin-top: 36px; max-width: 480px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(14, 14, 12, 0.5) 0%, rgba(14, 14, 12, 0.15) 30%, rgba(14, 14, 12, 0.55) 70%, rgba(14, 14, 12, 0.75) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(14, 14, 12, 0) 12%);
  }
  .hero-bg .b1 { width: 130vmax; height: 130vmax; right: -70vmax; top: -18vmax; bottom: auto; }
  .hero-bg .b2 { left: -40vmax; top: auto; bottom: -30vmax; }
  .hero-bg .b3 { width: 70vmax; height: 70vmax; right: -24vmax; top: 34vmax; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .brand img { width: 166px; height: 24px; }
  .hdr-in { gap: 12px; }
  .step { grid-template-columns: minmax(0, 1fr); min-height: 0; top: calc(var(--hdr) + 12px + var(--i) * 12px); }
  .step ul { grid-column: 1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .faq-a { padding-right: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .about-facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .case-body .btn { width: 100%; }

  /* phone screenshots become a swipeable row, large enough to read */
  .shots {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .shot { flex: 0 0 68%; scroll-snap-align: center; }
  .shots .shot:nth-child(2) { margin-top: 0; }
  .shots-mixed { padding-bottom: 56px; }
  .shots-mixed .shot-wide { margin-right: 10%; }
  .shots-mixed .shot { width: 42%; }
}

@media (max-width: 400px) {
  .flowcard { padding: 16px 14px 6px; }
  .flow-list li { grid-template-columns: 26px minmax(0, 1fr); }
  .flow-list time { grid-column: 2; padding-top: 4px; }
  .flow-list { min-height: 330px; }
  .flow-tab { font-size: 12px; padding: 0 4px; }
  .tag { font-size: 11.5px; padding: 6px 10px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-cols > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg i, .marquee-track { animation: none; }
  .hero-title .w > span, .fade-up { animation: none; transform: none; opacity: 1; }
  .flow-list.is-active li, .fade-up .flow-list.is-first li { animation: none; }
  .flowcard.is-cycling .flow-tab[aria-pressed="true"]::after { animation: none; }
  .mmenu, .mmenu-links a { transition: none; }
  .faq-item::details-content { transition: none; }
  .btn-roll > span, .btn svg { transition: none; }
  .reveal-on [data-reveal], .reveal-on [data-split] .w > span,
  .reveal-on .shots .shot, .reveal-on .shots-mixed .shot-wide, .reveal-on .shots-mixed .shot {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- Portrait placeholder (until a photo is added, see the comment in the HTML) ---------- */

.portrait-ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 55% at 78% 88%, rgba(198, 241, 53, 0.34), rgba(198, 241, 53, 0) 70%),
    linear-gradient(90deg, rgba(243, 242, 238, 0.05) 1px, transparent 1px) 0 0 / 25% 100%,
    var(--bg-3);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}
.portrait-ph img { width: 34%; aspect-ratio: 59 / 40; opacity: 0.9; clip-path: none; background: none; }

/* ---------- Small-screen trims: keep the page short on a phone ---------- */

.form-title span:last-child { white-space: nowrap; }
.portrait.is-placeholder { max-width: 300px; }

@media (max-width: 1023px) {
  .portrait.is-placeholder { max-width: 200px; }
}

@media (max-width: 720px) {
  .step { padding: 22px 22px 24px; gap: 16px; }
  .step ul { display: none; }
  .step-num { width: 64px; font-size: 1.4rem; }
  .step-text p { margin-top: 12px; font-size: 16px; }
  .step::after { font-size: 7rem; }
}

/* ---------- Motion layer (GSAP + Lenis, loaded by site.js) ---------- */

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

[data-magnetic] { will-change: transform; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 2.6vh, 28px);
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--lime), var(--lime)) 0 0 / 100% 40% no-repeat, var(--line-2);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 160%; }
}

/* the light block opens with the chamfer of the logo plate as it scrolls in (--lc is driven by site.js) */
.light {
  --lc: 0px;
  clip-path: polygon(var(--lc) 0, calc(100% - var(--lc)) 0, 100% var(--lc), 100% 100%, 0 100%, 0 var(--lc));
}

/* section headings get a hairline that draws in with the reveal */
.sec-head .eyebrow { position: relative; width: 100%; padding-bottom: 20px; }
.sec-head .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-2);
  transform-origin: left;
}
.light .sec-head .eyebrow::after { background: var(--paper-line); }
.reveal-on .sec-head .eyebrow::after { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.reveal-on .sec-head.is-in .eyebrow::after { transform: scaleX(1); }

/* ---------- Responsive: services, system, demos, LODE ---------- */

@media (max-width: 1100px) {
  .svc-1, .svc-2, .svc-3, .svc-4, .svc-5 { grid-column: span 12; }
  .svc, .svc.is-wide, .svc-5.is-wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-rows: auto; }
  .svc-visual { align-self: stretch; }
  .vis-phones { height: 100%; min-height: 260px; }

  .sys-nodes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sys-node, .sys-node:nth-child(even) { --py: 34px; padding: 0 0 0 52px; }
  .sys-node::before { left: 18px; top: 34px; width: 34px; height: 0; border-left: 0; border-top: 1px dashed var(--line-2); }
  .sys-node.is-on::before { border-left: 0; border-top: 1px solid var(--lime); }
  .sys-port { left: 18px; }
  .sys-tag { display: none; }

  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lode-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lode-facts li { padding: 20px 20px 20px 0; }
  .lode-facts li:nth-child(2) { border-right: 0; }
  .lode-facts li:nth-child(odd) { padding-left: 0; }
  .lode-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-scroll { display: none; }
}

@media (max-width: 720px) {
  .svc, .svc.is-wide, .svc-5.is-wide { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 20px 0; }
  .svc-top { margin-bottom: 24px; }
  .svc-icon { width: 52px; height: 52px; }
  .svc-text { padding-bottom: 0; }
  .svc-links { padding-top: 22px; }
  .vis-sites { height: 150px; gap: 10px; }
  .vis-phones { height: 230px; min-height: 0; }
  .vis-flow { padding-bottom: 22px; }
  .vis-flow::before { bottom: 44px; }
  .vis-reel { justify-content: flex-start; }
  .reel-phone { width: 46%; }
  .reel-meta { padding-bottom: 22px; }

  .demos-head { grid-template-columns: minmax(0, 1fr); }
  .filters {
    flex-wrap: nowrap;
    margin: 0 calc(var(--gutter) * -1) 22px;
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .demo-grid { gap: 10px; }
  .demo-card { --c: 14px; padding: 5px 5px 0; }
  .demo-thumb { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
  .demo-info { gap: 6px; padding: 12px 8px 14px; }
  .demo-kind { font-size: 11px; letter-spacing: 0.08em; }
  .demo-line { font-size: 0.95rem; }
  .demo-tags span { font-size: 10.5px; padding: 3px 6px; }
  .demo-tags span { display: none; }
  .demo-tags span:last-child, .demo-tags .is-client { display: inline-block; }
  .demo-go { display: none; }

  .lode-stage { --c: 16px; padding: 5px; }
  .lode-bar { padding: 6px 8px 10px; font-size: 11px; }
  .lode-bar .rec { display: none; }
  .lode-view { clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }
  .lode-cta { position: static; transform: none; width: 100%; margin-top: 5px; box-shadow: none; }
  .lode-facts li, .lode-facts li + li { padding: 16px 12px 16px 0; }
  .lode-facts li:nth-child(even) { padding-left: 14px; }
  .lode-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vis-flow::after, .lode-bar .rec::before, .hero-scroll::after { animation: none; }
  .vis-flow::after { opacity: 0; }
  .demo-item, .demo-thumb .demo-desk, .demo-phone, .demo-go, .vis-frame { transition: none; }
  .reveal-on .sec-head .eyebrow::after { transform: none; transition: none; }
}

/* case study screens: vertical parallax offset, driven by site.js through --py */
.shot, .shot-wide { translate: 0 var(--py, 0px); }
@media (max-width: 720px) { .shot, .shot-wide { translate: none; } }

/* ---------- Custom cursor (restored from the first site) ---------- */
/* site.js adds .has-cursor only for a mouse, never for touch, pen or reduced motion. */

.cursor, .cursor-dot { display: none; }

.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor select { cursor: pointer; }

.has-cursor .cursor,
.has-cursor .cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.has-cursor .cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--lime);
}

.has-cursor .cursor {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(198, 241, 53, 0.6);
  border-radius: 50%;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s, opacity 0.3s;
}

.cursor-label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.has-cursor .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(198, 241, 53, 0.12); }
.has-cursor .cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: var(--lime); }
.has-cursor .cursor.is-label .cursor-label { opacity: 1; }
.has-cursor .cursor.is-text { opacity: 0; }
.has-cursor .cursor.is-hidden, .has-cursor .cursor-dot.is-hidden { opacity: 0; }

/* ---------- Ambient light behind sections ---------- */
/* Two soft glows per section drift on the compositor (transform only). site.js removes them
   while their section is off screen, so they cost nothing there. */

.amb {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.amb i {
  position: absolute;
  border-radius: 50%;
  animation: drift var(--dur, 20s) ease-in-out infinite alternate;
}

.amb .a1 {
  width: 54vmax;
  height: 54vmax;
  left: -22vmax;
  top: -16vmax;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.11), rgba(198, 241, 53, 0.035) 48%, rgba(198, 241, 53, 0) 72%);
  --dur: 23s;
}

.amb .a2 {
  width: 44vmax;
  height: 44vmax;
  right: -16vmax;
  bottom: -18vmax;
  background: radial-gradient(closest-side, rgba(110, 140, 25, 0.2), rgba(110, 140, 25, 0) 70%);
  --dur: 17s;
  animation-direction: alternate-reverse;
}

.amb.amb-flip .a1 { left: auto; right: -22vmax; }
.amb.amb-flip .a2 { right: auto; left: -16vmax; }
.amb.amb-paper .a1 { background: radial-gradient(closest-side, rgba(232, 228, 218, 0.09), rgba(232, 228, 218, 0) 70%); }
.amb.amb-paper .a2 { background: radial-gradient(closest-side, rgba(255, 77, 26, 0.07), rgba(255, 77, 26, 0) 70%); }
.amb.is-off { display: none; }

.sec > .amb ~ .wrap, .page-hero > .amb ~ .wrap { position: relative; z-index: 1; }
.sec > .amb ~ .sys-pin { z-index: 1; }

/* ---------- Selected demos on the homepage; the full list lives on /primeri/ ---------- */

.demos-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(24px, 3vw, 40px);
}
.demos-more p { max-width: 46ch; color: var(--muted); font-size: 15px; }

.demos.is-page { margin-top: 0; padding-top: 0; border-top: 0; }

.page-hero {
  position: relative;
  padding: calc(var(--hdr) + clamp(48px, 8vw, 120px)) 0 clamp(36px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { margin-top: 24px; font-size: var(--fs-h2); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; max-width: 54ch; color: var(--muted); font-size: clamp(17px, 0.9rem + 0.3vw, 19px); }
.page-hero .eyebrow a { color: var(--muted); transition: color 0.3s; }
.page-hero .eyebrow a:hover { color: var(--lime); }
.sec.sec-tight { padding-top: clamp(8px, 2vw, 24px); }

.page-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.page-cta h2 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.25rem); letter-spacing: -0.045em; max-width: 20ch; }
.page-cta p { margin-top: 16px; max-width: 46ch; color: var(--muted); }
.page-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  /* six cards become one swipeable row instead of three rows */
  .demo-grid.is-featured {
    display: flex;
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .demo-grid.is-featured::-webkit-scrollbar { display: none; }
  .demo-grid.is-featured .demo-item { flex: 0 0 78%; scroll-snap-align: start; }
  .demos-more .btn, .page-cta .btn { width: 100%; }
  .page-cta { grid-template-columns: minmax(0, 1fr); }
  .page-cta .btns { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .amb i { animation: none; }
}

/* ---------- Landing pages (/izdelava-spletnih-strani-maribor/, /sr/izrada-sajtova/) ---------- */
/* Service cards without a picture: two per row, one per row on phones. Used only on those pages. */
.svcs.is-text .svc { grid-column: span 6; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
@media (max-width: 720px) {
  .svcs.is-text .svc { grid-column: span 12; }
}

/* =====================================================================
   November 2026: automation-first positioning and visual pass
   New parts: section plates, automation explorer, calculator, solutions,
   device frames, solution pages, phone folds, sticky phone button, 404.
   ===================================================================== */

/* ---------- Section transitions: alternate sections sit on top like the logo plate ---------- */

.sec-alt, .sys {
  --sc: clamp(18px, 3.4vw, 52px);
  background: linear-gradient(180deg, #191917 0, var(--bg-2) 240px);
  clip-path: polygon(var(--sc) 0, calc(100% - var(--sc)) 0, 100% var(--sc), 100% 100%, 0 100%, 0 var(--sc));
}

.lode { background: linear-gradient(180deg, var(--bg) 0, #0A0A09 200px); }

.sec-head h2 { max-width: 20ch; }
.sec-head { margin-bottom: clamp(40px, 5.6vw, 88px); }

/* ---------- Automation explorer ---------- */

.auto-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
  align-items: start;
}

.auto-tabs { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 8px; }

.auto-tab {
  --c: 12px;
  display: grid;
  gap: 6px;
  padding: 16px 18px 17px;
  border: 0;
  background: var(--bg-3);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  text-align: left;
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}

.auto-tab-k {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.auto-tab-t {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  transition: color 0.35s var(--ease);
}

.auto-tab:hover { background: var(--bg-4); }
.auto-tab[aria-pressed="true"] { background: var(--lime); }
.auto-tab[aria-pressed="true"] .auto-tab-k { color: rgba(14, 14, 12, 0.72); }
.auto-tab[aria-pressed="true"] .auto-tab-t { color: var(--ink); }
.auto-tab:focus-visible { outline: 2px solid var(--text); outline-offset: -5px; }

.auto-panels { min-width: 0; }

.auto-panel {
  --c: 24px;
  --fill: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px);
  padding: clamp(22px, 2.8vw, 44px);
}

.auto-panel + .auto-panel { margin-top: 16px; }
.js .auto-panel:not(.is-active) { display: none; }

.auto-flow, .auto-side { min-width: 0; }

.auto-cap {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.auto-title { margin-bottom: 22px; font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.04; }

.auto-steps { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.auto-steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), var(--line-2) 34%);
}

.auto-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 0;
  background: linear-gradient(90deg, rgba(20, 20, 18, 0) 22px, var(--bg-2) 22px);
}

.auto-steps .ic {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg-4);
  color: var(--lime);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.auto-steps .ic svg { width: 20px; height: 20px; }
.auto-steps li:first-child .ic { background: var(--lime); color: var(--ink); }
.auto-steps strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.auto-steps div span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }

.chip {
  padding: 4px 8px;
  background: var(--bg-3);
  font-family: var(--display);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.reveal-on .auto-panel.is-active .auto-steps li {
  animation: flow-in 0.6s var(--ease) both;
  animation-delay: calc(0.05s + var(--i) * 0.09s);
}

/* what lands on the owner's side: a small sample, clearly labelled */
.mock { padding: 2px 14px 4px; background: var(--bg-2); border: 1px solid var(--line); }

.mock-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-row {
  display: grid;
  grid-template-columns: minmax(48px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
}
.mock-row:last-child { border-bottom: 0; }
.mock-row b { font-family: var(--display); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.mock-row span { min-width: 0; color: var(--muted); }

.st { padding: 4px 8px; font-family: var(--display); font-size: 11.5px; font-style: normal; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; }
.st-new { background: var(--lime); color: var(--ink); }
.st-wait { background: rgba(243, 242, 238, 0.1); color: var(--text); }
.st-done { background: rgba(198, 241, 53, 0.14); color: var(--lime); }

/* by hand today, next to what the system does */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); }
.ba-col { padding: 16px 16px 18px; }
.ba-after { background: rgba(198, 241, 53, 0.06); border-left: 1px solid var(--line); }
.ba-h { margin-bottom: 12px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ba-after .ba-h { color: var(--lime); }
.ba ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ba li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.ba-before li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 9px; height: 2px; background: var(--dim); }
.ba-after li { color: #DAD9D2; }
.ba-after li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--lime);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.auto-more { margin-top: 20px; }
.auto-more .link-arrow { font-size: 15.5px; }

/* ---------- Calculator ---------- */

.calc {
  --c: 24px;
  --fill: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  margin-top: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 2.8vw, 44px);
}

.calc-head h3 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.04; }
.calc-head p { margin-top: 14px; font-size: 15.5px; color: var(--muted); max-width: 40ch; }

.calc-fields { display: grid; gap: 16px; }
.calc-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; cursor: pointer; }
.calc-l { font-family: var(--display); font-size: 13.5px; letter-spacing: 0.02em; color: var(--muted); }
.calc-f output { font-family: var(--display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }

.calc-f input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.calc-f input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--line-2); }
.calc-f input[type="range"]::-moz-range-track { height: 4px; background: var(--line-2); }
.calc-f input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 0;
  border-radius: 5px;
  background: var(--lime);
  -webkit-appearance: none;
  appearance: none;
}
.calc-f input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 5px; background: var(--lime); }
.calc-f input[type="range"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.calc-out { display: grid; gap: 18px; padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.calc-out b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.4rem + 3vw, 4.4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--lime);
}
.calc-out p + p b { color: var(--text); }
.calc-out span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.calc-note { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Solutions by industry ---------- */

.inds { margin-top: clamp(56px, 7vw, 104px); }

.inds-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 32px;
  margin-bottom: 26px;
}
.inds-head h3 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 3.25rem); letter-spacing: -0.045em; }
.inds-head p { max-width: 40ch; color: var(--muted); font-size: 16px; }

.inds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.inds-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inds-grid li { min-width: 0; }

.ind {
  --c: 18px;
  --fill: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 228px;
  padding: 22px 22px 20px;
}
.sec-alt .ind { --fill: var(--bg); }

.ind-k { font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.ind-t { font-family: var(--display); font-size: 1.38rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.ind-p { font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.ind-go {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  margin-top: auto;
  background: var(--bg-4);
  color: var(--lime);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.ind-go svg { width: 18px; height: 18px; }
.ind:hover .ind-go { background: var(--lime); color: var(--ink); transform: translateX(4px); }

/* ---------- Device frames: desktop capture with the phone in front ---------- */

.device { position: relative; display: block; padding-bottom: 8%; }

.device-desk {
  --c: 18px;
  display: block;
  padding: 6px;
  background: linear-gradient(160deg, #3A3A34, #151513 55%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}

.device-bar { display: flex; align-items: center; gap: 7px; padding: 6px 8px 10px; font-family: var(--display); font-size: 11.5px; letter-spacing: 0.05em; color: var(--muted); }
.device-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4A4A44; }
.device-bar .url { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.device-desk img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-3);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
}

/* a soft dark pool under the phone, so it reads as standing in front */
.device::after {
  content: "";
  position: absolute;
  right: -3%;
  bottom: -3%;
  z-index: 1;
  width: 36%;
  height: 78%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.device-phone {
  --c: 13px;
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 2;
  width: 23%;
  padding: 4px;
  background: linear-gradient(160deg, #55554E, #121210 60%);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: transform 0.9s var(--ease);
}
.device-phone img { display: block; width: 100%; height: auto; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.device:hover .device-phone { transform: translateY(-4%); }

.device-cap { margin-top: 14px; font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Solution pages ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.crumbs a { color: var(--text); transition: color 0.3s; }
.crumbs a:hover { color: var(--lime); }

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}
.page-hero.lp-hero { padding-bottom: clamp(48px, 6vw, 96px); }
.lp-hero-copy { min-width: 0; }
.lp-hero h1 { max-width: 15ch; font-size: clamp(2.15rem, 1.05rem + 3.7vw, 4.5rem); line-height: 0.98; }
.lp-hero .lede { max-width: 52ch; color: #D3D2CB; }
.lp-hero .hero-actions { margin-top: 30px; }

.lp-points { margin: 30px 0 0; padding: 0; list-style: none; max-width: 520px; border-top: 1px solid var(--line); }
.lp-points li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 15.5px; }
.lp-points svg { flex: none; width: 18px; height: 18px; color: var(--lime); }

.lp-hero-media { position: relative; min-width: 0; }
.lp-hero-media::before {
  content: "";
  position: absolute;
  inset: -14% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.17), rgba(198, 241, 53, 0) 72%);
  pointer-events: none;
}

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: 0; padding: 0; list-style: none; }
.feat { --c: 18px; --fill: var(--bg-2); display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; }
.feat-n { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--lime); }
.feat h3 { font-size: 1.38rem; letter-spacing: -0.03em; line-height: 1.12; }
.feat p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }

.lp-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; }
.demos-more.is-end { justify-content: flex-end; }
.pain p a { display: table; margin-top: 10px; font-family: var(--display); font-weight: 500; color: var(--lime); background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* ---------- Phone folds and the sticky phone button ---------- */

.fold-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: -12px 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.fold-ic { position: relative; flex: none; width: 14px; height: 14px; }
.fold-ic::before, .fold-ic::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.fold-ic::after { transform: rotate(90deg); }
.fold.is-open .fold-ic::after { transform: none; }
html.fold .fold:not(.is-open) .fold-body { display: none; }
html.fold .fold .case-get { margin-bottom: 0; }

.mcta { display: none; }

/* ---------- 404 ---------- */

.nf { display: flex; align-items: center; min-height: 88vh; min-height: 88svh; }
.nf .wrap { position: relative; }
.nf-code {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: -1;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: clamp(11rem, 32vw, 32rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 242, 238, 0.09);
  pointer-events: none;
}
.nf h1 { max-width: 18ch; }
.nf .hero-actions { margin-top: 32px; }
.nf-en { margin-top: 12px; font-size: 16px; }
.nf-en a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 44px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .auto-grid { grid-template-columns: minmax(0, 1fr); }
  .auto-tabs { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auto-tab-k { display: none; }
  .auto-tab { padding: 14px 14px 15px; }
  .auto-tab-t { font-size: 1rem; }
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .calc-head { grid-column: 1 / -1; }
  .inds-grid, .inds-grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .auto-panel { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-media { max-width: 620px; }
  .auto-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero .eyebrow { font-size: 11.5px; letter-spacing: 0.12em; line-height: 1.45; align-items: flex-start; }
  .hero .eyebrow::before { margin-top: 3px; }
  .sec-alt, .sys { --sc: 16px; }

  .auto-tab { --c: 9px; padding: 12px 12px 13px; }
  .auto-tab-t { font-size: 0.95rem; }
  .auto-panel { --c: 16px; padding: 20px 16px 22px; gap: 26px; }
  .auto-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-right: 12px; background: linear-gradient(90deg, rgba(20, 20, 18, 0) 20px, var(--bg-2) 20px); }
  .auto-steps .ic { width: 40px; height: 40px; }
  .auto-steps::before { left: 19px; }
  .auto-steps .chip { display: none; }
  .mock-row { grid-template-columns: minmax(44px, auto) minmax(0, 1fr); gap: 6px 12px; }
  .mock-row .st { grid-column: 2; justify-self: start; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-after { border-left: 0; border-top: 1px solid var(--line); }

  .calc { --c: 16px; grid-template-columns: minmax(0, 1fr); padding: 20px 16px 22px; }
  .calc-out { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .calc-out b { font-size: 2.6rem; }

  .inds-head { grid-template-columns: minmax(0, 1fr); }
  .inds-grid, .inds-grid.is-three { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ind { --c: 14px; min-height: 0; padding: 18px 64px 18px 18px; gap: 6px; }
  .ind-t { font-size: 1.2rem; }
  .ind-go { position: absolute; right: 16px; top: 50%; margin: -20px 0 0; }
  .feats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feat { --c: 14px; padding: 20px 18px 22px; }
  .feat h3 { font-size: 1.25rem; }

  .lp-hero .hero-actions .btn { flex: 1 1 100%; }
  .device-desk { --c: 12px; padding: 4px; }
  .device-bar { padding: 5px 6px 8px; font-size: 10.5px; }
  .demos-more.is-end .btn { width: 100%; }

  /* the five system steps keep their title and example; the sentence in between is dropped on a phone */
  .sys-card { padding: 16px 16px 14px; gap: 10px; }
  .sys-card p { display: none; }

  /* a slim solid bar: it shows only between the calls to action that are already on the page (see site.js) */
  .mcta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 9px var(--gutter) calc(9px + env(safe-area-inset-bottom));
    background: rgba(14, 14, 12, 0.94);
    border-top: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s 0.45s;
    pointer-events: none;
  }
  .mcta.is-on { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; pointer-events: auto; }
  .mcta .btn { width: 100%; min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  body.menu-open .mcta { transform: translateY(110%); pointer-events: none; }
  /* room for the bar, so the last lines of a page and anything scrolled to are never under it */
  html { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  .nf-code { right: -4vw; top: 22%; }
}

@media (max-width: 400px) {
  .auto-tab-t { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on .auto-panel.is-active .auto-steps li { animation: none; }
  .demo-phone, .device-phone, .ind-go, .fold-ic::before, .fold-ic::after, .mcta, .auto-tab, .auto-tab-k, .auto-tab-t { transition: none; }
}

/* ---------- Phones: scroll-linked motion in CSS ---------- */
/* GSAP is not downloaded below 901 px (see the loader at the end of each page). Where the browser
   supports scroll-driven animations, the same three moves run from CSS, off the main thread. */

@property --lc {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@keyframes light-open { from { --lc: 44px; } to { --lc: 0px; } }
@keyframes lode-rise { from { transform: scale(0.9) translateY(4%); } to { transform: none; } }
@keyframes sign-in { from { transform: translateY(20%) rotate(-7deg); } to { transform: none; } }

@supports (animation-timeline: view()) {
  @media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
    .light { animation: light-open linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .lode-stage { animation: lode-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .foot-sign { animation: sign-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}

/* ---------- Homepage hero: general message, chips under the headline ---------- */

.hero-title .ln-lime { color: var(--lime); }

.hero-in { grid-template-rows: auto auto 1fr auto; }
.flowcard { grid-row: 3 / 5; }

.hero-chips {
  grid-column: 1;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(20px, 3.2vh, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  --c: 7px;
  padding: 9px 14px 10px;
  background: rgba(27, 27, 24, 0.86);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-in { grid-template-rows: none; }
  .flowcard { grid-row: auto; }
}

@media (max-width: 720px) {
  .hero-chips { gap: 6px; }
  .hero-chips li { padding: 8px 11px 9px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chips.fade-up { animation: none; opacity: 1; transform: none; }
}

/* =====================================================================
   November 2026, second pass: the site is split into pages.
   Header, page transitions, homepage hero with the live system, doors,
   calculator, lime call to action, by-hand-against-system race.
   ===================================================================== */

/* ---------- Header: six entries need room ---------- */

@media (min-width: 1101px) and (max-width: 1340px) {
  .nav .nav-opt { display: none; }
}

/* ---------- Page transitions (browsers without the View Transitions API simply load the page) ---------- */

@view-transition { navigation: auto; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

::view-transition-old(root) { animation: vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.5s cubic-bezier(0.2, 0.75, 0.15, 1) both; }

.hdr { view-transition-name: mg-header; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Shared: lime emphasis, big statements ---------- */

.statement {
  margin-top: 22px;
  max-width: 22ch;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.statement em, .page-hero h1 em, .contact-page h1 em { font-style: normal; color: var(--lime); }

.page-hero.is-big h1 { max-width: 17ch; font-size: clamp(2.4rem, 1.1rem + 5vw, 6.2rem); line-height: 0.96; }
.page-hero.is-big .lede { max-width: 56ch; font-size: clamp(17px, 1rem + 0.45vw, 21px); color: #D3D2CB; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero .crumbs + .eyebrow { margin-top: 0; }

/* ---------- Homepage hero: copy on the left, the live system on the right ---------- */

.hero-v2 { min-height: 0; padding: calc(var(--hdr) + clamp(28px, 5vh, 72px)) 0 clamp(44px, 7vh, 96px); }

.hero-v2 .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: none;
  align-items: center;
  column-gap: clamp(32px, 4.5vw, 80px);
  flex: 0 1 auto;
}

.hero-copy { min-width: 0; container-type: inline-size; }

.hero-v2 .hero-title {
  margin-top: clamp(18px, 3vh, 30px);
  font-size: clamp(2.5rem, 1rem + 4.4vw, 5.75rem);
  font-size: clamp(2.5rem, 13.4cqw, 7rem);
}

.hero-v2 .hero-chips { grid-column: auto; margin-top: clamp(18px, 2.6vh, 28px); }
.hero-v2 .hero-lede { margin-top: clamp(20px, 3vh, 30px); max-width: 46ch; }
.hero-v2 .hero-actions { margin-top: clamp(22px, 3.2vh, 34px); }

.hero-vis { position: relative; justify-self: end; width: 100%; max-width: 560px; min-width: 0; }
.hero-vis::before {
  content: "";
  position: absolute;
  inset: -16% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.2), rgba(198, 241, 53, 0) 72%);
  pointer-events: none;
}

@media (min-width: 901px) {
  .hero-v2 { justify-content: center; min-height: min(100svh, 1000px); }
}

/* ---------- The live system: inquiries on their way through ---------- */
/* An artboard of 100 by 108 units. Positions are percentages, type scales with the width (cqw),
   so the same scene is crisp at 340 px on a phone and at 560 px on a desktop.
   It is a stack of planes: the plate at the back, the parts at different distances in front of it (--z).
   Tilting the stack (the pointer on a desktop, a slow drift everywhere) is what gives the scene depth. */

.sv { position: relative; container-type: inline-size; perspective: 1500px; }

.sv-tilt {
  padding-bottom: 9cqw;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -4.5deg)) rotateY(calc(var(--mx, 0) * 6.5deg));
}

.sv-art {
  --c: 4.6cqw;
  --amp: 0.55;
  position: relative;
  aspect-ratio: 100 / 108;
  transform-style: preserve-3d;
  font-size: clamp(11px, 3.3cqw, 15.5px);
  line-height: 1.3;
}
.sv.is-run .sv-art { animation: sv-drift 18s ease-in-out infinite; }
.sv.is-paused .sv-art { animation-play-state: paused; }
@keyframes sv-drift {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg); }
  25% { transform: rotateX(calc(var(--amp) * 1.5deg)) rotateY(calc(var(--amp) * -2.6deg)); }
  75% { transform: rotateX(calc(var(--amp) * -1.3deg)) rotateY(calc(var(--amp) * 2.6deg)); }
}

.sv-plate, .sv-back {
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.sv-plate { background: rgba(243, 242, 238, 0.18); }
.sv-plate::before {
  content: "";
  position: absolute;
  inset: 1px;
  background:
    linear-gradient(90deg, rgba(243, 242, 238, 0.035) 1px, transparent 1px) 0 0 / 12.5% 100%,
    linear-gradient(180deg, #1D1D1A, #0F0F0D);
  clip-path: polygon(calc(var(--c) - 0.4px) 0, calc(100% - var(--c) + 0.4px) 0, 100% calc(var(--c) - 0.4px), 100% calc(100% - var(--c) + 0.4px), calc(100% - var(--c) + 0.4px) 100%, calc(var(--c) - 0.4px) 100%, 0 calc(100% - var(--c) + 0.4px), 0 calc(var(--c) - 0.4px));
}
/* a second, fainter plate behind the first: it slides out from under it when the stack tilts */
.sv-back { inset: 4% -3.5% -4% 3.5%; background: rgba(243, 242, 238, 0.055); translate: 0 0 -9cqw; }

.sv-top {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 0;
  height: 7.4%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--display);
  font-size: 0.9em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  translate: 0 0 1.5cqw;
}
.sv-top b { font-weight: 500; color: var(--text); }
.sv-clock { color: var(--lime); font-variant-numeric: tabular-nums; }

.sv-lines { position: absolute; inset: 0; width: 100%; height: 100%; translate: 0 0 1cqw; }
.sv-lines path { fill: none; stroke: rgba(243, 242, 238, 0.2); stroke-width: 1.4; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; transition: stroke 0.5s var(--ease); }
.sv-lines path.is-on { stroke: var(--lime); stroke-dasharray: none; }

/* a part: an outer plate in the line colour, the fill inset by 1px, so the chamfered outline is never cut */
.sv-n {
  --k: 2.4cqw;
  position: absolute;
  display: flex;
  gap: 2.2cqw;
  margin: 0;
  padding: 2cqw 2.6cqw;
  isolation: isolate;
  background: rgba(243, 242, 238, 0.2);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k));
  translate: 0 0 var(--z, 0px);
  transition: opacity 0.45s var(--ease), transform 0.75s var(--ease), background-color 0.5s var(--ease);
}
.sv-n::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #1D1D1A;
  clip-path: polygon(calc(var(--k) - 0.4px) 0, calc(100% - var(--k) + 0.4px) 0, 100% calc(var(--k) - 0.4px), 100% calc(100% - var(--k) + 0.4px), calc(100% - var(--k) + 0.4px) 100%, calc(var(--k) - 0.4px) 100%, 0 calc(100% - var(--k) + 0.4px), 0 calc(var(--k) - 0.4px));
  transition: background-color 0.5s var(--ease);
}

/* the parts that belong to one inquiry are hidden until its turn; the logo, the table and the counter stay */
.js .sv-n[data-s] { opacity: 0; transform: translateY(16%) scale(0.94); }
.js .sv-n[data-s].is-on { opacity: 1; transform: none; }
.sv-n.is-now { background: rgba(198, 241, 53, 0.85); }
.sv-n.is-now::before { background: #20221A; }

.sv-n b { display: block; font-family: var(--display); font-size: 1.08em; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.sv-n span { color: var(--muted); }
.sv-n small { display: flex; align-items: center; gap: 1.2cqw; font-family: var(--display); font-size: 0.86em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sv-n small svg { width: 1.2em; height: 1.2em; color: var(--lime); }
.sv-tx { display: block; min-width: 0; }
.sv-tx span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sv-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 7.4cqw;
  height: 7.4cqw;
  background: var(--bg-4);
  color: var(--lime);
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
}
.sv-ic svg { width: 56%; height: 56%; }

/* the inquiry arrives from outside the card */
.sv-inq { --z: 9cqw; --fx: -92%; --fy: -170%; --fr: -13deg; left: 4%; top: 9.26%; width: 60%; height: 15.74%; align-items: center; }
.js .sv-inq[data-s] { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.7); }
.js .sv-inq[data-s].is-on { animation: sv-fly 1.3s linear backwards; }
/* a steady glide from outside, a slight overshoot, then it settles */
@keyframes sv-fly {
  0% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.7); }
  9% { opacity: 1; }
  52% { opacity: 1; transform: translate(calc(var(--fx) * 0.22), calc(var(--fy) * 0.2)) rotate(calc(var(--fr) * 0.35)) scale(0.93); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  80% { opacity: 1; transform: translate(1.2%, 7%) rotate(1.4deg) scale(1.03); animation-timing-function: var(--ease); }
  100% { opacity: 1; transform: none; }
}
.sv-inq .sv-ic { background: var(--lime); color: var(--ink); }
.sv-inq em { position: absolute; right: 2.4cqw; top: 1.8cqw; font-family: var(--display); font-size: 0.8em; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }

/* the ring where it lands */
.sv-ping {
  position: absolute;
  left: 34%;
  top: 17.1%;
  width: 12cqw;
  height: 12cqw;
  margin: -6cqw 0 0 -6cqw;
  border: 1px solid var(--lime);
  border-radius: 50%;
  opacity: 0;
  translate: 0 0 8cqw;
  pointer-events: none;
}
.sv-ping.is-go { animation: sv-ping 0.95s var(--ease) 0.98s; }
@keyframes sv-ping { 0% { opacity: 0.85; transform: scale(0.4); } 100% { opacity: 0; transform: scale(6.4, 2.6); } }

.sv-hub { --z: 4cqw; left: 73%; top: 9.72%; width: 23%; height: 14.8%; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; padding: 0; background: none; clip-path: none; }
.sv-hub::before { display: none; }
.sv-hub.is-now { background: none; }
.sv-hub img { width: 78%; height: auto; }
.sv-hub span { font-family: var(--display); font-size: 0.8em; letter-spacing: 0.14em; text-transform: uppercase; }
.sv-hub.is-now img { animation: sv-pulse 0.9s var(--ease); }
@keyframes sv-pulse { 40% { transform: scale(1.14); filter: drop-shadow(0 0 3cqw rgba(198, 241, 53, 0.75)); } }

.sv-reply { --z: 6cqw; left: 4%; top: 29.63%; width: 54%; height: 18.52%; flex-direction: column; gap: 0.8cqw; justify-content: center; }
.sv-reply .sv-q { color: var(--text); }
.sv-reply em { display: flex; align-items: center; gap: 1.2cqw; font-size: 0.88em; font-style: normal; color: var(--lime); }
.sv-reply em svg { width: 1.1em; height: 1.1em; }

.sv-note { --z: 8cqw; left: 62%; top: 29.63%; width: 34%; height: 18.52%; flex-direction: column; gap: 0.6cqw; justify-content: center; }
.sv-note::before { background: #24241F; }
.js .sv-note[data-s] { transform: translateX(30%) scale(0.94); }
.sv-note span { font-size: 0.92em; }

.sv-table { --z: 3cqw; left: 4%; top: 52.78%; width: 92%; height: 26.85%; flex-direction: column; gap: 0; padding: 0.6cqw 2.6cqw; justify-content: center; }
.sv-th, .sv-tr { display: grid; grid-template-columns: 11cqw minmax(0, 1fr) auto; align-items: center; gap: 2cqw; margin: 0; }
.sv-th { padding: 0.9cqw 0; font-family: var(--display); font-size: 0.8em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sv-th span:last-child { text-align: right; }
.sv-tr { padding: 1.25cqw 0; border-top: 1px solid var(--line); }
.sv-tr b { font-size: 0.96em; font-variant-numeric: tabular-nums; }
.sv-tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-tr .st { padding: 0.5cqw 1.4cqw; font-size: 0.82em; }
.sv-tr.is-new { margin: 0 -2.6cqw; padding-left: 2.6cqw; padding-right: 2.6cqw; background: rgba(198, 241, 53, 0.07); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), background-color 0.5s var(--ease); }
.js .sv-tr.is-new { opacity: 0; transform: translateY(-60%); }
.js .sv-tr.is-new.is-on { opacity: 1; transform: none; }
.sv-tr.is-new.is-now { background: rgba(198, 241, 53, 0.16); }
/* the status changes while you watch */
.sv-tr .st.is-flip { animation: sv-flip 0.75s var(--ease); }
@keyframes sv-flip {
  0% { transform: scale(0.55); opacity: 0; box-shadow: 0 0 0 0 rgba(198, 241, 53, 0.9); }
  45% { transform: scale(1.16); opacity: 1; }
  100% { transform: none; box-shadow: 0 0 0 2.4cqw rgba(198, 241, 53, 0); }
}
/* a finished inquiry moves one row down and makes room for the next */
.sv-tr.is-shift { animation: sv-shift 0.6s var(--ease); }
@keyframes sv-shift { 0% { transform: translateY(-100%); } }

.sv-rem { --z: 6cqw; left: 4%; top: 84.26%; width: 50%; height: 12.04%; align-items: center; }
.sv-won { --z: 9cqw; left: 58%; top: 84.26%; width: 38%; height: 12.04%; align-items: center; }
.sv-won, .sv-won.is-now { background: var(--lime); }
.sv-won::before { display: none; }
.sv-won b, .sv-won span { color: var(--ink); }
.sv-won .sv-ic { background: var(--ink); color: var(--lime); }
.js .sv-won[data-s] { transform: scale(0.5) rotate(-6deg); }

/* the counter hangs over the lower edge of the card, nearest to the viewer */
.sv-saved { --z: 11cqw; left: 13%; right: -3%; top: 98.4%; height: 10.8%; align-items: center; justify-content: space-between; gap: 2cqw; padding: 0 3.4cqw; background: rgba(198, 241, 53, 0.6); }
.sv-saved::before { background: #12130E; }
.sv-saved-l { display: flex; align-items: center; gap: 1.8cqw; min-width: 0; font-family: var(--display); font-size: 0.98em; }
.sv-n .sv-saved-l { color: var(--text); }
.sv-saved-l i { padding: 0.35cqw 1.3cqw 0.45cqw; background: rgba(198, 241, 53, 0.12); font-size: 0.74em; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.sv-n.sv-saved b { font-size: 1.5em; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--lime); }

.sv-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6cqw;
  height: 2.6cqw;
  margin: -1.3cqw 0 0 -1.3cqw;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1.2cqw rgba(198, 241, 53, 0.18), 0 0 5cqw 1cqw rgba(198, 241, 53, 0.5);
  opacity: 0;
  translate: 0 0 10cqw;
  transform: translate(calc(var(--x, 62) * 1cqw), calc(var(--y, 18.5) * 1cqw));
  transition: transform 0.8s var(--ease-in-out), opacity 0.4s;
  pointer-events: none;
}
.sv.is-run .sv-art.has-dot .sv-dot { opacity: 1; }

/* between two inquiries the travelling parts fade where they are; the table stays */
.js .sv-art.is-out [data-s].is-on, .js .sv.is-run .sv-art.is-out .sv-dot { opacity: 0; transition-duration: 0.45s; }

/* ---------- Doors: three ways into the site ---------- */

.doors .eyebrow { display: flex; }

.tz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; list-style: none; }
.tz-grid li { min-width: 0; }

.tz { --c: 22px; --fill: var(--bg-2); display: flex; flex-direction: column; height: 100%; padding: 7px 7px 0; }

.tz-vis {
  position: relative;
  display: block;
  height: clamp(170px, 17vw, 244px);
  overflow: hidden;
  background: linear-gradient(180deg, #20201C, #121210);
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
}

.tz-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 16px 22px; }
.tz-n { font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.tz-k { font-family: var(--display); font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.tz-t { max-width: 34ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.tz-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-family: var(--display); font-size: 15.5px; font-weight: 500; color: var(--lime); }
.tz-go svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.tz:hover .tz-go svg { transform: translateX(5px); }

.tz-bars { position: absolute; inset: 0; display: grid; align-content: center; gap: 16px; padding: 0 22px; }
.tz-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 10px; font-family: var(--display); font-size: 13.5px; }
.tz-bar b { font-weight: 500; color: var(--text); }
.tz-bar em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
.tz-bar i { position: relative; grid-column: 1 / -1; height: 10px; overflow: hidden; background: var(--bg-4); }
.tz-bar i::after { content: ""; position: absolute; inset: 0; background: #8A8982; transform-origin: left; animation: tz-slow 7s linear infinite; }
.tz-bar.is-fast em { color: var(--lime); }
.tz-bar.is-fast i::after { background: var(--lime); animation-name: tz-fast; }
.tz-bars small { font-family: var(--display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@keyframes tz-slow { 0% { transform: scaleX(0); } 86%, 100% { transform: scaleX(1); } }
@keyframes tz-fast { 0% { transform: scaleX(0); } 5%, 100% { transform: scaleX(1); } }

.tz-device img { position: absolute; left: 8%; top: 13%; width: 84%; height: auto; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px); transition: transform 0.9s var(--ease); }
.tz-device img.is-phone { left: auto; right: 9%; top: 28%; width: 19%; outline: 3px solid #2E2E29; outline-offset: -1px; clip-path: none; }
.tz:hover .tz-device img:first-child { transform: translateY(-5%); }
.tz:hover .tz-device img.is-phone { transform: translateY(-10%); }

.tz-fan img { position: absolute; left: 21%; top: 16%; width: 58%; height: auto; outline: 3px solid #2E2E29; outline-offset: -1px; transition: transform 0.9s var(--ease); }
.tz-fan img:nth-child(1) { transform: translateX(-34%) rotate(-7deg); }
.tz-fan img:nth-child(2) { z-index: 1; transform: translateY(-4%); }
.tz-fan img:nth-child(3) { transform: translateX(34%) rotate(7deg); }
.tz:hover .tz-fan img:nth-child(1) { transform: translateX(-42%) rotate(-10deg); }
.tz:hover .tz-fan img:nth-child(3) { transform: translateX(42%) rotate(10deg); }

/* ---------- Calculator: the money message ---------- */

.money-head { margin-bottom: clamp(28px, 4vw, 56px); }
.money-head .eyebrow { display: flex; }
.money-head > p:last-child { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: var(--fs-lede); line-height: 1.55; }

.calc {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "head out" "fields out" "foot foot";
  align-items: start;
  margin-top: 0;
}
.calc-head { grid-area: head; }
.calc-fields { grid-area: fields; }
.calc-foot { grid-area: foot; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

.calc-out {
  grid-area: out;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 26px 20px;
}
.calc-out b, .calc-out p + p b { color: var(--text); }
.calc-out .is-year { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.calc-out .is-year b { font-size: clamp(3.4rem, 1.6rem + 6vw, 7.5rem); color: var(--lime); }

.calc-back { font-size: 15.5px; color: #DAD9D2; }
.calc-back b { font-weight: 600; color: var(--text); }
.calc-foot .calc-note { padding: 0; border: 0; }
.calc-more .link-arrow { font-size: 15.5px; }

/* ---------- Call to action: the lime plate ---------- */

.band { padding-top: clamp(24px, 4vw, 64px); }

.band-in {
  --c: clamp(20px, 3vw, 44px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 48px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 76px);
  background: var(--lime);
  color: var(--ink);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}

.band-copy { position: relative; z-index: 1; min-width: 0; }
.band-in .eyebrow { color: rgba(14, 14, 12, 0.72); }
.band-in .eyebrow::before { background: var(--ink); }
.band-in h2 { margin-top: 18px; max-width: 16ch; font-size: clamp(2rem, 1.1rem + 3.6vw, 4.6rem); letter-spacing: -0.045em; color: var(--ink); }
.band-copy > p:last-child { margin-top: 18px; max-width: 46ch; font-size: var(--fs-lede); line-height: 1.55; color: rgba(14, 14, 12, 0.8); }

.band-actions { position: relative; z-index: 1; display: grid; justify-items: start; gap: 18px; }
.btn-dark { background: var(--ink); color: var(--lime); }
.btn-dark:hover { background: #23231F; }
.btn-dark:focus-visible { outline-color: var(--lime); }
.band-alt { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid rgba(14, 14, 12, 0.5); font-family: var(--display); font-size: 15.5px; font-weight: 500; color: var(--ink); }
.band-alt svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.band-alt:hover svg { transform: translateX(4px); }
.band-in :focus-visible { outline-color: var(--ink); }
.band-in ::selection { background: var(--ink); color: var(--lime); }
.band-mark { position: absolute; right: -5%; bottom: -36%; width: min(46%, 540px); opacity: 0.09; transform: rotate(-8deg); pointer-events: none; }

/* ---------- By hand against the system ---------- */

.race-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.race-tab {
  --c: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--bg-3);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}
.sec-alt .race-tab { background: var(--bg-4); }
.race-tab:hover { color: var(--text); }
.race-tab[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

.race-stage { --c: 24px; --fill: var(--bg); display: grid; gap: clamp(18px, 2vw, 28px); padding: clamp(20px, 2.8vw, 44px); }
.race-stage + .race-stage { margin-top: 16px; }
.js .race-stage:not(.is-active) { display: none; }

.race-brief { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.race-brief p { flex: 1; min-width: 200px; font-family: var(--display); font-size: 1.08rem; color: var(--muted); }
.race-brief b { font-weight: 500; color: var(--text); }

.race-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: none;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.race-replay:hover { border-color: var(--lime); color: var(--lime); }
.race-replay svg { width: 16px; height: 16px; }

.race-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }

.lane { display: grid; align-content: start; gap: 16px; padding: clamp(16px, 2vw, 28px); background: var(--bg-2); border: 1px solid var(--line); }
.lane-auto { background: rgba(198, 241, 53, 0.05); border-color: rgba(198, 241, 53, 0.3); }

.lane-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lane-head h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.03em; }
.lane-clock { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
.lane-clock b { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; line-height: 0.9; color: var(--text); }
.lane-clock span { font-size: 15px; color: var(--muted); }
.lane-auto .lane-clock b { color: var(--lime); }

.lane-bar { height: 8px; overflow: hidden; background: var(--bg-4); }
.lane-bar i { display: block; height: 100%; background: #8A8982; transform-origin: left; }
.lane-auto .lane-bar i { background: var(--lime); }

.lane-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.lane-steps li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: #DAD9D2;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.lane-steps li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; border: 1.5px solid rgba(243, 242, 238, 0.4); transition: background-color 0.3s, border-color 0.3s; }
.lane-steps em { padding-top: 1px; font-family: var(--display); font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

.race-stage.is-running .lane-steps li:not(.is-done):not(.is-now) { opacity: 0.36; }
.lane-steps li.is-now { color: var(--text); }
.lane-steps li.is-now::before { border-color: var(--text); }
.lane-steps li.is-done::before { background: #8A8982; border-color: #8A8982; }
.lane-auto .lane-steps li.is-done::before { background: var(--lime); border-color: var(--lime); }

.race-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  color: var(--muted);
  transition: opacity 0.7s var(--ease);
}
.race-result b { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.race-result .is-auto b { color: var(--lime); }
.race-result i { font-style: normal; }
.race-stage.is-running .race-result { opacity: 0.25; }
.race-note { font-size: 14px; color: var(--muted); }

/* ---------- Inner pages ---------- */

.contact-page { padding-top: calc(var(--hdr) + clamp(40px, 7vw, 104px)); }
.contact-page h1 { margin-top: 28px; font-size: var(--fs-h2); }
.contact-page .crumbs ol { margin-bottom: 24px; }

.about-hero { padding-bottom: var(--section); }
.about-hero .about-grid { align-items: start; }
.about-hero .portrait.is-placeholder { max-width: 380px; }
.about-copy h1 { margin-top: 24px; font-size: clamp(2.2rem, 1.1rem + 3.6vw, 4.6rem); max-width: 16ch; }
.about-copy .lede { margin-top: 24px; max-width: 52ch; font-size: clamp(17px, 1rem + 0.45vw, 21px); color: #D3D2CB; }
.about-copy .crumbs ol { margin-bottom: 0; }

.svcs.is-areas .svc { grid-column: span 4; }
.svcs.is-areas .svc:nth-child(n + 4) { grid-column: span 6; }
.svc-video.is-wide { grid-column: span 12; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.svc-video h2 { font-size: var(--fs-h3); letter-spacing: -0.035em; line-height: 1.02; }

/* ---------- Footer: four columns ---------- */

.foot-top { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.7fr); }
.foot-sign { width: min(100%, 300px); }
.foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .svcs.is-areas .svc, .svcs.is-areas .svc:nth-child(n + 4) { grid-column: span 6; grid-template-columns: minmax(0, 1fr); }
  .svcs.is-areas .svc:last-child { grid-column: span 12; }
  .calc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "fields" "out" "foot"; }
  .calc-out { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols > div:last-child { grid-column: auto; }
  .band-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 900px) {
  .hero-v2 .hero-in { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .hero-vis { justify-self: stretch; max-width: 520px; }
  .tz-grid { grid-template-columns: minmax(0, 1fr); }
  .tz { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); padding: 6px; }
  .tz-vis { height: auto; min-height: 172px; }
  .race-lanes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .hero-v2 { padding-top: calc(var(--hdr) + 22px); }
  .hero-v2 .hero-actions .btn-ghost { display: none; }
  .hero-v2 .hero-in { row-gap: 28px; }
  .sv-art { font-size: clamp(11px, 3.35cqw, 13px); }

  .statement { margin-top: 18px; }
  .tz { --c: 14px; grid-template-columns: 116px minmax(0, 1fr); }
  .tz-vis { min-height: 150px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
  .tz-body { gap: 6px; padding: 12px 8px 12px 14px; }
  .tz-n { display: none; }
  .tz-t { font-size: 14.5px; line-height: 1.45; }
  .tz-go { padding-top: 8px; font-size: 14.5px; }
  .tz-bars { gap: 12px; padding: 0 10px; }
  .tz-bar { font-size: 11.5px; gap: 4px 6px; }
  .tz-bar i { height: 8px; }
  .tz-bars small { font-size: 10px; }
  .tz-device img { left: 6%; top: 22%; width: 150%; }
  .tz-device img.is-phone { right: 8%; top: 34%; width: 34%; }
  .tz-fan img { left: 8%; top: 12%; width: 120%; }
  .tz-fan img:nth-child(1) { transform: translateY(-4%) rotate(-5deg); }
  .tz-fan img:nth-child(2) { transform: translate(8%, 34%); }
  .tz-fan img:nth-child(3) { transform: translate(16%, 72%) rotate(4deg); }

  .calc-out { gap: 18px 14px; }
  .calc-out b { font-size: 2.5rem; }
  .calc-out .is-year { padding-top: 18px; }
  .calc-out .is-year b { font-size: 3.6rem; }

  .band-in { --c: 16px; padding: 26px 20px 28px; }
  .band-actions { justify-items: stretch; }
  .band-actions .btn { width: 100%; }
  .band-alt { justify-self: start; }
  .band-mark { right: -18%; bottom: -12%; width: 70%; }

  .race-tabs { flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1) 14px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .race-tabs::-webkit-scrollbar { display: none; }
  .race-stage { --c: 16px; padding: 18px 14px 20px; }
  .race-brief p { min-width: 0; flex-basis: 100%; order: 3; font-size: 1rem; }
  .race-replay { margin-left: auto; }
  .lane { padding: 14px 14px 6px; gap: 12px; }
  .lane-steps li { font-size: 14.5px; padding: 9px 0; gap: 10px; }
  .lane-clock b { font-size: 2.8rem; }

  .svcs.is-areas .svc, .svcs.is-areas .svc:nth-child(n + 4) { grid-column: span 12; }
  .svc-video.is-wide { grid-template-columns: minmax(0, 1fr); }

  .foot { padding-top: 56px; }
  .foot-top { gap: 32px; }
  .foot-sign { width: 112px; }
  .foot-cols { gap: 28px 20px; }
  .foot-claim { margin-top: 40px; }
  .foot-bottom { margin-top: 40px; }
  .about-hero .portrait.is-placeholder { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .tz-bar i::after { animation: none; }
  .sv-n, .sv-n::before, .sv-dot, .sv-lines path, .sv-tr.is-new, .lane-steps li, .race-result { transition: none; }
  .sv.is-run .sv-art, .js .sv-inq[data-s].is-on, .sv-ping.is-go, .sv-hub.is-now img, .sv-tr .st.is-flip, .sv-tr.is-shift { animation: none; }
  .sv-tilt { transform: none; }
  .tz-device img, .tz-fan img, .tz-go svg, .band-alt svg { transition: none; }
}

@media (max-width: 900px) {
  /* no pointer to lean towards on a phone: the drift is a little wider instead */
  .sv-art { --amp: 1.25; }
  .sv-saved { left: 5%; right: -2%; }
}

@media (max-width: 720px) {
  .sv-inq { --fx: 46%; --fy: -230%; --fr: 11deg; }
  .sv-inq em { display: none; }
}

@media (max-width: 720px) {
  /* the address stays on one line in the narrow footer column */
  .foot-cols a[href^="mailto:"] { font-size: 14px; overflow-wrap: normal; white-space: nowrap; }
}

@media (max-width: 720px) {
  /* less of the second plate shows next to the edge of a phone screen */
  .sv-back { inset: 3% -2% -3% 2%; }
}
