/* The single-page version: blush and berry, soft and rounded.
   Same type as the rest of the site (Eczar headings, Geist text, Geist Mono labels).
   Light by default here; dark follows the visitor's saved choice. */
:root {
  color-scheme: dark;
  --bg: #1a1016; --surface: #24161f; --surface-2: #2f1d29; --text: #f8ebf0; --muted: #cdb3bf; --dim: #a98d9a;
  --line: rgba(255,214,230,0.09); --line-2: rgba(255,214,230,0.17);
  --accent: #f48fb1; --accent-ink: #f8a6c3; --accent-soft: rgba(244,143,177,0.15); --on-accent: #2a0f1c;
  --lilac: #c9b6f5; --peach: #f7c3a6; --butter: #f1d98f; --mint: #a9dcc8;
  --tint-1: rgba(244,143,177,0.14); --tint-2: rgba(201,182,245,0.14); --tint-3: rgba(247,195,166,0.13); --tint-4: rgba(169,220,200,0.12);
  --ink-1: #f8a6c3; --ink-2: #cdbbf7; --ink-3: #f7c3a6; --ink-4: #a9dcc8;
  --glow-1: rgba(244,143,177,0.22); --glow-2: rgba(201,182,245,0.18); --glow-3: rgba(247,195,166,0.12);
  --h1-from: #fff4f8; --h1-to: #f48fb1;
  --btn-bg: #f48fb1; --btn-text: #2a0f1c; --btn-hover: #f8a6c3;
  --shadow: 0 24px 48px rgba(10,2,8,0.5); --shadow-soft: 0 12px 30px rgba(10,2,8,0.35); --ring: rgba(244,143,177,0.24);
  --dot: rgba(255,214,230,0.1); --dot-on: rgba(244,143,177,0.85); --eye: #fff7fa; --pupil: #2a0f1c; --pulse: #f48fb1; --pulse-edge: transparent;
  --scribble: #f48fb1; --top-bg: rgba(26,16,22,0.72);
  --bubble-shadow: drop-shadow(0 2px 2px rgba(10,2,8,0.5)) drop-shadow(0 12px 20px rgba(10,2,8,0.6)) drop-shadow(0 0 16px rgba(244,143,177,0.1));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* the shared score tooltip and case study reader, in this palette */
  --pop-bg: #2a1923; --pop-text: #f8ebf0; --pop-line: #46303d; --pop-soft: #3a2632; --pop-track: #46303d; --pop-muted: #c4a8b5; --pop-shadow: 0 16px 48px rgba(10,2,8,0.55);
  --xp-accent: #f48fb1; --xp-accent-ink: #f8a6c3;
  --cs-bg: #1f131b; --cs-surface: #2a1923; --cs-ink: #fbeef3; --cs-text: #e6d3db; --cs-muted: #bca1ae; --cs-line: #3b2733; --cs-accent: #f48fb1; --cs-on-accent: #2a0f1c; --cs-crit: #ff7a8a;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf1ef; --surface: #fffaf9; --surface-2: #f6e5e6; --text: #2b1821; --muted: #6c5260; --dim: #85697a;
  --line: rgba(110,40,70,0.09); --line-2: rgba(110,40,70,0.16);
  --accent: #e2668f; --accent-ink: #b0325f; --accent-soft: rgba(226,102,143,0.13); --on-accent: #ffffff;
  --tint-1: #fbe0e7; --tint-2: #ece4fb; --tint-3: #fde5d6; --tint-4: #dff2ea;
  --ink-1: #b0325f; --ink-2: #6a4fb0; --ink-3: #a65227; --ink-4: #2f7a5f;
  --glow-1: rgba(244,143,177,0.35); --glow-2: rgba(201,182,245,0.35); --glow-3: rgba(247,195,166,0.3);
  --h1-from: #3a1426; --h1-to: #d0507e;
  --btn-bg: #2b1821; --btn-text: #fff; --btn-hover: #b0325f;
  --shadow: 0 24px 48px rgba(110,40,70,0.13); --shadow-soft: 0 12px 30px rgba(110,40,70,0.1); --ring: rgba(226,102,143,0.2);
  --dot: rgba(110,40,70,0.12); --dot-on: rgba(208,80,126,0.75); --eye: #ffffff; --pupil: #2b1821; --pulse: #d0507e; --pulse-edge: rgba(176,50,95,0.4);
  --scribble: #f08cb0; --top-bg: rgba(251,241,239,0.78);
  --bubble-shadow: drop-shadow(0 1px 1px rgba(110,40,70,0.1)) drop-shadow(0 6px 10px rgba(110,40,70,0.12)) drop-shadow(0 18px 26px rgba(110,40,70,0.14));
  --pop-bg: #fffaf9; --pop-text: #2b1821; --pop-line: #efd9df; --pop-soft: #f6e5e9; --pop-track: #f3dde3; --pop-muted: #7a5f6c; --pop-shadow: 0 16px 48px rgba(110,40,70,0.16);
  --xp-accent: #e2668f; --xp-accent-ink: #b0325f;
  --cs-bg: #fffaf9; --cs-surface: #f8ebee; --cs-ink: #2b1821; --cs-text: #47323c; --cs-muted: #7a5f6c; --cs-line: #f0dde2; --cs-accent: #b0325f; --cs-on-accent: #ffffff; --cs-crit: #c62f47;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font: 400 15px/1.6 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background 0.35s, color 0.35s; }
html.intro-on { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
/* soft colour in the corners, like light through a window */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40vw 40vw at 92% -8%, var(--glow-1), transparent 70%), radial-gradient(36vw 36vw at -6% 30%, var(--glow-2), transparent 70%), radial-gradient(34vw 34vw at 70% 105%, var(--glow-3), transparent 70%); }
/* one view at a time: the start screen, or one of the four pages */
.view[hidden] { display: none !important; }
/* links that need a placeholder filled in stay hidden until then */
.no-cv [data-award="cv"], .no-li [data-award="li"], .no-cal [data-award="cal"] { display: none !important; }

/* ── Intro: the gate, then the loader ───────────────────── */
#intro { position: fixed; inset: 0; z-index: 60; overflow-y: auto; display: flex; justify-content: center; padding: 48px 16px; background: var(--bg); transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), visibility 0.8s; }
#intro.gone { opacity: 0; filter: blur(10px); visibility: hidden; pointer-events: none; }
#intro::before, #intro::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 1px 1px, var(--dot) 1.2px, transparent 1.8px) 0 0 / 24px 24px; }
#intro::after { --dot: var(--dot-on); -webkit-mask-image: radial-gradient(240px circle at var(--sx, 50%) var(--sy, -500px), #000, transparent 72%); mask-image: radial-gradient(240px circle at var(--sx, 50%) var(--sy, -500px), #000, transparent 72%); }
.intro-inner { position: relative; z-index: 2; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; }
.scan { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.6s var(--ease); }
#intro.running .scan, #intro.complete .scan { opacity: 0; }
.scan::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, var(--dot-on) 1.2px, transparent 1.8px) 0 0 / 24px 24px; -webkit-mask: linear-gradient(transparent, #000) 0 -220px / 100% 220px no-repeat; mask: linear-gradient(transparent, #000) 0 -220px / 100% 220px no-repeat; animation: scan-band 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent) 75%, transparent); box-shadow: 0 0 14px 1px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; animation: scan-line 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes scan-band { 0% { -webkit-mask-position: 0 -220px; mask-position: 0 -220px; } 55%, 100% { -webkit-mask-position: 0 100vh; mask-position: 0 100vh; } }
@keyframes scan-line { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 0.6; } 55%, 100% { transform: translateY(calc(100vh + 220px)); opacity: 0.6; } }

