/* Mark Schommarz CV: liquid-glass edition.
   Glass follows Apple's Liquid Glass rules: a translucent layer for navigation
   and controls that floats above the content. Content panels use a thicker,
   more opaque glass so text stays legible. Refraction (SVG displacement) runs
   only in Chromium; other browsers get blur + saturation + specular edges. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #201e1d;
  --ink-2: #444141;
  --ink-3: #605d5d;
  --paper: #fbfaf9;
  --accent: #ff7900;
  --accent-600: #db6300;
  --accent-700: #ad4c00;
  --accent-900: #4a2100;
  --accent-100: #fff4e8;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);

  /* Glass material: three thicknesses, one edge recipe */
  --glass-clear: rgba(255, 255, 255, 0.16);
  --glass-regular: rgba(255, 255, 255, 0.38);
  --glass-thick: rgba(255, 255, 255, 0.66);
  --glass-tint: rgba(255, 121, 0, 0.78);
  --glass-dark: rgba(32, 30, 29, 0.78);
  --glass-blur: 18px;
  --glass-sat: 180%;
  --glass-edge:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -14px 24px -18px rgba(255, 255, 255, 0.7);
  --glass-lift: 0 10px 34px -10px rgba(32, 30, 29, 0.22), 0 2px 6px rgba(32, 30, 29, 0.06);

  --r-pill: 999px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font: 'Archivo', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-700); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }

