/* ==========================================================================
   Yohold BV — site styles
   Source of truth for tokens and components: Yohold Design System (Claude Design)
   https://claude.ai/artifact/TsvUNEPPHauT5RnnaxKseG
   Keep this file and the design system in sync when tokens change.
   ========================================================================== */

:root {
  --bg: #0b1d3e;
  --bg-2: #0d2147;
  --card: #11284f;
  --card-2: #15305c;
  --text: #f4f7fb;
  --muted: #a9b9d5;
  --line: #233f6e;
  --line-2: #2f4f86;
  --accent: #73e6c1;
  --accent-light: #c8f7e8;
  --accent-deep: #3fae8c;
  --accent-ink: #0b1d3e;
  --accent-soft: rgba(115, 230, 193, .1);
  --accent-glow: rgba(115, 230, 193, .28);

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 22px;
  --radius-sm: 14px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 85% -5%, rgba(47, 79, 134, .45), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(35, 63, 110, .35), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 16px; }

.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;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--btn-bg);
  font: 500 15px/1 var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: transform .25s var(--ease-out), translate .45s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  --btn-bg: var(--accent);
  color: var(--accent-ink); border-color: var(--accent); font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 30px -10px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 40px -8px var(--accent-glow); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ext:hover svg { transform: translate(2px, -2px); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .idx {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); letter-spacing: .08em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 7px rgba(115, 230, 193, 0); }
}

.accent-text {
  background: linear-gradient(100deg, var(--accent) 30%, var(--accent-light) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@keyframes shine { to { background-position: -200% 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 29, 62, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(35, 63, 110, .7);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo {
  font: 700 21px/1 var(--font-display);
  letter-spacing: .14em;
  display: inline-flex; align-items: center;
  margin-right: auto;
}
.logo span {
  color: var(--accent);
  display: inline-block; margin: 0 .04em;
  transition: transform .5s var(--ease-out);
}
.logo:hover span { transform: rotate(18deg); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; display: block;
  padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.is-active { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent);
  transform: scale(0); transition: transform .3s var(--ease-out);
}
.nav-links a.is-active::after { transform: scale(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(11, 29, 62, .97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  /* hide only after the fade-out; show at once so the first link can take focus */
  transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), visibility 0s; }
.mobile-menu ul { display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  font: 600 30px/1.1 var(--font-display); letter-spacing: -.02em;
  transform: translateY(12px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), color .2s;
}
.mobile-menu li a small { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .1em; }
.mobile-menu li a:hover { color: var(--accent); }
.mobile-menu.is-open li a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu .btn { margin-top: 32px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) 0 clamp(64px, 9vh, 110px);
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(35, 63, 110, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 63, 110, .55) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-1 {
  width: 560px; height: 560px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(115, 230, 193, .22), transparent 65%);
  animation: drift 18s var(--ease-in-out) infinite alternate;
}
.glow-2 {
  width: 520px; height: 520px; left: -220px; bottom: -260px;
  background: radial-gradient(circle, rgba(47, 79, 134, .7), transparent 65%);
}
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.1); } }

.spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--sx, 70%) var(--sy, 30%), rgba(115, 230, 193, .07), transparent 60%);
  transition: opacity .4s;
}

.hero-inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-size: clamp(52px, 8.4vw, 116px);
  line-height: .94; letter-spacing: -.055em; font-weight: 700;
  margin: 26px 0 28px;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .word > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.hero-title .word:nth-child(2) > span { animation-delay: .08s; }
.hero-title .word:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } }

.hero-lead { max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-meta dt { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hero-meta dd { font: 500 15px/1.3 var(--font-body); }

.fade-up { animation: fadeUp .9s var(--ease-out) both; }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .35s; } .d3 { animation-delay: .45s; } .d4 { animation-delay: .55s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* Hero visual — portfolio orbit */
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; animation: fadeIn 1.4s .3s var(--ease-out) both; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.96); } }
.orbit { width: 100%; height: 100%; overflow: visible; }
.orbit .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.orbit .ring-dash { stroke-dasharray: 2 8; transform-origin: 240px 240px; animation: spin 80s linear infinite; }
.orbit .ring-dash.rev { animation-direction: reverse; animation-duration: 110s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .link { stroke: var(--line-2); stroke-width: 1; }
.orbit .link-live { stroke: var(--accent); stroke-opacity: .55; stroke-dasharray: 3 5; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.orbit .node circle.base { fill: var(--card); stroke: var(--line-2); stroke-width: 1; }
.orbit .node text { font: 500 11px var(--font-mono); fill: var(--muted); letter-spacing: .06em; }
.orbit .node.hot circle.base { stroke: var(--accent); }
.orbit .node.hot text { fill: var(--text); }
.orbit .node .icon { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.orbit .core-ring { fill: none; stroke: var(--accent); stroke-opacity: .35; }
.orbit .core-pulse { fill: none; stroke: var(--accent); transform-origin: 240px 240px; animation: corePulse 3.2s var(--ease-out) infinite; }
@keyframes corePulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.9); opacity: 0; } }
.orbit .core-label { font: 700 13px var(--font-display); letter-spacing: .14em; fill: var(--text); }
.orbit .core-label tspan.a { fill: var(--accent); }
.orbit .packet { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

.chip {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(17, 40, 79, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  font-size: 13px;
}
.chip-venture { right: -6%; bottom: -6%; animation: float 7s var(--ease-in-out) infinite alternate; }
.chip-venture .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.chip-venture .chip-logo { display: block; height: 16px; width: auto; margin-bottom: 4px; }
.chip-venture small { color: var(--muted); font-size: 12px; }

.chip-term {
  left: -10%; bottom: -19%;
  flex-direction: column; align-items: stretch; gap: 0;
  padding: 0; min-width: 250px;
  font: 400 12px/1.75 var(--font-mono);
}
.chip-term .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chip-term .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.chip-term .body { padding: 12px 14px 14px; color: var(--muted); }
.chip-term .body > span { display: block; white-space: nowrap; opacity: 0; animation: type .01s forwards; }
.chip-term .body > span:nth-child(1) { animation-delay: 1.0s; }
.chip-term .body > span:nth-child(2) { animation-delay: 1.5s; }
.chip-term .body > span:nth-child(3) { animation-delay: 1.9s; }
.chip-term .body > span:nth-child(4) { animation-delay: 2.3s; }
.chip-term .body > span:nth-child(5) { animation-delay: 2.7s; }
@keyframes type { to { opacity: 1; } }
.chip-term .prompt { color: var(--accent); }
.chip-term .ok { color: var(--accent); }
.chip-term .cmd { color: var(--text); }
.caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { to { transform: translateY(-12px); } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  display: flex; align-items: center; gap: 28px;
  padding: 22px 0 22px 28px;
  font: 500 clamp(17px, 2vw, 22px)/1 var(--font-display);
  letter-spacing: -.01em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee li::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(88px, 12vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2, .h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; margin: 22px 0 22px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; max-width: 680px; }

/* ---------- Cards (shared) ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card) 55%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s, transform .5s var(--ease-out);
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.15; margin: 0 0 12px; }
.card p { color: var(--muted); }
/* pointer spotlight */
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(115, 230, 193, .09), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(115, 230, 193, .6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.card-num { font: 500 12px/1 var(--font-mono); color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(115, 230, 193, .22);
  color: var(--accent);
}
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Software bento ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "big big a"
    "big big b"
    "flow flow flow";
}
.bento .c-big { grid-area: big; display: flex; flex-direction: column; }
.bento .c-a { grid-area: a; }
.bento .c-b { grid-area: b; }
.bento .c-flow { grid-area: flow; }

.c-big .card-body { max-width: 520px; }
.c-big .app-mock { flex: 1 1 auto; display: flex; flex-direction: column; }
.c-big .app-mock .ui { flex: 1; }
.c-big .app-mock .main { grid-template-rows: auto 1fr; }
.c-big .app-mock .chart { height: auto; min-height: 92px; }
.app-mock {
  position: relative; margin: 0 0 36px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform: perspective(1200px) rotateX(6deg);
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease-out);
}
.c-big:hover .app-mock { transform: perspective(1200px) rotateX(0deg) translateY(-4px); }
.app-mock .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.app-mock .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.app-mock .bar em { margin-left: 12px; flex: 1; height: 18px; max-width: 220px; border-radius: 6px; background: var(--card); }
.app-mock .ui { display: grid; grid-template-columns: 110px 1fr; min-height: 210px; }
.app-mock .side { border-right: 1px solid var(--line); padding: 14px 12px; display: grid; gap: 9px; align-content: start; }
.app-mock .side i { height: 8px; border-radius: 4px; background: var(--card-2); }
.app-mock .side i.on { background: var(--accent); opacity: .7; width: 70%; }
.app-mock .main { padding: 16px; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.app-mock .kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 7px; }
.app-mock .kpi i { height: 6px; width: 50%; border-radius: 3px; background: var(--line-2); }
.app-mock .kpi b { height: 12px; width: 70%; border-radius: 4px; background: var(--muted); opacity: .35; }
.app-mock .chart { grid-column: 1 / -1; height: 92px; border: 1px solid var(--line); border-radius: 10px; position: relative; overflow: hidden; }
.app-mock .chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-mock .chart path.line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.app-mock .chart svg { clip-path: inset(0 100% 0 0); transition: clip-path 2s .3s var(--ease-out); }
.app-mock .chart path.area { fill: url(#areaGrad); }
.is-in .app-mock .chart svg { clip-path: inset(0 0 0 0); }

/* pipeline */
.c-flow { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 40px; align-items: center; }
.c-flow h3 { margin-bottom: 8px; }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.pipeline::before {
  content: ""; position: absolute; left: 6px; right: calc((100% - 50px) / 6 - 6px); top: 6px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--line-2));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.6s .2s var(--ease-out);
}
.is-in .pipeline::before, .pipeline.is-in::before { transform: scaleX(1); }
.pipeline li { position: relative; padding-top: 30px; font-size: 14.5px; line-height: 1.35; color: var(--text); }
.pipeline li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
}
.pipeline li::after {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-top: 6px;
  font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .12em;
}

/* ---------- Ventures ---------- */
.venture {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4.5vw, 56px);
}
.venture::before { /* glow corner */ }
.venture .glow-corner {
  position: absolute; z-index: -1; width: 480px; height: 480px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(115, 230, 193, .16), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(115, 230, 193, .25);
  font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.card .venture-title { margin: 28px 0 22px; line-height: 0; }
.venture-title img { width: clamp(220px, 26vw, 340px); height: auto; }
.venture-copy > p { color: var(--muted); font-size: 17px; max-width: 520px; }
.standards { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.standards li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px/1 var(--font-mono); letter-spacing: .04em; }
.facts { display: grid; gap: 0; margin: 32px 0 34px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1.9 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 15px; }

/* Flow QS illustrative dashboard */
.qs-mock {
  position: relative;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: rgba(11, 29, 62, .85);
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(115, 230, 193, .04);
}
.qs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.qs-head img { height: 18px; width: auto; }
.qs-head small { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--font-mono); color: var(--accent); letter-spacing: .08em; }
.qs-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.qs-ring { display: grid; grid-template-columns: 108px 1fr; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.qs-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.qs-ring circle { fill: none; stroke-width: 9; }
.qs-ring .track { stroke: var(--line); }
.qs-ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 2s .4s var(--ease-out); }
.is-in .qs-ring .val { stroke-dashoffset: 52; }
.qs-ring p { font: 500 11px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qs-ring p b { display: block; font: 600 20px/1.2 var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--text); margin-top: 4px; }
.qs-rows { display: grid; gap: 10px; }
.qs-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.qs-row span { font: 500 12.5px/1 var(--font-mono); }
.qs-row .meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.qs-row .meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease-out); }
.is-in .qs-row .meter i { transform: scaleX(1); }
.qs-row:nth-child(2) .meter i { transition-delay: .15s; }
.qs-row:nth-child(3) .meter i { transition-delay: .3s; }
.qs-row svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.venture-next {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 32px) clamp(26px, 4.5vw, 56px);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  transition: border-color .3s, background-color .3s;
}
.venture-next:hover { border-color: var(--accent); background: var(--accent-soft); }
.venture-next .kicker { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.venture-next h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 10px; line-height: 1.25; }
.venture-next .arrow-btn {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease-out);
}
.venture-next .arrow-btn svg { width: 20px; height: 20px; }
.venture-next:hover .arrow-btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

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

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step .card-top { margin-bottom: 0; padding-bottom: 64px; align-items: flex-start; }
.step-word {
  font: 700 clamp(46px, 5.5vw, 72px)/.9 var(--font-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(169, 185, 213, .42);
  transition: -webkit-text-stroke-color .4s, color .4s;
}
.step:hover .step-word { -webkit-text-stroke-color: var(--accent); }
.step h3 { margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px circle at 0% 0%, rgba(115, 230, 193, .14), transparent 55%),
    radial-gradient(600px circle at 100% 100%, rgba(47, 79, 134, .55), transparent 60%),
    var(--card);
  overflow: hidden; isolation: isolate;
}
.contact-panel .grid-lines { z-index: -1; opacity: .6; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 0% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 0% 0%, #000, transparent 70%); }
.contact-panel h2 { font-size: clamp(42px, 6.5vw, 88px); line-height: .98; letter-spacing: -.05em; margin: 22px 0 22px; font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-card {
  background: rgba(11, 29, 62, .6);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.contact-card .row { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-card .row:first-child { padding-top: 0; }
.contact-card .row:last-of-type { border-bottom: 0; }
.contact-card .label { font: 500 11px/1.6 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-size: 16px; line-height: 1.55; }
.contact-card .value b { font-weight: 600; }
.contact-card .note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 500; font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 16px; height: 16px; stroke: #0b8f66; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 72px 0 36px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, .6fr)); gap: 40px; }
.footer-top p { color: var(--muted); max-width: 360px; margin-top: 18px; font-size: 15px; }
.footer-col .footer-h { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
/* the header logo at poster size: solid letters, mint slash, the same open tracking */
.wordmark {
  margin: clamp(48px, 8vw, 96px) 0 0;
  font: 700 clamp(52px, 13.5vw, 190px)/1 var(--font-display);
  letter-spacing: .14em;
  text-indent: .14em; /* balances the tracking after the last letter so the word centres */
  text-align: center; white-space: nowrap;
  color: var(--text);
  user-select: none;
}
.wordmark span { color: var(--accent); display: inline-block; margin: 0 .04em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom a:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   Legal / privacy pages
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 80px) 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -.05em; font-weight: 700; margin: 22px 0 16px; }
.page-hero p { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); transition: color .2s; }
.back-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.back-link:hover { color: var(--accent); }
.back-link:hover svg { transform: translateX(-3px); }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: 64px 0 112px; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.doc-nav h2 { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.doc-nav ol { border-left: 1px solid var(--line); }
.doc-nav a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14.5px; color: var(--muted); transition: color .2s, border-color .2s; }
.doc-nav a:hover, .doc-nav a.is-active { color: var(--text); border-left-color: var(--accent); }
.doc-body { max-width: 720px; }
.doc-body section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.doc-body section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; }
.doc-body h2 .n { font: 500 12px/1 var(--font-mono); color: var(--accent); letter-spacing: .1em; }
.doc-body p { color: #c3cfe3; font-size: 17px; line-height: 1.75; }
.doc-body p + p { margin-top: 14px; }
.doc-body strong { color: var(--text); font-weight: 600; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.info-grid .card p { font-size: 16px; line-height: 1.7; }
.info-grid .label { display: block; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

/* ==========================================================================
   Reveal on scroll (only when JS is running)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 460px; margin-top: 24px; }
  .chip-term { left: 0; bottom: -6%; }
  .chip-venture { right: 0; bottom: 4%; }
  .c-flow { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-block; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "big" "a" "b" "flow"; }
  .venture, .contact-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step .card-top { padding-bottom: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; padding-top: 40px; }
  .doc-nav { position: static; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 18px 28px; }
  .hero-visual { max-width: 380px; }
  .chip-term { display: none; }
  .chip-venture { left: 0; right: 0; margin-inline: auto; width: max-content; bottom: -4%; animation: none; }
  .pipeline { grid-template-columns: 1fr; row-gap: 20px; }
  .pipeline::before { left: 6px; right: auto; top: 8px; bottom: 30px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-2)); transform: scaleY(0); transform-origin: 50% 0; }
  .is-in .pipeline::before, .no-js .pipeline::before { transform: scaleY(1); }
  .pipeline li { padding: 0 0 0 32px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .pipeline li::before { top: 4px; }
  .pipeline li::after { margin-top: 0; }
  .app-mock .ui { grid-template-columns: 70px 1fr; }
  .app-mock .main { grid-template-columns: 1fr 1fr; }
  .app-mock .kpi:nth-child(3) { display: none; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .qs-ring { grid-template-columns: 84px 1fr; }
  .qs-ring svg { width: 84px; height: 84px; }
  .qs-row { grid-template-columns: 84px 1fr auto; padding: 12px; gap: 10px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Visual layer: 3D hero, live bento visuals, Flow QS device stage, Rotterdam skyline
   ========================================================================== */

/* 3D constellation canvas (JS adds .is-3d; the SVG orbit stays for no-JS and reduced motion) */
.orbit-canvas { display: none; position: absolute; left: -22%; top: -15%; width: 144%; height: 130%; pointer-events: none; }
.hero-visual.is-3d .orbit { display: none; }
.hero-visual.is-3d .orbit-canvas { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { transform: translate3d(0, calc(var(--hp, 0) * -70px), 0); opacity: calc(1 - var(--hp, 0) * .85); }
}

/* bento: live mini visuals */
.card-top { margin-bottom: 28px; }
.mini { margin: 0 0 28px; }
.mini-flow { display: flex; align-items: center; }
.mini-flow span {
  flex: none; padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(11, 29, 62, .55);
  font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--text);
}
.mini-flow span.hub { border-color: rgba(115, 230, 193, .55); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 22px -6px var(--accent-glow); }
.mini-flow i { position: relative; flex: 1; min-width: 24px; height: 1px; margin: 0 6px; background: var(--line-2); }
.mini-flow i::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent) no-repeat;
  background-size: 45% 100%;
  animation: streak 2.2s linear infinite;
}
.mini-flow i.rev::before { animation-direction: reverse; animation-delay: -1.1s; }
@keyframes streak { from { background-position: -60% 0; } to { background-position: 160% 0; } }

.mini-ai { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 9px; max-width: 280px; }
.mini-ai i {
  aspect-ratio: 1; border-radius: 50%; background: var(--line-2);
  animation: think 3.2s var(--ease-in-out) infinite; animation-delay: calc(var(--n) * 90ms);
}
@keyframes think {
  0%, 55%, 100% { background: var(--line-2); transform: scale(1); box-shadow: none; }
  25% { background: var(--accent); transform: scale(1.3); box-shadow: 0 0 10px var(--accent-glow); }
}

/* Flow QS: tilted dashboard with a phone in front */
.qs-stage { position: relative; perspective: 1400px; padding: 0 0 34px 34px; }
.qs-stage .qs-mock {
  transform: rotateY(-11deg) rotateX(5deg); transform-origin: 70% 50%;
  transition: transform .9s var(--ease-out);
  box-shadow: -40px 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(115, 230, 193, .06);
}
.qs-stage .qs-mock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 38%);
}
.qs-stage .qs-mock { transform: rotateY(calc(-11deg + var(--ty, 0deg))) rotateX(calc(5deg + var(--tx, 0deg))); transition: transform .6s var(--ease-out); }
.qs-phone { translate: var(--px, 0px) var(--py, 0px); transition: translate .6s var(--ease-out); }
.qs-phone {
  position: absolute; left: -30px; bottom: -30px; z-index: 2; width: 124px;
  display: grid; justify-items: center; gap: 10px;
  padding: 12px 12px 16px; border-radius: 24px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  rotate: -7deg; /* separate from transform so the float animation keeps the tilt */
  animation: float 7s var(--ease-in-out) infinite alternate;
}
.qs-phone .notch { width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); }
.qs-phone .qr-wrap { position: relative; width: 84px; height: 84px; padding: 7px; border-radius: 10px; background: var(--text); overflow: hidden; }
.qs-phone .qr { display: block; width: 100%; height: 100%; }
.qs-phone .qr rect { fill: var(--bg); }
.qs-phone .scan { position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px 2px var(--accent-glow); animation: scan 2.4s var(--ease-in-out) infinite alternate; }
@keyframes scan { to { transform: translateY(66px); } }
.qs-phone > span { font: 500 10px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* Rotterdam skyline */
.skyline {
  position: relative; margin: 0 0 clamp(48px, 6vw, 72px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 320px at 47% 115%, rgba(115, 230, 193, .09), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--card) 100%);
}
.skyline-cap {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px) 0;
}
.skyline-cap .where { display: grid; gap: 6px; }
.skyline-cap strong { font: 600 clamp(24px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.03em; }
.skyline-cap .where span { color: var(--muted); font-size: 14.5px; }
.skyline-cap .coords { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--accent); padding-top: 8px; }
.skyline-art { display: block; width: 100%; height: clamp(220px, 30vw, 360px); margin-top: -24px; }
.sk-draw { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sk-city { stroke: var(--line-2); stroke-width: 1.6; }
.sk-accent-soft { stroke: var(--accent); }
.sk-bridge { stroke: var(--accent); stroke-width: 2.2; }
.sk-thin { stroke-width: 1.4; }
.sk-pylon { stroke-width: 3.4; }
.sk-cable { stroke: var(--accent); stroke-width: 1; opacity: .7; }
.sk-back { stroke-width: 1.6; }
.sk-light { fill: var(--accent); animation: twinkle 3.6s var(--ease-in-out) infinite; }
.sk-light:nth-child(3n) { animation-delay: -1.2s; }
.sk-light:nth-child(3n+1) { animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.sk-waterline { stroke: var(--line-2); stroke-width: 1.2; }
.sk-water { stroke: var(--line); stroke-width: 1.2; }
.sk-reflect { opacity: .18; }
.sk-boat { fill: var(--muted); animation: sail 46s linear infinite; }
.sk-boat circle { fill: var(--accent); }
@keyframes sail { from { transform: translate(-60px, 256px); } to { transform: translate(1260px, 256px); } }
/* draw the city in when the figure scrolls into view */
.js .skyline .sk-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); }
.js .skyline .sk-g-bridge .sk-draw { transition-delay: .45s; }
.js .skyline .sk-g-cables .sk-draw { transition-delay: calc(.9s + var(--i, 0) * 60ms); }
.js .skyline.is-in .sk-draw { stroke-dashoffset: 0; }