.ready { min-height: calc(100svh - 96px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ready[hidden] { display: none; }
.eyes { display: inline-flex; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.eye { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--eye); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; animation: lid 5s infinite; }
.eye i { position: absolute; left: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--pupil); transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform 0.25s ease-out; }
.eye i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.eye::after { content: ""; position: absolute; left: -3px; right: -3px; top: 100%; height: 80%; border-radius: 50% 50% 0 0 / 70% 70% 0 0; background: var(--surface-2); transition: transform 0.35s var(--ease); }
.eager .eyes { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 6px var(--ring), var(--shadow); }
.eager .eye::after { transform: translateY(-62%); }
.eager .eye i { transform: translate(0, -4px); }
@keyframes lid { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }
.detected { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; font: 600 13px/1 "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.detected i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--pulse-edge), 0 0 14px var(--accent); animation: beat 1.5s ease-in-out infinite; }
.detected i::before, .detected i::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 2px solid var(--pulse); animation: ripple 1.5s ease-out infinite; }
.detected i::after { animation-delay: 0.4s; }
@keyframes beat { 0%, 45%, 100% { transform: scale(1); } 14% { transform: scale(1.4); } 28% { transform: scale(1.05); } 36% { transform: scale(1.25); } }
@keyframes ripple { from { transform: scale(1); opacity: 0.85; } to { transform: scale(3); opacity: 0; } }
.ready h1 { margin-top: 16px; font: 600 clamp(48px, 8vw, 72px)/1.05 "Eczar", Georgia, serif; letter-spacing: -0.02em; }
.ready h1 em { position: relative; display: inline-block; font-style: normal; }
.scribble { position: absolute; left: -4%; bottom: -0.06em; width: 104%; height: 0.24em; overflow: visible; z-index: -1; }
.scribble path { fill: none; stroke: var(--scribble); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s 0.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 15px 28px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-weight: 500; font-size: 15.5px; text-decoration: none; transition: box-shadow 0.3s, background 0.3s, transform 0.35s var(--ease); }
.btn b { font-weight: 500; }
.btn:active { transform: scale(0.97); }
.btn:hover { background: var(--btn-hover); transform: scale(1.05); box-shadow: 0 0 0 5px var(--ring), 0 14px 36px var(--ring); }
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.skip { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.skip:hover { color: var(--text); }
.hint { position: fixed; left: 50%; bottom: 18px; z-index: 3; translate: -50% 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(8px); font: 400 11.5px/1 "Geist Mono", monospace; color: var(--muted); white-space: nowrap; }
.hint:empty { display: none; }
#intro.running, #intro.running * { cursor: pointer; }

.load { width: 100%; min-height: calc(100svh - 96px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: fade-in 0.5s var(--ease) both; }
.load[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.badge { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.spin { position: relative; width: 28px; height: 28px; transition: transform 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
.spin svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.spin-ring { animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.spin-track { stroke: var(--line-2); stroke-width: 3.5; }
.spin-arc { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 26 100; transition: stroke-dasharray 0.35s var(--ease); }
.spin-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(0); transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.25s; }
.spin-tick path { stroke: var(--on-accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s var(--ease) 0.55s; }
.win .spin { transform: scale(2.3); }
.win .spin-ring { animation-play-state: paused; }
.win .spin-arc { stroke-dasharray: 100 100; }
.win .spin-dot { transform: scale(1); }
.win .spin-tick path { stroke-dashoffset: 0; }
.badge::before, .badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.win .badge::before { animation: ring-out 1.1s var(--ease) 0.3s; }
.win .badge::after { animation: ring-out 1.1s var(--ease) 0.5s; }
@keyframes ring-out { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }
/* confetti in the four section colours */
.burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); opacity: 0; }
.burst i:nth-child(3n) { width: 3px; height: 11px; margin: -5.5px -1.5px; border-radius: 2px; background: var(--lilac); }
.burst i:nth-child(4n) { background: var(--peach); }
.burst i:nth-child(5n) { background: var(--mint); }
.win .burst i { animation: burst 1s cubic-bezier(0.15, 0.8, 0.3, 1) 0.3s; }
@keyframes burst { from { opacity: 1; transform: rotate(var(--a)) translateY(-26px); } to { opacity: 0; transform: rotate(calc(var(--a) + 40deg)) translateY(calc(-1 * var(--dist))) scale(0.4); } }
.say { display: grid; justify-items: center; min-height: 64px; margin-top: -8px; transition: margin-top 0.6s var(--ease); }
.win .say { margin-top: 26px; }
.say > * { grid-area: 1 / 1; }
.checking { position: relative; width: 100%; height: 20px; font: 400 12.5px/20px "Geist Mono", monospace; letter-spacing: 0.02em; color: var(--muted); transition: opacity 0.35s; }
.checking > span { position: absolute; left: 50%; top: 0; translate: -50% 0; white-space: nowrap; animation: line-in 0.5s var(--ease) backwards; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), filter 0.4s; }
@keyframes line-in { from { opacity: 0; translate: -50% 8px; filter: blur(3px); } }
.checking > span.out { opacity: 0; translate: -50% -8px; filter: blur(3px); }
.checking b { font-weight: 500; color: var(--text); }
.checking .ans { display: inline-block; vertical-align: top; white-space: nowrap; text-align: left; font-style: normal; transition: width 0.45s var(--ease); }
.checking .ans.searching { color: var(--muted); animation: fade-in 0.4s var(--ease); }
.checking .ans.searching::after { content: "..."; display: inline-block; width: 3ch; animation: dots 1.2s infinite; }
@keyframes dots { 0%, 24% { clip-path: inset(0 100% 0 0); } 25%, 49% { clip-path: inset(0 66% 0 0); } 50%, 74% { clip-path: inset(0 33% 0 0); } 75%, 100% { clip-path: inset(0); } }
.checking .ans.got { font-weight: 600; color: var(--accent-ink); transform-origin: left center; animation: ans-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes ans-in { from { opacity: 0; transform: scale(1.8); } }
.checking .ans .note { font-weight: 400; color: var(--muted); }
.win .checking { opacity: 0; }
.won { font: 600 clamp(32px, 4.8vw, 48px)/1.1 "Eczar", Georgia, serif; letter-spacing: -0.015em; visibility: hidden; }
.won em { font-style: normal; color: var(--accent-ink); padding-bottom: 0.06em; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 0.08em no-repeat; }
.win .won em { animation: underline 0.6s var(--ease) 0.95s forwards; }
@keyframes underline { to { background-size: 100% 0.08em; } }
.win .won { visibility: visible; animation: won-in 0.7s cubic-bezier(0.2, 1.3, 0.4, 1) 0.35s backwards; }
@keyframes won-in { from { opacity: 0; transform: translateY(14px) scale(0.92); filter: blur(8px); } }
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
#intro.iris { -webkit-mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), transparent var(--r), #000 calc(var(--r) + 1px)); mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), transparent var(--r), #000 calc(var(--r) + 1px)); transition: --r 1.1s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.8s, visibility 0.8s; }
#intro.iris.open { --r: 150vmax; }
.iris-ring { position: fixed; left: var(--cx, 50%); top: var(--cy, 50%); z-index: 5; width: calc(var(--r) * 2); height: calc(var(--r) * 2); translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent), 0 0 48px 6px color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0; pointer-events: none; }
#intro.iris .iris-ring { opacity: 1; }

/* ── Top bar ────────────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 clamp(16px, 3vw, 32px); background: var(--top-bg); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.35s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 600 11px/1 "Geist Mono", monospace; letter-spacing: 0.02em; }
.brand b { font: 600 18px/1 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav a { position: relative; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s, background 0.3s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease); }
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .fill { fill: currentColor; stroke: none; }
#theme-btn .moon, [data-theme="dark"] #theme-btn .sun { display: none; }
[data-theme="dark"] #theme-btn .moon { display: block; }
#sound-btn[aria-pressed="false"] .waves { opacity: 0.2; }
/* the lead score: it only counts. Hover it for every point added or taken away. */
.score-wrap { position: relative; }
.score { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font: 500 12.5px/1 "Geist", sans-serif; color: var(--muted); white-space: nowrap; transition: border-color 0.2s, box-shadow 0.4s; }
.score:hover, .score[aria-expanded="true"] { border-color: var(--accent-ink); }
.score-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.score strong { min-width: 30px; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 12.5px/1 "Geist", sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.score.up { animation: bump-up 0.9s var(--ease); }
.score.down { animation: bump-down 0.9s var(--ease); }
@keyframes bump-up { 30% { box-shadow: 0 0 0 5px var(--ring); transform: scale(1.06); } }
@keyframes bump-down { 30% { box-shadow: 0 0 0 5px rgba(229,72,77,0.22); } }
/* the panel under the score: the number, the stage, and the log */
.sp { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: 340px; max-height: min(560px, calc(100vh - 90px)); overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 16px; border-radius: 22px; background: var(--pop-bg); color: var(--pop-text); border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow); font-size: 13px; line-height: 1.5; text-align: left; animation: sp-in 0.3s var(--ease); }
.sp[hidden] { display: none; }
.sp::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* bridges the gap so hover holds */
@keyframes sp-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sp-label { font: 500 11px/1 "Geist Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pop-muted); }
.sp-num { margin-top: 6px; }
.sp-num b { font: 600 44px/0.9 "Eczar", Georgia, serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sp-num small { margin-left: 3px; color: var(--pop-muted); }
.sp-head > div { flex: none; }
.sp-stage { padding: 6px 11px; border-radius: 14px; background: var(--accent-soft); font-size: 12px; line-height: 1.35; text-align: right; }
.sp-stage em { font-style: normal; font-weight: 600; color: var(--xp-accent-ink); }
.sp-track { display: flex; gap: 3px; margin-top: 14px; }
.sp-track i { flex: 1; height: 6px; border-radius: 3px; background: var(--pop-track); transition: background 0.4s; }
.sp-track i.on { background: var(--xp-accent); }
.sp-what { margin-top: 12px; color: var(--pop-muted); font-size: 12.5px; }
.sp-log-head { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pop-soft); }
.sp-live { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; color: var(--xp-accent-ink); }
.sp-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--xp-accent); animation: beat 1.5s ease-in-out infinite; }
.sp-log { list-style: none; margin-top: 6px; }
.sp-log li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--pop-soft); }
.sp-log li:last-child { border-bottom: 0; }
.sp-log b { font: 600 12.5px/1 "Geist Mono", monospace; font-variant-numeric: tabular-nums; }
.sp-log .plus b { color: var(--xp-accent-ink); }
.sp-log .minus b { color: #e5484d; }
.sp-log time { font: 400 11px/1 "Geist Mono", monospace; color: var(--pop-muted); }
.sp-log .empty { display: block; color: var(--pop-muted); }
.sp-rules { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pop-soft); }
.sp-rules summary { cursor: pointer; font-weight: 500; color: var(--pop-text); }
.sp-rules ul { list-style: none; margin-top: 8px; }
.sp-rules li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--pop-muted); }
.sp-rules b { font: 600 12px/1.5 "Geist Mono", monospace; color: var(--xp-accent-ink); }
.sp-note { margin-top: 10px; font-size: 12px; color: var(--pop-muted); }
/* each change pops up under the score, floats for a moment, then fades away.
   It sits above the case study reader, so opening a case study shows its points. */
