/* ALGOR AI — shared styles
   Brand: deep indigo-navy ground, champagne gold accent, thin geometric display type. */

:root {
  --bg: #0a0e1c;
  --bg-2: #0e1427;
  --surface: #131a31;
  --surface-2: #1a2241;
  --surface-3: #222c52;
  --ink: #f3f1ea;
  --ink-2: #c6c9d6;
  --ink-3: #8f95ad;
  --gold: #cfb066;
  --gold-hi: #e6cd86;
  --gold-lo: #9f8540;
  --ok: #7fd1a8;

  --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-text: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);
  --step-4: clamp(2.6rem, 1.5rem + 4.6vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --section: clamp(80px, 9vw, 140px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 300; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 38ch; }
.muted { color: var(--ink-2); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  background: var(--gold); color: #0a0e1c;
  font: 600 1rem/1 var(--font-text);
  text-decoration: none; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: background .25s var(--ease), transform .35s var(--ease-out), color .25s;
}
.btn:hover { background: var(--gold-hi); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn--dark { background: var(--bg); color: var(--ink); }
.btn--dark:hover { background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  color: var(--gold); text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), transform .4s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10, 14, 28, .94); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); position: relative; z-index: 2; }
.brand svg { width: 128px; height: auto; }
.brand-ai { font: 500 .8rem/1 var(--font-display); letter-spacing: .3em; color: var(--ink-2); padding-top: 3px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  text-decoration: none; color: var(--ink-2); font-weight: 500; position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--surface-2); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink); content: "";
  transition: transform .3s var(--ease-out), background .2s;
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { left: 0; transform: translateY(-7px); }
.nav-toggle span::after { left: 0; transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 130px 0 100px;
}
.hero--page { min-height: 82svh; }
.hero-ground {
  position: absolute; inset: 0; z-index: -3;
  background: var(--bg) url("../img/indigo-gold-ground.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: drift 28s var(--ease) infinite alternate;
}
.hero-ground::after {
  /* neutral scrim so text stays readable on the watercolour */
  content: ""; position: absolute; inset: 0;
  background: rgba(8, 11, 24, .42);
}
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: end;
}
.hero h1 { max-width: 17ch; }
.hero .lede { margin: 36px 0 40px; }
.hero-side { justify-self: end; max-width: 360px; }
.hero-note {
  background: rgba(19, 26, 49, .84); border-radius: var(--radius); padding: 24px 26px;
  font-size: .98rem; color: var(--ink-2);
}
.hero-note strong { color: var(--gold); font: 400 1.35rem/1.25 var(--font-display); display: block; margin-bottom: 8px; }
.hero-note p:last-child { margin: 0; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; background: rgba(243, 241, 234, .12);
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* split headline animation */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 150ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold); color: var(--bg); overflow: hidden; padding: 20px 0;
  font: 400 clamp(1.3rem, 1rem + 1.4vw, 2.2rem)/1 var(--font-display); letter-spacing: -0.01em;
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; margin: 0; }

