@property --sp-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --sp-k { syntax: '<number>'; inherits: true; initial-value: 0; }

body { margin: 0; background: #06080F; }

/* ---------- Root and tokens ---------- */
.sp {
  --bg: #06080F;
  --panel: #0C1120;
  --ink: #F3F5FB;
  --muted: #AAB3C8;
  --dim: #8A93AE;
  --line: rgba(255, 255, 255, 0.08);
  --teal: #5EEAD4;
  --violet: #818CF8;
  --magenta: #E879F9;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background: var(--bg);
  color: var(--muted);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
/* Zero specificity, so every component class below can set its own link colour. */
:where(.sp a) { color: inherit; text-decoration: none; }
.sp :focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.sp-w { max-width: 1320px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
@media (min-width: 1920px) { .sp-w { max-width: 1560px; } }

.sp-h1, .sp-h2, .sp-h3, .sp-talk, .sp-brand, .sp-vert, .sp-name {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
}

.sp-skip { position: absolute; left: 16px; top: -80px; z-index: 90; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #06080F; font-weight: 600; }
.sp-skip:focus { top: 16px; }

/* ---------- Ambient layers: grain, cursor aura and ring, scroll progress ---------- */
.sp-grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; opacity: 0.07; mix-blend-mode: overlay; }
.sp-aura {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 680px; height: 680px; margin: -340px 0 0 -340px; border-radius: 50%;
  pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.11), rgba(94, 234, 212, 0.05) 42%, transparent 70%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: transform 0.6s var(--ease), opacity 0.5s ease;
}
.sp-ring {
  position: fixed; left: 0; top: 0; z-index: 70;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  pointer-events: none; opacity: 0; mix-blend-mode: difference;
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: transform 0.18s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s ease, opacity 0.3s ease;
}
.sp-moved .sp-ring, .sp-moved .sp-aura { opacity: 1; }
.sp:has(a:hover, button:hover) .sp-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, 0.92); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .sp-ring, .sp-aura { display: none; } }

