:root {
  --blue: #1414e6;
  --cream: #fbf4f2;
  --ink: #1b1d24;
  --r: 1; /* text reveal 0..1 (fully revealed; the scroll dissolve replaces the old reveal) */
}

* { box-sizing: border-box; margin: 0; }
html, body { background: var(--cream); }
body { color: var(--blue); font-family: "IBM Plex Sans", system-ui, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Preloader ---------- */
html.loading { overflow: hidden; }
.pre { position: fixed; inset: 0; z-index: 100; }
.pre i { position: absolute; left: 0; right: 0; height: 50%; background: var(--cream); transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); }
.pre i:first-child { top: 0; }
.pre i:nth-child(2) { bottom: 0; }
.pre.open { pointer-events: none; }
.pre.open i:first-child { transform: translateY(-100%); }
.pre.open i:nth-child(2) { transform: translateY(100%); }
.pre .line { position: absolute; left: 50%; top: 50%; width: 40vw; height: 1px; translate: -50% -50%; background: var(--blue); transform: scaleX(var(--p, 0)); transition: opacity .3s; }
.pre .n { position: absolute; left: 50%; top: calc(50% + 18px); translate: -50%; font: 400 11px/1 "IBM Plex Mono", monospace; letter-spacing: .3em; color: var(--blue); transition: opacity .3s; }
.pre.open .line, .pre.open .n { opacity: 0; }

/* ---------- Scroll journey ---------- */
.journey { height: 700vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--cream); perspective: 1400px; perspective-origin: 50% 40%; }

/* world = image box (1728x1180) covering the viewport */
.world {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 100dvh * 1.4644); aspect-ratio: 1728 / 1180;
  transform: translate(-50%, -50%);
}
.cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
#trans { position: absolute; z-index: 1; opacity: 0; object-fit: fill; } /* box set per frame by main.js */
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cam canvas { position: absolute; filter: drop-shadow(0 0 8px rgba(40, 170, 255, .6)); }
.cam video { position: absolute; object-fit: fill; } /* box in index.html = where frame 0 sits in the cabin photo */

/* ---------- Hero ---------- */
.hero {
  --u: min(100vw / 1728, 100dvh / 1180); /* 1u = 1px of the 1728×1180 reference slide */
  position: absolute; inset: 0; z-index: 2;
  background: rgb(251 244 242 / var(--bg, 1));
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; pointer-events: none;
}
.hero.live { pointer-events: auto; }
.hero { transform-origin: 0 0; }
.hero > :not(.window):not(.clouds) { opacity: var(--ui, 1); } /* UI dissolves with the window move */
.hero > .clouds { opacity: var(--bg, 1); }
.hero > :not(.clouds) { position: relative; z-index: 2; }
.hero > .nav { position: absolute; top: 0; z-index: 3; }

.nav {
  width: 100%; padding: calc(40 * var(--u)) calc(50 * var(--u)) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: calc(16 * var(--u)); font-weight: 700; font-size: calc(24 * var(--u)); line-height: 1.05; text-transform: uppercase; }
