:root {
  --bg: #d2d4e1;
  --blue: #82aaff;
  --cream: #fffdf4;
  --dark: #292929;
  --black: #111111;
  --muted: #9da0ad;

  --font: "Geist", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 5vw, 48px);
  --max: 980px;
  --stack: clamp(88px, 12vw, 150px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --page: #d2d4e1;
  --ink: #111111;
  --ink-2: #292929;
  --solid: #111111;
  --on-solid: #fffdf4;
  --glass-bg: rgba(255, 253, 244, .42);
  --glass-inset: rgba(255, 255, 255, .75);
  --edge-hi: rgba(255, 255, 255, .95);
  --edge-mid: rgba(255, 255, 255, .25);
  --edge-lo: rgba(17, 17, 17, .1);
  --shadow: rgba(41, 41, 41, .55);
  --cell-bg: rgba(255, 255, 255, .42);
  --cell-bg-hover: rgba(255, 255, 255, .7);
  --cell-line: rgba(17, 17, 17, .07);
  --cell-inset: rgba(255, 255, 255, .95);
  --hover-wash: rgba(17, 17, 17, .06);
  --chip: rgba(255, 255, 255, .8);
  --hairline: rgba(17, 17, 17, .14);
  --nav-bg: rgba(255, 253, 244, .5);
  --nav-bg-strong: rgba(255, 253, 244, .72);
  --menu-bg: rgba(255, 253, 244, .94);
  --media: linear-gradient(160deg, rgba(210, 212, 225, .7), rgba(210, 212, 225, .35));
  --ring: rgba(255, 255, 255, .55);
  --contact-bg: rgba(17, 17, 17, .92);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
:root[data-theme="dark"] {
  --page: #111111;
  --ink: #fffdf4;
  --ink-2: #9da0ad;
  --solid: #fffdf4;
  --on-solid: #111111;
  --glass-bg: rgba(22, 24, 32, .38);
  --glass-inset: rgba(255, 255, 255, .07);
  --edge-hi: rgba(255, 255, 255, .22);
  --edge-mid: rgba(255, 255, 255, .06);
  --edge-lo: rgba(255, 255, 255, .04);
  --shadow: rgba(0, 0, 0, .75);
  --cell-bg: rgba(255, 253, 244, .035);
  --cell-bg-hover: rgba(255, 253, 244, .07);
  --cell-line: rgba(255, 253, 244, .08);
  --cell-inset: rgba(255, 255, 255, .06);
  --hover-wash: rgba(255, 253, 244, .08);
  --chip: rgba(255, 253, 244, .08);
  --hairline: rgba(255, 253, 244, .16);
  --nav-bg: rgba(41, 41, 41, .5);
  --nav-bg-strong: rgba(41, 41, 41, .72);
  --menu-bg: rgba(41, 41, 41, .92);
  --media: linear-gradient(160deg, rgba(157, 160, 173, .14), rgba(157, 160, 173, .05));
  --ring: rgba(255, 253, 244, .08);
  --contact-bg: rgba(130, 170, 255, .1);
  color-scheme: dark;
}
/* no scroll-padding on the root: on iPhone it stops the page ~140px short of the top when scrolling back up.
   Nav links offset themselves in JS using each section's scroll-margin-top. */
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* base */
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--black); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--black); color: var(--cream); text-decoration: none; font-weight: 500; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 16px); }

/* ---------- Background: gradient, soft 3D glass shapes, tiny particles ---------- */
:root {
  --bg-grad: radial-gradient(90% 60% at 85% 0%, rgba(130, 170, 255, .38), transparent 62%),
             radial-gradient(80% 60% at 0% 100%, rgba(255, 253, 244, .8), transparent 60%),
             linear-gradient(165deg, #dfe1ec 0%, #d2d4e1 45%, #c8cce0 100%);
  --orb-hi: rgba(255, 255, 255, .95);
  --orb-mid: rgba(130, 170, 255, .55);
  --orb-edge: rgba(130, 170, 255, .16);
  --orb-rim: rgba(255, 253, 244, .7);
  --ring-a: rgba(130, 170, 255, .45);
  --ring-b: rgba(255, 255, 255, .85);
  --dust: rgba(80, 110, 190, .55);
}
:root[data-theme="dark"] {
  --bg-grad: radial-gradient(90% 60% at 85% 0%, rgba(130, 170, 255, .22), transparent 62%),
             radial-gradient(70% 55% at 0% 100%, rgba(157, 160, 173, .12), transparent 60%),
             linear-gradient(165deg, #171a26 0%, #111111 48%, #0d0e14 100%);
  --orb-hi: rgba(255, 255, 255, .5);
  --orb-mid: rgba(130, 170, 255, .38);
  --orb-edge: rgba(130, 170, 255, .1);
  --orb-rim: rgba(255, 253, 244, .22);
  --ring-a: rgba(130, 170, 255, .35);
  --ring-b: rgba(255, 253, 244, .4);
  --dust: rgba(255, 253, 244, .6);
}
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg-grad); contain: strict; }
[data-glow="off"] .bg > span { opacity: 0 !important; }
/* ---------- 3D portal behind the hero ---------- */
/* fixed: the ring never moves up or down. lvh = the full screen height, which stays the same when the iPhone
   toolbars show or hide, so nothing inside shifts */