.toasts { position: fixed; top: 76px; right: clamp(16px, 3vw, 32px); z-index: 130; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.cs-open .toasts { top: 68px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 250px; max-width: min(360px, calc(100vw - 32px)); padding: 10px 18px 10px 10px; border-radius: 20px; background: var(--pop-bg); border: 1px solid var(--pop-line); box-shadow: var(--pop-shadow), 0 0 0 4px var(--ring); color: var(--pop-text); animation: toast-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1), toast-float 2.6s ease-in-out 0.6s infinite; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s; }
.toast b { flex: none; min-width: 46px; height: 46px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: var(--on-accent); font: 600 16px/1 "Geist Mono", monospace; }
.toast span { min-width: 0; }
.toast strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast small { display: block; margin-top: 2px; font: 400 11.5px/1.3 "Geist Mono", monospace; color: var(--pop-muted); }
.toast.minus b { background: #e5484d; color: #fff; }
.toast.stage b { background: var(--lilac); color: #2a1740; }
.toast.out { animation: none; opacity: 0; transform: translateY(-14px) scale(0.96); filter: blur(2px); }
@keyframes toast-in { from { opacity: 0; transform: translate(20px, -10px) scale(0.85); } }
@keyframes toast-float { 50% { transform: translateY(-4px); } }

/* ── Hello: greeting, photo, and the four boxes ─────────── */
#page { opacity: 0; transition: opacity 0.9s var(--ease); }
#page.on { opacity: 1; }
/* the start screen fills the window exactly; the boxes take whatever height is left */
.home { min-height: 100svh; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; padding: calc(64px + clamp(16px, 5vh, 56px)) clamp(20px, 5vw, 56px) clamp(18px, 4vh, 40px); }
[data-view="home"] .nav { visibility: hidden; }
.hello-grid { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 32px clamp(48px, calc(11vw - 20px), 180px); align-items: end; }
.eyebrow { font: 400 12.5px/1.4 "Geist Mono", monospace; letter-spacing: 0.03em; }
.eyebrow b { font-weight: 500; color: var(--accent-ink); padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); }
.home h1 { margin-top: 18px; font: 600 clamp(52px, 7vw, 92px)/1.02 "Eczar", Georgia, serif; letter-spacing: -0.025em; }
.home h1 .hi { display: block; padding-bottom: 0.06em; background: linear-gradient(120deg, var(--h1-from) 35%, var(--h1-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home h1 .what { display: block; max-width: 30ch; margin-top: 12px; font: 400 clamp(18px, 1.7vw, 22px)/1.4 "Geist", sans-serif; letter-spacing: -0.02em; color: var(--muted); text-wrap: balance; }

.portrait { position: relative; width: clamp(140px, 12vw, 176px); margin: 0 6px 6px 0; }
.portrait[hidden] { display: none; }
.frame { position: relative; aspect-ratio: 4 / 5; padding: 8px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: rotate(2deg); transition: transform 0.6s var(--ease); }
.portrait:hover .frame { transform: rotate(0deg) translateY(-3px); }
.shot { position: relative; height: 100%; border-radius: 21px; overflow: hidden; background: var(--surface-2); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#photo-full { opacity: 0; transition: opacity 0.6s var(--ease); }
.portrait:hover #photo-full { opacity: 1; }
.callout { position: absolute; left: calc(100% - 52px); top: 24px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 12px 22px 12px 18px; border-radius: 22px; cursor: pointer; background: var(--surface); border: 1px solid var(--line-2); filter: var(--bubble-shadow); font-size: 13px; font-weight: 500; white-space: nowrap; transform: rotate(-3deg); transform-origin: 0 100%; transition: transform 0.5s var(--ease); animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -5px; } }
.callout::before, .callout::after { content: ""; position: absolute; top: 100%; left: 24px; width: 14px; height: 13px; clip-path: polygon(0 0, 100% 0, 8% 100%); }
.callout::before { left: 23px; width: 16px; height: 15px; background: var(--line-2); }
.callout::after { top: calc(100% - 1px); background: var(--surface); }
.callout i { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent); animation: beat 1.5s ease-in-out infinite; }
.callout i::before, .callout i::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--pulse); animation: ripple-sm 1.5s ease-out infinite; }
.callout i::after { animation-delay: 0.4s; }
@keyframes ripple-sm { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.3); opacity: 0; } }
.portrait:hover .callout { transform: rotate(0deg) translateY(-4px); }
.callout-top { display: inline-flex; align-items: center; gap: 12px; }
.callout-env { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: 0.5; transition: opacity 0.3s; }
/* hover, focus or tap: the email and a copy button slide out under the line */
.callout-mail { display: flex; align-items: center; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.3s, margin-top 0.45s var(--ease); }
.callout:hover .callout-mail, .callout:focus-within .callout-mail, .callout.open .callout-mail { max-height: 44px; margin-top: 9px; opacity: 1; }
.callout:hover .callout-env, .callout:focus-within .callout-env, .callout.open .callout-env { opacity: 0; }
.mail-link { font-size: 13px; font-weight: 500; color: var(--accent-ink); text-decoration: none; }
.mail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the copy button: two overlapping squares, a tick once copied */
.copy-btn svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn .ico-done, .copy-btn.copied .ico-copy { display: none; }
.copy-btn.copied .ico-done { display: block; }
.icon-copy { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s; }
.icon-copy:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.icon-copy:active { transform: scale(0.92); }
.icon-copy.copied { color: var(--accent-ink); border-color: var(--accent-ink); background: var(--accent-soft); }
/* phones have no photo: the same line sits under the greeting */
.m-contact { display: none; }

