/* ==========================================================
   Finish layer: depth, surfaces and the richer entrances.
   Loaded last. Values come from DESIGN.md.
   ========================================================== */
:root {
  /* Layered shadows: a hairline highlight on top, a tight contact shadow, then a soft ambient one */
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 1px 1px rgba(12, 13, 16, .05), 0 3px 6px -2px rgba(12, 13, 16, .09), 0 10px 20px -10px rgba(12, 13, 16, .14);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 1px 2px rgba(12, 13, 16, .05), 0 8px 16px -6px rgba(12, 13, 16, .10), 0 28px 48px -24px rgba(12, 13, 16, .24);
  --shadow-lg: 0 1px 0 #fff inset, 0 2px 4px rgba(12, 13, 16, .05), 0 16px 28px -10px rgba(12, 13, 16, .15), 0 48px 80px -32px rgba(12, 13, 16, .32);
  --shadow-ink: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 1px 2px rgba(12, 13, 16, .35), 0 8px 16px -6px rgba(12, 13, 16, .38), 0 20px 32px -16px rgba(12, 13, 16, .42);
  --shadow-cobalt: 0 1px 0 rgba(255, 255, 255, .38) inset, 0 -1px 0 rgba(8, 20, 120, .45) inset, 0 1px 2px rgba(15, 31, 168, .45), 0 8px 18px -6px rgba(30, 58, 240, .52), 0 22px 40px -16px rgba(30, 58, 240, .58);
  --surface: linear-gradient(180deg, #fff, #F8F7F3);
  --edge: rgba(12, 13, 16, .09);
}

/* ---------- Basics ---------- */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* fine paper grain over the whole page */
body::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Buttons: tactile, with real depth ---------- */
.btn { transition: scale 160ms var(--ease-out), translate 250ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 250ms ease; }
.btn-ink { background: linear-gradient(180deg, #30323B, #0C0D10); box-shadow: var(--shadow-ink); }
.btn-cobalt { background: linear-gradient(180deg, #4D66FF, #1E3AF0 62%, #1931D2); box-shadow: var(--shadow-cobalt); }
.btn-line, .go.btn { background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); }
.copy { background: var(--surface); border-color: var(--edge); box-shadow: var(--shadow-sm); }
.seg { box-shadow: var(--shadow-sm); }
.seg-pill { background: linear-gradient(180deg, #30323B, #0C0D10); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 4px 8px -2px rgba(12, 13, 16, .4); }
.sim-read { box-shadow: var(--shadow-sm); }

/* ---------- Header: nav as a floating pill ---------- */
.links { gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.links a { padding: 6px 14px; border-radius: 999px; transition: color 200ms ease, background-color 200ms ease; }
.links a::after { display: none; }
.links a.on { background: var(--ink); color: var(--paper); }

/* ---------- Cards ---------- */
.qd { background: var(--surface); border-color: var(--edge); box-shadow: var(--shadow-md); }
.viz { border-color: var(--edge); box-shadow: var(--shadow-lg); }
[data-tilt].hot { box-shadow: var(--shadow-lg); }
.sheet { box-shadow: 0 1px 2px rgba(12, 13, 16, .06), 0 10px 18px -8px rgba(12, 13, 16, .18), 0 28px 44px -22px rgba(12, 13, 16, .34); }
@media not ((hover: hover) and (pointer: fine)) { .glare { display: none; } }   /* the light that follows the pointer is mouse-only */

/* ---------- Avatar in the corner: straight on the page, no disc behind it ---------- */
.dock { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; width: clamp(64px, calc(var(--pad) - 8px), 116px); height: clamp(64px, calc(var(--pad) - 8px), 116px); right: 6px; }
.dock canvas { filter: drop-shadow(0 10px 12px rgba(12, 13, 16, .22)); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; right: -4%; top: 6%; width: 60%; aspect-ratio: 1; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(30, 58, 240, .13), rgba(30, 58, 240, .045) 55%, transparent); }
.hello { display: inline-flex; align-items: center; gap: 0; margin-bottom: 20px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.hello::before { content: ""; flex: none; margin-right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px rgba(30, 58, 240, .16); }
.js .hello { opacity: 0; scale: .92; transition: opacity 500ms ease, scale 700ms var(--ease-out); }
.js .loaded .hello { opacity: 1; scale: 1; }
.hello .vc { display: inline-block; white-space: pre; will-change: transform; }

.id-line { font-size: clamp(64px, 9.6vw, 150px); line-height: .9; letter-spacing: -.062em; }
.id-line .line { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
.id-line .hc { display: inline-block; white-space: pre; }
main { overflow-x: clip; }
.js .id-line .line > span { transform: none; }
.js .id-line .hc { opacity: 0; translate: 0 55%; rotate: 9deg; filter: blur(16px); transform-origin: 0 100%;
  transition: opacity 800ms ease, translate 1200ms var(--ease-out), rotate 1200ms var(--ease-out), filter 1000ms ease; transition-delay: calc(var(--c) * 55ms + 650ms); }
.js .loaded .id-line .hc { opacity: 1; translate: none; rotate: 0deg; filter: none; }

.lede { margin-top: 20px; }
.hero-cta { margin-top: 22px; }

/* ---------- Richer entrances ---------- */
/* text: rises further and sharpens out of a blur */
.js [data-reveal] { translate: 0 30px; filter: blur(10px); transition: opacity 800ms ease, translate 1100ms var(--ease-out), filter 900ms ease; transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { translate: none; filter: none; }
.js .sec-head[data-reveal], .js .viz[data-reveal] { filter: none; }

/* cards: swing up from below in 3D */
.lead { perspective: 1400px; }
.js .lead article[data-reveal] {
  opacity: 0; translate: 0 40px; rotate: x -18deg; scale: .92; filter: blur(5px); transform-origin: 50% 100%;
  transition: opacity 400ms ease, translate 600ms var(--ease-out), rotate 600ms var(--ease-out), scale 600ms var(--ease-out), filter 420ms ease, background-color 300ms ease, color 300ms ease, border-color 200ms ease, box-shadow 300ms ease;
  transition-delay: calc(var(--i, 0) * 50ms); }
.js .lead article[data-reveal].in { opacity: 1; translate: none; rotate: none; scale: none; filter: none; }

/* rows slide in from the side */
.js .index li[data-reveal] { translate: -30px 0; filter: none; transition: opacity 300ms ease, translate 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 35ms); }
.js .index li[data-reveal].in { translate: none; }
.js .tl li[data-reveal] { translate: 30px 0; }
.js .tl li[data-reveal].in { translate: none; }

/* ---------- Timeline: a glowing line with a bright head; fx.js sends particles into it ---------- */
.tl-line { width: 2px; left: 147.5px; border-radius: 2px; }
.tl-line b { border-radius: 2px; background: linear-gradient(180deg, var(--cobalt), #4A5FE8 60%, var(--crimson)); }
.tl-head { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2.5px solid var(--cobalt); box-shadow: 0 0 0 4px rgba(30, 58, 240, .14), 0 0 20px 2px rgba(30, 58, 240, .75); will-change: transform; }
.tl li.on::before { box-shadow: 0 0 0 4px rgba(30, 58, 240, .14), 0 0 14px rgba(30, 58, 240, .6); }

/* ---------- Footer control ---------- */
.still .still .qd-a::after { animation-play-state: paused; }

/* ---------- Hover (real pointers only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: linear-gradient(180deg, #3C3F4A, #17181D); translate: 0 -1px; }
  .btn-cobalt:hover { background: linear-gradient(180deg, #6077FF, #2B46F6 62%, #1E3AF0); translate: 0 -1px; box-shadow: 0 1px 0 rgba(255, 255, 255, .38) inset, 0 -1px 0 rgba(8, 20, 120, .45) inset, 0 2px 3px rgba(15, 31, 168, .45), 0 12px 24px -6px rgba(30, 58, 240, .6), 0 30px 50px -18px rgba(30, 58, 240, .65); }
  .btn-line:hover, .go.btn:hover { background: #fff; translate: 0 -1px; box-shadow: var(--shadow-md); }
  .links a:not(.on):hover { background: rgba(12, 13, 16, .06); }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .dock { width: 84px; height: 84px; right: 4px; }
  .hero::before { right: -20%; top: 0; width: 110%; }
}
@media (max-width: 640px) {
  .dock { width: 72px; height: 72px; }
  .tl-line { left: 3.5px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .id-line .hc { translate: none !important; rotate: none !important; scale: none !important; filter: none !important; }
  .js .hello { scale: 1; }
  .tl-head { display: none; }
}


/* ==========================================================
   Round 4: hexagon backdrop, contact cards,
   one-screen phone hero, and the review fixes.
   ========================================================== */
:root { --ink-3: #6E7078; }                       /* darker so small grey text passes contrast */
h1, h2, h3, .wk-tag { text-wrap: balance; }
p { text-wrap: pretty; }
.brand, .foot a { display: inline-flex; align-items: center; min-height: 28px; }

/* ---------- Backdrop: a faint grey hexagon lattice, strongest top right, fading out ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M0 24.25 14 0h28l14 24.25L42 48.5H14zM56 24.25h28' fill='none' stroke='%230C0D10' stroke-opacity='.075' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 84px 48.5px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .22) 100%);
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .22) 100%); }

/* ---------- Contact: three cards rise over a blurred page ---------- */
.reach-over { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; overscroll-behavior: contain; transition: visibility 0s 220ms; }
.reach-over[data-open] { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.reach-scrim { position: absolute; inset: 0; background: rgba(244, 243, 239, .62); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity 220ms ease; }
.reach-over[data-open] .reach-scrim { opacity: 1; transition: opacity 350ms ease; }
.reach-stack { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(460px, 100% - 32px); display: grid; gap: 12px; }
.reach-card, .reach-close, .reach-intent { opacity: 0; translate: 0 56px; scale: .95; transition: opacity 160ms ease, translate 180ms var(--ease-out), scale 180ms var(--ease-out), box-shadow 250ms ease, background-color 200ms ease; }
.reach-over[data-open] :is(.reach-card, .reach-close, .reach-intent) { opacity: 1; translate: none; scale: 1; transition: opacity 380ms ease, translate 600ms var(--ease-out), scale 600ms var(--ease-out), box-shadow 250ms ease, background-color 200ms ease; transition-delay: calc(var(--k) * 75ms + 60ms), calc(var(--k) * 75ms + 60ms), calc(var(--k) * 75ms + 60ms), 0ms, 0ms; }
.reach-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding: 18px 20px 18px 22px; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-outer); box-shadow: var(--shadow-lg); }
.reach-card > div { display: grid; gap: 2px; min-width: 0; }
.reach-card .pop-label { font-size: 12px; color: var(--ink-3); }
.reach-card .pop-value { font-size: 17px; font-weight: 500; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reach-card .ext { flex: none; width: 36px; height: 36px; padding: 11px; border-radius: 50%; border: 1px solid var(--edge); color: var(--ink); background: #fff; transition: translate 250ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.reach-card .copy { height: 40px; padding: 0 16px; font-size: 13px; }
.reach-close { justify-self: center; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  a.reach-card:hover { background: #fff; }
  a.reach-card:hover .ext { translate: 2px -2px; background: var(--ink); color: var(--paper); }
}

/* ---------- Experience ---------- */
.tl-wrap { max-width: 920px; }
.skills-line { max-width: 920px; margin: clamp(32px, 4vw, 56px) 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* ---------- Phone: the whole first screen (avatar, greeting, headline, three roles) fits without scrolling ---------- */
@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 72px; row-gap: 0; }
  .hello { margin: 8px 0 12px; padding: 6px 14px 6px 10px; font-size: 13px; }
  .id-line { font-size: clamp(34px, 13.4vw, 64px); white-space: nowrap; }   /* "I build things." on one line */
  .id-line .line { display: inline; }
  .lede { margin-top: 28px; }
  /* the résumé button waits until you start scrolling, so it never covers the role cards */
  .resume { transition: opacity 250ms ease, translate 350ms var(--ease-out), scale 160ms var(--ease-out); }
  .at-top .resume { opacity: 0; translate: 0 14px; pointer-events: none; }
  .btn { min-height: 44px; }
  .seg button { height: 38px; }
  .reach-stack { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); translate: -50% 0; }
  .reach-card { min-height: 76px; padding: 14px 16px 14px 18px; }
  .reach-card .pop-value { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reach-card, .reach-close, .reach-intent { translate: none; scale: 1; }
  .at-top .resume { translate: none; }
}

/* ==========================================================
   Round 7: separate dark-glass role cards, Work rows, tabs, graphite cards, résumé button
   ========================================================== */
:root {
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 2px 4px rgba(12, 13, 30, .25), 0 22px 40px -16px rgba(12, 13, 30, .5), 0 56px 90px -40px rgba(30, 58, 240, .55);
  --shadow-glass-sm: 0 1px 0 rgba(255, 255, 255, .26) inset, 0 2px 4px rgba(12, 13, 30, .3), 0 10px 22px -8px rgba(12, 13, 30, .5), 0 22px 36px -18px rgba(30, 58, 240, .4);
  --shadow-slate: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 2px 3px rgba(12, 13, 20, .2), 0 14px 26px -14px rgba(12, 13, 20, .5), 0 34px 54px -34px rgba(12, 13, 20, .4);
  --shadow-slate-hot: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 4px 8px rgba(12, 13, 20, .22), 0 24px 40px -16px rgba(12, 13, 20, .55), 0 48px 72px -36px rgba(12, 13, 20, .45);
}

/* ---------- Dark glass, type A: indigo, with a cobalt glow. Role cards, the contact card, tabs, résumé button ---------- */
.role-card, .reach-intent, .tabs, .resume {
  background: radial-gradient(120% 160% at 0% 0%, rgba(96, 119, 255, .34), transparent 55%), linear-gradient(150deg, rgba(26, 31, 58, .88), rgba(10, 11, 18, .8));
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  color: #fff;
}
.role-card, .reach-intent { box-shadow: var(--shadow-glass); }
.role-card::before, .reach-intent::before, .lead article::before { content: ""; position: absolute; inset: 0; z-index: 1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08) 38%, rgba(120, 140, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- Hero: three separate role cards ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin-top: 28px; }
.role-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 132px; padding: 14px 14px 16px 16px; border-radius: 24px; text-align: left; }
.role-card.hot { box-shadow: var(--shadow-glass); }
.role-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .12) 50%, transparent 62%); translate: -110% 0; animation: glass-sheen 8s ease-in-out calc(var(--k) * .7s + 2.4s) infinite; }
@keyframes glass-sheen { 0% { translate: -110% 0; } 28%, 100% { translate: 110% 0; } }
.role-card .glare i { background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); }
.role-card:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 24px; }
.role-top { display: flex; align-items: center; justify-content: space-between; }
.role-top .mono { font-size: 11px; color: rgba(255, 255, 255, .55); }
.role-main { display: grid; gap: 3px; }
.role-main b { font-size: clamp(20px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.role-main span { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .66); transition: color 250ms ease; }
.role-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .09); transition: translate 300ms var(--ease-out), background-color 250ms ease, color 250ms ease; }
.js .role-card[data-reveal] { transition: opacity 800ms ease, translate 1100ms var(--ease-out), filter 900ms ease, box-shadow 300ms ease, scale 160ms var(--ease-out); transition-delay: calc(var(--i, 0) * 95ms); }
.role-card:active { scale: .97; }
.still .role-card::after { animation-play-state: paused; }

/* ---------- Section titles for Work and Background: large, with a cobalt full stop ---------- */
.sec-head-xl { padding-top: 26px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head-xl h2 { font-size: clamp(52px, 8.4vw, 132px); line-height: .92; letter-spacing: -.055em; white-space: nowrap; }
.sec-head-xl h2 em { font-style: normal; color: var(--cobalt); }
.sec-head-xl .idx { align-self: start; padding-top: 1.1em; }

/* ---------- Work: each project is its own card with a clear Details control ---------- */
.wk-list { display: grid; gap: 12px; }
.wk { border: 1px solid var(--edge); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-sm); }
.js .wk[data-reveal] { transition: opacity 400ms ease, translate 550ms var(--ease-out), filter 400ms ease, box-shadow 350ms ease, border-color 350ms ease; transition-delay: calc(var(--i, 0) * 40ms); }
.wk.open { border-color: rgba(30, 58, 240, .22); box-shadow: var(--shadow-md); }
.wk-h { font: inherit; letter-spacing: inherit; }
.wk-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 0 20px; width: 100%; padding: 22px 22px 22px 26px; border-radius: 26px; text-align: left; }
.wk-head:focus-visible { outline-offset: -3px; }
.wk-n { align-self: start; padding-top: .9em; font-size: 13px; color: var(--ink-3); }
.wk-title { display: grid; gap: 6px; min-width: 0; }
.wk-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; transition: translate 400ms var(--ease-out); }
.wk-tag { max-width: 44em; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.4; color: var(--ink-2); }
.wk-meta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(12, 13, 16, .05); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.wk-more { display: inline-flex; align-items: center; gap: 10px; }
.wk-more-t { font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color 250ms ease; }
.wk-more-t::before { content: "Details"; }
.wk.open .wk-more-t::before { content: "Hide"; }
.wk-chev { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); background: var(--surface); box-shadow: var(--shadow-sm); transition: rotate 500ms var(--ease-out), background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease; }
.wk-chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -4.5px; border: solid var(--ink); border-width: 0 1.75px 1.75px 0; rotate: 45deg; animation: wk-bob 2.2s ease-in-out infinite; transition: border-color 250ms ease; }
@keyframes wk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
.wk.open .wk-chev { rotate: 180deg; background: var(--ink); border-color: var(--ink); }
.wk.open .wk-chev::before { border-color: var(--paper); animation: none; }
.still .wk-chev::before { animation-play-state: paused; }

.wk-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 340ms var(--ease-drawer), visibility 0s 340ms; }
.wk.open .wk-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 340ms var(--ease-drawer), visibility 0s; }
.wk-inner { min-height: 0; overflow: hidden; }
.wk-content { margin: 0 26px; padding: 26px 0 clamp(28px, 3.4vw, 40px) 64px; border-top: 1px solid var(--line); opacity: 0; translate: 0 16px; filter: blur(6px); transition: opacity 180ms ease, translate 260ms var(--ease-out), filter 180ms ease; }
.wk.open .wk-content { opacity: 1; translate: none; filter: none; transition: opacity 300ms ease 90ms, translate 420ms var(--ease-out) 90ms, filter 300ms ease 90ms; }
.wk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.wk-copy > p { max-width: 36em; color: var(--ink-2); }
.wk-copy p a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color 200ms ease, color 200ms ease; }