.portal-clip { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none; }
.portal { position: absolute; left: 50%; top: 50%; width: min(860px, 94vw, 100vh); height: min(860px, 94vw, 100vh); margin: calc(min(860px, 94vw, 100vh) / -2) 0 0 calc(min(860px, 94vw, 100vh) / -2); pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.portal.is-ready { opacity: 1; }
.portal-haze { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(130, 170, 255, .28), rgba(130, 170, 255, .08) 55%, transparent 75%); }
.portal-tilt { position: absolute; inset: 0; }
.portal canvas.pring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }
.portal-view { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 60px 20px rgba(8, 10, 20, .75), 0 0 80px rgba(130, 170, 255, .35); }
.pv, .pv-clouds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.pv-clouds { width: 200%; will-change: transform; }
.pv-b { opacity: 0; }
.pv-fog { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, transparent 55%, rgba(10, 13, 28, .55) 100%), linear-gradient(to bottom, rgba(10, 14, 32, .35), transparent 30%, transparent 70%, rgba(10, 14, 32, .25)); }
.pl { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fffdf4; box-shadow: 0 0 10px 3px rgba(160, 195, 255, .9); opacity: .85; will-change: transform, opacity; }
.l1 { left: 22%; top: 38%; } .l2 { left: 78%; top: 30%; } .l3 { left: 66%; top: 48%; width: 3px; height: 3px; } .l4 { left: 36%; top: 56%; width: 3px; height: 3px; } .l5 { left: 52%; top: 22%; width: 2px; height: 2px; }
.motion .r-cw { animation: portal-spin 150s linear infinite; }
.motion .r-ccw { animation: portal-spin 110s linear infinite reverse; }
.motion .pv-b { animation: world-shift 26s ease-in-out infinite alternate; }
.motion .pv-clouds { animation: cloud-drift 90s linear infinite; }
.motion .pl { animation: light-drift 14s ease-in-out infinite alternate; }
.motion .l2 { animation-duration: 18s; animation-delay: -4s; } .motion .l3 { animation-duration: 11s; animation-delay: -7s; } .motion .l4 { animation-duration: 16s; animation-delay: -2s; } .motion .l5 { animation-duration: 20s; animation-delay: -9s; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@keyframes world-shift { 0%, 35% { opacity: 0; } 65%, 100% { opacity: 1; } }
@keyframes cloud-drift { to { transform: translateX(-50%); } }
@keyframes light-drift { 0% { transform: translate(0, 0); opacity: .35; } 50% { opacity: 1; } 100% { transform: translate(26px, -14px); opacity: .5; } }
@media (max-width: 700px) {
  .hero-card { padding: 16px 18px; }
  .hero-card .copy { font-size: 15px; line-height: 1.55; }
}
/* transparent frosted glass everywhere */
.glass:not(.nav) { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
/* phones: hold the background still so the glass blur stays smooth */
.hero-title, .pfp-card, .stat-value, .contact { transition: text-shadow .6s ease, box-shadow .6s ease; }
[data-glow="on"] .hero-title { text-shadow: 0 0 28px rgba(130, 170, 255, .55), 0 0 64px rgba(130, 170, 255, .28); }
[data-glow="on"][data-theme="dark"] .hero-title { text-shadow: 0 0 22px rgba(255, 253, 244, .35), 0 0 60px rgba(130, 170, 255, .35); }
[data-glow="on"] .pfp-card { box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 0 0 5px var(--ring), 0 0 60px -6px rgba(130, 170, 255, .75), var(--sx, 0px) var(--sy, 26px) 54px -24px var(--shadow) !important; }
[data-glow="on"] .stat-value { text-shadow: 0 0 18px rgba(130, 170, 255, .5); }
[data-glow="on"] .glass:not(.nav) { box-shadow: inset 0 1px 0 var(--glass-inset), 0 0 0 1px rgba(130, 170, 255, .14), 0 0 50px -18px rgba(130, 170, 255, .55), 0 30px 60px -42px var(--shadow); }
.glow-toggle svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out), color .3s ease, filter .3s ease; }
[data-glow="on"] .glow-toggle { color: var(--blue); border-color: rgba(130, 170, 255, .5); box-shadow: inset 0 1px 0 var(--cell-inset), 0 0 16px -2px rgba(130, 170, 255, .8); }
[data-glow="on"] .glow-toggle svg { filter: drop-shadow(0 0 4px rgba(130, 170, 255, .9)); transform: rotate(90deg); }