/* ── Ambient backdrop: gives the glass something to bend ── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--paper); }
/* the scene is taller than the viewport and slides up as you scroll (--sp: 0 → 1) */
.ambient-layer { position: absolute; left: 0; right: 0; top: 0; height: 145vh; height: 145lvh; transform: translate3d(0, calc(var(--sp, 0) * -45vh), 0); transform: translate3d(0, calc(var(--sp, 0) * -45lvh), 0); will-change: transform; }
.ambient span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient .b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle at 40% 40%, #ff9a3c, #ff7900 60%, transparent 70%); }
.ambient .b2 { width: 40vmax; height: 40vmax; right: -12vmax; top: 22vh; background: radial-gradient(circle, #ffc98f, #ffa64d 55%, transparent 70%); animation-duration: 32s; }
.ambient .b4 { width: 38vmax; height: 38vmax; left: -10vmax; top: 88vh; top: 88lvh; background: radial-gradient(circle, #ffb870, #ff8a1f 55%, transparent 70%); opacity: 0.4; animation-duration: 30s; }
.ambient .b3 { width: 46vmax; height: 46vmax; left: 20vw; bottom: -26vmax; background: radial-gradient(circle, #ff5e3a, #ec3013 50%, transparent 70%); opacity: 0.32; animation-duration: 38s; }
.ambient .grid {
  position: absolute; inset: 0; border-radius: 0; filter: none; opacity: 0.5; animation: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.96); }
}

/* ── Glass material ── */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-regular);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--glass-edge), var(--glass-lift);
  border: 0;
}
/* specular highlight that follows the pointer */
.glass::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(180px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 38%);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.glass-clear { background: var(--glass-clear); }
.glass-thick { background: var(--glass-thick); --glass-blur: 26px; }
.glass-tint { background: var(--glass-tint); color: var(--ink); }
.glass-dark { background: var(--glass-dark); color: var(--paper); --glass-edge: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(255,255,255,0.1); }
.glass-dark::after { opacity: 0.18; }

/* Chromium: real refraction on the navigation layer */
.has-refract .glass.refract {
  -webkit-backdrop-filter: url(#lg-refract) blur(6px) saturate(var(--glass-sat));
  backdrop-filter: url(#lg-refract) blur(6px) saturate(var(--glass-sat));
}

/* ── Controls (glass buttons) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 44px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.4), background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px) scale(1.03); }
.btn:active { transform: scale(0.96); }
.btn svg { flex: none; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn.glass-tint:hover { background: rgba(255, 121, 0, 0.9); }

/* ── Floating navigation capsule ── */
.site-nav {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 14px; min-height: 56px;
  border-radius: var(--r-pill);
  background: var(--glass-clear);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; overflow: hidden; border-radius: 50%; }
.brand-mark img { animation: swim 9s ease-in-out infinite; }
@keyframes swim { 0%,72% { transform: translateX(0); } 76% { transform: translateX(40px); } 76.01% { transform: translateX(-40px); } 82%,100% { transform: translateX(0); } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); transition: background-color 0.2s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.5); }
.nav-menu { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-menu kbd { font-family: var(--font); font-weight: 800; }
.site-nav > .btn { margin-left: 0; }

/* ── Layout ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { position: relative; scroll-margin-top: calc(var(--nav-h) + 20px); }
.section-pad { padding: 88px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-700); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }

/* ── Hero ── */
.hero { padding: calc(var(--nav-h) + 72px) 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; perspective: 1400px; }
.hero-copy { animation: rise 0.7s ease-out both; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.chip.glass-tint { color: var(--accent-900); }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 28px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent-600); }
.hero-lede { font-size: 18px; line-height: 1.5; max-width: 560px; margin-bottom: 32px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.portrait {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 36px; overflow: hidden;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  background: var(--glass-clear);
}
.portrait .rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.portrait .rings svg { width: 92%; height: 92%; overflow: visible; }
.ring-spin { transform-origin: 200px 200px; animation: spin 24s linear infinite; }
.ring-spinr { transform-origin: 200px 200px; animation: spin 40s linear infinite reverse; }
.ring-slow { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-img { position: absolute; left: 50%; bottom: -2%; width: 88%; height: auto; transform: translateX(-50%) translateZ(60px); pointer-events: none; }
.portrait-label { position: absolute; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; max-width: calc(100% - 28px); }
.portrait-label.tl { left: 14px; top: 14px; }
.portrait-label.br { right: 14px; bottom: 14px; color: var(--accent-900); }

/* ── Facts strip ── */
.facts { padding: 8px 0 24px; }
.facts-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; padding: 6px; border-radius: var(--r-lg); }
.fact { padding: 14px 18px; border-radius: 22px; }
.fact-k { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-900); }
.fact-v { font-weight: 800; font-size: 16px; margin-top: 2px; }

/* ── Journey board ── */
.journey { border-top: 0; }
.journey-pin { position: sticky; top: calc(var(--nav-h) + 16px); padding: 24px 0 28px; }
.journey .section-head { margin-bottom: 20px; }
.journey .section-head h2 { font-size: clamp(22px, 3vw, 36px); }
.board { border-radius: var(--r-lg); overflow: hidden; }
.board-scroll { overflow-x: auto; }
.board-grid { min-width: 760px; position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.board-cell-head { padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.board-years { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.board-years div { padding: 12px 0 12px 6px; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.board-years div.next { color: var(--accent-700); }
.track-name { padding: 0 16px; display: flex; align-items: center; font-weight: 800; font-size: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.track-lane { position: relative; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 15) 100%; }
.bar {
  position: absolute; display: flex; align-items: center; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden;
  cursor: pointer; transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
  font: inherit; font-size: 12px; font-weight: 700; text-align: left;
  --glass-blur: 10px;
}
.bar span { overflow: hidden; text-overflow: ellipsis; }
.bar:hover, .bar.is-sel { transform: scale(1.02); box-shadow: var(--glass-edge), 0 0 0 2px var(--accent-900), var(--glass-lift); }
.bar.t0 { background: rgba(32, 30, 29, 0.9); color: var(--paper); }
.bar.t1 { background: var(--glass-tint); color: var(--ink); }
.bar.t2 { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: var(--glass-edge), inset 0 0 0 1.5px var(--ink); }
.bar::after { opacity: 0.35; }
.bar.t0, .bar.t1 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(32, 30, 29, 0.14); }
.sweep { position: absolute; top: 0; bottom: 0; left: 132px; right: 0; pointer-events: none; }
.sweep-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sweep-tag { position: absolute; top: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent); font-weight: 800; font-size: 11px; }

.journey-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.detail-card { padding: 22px 24px; border-radius: var(--r-lg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.detail-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-700); }
.detail-title { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.08; text-wrap: balance; }
.detail-org { font-weight: 600; font-size: 14px; margin-top: 6px; color: var(--ink-2); }
.detail-body { font-size: 13px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.next-card { padding: 22px 24px; border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.next-card .detail-kicker { color: var(--accent); }
.next-card p { font-size: 13px; margin-top: 6px; color: rgba(255,255,255,0.72); }
.next-card .btn { align-self: flex-start; }

/* hover card for timeline entries */
.bar-pop {
  position: fixed; z-index: 45; width: min(360px, calc(100vw - 24px));
  padding: 16px 18px; border-radius: var(--r-md); pointer-events: none;
  background: rgba(255, 255, 255, 0.82);
  animation: pop 0.18s cubic-bezier(.2, .9, .3, 1.25) both;
}
.bar-pop[hidden] { display: none; }
.bar-pop .detail-title { font-size: 18px; }
.bar-pop .detail-org { font-size: 13px; }
.bar-pop .detail-body { display: block !important; margin-top: 8px; }
.bar-pop .detail-tags { display: flex !important; }

/* compact: board + details must fit one viewport */
.journey.compact .track-name, .journey.compact .track-lane { height: 44px; }
.journey.compact .detail-body, .journey.compact .detail-tags, .journey.compact .next-card p { display: none; }
.journey.compact .detail-card, .journey.compact .next-card { padding: 12px 16px; gap: 16px; }
.journey.compact .detail-title { font-size: 16px; }
.journey.compact .next-card { flex-direction: row; align-items: center; }
.journey.compact .section-head h2 { font-size: 18px; }

/* vertical board for phones */
.vboard { display: none; position: relative; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); border-radius: var(--r-lg); overflow: hidden; }
.vboard .vh { padding: 8px 6px; font-weight: 800; font-size: 11px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.vboard .vh:first-child { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-left: 0; }
.vyears { border-right: 1px solid var(--line); }
.vyears div { height: var(--vrow, 44px); padding: 2px 6px; font-weight: 800; font-size: 10px; color: var(--ink-3); border-top: 1px solid var(--line); }
.vyears div.next { color: var(--accent-700); }
.vlane { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--vrow, 44px); }
.vlane .bar { padding: 6px 0; justify-content: center; align-items: flex-start; border-radius: 12px; }
.vlane .bar span { writing-mode: vertical-rl; font-size: 10px; line-height: 1; max-height: 100%; }
.vboard.tiny .bar span { display: none; }
.vsweep { position: absolute; left: 0; right: 0; top: 31px; bottom: 0; pointer-events: none; }
.vsweep .sweep-line { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
.vsweep .sweep-tag { right: 4px; top: 0; transform: translateY(4px); }

/* ── Tags ── */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-700) 55%, transparent); color: var(--accent-700); }
.glass-dark .tag { background: rgba(255,255,255,0.08); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,121,0,0.6); }

/* ── Work ── */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.work-card { padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2), box-shadow 0.3s; transform-style: preserve-3d; }
.work-card:hover { transform: translateZ(24px) rotateX(2deg); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.work-meta span:last-child { color: var(--accent-700); }
.work-card h3 { font-size: 24px; text-wrap: balance; }
.work-org { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.work-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ── Profile ── */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; margin-bottom: 36px; align-items: end; }
.profile-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; margin-top: 8px; }
.profile-head p { color: var(--ink-2); max-width: 520px; font-size: 16px; text-wrap: pretty; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 24px; border-radius: var(--r-lg); }
.panel-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.panel-head span:last-child { color: var(--accent-700); }
.glass-dark .panel-head { color: rgba(255,255,255,0.6); }
.glass-dark .panel-head span:last-child { color: var(--accent); }
.row { padding: 12px 0; border-top: 1px solid var(--line); }
.glass-dark .row { border-top-color: rgba(255,255,255,0.14); }
.stack-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.row-title { font-weight: 800; font-size: 14px; }
.people-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.people-top .row-title { font-size: 15px; }
.meter { display: flex; gap: 3px; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.meter i.on { background: var(--accent); }
.people-body { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.45; text-wrap: pretty; }
.lang-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lang-level { font-size: 12px; color: var(--ink-3); }
.lang-bar { width: 96px; height: 6px; border-radius: 3px; background: rgba(32, 30, 29, 0.1); overflow: hidden; }
.lang-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.lang-bar i.p100 { width: 100%; } .lang-bar i.p92 { width: 92%; } .lang-bar i.p78 { width: 78%; }
.rec-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.rec-when { font-size: 12px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.rec-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.beyond { grid-column: 1 / -1; padding: 18px 24px; border-radius: var(--r-pill); display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; }
.beyond .eyebrow { color: var(--ink-3); font-size: 11px; }
.beyond strong { font-size: 15px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; align-items: end; }
.contact h2 { font-size: clamp(30px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 20px 0 16px; text-wrap: balance; overflow-wrap: anywhere; }
.contact-lede { font-size: clamp(15px, 2vw, 18px); max-width: 520px; color: var(--ink-2); }
.contact-list { display: grid; gap: 6px; padding: 6px; border-radius: var(--r-lg); min-width: 0; }
.contact-item {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  padding: 16px 18px; min-width: 0; min-height: 56px; border-radius: 22px; border: 0;
  text-decoration: none; text-align: left; cursor: pointer; font-weight: 800; font-size: 16px;
  background: rgba(255, 255, 255, 0.5); transition: background-color 0.2s, transform 0.25s cubic-bezier(.2, .9, .3, 1.4);
}
.contact-item:hover { background: rgba(255, 255, 255, 0.85); transform: scale(1.015); }
.contact-item span:last-child { font-weight: 400; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.contact-item.dark { background: var(--glass-dark); color: var(--paper); }
.contact-item.dark:hover { background: rgba(32, 30, 29, 0.92); }

/* ── Footer ── */
.site-footer { padding: 0 0 24px; }
.footer-bar { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 14px 24px; border-radius: var(--r-pill); font-size: 12px; color: var(--ink-3); }
.footer-bar button { margin-left: auto; background: none; border: 0; padding: 4px 0; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sheets: command palette + legal ── */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; padding: 24px; background: rgba(32, 30, 29, 0.28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay[hidden] { display: none; }
.overlay.top { align-items: flex-start; padding-top: 12vh; }
.overlay.center { align-items: center; }
.sheet { width: 100%; border-radius: var(--r-lg); overflow: hidden; animation: pop 0.28s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.palette { max-width: 560px; }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-search span { font-weight: 800; color: var(--accent-600); }
.palette-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.palette kbd { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 2px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.palette-list { display: grid; padding: 6px; max-height: 50vh; overflow: auto; }
.palette-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; text-align: left; font-size: 14px; }
.palette-item[aria-selected='true'] { background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9); }
.palette-item .kind { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-700); width: 64px; flex: none; }
.palette-item .label { font-weight: 600; }
.palette-item .hint { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item > span:first-child { display: flex; gap: 12px; align-items: center; min-width: 0; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); }
.legal { max-width: 640px; max-height: 85vh; overflow: auto; padding: 32px; }
.legal h3 { font-size: 20px; margin: 0 0 12px; }
.legal h3 + p { margin-top: 0; }
.legal p { font-size: 14px; margin-bottom: 12px; }
.legal a { color: var(--accent-700); }
.legal .h-gap { margin-top: 24px; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 639px) {
  :root { --nav-h: 56px; }
  .wrap { padding: 0 16px; }
  .section-pad { padding: 56px 0; }
  .site-nav { top: 8px; width: calc(100% - 16px); padding: 6px 6px 6px 12px; min-height: 50px; gap: 10px; }
  .nav-links { display: none; }
  .site-nav > .btn { margin-left: auto; }
  .brand { font-size: 13px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 40px; }
  .hero-grid, .work-grid, .profile-grid, .profile-head { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 36px; }
  .portrait { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .portrait-img { width: 66%; }
  .journey-pin { padding: 12px 0 16px; }
  .journey .section-head { margin-bottom: 12px; }
  .journey .section-head h2 { font-size: 18px; }
  .board { display: none; }
  .vboard { display: grid; }
  .journey-detail { grid-template-columns: minmax(0, 1fr); }
  .detail-card, .next-card { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; gap: 10px; }
  .detail-title { font-size: 16px; }
  .detail-tags { display: none; }
  .journey.tiny .detail-body, .journey.tiny .next-card, .journey.tiny .section-head .eyebrow { display: none; }
  .work-card { padding: 22px; }
  .beyond { border-radius: var(--r-lg); }
  .footer-bar { border-radius: var(--r-lg); }
  .footer-bar button { margin-left: 0; }
  .legal { padding: 24px; }
  .overlay { padding: 12px; }
}
@media (max-width: 359px) {
  .brand { font-size: 12px; gap: 8px; }
  .site-nav > .btn { padding: 8px 12px; font-size: 13px; }
}

/* ── Accessibility: the glass steps aside when asked ── */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-clear, .glass-regular, .glass-thick { background: rgba(251, 250, 249, 0.97) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass-tint { background: var(--accent) !important; }
  .glass-dark { background: var(--ink) !important; }
  .glass::after { display: none; }
  .ambient span { opacity: 0.25; }
}
@media (prefers-contrast: more) {
  .glass { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: inset 0 0 0 2px var(--ink) !important; }
  .glass-tint { background: var(--accent) !important; }
  .glass-dark { background: var(--ink) !important; }
  .glass::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient-layer { transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .portrait { transform: none !important; }
}
@media print {
  .ambient, .site-nav, .overlay { display: none !important; }
  .glass { background: #fff !important; box-shadow: none !important; backdrop-filter: none !important; }
}
