/* ============================================================
   Emanate AI — site styles
   Colours live in :root. Change a hex there and it updates everywhere.
   ============================================================ */

:root {
  --midnight:   #0B1236;
  --midnight-2: #141E52;
  --midnight-3: #1E2A6B;
  --blue:       #3D7BFF;
  --blue-deep:  #2453D6;
  --sun:        #FFC83D;
  --mint:       #33DDA0;
  --ice:        #EEF2FF;
  --white:      #FFFFFF;

  --on-dark:      #F2F5FF;
  --on-dark-2:    #A9B3D9;
  --on-light:     #0B1236;
  --on-light-2:   #4A5480;
  --line-dark:    rgba(242,245,255,0.12);
  --line-light:   rgba(11,18,54,0.12);

  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(3.1rem, 7.6vw, 6.6rem); line-height: 0.95; font-weight: 800; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.0; font-weight: 800; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 58ch; }
.muted-d { color: var(--on-dark-2); }
.muted-l { color: var(--on-light-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gut); }
.block { padding: clamp(84px, 11vw, 150px) 0; position: relative; }

/* Section colour themes */
.t-dark  { background: var(--midnight); color: var(--on-dark); }
.t-ice   { background: var(--ice); color: var(--on-light); }
.t-white { background: var(--white); color: var(--on-light); }
.t-blue  { background: var(--blue); color: var(--white); }
.t-sun   { background: var(--sun); color: var(--on-light); }
.t-mint  { background: var(--mint); color: var(--on-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun   { background: var(--sun); color: var(--midnight); }
.btn-sun:hover { background: #ffd56a; }
.btn-blue  { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #5a8fff; }
.btn-ink   { background: var(--midnight); color: var(--white); }
.btn-ink:hover { background: var(--midnight-3); }
.btn-line-d { border-color: var(--line-dark); color: var(--on-dark); }
.btn-line-d:hover { border-color: var(--on-dark-2); }
.btn-line-l { border-color: rgba(11,18,54,0.25); color: var(--on-light); }
.btn-line-l:hover { border-color: var(--on-light); }
.btn-lg { padding: 18px 34px; font-size: 1.06rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .3s, border-color .3s, transform .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11,18,54,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line-dark); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 76px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--white); }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--on-dark-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--white); background: rgba(61,123,255,0.22); }
.nav-cta { padding: 11px 22px; font-size: 0.95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--line-dark); color: var(--white); border-radius: 999px; padding: 8px 16px; font: 700 0.92rem var(--body); cursor: pointer; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: radial-gradient(120% 90% at 72% 58%, #17246a 0%, var(--midnight) 58%);
  padding: 120px 0 90px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 7.2em; margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line span { display: block; }
.hero .lede { color: var(--on-dark-2); margin-bottom: 34px; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; color: var(--on-dark-2); font-size: 0.95rem; max-width: 46ch; }
.chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(20,30,82,0.78); border: 1.5px solid rgba(255,200,61,0.55);
  color: var(--on-dark); font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%); transition: background .45s, border-color .45s, color .45s, transform .45s cubic-bezier(.3,1.6,.5,1);
}
.chip i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--midnight); font-style: normal; flex: none; transition: background .45s; }
.chip i svg { width: 12px; height: 12px; }
.chip .todo, .chip .done { transition: opacity .3s; }
.chip .done { display: none; }
.chip.is-done { background: var(--mint); border-color: var(--mint); color: var(--midnight); transform: translate(-50%, -50%) scale(1.06); }
.chip.is-done i { background: var(--midnight); color: var(--mint); }
.chip.is-done .todo { display: none; }
.chip.is-done .done { display: inline; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; color: var(--on-dark-2); font-size: 0.85rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 2px; height: 34px; background: linear-gradient(var(--sun), transparent); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Load-in for hero headline */
.js .hero h1 .line span { transform: translateY(105%); }
.js .hero .lede, .js .hero .hero-actions, .js .hero .hero-note { opacity: 0; transform: translateY(16px); }
.loaded .hero h1 .line span { transform: none; transition: transform 1s cubic-bezier(.2,.9,.2,1); }
.loaded .hero h1 .line:nth-child(2) span { transition-delay: .12s; }
.loaded .hero .lede, .loaded .hero .hero-actions, .loaded .hero .hero-note { opacity: 1; transform: none; transition: opacity .8s .45s, transform .8s .45s cubic-bezier(.2,.9,.2,1); }
.loaded .hero .hero-actions { transition-delay: .55s; }
.loaded .hero .hero-note { transition-delay: .65s; }

/* ---------- Ticker ---------- */
.ticker { background: var(--sun); color: var(--midnight); overflow: hidden; padding: 20px 0; border-block: 2px solid var(--midnight); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; padding-right: 44px; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; white-space: nowrap; }
.ticker-track svg { width: 22px; height: 22px; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sticky story: "A normal Tuesday" ---------- */
.story { position: relative; height: 460vh; }
.story-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 6vw, 90px); align-items: center; width: 100%; }
.story-intro { margin-bottom: 34px; }
.story-intro h2 { margin-bottom: 14px; }
.story-steps { position: relative; min-height: 15.5rem; }
.story-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.2,1); }
.story-step.on { opacity: 1; transform: none; }
.story-step .problem { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
.story-step .fix { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; color: var(--on-light-2); max-width: 46ch; }
.story-step .fix b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--midnight); margin-top: 1px; }
.story-step .fix b svg { width: 15px; height: 15px; }
.story-dots { display: flex; gap: 8px; margin-top: 28px; }
.story-dots i { width: 34px; height: 5px; border-radius: 5px; background: rgba(11,18,54,0.14); overflow: hidden; position: relative; }
.story-dots i::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Phone */
.phone {
  width: min(360px, 82vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 52px; padding: 14px;
  background: var(--midnight); box-shadow: 0 50px 90px -30px rgba(11,18,54,0.55), inset 0 0 0 2px #2a3570;
  position: relative;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background: linear-gradient(165deg, #2b4bd8 0%, #3D7BFF 45%, #7aa6ff 100%);
  transition: background 1s;
}
.phone-screen[data-step="3"] { background: linear-gradient(165deg, #0B1236 0%, #1E2A6B 60%, #3346a8 100%); }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; background: var(--midnight); border-radius: 20px; z-index: 3; }
.phone-time { text-align: center; color: #fff; padding-top: 64px; }
.phone-time .day { font-weight: 600; font-size: 0.95rem; opacity: 0.85; }
.phone-time .clock { font-family: var(--display); font-weight: 800; font-size: 4.4rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.phone-time .ampm { font-size: 1.3rem; font-weight: 700; margin-left: 4px; }
.notes { position: absolute; left: 12px; right: 12px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.note {
  background: rgba(255,255,255,0.9); color: var(--midnight); border-radius: 20px; padding: 12px 14px;
  font-size: 0.86rem; line-height: 1.35; box-shadow: 0 10px 24px -12px rgba(11,18,54,0.5);
  transform: translateY(20px) scale(0.96); opacity: 0; transition: opacity .45s, transform .55s cubic-bezier(.25,1.4,.5,1);
}
.note.on { opacity: 1; transform: none; }
.note .app { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; color: var(--on-light-2); margin-bottom: 3px; }
.note .app em { margin-left: auto; font-style: normal; font-weight: 500; }
.note .dot { width: 16px; height: 16px; border-radius: 5px; background: var(--blue); display: inline-block; }
.note.good .dot { background: var(--mint); }
.note strong { display: block; font-size: 0.9rem; }

/* ---------- Service panels (stacking cards) ---------- */
.services-head { padding-bottom: 40px; }
.stack { position: relative; padding-bottom: 8vh; }
.panel {
  position: sticky; top: 92px; min-height: min(78vh, 720px); border-radius: var(--r-lg);
  margin: 0 auto 6vh; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 4.4vw, 60px); overflow: hidden; align-items: center;
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,0.5);
}
.panel h3 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 0.98; margin-bottom: 18px; }
.panel .lede { margin-bottom: 26px; }
.specs { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1.5px solid currentColor; }
.specs li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 14px; padding: 13px 0; border-bottom: 1.5px solid rgba(11,18,54,0.18); font-size: 0.98rem; }
.t-blue .specs li { border-bottom-color: rgba(255,255,255,0.28); }
.specs span:first-child { font-weight: 700; }
.panel-art { position: relative; height: 100%; min-height: 340px; display: grid; place-items: center; }

/* Art: flow (automation) */
.flow { width: 100%; max-width: 440px; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .path { fill: none; stroke: rgba(255,255,255,0.35); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.flow .node rect { fill: #fff; }
.flow .node text { font: 700 15px var(--body); fill: var(--midnight); }
.flow .node.hot rect { fill: var(--sun); }
.flow .node.ok rect { fill: var(--mint); }
.flow .runner { fill: var(--sun); filter: drop-shadow(0 0 8px rgba(255,200,61,0.9)); }

/* Art: record (software) */
.record { width: 100%; max-width: 420px; background: var(--white); border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(11,18,54,0.45); overflow: hidden; color: var(--midnight); }
.record-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--midnight); color: #fff; font-weight: 600; font-size: 0.88rem; }
.record-top .pill { margin-left: auto; }
.record-head { padding: 18px 18px 6px; }
.record-head b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.record-head small { color: var(--on-light-2); font-size: 0.88rem; }
.record-row { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 10px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line-light); font-size: 0.93rem; }
.record-row span:first-child { color: var(--on-light-2); font-weight: 600; font-size: 0.85rem; }
.record-row b { font-weight: 700; }
.pill { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(61,123,255,0.12); color: var(--blue-deep); white-space: nowrap; }
.pill.ok { background: rgba(51,221,160,0.2); color: #0d7a52; }
.record-top .pill.ok { background: var(--mint); color: var(--midnight); }
.anim .record-row { opacity: 0; transform: translateX(-14px); }
.anim.play .record-row { opacity: 1; transform: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.2,1); }
.anim.play .record-row:nth-child(2) { transition-delay: .15s; } .anim.play .record-row:nth-child(3) { transition-delay: .3s; }
.anim.play .record-row:nth-child(4) { transition-delay: .45s; } .anim.play .record-row:nth-child(5) { transition-delay: .6s; }
.anim.play .record-row:nth-child(6) { transition-delay: .75s; }

/* Art: sorter (consulting) */
.sorter { width: 100%; max-width: 460px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bin { background: rgba(11,18,54,0.08); border: 2px dashed rgba(11,18,54,0.25); border-radius: 18px; padding: 12px 8px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; }
.bin h4 { font-family: var(--body); font-size: 0.82rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.task { background: var(--white); border-radius: 12px; padding: 9px 10px; font-size: 0.8rem; font-weight: 600; line-height: 1.25; box-shadow: 0 6px 14px -8px rgba(11,18,54,0.4); }
.bin.auto .task { border-left: 4px solid #12a46f; }
.bin.assist .task { border-left: 4px solid var(--blue); }
.bin.human .task { border-left: 4px solid var(--midnight); }
.anim .task { opacity: 0; transform: translateY(-30px) rotate(-4deg); }
.anim.play .task { opacity: 1; transform: none; transition: opacity .4s, transform .6s cubic-bezier(.3,1.5,.5,1); transition-delay: calc(var(--i) * 0.16s); }

/* ---------- Numbers ---------- */
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid rgba(255,255,255,0.35); }
.num { padding: 34px 24px 10px 0; border-right: 2px solid rgba(255,255,255,0.18); }
.num:last-child { border-right: 0; }
.num + .num { padding-left: 24px; }
.num b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 8vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.num b small { font-size: 0.38em; letter-spacing: -0.01em; margin-left: 4px; }
.num p { margin: 14px 0 0; font-size: 1.05rem; max-width: 22ch; opacity: 0.92; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); }
.process-head { position: sticky; top: 130px; align-self: start; }
.steps { position: relative; padding-left: 46px; }
.steps::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 3px; background: var(--line-dark); border-radius: 3px; }
.steps-fill { position: absolute; left: 13px; top: 8px; width: 3px; height: 0; background: linear-gradient(var(--sun), var(--mint)); border-radius: 3px; }
.step { position: relative; padding: 0 0 54px; }
.step:last-child { padding-bottom: 0; }
.step-dot { position: absolute; left: -46px; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--midnight-2); border: 3px solid var(--midnight-3); display: grid; place-items: center; font: 800 0.8rem var(--body); color: var(--on-dark-2); transition: background .3s, border-color .3s, color .3s; }
.step.lit .step-dot { background: var(--sun); border-color: var(--sun); color: var(--midnight); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--on-dark-2); max-width: 48ch; margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.about-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--midnight); }
.about-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.about-photo.img-missing img { display: none; }
.about-photo.img-missing::after { content: 'jax.jpg'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-2); font-weight: 600; }
.about-photo .badge { position: absolute; left: 16px; bottom: 16px; background: var(--sun); color: var(--midnight); font-weight: 700; font-size: 0.9rem; padding: 9px 15px; border-radius: 999px; }
.about h2 { margin-bottom: 22px; }
.about .lede { color: var(--on-light-2); }
.sig { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; margin-top: 10px; color: var(--blue); }