.page { width: 100%; max-width: var(--max); margin-inline: auto; padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--pad) 0; display: grid; gap: var(--stack); }

/* ---------- Glass panel with a lit gradient border ---------- */
.glass {
  --mx: 50%; --my: -600px;
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  background: var(--glass-bg);
  box-shadow:
    inset 0 1px 0 var(--glass-inset),
    0 1px 2px rgba(17, 17, 17, .04),
    0 30px 60px -42px var(--shadow);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(320px circle at var(--mx) var(--my), rgba(130, 170, 255, 1), transparent 70%),
    linear-gradient(160deg, var(--edge-hi), var(--edge-mid) 35%, var(--edge-lo) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(560px circle at var(--mx) var(--my), rgba(130, 170, 255, .16), transparent 60%);
  pointer-events: none;
}
.panel { padding: clamp(16px, 2.2vw, 26px); contain: layout paint; }
.panel-title { margin: 0 0 clamp(12px, 1.4vw, 16px); font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 620; letter-spacing: -.04em; line-height: 1.1; }

/* inner cell */
.cell {
  position: relative;
  border-radius: 14px;
  background: var(--cell-bg);
  border: 1px solid var(--cell-line);
  box-shadow: inset 0 1px 0 var(--cell-inset), 0 1px 2px rgba(17, 17, 17, .04);
  transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cell.lift:hover {
    transform: translateY(-3px);
    background: var(--cell-bg-hover);
    border-color: rgba(130, 170, 255, .75);
    box-shadow: inset 0 1px 0 var(--cell-inset), 0 18px 34px -22px var(--shadow);
  }
}

/* ---------- Motion: slow, layered reveals that play both ways ---------- */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .5s ease-out, transform .65s cubic-bezier(.16, 1, .3, 1); }
.motion .reveal[data-dir="up"] { transform: translateY(-14px); transition-duration: .35s, .45s; }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .reveal .st { opacity: 0; transform: translateY(12px); transition: opacity .45s ease-out, transform .55s cubic-bezier(.16, 1, .3, 1), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease); transition-delay: calc(min(var(--s, 0), 6) * 35ms + 80ms); }
.motion .reveal[data-dir="up"] .st { transform: translateY(-6px); transition-duration: .3s, .4s, .35s, .35s, .45s; transition-delay: calc(min(var(--s, 0), 6) * 15ms); }
.motion .reveal.is-in .st { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .motion .reveal.is-in .cell.lift.st:hover { transform: translateY(-3px); transition-delay: 0s; } }
.motion .words .w { display: inline-block; opacity: 0; transform: translateY(.35em); transform-origin: 0 100%; filter: blur(3px); transition: opacity .45s ease-out, transform .55s cubic-bezier(.16, 1, .3, 1), filter .45s ease-out; transition-delay: calc(var(--w) * 40ms + 60ms); }
.motion [data-dir="up"] .words .w { transform: translateY(-.2em); transition-duration: .3s, .4s, .3s; transition-delay: calc(var(--w) * 20ms); }
.motion .is-in .words .w, .motion.loaded .hero .words .w { opacity: 1; transform: none; filter: none; }
/* a thin light line draws under each section title */
.panel-title::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), rgba(130, 170, 255, 0)); transform-origin: 0 50%; }
.motion .reveal .panel-title::after { transform: scaleX(0); transition: transform .7s cubic-bezier(.16, 1, .3, 1) .2s; }
.motion .reveal.is-in .panel-title::after { transform: none; }
/* PFP section: the portrait blooms in */
.motion .meet .meet-visual { opacity: 0; transform: scale(.94); transition: opacity .5s ease-out, transform .7s cubic-bezier(.16, 1, .3, 1); }
.motion .meet.is-in .meet-visual { opacity: 1; transform: none; }
.motion .meet .g-soft { opacity: 0; }
.motion .meet.is-in .g-soft { opacity: 1; }
/* scroll progress line */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 2px; background: linear-gradient(90deg, var(--blue), #fffdf4); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; opacity: .85; }
html:not(.loaded) .progress { opacity: 0; }

/* ---------- Opening ---------- */
.intro { display: none; }
.motion .intro { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; pointer-events: none; animation: intro-failsafe 0s linear 13s forwards; }
.intro-inner { display: grid; justify-items: center; gap: clamp(26px, 4vw, 40px); }
.intro .intro-name { position: relative; will-change: transform; }
.intro .il { opacity: 0; }
.isweep { position: absolute; top: -10%; bottom: -10%; left: 0; width: 28%; background: linear-gradient(100deg, transparent, rgba(255, 253, 244, .55), transparent); mix-blend-mode: overlay; opacity: 0; pointer-events: none; }
.iline { display: block; width: min(360px, 66vw); height: 1px; margin-top: 22px; background: linear-gradient(90deg, transparent, rgba(130, 170, 255, .9), transparent); transform: scaleX(0); opacity: 0; }
.motion:not(.loaded) .portal-clip { opacity: 0; }
.portal-clip { transition: opacity 2s ease; }
/* the portal unfolds: rings turn into place while the world inside settles */
.motion:not(.loaded) .portal-tilt { opacity: 0; transform: scale(.7) rotate(-32deg); }
.motion .portal-tilt { transition: opacity 1.8s ease-out, transform 3s cubic-bezier(.16, 1, .3, 1); }
.motion:not(.loaded) .portal-view { transform: scale(1.35); }
.motion .portal-view { transition: transform 3.4s cubic-bezier(.16, 1, .3, 1); }
.portal-scroll { position: absolute; inset: 0; transition: opacity 1.2s ease; }
.portal-scroll.dim { opacity: .5; }
/* below the hero the scenery inside the ring (sky, mountains, clouds, lights) is merged into one image, which keeps
   scrolling smooth. The rings keep rotating the whole time. */
.pv-snap { display: none; }
.portal.flat .pv-snap { display: block; }
.portal.flat .pv-a, .portal.flat .pv-b, .portal.flat .pv-clouds, .portal.flat .pl { display: none; }
.intro-active .hero .hero-title, .intro-active-name .hero .hero-title { opacity: 0; }
/* keep the rest of the page hidden until the opening has handed over to the hero */
.motion:not(.loaded) main .reveal, .motion.intro-active-name main .reveal { opacity: 0 !important; transition: none; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); padding-inline: 12px; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 610px; margin-inline: auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 6px 6px 6px 7px;
  border-radius: 999px;
  background: var(--nav-bg);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), max-width .5s var(--ease);
}
.nav.glass { border-radius: 999px; -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.scrolled .nav { background: var(--nav-bg-strong); max-width: 590px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding-right: 14px; margin-right: 4px; text-decoration: none; font-size: 14px; font-weight: 620; letter-spacing: -.02em; border-radius: 999px; }
.brand img { width: 26px; height: 26px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 520; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.nav-links a:hover { background: var(--hover-wash); color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--chip); box-shadow: 0 1px 2px rgba(17, 17, 17, .06); }
@media (min-width: 761px) { .nav-links .nav-tg + .nav-x a { margin-left: 4px; } }
.nav-links .nav-x a { margin-left: 6px; background: var(--solid); color: var(--on-solid); box-shadow: none; }
.nav-links .nav-x a:hover { background: var(--blue); color: var(--black); }
.nav-links .nav-x svg { width: 11px; height: 11px; }
.nav-toggle { display: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: -6px; }
.theme-toggle {
  position: relative; flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--cell-line);
  background: var(--cell-bg);
  box-shadow: inset 0 1px 0 var(--cell-inset);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { background: var(--cell-bg-hover); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { grid-area: 1 / 1; width: 15px; height: 15px; transition: transform .6s var(--ease-out), opacity .35s ease; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
.theme-veil { position: fixed; inset: 0; z-index: 140; pointer-events: none; will-change: opacity; }
.theme-swap, .theme-swap *, .theme-swap *::before, .theme-swap *::after { transition: none !important; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; max-width: none; border-radius: 26px; }
  .nav.glass { border-radius: 26px; }
  .nav.is-open.glass { -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
  .scrolled .nav { max-width: none; }
  .nav.is-open { background: var(--menu-bg); }
  .nav-links { order: 3; margin-left: 0; }
  .nav-actions { margin-left: auto; }
  .theme-toggle { width: 38px; height: 38px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--solid); color: var(--on-solid); font: 500 14px/1 var(--font); cursor: pointer; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 2px 2px; overflow: hidden; }
  .nav.is-open .nav-links { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--cell-line); }
  .nav-links a { display: flex; height: 50px; padding: 0 12px; border-radius: 14px; font-size: 18px; letter-spacing: -.03em; color: var(--ink); }
  .nav-links a[aria-current="true"] { background: transparent; box-shadow: none; }
  .nav-links li.nav-x { border-top: 0; margin-top: 10px; }
  .nav-links .nav-x a { margin: 0; justify-content: space-between; border-radius: 18px; padding: 0 18px; font-size: 17px; letter-spacing: -.01em; }
  .nav-links .nav-x svg { width: 14px; height: 14px; }
}


/* ---------- Floating PFP bubble (tap = X profile) ---------- */
.pfp-bubble { --b: 58px; --m: 3vw; --t: 15vh; --bt: 8vh; position: fixed; left: 0; top: 0; z-index: 45; width: var(--b); height: var(--b); border-radius: 50%; text-decoration: none; -webkit-tap-highlight-color: transparent; transform: translate3d(calc(100vw - var(--b) - 22px), calc(100vh - var(--b) - 26px), 0); transition: opacity .9s ease; }
.pb-float { position: absolute; inset: 0; border-radius: 50%; }
.pb-core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #d2d4e1; box-shadow: 0 10px 28px -8px rgba(8, 12, 30, .65), 0 0 22px rgba(130, 170, 255, .45); transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease; }
.pb-core img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* soap-bubble rim and highlight */
.pb-core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none; background: conic-gradient(from 200deg, rgba(130, 170, 255, .9), rgba(255, 253, 244, .9), rgba(190, 160, 255, .85), rgba(130, 220, 255, .9), rgba(130, 170, 255, .9)); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
.pb-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .75) 0 7%, rgba(255, 255, 255, .18) 16%, transparent 34%), radial-gradient(circle at 72% 82%, rgba(130, 170, 255, .28), transparent 42%); }
.pb-halo { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(130, 170, 255, .45); opacity: 0; pointer-events: none; }
.pb-x { position: absolute; right: -3px; bottom: -3px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #111111; color: #fffdf4; box-shadow: 0 0 0 2px rgba(255, 253, 244, .9); }
.pb-x svg { width: 10px; height: 10px; }
.pb-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font: 560 12.5px/1 var(--font); letter-spacing: -.01em; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1); }
.pfp-bubble:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .pfp-bubble:hover, .pfp-bubble:focus-visible { animation-play-state: paused !important; }
  .pfp-bubble:hover .pb-float, .pfp-bubble:focus-visible .pb-float { animation-play-state: paused; }
  .pfp-bubble:hover .pb-core { transform: scale(1.14); box-shadow: 0 14px 34px -8px rgba(8, 12, 30, .7), 0 0 32px rgba(130, 170, 255, .7); }
  .pfp-bubble:hover .pb-tip, .pfp-bubble:focus-visible .pb-tip { opacity: 1; transform: translate(0, -50%); }
  .pfp-bubble.tip-right .pb-tip { right: auto; left: calc(100% + 10px); transform: translate(-6px, -50%); }
  .pfp-bubble.tip-right:hover .pb-tip, .pfp-bubble.tip-right:focus-visible .pb-tip { transform: translate(0, -50%); }
}
.pfp-bubble:active .pb-core { transform: scale(.92); }
@media (max-width: 760px) { .pfp-bubble { --b: 50px; --t: 13vh; } .pb-x { width: 20px; height: 20px; } }
/* drifts slowly around the edges of the screen, bobbing as it goes */
.motion .pfp-bubble { animation: bubble-roam 64s ease-in-out infinite; }
.motion .pb-float { animation: bubble-bob 5.5s ease-in-out infinite alternate; }
.motion .pb-halo { animation: bubble-halo 3.6s ease-out infinite; }
.motion:not(.loaded) .pfp-bubble, .motion.intro-active-name .pfp-bubble { opacity: 0; pointer-events: none; }
.motion.loaded .pfp-bubble { transition-delay: 1.4s; }
@keyframes bubble-bob { 0% { transform: translate3d(0, -5px, 0) rotate(-5deg); } 100% { transform: translate3d(0, 6px, 0) rotate(5deg); } }
@keyframes bubble-halo { 0% { opacity: .7; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes bubble-roam {
  0%, 100% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .94), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .80), 0); }
  12% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .64), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .97), 0); }
  25% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .20), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .86), 0); }
  37% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .02), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .55), 0); }
  50% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .08), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .18), 0); }
  62% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .42), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .03), 0); }
  75% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * .82), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .14), 0); }
  87% { transform: translate3d(calc(var(--m) + (100vw - var(--b) - 2 * var(--m)) * 1), calc(var(--t) + (100vh - var(--b) - var(--t) - var(--bt)) * .46), 0); }
}