/* ---------- Background: dark glass tabs, a live count, and graphite cards ---------- */
.tabs { position: relative; justify-self: end; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; box-shadow: var(--shadow-glass-sm); }
.tabs button { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .62); white-space: nowrap; transition: color 250ms ease, scale 160ms var(--ease-out); }
.tabs button:active { scale: .97; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.tabs .seg-pill { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: linear-gradient(180deg, #6B7FFF, #1E3AF0 75%); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 18px -6px rgba(30, 58, 240, .8); }
.bg-live { grid-column: 2 / -1; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.bg-live b { display: inline-block; min-width: 1.1ch; font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--cobalt); }
.tabs-body { position: relative; }
.tabs-body.anim { overflow: hidden; transition: height 320ms var(--ease-drawer); }
.tab-panel.enter { animation: tab-in 340ms var(--ease-out) both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

/* Dark glass, type B: graphite with a silver glow, flatter and quieter than the role cards */
.lead article { position: relative; isolation: isolate; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(100% 140% at 100% 0%, rgba(176, 190, 225, .18), transparent 58%), linear-gradient(165deg, rgba(44, 50, 64, .86), rgba(19, 21, 28, .8));
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--shadow-slate); }
.lead article.hot { box-shadow: var(--shadow-slate-hot); }
.lead article::before { background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .04) 45%, rgba(190, 200, 225, .22)); }
.lead article .glare i { background: radial-gradient(closest-side, rgba(255, 255, 255, .13), transparent); }
.lead h3 { color: #fff; }
.lead p { color: rgba(255, 255, 255, .66); }
.lead .role { background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .88); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset; }

/* ---------- Work with me ---------- */
.asks { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-who { margin-right: 10px; font-weight: 400; opacity: .6; }

/* ---------- Contact cards: the role card on top ---------- */
.reach-intent { position: relative; display: grid; gap: 4px; padding: 20px 22px 22px; border-radius: var(--r-outer); }
.reach-intent .mono { font-size: 12px; color: rgba(255, 255, 255, .55); }
.reach-intent b { font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.reach-intent p { max-width: 30em; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.reach-intent .btn { position: relative; z-index: 2; justify-self: start; margin-top: 14px; }

/* ---------- Résumé button: dark glass, easy to see ---------- */
.resume { border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-glass-sm); }

/* ---------- Footer: the pause control is a quiet line at the very bottom ---------- */
.foot-end { flex: 1 0 100%; display: flex; justify-content: center; margin-top: 6px; }
.motion-toggle { padding: 2px 6px; font-size: 11px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(12, 13, 16, .2); transition: color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .role-card:hover .role-main span { color: #fff; }
  .role-card:hover .role-go { translate: 2px -2px; background: #fff; color: var(--ink); }
  .wk:not(.open):hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
  .wk-head:hover .wk-name { translate: 8px 0; }
  .wk-head:hover .wk-more-t { color: var(--ink); }
  .wk-head:hover .wk-chev { box-shadow: var(--shadow-md); }
  .wk-copy p a:hover { color: var(--cobalt); border-color: var(--cobalt); }
  .tabs button[aria-selected="false"]:hover { color: #fff; }
  .resume:hover { translate: 0 -2px; border-color: rgba(255, 255, 255, .34); box-shadow: var(--shadow-glass); }
  .motion-toggle:hover { color: var(--ink); }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .wk-split { grid-template-columns: 1fr; }
  .wk-split .viz { order: -1; }
}
@media (max-width: 820px) {
  .wk-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 0 12px; padding: 18px 16px 18px 18px; }
  .wk-meta { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 10px; padding: 5px 10px; font-size: 12px; }
  .wk-more { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
  .wk-more-t { display: none; }
  .wk-content { margin: 0 18px; padding-left: 0; }
}
@media (max-width: 640px) {
  .sec-head-xl h2 { font-size: clamp(36px, 11.4vw, 64px); }
  .sec-head-xl .idx { padding-top: .8em; }
  .roles { max-width: none; gap: 8px; margin-top: clamp(12px, 2.2svh, 24px); }
  .role-card { gap: 14px; min-height: 104px; padding: 11px 9px 12px 12px; border-radius: 20px; }
  .role-main b { font-size: 17px; }
  .role-main span { font-size: 11.5px; }
  .role-go { width: 26px; height: 26px; }
  .role-go svg { width: 10px; height: 10px; }
  .sec-head .tabs { grid-column: 1 / -1; justify-self: stretch; margin-top: 14px; }
  .bg-live { grid-column: 2 / -1; }
  .tabs button { padding: 0 6px; font-size: 13px; }
  .asks .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 640px) and (max-height: 720px) {
  .reach-intent p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .role-card::after { animation: none; }
  .wk-chev::before { animation: none; }
  .wk-content, .wk.open .wk-content { translate: none; filter: none; }
  .tab-panel.enter { animation: none; }
}


/* ==========================================================
   Round 8: crimson accent, wine-dark glass pills, faster entrances, stronger hero buttons
   ========================================================== */
/* Accent: deep crimson, a sunset red. --crimson is for shapes and glows on light surfaces, --crimson-ink for text on paper,
   --crimson-lit for the same colour on dark glass, where plain crimson would disappear. */
:root { --crimson: #A61E2E; --crimson-ink: #8F1726; --crimson-lit: #FF6B7A; --crimson-soft: rgba(166, 30, 46, .14); }
.hello::before { background: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-soft); }
.role-top .mono { color: var(--crimson-lit); }
.sec-head-xl h2 em { color: var(--crimson); }
.bg-live b { color: var(--crimson-ink); }
.res.top { color: var(--crimson-ink); font-weight: 500; }
.res.top::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-soft); vertical-align: 1px; }
.wk-n { transition: color 250ms ease; }
.wk.open .wk-n { color: var(--crimson-ink); }
.resume svg { color: var(--crimson-lit); }

/* Dark glass, type C: wine-black with a crimson glow. The small status pills on the Work cards */
.wk-meta { position: relative; isolation: isolate; padding: 6px 13px; color: rgba(255, 255, 255, .92);
  background: radial-gradient(130% 230% at 100% 100%, rgba(200, 40, 60, .38), transparent 60%), linear-gradient(160deg, rgba(52, 20, 26, .93), rgba(17, 9, 11, .9));
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 170, 180, .3) inset, 0 8px 16px -8px rgba(60, 10, 18, .6); }
.wk-meta::before { content: ""; position: absolute; inset: 0; z-index: 1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 170, 180, .65), rgba(255, 255, 255, .06) 45%, rgba(220, 60, 80, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.wk-meta .live { box-shadow: 0 0 0 3px rgba(24, 169, 87, .28), 0 0 10px rgba(24, 169, 87, .6); }

/* Hero buttons: deeper shadows */
.hero-cta .btn-cobalt { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 -1px 0 rgba(8, 20, 120, .5) inset, 0 3px 6px rgba(15, 31, 168, .4), 0 14px 26px -6px rgba(30, 58, 240, .62), 0 34px 54px -16px rgba(30, 58, 240, .66); }
.hero-cta .btn-line { box-shadow: 0 1px 0 #fff inset, 0 3px 6px rgba(12, 13, 16, .12), 0 14px 26px -8px rgba(12, 13, 16, .28), 0 32px 48px -20px rgba(12, 13, 16, .34); }
@media (hover: hover) and (pointer: fine) {
  .hero-cta .btn-cobalt:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 -1px 0 rgba(8, 20, 120, .5) inset, 0 4px 8px rgba(15, 31, 168, .45), 0 20px 34px -6px rgba(30, 58, 240, .7), 0 44px 66px -16px rgba(30, 58, 240, .72); }
  .hero-cta .btn-line:hover { box-shadow: 0 1px 0 #fff inset, 0 4px 8px rgba(12, 13, 16, .14), 0 20px 34px -8px rgba(12, 13, 16, .34), 0 42px 60px -20px rgba(12, 13, 16, .4); }
}

/* Entrances after the hero run twice as fast: shorter travel, less blur, tighter staggers */
.js :where(section[id]:not(.hero)) [data-reveal] { translate: 0 22px; filter: blur(5px); transition: opacity 400ms ease, translate 550ms var(--ease-out), filter 400ms ease; transition-delay: calc(var(--i, 0) * 40ms); }

/* Tablet: the tab switch drops under the large title instead of crowding it */
@media (min-width: 641px) and (max-width: 900px) {
  .sec-head .tabs { grid-column: 1 / -1; justify-self: start; margin-top: 14px; }
}


/* ==========================================================
   Round 9: the Work section in two tiers, each project with its own tone and line-art
   ========================================================== */
/* a faint crimson wash low-left in the hero, so cobalt (right) and crimson (left) meet like a sunset */
.hero::after { content: ""; position: absolute; left: -10%; bottom: -4%; width: 48%; aspect-ratio: 1; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(166, 30, 46, .1), rgba(166, 30, 46, .035) 55%, transparent); }

.wk-eyebrow { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.wk-eyebrow:first-of-type { margin-top: 0; }
.wk-eyebrow i { flex: 1; height: 1px; background: var(--line); }
.wk-eyebrow .mono { font-size: 12px; color: var(--ink-3); }

/* each card carries a tone (an r, g, b triple) that drives its bar, wash, chips and line-art */
.wk { position: relative; --tone: 30, 58, 240; }
.wk::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, rgb(var(--tone)), rgba(var(--tone), .3)); transition: top 300ms var(--ease-out), bottom 300ms var(--ease-out); }
.wk.open::before { top: 14px; bottom: 14px; }
.wk.open { border-color: rgba(var(--tone), .28); }

.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(var(--tone), .08); font-size: 12px; color: var(--ink-2); }

.wk-art { position: relative; display: grid; place-items: center; overflow: hidden; color: rgb(var(--tone)); border-radius: 18px; border: 1px solid rgba(var(--tone), .16);
  background-color: rgba(var(--tone), .05); background-image: radial-gradient(rgba(var(--tone), .26) 1px, transparent 1px); background-size: 14px 14px; background-position: 7px 7px;
  transition: opacity 300ms ease, scale 400ms var(--ease-out); }
.wk-art svg { position: absolute; inset: 9%; width: 82%; height: 82%; overflow: visible; }

/* tier one: feature cards for the two products */
.wk-feature { background: radial-gradient(90% 150% at 100% 0%, rgba(var(--tone), .11), transparent 62%), var(--surface); box-shadow: var(--shadow-md); }
.wk-feature .wk-head { grid-template-columns: 44px minmax(0, 1fr) minmax(200px, 32%); grid-template-areas: "n title art" "n chips art" "n meta more"; gap: 12px 24px; align-items: start; padding: 28px 26px 24px 26px; }
.wk-feature .wk-n { grid-area: n; }
.wk-feature .wk-title { grid-area: title; }
.wk-feature .wk-chips { grid-area: chips; }
.wk-feature .wk-art { grid-area: art; min-height: 128px; }
.wk-feature .wk-meta { grid-area: meta; justify-self: start; align-self: center; }
.wk-feature .wk-more { grid-area: more; justify-self: end; align-self: center; }
.wk-feature .wk-name { font-size: clamp(32px, 3.8vw, 52px); }
.wk-feature.open .wk-art { opacity: 0; scale: .94; }

/* tier two: slimmer rows with a small icon tile */
.wk-slim { background: linear-gradient(90deg, rgba(var(--tone), .06), transparent 30%), var(--surface); }
.wk-slim .wk-head { grid-template-columns: 44px 68px minmax(0, 1fr) auto auto; padding: 18px 22px 18px 26px; }
.wk-slim .wk-name { font-size: clamp(24px, 2.4vw, 32px); }
.wk-slim .wk-art { width: 68px; height: 50px; align-self: center; border-radius: 13px; background-size: 10px 10px; background-position: 5px 5px; }
.wk-slim .wk-art svg { inset: 7%; width: 86%; height: 86%; }

/* line-art: a little life on hover */
.art-t { font-family: var(--mono); font-size: 22px; letter-spacing: -.04em; fill: currentColor; stroke: none; }
.art-ladder rect { fill: transparent; transition: fill 250ms ease; }
.art-ladder rect.on { fill: currentColor; }
.art-fan g { transform-box: view-box; transform-origin: 80px 90px; transition: transform 500ms var(--ease-out); }
.art-fan .f1 { transform: rotate(-24deg); }
.art-fan .f2 { transform: rotate(-8deg); }
.art-fan .f3 { transform: rotate(8deg); }
.art-fan .f4 { transform: rotate(24deg); }
.art-bars rect { transform-box: fill-box; transform-origin: 0 50%; transition: transform 500ms var(--ease-out); }
.art-bars .on { fill: currentColor; fill-opacity: .85; }
.art-web .arrow { transition: translate 400ms var(--ease-out); }
.art-route { stroke-dasharray: 5 6; }
@keyframes art-dash { to { stroke-dashoffset: -22; } }
.still .art-route { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .wk-head:hover .art-ladder rect:nth-child(-n+9) { fill: currentColor; }
  .wk-head:hover .art-fan .f1 { transform: rotate(-34deg); }
  .wk-head:hover .art-fan .f2 { transform: rotate(-13deg); }
  .wk-head:hover .art-fan .f3 { transform: rotate(13deg); }
  .wk-head:hover .art-fan .f4 { transform: rotate(34deg); }
  .wk-head:hover .art-bars rect { transform: scaleX(1.1); }
  .wk-head:hover .art-bars rect:nth-child(n+3) { transform: scaleX(1.28); }
  .wk-head:hover .art-web .arrow { translate: 5px 0; }
  .wk-head:hover .art-route { animation: art-dash 1s linear infinite; }
  .wk-slim:not(.open):hover { background-color: transparent; }
}

@media (max-width: 820px) {
  .wk-eyebrow { margin-top: 26px; }
  .wk-feature .wk-head { grid-template-columns: 30px minmax(0, 1fr) 40px; grid-template-areas: "art art art" "n title more" ". chips chips" ". meta meta"; gap: 10px 12px; padding: 16px 16px 18px 18px; }
  .wk-feature .wk-art { min-height: 0; height: 84px; }
  .wk-feature .wk-more { align-self: start; }
  .wk-feature .wk-more-t { display: none; }
  .wk-slim .wk-head { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 16px 16px 16px 18px; }
  .wk-slim .wk-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-route { animation: none !important; }
  .wk::before { transition: none; }
}
@media (max-width: 900px) { .hero::after { left: -35%; bottom: 10%; width: 100%; } }


/* ==========================================================================
   Round 10: a clearer identity at the top (name, profiles, written bio, photo)
   ========================================================================== */
.js .bar:not(.scrolled) .brand { opacity: 0; pointer-events: none; }
.brand { transition: opacity 240ms ease; }
.hero { display: block; min-height: 0; padding-top: 92px; padding-bottom: clamp(56px, 7vw, 96px); }

.id-head { display: grid; justify-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); text-align: center; }
.id-name { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.id-titles { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.id-titles i { width: 4px; height: 4px; border-radius: 50%; background: var(--crimson); }
.id-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.id-icons a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .62); border: 1px solid var(--edge); box-shadow: var(--shadow-sm); touch-action: manipulation; transition: color 160ms ease, translate 160ms var(--ease-out), box-shadow 200ms ease; }
.id-icons a:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) { .id-icons a:hover { color: var(--cobalt); translate: 0 -1px; box-shadow: var(--shadow-md); } }