/* ---------- Who it's for ---------- */
.trades { display: flex; flex-wrap: wrap; gap: 0.15em 0.55em; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5.6vw, 4.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.trades span { color: rgba(11,18,54,0.18); transition: color .25s; cursor: default; }
.trades span:hover, .trades span.lit { color: var(--midnight); }
.trades span:nth-child(3n+1):hover, .trades span:nth-child(3n+1).lit { color: var(--blue); }
.trades span:nth-child(3n+2):hover, .trades span:nth-child(3n+2).lit { color: #0fa46e; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--midnight); }
.faq details { border-bottom: 1.5px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1236' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s, background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.faq-body { padding: 0 8% 26px 0; color: var(--on-light-2); font-size: 1.05rem; }
.faq-body p:last-child { margin: 0; }
.t-ice .faq summary::after { background-color: var(--white); }

/* ---------- CTA ---------- */
.cta { text-align: left; overflow: hidden; }
.cta h2 { font-size: clamp(3rem, 9vw, 7.6rem); line-height: 0.92; max-width: 11ch; margin-bottom: 30px; }
.cta .lede { margin-bottom: 34px; }
.cta-ring { position: absolute; right: -12vw; top: 50%; width: 60vw; max-width: 760px; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.cta-ring circle { fill: none; stroke: var(--midnight); stroke-width: 2; opacity: 0.16; }
.cta .wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.foot { background: var(--midnight); color: var(--on-dark); padding: 80px 0 30px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 60px; }
.foot h4 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; color: var(--on-dark-2); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 10px; }
.foot a { color: var(--on-dark); font-weight: 500; transition: color .2s; }
.foot a:hover { color: var(--sun); }
.foot-intro p { color: var(--on-dark-2); max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-dark); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--sun); border-color: var(--sun); }
.social a:hover svg { fill: var(--midnight); }
.social svg { width: 18px; height: 18px; fill: var(--on-dark); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 14.6vw, 13.2rem); line-height: 0.8; letter-spacing: -0.055em; white-space: nowrap; color: #19256A; user-select: none; margin: 0 0 24px -0.04em; }
.wordmark span { color: var(--blue); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 0.9rem; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 150px 0 clamp(70px, 9vw, 120px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin-bottom: 24px; }
.page-hero .lede { margin-bottom: 32px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.98rem; margin-bottom: 22px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.t-sun .kicker, .t-mint .kicker, .t-ice .kicker { background: rgba(11,18,54,0.08); }
.kicker i { width: 22px; height: 22px; border-radius: 50%; background: currentColor; display: inline-block; opacity: 0.9; }

/* Build list (inner pages) */
.builds { border-top: 2px solid currentColor; }
.build { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(16px, 4vw, 60px); padding: 34px 0; border-bottom: 1.5px solid var(--line-light); }
.t-dark .build { border-bottom-color: var(--line-dark); }
.build h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.build p { margin: 0; color: var(--on-light-2); font-size: 1.06rem; max-width: 52ch; }
.t-dark .build p { color: var(--on-dark-2); }
.build .tagline { display: block; margin-top: 8px; font-weight: 600; font-size: 1rem; color: var(--blue); font-family: var(--body); letter-spacing: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.checks li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1.5px solid var(--line-light); font-size: 1.08rem; }
.checks li::before { content: ''; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 70px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.split-head .lede { margin: 0; }

/* ---------- Focus & motion ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .hero h1 .line span, .js .hero .lede, .js .hero-actions, .js .hero-note { transform: none; opacity: 1; }
  .ticker-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .story { height: auto; }
  .story-stage { position: relative; height: auto; padding: 90px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-steps { min-height: 0; }
  .story-step { position: relative; opacity: 1; transform: none; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1.5px solid var(--line-light); }
  .story-dots { display: none; }
  .story-phone { display: none; }
  .panel { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
  .panel-art { min-height: 300px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(3) { padding-left: 0; }
  .num:nth-child(n+3) { border-top: 2px solid rgba(255,255,255,0.18); }
  .process, .about, .page-hero-grid, .split-head { grid-template-columns: 1fr; }
  .process-head { position: relative; top: 0; }
  .about-photo { max-width: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 2px; background: var(--midnight); padding: 10px var(--gut) 22px; border-bottom: 1px solid var(--line-dark); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero { align-items: flex-start; padding: 124px 0 260px; min-height: 100svh; }
  .chips { inset: auto 0 0 0; height: 240px; }
  .scroll-cue { display: none; }
  .chip { font-size: 0.8rem; padding: 7px 12px 7px 8px; }
  .chip i { width: 18px; height: 18px; }
  .chip.m-hide { display: none; }
  .specs li { grid-template-columns: 1fr; gap: 2px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .num, .num + .num { padding: 26px 0 8px; border-right: 0; border-top: 2px solid rgba(255,255,255,0.18); }
  .numbers-grid .num:first-child { border-top: 0; }
  .build { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .sorter { gap: 6px; }
  .bin { min-height: 220px; padding: 10px 6px; }
  .task { font-size: 0.72rem; padding: 7px 7px; }
  .record-row { grid-template-columns: 5.4rem 1fr; }
  .record-row .pill { grid-column: 2; justify-self: start; }
  .cta-ring { width: 120vw; right: -60vw; }
}

/* Inner pages: solid nav so it reads over coloured heroes */
.nav.solid { background: rgba(11,18,54,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.page-hero .hero-note { color: inherit; opacity: 0.78; }
.t-ice .steps::before, .t-white .steps::before { background: var(--line-light); }
.t-ice .step p, .t-white .step p { color: var(--on-light-2); }
.t-ice .step-dot, .t-white .step-dot { background: var(--white); border-color: rgba(11,18,54,0.15); color: var(--on-light-2); }

/* Real estate page */
.page-hero h1.h1-long { font-size: clamp(2.5rem, 5.4vw, 4.7rem); line-height: 0.98; }
.numbers-3 { grid-template-columns: 1.35fr 0.75fr 1.2fr; border-top-color: rgba(11,18,54,0.35); }
.numbers-3 .num { border-right-color: rgba(11,18,54,0.18); }
.numbers-3 .num b { font-size: clamp(2.8rem, 6vw, 5.6rem); }
@media (max-width: 1020px) {
  .numbers-3 { grid-template-columns: 1fr; }
  .numbers-3 .num, .numbers-3 .num + .num { padding: 26px 0 8px; border-right: 0; border-top: 2px solid rgba(11,18,54,0.15); }
  .numbers-3 .num:first-child { border-top: 0; }
}

/* ---------- Industries dropdown ---------- */
.dd { position: relative; }
.dd::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 0; background: none; font: 600 0.95rem var(--body); color: var(--on-dark-2); cursor: pointer; transition: color .2s, background .2s; }
.dd-btn svg { width: 14px; height: 14px; transition: transform .25s; }
.dd-btn:hover, .dd:hover .dd-btn, .dd.open .dd-btn { color: var(--white); background: rgba(255,255,255,0.06); }
.dd-btn.active { color: var(--white); background: rgba(61,123,255,0.22); }
.dd:hover .dd-btn svg, .dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 320px; padding: 8px;
  background: var(--midnight-2); border: 1px solid var(--line-dark); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s, visibility .2s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links .dd-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; color: var(--on-dark); font-weight: 600; }
.nav-links .dd-menu a:hover, .nav-links .dd-menu a.active { background: rgba(255,255,255,0.07); }
.dd-menu i { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* ---------- Industry tiles ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ind { grid-column: span 2; border-radius: 26px; padding: 28px; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.ind.big { grid-column: span 3; min-height: 300px; }
.ind:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -24px rgba(11,18,54,0.45); }
.ind.t-white { border: 1.5px solid var(--line-light); }
.t-deep { background: var(--midnight); color: var(--white); }
.t-deep p { color: var(--on-dark-2); }
.ind-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(11,18,54,0.09); }
.t-blue .ind-ico, .t-deep .ind-ico { background: rgba(255,255,255,0.14); }
.ind-ico svg { width: 28px; height: 28px; }
.ind h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 800; line-height: 1.02; }
.ind p { margin: 10px 0 0; font-size: 1.02rem; max-width: 38ch; opacity: 0.9; }
.ind-go { display: inline-block; margin-top: 18px; font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.ind-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ind-grid-4 .ind { grid-column: span 1; min-height: 240px; }
.kicker-ico { width: 26px !important; height: 26px !important; border-radius: 50%; background: rgba(255,255,255,0.18) !important; display: grid !important; place-items: center; }
.t-sun .kicker-ico, .t-mint .kicker-ico, .t-ice .kicker-ico { background: rgba(11,18,54,0.1) !important; }
.kicker-ico svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 2px; background: var(--midnight); padding: 10px var(--gut) 22px; border-bottom: 1px solid var(--line-dark); max-height: calc(100svh - 76px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 12px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .dd::after { display: none; }
  .dd-btn { padding: 14px 12px 6px; pointer-events: none; font-size: 0.85rem; color: var(--on-dark-2); }
  .dd-btn svg { display: none; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 6px 10px; background: none; border: 0; box-shadow: none; }
  .ind-grid, .ind-grid-4 { grid-template-columns: 1fr 1fr; }
  .ind, .ind.big, .ind-grid-4 .ind { grid-column: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .ind-grid, .ind-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Industry calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 52px); align-items: start; }
.calc-inputs { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 7px; }
.field small { display: block; margin-top: 6px; font-size: 0.88rem; color: rgba(11,18,54,0.66); }
.input { display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 16px; background: var(--white); border: 2px solid rgba(11,18,54,0.14); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--midnight); box-shadow: 0 0 0 4px rgba(11,18,54,0.08); }
.input span { font-weight: 700; color: var(--on-light-2); white-space: nowrap; }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 1.3rem var(--body); color: var(--midnight); font-variant-numeric: tabular-nums; padding: 0 4px; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.calc-out { position: sticky; top: 100px; background: var(--midnight); color: var(--white); border-radius: 28px; padding: clamp(24px, 3.6vw, 42px); box-shadow: 0 40px 80px -36px rgba(11,18,54,0.6); }
.calc-out .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--sun); overflow-wrap: anywhere; }
.big-label { margin: 10px 0 0; color: var(--on-dark-2); font-size: 1.05rem; }
.calc-lines { list-style: none; padding: 0; margin: 26px 0; border-top: 1px solid var(--line-dark); }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 0.98rem; }
.calc-lines b { color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.recover { background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); border-radius: 20px; padding: 18px 20px 20px; margin-bottom: 20px; }
.recover label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 14px; }
.recover label b { color: var(--mint); font-size: 1.1rem; }
.recover input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--mint) var(--fill, 25%), rgba(255,255,255,0.15) var(--fill, 25%)); outline: none; cursor: pointer; }
.recover input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 4px solid var(--mint); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.recover input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--mint); }
.recover input[type=range]:focus-visible { outline: 3px solid var(--sun); outline-offset: 6px; }
.rv { margin-top: 16px; }
.rv .rec-val { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--mint); font-variant-numeric: tabular-nums; }
.rv small { color: var(--on-dark-2); font-size: 0.95rem; }
.calc-note { font-size: 0.88rem; color: var(--on-dark-2); margin: 0 0 18px; }
@media (max-width: 1020px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { position: relative; top: 0; }
}