@media (max-width: 640px) {
  .qs-stage { padding: 0 0 26px 0; }
  .qs-phone { display: none; }
  .mini-ai { gap: 7px; }
}

/* ==========================================================================
   Signature moments: opening curtain, masked headings, live Rotterdam, grain
   ========================================================================== */

/* opening curtain (once per visit; CSS hides it after 4s even if scripts fail) */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(115, 230, 193, .08), transparent 70%),
    var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path .85s var(--ease-in-out);
  animation: introFailsafe 0s 4s forwards;
}
.no-intro .intro { display: none; }
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro::after {
  content: ""; position: absolute; left: 50%; bottom: 38%; width: 160px; height: 1px; margin-left: -80px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); animation: introLine 1.1s .15s var(--ease-out) forwards;
}
.intro-mark { font: 700 clamp(34px, 6vw, 64px)/1 var(--font-display); letter-spacing: .14em; display: flex; align-items: center; }
.intro .i-s {
  display: inline-block; margin: 0 .04em; color: var(--accent);
  text-shadow: 0 0 28px var(--accent-glow);
  transform: scaleY(0); transform-origin: 50% 100%;
  animation: introSlash .5s .1s var(--ease-out) forwards;
}
.intro .i-l { display: inline-block; clip-path: inset(0 0 0 100%); animation: introOpen .6s .45s var(--ease-out) forwards; }
.intro .i-r { display: inline-block; clip-path: inset(0 100% 0 0); animation: introOpen .6s .45s var(--ease-out) forwards; }
@keyframes introSlash { to { transform: scaleY(1); } }
@keyframes introOpen { to { clip-path: inset(0 0 0 0); } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introFailsafe { to { visibility: hidden; } }
/* the hero waits for the curtain */
.intro-playing .hero-title .word > span { animation-delay: 1.35s; }
.intro-playing .hero-title .word:nth-child(2) > span { animation-delay: 1.43s; }
.intro-playing .hero-title .word:nth-child(3) > span { animation-delay: 1.51s; }
.intro-playing .fade-up { animation-delay: 1.6s; }
.intro-playing .fade-up.d1 { animation-delay: 1.7s; }
.intro-playing .fade-up.d2 { animation-delay: 1.8s; }
.intro-playing .fade-up.d3 { animation-delay: 1.9s; }
.intro-playing .hero-visual { animation-delay: 1.4s; }

/* section headings rise word by word out of a mask */
h2.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
h2.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi) * 45ms + .12s); }
.is-in h2.split .w > span { transform: none; }