/* ---------- Mobile menu motion ---------- */
.menu-scrim { display: none; }
@media (max-width: 760px) {
  .menu-scrim { display: block; position: fixed; inset: 0; z-index: 48; background: rgba(8, 10, 20, .5); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
  .nav-links li { position: relative; }
  .nav-links li + li { border-top: 0; }
  .nav-links li + li::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--cell-line); transform-origin: 0 50%; }
  .nav-links li.nav-x::before { display: none; }
  .motion .nav-links li { opacity: 0; transform: translate3d(-16px, -4px, 0); filter: blur(5px); transition: opacity .18s ease-in, transform .22s ease-in, filter .18s ease-in; transition-delay: calc((6 - var(--i, 0)) * 18ms); }
  .motion .nav-links li::before { transform: scaleX(0); transition: transform .2s ease-in; }
  .motion .nav-links li.nav-x { transform: translate3d(0, 10px, 0) scale(.94); }
  .motion .nav.menu-in .nav-links li { opacity: 1; transform: none; filter: none; transition: opacity .45s ease-out, transform .6s cubic-bezier(.16, 1, .3, 1), filter .45s ease-out; transition-delay: calc(var(--i, 0) * 55ms + 110ms); }
  .motion .nav.menu-in .nav-links li::before { transform: none; transition: transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 55ms + 180ms); }
  .motion .nav.menu-in .nav-links li.nav-x { transition: opacity .45s ease-out, transform .7s cubic-bezier(.34, 1.45, .5, 1), filter .45s ease-out; transition-delay: calc(var(--i, 0) * 55ms + 140ms); }
  .motion .nav { transition: background-color .35s ease, box-shadow .45s ease, border-radius .45s ease; }
  .motion .nav.is-open { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(130, 170, 255, .14); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .pfp-bubble { transform: translate3d(calc(100vw - var(--b) - 16px), calc(100vh - var(--b) - 22px), 0); } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 17px; border-radius: 999px; border: 1px solid transparent; font: 540 14px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn svg { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--solid); color: var(--on-solid); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(17, 17, 17, .6); }