/* the four sections as soft boxes: a zigzag of one small and one wide per row */
.tiles { flex: 1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 14px; margin-top: clamp(24px, 5vh, 56px); max-height: 470px; }
.tiles li:nth-child(2), .tiles li:nth-child(3) { grid-column: span 2; }
.tile { position: relative; height: 100%; display: flex; flex-direction: column; padding: 22px 24px 22px; border-radius: 26px; background: var(--tint); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; opacity: 0; transform: translateY(16px); transition: transform 0.5s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.on .tile { animation: tile-in 0.8s var(--ease) forwards; }
.on .tiles li:nth-child(2) .tile { animation-delay: 0.07s; } .on .tiles li:nth-child(3) .tile { animation-delay: 0.14s; } .on .tiles li:nth-child(4) .tile { animation-delay: 0.21s; }
@keyframes tile-in { to { opacity: 1; transform: none; } }
.tile:hover, .tile:focus-visible { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.tile-n { font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.tile-t { margin-top: auto; padding-top: 24px; font: 600 clamp(26px, 2.8vw, 38px)/1.05 "Eczar", Georgia, serif; letter-spacing: -0.015em; }
.tile-p { margin-top: 8px; max-width: 42ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tile-go { position: absolute; right: 20px; bottom: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 17px; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.tile:hover .tile-go, .tile:focus-visible .tile-go { transform: translateX(3px) scale(1.08); background: var(--ink); color: var(--bg); }
.tile-p { padding-right: 44px; }
/* a small picture of what's inside, top right of each box */
.tile-art { position: absolute; top: 18px; right: 20px; display: flex; align-items: center; gap: 6px; transition: transform 0.5s var(--ease); }
.tile:hover .tile-art { transform: translateY(-3px) scale(1.04); }
.art-face { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface); box-shadow: var(--shadow-soft); background: var(--surface-2); }
.art-face img { width: 100%; height: 100%; object-fit: cover; }
.art-chip { padding: 5px 10px; border-radius: 999px; background: var(--surface); font: 500 11px/1 "Geist Mono", monospace; color: var(--ink); white-space: nowrap; }
.art-big { font: 600 54px/0.9 "Eczar", Georgia, serif; color: var(--ink); letter-spacing: -0.03em; }
.art-stack { position: relative; width: 74px; height: 50px; }
.art-stack i { position: absolute; width: 56px; height: 40px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 4px 10px rgba(0,0,0,0.06); transition: transform 0.5s var(--ease); }
.art-stack i:nth-child(1) { left: 0; top: 8px; transform: rotate(-8deg); }
.art-stack i:nth-child(2) { left: 9px; top: 4px; transform: rotate(-1deg); }
.art-stack i:nth-child(3) { left: 18px; top: 0; transform: rotate(7deg); background: linear-gradient(var(--ink), var(--ink)) 8px 9px / 26px 4px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 8px 18px / 38px 3px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 8px 25px / 30px 3px no-repeat, var(--surface); }
.tile:hover .art-stack i:nth-child(1) { transform: rotate(-14deg) translateX(-4px); }
.tile:hover .art-stack i:nth-child(3) { transform: rotate(12deg) translateX(4px); }
.art-pen { font-size: 26px; line-height: 1; color: var(--ink); transform: rotate(-12deg); transition: transform 0.5s var(--ease); }
.tile:hover .art-pen { transform: rotate(4deg) translateY(-2px); }

/* ── Sections: one centred column, nothing at the sides ─── */
.sec { max-width: 760px; margin: 0 auto; padding: calc(64px + clamp(20px, 4vh, 40px)) clamp(20px, 5vw, 32px) 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(18px, 3vh, 28px); padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.back:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.back span, .home-link span { transition: transform 0.3s var(--ease); }
.back:hover span, .home-link:hover span { transform: translateX(-3px); }
/* the end of each page: where next */
.onward { margin-top: clamp(56px, 9vh, 88px); padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.onward-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; text-align: left; }
.next { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 18px 20px; border-radius: 22px; background: var(--tint); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.next small { font: 500 11px/1.3 "Geist Mono", monospace; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.next strong { margin-top: auto; padding-right: 30px; font: 600 20px/1.2 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
.next span { position: absolute; right: 16px; bottom: 16px; color: var(--ink); font-size: 17px; transition: transform 0.35s var(--ease); }
.next:hover, .next:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.next:hover span { transform: translateX(3px); }
.next.first { background: var(--ink); border-color: var(--ink); }
.next.first small { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.next.first strong, .next.first span { color: var(--bg); }
.home-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.home-link:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.sec-wide { max-width: 1000px; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-n { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.sec-head h2 { margin: 16px auto 0; max-width: 23ch; font: 600 clamp(34px, 4.4vw, 52px)/1.08 "Eczar", Georgia, serif; letter-spacing: -0.02em; text-wrap: balance; }
.sec-head p { margin: 14px auto 0; max-width: 54ch; font-size: 16.5px; color: var(--muted); text-wrap: balance; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.label { font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.para { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.para + .para { margin-top: 18px; }
.card { padding: clamp(22px, 3.5vw, 32px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.block { margin-top: 28px; }

/* About me */
.me { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 32px; }
.me-face { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-soft); background: var(--surface-2); }
.me-face img { width: 100%; height: 100%; object-fit: cover; }
.me-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.me-facts span { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.me-facts b { font-weight: 500; color: var(--text); margin-right: 6px; }
.me-facts a { color: var(--accent-ink); text-decoration: none; }
.fact-mail { display: inline-flex; align-items: center; gap: 6px; }
.fact-copy { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 500; color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.fact-copy:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.fact-copy.copied, .pill-btn.copied { background: var(--accent-soft); border-color: var(--accent-ink); color: var(--accent-ink); }
.talks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 14px; }
.talks li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.talks small { font: 500 11px/1.3 "Geist Mono", monospace; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.talks strong { font: 600 16px/1.3 "Eczar", Georgia, serif; }
.talks span { font-size: 13px; color: var(--muted); }
.beyond-label { margin-top: 24px; }
.beyond { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.beyond div { padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.beyond strong { display: block; font: 600 16px/1.3 "Eczar", Georgia, serif; }
.beyond span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats div { padding: 20px 18px; border-radius: 22px; background: var(--tint); text-align: center; }
.stats b { display: block; font: 600 clamp(30px, 3.4vw, 40px)/1 "Eczar", Georgia, serif; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.how { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 16px; }
.how li { display: flex; align-items: baseline; gap: 12px; padding: 13px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; }
.how i { font: normal 500 11.5px/1 "Geist Mono", monospace; color: var(--accent-ink); }
.closing { margin-top: 22px; text-align: center; font: 500 clamp(20px, 2.2vw, 24px)/1.35 "Eczar", Georgia, serif; text-wrap: balance; }
.closing em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }

/* Case studies */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.25s, border-color 0.2s; }
.filters button:hover { color: var(--text); border-color: var(--accent-ink); }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filters small { margin-left: 6px; font: 400 11px/1 "Geist Mono", monospace; opacity: 0.7; }
.cases { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cases li[hidden] { display: none; }
.case { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform 0.45s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.case:hover, .case:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: 0.03em; color: var(--dim); }
.case-top span { padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); white-space: nowrap; }
.case-t { font: 600 21px/1.25 "Eczar", Georgia, serif; letter-spacing: -0.01em; text-wrap: balance; }
.case-fig { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.case-fig b { flex: none; font: 600 24px/1 "Eczar", Georgia, serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.case-go { color: var(--ink); font-size: 13px; font-weight: 500; transition: transform 0.35s var(--ease); }
.case:hover .case-go { transform: translateX(3px); }
.sources { margin: 26px auto 0; max-width: 70ch; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--dim); }

/* Resume & contact */
.cv-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform 0.3s var(--ease), border-color 0.2s, background 0.25s, color 0.25s; }
.pill-btn:hover { transform: translateY(-2px); border-color: var(--accent-ink); color: var(--accent-ink); }
.pill-btn.dark { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.pill-btn.dark:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-text); }
.timeline { list-style: none; margin-top: 14px; }
.timeline li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; padding: 16px 0 16px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { font: 400 12.5px/1.6 "Geist Mono", monospace; color: var(--dim); }
.timeline strong { display: block; font: 600 18px/1.3 "Eczar", Georgia, serif; }
.timeline em { display: block; margin-top: 2px; font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.timeline span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.cv-hint { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--dim); }
.quotes-label { text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 22px 22px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.quote blockquote { position: relative; margin: 0; padding-top: 22px; font-size: 14.5px; line-height: 1.65; }
.quote blockquote::before { content: "“"; position: absolute; left: -2px; top: -14px; font: 600 54px/1 "Eczar", Georgia, serif; color: var(--accent); }
.quote figcaption { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.quote figcaption strong { display: block; font: 600 15px/1.3 "Eczar", Georgia, serif; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 7px 13px; border-radius: 999px; background: var(--tint); font-size: 13px; color: var(--ink); }
.certs { margin-top: 14px; font-size: 14px; color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.figures div { padding: 18px; background: var(--surface); }
.figures b { display: block; font: 600 26px/1.05 "Eczar", Georgia, serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.contact { margin-top: 28px; padding: clamp(26px, 4vw, 40px); border-radius: 30px; background: linear-gradient(135deg, var(--tint-1), var(--tint-2)); border: 1px solid var(--line); text-align: center; }
.contact h3 { margin: 0 auto; max-width: 22ch; font: 600 clamp(26px, 3vw, 34px)/1.15 "Eczar", Georgia, serif; letter-spacing: -0.015em; text-wrap: balance; }
.contact > p { margin: 12px auto 0; max-width: 52ch; color: var(--muted); }
.form { display: grid; gap: 12px; max-width: 520px; margin: 24px auto 0; text-align: left; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 400; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px var(--ring); }
.field .hint-txt { font-weight: 400; font-size: 12px; color: var(--dim); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .pill-btn { justify-self: center; margin-top: 4px; }
.form-msg { min-height: 1.4em; text-align: center; font-size: 14px; color: var(--accent-ink); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Stories */
.stories { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stories li[hidden] { display: none; }
.story { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.4s; }
a.story:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.story-k { display: flex; gap: 10px; align-items: center; font: 500 11.5px/1 "Geist Mono", monospace; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.story-k span { padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.story-t { font: 600 22px/1.25 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
.story-p { font-size: 14.5px; color: var(--muted); }
.story:hover, .story:focus-visible { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.story-t { text-wrap: balance; }
.story-p { font-size: 14px; line-height: 1.55; }
/* one story: a narrow column made for reading */
.story-page { max-width: 720px; }
.read-head { text-align: center; margin-bottom: 36px; }
.read-head h2 { margin: 16px auto 0; max-width: 22ch; font: 600 clamp(32px, 4.4vw, 50px)/1.1 "Eczar", Georgia, serif; letter-spacing: -0.02em; text-wrap: balance; }
.read-head p { margin-top: 12px; font: 400 12.5px/1 "Geist Mono", monospace; letter-spacing: 0.03em; color: var(--dim); }
.read-body { font-size: 17.5px; line-height: 1.8; }
.read-body p { white-space: pre-line; }
.read-body p + p, .read-body * + p { margin-top: 1.1em; }
.read-body h3 { margin: 1.8em 0 0.5em; font: 600 24px/1.3 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
.read-body ul, .read-body ol { margin: 1em 0 0; padding-left: 1.3em; }
.read-body li + li { margin-top: 0.4em; }
.read-body li::marker { color: var(--accent-ink); }
.read-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font: 500 21px/1.5 "Eczar", Georgia, serif; }
.read-body figure { margin: 1.6em 0; text-align: center; }
.read-body img { max-width: 100%; max-height: 620px; border-radius: 18px; box-shadow: var(--shadow-soft); }
.onward-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onward-row.two .next strong { font-size: 17px; }

/* Footer */
.foot { margin-top: clamp(40px, 6vh, 64px); padding: 22px 0 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.foot a, .foot button { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.foot a:hover, .foot button:hover { color: var(--accent-ink); text-decoration-color: currentColor; }

/* ── Smaller screens ────────────────────────────────────── */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .tiles li:nth-child(2), .tiles li:nth-child(3) { grid-column: auto; }
  .nav a { padding: 7px 11px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-right { margin-left: auto; }
}
@media (max-width: 760px) {
  .top { height: 58px; gap: 10px; }
  .brand b { display: none; }
  #sound-btn { display: none; }
  .toasts { top: 66px; right: 12px; }
  .toast { min-width: 0; }
  .m-contact { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 6px 8px 6px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
  .m-contact-top { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; }
  .m-contact-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .m-contact-mail { display: flex; align-items: center; gap: 8px; }
  .m-contact .icon-copy { width: 26px; height: 26px; border-radius: 8px; }
  .sp { position: fixed; top: 66px; left: 12px; right: 12px; width: auto; max-height: calc(100svh - 80px); }
  .home { padding: 78px 16px 16px; }
  .hello-grid { grid-template-columns: 1fr; }
  .home h1 { margin-top: 12px; font-size: min(11vw, 48px); }
  .home h1 .what { margin-top: 8px; font-size: 16.5px; }
  .portrait { display: none; }
  /* the four boxes as a 2 × 2 grid that fills the rest of the screen */
  .tiles { grid-template-rows: repeat(2, minmax(128px, 1fr)); gap: 10px; margin-top: 20px; }
  .tile { padding: 16px; border-radius: 20px; }
  .tile-n { padding-right: 34px; font-size: 10px; letter-spacing: 0.04em; line-height: 1.3; }
  /* the little picture sits under the label; the arrow moves to the top corner */
  .tile-art { position: static; flex-wrap: wrap; margin-top: 14px; }
  .tile:hover .tile-art { transform: none; }
  .art-face { width: 40px; height: 40px; }
  .art-big { font-size: 40px; }
  .art-stack { width: 64px; height: 44px; }
  .art-stack i { width: 48px; height: 34px; }
  .tile-t { padding-top: 14px; font-size: 22px; }
  .tile-p { display: none; }
  .tile-go { top: 12px; right: 12px; bottom: auto; width: 30px; height: 30px; font-size: 14px; }
  .sec { padding-top: 78px; }
  .onward-row, .onward-row.two { grid-template-columns: 1fr; }
  .talks, .beyond, .quotes, .stories { grid-template-columns: 1fr; }
  .read-body { font-size: 16.5px; }
  .next { min-height: 0; }
  .stats { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; }
}
/* shorter phones: the boxes drop their little pictures so the start still fits one screen */
@media (max-width: 760px) and (max-height: 760px) {
  .tile-art { display: none; }
}
/* taller phones have room for each box's one-line description */
@media (max-width: 760px) and (min-height: 880px) {
  .tile-p { display: block; padding-right: 0; font-size: 12.5px; line-height: 1.45; }
}
/* short laptop screens: tighter spacing so the start still fits one screen */
@media (min-width: 761px) and (max-height: 760px) {
  .home { padding-top: calc(64px + 14px); padding-bottom: 16px; }
  .home h1 { margin-top: 12px; font-size: clamp(48px, 6vw, 76px); }
  .tiles { margin-top: 20px; }
  .tile { padding: 18px 22px; }
  .tile-t { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .tile, .reveal { opacity: 1; transform: none; }
  .scan { display: none; }
  .callout, .callout i, .callout i::before, .callout i::after { animation: none; }
}

/* ── The print-ready resume: hidden on screen; the only thing that prints ── */
.print-cv { display: none; }
@media print {
  @page { size: A4; margin: 16mm 16mm 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body::before, body > *:not(.print-cv) { display: none !important; }
  .print-cv { display: block; font: 400 10.5pt/1.5 "Geist", system-ui, sans-serif; color: #111; }
  .print-cv h1 { font: 600 26pt/1.1 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
  .print-cv header p { margin-top: 3pt; color: #444; }
  .print-cv h2 { margin: 14pt 0 6pt; padding-bottom: 3pt; border-bottom: 1px solid #ddd; font: 600 12.5pt/1.2 "Eczar", Georgia, serif; color: #8a2350; }
  .print-cv p + p { margin-top: 5pt; }
  .pc-row { display: flex; justify-content: space-between; gap: 16pt; padding: 4pt 0; break-inside: avoid; }
  .pc-row p { margin-top: 1pt; color: #333; }
  .pc-row time { flex: none; font: 400 9.5pt/1.5 "Geist Mono", monospace; color: #555; }
  .print-cv ul { padding-left: 14pt; columns: 2; column-gap: 18pt; }
  .print-cv li { break-inside: avoid; margin-bottom: 3pt; }
  .print-cv footer { margin-top: 16pt; font-size: 9pt; color: #777; }
}

/* ── Meet Lola, redesigned (Nov 2026) ─────────────────────── */
/* photo beside the headline, with the four tabs under it */
.ml-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: center; margin-bottom: 34px; }
.ml-photo { width: clamp(150px, 17vw, 190px); }
.ml-photo .frame { transform: rotate(-2deg); }
.ml-photo:hover .frame { transform: rotate(0deg) translateY(-3px); }
.ml-intro h2 { margin-top: 14px; font: 600 clamp(30px, 3.8vw, 46px)/1.1 "Eczar", Georgia, serif; letter-spacing: -0.02em; text-wrap: balance; }
.ml-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ml-tabs li > a, .ml-tabs li:not(:has(a)) { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.ml-tabs svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ml-tabs a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.ml-ext { font-size: 11px; color: var(--dim); }
.ml-lead { font-size: 18px; line-height: 1.7; }
/* what I bring: three soft cards */
.ml-label { margin-bottom: 14px; }
.ml-bring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ml-bring div { padding: 20px; border-radius: 22px; background: var(--tint); }
.ml-bring strong { display: block; font: 600 18px/1.25 "Eczar", Georgia, serif; color: var(--ink); }
.ml-bring p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.how li span strong { font-weight: 600; }
/* speaking & teaching: a highlight, then one row per talk */
.ml-h { margin-top: 12px; font: 600 clamp(24px, 2.6vw, 30px)/1.2 "Eczar", Georgia, serif; letter-spacing: -0.015em; }
.ml-sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.ml-now { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, var(--tint-1), var(--tint-2)); }
.ml-now-k { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font: 500 10.5px/1 "Geist Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.ml-now strong { display: block; font: 600 18px/1.3 "Eczar", Georgia, serif; }
.ml-now small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.ml-talks { list-style: none; margin-top: 14px; }
.ml-talks li { border-bottom: 1px solid var(--line); }
.ml-talks summary { list-style: none; display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 14px; align-items: baseline; padding: 13px 2px; cursor: pointer; }
.ml-talks summary::-webkit-details-marker { display: none; }
.ml-kind { font: 500 10.5px/1.4 "Geist Mono", monospace; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.ml-t strong { font: 600 15.5px/1.35 "Eczar", Georgia, serif; }
.ml-t small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.ml-plus { justify-self: end; font-size: 18px; line-height: 1; color: var(--dim); transition: transform 0.3s var(--ease), color 0.2s; }
.ml-talks summary:hover .ml-plus, .ml-talks details[open] .ml-plus { color: var(--ink); }
.ml-talks details[open] .ml-plus { transform: rotate(45deg); }
.ml-talks details p { padding: 0 32px 14px 166px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.ml-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.ml-award { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.ml-award svg { flex: none; width: 16px; height: 16px; fill: var(--accent-soft); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.ml-also { margin-top: 14px; font-size: 13px; color: var(--dim); }
@media (max-width: 760px) {
  .ml-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ml-photo { width: 140px; }
  .ml-tabs { justify-content: center; }
  .ml-bring { grid-template-columns: 1fr; }
  .ml-now { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ml-talks summary { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 12px; }
  .ml-kind { grid-column: 1 / -1; }
  .ml-talks details p { padding: 0 2px 14px; }
  .ml-foot { flex-direction: column; align-items: flex-start; }
}

/* ── Work with me, Nov 2026 copy: each role's key results, the third quote, privacy line ── */
.timeline .pts { display: grid; gap: 5px; margin-top: 8px; padding-left: 1.1em; list-style: disc; }
.timeline .pts li { display: list-item; padding: 0; border-top: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.timeline .pts li::marker { color: var(--accent-ink); }
.quotes .quote:nth-child(3):last-child { grid-column: 1 / -1; }
.certs b { font-weight: 600; color: var(--text); }
.certs + .certs { margin-top: 6px; }
.privacy { text-align: center; font-size: 12.5px; color: var(--dim); }

/* Work with me, round 2: action tiles at the top */
.cv-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.cv-act { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-align: left; text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.2s, box-shadow 0.35s; }
.cv-act:hover, .cv-act:focus-visible { transform: translateY(-3px); border-color: var(--accent-ink); box-shadow: var(--shadow-soft); }
.cv-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--tint); color: var(--ink); }
.cv-ico svg, .cv-act.copy-btn .cv-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cv-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-txt b { font-size: 14px; font-weight: 600; }
.cv-txt small { font-size: 12px; color: var(--muted); }
.cv-act.main { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.cv-act.main .cv-ico { background: color-mix(in srgb, var(--btn-text) 16%, transparent); color: var(--btn-text); }
.cv-act.main small { color: color-mix(in srgb, var(--btn-text) 72%, transparent); }
.cv-act.main:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.cv-act.copied { border-color: var(--accent-ink); background: var(--accent-soft); }
/* Kind words: a stack of cards, the top one square, the rest fanned behind */
.deck { margin-top: 14px; }
.deck-stack { position: relative; max-width: 620px; margin: 0 auto; transition: height 0.4s var(--ease); }
.deck-card { position: absolute; inset: 0 0 auto 0; margin: 0; background: var(--surface); box-shadow: var(--shadow-soft); transform-origin: 50% 100%; transition: transform 0.5s var(--ease), opacity 0.35s, box-shadow 0.4s; }
.deck-card[data-pos="0"] { cursor: pointer; }
.deck-card[data-pos="0"]:hover { box-shadow: var(--shadow); }
.deck-card[data-pos="1"] { transform: translate(10px, 12px) rotate(2.5deg) scale(0.97); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.deck-card[data-pos="2"] { transform: translate(-10px, 22px) rotate(-3deg) scale(0.94); background: color-mix(in srgb, var(--tint) 80%, var(--surface)); }
.deck-card:not([data-pos="0"]) blockquote, .deck-card:not([data-pos="0"]) figcaption { opacity: 0; }
.deck-card blockquote, .deck-card figcaption { transition: opacity 0.3s; }
.deck-card.leaving { transform: translate(-115%, 20px) rotate(-10deg) !important; opacity: 0; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.deck-nav button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 16px; transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease); }
.deck-nav button:hover { color: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.deck-count { min-width: 44px; text-align: center; font: 500 12px/1 "Geist Mono", monospace; color: var(--dim); }
/* Toolkit: tools by job, then expertise in one line */
.tool-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-top: 14px; }
.tool-g { font-size: 13px; font-weight: 600; }
.tool-groups .chips { margin-top: 8px; gap: 6px; }
.tool-groups .chips span { padding: 5px 11px; font-size: 12.5px; }
.tool-exp { margin-top: 24px; }
.expertise { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.expertise i { margin: 0 8px; font-style: normal; color: var(--accent-ink); }
.tool-exp + .expertise + .certs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .cv-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-act { padding: 12px; gap: 10px; }
  .cv-txt small { display: none; }
  .tool-groups { grid-template-columns: 1fr; }
  .deck-card[data-pos="1"] { transform: translate(6px, 10px) rotate(2deg) scale(0.97); }
  .deck-card[data-pos="2"] { transform: translate(-6px, 18px) rotate(-2.5deg) scale(0.94); }
}
/* the tiles stand up: icon on top, then the label */
.cv-act { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
.cv-txt b { white-space: nowrap; }
@media (max-width: 760px) { .cv-act { gap: 10px; padding: 14px; } .cv-txt small { display: block; } }
/* the contact block: a live "open to opportunities" badge above the heading */
.open-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.open-badge i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent); animation: beat 1.5s ease-in-out infinite; }
.open-badge i::before, .open-badge i::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--pulse); animation: ripple-sm 1.5s ease-out infinite; }
.open-badge i::after { animation-delay: 0.4s; }
/* under the form: one quiet line instead of more buttons */
.contact-alt { margin-top: 16px; font-size: 14px; color: var(--muted); }
.contact-alt a { color: var(--accent-ink); font-weight: 500; text-underline-offset: 3px; }
.contact-alt a:hover { text-decoration-thickness: 2px; }
/* the start screen: the line under the greeting runs across towards the photo, on two lines */
.home h1 .what { max-width: min(46ch, 100vw - 530px); }
@media (max-width: 760px) { .home h1 .what { max-width: none; } }
/* "the receipts" on the start screen: a link to My receipts */
.what-link { color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.what-link:hover { text-decoration-color: currentColor; }

/* Email hidden everywhere (Nov 2026): the start screen's two links under the boxes */
.home-foot { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--dim); }
.home-foot button { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: color 0.2s, text-decoration-color 0.2s; }
.home-foot button:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.home-foot .copy-btn.copied { color: var(--accent-ink); }
/* under the form: copy the email instead of opening a mail app */
.contact-copy { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.contact-copy:hover { text-decoration-color: currentColor; }
/* the top of Work with me: three tiles now (CV, copy email, LinkedIn) */
.cv-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .cv-acts { grid-template-columns: 1fr; }
  .cv-act { flex-direction: row; align-items: center; }
  .home-foot { margin-top: 10px; }
}

/* Meet Lola: three faded rubber stamps behind the header (Global Talent, HubSpot certified, Top 3%) */
.ml-hero { position: relative; }
.ml-hero > :not(.ml-stamps) { position: relative; z-index: 1; }
.ml-stamps { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stamp { position: absolute; color: var(--ink); opacity: 0.17; }
[data-theme="dark"] .stamp { opacity: 0.2; }
.stamp .s-line { fill: none; stroke: currentColor; stroke-width: 2; }
.stamp .s-thick { stroke-width: 4.5; }
.stamp .s-dash { stroke-width: 1.6; stroke-dasharray: 2.5 5; }
.stamp .s-ring { fill: currentColor; font: 700 12px "Geist Mono", monospace; letter-spacing: 0.06em; }
.stamp .s-big { fill: currentColor; font: 700 21px "Eczar", Georgia, serif; letter-spacing: 0.04em; text-anchor: middle; }
.stamp .s-sub { fill: currentColor; font: 600 9.5px "Geist Mono", monospace; letter-spacing: 0.22em; text-anchor: middle; }
.stamp .s-ico path, .stamp .s-ico circle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-gt { width: 190px; top: -64px; right: -128px; transform: rotate(14deg); }
.st-hs { width: 158px; bottom: -86px; left: -138px; transform: rotate(-13deg); }
.st-tt { width: 146px; bottom: -104px; right: 2%; transform: rotate(-7deg); }
@media (max-width: 760px) {
  .st-gt { width: 118px; top: -36px; right: -34px; }
  .st-hs { width: 100px; top: 18px; bottom: auto; left: -30px; }
  .st-tt { width: 96px; bottom: -40px; right: -24px; }
}

/* Meet Lola, Lola's copy (Nov 2026) */
/* At a glance: the three boxes, sized for words as well as numbers */
.ml-glance b { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; }
/* What I bring: stacked full-width cards for the longer copy */
.ml-bring { grid-template-columns: 1fr; gap: 12px; }
.ml-bring div { padding: 22px 24px; }
.ml-bring strong { font-size: 20px; }
.ml-bring p { margin-top: 10px; font-size: 15px; line-height: 1.65; }
.ml-bring p + p { margin-top: 8px; }
/* speaking: two short intro lines, the highlight with its description */
.ml-sub + .ml-sub { margin-top: 4px; }
.ml-now p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ml-also { margin-top: 18px; font-size: 14px; color: var(--muted); }
.ml-foot { margin-top: 16px; justify-content: center; }
/* the page's own "Where next?" */
.onward-h { font: 600 clamp(22px, 2.4vw, 28px)/1.2 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
.next.has-d strong { margin-top: 10px; }
.next-d { display: block; padding-right: 26px; font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); }
.next.first .next-d { color: color-mix(in srgb, var(--bg) 82%, transparent); }

/* Copy pass (Nov 2026) */
.home h1 .what-2 { display: block; margin-top: 6px; }
.sec-head p + p { margin-top: 10px; }
.foot-replay button { margin-left: 4px; }
/* My receipts: the closing card, and the reader's "Back to my receipts" */
.cases-end { margin-top: 32px; padding: clamp(24px, 4vw, 36px); border-radius: 26px; background: linear-gradient(135deg, var(--tint-1), var(--tint-2)); border: 1px solid var(--line); text-align: center; }
.cases-end h3 { font: 600 clamp(22px, 2.6vw, 28px)/1.2 "Eczar", Georgia, serif; letter-spacing: -0.01em; }
.cases-end p { margin: 8px auto 18px; max-width: 46ch; color: var(--muted); }
.cs-crumb .cs-back { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.cs-crumb .cs-back:hover { color: var(--cs-accent); }
/* Work with me: tiles are just a label now */
.cv-act { justify-content: center; }
.cv-txt b { font-size: 14.5px; }
/* the end of a story */
.onward-sub { margin-top: 6px; color: var(--muted); }
.onward-row.one { grid-template-columns: minmax(0, 440px); justify-content: center; }
/* "Let's talk" scrolls here: leave room for the top bar */
#contact { scroll-margin-top: 84px; }
/* Work with me: two tiles now (LinkedIn, copy email) */
.cv-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-left: auto; margin-right: auto; }
/* start screen: the sign-off line, smaller and lighter than the line above */
.home h1 .what-2 { margin-top: 8px; font-size: 0.8em; color: var(--dim); }

/* ── Phone pass (Nov 2026) ─────────────────────────────── */
/* Work with me: more room between "Currently open to opportunities" and the heading */
.open-badge { margin-bottom: 22px; }
@media (max-width: 760px) {
  /* start screen: a bolder greeting and line */
  .home h1 { font-size: min(13vw, 54px); font-weight: 700; }
  .home h1 .what { font-size: 17.5px; font-weight: 500; line-height: 1.5; color: var(--text); }
  .home h1 .what-2 { font-weight: 500; color: var(--muted); }
  /* "Open to opportunities" on its own, with Copy my email as a separate button beside it */
  .m-contact { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; border-radius: 0; background: none; }
  .m-contact-top { padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
  .m-contact .fact-copy { margin: 0; padding: 8px 14px; font-size: 12.5px; background: var(--surface); }
  /* the four boxes: one per row */
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .tile { min-height: 136px; }
  .tile-p { display: block; padding-right: 0; font-size: 13px; line-height: 1.45; }
  /* Work with me: the two buttons one after the other */
  .cv-acts { grid-template-columns: 1fr; max-width: none; }
  .cv-act { flex-direction: row; align-items: center; justify-content: flex-start; }
  .open-badge { margin-bottom: 26px; }
}
/* the badge sits on its own line so the space under it applies */
.open-badge { display: flex; width: fit-content; margin: 0 auto 22px; }
@media (max-width: 760px) { .open-badge { margin-bottom: 24px; } }
/* (more specific than ".contact > p", which otherwise zeroes the space) */
.contact > .open-badge { margin: 0 auto 22px; }
@media (max-width: 760px) { .contact > .open-badge { margin-bottom: 24px; } }

/* the logo in the top bar: the L workflow (trigger, step, outcome), in the page's colours */
.brand span.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; margin: 1px 0 0 1px; fill: none; stroke: var(--text); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg circle { fill: var(--surface); }
.brand-mark svg .dot { fill: var(--accent-ink); stroke: none; }
.brand:hover .brand-mark svg .dot { fill: var(--accent); }