.id-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 380px); gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(24px, 3vw, 40px); }
.id-line { font-size: clamp(44px, 6vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 500; white-space: nowrap; }
.id-line .line { display: inline; }
.hero .hello { margin-bottom: 14px; }
.hero .lede { max-width: 37em; margin-top: 18px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.lede a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(30, 58, 240, .45); text-underline-offset: 3px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .lede a:hover { color: var(--cobalt); } }

.hero-photo { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r-outer); overflow: hidden; background: #111; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 10px rgba(12, 13, 16, .14), 0 26px 50px -16px rgba(12, 13, 16, .42); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); pointer-events: none; }
.hero-photo img, .side-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.js .hero-photo { opacity: 0; scale: .96; transition: opacity 700ms ease 200ms, scale 1000ms var(--ease-out) 200ms; }
.js .loaded .hero-photo { opacity: 1; scale: 1; }
.hero .roles { max-width: none; margin-top: clamp(24px, 3vw, 40px); }

.side-photo { margin: 0; display: grid; gap: 10px; align-self: start; }
.side-photo img { aspect-ratio: 1; height: auto; border-radius: var(--r-outer); box-shadow: 0 3px 8px rgba(12, 13, 16, .12), 0 22px 40px -16px rgba(12, 13, 16, .36); }
.side-photo figcaption { font-size: 13px; color: var(--ink-3); }
.awards-grid { display: grid; grid-template-columns: clamp(220px, 24vw, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.awards-grid .side-photo { position: sticky; top: 88px; }
.contact-grid { display: grid; grid-template-columns: clamp(200px, 22vw, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.contact-main { min-width: 0; }
.foot-nav { display: flex; gap: 16px; }

@media (max-width: 820px) {
  .hero { padding-top: 72px; padding-bottom: 48px; }
  .id-head { gap: 8px; padding-bottom: 14px; }
  .id-grid { grid-template-columns: minmax(0, 1fr) 112px; gap: 14px 16px; padding-top: 16px; align-items: start; }
  .hero-copy { display: contents; }
  .hero .hello { grid-column: 1; grid-row: 1; margin: 0; justify-self: start; }
  .id-line { grid-column: 1; grid-row: 2; font-size: clamp(32px, 9.4vw, 60px); align-self: end; }
  .hero-photo { grid-column: 2; grid-row: 1 / 3; border-radius: 18px; }
  .hero .lede { grid-column: 1 / -1; margin-top: 0; }
  .hero-cta { grid-column: 1 / -1; margin-top: 0; }
  .hero .roles { margin-top: 16px; }
  .awards-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .awards-grid .side-photo { position: static; max-width: 300px; }
  .contact-grid .side-photo { max-width: 240px; }
}
@media (min-width: 560px) and (max-width: 820px) { .id-grid { grid-template-columns: minmax(0, 1fr) 180px; } }
@media (max-width: 640px) {
  .id-icons { flex-wrap: nowrap; gap: 4px; }
  .id-icons a { padding: 0 9px; gap: 4px; min-height: 44px; font-size: 12px; }
  .id-icons svg { width: 14px; height: 14px; }
  .id-titles { font-size: 14px; }
}
.foot > a[href="#top"] { margin-right: clamp(0px, 6vw, 88px); }
@media (prefers-reduced-motion: reduce) { .js .hero-photo { scale: 1; transition: opacity 200ms ease; } }