.btn-dark:hover { background: var(--blue); color: var(--black); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 28px -12px rgba(130, 170, 255, .9); }
.btn-line { color: var(--ink); background: var(--cell-bg); border-color: var(--cell-line); box-shadow: inset 0 1px 0 var(--cell-inset); }
.btn-line:hover { background: var(--cell-bg-hover); border-color: var(--hairline); }
.btn-blue { background: var(--blue); color: var(--black); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 30px -12px rgba(130, 170, 255, .8); }
.btn-blue:hover { background: var(--cream); }
.btn-line-light { border-color: rgba(255, 253, 244, .22); color: var(--cream); background: rgba(255, 253, 244, .06); }
.btn-line-light:hover { background: var(--cream); border-color: var(--cream); color: var(--black); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: calc(100svh - 230px); padding: 40px 0 8px; margin-bottom: clamp(-120px, -12vh, -40px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  display: flex; align-items: baseline; justify-content: center;
  margin: 0;
  font-size: clamp(2.8rem, 7.2vw, 5.25rem);
  font-weight: 700; letter-spacing: -.065em; line-height: .86;
  text-transform: uppercase;
  padding: 0 .02em .05em;
}
.hero-title > span { display: inline-block; }
.hero .hero-title { will-change: transform; }
.bdot { display: inline-block; width: .15em; height: .15em; margin-left: .03em; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 max(1px, .012em) var(--hairline); }
main section[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 92px); }
.hero { --ink: #fffdf4; --ink-2: #c3c7d4; --glass-bg: rgba(22, 24, 32, .42); --glass-inset: rgba(255, 255, 255, .08); --solid: #fffdf4; --on-solid: #111111; --cell-bg: rgba(255, 253, 244, .06); --cell-bg-hover: rgba(255, 253, 244, .12); --cell-line: rgba(255, 253, 244, .14); --cell-inset: rgba(255, 255, 255, .08); --hairline: rgba(255, 253, 244, .2); color: var(--ink); }
.hero-card { width: min(100%, 560px); margin-top: clamp(22px, 2.6vw, 30px); padding: clamp(18px, 2.4vw, 24px) clamp(20px, 3vw, 30px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(22px, 2.6vw, 30px); }
@media (max-width: 900px) {
  .hero { margin-bottom: 0; min-height: 0; justify-content: flex-start; padding: clamp(44px, 14svh, 120px) 0 clamp(8px, 4svh, 32px); }
  .hero-title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
}

/* ---------- Meet Brook: PFP with glow + how I can help ---------- */
.meet { display: flex; flex-direction: column; align-items: center; }
.meet-visual { position: relative; width: clamp(170px, 22vw, 220px); aspect-ratio: 1; margin: clamp(12px, 2vw, 24px) 0 clamp(56px, 7vw, 80px); }
@media (max-width: 900px) { .meet-visual { margin-top: clamp(56px, 11svh, 110px); } }
.pfp-glow { position: absolute; inset: -34%; pointer-events: none; }
.pfp-glow span { position: absolute; inset: 0; border-radius: 50%; }
.g-soft { background: radial-gradient(closest-side, rgba(130, 170, 255, .95), rgba(130, 170, 255, .4) 50%, transparent 100%); }
.motion .g-soft { animation: glow-breathe 5s ease-in-out infinite; }
@keyframes glow-breathe { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
/* PFP floats gently and a soft shine passes over it */
.motion .meet .pfp-parallax { animation: pfp-float 6s ease-in-out infinite; }
@keyframes pfp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.shine { position: absolute; inset: 0; z-index: 2; border-radius: inherit; overflow: hidden; pointer-events: none; }
.shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5) 50%, transparent); transform: translateX(-160%) skewX(-12deg); }
.motion .shine::before { animation: pfp-shine 5.5s ease-in-out infinite 1.2s; }
@keyframes pfp-shine { 0% { transform: translateX(-160%) skewX(-12deg); } 30%, 100% { transform: translateX(320%) skewX(-12deg); } }
.pfp-parallax { position: relative; z-index: 1; width: 100%; height: 100%; }
.pfp-card {
  position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: #d2d4e1;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 5px var(--ring), var(--sx, 0px) var(--sy, 26px) 54px -24px var(--shadow);
}
.pfp-card img { width: 100%; height: 100%; object-fit: cover; }
.pfp-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(380px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 60%); pointer-events: none; mix-blend-mode: soft-light; }
.help-card { width: 100%; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px); }
.copy { margin: 0 auto; max-width: 62ch; font-size: 16px; font-weight: 540; line-height: 1.65; letter-spacing: -.012em; color: var(--ink); text-align: center; text-wrap: pretty; }
@media (max-width: 700px) { .help-card .copy { text-align: left; } }

