/* WareMind marketing site — dark, scroll-driven 3D landing page. */

:root {
  --bg: #040914;
  --bg-raise: #071125;
  --surface: rgba(10, 22, 46, 0.94);
  --surface-solid: #0a162e;
  --line: rgba(140, 175, 230, 0.14);
  --line-strong: rgba(140, 175, 230, 0.26);
  --text: #eaf0fa;
  --muted: #c0cce0;
  --faint: #a8b8cf;
  --navy: #01396c;
  --blue: #3d7be0;
  --orange: #fa662e;
  --orange-soft: #ff8f5c;
  --glow: rgba(250, 102, 46, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 72px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: var(--header-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; color: var(--orange-soft); text-shadow: none; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: #fff; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 3D scene layers ---------- */
.scene { position: fixed; inset: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.scene.is-ready canvas { opacity: 1; }
/* A still render of the hero is shown while the 3D scene loads, and stays as the fallback without WebGL. */
.scene__poster { position: absolute; inset: 0; background: url("../img/poster.jpg") center / cover no-repeat, var(--bg); opacity: 1; transition: opacity 1.2s var(--ease); }
@media (max-aspect-ratio: 4/5) { .scene__poster { background-image: url("../img/poster-portrait.jpg"); } }
.scene.is-ready .scene__poster { opacity: 0; }
.scene__dim { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.scene__vignette { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 9, 20, 0.75) 100%),
  linear-gradient(180deg, rgba(4, 9, 20, 0.55) 0%, transparent 18%, transparent 62%, rgba(4, 9, 20, 0.85) 100%); }
.scene.is-paused { visibility: hidden; }

.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.025; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--orange)); box-shadow: 0 0 12px var(--glow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid var(--line); background: rgba(4, 9, 20, 0.86); backdrop-filter: blur(16px);
}
.site-header.is-scrolled { background: rgba(4, 9, 20, 0.94); border-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.brand img { height: 30px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav__menu a { display: block; padding: 10px 14px; min-height: 44px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.25s, background 0.25s; }
.site-nav__menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 24px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); min-height: 46px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 15.5px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.btn--sm { --pad: 10px 18px; font-size: 14px; }
.btn--lg { --pad: 17px 30px; font-size: 16.5px; }
.btn--primary { background: linear-gradient(135deg, #ff7a3d, var(--orange) 55%, #e2501c); color: #071125; box-shadow: 0 8px 28px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }

/* ---------- Shared text ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { font-family: var(--font-display); color: var(--orange); font-weight: 700; letter-spacing: 0.06em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(250, 102, 46, 0.18), 0 0 14px var(--glow); }

.card {
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 35, 63, 0.97), rgba(8, 18, 38, 0.95));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
}

/* ---------- Story / chapters ---------- */
.story { position: relative; z-index: 2; }
.chapter { position: relative; min-height: 135vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.chapter--right { justify-content: flex-end; }
.chapter__card { width: min(490px, 100%); padding: clamp(26px, 3vw, 38px); will-change: opacity, transform; }
.chapter__card h2 { font-size: clamp(1.8rem, 2.6vw, 2.35rem); line-height: 1.22; margin: 16px 0; }
.chapter__card > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.75; }
.ticks { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; background: rgba(250, 102, 46, 0.14); box-shadow: inset 0 0 0 1px rgba(250, 102, 46, 0.5); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 8px; border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.meter { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.meter__row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meter__value { font-family: var(--font-display); color: var(--text); font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.meter__track { position: relative; height: 10px; margin-top: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); border-radius: inherit; background: linear-gradient(90deg, #c49a6c 0 58%, #dfe6ef 58% 84%, var(--orange) 84% 100%); }
.meter__legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.meter__legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.meter__legend i:first-child { margin-left: 0; }
.meter__legend .k1 { background: #c49a6c; } .meter__legend .k2 { background: #dfe6ef; } .meter__legend .k3 { background: var(--orange); }

/* Hero */
.chapter--hero { min-height: 100vh; min-height: 100svh; align-items: stretch; padding: 0; }
.hero { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) var(--gutter) clamp(14px, 2.4vh, 28px); }
.hero__intro { position: relative; isolation: isolate; max-width: 500px; }
.hero__intro::before { content: ""; position: absolute; z-index: -1; inset: -40px -60px -40px calc(-1 * var(--gutter)); background: radial-gradient(ellipse at 25% 45%, rgba(4, 9, 20, 0.96) 20%, rgba(4, 9, 20, 0.72) 55%, transparent 75%); pointer-events: none; }
.hero__headline { margin-top: 20px; font-size: clamp(2.1rem, 3.2vw, 3rem); line-height: 1.2; letter-spacing: -0.035em; }
.hero__base { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 18px); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero__title { order: -1; font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.15; letter-spacing: -0.045em; font-weight: 700; white-space: nowrap; text-align: left; margin: 0; }
.hero__word { display: inline-block; }
.hero__word--ware { color: #f4f7fc; }
.hero__word--mind { color: var(--orange-soft); }
.hero__lead { margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); color: #d2dced; line-height: 1.7; max-width: 44ch; text-shadow: 0 2px 24px rgba(4, 9, 20, 0.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__by { font-size: 13.5px; color: var(--faint); }
.hero__by strong { color: var(--muted); font-weight: 600; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); transition: color 0.3s; }
.scroll-cue:hover { color: var(--text); }
.scroll-cue span { position: relative; width: 20px; height: 32px; border-radius: 12px; border: 1.5px solid var(--line-strong); }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Finale */
.chapter--cta { min-height: 150vh; }
.finale { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; }
.finale__title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.22; margin: 20px 0; }
.finale__lead { max-width: 560px; color: #d5dceb; font-size: clamp(16px, 1.4vw, 19px); text-shadow: 0 2px 24px rgba(4, 9, 20, 0.9); }

/* Chapter rail */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; transition: opacity 0.5s var(--ease); }
.rail li { position: relative; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: background 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.rail li span { position: absolute; right: 20px; top: 50%; transform: translate(6px, -50%); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity 0.4s, transform 0.4s var(--ease); }
.rail li.is-active { background: var(--orange); transform: scale(1.35); box-shadow: 0 0 12px var(--glow); }
.rail:hover li span { opacity: 1; transform: translate(0, -50%); }
.rail.is-hidden { opacity: 0; }

/* ---------- Content sections ---------- */
/* Content sections sit over the live 3D scene, which keeps moving behind them. */
.content { position: relative; z-index: 3; background: linear-gradient(180deg, rgba(4, 9, 20, 0.76), rgba(4, 9, 20, 0.9) 55%, rgba(4, 9, 20, 0.7)); border-top: 1px solid var(--line); }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2, .company__text h2, .contact h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.25; margin-top: 16px; }
.section__lead { margin-top: 20px; color: #b9c6dc; font-size: clamp(16px, 1.3vw, 18.5px); max-width: 640px; text-shadow: 0 2px 20px rgba(4, 9, 20, 0.9); }
.section .eyebrow { text-shadow: 0 2px 16px rgba(4, 9, 20, 0.9); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 28px; overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s; }
.tile--wide { grid-column: span 2; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(250, 102, 46, 0.16), transparent 60%); }
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tile:hover::before { opacity: 1; }
.tile__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(140deg, rgba(250, 102, 46, 0.22), rgba(61, 123, 224, 0.18)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tile__icon svg { width: 22px; height: 22px; fill: #ffb08c; }
.tile h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; line-height: 1.75; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .section__head { position: sticky; top: calc(var(--header-h) + 40px); }
.industries { display: grid; gap: 14px; }
.industry { display: flex; gap: 22px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(8, 18, 38, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.4s, background 0.4s; }
.industry:hover { border-color: rgba(250, 102, 46, 0.4); background: rgba(10, 22, 46, 0.8); }
.industry__num { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--orange); background: rgba(250, 102, 46, 0.1); box-shadow: inset 0 0 0 1px rgba(250, 102, 46, 0.35); }
.industry h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.02em; }
.industry p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--orange), rgba(61, 123, 224, 0.6), transparent); }
.step { position: relative; padding-top: 70px; }
.step__n { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; font-weight: 700; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); transition: background 0.5s, border-color 0.5s, color 0.5s, box-shadow 0.5s; }
.step h3 { font-size: 20px; margin-bottom: 8px; text-shadow: 0 2px 16px rgba(4, 9, 20, 0.9); transition: color 0.5s; }
.step p { color: var(--muted); font-size: 16px; padding-right: 8px; text-shadow: 0 2px 16px rgba(4, 9, 20, 0.95); }
/* Steps light up as the 3D warehouse behind them reaches each stage. */
.js .step:not(.is-done) h3, .js .step:not(.is-done) p { opacity: 1; }
.step.is-done .step__n { background: var(--orange); border-color: var(--orange); color: #071125; box-shadow: 0 0 22px var(--glow); }
.step.is-done h3 { color: #fff; }
.section--approach { padding-bottom: clamp(220px, 34vh, 360px); }

.section--company { background: radial-gradient(80% 60% at 20% 50%, rgba(37, 99, 235, 0.12), transparent 70%); }
.company { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.company__brand { aspect-ratio: 1.1; border-radius: 28px; display: grid; place-items: center; padding: 14%; background: radial-gradient(70% 70% at 50% 40%, rgba(37, 99, 235, 0.24), transparent 70%), linear-gradient(180deg, rgba(12, 26, 54, 0.9), rgba(6, 14, 32, 0.88)); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.company__brand img { filter: drop-shadow(0 20px 50px rgba(37, 99, 235, 0.35)); }
.company__text > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 17px; }
.offices { list-style: none; margin: 30px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offices li { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(8, 18, 38, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.company__text > p:not(.eyebrow) { text-shadow: 0 2px 18px rgba(4, 9, 20, 0.95); }
.offices span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.offices small { color: var(--faint); font-size: 13px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--orange-soft); border-bottom: 1px solid rgba(250, 102, 46, 0.4); padding-bottom: 3px; transition: gap 0.3s var(--ease), color 0.3s; }
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 16px; color: #fff; }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(8, 18, 38, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(250, 102, 46, 0.35); background: rgba(10, 22, 46, 0.85); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; color: var(--muted); }
.faq details a { color: var(--orange-soft); }

.section--contact { padding-top: clamp(260px, 44vh, 480px); padding-bottom: clamp(100px, 14vw, 180px); }
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); border-radius: 32px; background: radial-gradient(60% 80% at 50% 0%, rgba(250, 102, 46, 0.2), transparent 70%), linear-gradient(180deg, rgba(14, 30, 60, 0.62), rgba(6, 14, 30, 0.82)); border: 1px solid var(--line); box-shadow: 0 40px 120px -40px rgba(250, 102, 46, 0.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.contact__mark { width: 92px; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(250, 102, 46, 0.35)); background: #fff; border-radius: 20px; padding: 12px; }
.contact .section__lead { margin-left: auto; margin-right: auto; }
.contact__actions { justify-content: center; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 760px; margin-top: 32px; text-align: left; }
.contact-detail { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 22px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: #09152b; transition: border-color 0.2s, background 0.2s; }
.contact-detail:hover { border-color: var(--orange-soft); background: #11213c; }
.contact-detail__label { color: var(--faint); font-size: 13px; line-height: 1.5; }
.contact-detail__value { color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-locations { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; font-style: normal; color: var(--muted); font-size: 15px; }
.contact-locations span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--orange); vertical-align: middle; }
.site-footer__contact { display: grid; gap: 4px; margin-top: 20px; font-style: normal; font-size: 15px; color: var(--muted); }
.site-footer__contact a { width: fit-content; min-height: 36px; padding: 5px 0; overflow-wrap: anywhere; }
.site-footer__contact a:hover { color: var(--orange-soft); }
.faq details p { max-width: 65ch; line-height: 1.8; overflow-wrap: anywhere; }
.tile h3, .industry h3, .step h3 { line-height: 1.35; }
.section--contact { padding-top: clamp(100px, 16vh, 180px); }
.contact { width: calc(100% - 2 * var(--gutter)); background: radial-gradient(60% 80% at 50% 0%, rgba(250, 102, 46, 0.12), transparent 70%), #091326; }

@media (max-width: 640px) {
  .contact-details { grid-template-columns: 1fr; max-width: 600px; }
}

/* Footer */
.site-footer { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; }
.site-footer__brand img { height: 30px; width: auto; }
.site-footer__brand p { margin-top: 14px; color: var(--faint); font-size: 14px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; justify-content: start; }
.site-footer__nav a { color: var(--muted); font-size: 14.5px; transition: color 0.25s; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__by { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.site-footer__by img { width: 120px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
.scene-control { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: #0a162e; font: 500 12px var(--font-body); cursor: pointer; box-shadow: 0 6px 24px #0005; }
.scene-control[hidden] { display: none; }
.scene-control:hover { color: #fff; border-color: var(--orange-soft); }
.scene-control__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.scene-control[aria-pressed="true"] .scene-control__icon { height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.site-footer { padding-bottom: 88px; }
.finale { padding: 32px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(4, 9, 20, 0.92), rgba(4, 9, 20, 0.74)); border: 1px solid var(--line); }
.faq details a, .site-footer__legal a { text-decoration: underline; text-underline-offset: 4px; }
.chapter__card, .finale { overflow-wrap: break-word; }
.chapter__card:focus-within, .finale:focus-within { opacity: 1 !important; }

/* Keep content usable when scripting or the animation CDN is unavailable. */
.no-js .site-nav__toggle { display: none; }
.no-js .chapter:not(.chapter--hero), .no-webgl .chapter:not(.chapter--hero) { min-height: auto; padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 860px) {
  .no-js .site-nav__menu { position: static; visibility: visible; opacity: 1; transform: none; pointer-events: auto; flex-direction: row; overflow-x: auto; border-radius: 0; margin: 0; box-shadow: none; }
  .no-js .site-header { position: relative; height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .no-js .site-nav { flex-basis: 100%; overflow: auto; }
  .no-js .site-nav__menu a { white-space: nowrap; }
  .hero { min-height: max(100svh, 720px); }
  .scene-control { padding: 9px 12px; font-size: 11px; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--orange), rgba(61, 123, 224, 0.5), transparent); }
  .step { padding: 0 0 34px 72px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; }
  .site-nav__bars, .site-nav__bars::before, .site-nav__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .site-nav__bars { position: relative; }
  .site-nav__bars::before, .site-nav__bars::after { content: ""; position: absolute; left: 0; }
  .site-nav__bars::before { top: -6px; } .site-nav__bars::after { top: 6px; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bars { background: transparent; }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .site-nav__toggle[aria-expanded="true"] .site-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav__menu { position: fixed; top: calc(var(--header-h) + 8px); left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; background: rgba(7, 17, 37, 0.96); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .site-nav__menu.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .site-nav__menu a { padding: 14px 16px; font-size: 16px; color: var(--text); }
  .site-header { gap: 12px; }
  .site-header__cta { order: 2; margin-left: auto; }
  .site-nav { order: 3; margin-left: 0; }
  .brand img { height: 24px; }

  .hero { padding-top: calc(var(--header-h) + 22px); }
  .hero__intro::before { inset: -24px calc(-1 * var(--gutter)); }
  .hero__headline { font-size: clamp(1.8rem, 7.4vw, 2.7rem); margin-top: 14px; }
  .hero__lead { font-size: 16px; margin-top: 14px; }
  .hero__actions { margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 auto; --pad: 13px 18px; font-size: 15px; }
  .hero__title { font-size: clamp(2rem, 7vw, 2.75rem); }
  .hero__by { font-size: 12px; max-width: 28ch; }
  .scroll-cue { display: none; }

  .chapter { min-height: 130vh; align-items: flex-end; padding-bottom: 12vh; }
  .chapter--right { justify-content: flex-start; }
  .chapter__card { padding: 22px; }
  .chapter__card h2 { font-size: clamp(1.7rem, 6.8vw, 2.3rem); margin: 12px 0; }
  .chapter__card > p:not(.eyebrow) { font-size: 16px; }
  .ticks { margin-top: 16px; padding-top: 14px; gap: 7px; }
  .ticks li { font-size: 15px; }
  .chapter--hero { min-height: 100vh; min-height: 100svh; align-items: stretch; padding: 0; }
  .hero__eyebrow { font-size: 11.5px; letter-spacing: 0.1em; }
  .finale__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .rail { display: none; }

  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .split, .company, .faq { grid-template-columns: 1fr; }
  .split .section__head { position: static; }
  .company__brand { aspect-ratio: auto; padding: 48px 20%; }
  .offices { grid-template-columns: 1fr; }
  .contact { padding: 36px 20px; }
  .contact-details { margin-top: 28px; }
  .contact-detail { padding: 18px; }
  .contact-locations { flex-direction: column; align-items: flex-start; width: 100%; text-align: left; }
  .card, .industry, .faq details, .offices li { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .faq details[open] { background: #0a162e; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__by { align-items: flex-start; }
  .site-footer__legal { flex-direction: column; }
}

@media (max-width: 420px) {
  .site-header__cta { --pad: 9px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Screenshot mode: no transitions so a single frame is final. */
.is-shot *, .is-shot *::before, .is-shot *::after { transition: none !important; animation: none !important; }
.is-clean .scene-control, .is-clean .site-header, .is-clean main, .is-clean .rail, .is-clean .progress, .is-clean .site-footer, .is-clean .grain { visibility: hidden; }
