/* prestonmcculloch.com */
:root {
  color-scheme: dark;
  --bg: #000; --card: #121215; --card2: #1a1a1f; --text: #f5f5f7; --dim: #86868b; --dim2: #a1a1a6;
  --line: rgba(255, 255, 255, .1); --blue: #2997ff; --green: #30d158; --red: #ff453a; --amber: #ff9f0a;
  --r: 28px; --ease: cubic-bezier(.22, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav: 52px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.grad { background: linear-gradient(100deg, #2997ff 0%, #bf5af2 45%, #ff9f0a 100%); background-size: 160% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { background-position: 100% 0; } }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--dim2); text-transform: none; }
.sub { color: var(--dim2); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.4; max-width: 640px; margin: 14px auto 0; }
h2 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.sec-head { margin-bottom: clamp(28px, 5vw, 56px); }
.sec-head h2 { margin-top: 8px; }
.sec-head.center .sub { margin-inline: auto; }
section { position: relative; }
.work, .flight, .systems, .experience { padding-block: clamp(64px, 11vw, 140px) 0; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav); transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(18, 18, 20, .72); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-color: rgba(255, 255, 255, .08); }
.nav-in { width: min(1120px, 100% - 32px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-size: 13px; }
.nav nav a { color: var(--dim2); transition: color .2s; position: relative; }
.nav nav a:hover, .nav nav a.on { color: #fff; }
.nav nav a.pill { color: #fff; background: rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; }
.nav nav a.pill:hover { background: rgba(255, 255, 255, .24); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { position: relative; z-index: 2; padding: clamp(92px, 14svh, 150px) 20px 0; will-change: transform, opacity; }
.hero h1 { font-size: clamp(60px, 12.5vw, 140px); line-height: .98; letter-spacing: -.05em; font-weight: 700; margin: 10px 0 0; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line { display: inline-block; }
.lede { font-size: clamp(18px, 2.4vw, 26px); color: var(--dim2); max-width: 640px; margin: 18px auto 0; line-height: 1.3; letter-spacing: -.01em; }
.actions { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 500; border-radius: 999px; padding: 12px 24px; font-size: 17px; transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #3fa4ff; transform: scale(1.04); box-shadow: 0 8px 30px rgba(41, 151, 255, .35); }
.btn.primary:active { transform: scale(.98); }
.btn.big { font-size: 19px; padding: 16px 32px; }
.link { color: var(--blue); font-size: 17px; }
.link:hover { text-decoration: underline; }
.hero-img { position: relative; flex: none; width: min(1080px, 120vw); margin-top: clamp(-70px, -5vw, -20px); z-index: 1; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 100%); }
.hero-img img { width: 100%; height: auto; filter: saturate(1.08) contrast(1.04); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; top: calc(100svh - 70px); width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.line.rise { animation-name: lineUp; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes lineUp { from { transform: translateY(105%); } }

/* ---------- statement ---------- */
.statement { height: 220vh; }
.statement .sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 clamp(20px, 6vw, 80px); }
.statement p { max-width: 1000px; font-size: clamp(30px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; text-align: left; }
.statement .w { opacity: .18; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
html:not(.js) .statement .w { opacity: 1; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: clamp(20px, 4vw, 60px); }
.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.num { font-size: clamp(44px, 7vw, 84px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.num small { font-size: .42em; color: var(--dim2); font-weight: 600; letter-spacing: -.01em; margin-left: .12em; }
.num small.pre { margin: 0 .05em 0 0; }
.stat p { margin-top: 12px; color: var(--dim2); font-size: 15px; line-height: 1.35; max-width: 220px; }

/* ---------- bento cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; isolation: isolate;
  border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .09), transparent 60%); }
.card:hover { transform: translateY(-4px) scale(1.005); border-color: rgba(255, 255, 255, .2); }
.card:hover::before { opacity: 1; }
.c-xring { grid-column: span 4; } .c-server { grid-column: span 2; } .c-site { grid-column: span 6; min-height: 320px; }
.card-art { position: absolute; inset: 0 0 38% 0; z-index: -2; }
.card-body { padding: 28px 76px 28px 28px; max-width: 560px; position: relative; }
.card h3 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.1; margin: 4px 0 8px; font-weight: 700; }
.card-body p:last-child { color: var(--dim2); font-size: 17px; line-height: 1.35; }
.plus { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .3s var(--ease), background .2s; }
.plus:hover, .card:hover .plus { background: #fff; transform: rotate(90deg) scale(1.08); }
.plus span, .plus span::before { position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; border-radius: 1px; transition: background .2s; }
.plus span::before { content: ""; left: 50%; top: 50%; margin: -1px 0 0 -7px; transform: rotate(90deg); }
.plus:hover span, .plus:hover span::before, .card:hover .plus span, .card:hover .plus span::before { background: #000; }

/* xRing art */
.c-xring { background: radial-gradient(circle at 50% 30%, #11263a 0%, #0a1018 60%, #08090c 100%); }
.c-xring .card-art svg { width: 100%; height: 100%; }
.traces path, .traces circle { stroke: rgba(41, 151, 255, .45); stroke-width: 2; }
.pulses path, .pulses circle { stroke: #7cc4ff; stroke-width: 3; stroke-dasharray: 36 420; stroke-dashoffset: 0; animation: run 4.5s linear infinite; filter: drop-shadow(0 0 5px #2997ff); }
.pulses path:nth-child(2) { animation-delay: -1.4s; } .pulses path:nth-child(3) { animation-delay: -2.6s; } .pulses circle { stroke-dasharray: 60 545; animation-duration: 7s; }
@keyframes run { to { stroke-dashoffset: -460; } }
.pads circle { fill: #0a1018; stroke: #2997ff; stroke-width: 2; animation: pad 3s ease-in-out infinite; }
.pads circle:nth-child(even) { animation-delay: -1.5s; }
@keyframes pad { 50% { fill: #2997ff; } }

/* server art (rack) */
.c-server { background: linear-gradient(160deg, #1a1d24, #0c0d10); }
.rack { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 0; justify-content: flex-start; }
.unit { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 8px; background: linear-gradient(#2a2d35, #1b1d23); border: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: var(--dim2); }
.unit i { width: 8px; height: 8px; border-radius: 50%; background: #444; flex: none; }
.unit.up i { background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2.4s ease-in-out infinite; }
.unit.down i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.unit span { margin-left: auto; display: flex; gap: 3px; }
.unit span b { width: 14px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 2px; }
@keyframes blink { 50% { opacity: .45; } }

/* radar art */
.c-site { background: radial-gradient(circle at 80% 40%, #0f2a1a 0%, #070d0a 70%); }
.radar { inset: 0; display: grid; place-items: center; }
.radar i { position: absolute; right: 12%; top: 50%; border: 1px solid rgba(48, 209, 88, .28); border-radius: 50%; transform: translateY(-50%); }
.radar i:nth-child(1) { width: 140px; height: 140px; margin-right: 80px; }
.radar i:nth-child(2) { width: 260px; height: 260px; margin-right: 20px; }
.radar i:nth-child(3) { width: 380px; height: 380px; margin-right: -40px; }
.radar b { position: absolute; right: 12%; top: 50%; width: 380px; height: 380px; margin: -190px -40px 0 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(48, 209, 88, .38), transparent 22%); animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* ---------- flight stage ---------- */
.stage { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #060912; aspect-ratio: 16 / 9; min-height: 340px; }
.stage canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 18px 22px; pointer-events: none; color: #7dffb0; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; text-shadow: 0 0 10px rgba(125, 255, 176, .5); }
.hud div { display: flex; gap: 6px; align-items: baseline; } .hud b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; } .hud small { opacity: .65; }
.stage-note { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); pointer-events: none; transition: opacity .6s; }

/* ---------- systems ---------- */
.banner { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; margin: 0 auto 28px; padding: 12px 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); position: relative; }
.banner.ok .pulse { background: var(--green); } .banner.bad .pulse { background: var(--red); } .banner.warn .pulse { background: var(--amber); }
.banner.ok .pulse::after, .banner.bad .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }
.sys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sys { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.sys::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 60%); }
.sys:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); } .sys:hover::before { opacity: 1; }
.sys-top { display: flex; align-items: center; gap: 14px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--card2); flex: none; }
.ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sys h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.15; } .sys .blurb { color: var(--dim); font-size: 14px; }
.chip { margin-left: auto; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(48, 209, 88, .15); color: var(--green); white-space: nowrap; }
.chip.down { background: rgba(255, 69, 58, .15); color: var(--red); }
.bars { display: flex; gap: 3px; height: 38px; margin: 24px 0 8px; align-items: stretch; }
.bars i { flex: 1; border-radius: 3px; background: var(--green); min-width: 2px; opacity: .9; transform-origin: bottom; animation: grow .6s var(--ease) both; animation-delay: calc(var(--k) * 12ms); }
.bars i.part { background: var(--amber); } .bars i.off { background: var(--red); } .bars i.none { background: rgba(255, 255, 255, .08); }
@keyframes grow { from { transform: scaleY(.1); opacity: 0; } }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.metrics { display: flex; gap: 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.metrics div { font-size: 13px; color: var(--dim); } .metrics b { display: block; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metrics .go { margin-left: auto; font-size: 14px; color: var(--blue); font-weight: 500; padding: 8px 16px; border-radius: 999px; background: rgba(41, 151, 255, .12); transition: background .2s; }
.metrics .go:hover { background: rgba(41, 151, 255, .24); }
.metrics .lock { margin-left: auto; font-size: 13px; color: var(--dim); }
.sys.off-state { border-color: rgba(255, 69, 58, .35); }
.empty-live { grid-column: 1 / -1; text-align: center; color: var(--dim2); padding: 40px 0; }

/* ---------- experience ---------- */
.soon { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(32px, 6vw, 64px); display: grid; gap: 14px; justify-items: start; }
.soon h3 { font-size: clamp(24px, 3.6vw, 38px); letter-spacing: -.03em; line-height: 1.1; max-width: 560px; }
.soon p { color: var(--dim2); max-width: 520px; }
.timeline { border-left: 1px solid var(--line); margin-left: 8px; display: grid; gap: 40px; padding-left: 28px; }
.leg { position: relative; } .leg::before { content: ""; position: absolute; left: -35px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(41, 151, 255, .18); }
.leg .when { color: var(--dim); font-size: 14px; } .leg h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; } .leg .org { color: var(--dim2); } .leg ul { margin: 10px 0 0; padding-left: 20px; color: var(--dim2); } .leg li { margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; } .chips span { padding: 9px 16px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 15px; }

/* ---------- contact + footer ---------- */
.contact { padding-block: clamp(90px, 16vw, 200px); text-align: center; }
.contact h2 { font-size: clamp(44px, 9vw, 120px); letter-spacing: -.045em; line-height: 1; }
.contact .sub { margin-bottom: 30px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 13px; text-align: center; }
.foot .fine { margin-top: 8px; font-size: 12px; } .foot a { color: var(--dim2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- dialog ---------- */
dialog { border: 0; padding: 0; background: #151518; color: var(--text); width: min(720px, calc(100% - 28px)); max-height: min(86svh, 760px); border-radius: 30px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); border: 1px solid var(--line); overflow: auto; }
dialog[open] { animation: pop .45s var(--ease); }
dialog::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: fade .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } } @keyframes fade { from { opacity: 0; } }
.dlg-in { padding: clamp(26px, 5vw, 48px); position: relative; }
.dlg-in h2 { font-size: clamp(32px, 5.4vw, 52px); margin: 6px 0 14px; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--text); line-height: 1.35; letter-spacing: -.01em; }
#dlgBody p { margin-top: 16px; color: var(--dim2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 28px 0 0; }
.facts div { background: var(--card2); border-radius: 16px; padding: 14px 16px; } .facts dt { color: var(--dim); font-size: 12px; } .facts dd { margin: 2px 0 0; font-weight: 600; }
.close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.close:hover { background: rgba(255, 255, 255, .24); }
.close span, .close span::before { position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; transform: rotate(45deg); border-radius: 1px; }
.close span::before { content: ""; left: 0; top: 0; margin: 0; transform: rotate(90deg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .bento { grid-template-columns: 1fr; }
  .c-xring, .c-server, .c-site { grid-column: auto; min-height: 380px; }
  .sys-grid { grid-template-columns: 1fr; }
  .hero-img { width: 150vw; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav a:not(.pill) { display: none; }
  .hero-copy { padding-top: 13svh; }
  .hero-img { width: 190vw; margin-top: -4px; }
  .stage { aspect-ratio: 4 / 5; min-height: 0; }
  .hud { padding: 14px 16px; font-size: 11px; } .hud b { font-size: 16px; }
  .card { min-height: 360px; } .card-body { padding: 22px 70px 22px 22px; }
  .sys { padding: 20px; } .metrics { gap: 16px; }
  .metrics .go, .metrics .lock { margin-left: 0; width: 100%; text-align: center; }
  .statement { height: 190vh; }
  .radar i, .radar b { right: -10%; }
  dialog { border-radius: 26px; max-height: 88svh; }
}
@media (hover: none) { .card:hover { transform: none; } .sys:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .statement { height: auto; } .statement .sticky { position: static; height: auto; padding-block: 80px; } .statement .w { opacity: 1; }
}
@media (max-height: 760px) { .scroll-hint { display: none; } }

/* ---------- resume blocks ---------- */
.sub-h { margin: clamp(64px, 9vw, 110px) 0 24px; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.edu { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 36px); }
.edu h3 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.025em; line-height: 1.1; margin: 6px 0 8px; }
.edu .deg { color: var(--text); font-size: 18px; line-height: 1.3; }
.edu .loc { color: var(--dim); font-size: 14px; margin-top: 6px; }
.chips.tight { margin-top: 18px; gap: 8px; }
.skill-group { margin-top: 28px; }
.skill-group h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--dim); letter-spacing: .01em; }
.skill-group .chips { margin-top: 0; }
.timeline .leg .when { font-variant-numeric: tabular-nums; }
.timeline .leg h3 { font-size: clamp(22px, 3vw, 30px); }
.timeline .leg ul { max-width: 720px; }

/* ---------- Ring Run + refinements ---------- */
.grad { background-image: linear-gradient(100deg, #f5f5f7 0%, #b7d4ff 55%, #5aa9ff 100%); background-size: 140% 100%; }
.stage canvas { touch-action: pan-y; }
.stage.playing canvas { touch-action: none; }
.hud b { min-width: 3.2ch; }
.hud .low b { color: #ff8a80; text-shadow: 0 0 10px rgba(255, 99, 90, .6); }
.fuel { position: absolute; left: 22px; top: 58px; display: flex; align-items: center; gap: 10px; font: 11px ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .08em; color: rgba(255, 255, 255, .6); pointer-events: none; transition: opacity .3s; }
.stage:not(.playing) .fuel { opacity: 0; }
.fuel i { display: block; width: 110px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.fuel i b { display: block; height: 100%; width: calc(var(--v, 100) * 1%); background: var(--blue); transition: width .12s linear; }
.fuel.low i b { background: var(--amber); }
.stage-note { bottom: 18px; }
.pad { position: absolute; left: 14px; right: 14px; bottom: 14px; display: none; justify-content: space-between; pointer-events: none; }
.pad button { pointer-events: auto; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); touch-action: none; user-select: none; -webkit-user-select: none; }
.pad button:active { background: rgba(41, 151, 255, .45); }
.pad button.cool { opacity: .4; }
@media (pointer: coarse) { .stage.playing .pad { display: flex; } .keys { display: none; } }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(4, 6, 13, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .4s, visibility 0s; }
.overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility 0s .4s; }
.ov-in { max-width: 460px; }
.ov-in h3 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 12px; }
.ov-in > p:not(.eyebrow):not(.keys) { color: var(--dim2); margin-bottom: 22px; font-size: 16px; line-height: 1.4; }
.ov-in .keys { margin-top: 18px; font-size: 12px; color: var(--dim); line-height: 1.6; }
@media (max-width: 640px) { .stage { aspect-ratio: 3 / 4; } .fuel { left: 16px; top: 50px; } .fuel i { width: 90px; } .ov-in h3 { font-size: 28px; } }