@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 0; padding: 0 14px; } }

.motion:not(.loaded):not(.handoff) .hero .hero-title { opacity: 0; transform: translateY(12px); animation: show-now 0s 12s forwards; }
.motion:not(.loaded) .hero-fade { opacity: 0; transform: translateY(34px) scale(.97); animation: show-now 0s 12s forwards; }
.motion:not(.loaded) .nav-wrap { opacity: 0; transform: translateY(-24px); animation: show-now 0s 12s forwards; }
.motion.loaded:not(.handoff) .hero .hero-title { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.motion.loaded .hero-fade { transition: opacity 1.3s ease-out, transform 1.6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--d) * 200ms + 650ms); }
.motion.loaded .nav-wrap { transition: opacity 1.2s ease-out 1.2s, transform 1.5s cubic-bezier(.16, 1, .3, 1) 1.2s; }
@keyframes show-now { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Analytics ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.stat-label { margin: 0; font-size: 13px; font-weight: 560; color: var(--ink-2); letter-spacing: -.01em; }
.stat-value { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 660; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
.counting .stat::after { transform: scaleX(1); }
.counting .stat:nth-child(2)::after { transition-delay: .08s; }
.counting .stat:nth-child(3)::after { transition-delay: .16s; }
.counting .stat:nth-child(4)::after { transition-delay: .24s; }

/* ---------- Collaborations ---------- */
.collab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.collab { padding: 6px; }
.collab-name { margin: 0; padding: 8px 10px 8px; font-size: 13px; font-weight: 560; letter-spacing: -.005em; color: var(--ink-2); }
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.partner { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; font-size: 16px; font-weight: 580; letter-spacing: -.02em; transition: background-color .25s ease; }
.partner { text-decoration: none; color: inherit; }
.p-name { flex: 1; min-width: 0; }
.p-arr { flex: none; width: 10px; height: 10px; color: var(--ink-2); opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s ease, transform .35s var(--ease); }
a.partner:hover { background: var(--chip); }
a.partner:hover .p-arr, a.partner:focus-visible .p-arr { opacity: 1; transform: none; }
@media (hover: none) { .p-arr { opacity: .55; transform: none; } }
.logo-ph { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--chip); border: 1px solid var(--cell-line); box-shadow: 0 1px 2px rgba(17, 17, 17, .06); font-size: 12px; font-weight: 660; color: var(--ink-2); }
.logo-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.logo-ph.has-logo { background: none; border: 0; box-shadow: 0 0 0 1px var(--cell-line), 0 2px 6px -2px rgba(17, 17, 17, .25); overflow: hidden; }
.logo-ph.is-round { border-radius: 50%; }
@media (max-width: 860px) { .collab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .collab-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stacked rows (services + expertise) ---------- */
.service-grid, .tags { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.service, .tags li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; }
.service-title { margin: 0; font-size: 16px; font-weight: 580; letter-spacing: -.02em; line-height: 1.3; white-space: nowrap; color: var(--ink); }
.tags li { font-size: 16px; font-weight: 580; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.service { min-height: 44px; }

/* ---------- Selected work (X posts) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.filter { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--cell-line); background: var(--cell-bg); color: var(--ink-2); font: 560 13.5px/1 var(--font); letter-spacing: -.01em; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.filter:hover { color: var(--ink); border-color: var(--hairline); }
.filter.is-on { background: var(--solid); color: var(--on-solid); border-color: transparent; }
.post-grid { column-count: 2; column-gap: 10px; }
.post-grid .post { break-inside: avoid; margin-bottom: 10px; }
.post.is-hidden { display: none; }
.post.is-shown { animation: post-in .45s var(--ease-out); }
@keyframes post-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.post { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; }
.post-media { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--cell-line); }
.post-media:not(:has(img)) { aspect-ratio: 4 / 3; background-image: radial-gradient(circle at 1px 1px, rgba(157, 160, 173, .5) 1px, transparent 0), var(--media); background-size: 18px 18px, auto; }
.post-media img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.post:hover .post-media img { transform: scale(1.015); }
a.post-tag { text-decoration: none; color: inherit; transition: background-color .25s ease, border-color .25s ease; }
a.post-tag:hover { border-color: var(--blue); }
.post-media:empty { display: grid; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; }
.post-tag { font-size: 12px; font-weight: 560; padding: 4px 10px; border-radius: 999px; background: var(--chip); border: 1px solid var(--cell-line); }
.post-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 520; text-decoration: none; color: inherit; }
.post-link svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
a.post-link:hover svg { transform: translate(2px, -2px); }
@media (max-width: 760px) { .post-grid { column-count: 1; } }

/* ---------- Expertise + About ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stack); }
#expertise { display: flex; flex-direction: column; }
#expertise .tags { flex: 1; grid-auto-rows: minmax(52px, 1fr); }
#about .about-list li, #goal .about-list li { white-space: normal; padding-block: 11px; line-height: 1.35; }
@media (max-width: 1000px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  #expertise .tags { grid-auto-rows: auto; }
}
@media (max-width: 560px) {
  .service, .tags li { min-height: 44px; padding: 0 14px; }
  .service-title { font-size: 16px; }
  .tags li { font-size: 16px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 34px); color: var(--cream); background: var(--contact-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -36px rgba(17, 17, 17, .7); }
.contact.glass::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(130, 170, 255, 1), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .1)); }
.contact.glass::after { background: radial-gradient(560px circle at var(--mx) var(--my), rgba(130, 170, 255, .22), transparent 60%); }
.contact-title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 640; letter-spacing: -.045em; line-height: 1.05; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.contact-pfp { width: clamp(52px, 6vw, 72px); border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 253, 244, .14), 0 20px 40px -20px rgba(130, 170, 255, .55); }
.contact :focus-visible { outline-color: var(--cream); }
@media (max-width: 640px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-pfp { order: -1; width: 56px; border-radius: 14px; }
  .contact-actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.footer { width: 100%; max-width: var(--max); margin-inline: auto; padding: clamp(32px, 4.5vw, 56px) calc(var(--pad) + 8px) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.footer p { margin: 0; }
.footer a { text-decoration: none; border-radius: 6px; }
.footer-links { display: flex; gap: 18px; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--menu-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