/* Rotterdam: local time and the night sky */
.skyline-cap .meta { display: grid; justify-items: end; gap: 10px; }
.skyline-cap .local { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.skyline-cap .local time { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }
.skyline-cap .local i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s var(--ease-in-out) infinite; }
.sk-night { opacity: 0; transition: opacity 1.5s var(--ease-out); }
.skyline.is-night .sk-night { opacity: 1; }
.sk-moon { fill: var(--accent-light); filter: drop-shadow(0 0 10px rgba(200, 247, 232, .5)); }
.sk-stars circle { fill: var(--text); opacity: .7; animation: twinkle 4.2s var(--ease-in-out) infinite; }
.sk-stars circle:nth-child(2n) { animation-delay: -1.6s; }
.sk-stars circle:nth-child(3n) { animation-delay: -2.9s; }
.skyline:not(.is-night) .sk-light { opacity: .2; animation: none; }

/* film grain over everything, too faint to notice until it is gone */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  .skyline-cap .meta { justify-items: start; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; padding: 6px 0; }
  .marquee li { padding: 10px 0 10px 24px; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- State helpers ---------- */
.menu-open .site-header { background: rgba(11, 29, 62, .97); border-bottom-color: var(--line); }
/* Without JS, show the final state of scroll-driven illustrations */
.no-js .app-mock .chart svg { clip-path: none; }
.no-js .qs-ring .val { stroke-dashoffset: 52; }
.no-js .qs-row .meter i { transform: none; }
.no-js .pipeline::before { transform: none; }
.no-js .menu-toggle { display: none; }
.page-hero .eyebrow { display: flex; }

/* ---------- Motion control (WCAG 2.2.2: pause moving content) ---------- */
.marquee-wrap { position: relative; }
.motion-toggle {
  position: absolute; right: 16px; top: 50%; z-index: 2;
  width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--muted);
  cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.motion-toggle:hover { color: var(--accent); border-color: var(--accent); }
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