.sp-progress { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #5EEAD4, #818CF8, #E879F9); }

/* ---------- Nav ---------- */
.sp-nav-wrap { position: absolute; top: 18px; left: 0; right: 0; z-index: 50; }
.sp-scrolly .sp-nav-wrap { position: fixed; }
.sp-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(10, 14, 28, 0.55); border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  animation: sp-down 1s var(--ease) 0.1s both;
}
.sp-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.sp-wm { display: block; width: auto; flex-shrink: 0; color: var(--ink); overflow: visible; }
.sp-node-a { animation: sp-pulse 2.6s ease-in-out infinite; }
.sp-node-b { animation: sp-pulse 2.6s ease-in-out 1.3s infinite; }
.sp-links { display: flex; gap: 2px; }
.sp-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.25s ease, background-color 0.25s ease; }
.sp-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.sp-right { display: flex; align-items: center; gap: 8px; }
.sp-lang { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 600; }
.sp-lang span, .sp-lang a { display: grid; place-items: center; min-width: 40px; height: 36px; border-radius: 999px; color: var(--dim); }
.sp-lang span { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.sp-lang a:hover { color: var(--ink); }
.sp-theme {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.sp-theme:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.sp-theme svg { display: block; transition: transform 0.6s var(--ease); }
.sp-theme:hover svg { transform: rotate(-24deg); }
.sp-theme .sp-sun { display: none; }

/* ---------- Buttons (magnetic) ---------- */
.sp-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease, background-color 0.3s ease;
}
.sp-btn-primary { color: #070A14; }
.sp-btn-primary::before { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: inherit; background: conic-gradient(from var(--sp-ang), #5EEAD4, #818CF8, #E879F9, #5EEAD4); animation: sp-spin 4s linear infinite; }
.sp-btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink); }
.sp-btn-primary:hover { box-shadow: 0 0 46px -6px rgba(129, 140, 248, 0.75); }
.sp-btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.sp-btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.sp-btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.sp-btn-xl { min-height: 64px; padding: 0 36px; font-size: 19px; }

/* ---------- Hero ---------- */
.sp-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 920px; }
.sp-glow { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.sp-g { position: absolute; border-radius: 50%; filter: blur(90px); }
.sp-g1 { width: 640px; height: 640px; left: -180px; top: -240px; background: #0F766E; opacity: 0.42; animation: sp-drift1 22s ease-in-out infinite alternate; }
.sp-g2 { width: 760px; height: 760px; right: -220px; top: 60px; background: #4338CA; opacity: 0.36; animation: sp-drift2 26s ease-in-out infinite alternate; }
.sp-g3 { width: 540px; height: 540px; left: 36%; bottom: -320px; background: #A21CAF; opacity: 0.3; animation: sp-drift3 19s ease-in-out infinite alternate; }
.sp-swarm { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.sp-fallback { position: absolute; z-index: -2; right: 8%; top: 50%; width: min(44vw, 640px); height: auto; transform: translateY(-50%); opacity: 0.35; color: var(--ink); }
.sp-live .sp-fallback { display: none; }
.sp-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 180px; pointer-events: none; background: linear-gradient(rgba(6, 8, 15, 0), var(--bg)); }
.sp-hero-inner { position: relative; width: 100%; padding-top: 150px; padding-bottom: 130px; }

.sp-h1 { font-weight: 800; font-size: clamp(48px, 6.4vw, 104px); line-height: 0.95; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; }
:lang(nl) .sp-h1 { font-size: clamp(48px, 5.9vw, 96px); }
.sp-l1 { display: block; white-space: nowrap; padding-bottom: 0.06em; }
.sp-word { display: inline-block; white-space: nowrap; }
.sp-ch { display: inline-block; animation: sp-assemble 1.6s var(--ease) both; animation-delay: calc(0.3s + var(--d, 0s)); }
.sp-l1:hover .sp-ch { animation-name: sp-jolt; animation-duration: 0.9s; animation-delay: calc(var(--d, 0s) * 0.3); }
.sp-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sp-line > span { display: inline-block; animation: sp-rise 1.2s var(--ease) both; }
.sp-l2 > span { animation-delay: 1.05s; }
.sp-l3 > span { animation-delay: 1.2s; }
.sp-gradtext {
  background: linear-gradient(100deg, #5EEAD4, #818CF8 35%, #E879F9 65%, #5EEAD4);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-l3 .sp-gradtext { animation: sp-rise 1.2s var(--ease) 1.2s both, sp-shimmer 9s linear 2.4s infinite; }
.sp-lead { margin: 34px 0 0; max-width: 33em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: #C6CDE0; animation: sp-up 1s var(--ease) 1.45s both; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; animation: sp-up 1s var(--ease) 1.6s both; }

.sp-shake {
  position: absolute; z-index: 2; bottom: 44px; right: max(40px, calc((100% - 1320px) / 2 + 40px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 14, 28, 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink); font: 600 14px/1 'Geist', system-ui, sans-serif; cursor: pointer;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.5s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
  animation: sp-up 1s var(--ease) 2.2s both;
}
.sp-shake:hover { background: rgba(129, 140, 248, 0.18); border-color: rgba(129, 140, 248, 0.6); }
.sp-shake svg { transition: transform 0.6s var(--ease); }
.sp-shake:hover svg { transform: rotate(180deg); }
@media (min-width: 1920px) { .sp-shake { right: max(40px, calc((100% - 1560px) / 2 + 40px)); } }

/* ---------- Proof marquee ---------- */
.sp-proof { padding: 36px 0 44px; }
.sp-proof-row { display: flex; align-items: center; gap: 40px; }
.sp-proof-label { flex: 0 0 auto; margin: 0; font-size: 15px; font-weight: 500; color: var(--dim); }
.sp-marquee { flex: 1 1 auto; min-width: 0; 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); }
.sp-track { display: flex; width: max-content; animation: sp-marquee 38s linear infinite; }
.sp-marquee:hover .sp-track { animation-play-state: paused; }
.sp-set { display: flex; align-items: center; gap: 76px; padding-right: 76px; }
.sp-set img { display: block; flex-shrink: 0; filter: brightness(0) invert(1); opacity: 0.7; transition: opacity 0.3s ease; }
.sp-set img:hover { opacity: 1; }

/* ---------- Sections ---------- */
.sp-sec { padding: 140px 0; }
.sp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: 64px; }
.sp-h2 { font-weight: 800; font-size: clamp(40px, 5.2vw, 84px); line-height: 0.98; letter-spacing: -0.042em; font-variation-settings: "opsz" 96; max-width: 15ch; text-wrap: balance; }
.sp-intro { max-width: 30em; margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---------- Services: before and after ---------- */
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(max(320px, calc((100% - 40px) / 3)), 100%), 1fr)); gap: 20px; }
.sp-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 32px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.sp-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(129, 140, 248, 0.95), rgba(94, 234, 212, 0.55) 30%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.4s ease;
}
.sp-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(129, 140, 248, 0.15), transparent 55%); opacity: 0; transition: opacity 0.4s ease; }
.sp-card:hover { transform: translateY(-6px); }
.sp-card:hover::before, .sp-card:hover::after { opacity: 1; }
.sp-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.sp-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.sp-tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--tc, #5EEAD4); box-shadow: 0 0 10px var(--tc, #5EEAD4); }
.sp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--ink); transition: transform 0.6s var(--ease), background-color 0.4s ease; }
.sp-card:hover .sp-ico { transform: rotate(-8deg) scale(1.08); background: rgba(129, 140, 248, 0.16); }
.sp-h3 { font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.sp-ba { display: grid; gap: 14px; }
.sp-ba p { margin: 0; font-size: 16px; line-height: 1.5; }
.sp-bl { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--dim); }
.sp-before { color: #8C95AF; }
.sp-strike { background: linear-gradient(90deg, #E879F9, #818CF8) 0 60% / 0% 1.5px no-repeat; animation: sp-strike 0.9s var(--ease) both; animation-delay: calc(1.6s + var(--i, 0) * 0.14s); }
.sp-card:hover .sp-strike { animation-name: sp-strike-again; animation-delay: 0s; }
.sp-after { color: var(--ink); }
.sp-after .sp-bl { color: var(--teal); }

/* === WORK: concept b === */
/* Pixels. Each client panel is a living mosaic of small squares in that client's own
   two colours, drawn on one canvas per panel by the work script before </body>.
   Opening a panel cascades the squares out from the point of entry into its gradient
   surface; the vertical name dissolves into squares and the logo resolves from a
   coarse mosaic to crisp. Without the script, the panels still open on hover/focus. */
.wb-panels { --wb-ch: 88px; display: flex; gap: 12px; height: 540px; }
@media (min-width: 1800px) { .wb-panels { height: 600px; } }
.wb-panel {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: 0; border-radius: 26px;
  background: var(--panel); border: 1px solid var(--line);
  transition: flex-grow 0.8s var(--ease), height 0.8s var(--ease), border-color 0.5s ease, box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.wb-panel.is-open, .wb-panel.wb-hold { flex-grow: 3.4; }
.wb-panel.is-open { border-color: rgba(255, 255, 255, 0.15); }
/* Keyboard focus: a hairline in the brand's own gradient inside, a clear teal ring outside. */
.wb-panel:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(94, 234, 212, 0.9), 0 0 36px -2px rgba(94, 234, 212, 0.35); }
.wb-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, #5EEAD4, #818CF8 55%, #E879F9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s ease;
}
.wb-panel:focus-visible::after { opacity: 1; }

.wb-cv { position: absolute; left: 0; top: 0; z-index: 0; display: block; pointer-events: none; }
.wb-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(6, 8, 15, 0.9) 0%, rgba(6, 8, 15, 0.66) 36%, rgba(6, 8, 15, 0) 72%);
  transition: opacity 0.45s ease;
}
.wb-panel.is-open .wb-scrim { opacity: 1; transition: opacity 0.9s ease 0.1s; }