.brand svg { width: calc(84 * var(--u)); height: calc(84 * var(--u)); color: var(--blue); }
.brand span { padding-left: calc(16 * var(--u)); border-left: 1.5px solid var(--blue); }
.menu { display: flex; gap: calc(78 * var(--u)); padding-top: calc(16 * var(--u)); }
.menu > * { text-align: center; font-weight: 700; font-size: calc(20 * var(--u)); line-height: 1.2; text-transform: uppercase; transition: opacity .2s; }
.menu small { display: block; margin-top: calc(10 * var(--u)); font: 400 calc(11 * var(--u))/1 "IBM Plex Mono", monospace; letter-spacing: .3em; color: #6a6a7a; }
.menu > *:hover { opacity: .65; }
.menu small a:hover { color: var(--blue); }
.contact { justify-self: end; padding-top: calc(16 * var(--u)); font-weight: 700; font-size: calc(20 * var(--u)); text-transform: uppercase; }
.contact span { font-weight: 400; }

.window {
  position: relative; margin-top: calc(138 * var(--u));
  -webkit-mask: linear-gradient(90deg, transparent, #000 5% 95%, transparent), linear-gradient(transparent, #000 5% 95%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  width: min(108vw, 2050 * var(--u)); flex-shrink: 0; aspect-ratio: 1728 / 500;
}
/* video is the whole 1728×1180 slide; the window box shows rows 140–640 of it */
.window video { position: absolute; left: 0; top: -28%; width: 100%; height: 236%; object-fit: fill; }

.eyebrow { font: 400 13px/1 "IBM Plex Mono", monospace; letter-spacing: .6em; text-transform: uppercase; color: #333; }
.hero > .eyebrow { font-size: max(9px, 7 * var(--u)); margin-top: calc(36 * var(--u)); }

/* text reveal: gradient slides from faded → solid as --r goes 0 → 1 */
.reveal {
  background: linear-gradient(90deg, var(--blue) 0 45%, #1414e61a 58% 100%);
  background-size: 230% 100%;
  background-position: calc((1 - var(--r)) * 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title { position: relative; margin-top: calc(20 * var(--u)); font: italic 800 calc(61 * var(--u))/1 "Playfair Display", serif; letter-spacing: -.02em; }
.title .reveal:first-child { padding: .1em .15em; margin: 0 -.15em; } /* italic overhang ("d") reaches past the box; background-clip:text only paints inside it */
.title .ai { position: absolute; right: 18%; top: 104%; font: 600 .34em/1 "Newsreader", serif; letter-spacing: 0; }
.lead { margin-top: calc(36 * var(--u)); text-align: center; font: 400 calc(18.5 * var(--u))/1.1 "Newsreader", serif; color: transparent; }

.cta {
  margin-top: calc(40 * var(--u)); position: relative; z-index: 2; overflow: hidden;
  display: inline-flex; align-items: center; gap: calc(18 * var(--u));
  width: calc(420 * var(--u)); min-height: calc(52 * var(--u)); padding: calc(10 * var(--u)) calc(22 * var(--u)); border-radius: 99px;
  background: linear-gradient(100deg, #0b1030, #0a0d1f 60%, #10163a); color: #fff; text-align: left;
  border: 1.5px solid #5b6ff0;
  box-shadow: 0 0 18px #4b3dff55, inset 0 1px 0 #fff1;
  font: 500 calc(16 * var(--u))/1 "Chakra Petch", sans-serif;
  transition: box-shadow .45s, border-color .45s, transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
/* blue fill that fades in on hover */
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #1414d8, #2020e6 50%, #1a1ac8); opacity: 0; transition: opacity .45s; }
.cta b { display: block; font: 500 calc(20 * var(--u))/1 "Rajdhani", sans-serif; letter-spacing: .2em; text-transform: uppercase; transition: letter-spacing .45s; }
.cta em {
  display: block; max-height: 0; opacity: 0; transform: translateY(6px); white-space: nowrap;
  font: 400 calc(20 * var(--u))/1.2 "IBM Plex Sans", sans-serif; font-style: normal; color: #dfe3ff;
  transition: max-height .45s, opacity .35s .1s, transform .45s, margin .45s;
}
.cta i {
  flex: none; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle, #5b78ff 0 38%, #1c2350 42%); box-shadow: 0 0 10px #3d5bff88;
  transition: background .45s, transform .45s;
}
.cta:hover, .cta:focus-visible {
  border-color: #8a9bff; transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 22px #3d3dff, 0 0 60px #2a2aff99, inset 0 1px 0 #fff3;
}
.cta:hover::before, .cta:focus-visible::before { opacity: 1; }
.cta:hover em, .cta:focus-visible em { max-height: 2em; opacity: 1; transform: none; margin-top: calc(8 * var(--u)); }
.cta:hover i, .cta:focus-visible i { background: radial-gradient(circle, #8fa2ff 0 38%, #3a3fe0 42%); transform: scale(1.1); }
.cta:hover b { letter-spacing: .25em; }
.hero > .cta { --u: calc(min(100vw / 1728, 100dvh / 1180) * .9); } /* hero Portfolio button 10% smaller */
/* "Become a client" in the cabin: fades in/out with the hologram (--o set by main.js) */
.client-cta {
  --u: min(100vw / 1728, 100dvh / 1180);
  position: absolute; z-index: 3; /* left/top: beside the client's eyes, set per frame by main.js */
  opacity: var(--o, 0); transform: translate(calc((1 - var(--o, 0)) * -16px), -50%);
  pointer-events: none;
}
.client-cta.on { pointer-events: auto; }
.client-cta .cta { margin: 0; }

.clouds { position: absolute; inset: auto 0 0; height: 42%; pointer-events: none; z-index: 0;
  background: linear-gradient(transparent, #c9c3dc88 70%, #b9b3d0); }
.clouds b { position: absolute; border-radius: 50%; background: #fff; filter: blur(40px); opacity: .85; }
.clouds b:nth-child(1) { width: 40%; height: 60%; left: -12%; bottom: 0; }
.clouds b:nth-child(2) { width: 34%; height: 50%; right: -8%; bottom: 10%; }
.clouds b:nth-child(3) { width: 22%; height: 40%; right: 2%; top: -20%; opacity: .7; }
.clouds b:nth-child(4) { width: 30%; height: 35%; left: 30%; bottom: -15%; opacity: .55; }
.clouds b:nth-child(5) { width: 18%; height: 30%; left: 2%; top: 5%; opacity: .5; }

/* ---------- Popups ---------- */
dialog {
  margin: auto; border: 0; border-radius: 28px; padding: 48px 56px 52px; width: min(560px, 90vw);
  background: #fbf4f2f2; color: var(--ink);
  box-shadow: 0 30px 80px #1414e633;
}
dialog[open] { animation: pop .35s cubic-bezier(.2, .9, .3, 1.2); }
dialog::backdrop { background: #1a1640; opacity: .45; backdrop-filter: blur(6px); }
dialog .eyebrow { margin: 0 0 14px; letter-spacing: .4em; font-size: 11px; }
dialog h2 { font: italic 800 44px/1.05 "Playfair Display", serif; color: var(--blue); margin-bottom: 16px; }
dialog p { font: 400 20px/1.4 "Newsreader", serif; }
dialog .cta { --u: 1px; margin-top: 28px; width: auto; letter-spacing: .05em; }
.x { position: absolute; top: 18px; right: 22px; font-size: 18px; color: var(--blue); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Menu panels (glass over the cockpit, motion as on paavanpatel.com) ---------- */
.glass { --glass: linear-gradient(155deg, #ffffffc4, #fbf4f2a6 40%, #fbf4f28c 60%, #ffffffb8); --rim: inset 0 1.5px 0 #fffc, 0 0 0 1.5px #ffffff8c; color: var(--blue); }
.glass::backdrop { background: radial-gradient(at 50% 45%, #0b0a2a33, #0b0a2a99); opacity: 1; backdrop-filter: blur(6px); }
.glass .x { z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); box-shadow: var(--rim); backdrop-filter: blur(16px); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.glass .x:hover { transform: rotate(90deg); }
.vgo {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border-radius: 99px;
  background: var(--ink); color: #fff; font: 500 13px/1 "Chakra Petch", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), background .3s;
}
.vgo span { transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.vgo:hover { background: var(--blue); }
.vgo:hover span { transform: translateX(3px); }
.vgo:active { transform: scale(.96); }
.vgo.light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px #1b1d2414; }
.vgo.light:hover { background: #fff; color: var(--blue); }

/* About: centered glass sheet, rises in */
dialog.doc {
  width: min(860px, 92vw); padding: 24px 36px 32px; border-radius: 30px;
  background: var(--glass); box-shadow: var(--rim), 0 34px 80px #0a0a3066; backdrop-filter: blur(24px) saturate(1.2);
  opacity: 0; transform: translateY(30px) scale(.94);
  transition: opacity .4s, transform .7s cubic-bezier(.2, 1, .25, 1);
}
dialog.doc[open] { animation: none; }
dialog.doc.on { opacity: 1; transform: none; }
.doc .x { top: 18px; right: 18px; }
.doc h2 { margin-top: 4px; }
.doc .eyebrow { margin-top: 30px; }
.doc p:not(.eyebrow) { max-width: 60ch; color: inherit; }
.doc [role=tabpanel]:not([hidden]) { animation: tabin .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes tabin { from { opacity: 0; transform: translateY(8px); } }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 99px; background: #1414e612; }
.seg button { position: relative; z-index: 1; padding: 9px 18px; font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; transition: color .3s; }
.seg [aria-selected=true] { color: #fff; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--blue); transition: left .45s cubic-bezier(.3, 1.5, .5, 1), width .45s cubic-bezier(.3, 1.5, .5, 1); }

/* Work: 3D card carousel — main card + two side cards turned toward it */
dialog.vp { inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border-radius: 0; background: none; box-shadow: none; perspective: 1700px; overflow: hidden; }
dialog.vp[open] { animation: none; }
.vp > .x { position: fixed; top: 24px; right: 28px; }
.vw {
  position: absolute; border-radius: 30px; background: var(--glass); box-shadow: var(--rim), 0 34px 80px #0a0a3059; backdrop-filter: blur(24px) saturate(1.2);
  opacity: 0; transition: opacity .4s, transform .7s cubic-bezier(.2, 1, .25, 1), box-shadow .3s;
}
.vw.main { left: 50%; top: 7%; width: min(44%, 74vh); translate: -50%; padding: 18px 18px 16px; transform: translateY(30px) scale(.94); transition-delay: .05s; }
.vw.side { top: 19%; width: min(19%, 32vh); padding: 10px 10px 14px; }
.vw.l { left: 5%; transform-origin: 100% 50%; transform: rotateY(32deg) translateX(-30px); }
.vw.r { right: 5%; transform-origin: 0 50%; transform: rotateY(-32deg) translateX(30px); }
.vp.on .vw { opacity: 1; }
.vp.on .vw.main { transform: none; }
.vp.on .vw.l { transform: rotateY(16deg); transition-delay: .14s; }
.vp.on .vw.r { transform: rotateY(-16deg); transition-delay: .14s; }
.vp.on .vw.l:hover { transform: rotateY(8deg) scale(1.03); transition-delay: 0s; }
.vp.on .vw.r:hover { transform: rotateY(-8deg) scale(1.03); transition-delay: 0s; }
.vw.side:hover { box-shadow: var(--rim), 0 0 0 1.5px #fff, 0 34px 80px #0a0a3080; }
.vw figure { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; aspect-ratio: 16 / 9; }
.vw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb { padding: 14px 6px 2px; }
.vb small, .vside small { display: block; font: 500 11px/1.2 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #6a6a7a; margin-bottom: 6px; }
.vb h3 { margin: 0 0 6px; font: italic 800 clamp(22px, 2.2vw, 30px)/1.1 "Playfair Display", serif; text-wrap: balance; }
.vb p { font: 400 17px/1.4 "Newsreader", serif; color: var(--ink); }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.vrow .cta { margin-top: 0; } /* "Open case study": the design-system pill */
.tag { padding: 7px 12px; border-radius: 99px; background: #1414e612; font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.vside { display: grid; gap: 6px; width: 100%; text-align: left; }
.vside small { padding: 6px 6px 0; margin: 0; }
.vside b { font: italic 800 17px/1.15 "Playfair Display", serif; padding: 0 6px; text-wrap: balance; } /* same face as the main card title, smaller */
/* switching cards: contents slide out, swap, slide back */
.vw .vb, .vw figure, .vside { transition: opacity .18s, transform .18s; }
.vp.sw-n .vw .vb, .vp.sw-n .vw figure, .vp.sw-n .vside { opacity: 0; transform: translateX(-14px); }
.vp.sw-p .vw .vb, .vp.sw-p .vw figure, .vp.sw-p .vside { opacity: 0; transform: translateX(14px); }
.dots { position: absolute; left: 50%; bottom: 5%; translate: -50%; display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: #ffffff80; transition: width .45s cubic-bezier(.3, 1.5, .5, 1), background .3s; }
.dots button[aria-selected=true] { width: 26px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .journey { height: 100vh; }
  .world, #trans, .pre { display: none; }
}

/* ---------- Copilot: button on the cockpit panel + chat ---------- */
/* Cockpit buttons (Copilot on the panel, About me on the watch): the Portfolio button, centred on their spot */
.client-cta.hot { transform: translate(-50%, -50%); }
.hot .cta { width: auto; }

/* Blue frosted glass that tilts toward the cursor — Copilot, About, Book a call (main.js sets --rx/--ry and the glare's --gx/--gy) */
dialog.bglass {
  color: #fff; overflow: visible;
  background: linear-gradient(155deg, #3a3dff1a, #1414c80d 45%, #08096e14);
  box-shadow: inset 0 1.5px 0 #ffffff66, 0 0 0 1.5px #ffffff3d, 0 40px 90px #02033a8c;
  backdrop-filter: blur(44px) saturate(1.5);
}
dialog.bglass.on { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .4s, transform .6s cubic-bezier(.2, 1, .25, 1); }
.bglass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), #ffffff40, #ffffff00 55%); mix-blend-mode: soft-light; }
.bglass .x { background: #ffffff1a; color: #fff; box-shadow: inset 0 0 0 1.5px #ffffff4d; }
.bglass h2 { color: #fff; text-shadow: 0 4px 24px #02033a66; }
.bglass .eyebrow { color: #ffffffb3; }
dialog.cp { width: min(740px, 92vw); padding: 40px 44px 30px; }
dialog.ct { width: min(900px, 92vw); padding: 34px 48px 44px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
dialog.ct[data-tab="1"] { width: min(1180px, 96vw); padding-bottom: 32px; }
.ct .eyebrow { margin-top: 28px; }
.ct .book-frame { margin-top: 22px; }
.ct p:not(.eyebrow) { color: #ffffffe0; }
.ct p.ct-k:not(.eyebrow) { margin: 26px 0 10px; font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: #ffffffb3; }
.ct-list { list-style: none; margin: 0; padding: 0; }
.ct-list li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid #ffffff26; }
.ct-list li:last-child { border-bottom: 1px solid #ffffff26; }
.ct-list b { font: 600 15px/1.3 "IBM Plex Sans", sans-serif; color: #fff; }
.ct .cta + .cta { margin-left: 12px; }
.ct-list span { font: 400 17px/1.35 "Newsreader", serif; color: #ffffffd9; }
.cp h2 { margin: 0 60px 18px 0; font-size: 54px; }
.cp .eyebrow { margin: 0 0 30px; font-size: 12px; color: #ffffffb3; }
.cp-log { display: flex; flex-direction: column; gap: 14px; max-height: 36vh; overflow-y: auto; padding: 6px; margin: -6px; }
.cp .m { display: flex; align-items: flex-start; gap: 12px; animation: tabin .45s cubic-bezier(.2, .8, .2, 1); }
.cp .m .av { flex: none; width: 54px; height: 54px; object-fit: cover; margin-top: 6px; border-radius: 50%; box-shadow: 0 0 0 2px #ffffffb3, 0 6px 16px #02033a66; }
.cp .m p { padding: 14px 22px; border-radius: 22px; font: 400 19px/1.45 "Newsreader", serif; color: #fff; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff33; max-width: 52ch; }
.cp .m.me { justify-content: flex-end; }
.cp .m.me p { background: #fff; color: var(--blue); box-shadow: none; }
.cp .m .vgo { margin-top: 10px; }
.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.cp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.cp-chips button {
  padding: 13px 20px; border-radius: 99px; font: 500 15px/1 "IBM Plex Sans", sans-serif; color: #fff;
  background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff47; transition: background .3s, color .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.cp-chips button:hover { background: #ffffff2e; }
.cp-chips [data-hire], .cp-chips [data-hire]:hover { background: #fff; color: var(--blue); box-shadow: none; }
.cp-chips button:active { transform: scale(.96); }
.cp-ask { display: flex; gap: 12px; }
.cp-ask input {
  flex: 1; min-width: 0; height: 56px; padding: 0 24px; border: 0; border-radius: 99px; outline: none;
  background: #04064a73; box-shadow: inset 0 0 0 1.5px #ffffff47; font: 400 19px "Newsreader", serif; color: #fff; transition: box-shadow .3s;
}
.cp-ask input::placeholder { color: #ffffff8c; }
.cp-ask input:focus { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 4px #ffffff26; }
.cp-ask .vgo { height: 56px; padding: 0 30px; background: #fff; color: var(--blue); }
.cp-ask .vgo:hover { background: var(--ink); color: #fff; }
dialog.cp .cp-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 16px; color: #ffffffa6; }
.cp-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .6; }

/* Pills (About footer, Book a call) — same look as the copilot's chips */
.pill { display: inline-flex; align-items: center; white-space: nowrap; flex: none; height: 44px; padding: 0 20px; border-radius: 99px; font: 500 15px/1 "IBM Plex Sans", sans-serif; color: #fff; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff47; transition: background .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.pill:hover { background: #ffffff2e; }
.pill.solid, .pill.solid:hover { background: #fff; color: var(--blue); box-shadow: none; }
.pill:active { transform: scale(.96); }

/* About */
dialog.ab { width: min(900px, 92vw); padding: 26px 34px 24px; }
.bglass .seg { background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff26; }
.bglass .seg button { padding: 13px 26px; font-size: 13px; color: #ffffffb3; white-space: nowrap; }
.bglass .seg [aria-selected=true] { color: var(--blue); }
.bglass .seg-ind { background: #fff; }
.ab-body { height: min(56vh, 520px); overflow-y: auto; margin: 0 -10px; padding: 6px 10px; }
.ab .eyebrow { margin: 26px 0 14px; font-size: 12px; }
.ab-meta { margin-top: 22px; font: 400 12px/1.6 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #ffffffb3; }
.ab h2 { margin: 10px 0 16px; font-size: 44px; }
.ab p:not(.eyebrow):not(.ab-meta) { max-width: none; font: 400 19px/1.5 "Newsreader", serif; color: #ffffffe6; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chips span { padding: 10px 16px; border-radius: 99px; font: 500 14px/1 "IBM Plex Sans", sans-serif; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff47; }
.ab-head { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.ab-head .ab-meta { margin: 0; }
.ab-photo { position: relative; flex: none; width: 96px; height: 96px; margin: 0; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #ffffff2e, #ffffff0a); box-shadow: 0 0 0 3px #ffffffcc, 0 12px 30px #02033a66; display: grid; place-items: center; }
.ab-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-photo span { font: italic 800 36px/1 "Playfair Display", serif; color: #ffffff59; }
.ab-path { list-style: none; padding: 0 0 0 42px; margin: 0 0 0 22px; }
.ab-path li:not(:last-child)::before { content: ''; position: absolute; left: -43px; top: 0; bottom: 0; width: 1px; background: #ffffff33; } /* the line stops at the last (earliest) logo */
.ab-path li { position: relative; padding-bottom: 22px; }
/* round logo cell sitting on the timeline */
.ab-path .lg { position: absolute; left: -65px; top: -4px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 3px #ffffff2e, 0 6px 16px #02033a59; }
.ab-path .lg img, .ab-path .lg svg { width: 100%; height: 100%; object-fit: cover; }
.ab-path .lg span { font: 700 18px/1 "IBM Plex Sans", sans-serif; color: var(--blue); }
.ab-path small, .ab-feature small, .ab-cards small { display: block; font: 400 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #ffffff99; }
.ab-path b { display: block; margin: 4px 0 6px; font: 700 18px/1.3 "IBM Plex Sans", sans-serif; }
.ab-path p, .ab-cards p { max-width: none; }
.ab-feature { margin-top: 22px; padding: 22px 26px; border-radius: 22px; background: #ffffff12; box-shadow: inset 0 0 0 1px #ffffff33; }
.ab-feature h3 { margin: 8px 0 10px; font: italic 800 30px/1.15 "Playfair Display", serif; }
.ab-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ab-cards article { padding: 18px 20px; border-radius: 20px; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff2e; }
.ab-cards b { display: block; margin: 6px 0 6px; font: 700 17px/1.3 "IBM Plex Sans", sans-serif; }
.ab .ab-cards p { font-size: 17px; }
.ab-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #ffffff2e; }
.ab-foot span { margin-right: auto; white-space: nowrap; font: 500 12px/1 "Chakra Petch", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #ffffffb3; }

/* Book a call */
.book-frame { position: relative; min-height: 200px; max-height: calc(100vh - 300px); overflow-y: auto; border-radius: 22px; text-align: center; }
.book-frame iframe { position: relative; display: block; border: 0; }
.book-frame::before { content: "Loading calendar…"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 12px "IBM Plex Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: #ffffff99; }

/* Cockpit KPI cards: real numbers over the panel's baked-in ones (main.js sizes the box; type scales with it) */
.kpis { position: absolute; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3%; container-type: size; opacity: var(--o, 0); pointer-events: none; }
.kpis.on { pointer-events: auto; }
.kpis:hover, .kpis:focus-within { z-index: 6; } /* hover text sits above the left menu */
.kpi {
  --c: #7ff0cc; --bg1: #0f3b38; --bg2: #061718; --bd: #3fb59a;      /* teal-green, as in the cockpit image */
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqh;
  border-radius: 12cqh; color: #fff; background: linear-gradient(160deg, var(--bg1), var(--bg2) 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bd) 70%, transparent), 0 0 14px color-mix(in srgb, var(--bd) 30%, transparent);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), box-shadow .45s;
}
.kpi.red { --c: #ff9585; --bg1: #4a161d; --bg2: #19070b; --bd: #c0525a; } /* burgundy */
.kpi.word b { font-size: 21cqh; } /* a word instead of a number */
.kpi b { font: 600 27cqh/1 "IBM Plex Sans", sans-serif; color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.kpi span { font: 500 10cqh/1.1 "IBM Plex Sans", sans-serif; color: #ffffffc4; text-align: center; }
.kpi svg { width: 40%; height: 13cqh; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px var(--c)); }
.kpi em {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; pointer-events: none;
  padding: 8px 14px; border-radius: 99px; font: 400 13px/1 "IBM Plex Sans", sans-serif; font-style: normal; color: #fff;
  background: #070a12ee; box-shadow: 0 0 0 1px var(--bd), 0 0 18px color-mix(in srgb, var(--bd) 50%, transparent); opacity: 0; transition: opacity .3s, transform .45s;
}
.kpi:hover, .kpi:focus-visible { z-index: 1; transform: scale(1.08); box-shadow: inset 0 0 0 1.5px var(--bd), 0 0 22px var(--bd), 0 0 50px color-mix(in srgb, var(--bd) 50%, transparent); }
.kpi:hover em, .kpi:focus-visible em { opacity: 1; transform: translate(-50%, 0); }

/* Cockpit "UX Research Pipeline": the panel's garbled checklist, redrawn readable at the same spot (main.js sizes it) */
.pipe {
  position: absolute; z-index: 3; container-type: size; opacity: var(--o, 0); pointer-events: none; border-radius: 7% / 8.5%;
  background: linear-gradient(160deg, #161a2b, #0a0d18); box-shadow: inset 0 0 0 1px #ffffff26, 0 6px 20px #0008; color: #fff;
}
.pipe.on { pointer-events: auto; }
.pipe > div { display: flex; flex-direction: column; gap: 4.6cqh; height: 100%; padding: 9cqh 8cqw; }
.pipe b { margin-bottom: 2cqh; font: 600 9.6cqh/1 "IBM Plex Sans", sans-serif; }
.pipe label { display: flex; align-items: center; gap: 5cqw; font: 500 7.6cqh/1 "IBM Plex Sans", sans-serif; color: #ffffffe0; cursor: pointer; }
.pipe input { appearance: none; flex: none; width: 9cqh; height: 9cqh; margin: 0; border-radius: 2cqh; box-shadow: inset 0 0 0 1.5px #ffffffb3; cursor: pointer; transition: background .25s, box-shadow .25s; }
.pipe input:checked { background: #2f6df2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; box-shadow: 0 0 8px #2f6df2aa; }
.pipe label:hover input:not(:checked) { box-shadow: inset 0 0 0 1.5px #fff, 0 0 8px #2f6df288; }

/* Cockpit "Works / Portfolio" card: readable header over the garbled one; the baked image tiles stay, with live hover (main.js sizes the box) */
.works { position: absolute; z-index: 3; container-type: size; opacity: var(--o, 0); pointer-events: none; }
.works.on button { pointer-events: auto; }
.works button { position: absolute; }
.works-h {
  left: 2.4%; right: 2%; top: 2%; height: 17%; display: flex; align-items: center; justify-content: space-between; padding: 0 5cqw 0 5.6cqw;
  border-radius: 6cqh 6cqh 2cqh 2cqh; background: linear-gradient(180deg, #161a2b, #10131f); color: #fff;
}
.works-h span { font: 500 7.4cqh/1 "IBM Plex Sans", sans-serif; }
.works-h i { font: 400 9cqh/1 "IBM Plex Sans", sans-serif; font-style: normal; color: #f5a32c; text-shadow: 0 0 8px #f5a32c99; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.works-h:hover i, .works-h:focus-visible i { transform: translateX(1.6cqw); }
.works-t { background: center / cover; left: 7.2%; width: 84%; height: 22%; border-radius: 3cqh; transition: box-shadow .35s, background .35s; }
.works-t:hover, .works-t:focus-visible { background-color: #ffffff14; box-shadow: inset 0 0 0 1.5px #fff, 0 0 18px #6f8cff; }

/* Cockpit left menu: live buttons over the text column only (never over the pilot's face); "Ressarch" redrawn as "Research" */
.lmenu { position: absolute; z-index: 3; container-type: size; opacity: var(--o, 0); pointer-events: none; }
.lmenu.on .lm { pointer-events: auto; }
.lm { position: absolute; left: 40.8%; right: 1%; height: 12%; border-radius: 3.5cqh; transition: background .3s, box-shadow .3s; }
.lm.fl { left: 0; right: 0; top: 0; height: 14.3%; border-radius: 4.5cqh; }
.lm span { position: absolute; inset: 8% 4% 8% 6%; display: flex; align-items: center; border-radius: 2cqh; font: 500 6cqh/1 "IBM Plex Sans", sans-serif; color: #f2f2f5; white-space: nowrap; transition: color .35s, text-shadow .35s; }
.lm.fl span { inset: 12% 6% 12% 38%; border-radius: 1.5cqh; font-size: 6.6cqh; color: #fff; }
/* hover: the label lights up like a lamp (same as the Methodologies bar); no tooltip */
.lm:hover span, .lm:focus-visible span { color: #fff8ea; text-shadow: 0 0 4px #fff, 0 0 10px #ffd59a, 0 0 20px #ffad4d; }
.lm.fl:hover, .lm.fl:focus-visible { box-shadow: 0 0 22px #f08a2acc; }
.kpis.pulse .kpi { animation: kpiPulse 1.4s ease-in-out 2; }
@keyframes kpiPulse { 50% { transform: scale(1.1); box-shadow: inset 0 0 0 1.5px var(--bd), 0 0 26px var(--bd), 0 0 60px color-mix(in srgb, var(--bd) 60%, transparent); } }

/* Cockpit "Methodologies" bar: readable labels in the same spot; each one asks the copilot (main.js sizes the box) */
.meth {
  position: absolute; z-index: 3; container-type: size; opacity: var(--o, 0); pointer-events: none; border-radius: 1.4% / 34%;
  display: grid; grid-template-columns: 16.5fr 9.9fr 10.9fr 10.4fr 15.4fr 12.5fr 12fr 12.4fr;
  background: linear-gradient(180deg, #121624, #0b0e18); box-shadow: inset 0 0 0 1px #ffffff2e, 0 4px 14px #0007;
}
.meth.on button { pointer-events: auto; }
.meth button { position: relative; display: grid; place-items: center; color: #fff; transition: color .3s; }
.meth button + button::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: #ffffff38; }
.meth span { padding: 0 2.5cqw; font: 500 34cqh/1 "IBM Plex Sans", sans-serif; white-space: nowrap; border-radius: 99px; transition: background .3s, box-shadow .3s, text-shadow .3s; }
.meth span i { font-style: normal; margin-left: 6cqh; }
/* hover: the label lights up like a backlit lamp — warm glow, no outline, no tooltip */
.meth span { transition: color .35s, text-shadow .35s, background .35s; }
.meth button:hover span, .meth button:focus-visible span {
  color: #fff8ea; background: radial-gradient(closest-side, #ffbf6a40, #ffbf6a00);
  text-shadow: 0 0 4px #fff, 0 0 10px #ffd59a, 0 0 22px #ffad4d, 0 0 40px #ff9a3c99;
}

/* Cockpit top bar: UX toolkit tiles, each set 3px inside its baked frame (left/width per tile in index.html; main.js sizes the box); hover lights the tile like a lamp in the tool's colour */
.tools { position: absolute; z-index: 3; opacity: var(--o, 0); pointer-events: none; }
.tools.on a { pointer-events: auto; }
.tools a {
  position: absolute; top: 5%; bottom: 5%; display: grid; place-items: center; border-radius: 22%;
  background: linear-gradient(160deg, #1d2131, #0c0f18); box-shadow: inset 0 0 0 1px #ffffff1f, 0 4px 10px #0007;
  transition: background .35s, box-shadow .35s, transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.tools img { width: 44%; height: 44%; object-fit: contain; transition: filter .35s; }
.tools a:hover, .tools a:focus-visible {
  transform: scale(1.06);
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 35%, #1d2131), #0c0f18 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent), 0 0 18px color-mix(in srgb, var(--c) 70%, transparent), 0 0 40px color-mix(in srgb, var(--c) 35%, transparent);
}
.tools a:hover img, .tools a:focus-visible img { filter: drop-shadow(0 0 6px var(--c)) brightness(1.15); }

/* Cockpit centre tablet: only its bottom bar is live (main.js sizes the box; buttons are % of it) */
.tab { position: absolute; z-index: 3; opacity: var(--o, 0); pointer-events: none; }
.tab.on a, .tab.on button { pointer-events: auto; }
.tab-i { position: absolute; top: 85.1%; height: 12.9%; width: 8%; transform: translateX(-50%); border-radius: 30%; transition: background .35s, box-shadow .35s; }
.tab-i:hover, .tab-i:focus-visible { background: radial-gradient(closest-side, #ffffff55, #8fb4ff22 60%, #ffffff00); box-shadow: 0 0 16px #8fb4ff66; }

/* Cockpit Europe map: plane on the route + twinkling city lights (SVG in frame px; main.js sizes the box) */
.mapfx { position: absolute; z-index: 3; opacity: var(--o, 0); pointer-events: none; overflow: visible; }
.mf-line { fill: none; stroke: #6ef3ff; stroke-width: 1.7; stroke-linecap: round; opacity: .9; }
.mf-tw circle { fill: #fff3d6; opacity: 0; animation: mfTwinkle 4s ease-in-out infinite; }
@keyframes mfTwinkle { 0%, 100% { opacity: 0; } 45% { opacity: .95; } 60% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .mf-tw circle { animation: none; opacity: .5; } }

/* Private portfolio pad: a glass screen warped onto the lower monitor (400×300 box, main.js sets the matrix3d) */
.pf-pad { position: absolute; left: 0; top: 0; width: 400px; height: 300px; transform-origin: 0 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  border-radius: 26px; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #2a2f7ae0, #0d1030 58%); box-shadow: inset 0 0 0 2px #6f8cffaa, 0 0 34px #4b5cff66;
  transition: box-shadow .35s, background .35s; }
.pf-pad svg { width: 46px; height: 46px; fill: none; stroke: #9fb0ff; stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 8px #6f8cff); }
.pf-pad svg circle { fill: #9fb0ff; stroke: none; }
.pf-pad b { font: 700 44px/1.05 "IBM Plex Sans", sans-serif; letter-spacing: -.02em; }
.pf-pad b s, .pf h2 s { text-decoration: none; opacity: .5; }
.pf-pad em { font: 400 20px/1.2 "IBM Plex Mono", monospace; font-style: normal; letter-spacing: .12em; color: #ffffffb3; }
.pf-pad span { margin-top: 12px; padding: 14px 33px; border-radius: 99px; font: 500 27px/1 "IBM Plex Sans", sans-serif; background: #1414e6; box-shadow: 0 0 18px #1414e699; transition: background .35s; }
.pf-pad:hover, .pf-pad:focus-visible { box-shadow: inset 0 0 0 3px #fff, 0 0 46px #6f8cffaa; }
.pf-pad:hover span, .pf-pad:focus-visible span { background: #2b2bff; }

/* Portfolio panel */
dialog.pf { width: min(760px, 92vw); padding: 44px 48px 44px; }
.pf .eyebrow { margin-top: 0; }
.pf p:not(.eyebrow) { color: #ffffffe0; }
.pf-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 22px 0 6px; } /* minmax: fields shrink with the card instead of overflowing */
.pf-field span { font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: #ffffffb3; }
.pf-field input { height: 52px; padding: 0 20px; border: 0; border-radius: 16px; font: 400 18px "IBM Plex Sans", sans-serif; color: #fff; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff40; outline: none; }
.pf-field input:focus { box-shadow: inset 0 0 0 2px #fff; }
.pf-field input { font: 500 22px "IBM Plex Mono", monospace; letter-spacing: .6em; }
.pf-field input::placeholder { color: #ffffffb3; letter-spacing: .3em; }
.pf p.pf-msg { display: flex; align-items: center; min-height: 30px; margin: 10px 0 0; font: 500 14px/1 "IBM Plex Sans", sans-serif; color: #fff; }
.pf p.pf-msg:not(:empty) { width: fit-content; gap: 8px; padding: 0 14px 0 8px; border-radius: 99px; background: #7b1e2e; box-shadow: 0 4px 14px #7b1e2e66; }
.pf p.pf-msg:not(:empty)::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 12px/1 "IBM Plex Sans", sans-serif; color: #7b1e2e; background: #fff; }
.pf-form.err input, .pf-form.err input:focus { box-shadow: inset 0 0 0 2px #8e2436; }
.pf-form .cta { margin-top: 14px; vertical-align: middle; }
.pf-ask { display: inline-block; margin: 14px 0 0 18px; vertical-align: middle; font: 400 14px "IBM Plex Sans", sans-serif; color: #ffffffb3; }
.pf-ask:hover { color: #fff; }
.pf-form.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pf-list { display: grid; gap: 14px; margin-top: 24px; max-height: 56vh; overflow-y: auto; }
.pf-list article { padding: 20px 22px; border-radius: 20px; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff26; }
.pf-list small { display: block; font: 400 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #ffffff99; }
.pf-list b { display: block; margin: 6px 0; font: 700 20px/1.3 "IBM Plex Sans", sans-serif; }
.pf-list p { margin: 0 0 12px; font: 400 17px/1.45 "Newsreader", serif; }

/* "Book a call" on the headphones: round glass button with a phone icon; the label slides out on hover */
.call { position: relative; display: grid; place-items: center; width: calc(92 * var(--u)); height: calc(92 * var(--u)); border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 35% 30%, #3a3fe0, #12128c 70%); box-shadow: inset 0 0 0 2px #8fa2ff, 0 0 22px #4b5cffaa; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), box-shadow .35s; }
.call svg { width: 42%; height: 42%; fill: #fff; filter: drop-shadow(0 0 6px #8fa2ff); }
.call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px #8fa2ff; animation: ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring { from { opacity: .9; transform: scale(1); } 70%, to { opacity: 0; transform: scale(1.6); } }
.call span { position: absolute; left: calc(100% + 12px); top: 50%; padding: 10px 18px; border-radius: 99px; white-space: nowrap;
  font: 500 calc(18 * var(--u))/1 "Rajdhani", sans-serif; letter-spacing: .2em; text-transform: uppercase; background: #12128cee; box-shadow: inset 0 0 0 1.5px #8fa2ff, 0 0 16px #4b5cff88;
  opacity: 0; transform: translate(-8px, -50%); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.5, .5, 1); pointer-events: none; }
.call:hover, .call:focus-visible { transform: scale(1.08); box-shadow: inset 0 0 0 2.5px #fff, 0 0 30px #6f8cffcc; }
.call:hover span, .call:focus-visible span { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .call::after { animation: none; } }

@keyframes signarrow { 50% { transform: translateY(4px); } }

/* Portfolio access request form */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pf-grid .pf-field { margin: 16px 0 0; }
.pf-grid .pf-wide { grid-column: 1 / -1; }
.pf-req .pf-field input { font: 400 17px "IBM Plex Sans", sans-serif; letter-spacing: 0; }
.pf-field i { font-style: normal; letter-spacing: .1em; text-transform: none; opacity: .7; }
.pf-field textarea { padding: 14px 20px; border: 0; border-radius: 16px; resize: vertical; font: 400 17px/1.4 "IBM Plex Sans", sans-serif; color: #fff; background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff40; outline: none; }
.pf-field textarea:focus { box-shadow: inset 0 0 0 2px #fff; }
.pf-field textarea::placeholder { color: #ffffff80; }
.pf p.pf-note { min-height: 1.4em; margin: 12px 0 0; font: 400 14px/1.4 "IBM Plex Sans", sans-serif; color: #ffffffcc; }
.pf-req .cta { vertical-align: middle; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* bot trap */
/* Browser autofill paints fields white; keep them glass with white text */
.pf-field input:-webkit-autofill, .pf-field input:-webkit-autofill:hover, .pf-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff; -webkit-box-shadow: inset 0 0 0 1px #ffffff40, inset 0 0 0 100px #3a3f7a; transition: background-color 9999s; }
.pf-field select { height: 52px; padding: 0 44px 0 20px; border: 0; border-radius: 16px; font: 400 17px "IBM Plex Sans", sans-serif; color: #fff; outline: none; appearance: none; cursor: pointer;
  background: #ffffff14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 20px center; box-shadow: inset 0 0 0 1px #ffffff40; }
.pf-field select:focus { box-shadow: inset 0 0 0 2px #fff; }
.pf-field select option { color: #1b1d24; }
/* Contact: services and booking are separate views — the switcher only drives them, never shows */
#p-contact .seg { display: none; }
#p-contact [role=tabpanel] > .eyebrow:first-child { margin-top: 0; }

/* Scrollbars inside the glass panels: a thin, faint line that brightens only on hover */
dialog * { scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
dialog *:hover { scrollbar-color: #ffffff59 transparent; }
dialog ::-webkit-scrollbar { width: 6px; height: 6px; }
dialog ::-webkit-scrollbar-track { background: transparent; }
dialog ::-webkit-scrollbar-thumb { border-radius: 99px; background: #ffffff26; }
dialog *:hover::-webkit-scrollbar-thumb { background: #ffffff59; }
dialog .ab-quote { --u: .41px; margin-top: 10px; padding: 7px 12px; }
dialog .ab-quote b { margin: 0; font-size: 10px; line-height: 1; letter-spacing: .16em; color: #fff; } dialog .ab-quote em { font-size: 10px; } /* small pill, text kept readable */ /* same pill as the cockpit buttons: "Get a quote", expands blue on hover */
.ab-foot { gap: 8px; } .ab-foot .pill { height: 40px; padding: 0 16px; font-size: 14px; } .ab-foot span { letter-spacing: .12em; } /* 5 buttons on one row */



/* ---------- Phones held upright: hero page + cockpit tour (index.html #m, main.js "Phone page") ---------- */
#m { display: none; }
@media (hover: none) and (pointer: coarse) and (orientation: portrait) and (max-width: 900px) {
  html { scroll-snap-type: y mandatory; }
  .journey, .legal, .lite, .go-hint { display: none !important; }
  #m { display: block; background: var(--cream); color: var(--ink); }
  #m button:not(.cta):not(.call) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

  /* hero: a normal page */
  .m-hero { scroll-snap-align: start; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 14px 18px 22px; text-align: center; }
  .m-nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .m-brand { display: flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; text-align: left; font: 600 13px/1.1 "IBM Plex Sans", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
  .m-brand svg { width: 44px; height: 44px; }
  .m-contact { padding: 10px 2px !important; font: 600 13px "IBM Plex Sans", sans-serif !important; letter-spacing: .06em; text-transform: uppercase; color: var(--blue) !important; }
  .m-menu { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 16px; }
  .m-menu > * { padding: 6px 2px !important; text-align: center !important; font: 600 14px/1.15 "IBM Plex Sans", sans-serif !important; text-transform: uppercase; letter-spacing: .03em; color: var(--blue) !important; text-decoration: none; }
  .m-menu small { display: block; margin-top: 5px; font: 400 9px/1.2 "IBM Plex Mono", monospace; letter-spacing: .14em; color: #1b1d2499; }
  /* the desktop hero's window: the slide video's frame 0, rows 140–640 of 1728×1180, edges faded */
  .m-hero { overflow: hidden; }
  .m-win { position: relative; width: 118vw; flex-shrink: 0; aspect-ratio: 1728 / 500; margin-top: 6px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 5% 95%, transparent), linear-gradient(transparent, #000 5% 95%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .m-win video, .m-win img { position: absolute; left: 0; top: -28%; width: 100%; height: 236%; object-fit: fill; }
  .m-eye { margin: 22px 0 8px; font: 400 10px/1.5 "IBM Plex Mono", monospace; letter-spacing: .28em; text-transform: uppercase; color: var(--blue); }
  .m-title { margin: 0; font: italic 800 40px/1.02 "Playfair Display", serif; color: var(--blue); }
  .m-title span { display: block; font: 400 italic 24px/1.4 "Newsreader", serif; }
  .m-lead { max-width: 330px; margin: 10px 0 0; font: 400 17px/1.4 "Newsreader", serif; color: #1b1d24cc; }
  .m-cta { margin-top: 22px; width: auto; min-width: 230px; min-height: 52px; padding: 10px 50px; justify-content: center; }
  .m-cta i { position: absolute; left: 14px; top: 50%; margin-top: -12px; width: 24px; height: 24px; } /* the dot sits aside, the label is centred */
  .m-cta b { font-size: 16px; }
  .m-cta em { display: none; }

  /* cockpit tour: the view sticks while 5 snap points scroll past; main.js moves the picture between them */
  .m-tour { position: relative; height: 300dvh; background: #0b0d1c; }
  .m-snap { position: absolute; left: 0; width: 1px; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; }
  .m-snap:nth-child(1) { top: 0; } .m-snap:nth-child(2) { top: 100dvh; } .m-snap:nth-child(3) { top: 200dvh; }
  .m-view { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
  .m-ck { position: absolute; left: 0; top: 0; height: 100dvh; width: auto; max-width: none; transform-origin: 0 0; will-change: transform; }
  .m-hot { position: absolute; left: 0; top: 0; translate: -50% -50%; margin: 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .m-hot.on { opacity: 1; visibility: visible; }
  .m-hot.cta { --u: 1px; width: auto; min-height: 0; padding: 10px 18px 10px 12px; gap: 10px; white-space: nowrap; }
  .m-hot.cta b { font-size: 14px; }
  .m-hot.cta i { width: 18px; height: 18px; }
  .m-hot.call { --u: 1px; width: 58px; height: 58px; }
  .m-hot.call span { display: none; }
  .m-pad { border-radius: 12px; } /* invisible: the pad's own "Unlock" in the picture is the button, like on desktop */
  .m-dots { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; gap: 6px; }
  .m-dots i { width: 6px; height: 6px; border-radius: 6px; background: #ffffff80; transition: width .3s, background .3s; }
  .m-dots i.on { width: 20px; background: #fff; }

  /* every section as a list ("Pick a door") */
  .m-foot { display: flex; gap: 18px; justify-content: center; margin-top: auto; padding-top: 18px; font: 10pt Arial, Helvetica, sans-serif; }
  .m-foot a { color: #1b1d24b3; }

  /* popups: a card with the page showing around it (not the whole screen), scrolls inside; desktop multi-column bits stack */
  dialog:not(.vp) { width: calc(100vw - 32px); max-width: none; height: fit-content; max-height: calc(100dvh - 64px); margin: auto; border-radius: 22px; padding: 20px 18px 22px; overflow-y: auto; }
  dialog:not(.vp) { bottom: var(--kb, 0px); max-height: calc(100dvh - 64px - var(--kb, 0px)); } /* keyboard open: popup rises above it (main.js sets --kb) */
  dialog p { font-size: 17px; }
  dialog.ct[data-tab="1"] { width: calc(100vw - 32px); }
  dialog .eyebrow, .cp .eyebrow { letter-spacing: .2em; margin-bottom: 18px; }
  .cp .m .av { width: 40px; height: 40px; }
  .cp .m p { padding: 10px 16px; border-radius: 18px; font-size: 16px; }
  .cp-chips { gap: 8px; margin: 16px 0 14px; }
  .cp-chips button { padding: 10px 14px; font-size: 13px; }
  .cp-ask input { height: 48px; padding: 0 18px; font-size: 17px; }
  .cp-ask .vgo { flex: none; height: 48px; padding: 0 20px; } /* same height as the field, narrower */
  dialog.cp .cp-note { margin-top: 18px; font-size: 14px; } /* air between the Ask row and the note */
  dialog h2, .ab h2, .cp h2 { font-size: 28px; margin-bottom: 8px; }
  .ab-body, .pf-list, .cp-log, .book-frame { height: auto; max-height: none; overflow: visible; }
  .ab-cards, .ab-hob { grid-template-columns: 1fr; }
  .seg { max-width: 100%; overflow-x: auto; }
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .seg { margin-right: 48px; } /* room for the close ✕ */
  /* Selected work: just the main card, full width (the dots below still switch projects) */
  .vw.side { display: none; }
  .vw.main { top: 72px; width: calc(100vw - 28px); }
}

.topfade { display: contents; }

/* Legal links (Impressum, Datenschutz): plain 10pt Arial, bottom-left; .lt = light text over the dark cabin/cockpit */
.legal { position: fixed; right: 28px; bottom: 24px; z-index: 20; display: flex; gap: 18px; font: 10pt/1 Arial, Helvetica, sans-serif; }
.legal a { color: #1b1d24b3; text-decoration: none; transition: color .4s; }
.legal a:hover { color: #1b1d24; text-decoration: underline; }
.legal.lt a { color: #ffffffb3; text-shadow: 0 1px 3px #0009; }
.legal.lt a:hover { color: #fff; }
.legal.ck-link { right: auto; left: 28px; }

/* Cookie banner (bottom-left card) and the "simple version" offer (bottom-right, above the scroll sign) */
/* Cookie banner: same system as the "Choose your experience" card — white card, mono eyebrow between lines,
   Newsreader copy in brand blue, blue outline for the secondary choice. --u = 1.4px sizes the shared .lite-e eyebrow. */
.consent { --u: 1.4px; position: fixed; left: 28px; bottom: 24px; z-index: 30; width: min(380px, calc(100vw - 56px)); padding: 24px 24px 18px; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 60px #1414e633; font: 400 14px/1.45 "IBM Plex Sans", sans-serif; animation: pop .5s cubic-bezier(.2, .9, .3, 1.2); }
.consent .ck-t { margin: 18px 0 16px; font: 400 18px/1.35 "Newsreader", serif; color: var(--blue); }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { text-decoration-thickness: 2px; }
.consent button { display: block; width: 100%; height: 48px; margin-top: 10px; border: 0; border-radius: 99px; font: 600 15px "IBM Plex Sans", sans-serif; letter-spacing: .02em; cursor: pointer; transition: background .25s, box-shadow .25s; }
.ck-yes { color: #fff; background: var(--blue); box-shadow: 0 6px 18px #1414e640; }
.ck-yes:hover { background: #2b2bff; }
.ck-no { color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.ck-no:hover { background: #1414e60a; }
.ck-more summary { list-style: none; width: fit-content; margin: 14px auto 0; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ck-more summary::-webkit-details-marker { display: none; }
.ck-more[open] summary { margin-bottom: 8px; }
.ck-more label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #1414e61a; font-size: 13px; color: #55576a; cursor: pointer; }
.ck-more input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.ck-more label b { display: block; font-weight: 600; color: var(--blue); }
/* After "Animated version": a pointer down in the card's place, until the visitor scrolls */
.hero > .go-hint { position: absolute; left: 50%; top: calc(138 * var(--u) + min(108vw, 2050 * var(--u)) * 500 / 1728 * .6); translate: -50% -50%; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: calc(14 * var(--u)); padding: calc(22 * var(--u)) calc(34 * var(--u)); border-radius: calc(16 * var(--u));
  background: #fff; box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) #1414e633;
  font: 400 max(10px, 11 * var(--u))/1 "IBM Plex Mono", monospace; letter-spacing: .4em; text-transform: uppercase; color: var(--ink); }
.hero > .go-hint[hidden] { display: none; }
.hero > .lite, .hero > .go-hint { transition: opacity .7s ease, filter .7s ease, scale .7s ease; }
.hero > .lite.out, .hero > .go-hint.out { opacity: 0; filter: blur(14px); scale: .96; pointer-events: none; } /* blurred fade on the first scroll */
.go-hint i { width: calc(26 * var(--u)); height: calc(40 * var(--u)); border: 2px solid var(--blue); border-radius: 99px; position: relative; }
.go-hint i::after { content: ""; position: absolute; left: 50%; top: 18%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.6s ease-in-out infinite; }
.go-hint b { font-size: max(14px, 18 * var(--u)); color: var(--blue); animation: signarrow 2s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .go-hint i::after, .go-hint b { animation: none; } }
/* First-visit "Choose your experience" card over the window (Figma Slide 1); sizes in --u like the rest of the hero */
.hero > .lite { --u: calc(min(100vw / 1728, 100dvh / 1180) * 1.5); /* the whole card 1.5× the hero scale */
  position: absolute; left: 50%; top: calc(138 * min(100vw / 1728, 100dvh / 1180) + min(108vw, 2050 * min(100vw / 1728, 100dvh / 1180)) * 500 / 1728 * .6); translate: -50% -50%; z-index: 4;
  width: calc(600 * var(--u)); padding: calc(40 * var(--u)) calc(40 * var(--u)) calc(40 * var(--u)); border-radius: calc(16 * var(--u));
  background: #fff; box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) #1414e633; text-align: center; }
.lite-e { display: flex; align-items: center; gap: calc(14 * var(--u)); font: 400 max(8px, 8 * var(--u))/1 "IBM Plex Mono", monospace; letter-spacing: .5em; text-transform: uppercase; color: #1b1d24; }
.lite-e::before, .lite-e::after { content: ""; flex: 1; height: 1px; background: #e6e6ee; }
.lite-c { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24 * var(--u)); margin-top: calc(36 * var(--u)); }
.lite-c > div { display: flex; flex-direction: column; align-items: center; }
.lite-c p { flex: 1; max-width: calc(200 * var(--u)); font: 400 calc(19 * var(--u))/1.3 "Newsreader", serif; color: var(--blue); }
.lite-o { display: flex; align-items: center; gap: calc(10 * var(--u)); width: calc(186 * var(--u)); margin-top: calc(22 * var(--u)); padding: calc(14 * var(--u)) calc(10 * var(--u)); white-space: nowrap;
  border-radius: calc(10 * var(--u)); background: #fff; box-shadow: 0 calc(4 * var(--u)) calc(16 * var(--u)) #1b1d2414; text-align: left; text-decoration: none; cursor: pointer;
  position: relative; outline: 1.5px solid transparent; transition: outline-color .25s, transform .25s; font: 400 max(8px, 9 * var(--u))/1.25 "IBM Plex Sans", sans-serif; color: #55576a; }
.lite-o:focus-visible, .lite-o.on { outline-color: var(--blue); } /* no hover outline or lift (owner's call); keyboard focus still shows */
/* Both drawn as one SVG each, so every circle shares one exact centre (CSS boxes rounded to half pixels and drifted) */
.lite-o i { flex: none; display: grid; place-items: center; width: calc(43 * var(--u)); height: calc(43 * var(--u)); border-radius: 50%; background: #eceefe; color: var(--blue); }
.lite-r { position: absolute; right: calc(7 * var(--u)); top: calc(7 * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u)); fill: var(--blue); }
.lite-r circle:last-child { fill: #fff; } /* Figma: solid blue dot with a white centre (the centre blinks) */
.lite-r circle:last-child { animation: dotBlink 1.2s ease-in-out infinite; }
.lite-o.on i { position: relative; background: none; animation: playBreathe 2s ease-in-out infinite; }
.lite-o.on i { display: block; }
.lite-o.on i svg { display: block; width: 100%; height: 100%; stroke: none; }
.lite-o.on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px #1414e666; animation: playRing 2s ease-out infinite; }
@keyframes playBreathe { 50% { transform: scale(1.06); } }
@keyframes playRing { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@keyframes dotBlink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .lite-o.on i, .lite-o.on i::after, .lite-r circle { animation: none; } }
.lite-o i svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.lite-n { margin-top: calc(10 * var(--u)); font: 400 max(8px, 8 * var(--u))/1 "IBM Plex Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: #55576a; } /* note under each option */
.lite-o b { display: block; margin-bottom: calc(2 * var(--u)); font: 600 max(9.5px, 11.5 * var(--u))/1.2 "IBM Plex Sans", sans-serif; color: var(--blue); }
.cal-off { margin: 30px auto 16px; max-width: 420px; }
.cal-off-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }

/* ---------- Phones held sideways (short touch screens) ---------- */
@media (pointer: coarse) and (max-height: 500px) {
  /* readable, tappable top menu: text never below 11px, sublines dropped */
  .brand { font-size: max(16px, calc(36 * var(--u))); }
  .brand svg { width: max(48px, calc(126 * var(--u))); height: max(48px, calc(126 * var(--u))); }
  /* menu items on one line each ("Selected work", "About me", "My CV"), no sublines */
  .menu { gap: 22px; padding-top: 10px; }
  .menu > *, .contact { font-size: max(11px, calc(20 * var(--u))); white-space: nowrap; }
  .menu br { display: none; }
  .menu > *, .contact { display: inline-block; padding: 6px 4px; }
  .menu small { display: none; }
  /* the subtitle doesn't fit a sideways phone: dropped; Portfolio becomes a normal-size touch button */
  .hero .lead { display: none; }
  .hero .cta { width: auto; min-width: 220px; min-height: 48px; padding: 10px 22px 10px 14px; gap: 12px; margin-top: 18px; font-size: 13px; }
  .hero .cta i { width: 22px; height: 22px; }
  .hero .cta b { font-size: 15px; }
  /* scroll sign shrinks to a small arrow chip so it stays clear of the Portfolio button */
  .legal { right: 12px; bottom: 8px; gap: 14px; font-size: 9pt; }
  .legal.ck-link { right: auto; left: 12px; }
  .legal.off { display: none; }
  .consent { left: 12px; bottom: 12px; width: min(340px, calc(100vw - 24px)); padding: 16px 16px 12px; font-size: 13px; }
  .consent .ck-t { margin: 10px 0 8px; font-size: 15px; }
  .consent button { height: 38px; margin-top: 8px; font-size: 14px; }
  .ck-more summary { margin-top: 10px; }
  /* cockpit buttons: no hover subline, so each is just its label plus a little room */
  .hot .cta em { display: none; }
  .hot .cta { padding: 6px 12px 6px 8px; gap: 6px; min-height: 0; }
  .hot .cta { zoom: 1.5; } /* 1.5× for fingers (the headphone call button and the Portfolio pad keep their size) */
  /* popups take the whole screen */
  dialog, dialog.doc { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; padding: 16px 20px 20px; }
  dialog, dialog.doc { overflow-y: auto; }
  dialog h2, .ab h2, .cp h2 { font-size: 28px; margin-bottom: 8px; }
  /* the popup itself scrolls; inner scroll boxes (sized for desktop heights) just grow */
  .ab-body, .pf-list, .cp-log, .book-frame { height: auto; max-height: none; overflow: visible; }
}

.lite[hidden], .consent[hidden], .legal[hidden] { display: none; } /* their display: flex would beat the hidden attribute */
/* About → Hobbies: three photo cards (photos: Unsplash, free licence) */
.ab-hob { grid-template-columns: repeat(3, 1fr); }
.ab-hob article { overflow: hidden; }
.ab-hob img { display: block; width: calc(100% + 40px); margin: -18px -20px 14px; aspect-ratio: 16 / 10; object-fit: cover; }
.ab .ab-hob p { font-size: 15px; }

/* Phones held upright, popup contents: one column, tabs clear of the ✕ (placed last so it beats the desktop grids above) */
@media (hover: none) and (pointer: coarse) and (orientation: portrait) and (max-width: 900px) {
  dialog:not(.vp) { overflow-x: hidden; }
  .pf-grid, .ab-hob { grid-template-columns: minmax(0, 1fr); }
  .ct-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .seg { max-width: calc(100% - 52px); margin-right: 0; }
  .bglass .seg button { padding: 10px 14px; font-size: 11px; letter-spacing: .12em; }
  .ct .cta { white-space: nowrap; }
  .ct .cta + .cta { margin-left: 0; }
  .ct .cta { font-size: 14px; padding-right: 18px; }
  /* long popups: the ✕ stays in view in a blurred band over the top ~20% (blur 60% → 0% downwards) */
  .topfade { display: block; position: sticky; top: -20px; z-index: 3; height: max(90px, 18dvh); margin: -20px -18px calc(-1 * max(90px, 18dvh) + 20px); pointer-events: none; }
  .topfade::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask: linear-gradient(#0009, #0000); mask: linear-gradient(#0009, #0000); }
  .topfade .x { position: absolute; top: 12px; right: 12px; pointer-events: auto; }
  /* Selected work: card centred on the screen, ✕ in the corner above it; no tag; eyebrow on two lines; full-width case-study button */
  .vw.main { top: 50%; translate: -50% -50%; }
  .vp .tag { display: none; }
  .vb small span { display: block; }
  .vb small span + span { margin-top: 4px; }
  .vb small { font-size: 0; } .vb small span { font-size: 11px; } /* hides the " · " joiner between the two lines */
  .vrow .cta { width: 100%; min-height: 0; padding: 10px 18px; gap: 10px; justify-content: center; white-space: nowrap; } /* same height as the other pills */
  .vrow .cta b { font-size: 14px; letter-spacing: .16em; }
  .vrow .cta i { width: 18px; height: 18px; }
  /* an open popup holds the page behind it still: swipes and scrolls stay inside the popup */
  html:has(dialog[open]) { overflow: hidden; }
  dialog.vp { touch-action: none; overscroll-behavior: contain; }
}

/* ---------- Hidden hangar: the easter-egg game (GAMEME in the portfolio password; main.js) ---------- */
#p-game { inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border-radius: 0; background: var(--cream); overflow: hidden; }
#p-game canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#p-game .x { position: fixed; top: 20px; right: 20px; }
.g-hud { position: absolute; left: 24px; top: 30px; display: flex; gap: 20px; margin: 0; font: 500 14px/1 "IBM Plex Mono", monospace; letter-spacing: .2em; color: var(--blue); pointer-events: none; }
.g-card { --u: 1.2px; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(430px, calc(100% - 32px)); padding: 30px 30px 32px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px #1414e633; text-align: center; }
.g-card[hidden] { display: none; }
.g-card h2 { margin: 16px 0 8px; font: italic 800 34px/1.1 "Playfair Display", serif; color: var(--blue); }
.g-card h2 s { text-decoration: none; opacity: .5; }
.g-card p:not(.lite-e) { margin: 0; font: 400 18px/1.4 "Newsreader", serif; color: var(--ink); }
.g-card .cta { margin-top: 22px; }