.statement {
  font: 300 clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem)/1.3 var(--font-display);
  letter-spacing: -0.015em; max-width: 34ch; margin: 0;
}
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.intro-grid .body p.muted { color: var(--ink-2); }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px; min-height: 360px;
  text-decoration: none; color: inherit;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .6s var(--ease-out), background .3s;
}
.tile::before {
  /* pointer spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(207, 176, 102, .14), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile:hover { background: var(--surface-2); }
.tile h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); }
.tile p { color: var(--ink-2); margin: 0; max-width: 42ch; }
.tile .more { margin-top: auto; color: var(--gold); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.tile .more .arrow { transition: transform .3s var(--ease-out); }
.tile:hover .more .arrow { transform: translateX(5px); }
.tile--a { grid-column: span 4; grid-row: span 2; }
.tile--b { grid-column: span 2; }
.tile--c { grid-column: span 2; }
.tile--d { grid-column: span 6; flex-direction: row; align-items: center; min-height: 0; gap: 40px; }
.tile--d .tile-copy { flex: 1 1 50%; display: flex; flex-direction: column; gap: 14px; }
.tile--d .tile-visual { flex: 1 1 50%; }
.tile-visual { transform: translateZ(40px); }

/* interface fragments drawn in HTML */
.ui {
  background: var(--bg); border-radius: 14px; padding: 14px; font-size: .82rem; color: var(--ink-2);
  font-family: var(--font-text);
}
.ui-bar { display: flex; gap: 6px; margin-bottom: 12px; align-items: center; }
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.ui-bar b { margin-left: 10px; font-weight: 400; color: var(--ink-3); background: var(--surface); border-radius: 6px; padding: 3px 10px; font-size: .74rem; }
.ui-site { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.ui-site .ui-hero { background: var(--surface-2); border-radius: 10px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.ui-site .ui-hero strong { font: 400 1.35rem/1.05 var(--font-display); color: var(--ink); }
.ui-site .ui-hero em { font-style: normal; align-self: flex-start; background: var(--gold); color: var(--bg); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .74rem; }
.ui-site .ui-col { display: grid; gap: 10px; }
.ui-site .ui-col div { background: var(--surface); border-radius: 10px; padding: 12px; }
.ui-site .ui-col div span { display: block; color: var(--ink); font-weight: 600; }
.ui-metric { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; background: var(--surface); border-radius: 10px; padding: 10px 14px; }
.ui-metric span:last-child { color: var(--ok); font-weight: 600; }

.ui-flow { display: grid; gap: 10px; }
.ui-node { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; color: var(--ink); position: relative; }
.ui-node small { color: var(--ink-3); margin-left: auto; }
.ui-node .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.ui-node.done .dot { background: var(--ok); }
.ui-node.run .dot { animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }

.ui-chat { display: grid; gap: 8px; }
.ui-chat p { margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 86%; background: var(--surface-2); color: var(--ink); line-height: 1.4; }
.ui-chat p.me { justify-self: end; background: var(--gold); color: var(--bg); }

.ui-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-dash .kpi { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.ui-dash .kpi span { display: block; font: 400 1.4rem/1.1 var(--font-display); color: var(--ink); }
.ui-dash .chart { grid-column: 1 / -1; background: var(--surface-2); border-radius: 10px; padding: 12px; }
.ui-dash .bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 8px; }
.ui-dash .bars i { flex: 1; background: var(--surface-3); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.ui-dash .bars i.hi { background: var(--gold); }
.is-in .ui-dash .bars i { animation: grow 1.1s var(--ease-out) both; animation-delay: calc(var(--n) * 60ms + 200ms); }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- Opportunity scan (interactive) ---------- */
.scan { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.scan-form { display: grid; gap: 28px; }
.scan fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.scan legend { font: 400 var(--step-1)/1.2 var(--font-display); margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); cursor: pointer; font-weight: 500;
  transition: background .2s, color .2s, transform .3s var(--ease-out);
}
.chip span:hover { background: var(--surface-3); }
.chip input:checked + span { background: var(--gold); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.chip:active span { transform: scale(.96); }

.scan-result {
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px);
  position: sticky; top: 110px; min-height: 420px;
}
.scan-result h3 { font-size: var(--step-2); margin-bottom: 12px; }
.scan-result .summary { color: var(--ink-2); margin-bottom: 26px; }
.recs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.recs li {
  background: var(--surface-2); border-radius: 16px; padding: 16px 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start;
  animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--n) * 90ms);
}
.recs li strong { font-weight: 600; color: var(--ink); }
.recs li p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .95rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px;
  font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--verified { color: var(--ok); }
.badge--derived { color: var(--gold-hi); }
.badge--hypothesis { color: #b9c2ff; }
.verify { background: var(--bg-2); border-radius: 16px; padding: 18px 20px; margin-bottom: 26px; }
.verify h4 { font: 600 1.02rem/1.4 var(--font-text); letter-spacing: 0; margin-bottom: 8px; }
.verify ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; }
.verify li + li { margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Method timeline ---------- */
.method { position: relative; }
.method-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.method-track { position: absolute; left: 0; right: 0; top: 23px; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.method-track i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
.method-list li { position: relative; padding-top: 72px; }
.method-list li::before {
  content: ""; position: absolute; top: 12px; left: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 4px var(--surface-3); transition: box-shadow .4s, background .4s;
}
.method-list li.is-lit::before { background: var(--gold); box-shadow: inset 0 0 0 4px var(--gold); }
.method-list h3 { font-size: var(--step-1); margin-bottom: 10px; letter-spacing: -0.01em; }
.method-list p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* ---------- Evidence section ---------- */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.evidence-cards { display: grid; gap: 14px; }
.ev {
  background: var(--surface); border-radius: var(--radius); padding: 22px 26px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
  transition: transform .6s var(--ease-out), background .3s;
}
.ev:hover { background: var(--surface-2); transform: translateX(8px); }
.ev .badge { grid-row: span 2; align-self: start; margin-top: 4px; min-width: 112px; }
.ev h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
.ev p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- Industries list ---------- */
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; list-style: none; margin: 0; padding: 0; }
.industries li {
  padding: 18px 0; font: 300 clamp(1.3rem, 1rem + 1vw, 1.9rem)/1.2 var(--font-display);
  display: grid; gap: 6px;
  transition: color .3s, transform .5s var(--ease-out);
}
.industries li small { font: 400 .95rem/1.45 var(--font-text); color: var(--ink-2); }
.industries li:hover { color: var(--gold); transform: translateX(6px); }

/* ---------- Photo band ---------- */
.photo-band { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.photo-band img { width: 100%; height: clamp(360px, 52vw, 660px); object-fit: cover; transform: scale(1.12); will-change: transform; }
.photo-band figcaption {
  position: absolute; left: 0; bottom: 0; padding: clamp(20px, 3vw, 36px);
  background: rgba(10, 14, 28, .82); border-top-right-radius: var(--radius); max-width: 560px;
}
.photo-band figcaption strong { display: block; font: 300 var(--step-2)/1.1 var(--font-display); margin-bottom: 8px; }
.photo-band figcaption span { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--surface) url("../img/indigo-gold-ground.jpg") 80% 70% / cover;
  transform: scale(1.3) rotate(180deg);
}
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 14, 28, .35); }
.cta h2 { max-width: 14ch; }
.cta p { color: var(--ink); font-size: var(--step-1); margin: 24px 0 0; max-width: 36ch; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- Service detail rows ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; scroll-margin-top: 110px; }
.svc + .svc { margin-top: clamp(96px, 11vw, 160px); }
.svc:nth-child(even) .svc-visual { order: -1; }
.svc h3 { font-size: var(--step-3); font-weight: 300; margin-bottom: 24px; }
.svc .lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); margin-bottom: 24px; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
ul.ticks li { padding-left: 30px; position: relative; color: var(--ink); }
ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.svc .fit { color: var(--ink-2); font-size: .98rem; }
.svc .fit strong { color: var(--gold); font-weight: 600; }
.svc-visual { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.svc-visual .ui { font-size: .9rem; }

/* optimisation services */
.opt-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.opt { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); transition: background .3s, transform .6s var(--ease-out); }
.opt:hover { background: var(--surface-2); transform: translateY(-6px); }
.opt h3 { font-size: var(--step-1); margin-bottom: 12px; letter-spacing: -0.01em; line-height: 1.2; }
.opt p { margin: 0; color: var(--ink-2); }
.opt--w7 { grid-column: span 7; }
.opt--w5 { grid-column: span 5; }
.opt--w4 { grid-column: span 4; }
.opt--w6 { grid-column: span 6; }
.opt--gold { background: var(--gold); color: var(--bg); }
.opt--gold p { color: #2a2414; }
.opt--gold:hover { background: var(--gold-hi); }

/* engagement */
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { border-radius: var(--radius); background: var(--surface); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; transition: transform .6s var(--ease-out); }
.plan:hover { transform: translateY(-6px); }
.plan h3 { font-size: var(--step-2); }
.plan .for { color: var(--gold); font-weight: 600; margin: 0; }
.plan p { color: var(--ink-2); margin: 0; }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--ink); display: grid; gap: 6px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--feature { background: var(--surface-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq > div:first-child p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; margin-top: 24px; }
.faq-list details { background: var(--surface); border-radius: 18px; margin-bottom: 10px; transition: background .3s; }
.faq-list details[open] { background: var(--surface-2); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 70px 22px 26px; position: relative;
  font: 400 1.2rem/1.35 var(--font-display); letter-spacing: -0.005em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--gold);
  display: grid; place-items: center; font: 400 1.3rem/1 var(--font-text); transition: transform .35s var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { padding: 0 26px 24px; color: var(--ink-2); }
.faq-list .answer p:last-child { margin: 0; }

/* About */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.values li { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); transition: background .3s, transform .6s var(--ease-out); }
.values li:hover { background: var(--surface-2); transform: translateY(-4px); }
.values h3 { font-size: var(--step-1); margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.2; }
.values p { margin: 0; color: var(--ink-2); }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-2 .body p { color: var(--ink); }
.big-quote { font: 300 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.3 var(--font-display); margin: 0; letter-spacing: -0.015em; }
.big-quote cite { display: block; margin-top: 18px; font: 500 1rem/1.4 var(--font-text); color: var(--gold); font-style: normal; }
.altron-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.altron-card h3 { font-size: var(--step-2); margin-bottom: 10px; }
.altron-card p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.orb { width: 96px; height: 96px; border-radius: 50%; position: relative; background: var(--surface-3); overflow: hidden; flex: none; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: spin 4s linear infinite; }
.orb::after { inset: 34%; border-color: var(--gold-hi); border-left-color: transparent; animation-duration: 6s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Work / case study ---------- */
[hidden] { display: none !important; }
a.showcase-frame { display: block; text-decoration: none; color: inherit; }
.showcase { margin: 0 0 clamp(56px, 7vw, 96px); }
.showcase-frame { background: var(--surface); border-radius: var(--radius); padding: 14px; transition: transform .6s var(--ease-out); }
.showcase-frame .ui-bar b { font-size: .8rem; }
.showcase-frame video, .showcase-frame img { width: 100%; height: auto; border-radius: 12px; display: block; background: var(--bg); }
.showcase figcaption, .shots figcaption { color: var(--ink-2); font-size: .95rem; margin-top: 14px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(56px, 7vw, 96px); }
.case-grid h3 { font-size: var(--step-2); margin: 0 0 18px; }
.case-grid h3 + p { margin-bottom: 40px; color: var(--ink); }
.facts { margin: 0 0 18px; display: grid; gap: 4px; background: var(--surface); border-radius: var(--radius); padding: 10px 24px; }
.facts div { padding: 14px 0; display: grid; gap: 4px; }
.facts dt { color: var(--ink-2); font-size: .9rem; }
.facts dd { margin: 0; font: 400 1.15rem/1.35 var(--font-display); }
.phone-shot { width: min(300px, 100%); border-radius: 28px; margin-top: 24px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 14px; transition: transform .6s var(--ease-out); }
.shots figure:hover img { transform: translateY(-6px); }
.work-teaser { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.work-teaser h3 { font-size: var(--step-2); margin-bottom: 16px; }
.work-teaser p { color: var(--ink-2); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.founder-photo img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease-out); }
.founder-photo:hover img { transform: scale(1.03); }
.founder .sign { font: 300 var(--step-1)/1.3 var(--font-display); color: var(--gold); margin: 8px 0 28px; }
.creds { list-style: none; padding: 0; margin: 28px 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li { background: var(--surface-2); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: .95rem; }

/* ---------- Consent bar ---------- */
.consent-bar {
  position: fixed; left: 22px; bottom: 22px; z-index: 70; max-width: 460px;
  background: var(--surface-2); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.consent-bar p { margin: 0 0 12px; font-size: .95rem; color: var(--ink); }
.consent-bar a { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { background: var(--surface); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; position: relative; }
.form h2 { font-size: var(--step-2); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .opt-tag { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px;
  background: var(--bg); border: 2px solid var(--surface-3); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #34407a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--bg-2); }
.field [aria-invalid="true"] { border-color: #ff8f8f; }
.field .error { color: #ffb0b0; font-size: .88rem; min-height: 1.2em; }
.field .chips { gap: 8px; }
.field .chip span { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: .95rem; }
.consent input { width: 22px; height: 22px; accent-color: var(--gold); margin-top: 2px; }
.consent a { color: var(--gold); }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-status { border-radius: 14px; padding: 14px 18px; display: none; }
.form-status.is-ok { display: block; background: rgba(127, 209, 168, .12); color: var(--ok); }
.form-status.is-err { display: block; background: rgba(255, 143, 143, .1); color: #ffc0c0; }
.form-status a { color: inherit; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; }
.contact-aside { display: grid; gap: 16px; }
.c-card { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; text-decoration: none; display: grid; gap: 4px; transition: background .3s, transform .5s var(--ease-out); }
a.c-card:hover { background: var(--surface-2); transform: translateY(-4px); }
.c-card span { color: var(--ink-2); font-size: .92rem; }
.c-card strong { font: 400 1.35rem/1.25 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next-steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.next-steps h3 { font-size: var(--step-1); margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.2; }
.next-steps p { margin: 0; color: var(--ink-2); }

/* Prose (privacy) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); font-weight: 400; margin: 56px 0 16px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1em; }
.prose a { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding: clamp(64px, 7vw, 100px) 0 36px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: clamp(56px, 8vw, 110px); }
.footer-top h2 { font-size: var(--step-2); max-width: 16ch; margin-bottom: 24px; font-weight: 300; }
.footer-top h3 { font: 600 .95rem/1.4 var(--font-text); letter-spacing: 0; color: var(--ink-2); margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a:not(.btn) { text-decoration: none; color: var(--ink); transition: color .2s; }
.footer-top a:not(.btn):hover { color: var(--gold); }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.footer-social > span { font: 300 var(--step-1)/1.3 var(--font-display); color: var(--ink-2); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  transition: background .25s, color .25s, transform .4s var(--ease-out);
}
.social a:hover, .social a:focus-visible { background: var(--gold); color: var(--bg); transform: translateY(-4px); }
.social--card { margin-top: 12px; }
.social--card a { background: var(--surface-3); }
.footer-mark { color: var(--gold); width: 100%; }
.footer-mark svg { width: 100%; height: auto; }
.footer-tag { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font: 300 var(--step-1)/1.3 var(--font-display); color: var(--ink-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; color: var(--ink-3); font-size: .86rem; }
.footer-bottom a { color: var(--ink-2); }

/* ---------- Altron chatbot ---------- */
.altron-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 8px;
  border: 0; border-radius: 999px; background: var(--gold); color: var(--bg); cursor: pointer;
  font: 600 1rem/1 var(--font-text);
  transition: transform .4s var(--ease-out), background .2s;
}
.altron-launch:hover { background: var(--gold-hi); transform: translateY(-3px); }
.altron-launch .face { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; position: relative; color: var(--gold); }
.altron-launch .face::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--bg); opacity: .5; animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
.altron-launch[aria-expanded="true"] .face::after { animation: none; opacity: 0; }

.altron {
  position: fixed; right: 22px; bottom: 96px; z-index: 60;
  width: min(400px, calc(100vw - 28px)); height: min(600px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-2); border-radius: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s .4s;
}
.altron.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s; }
.altron-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); }
.altron-head .orb { width: 42px; height: 42px; }
.altron-head strong { display: block; font: 500 1.1rem/1.2 var(--font-display); }
.altron-head small { color: var(--ok); font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.altron-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.altron-head .x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.altron-head .x:hover { background: var(--surface-3); }
.altron-log { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; background: var(--surface-2); color: var(--ink); font-size: .95rem; line-height: 1.5; animation: rise .35s var(--ease-out) both; }
.msg a { color: var(--gold); }
.msg.me { align-self: flex-end; background: var(--gold); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.bot { border-bottom-left-radius: 6px; }
.msg ul { margin: 6px 0 0; padding-left: 1.1em; }
.msg p { margin: 0 0 .5em; }
.msg p:last-child { margin: 0; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: bounce 1s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 40% { transform: translateY(-5px); background: var(--gold); } }
.altron-quick { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; flex: none; }
.altron-quick::-webkit-scrollbar { display: none; }
.altron-quick button {
  flex: none; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--surface-2); color: var(--gold);
  font-weight: 600; font-size: .86rem; cursor: pointer; transition: background .2s;
}
.altron-quick button:hover { background: var(--surface-3); }
.altron-form { display: flex; gap: 8px; padding: 12px 14px 14px; flex: none; background: var(--surface); }
.altron-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; border: 2px solid transparent; background: var(--bg); padding: 0 16px; }
.altron-form input:focus { outline: none; border-color: var(--gold); }
.altron-form button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--gold); color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.altron-form button:hover { background: var(--gold-hi); }

/* ---------- Reveal ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .method-list { grid-template-columns: 1fr; gap: 0; padding-left: 52px; }
  .method-track { left: 11px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .method-track i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .method-list li { padding: 8px 0 36px; }
  .method-list li::before { left: -52px; top: 8px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--bg); font-size: 1.6rem;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav-links a:not(.btn) { font-family: var(--font-display); font-weight: 300; color: var(--ink); }
  .nav-open .nav-links { opacity: 1; visibility: visible; transition: opacity .3s; }
  .hero-grid, .section-head, .intro-grid, .scan, .evidence, .cta, .svc, .faq, .split-2, .contact-grid, .case-grid, .work-teaser, .founder { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .founder-photo { max-width: 460px; }
  .consent-bar { left: 14px; right: 14px; bottom: 84px; max-width: none; }
  .hero-side { justify-self: start; }
  .svc:nth-child(even) .svc-visual { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--a, .tile--d { grid-column: 1 / -1; grid-row: auto; }
  .tile--b, .tile--c { grid-column: span 1; }
  .tile--d { flex-direction: column; align-items: stretch; }
  .industries { grid-template-columns: 1fr 1fr; }
  .opt-grid > * { grid-column: span 12 !important; }
  .engage, .next-steps { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .scan-result { position: static; }
  .altron-card { grid-template-columns: auto 1fr; }
  .altron-card .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .nav { height: 72px; }
  .brand svg { width: 108px; }
  .hero { padding: 110px 0 80px; }
  .hero .lede { margin: 26px 0 30px; }
  .bento { grid-template-columns: 1fr; }
  .tile--b, .tile--c { grid-column: 1 / -1; }
  .tile { min-height: 0; }
  .industries { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ui-site { grid-template-columns: 1fr; }
  .altron-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .altron-launch { right: 14px; bottom: 14px; padding-right: 8px; }
  .altron-launch .label { display: none; }
  .altron { right: 14px; bottom: 84px; }
  .ev { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .ev .badge { grid-row: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .split .w > span { transform: none; }
  .js [data-reveal] > * { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