.wb-dot {
  position: absolute; z-index: 2; left: var(--wb-cx, 50%); top: 32px;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 3px;
  background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 0 16px -2px var(--p1);
  transition: opacity 0.45s ease 0.4s, transform 0.6s var(--ease) 0.4s;
}
.wb-panel.is-open .wb-dot { opacity: 0; transform: scale(0.3); transition: opacity 0.2s ease, transform 0.3s ease; }
.wb-num {
  position: absolute; z-index: 2; left: 32px; top: 27px;
  font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.wb-of { color: var(--dim); font-weight: 500; }
.wb-panel.is-open .wb-num { opacity: 1; transform: none; transition: opacity 0.6s ease 0.3s, transform 0.9s var(--ease) 0.3s; }
.wb-vert {
  position: absolute; z-index: 2; left: var(--wb-cx, 50%); bottom: 32px;
  transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 22px; line-height: 1;
  letter-spacing: -0.01em; white-space: nowrap; color: var(--ink);
  transition: opacity 0.4s ease;
}
.wb-panel.is-open .wb-vert, .wb-txt .wb-vert { opacity: 0; }

.wb-body { position: absolute; z-index: 2; left: 32px; bottom: 32px; width: var(--wb-bw, 400px); max-width: calc(100% - 64px); }
.wb-live .wb-body { max-width: none; }
.wb-body > * { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity 0.2s ease, transform 0.3s ease, filter 0.2s ease; }
.wb-panel.is-open .wb-body > * { opacity: 1; transform: none; filter: none; transition: opacity 0.6s ease var(--wd, 0s), transform 0.9s var(--ease) var(--wd, 0s), filter 0.6s ease var(--wd, 0s); }
.wb-body > .sp-tag { --wd: 0.36s; }
.wb-body > .sp-h3 { --wd: 0.42s; margin: 14px 0 4px; font-size: 32px; }
.wb-body > .wb-sub { --wd: 0.48s; }
.wb-body > .wb-desc { --wd: 0.52s; }
.wb-sub { margin: 0 0 10px; font-size: 14px; color: var(--dim); }
.wb-desc { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: #C6CDE0; }
.wb-logo { position: relative; display: block; width: max-content; margin-bottom: 26px; }
.wb-logo img { display: block; filter: brightness(0) invert(1); }
.wb-lcv { position: absolute; left: -10px; top: -10px; display: block; pointer-events: none; }
.wb-live .wb-body > .wb-logo { opacity: 1; transform: none; filter: none; }
.wb-live .wb-logo img { opacity: 0; transition: opacity 0.16s ease; }
.wb-live .wb-logo.is-crisp img { opacity: 1; transition: opacity 0.22s ease; }

/* Without the script: a calm gradient and the original hover/focus behaviour. */
.wb-panels:not(.wb-live) .wb-cv, .wb-panels:not(.wb-live) .wb-lcv { display: none; }
.wb-panels:not(.wb-live) .wb-panel { background: radial-gradient(60% 60% at 80% 20%, color-mix(in srgb, var(--p2) 30%, transparent), transparent 70%), radial-gradient(60% 60% at 20% 70%, color-mix(in srgb, var(--p1) 26%, transparent), transparent 70%), var(--panel); }
.wb-panels:not(.wb-live):hover .wb-panel.is-open:not(:hover):not(:focus-within) { flex-grow: 1; }
.wb-panels:not(.wb-live) .wb-panel:hover, .wb-panels:not(.wb-live) .wb-panel:focus-within { flex-grow: 3.4; }
.wb-panels:not(.wb-live) .wb-panel:is(:hover, :focus-within) .wb-body > * { opacity: 1; transform: none; filter: none; }
.wb-panels:not(.wb-live) .wb-panel:is(:hover, :focus-within) :is(.wb-vert, .wb-dot) { opacity: 0; }
.wb-panels:not(.wb-live):hover .wb-panel.is-open:not(:hover):not(:focus-within) .wb-body > * { opacity: 0; }
.wb-panels:not(.wb-live):hover .wb-panel.is-open:not(:hover):not(:focus-within) :is(.wb-vert, .wb-dot) { opacity: 1; }

/* Tablet and phone: the panels stack and unfold in height, on tap or as they reach the middle of the screen. */
@media (max-width: 900px) {
  .wb-panels { flex-direction: column; height: auto; gap: 10px; }
  .wb-panel { flex: none; height: var(--wb-ch); border-radius: 22px; cursor: pointer; }
  .wb-panel.is-open { height: var(--wb-oh, auto); }
  .wb-scrim { background: linear-gradient(100deg, rgba(6, 8, 15, 0.86) 0%, rgba(6, 8, 15, 0.62) 46%, rgba(6, 8, 15, 0.1) 82%); }
  .wb-dot { left: 28px; top: calc(var(--wb-ch) / 2 - 6px); }
  .wb-vert { left: 50px; top: calc(var(--wb-ch) / 2 - 2px); bottom: auto; transform: translateY(-50%); writing-mode: horizontal-tb; font-size: 24px; }
  .wb-num { left: auto; right: 26px; top: calc(var(--wb-ch) / 2 - 11px); opacity: 1; transform: none; }
  .wb-panel .wb-num, .wb-panel.is-open .wb-num { transition: none; }
  .wb-body { left: 28px; right: 28px; top: 28px; bottom: auto; width: auto; max-width: 540px; }
  .wb-live .wb-body { max-width: 540px; }
  .wb-panels:not(.wb-live) .wb-panel { height: auto; }
  .wb-panels:not(.wb-live) .wb-body { position: relative; left: auto; right: auto; top: auto; padding: 28px; }
  .wb-panels:not(.wb-live) .wb-body > * { opacity: 1; transform: none; filter: none; }
  .wb-panels:not(.wb-live) :is(.wb-vert, .wb-dot, .wb-num) { display: none; }
}
@media (max-width: 560px) {
  .wb-panels { --wb-ch: 76px; }
  .wb-panel { border-radius: 20px; }
  .wb-dot { left: 22px; }
  .wb-vert { left: 42px; font-size: 21px; }
  .wb-num { right: 20px; }
  .wb-body { left: 22px; right: 22px; top: 24px; }
  .wb-body > .sp-h3 { font-size: 28px; }
}

/* The page's scroll reveal, measured in scroll distance rather than as a share of the
   box, so a row unfolding in height never pulls the panels back into their blur. */
@supports (animation-timeline: view()) {
  .sp-scrolly .wb-panels.sp-rv { animation-range: entry 0% entry 340px; }
}

/* Reduced motion (and the page's own motion-off tweak): a still mosaic and a plain opacity fade. */
@media (prefers-reduced-motion: reduce) {
  .sp .wb-body > *, .sp .wb-num, .sp .wb-scrim, .sp .wb-dot, .sp .wb-logo img { transform: none !important; filter: none !important; transition: opacity 0.45s ease !important; }
  .sp .wb-vert { transition: opacity 0.45s ease !important; }
  .sp .wb-panel:not(.is-open) .wb-body > *, .sp .wb-panel:not(.is-open) .wb-logo img { transition: opacity 0.16s ease !important; }
}
.sp-still .wb-body > *, .sp-still .wb-num, .sp-still .wb-scrim, .sp-still .wb-dot, .sp-still .wb-logo img { transform: none !important; filter: none !important; transition: opacity 0.45s ease !important; }
.sp-still .wb-panel:not(.is-open) .wb-body > *, .sp-still .wb-panel:not(.is-open) .wb-logo img { transition: opacity 0.16s ease !important; }
/* === /WORK === */

/* ---------- How it works: blocks that settle ---------- */
.sp-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.sp-trackline { position: absolute; left: 0; right: 0; top: 44px; height: 1px; overflow: hidden; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 8%, rgba(255, 255, 255, 0.16) 92%, transparent); }
.sp-trackline::after { content: ""; position: absolute; top: -1px; left: -14%; width: 14%; height: 3px; background: linear-gradient(90deg, transparent, #5EEAD4, #818CF8, transparent); animation: sp-beam 4.8s linear infinite; }
.sp-step { position: relative; transition: --sp-k 0.9s var(--ease); }
.sp-s1 { --sp-k: 1; }
.sp-s2 { --sp-k: 0.62; }
.sp-s3 { --sp-k: 0.28; }
.sp-s4 { --sp-k: 0; }
.sp-steps .sp-step:hover { --sp-k: 0; }
.sp-blocks { display: grid; grid-template-columns: repeat(3, 14px); gap: 6px; width: max-content; height: 88px; align-content: center; padding: 0 18px; margin-left: -18px; background: var(--bg); position: relative; }
.sp-b {
  width: 14px; height: 14px; border-radius: 4px; background: var(--bc);
  transform: translate(calc(var(--x) * var(--sp-k) * 1px), calc(var(--y) * var(--sp-k) * 1px)) rotate(calc(var(--r) * var(--sp-k) * 1deg));
  opacity: calc(1 - var(--sp-k) * 0.4);
}
.sp-s4 .sp-b, .sp-steps .sp-step:hover .sp-b { box-shadow: 0 0 14px -2px var(--bc); }
.sp-num { display: block; margin-top: 20px; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--dim); }
.sp-step .sp-h3 { margin: 6px 0 10px; font-size: 24px; }
.sp-step p { margin: 0; font-size: 16px; line-height: 1.55; }

/* ---------- About ---------- */
.sp-about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 64px; align-items: center; }
.sp-bio { margin: 28px 0 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: #C6CDE0; }
.sp-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.sp-reason .sp-ico { margin-bottom: 18px; }
.sp-reason .sp-h3 { margin-bottom: 8px; font-size: 19px; }
.sp-reason p { margin: 0; font-size: 15px; line-height: 1.55; }
.sp-portrait { justify-self: center; text-align: center; }
.sp-halo { position: relative; isolation: isolate; display: grid; place-items: center; width: 248px; height: 248px; margin: 0 auto; border-radius: 50%; }
.sp-halo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--sp-ang), #5EEAD4, #818CF8, #E879F9, #5EEAD4); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: sp-spin 6s linear infinite; }
.sp-halo::after { content: ""; position: absolute; inset: 14px; z-index: -1; border-radius: 50%; background: conic-gradient(from var(--sp-ang), #5EEAD4, #818CF8, #E879F9, #5EEAD4); filter: blur(30px); opacity: 0.5; animation: sp-spin 6s linear infinite; }
.sp-photo { display: block; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 6px solid var(--bg); }
.sp-name { margin-top: 24px; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.sp-role { margin: 2px 0 0; font-size: 15px; color: var(--dim); }

/* ---------- Contact ---------- */
.sp-contact { padding: 40px 20px 60px; }
.sp-cpanel { position: relative; isolation: isolate; overflow: hidden; border-radius: 40px; padding: 120px clamp(20px, 5vw, 80px); text-align: center; background: #0A0E1C; border: 1px solid rgba(255, 255, 255, 0.08); }
.sp-c1 { width: 560px; height: 560px; left: -140px; top: -200px; background: #0F766E; opacity: 0.55; animation: sp-drift1 20s ease-in-out infinite alternate; }
.sp-c2 { width: 640px; height: 640px; right: -180px; top: -60px; background: #6D28D9; opacity: 0.5; animation: sp-drift2 24s ease-in-out infinite alternate; }
.sp-c3 { width: 520px; height: 520px; left: 32%; bottom: -320px; background: #1D4ED8; opacity: 0.5; animation: sp-drift3 18s ease-in-out infinite alternate; }
.sp-talk { display: flex; flex-wrap: wrap; justify-content: center; font-weight: 800; font-size: clamp(72px, 15vw, 236px); line-height: 0.9; letter-spacing: -0.05em; cursor: default; }
.sp-tw { display: inline-flex; }
.sp-pl { display: inline-block; font-variation-settings: "wght" var(--wg, 800), "wdth" var(--wd, 100), "opsz" 96; transition: font-variation-settings 0.35s var(--ease); }
.sp-csub { max-width: 30em; margin: 30px auto 0; font-size: 19px; line-height: 1.6; color: #D4DAEA; }
.sp-cact { margin-top: 42px; display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.sp-foot { border-top: 1px solid var(--line); padding: 48px 0 60px; }
.sp-foot-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; }
.sp-legal { display: flex; flex-wrap: wrap; gap: 6px 40px; font-size: 14px; color: var(--dim); }
.sp-legal p { margin: 0; }
.sp-foot-end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px; color: var(--dim); }
.sp-time { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sp-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: sp-pulse 2s ease-in-out infinite; }
.sp-top { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }

/* ---------- Keyframes ---------- */
@keyframes sp-assemble { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1.3); filter: blur(10px); } 55% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
@keyframes sp-jolt { 0% { transform: none; } 30% { transform: translate(calc(var(--dx) * 0.35), calc(var(--dy) * 0.35)) rotate(calc(var(--r) * 0.5)); } 100% { transform: none; } }
@keyframes sp-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sp-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes sp-down { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes sp-shimmer { to { background-position: 300% 0; } }
@keyframes sp-spin { to { --sp-ang: 360deg; } }
@keyframes sp-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes sp-drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes sp-drift2 { to { transform: translate(-120px, -60px) scale(1.1); } }
@keyframes sp-drift3 { to { transform: translate(-90px, -80px) scale(1.2); } }
@keyframes sp-pan { to { transform: translate(6%, -5%) rotate(8deg); } }
@keyframes sp-marquee { to { transform: translateX(-33.3333%); } }
@keyframes sp-strike { to { background-size: 100% 1.5px; } }
@keyframes sp-strike-again { from { background-size: 0% 1.5px; } to { background-size: 100% 1.5px; } }
@keyframes sp-beam { to { left: 100%; } }
@keyframes sp-grow { to { transform: scaleX(1); } }
@keyframes sp-rv { from { opacity: 0; transform: translateY(48px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sp-par { to { transform: translateY(-140px); opacity: 0.15; } }

/* Scroll-driven extras: only when the page really scrolls (full-window view),
   never on the canvas, where the whole page shows at once. */
@supports (animation-timeline: view()) {
  .sp-scrolly .sp-progress { display: block; animation: sp-grow linear both; animation-timeline: scroll(root); }
  .sp-scrolly .sp-rv { animation: sp-rv linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
  .sp-scrolly .sp-hero-inner { animation: sp-par linear both; animation-timeline: scroll(root); animation-range: 0 820px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sp-about { grid-template-columns: 1fr; }
  .sp-portrait { justify-self: start; text-align: left; }
  .sp-halo { margin: 0; }
}
@media (max-width: 900px) {
  .sp-links { display: none; }
  .sp-hero { align-items: flex-end; min-height: 860px; }
  .sp-swarm { opacity: 0.6; }
  .sp-fallback { right: 50%; top: 160px; width: 76vw; transform: translateX(50%); }
  .sp-hero-inner { padding-top: 400px; padding-bottom: 110px; }
  .sp-l1 { white-space: normal; }
  .sp-shake { right: 20px; bottom: 32px; }
  .sp-proof-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sp-marquee { width: 100%; }
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .sp-trackline { display: none; }
  .sp-reasons { grid-template-columns: 1fr; }
  .sp-sec { padding: 96px 0; }
  .sp-foot-end { align-items: flex-start; }
}
@media (max-width: 560px) {
  .sp-nav-cta { display: none; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-cpanel { padding: 88px 20px; border-radius: 28px; }
  .sp-contact { padding: 24px 10px 40px; }
  .sp-btn-xl { font-size: 16px; padding: 0 22px; }
}

/* ---------- Light theme ----------
   Dark is the default for every visitor. The nav toggle sets [data-theme="light"] on
   <html> and remembers it; a snippet in <head> applies a saved choice before first
   paint. Everything below only adds light overrides, so the dark page is untouched.
   The work panels and the contact block stay dark islands: both are built for white
   logos, glows and additive light on dark. */
[data-theme="light"] { color-scheme: light; }
[data-theme="light"] body { background: #F3F5FA; }
[data-theme="light"] .sp {
  --bg: #F3F5FA; --panel: #FFFFFF; --ink: #0E1020; --muted: #4A5168; --dim: #5E667C;
  --line: rgba(14, 16, 32, 0.09); --teal: #0F766E; --violet: #4F46E5; --magenta: #A21CAF;
}
[data-theme="light"] .sp .wb-panels, [data-theme="light"] .sp .sp-cpanel {
  --bg: #06080F; --panel: #0C1120; --ink: #F3F5FB; --muted: #AAB3C8; --dim: #8A93AE;
  --line: rgba(255, 255, 255, 0.08); --teal: #5EEAD4; --violet: #818CF8; --magenta: #E879F9;
  color: var(--muted); color-scheme: dark;
}
[data-theme="light"] .sp-skip { color: var(--bg); }
[data-theme="light"] .sp-aura { mix-blend-mode: multiply; background: radial-gradient(circle, rgba(79, 70, 229, 0.08), rgba(15, 118, 110, 0.05) 42%, transparent 70%); }
[data-theme="light"] .sp-nav { background: rgba(255, 255, 255, 0.66); border-color: rgba(14, 16, 32, 0.08); box-shadow: 0 18px 40px -26px rgba(14, 16, 32, 0.32); }
[data-theme="light"] .sp-links a:hover { background: rgba(14, 16, 32, 0.05); }
[data-theme="light"] .sp-lang, [data-theme="light"] .sp-theme { background: rgba(14, 16, 32, 0.05); }
[data-theme="light"] .sp-lang span, [data-theme="light"] .sp-theme:hover { background: rgba(14, 16, 32, 0.09); }
[data-theme="light"] .sp-theme .sp-sun { display: block; }
[data-theme="light"] .sp-theme .sp-moon { display: none; }
/* Text on an ink-filled button takes the background colour of wherever the button sits. */
[data-theme="light"] .sp-btn-primary { color: var(--bg); }
[data-theme="light"] .sp-btn-ghost { background: rgba(14, 16, 32, 0.04); border-color: rgba(14, 16, 32, 0.14); }
[data-theme="light"] .sp-btn-ghost:hover { background: rgba(14, 16, 32, 0.08); }
/* On paper the deep glow colours mix to grey where they overlap; the bright triad
   gives clean pastel washes instead. Narrow screens stack all three, so they get less. */
[data-theme="light"] .sp-g1 { background: #5EEAD4; opacity: 0.3; }
[data-theme="light"] .sp-g2 { background: #818CF8; opacity: 0.24; }
[data-theme="light"] .sp-g3 { background: #E879F9; opacity: 0.18; }
@media (max-width: 900px) {
  [data-theme="light"] .sp-g1 { opacity: 0.2; }
  [data-theme="light"] .sp-g2 { opacity: 0.14; }
  [data-theme="light"] .sp-g3 { opacity: 0.1; }
}
[data-theme="light"] .sp-hero-fade { background: linear-gradient(rgba(243, 245, 250, 0), var(--bg)); }
/* Deeper stops, because the gradient is text here: each passes AA on paper. */
[data-theme="light"] .sp-gradtext { background-image: linear-gradient(100deg, #0F766E, #4F46E5 35%, #A21CAF 65%, #0F766E); }
[data-theme="light"] .sp-lead, [data-theme="light"] .sp-bio { color: #353C52; }
[data-theme="light"] .sp-shake { background: rgba(255, 255, 255, 0.6); border-color: rgba(14, 16, 32, 0.14); }
[data-theme="light"] .sp-shake:hover { background: rgba(79, 70, 229, 0.1); border-color: rgba(79, 70, 229, 0.45); }
[data-theme="light"] .sp-set img { filter: brightness(0); opacity: 0.62; }
[data-theme="light"] .sp-set img:hover { opacity: 1; }
[data-theme="light"] .sp-card { background: #FFFFFF; box-shadow: 0 1px 2px rgba(14, 16, 32, 0.04), 0 18px 40px -26px rgba(14, 16, 32, 0.22); }
[data-theme="light"] .sp-card:hover::after { opacity: 0.6; }
[data-theme="light"] .sp-card .sp-tag { background: rgba(14, 16, 32, 0.04); border-color: rgba(14, 16, 32, 0.08); }
[data-theme="light"] .sp-ico { background: rgba(14, 16, 32, 0.04); border-color: rgba(14, 16, 32, 0.07); }
[data-theme="light"] .sp-before { color: #6B7389; }
[data-theme="light"] .sp-trackline { background: linear-gradient(90deg, transparent, rgba(14, 16, 32, 0.14) 8%, rgba(14, 16, 32, 0.14) 92%, transparent); }
[data-theme="light"] .sp-wm path[fill="#AAB3C8"] { fill: var(--muted); }
[data-theme="light"] .wb-panel:focus-visible { box-shadow: 0 0 0 3px #F3F5FA, 0 0 0 5px #0F766E, 0 0 36px -2px rgba(15, 118, 110, 0.3); }

/* The switch itself: the new theme opens as a circle from the toggle (see site.js). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Motion off: the tweak, and the visitor's own setting. Everything rests in its final state. */
.sp-still *, .sp-still *::before, .sp-still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .sp *, .sp *::before, .sp *::after { animation: none !important; transition: none !important; }
  .sp-ring, .sp-aura { display: none; }
}
