:root {
  --bg-1: #eef1f5;
  --bg-2: #d8dde5;
  --surface: #f5f6f8;
  --ink: #15181d;
  --ink-soft: #596170;
  --ink-faint: #8b93a1;
  --line: rgba(21, 24, 29, 0.1);
  --accent: #7c1f35;
  --accent-ink: #6a1a2d;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.92);
  --card-shadow: 0 10px 30px rgba(40, 50, 75, 0.13);
  --tile: rgba(255, 255, 255, 0.66);
  --tile-edge: rgba(21, 24, 29, 0.07);
  --viz-bg: #e9ecf1;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-1: #1b1f27; --bg-2: #0c0f14; --surface: #101318;
    --ink: #eef1f6; --ink-soft: #9ca4b2; --ink-faint: #6c7482; --line: rgba(220, 228, 240, 0.1);
    --accent: #d0687f; --accent-ink: #e48ea0;
    --glass: rgba(28, 33, 42, 0.55); --glass-edge: rgba(200, 212, 235, 0.16);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --tile: rgba(26, 31, 40, 0.6); --tile-edge: rgba(220, 228, 240, 0.08); --viz-bg: #12161d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-1: #1b1f27; --bg-2: #0c0f14; --surface: #101318;
    --ink: #eef1f6; --ink-soft: #9ca4b2; --ink-faint: #6c7482; --line: rgba(220, 228, 240, 0.1);
    --accent: #d0687f; --accent-ink: #e48ea0;
    --glass: rgba(28, 33, 42, 0.55); --glass-edge: rgba(200, 212, 235, 0.16);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --tile: rgba(26, 31, 40, 0.6); --tile-edge: rgba(220, 228, 240, 0.08); --viz-bg: #12161d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html.lenis { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.mono { font-family: var(--mono); }

/* ---------- top bar ---------- */
.bar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 28px) 14px;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark .lockup { height: 26px; width: auto; flex: none; color: var(--ink); }
.wm-word { font-family: "Bricolage Grotesque", var(--sans); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.045em; line-height: 1; font-variation-settings: "opsz" 96; }
.wm-mono { align-self: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .32em; color: var(--ink-soft); }
.bar-nav { margin-left: auto; display: flex; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; pointer-events: none; }
.bar.solid .bar-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .35s ease, transform .35s ease; }
.bar-nav a { text-decoration: none; font-size: .92rem; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; }
.bar-nav a:hover, .bar-nav a.on { color: var(--ink); background: var(--line); }
.theme {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bar.solid .theme { margin-left: 8px; }
.theme svg { width: 18px; height: 18px; fill: currentColor; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, var(--bg-1) 0%, var(--bg-2) 100%);
  background-color: var(--bg-2);
}
.hero::after {
  /* faint survey grid, fades towards the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 55%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 55%, #000 0%, transparent 100%);
  opacity: .35;
}
.stage { position: absolute; inset: 0; z-index: 1; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; display: block; opacity: 0; }
/* No z-index here on purpose: cards compete with the canvas in the stage's stacking context. */
.cards { position: absolute; inset: 0; pointer-events: none; }

.card {
  position: absolute; left: 0; top: 0;
  width: 184px; padding: 13px 16px 15px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink); text-decoration: none;
  pointer-events: auto; opacity: 0;
  will-change: transform, opacity;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.card i { display: block; font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; color: var(--accent); margin-bottom: 4px; }
.card strong { display: block; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.card span { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.3; color: var(--ink-soft); }
.card:hover, .card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 40px color-mix(in srgb, var(--accent) 22%, transparent);
  outline: none;
}
/* No WebGL / no JS: cards sit in a tidy grid instead of orbiting. */
.cards.static, .no-js .cards { display: grid; grid-template-columns: repeat(2, 184px); gap: 14px; place-content: center; padding-bottom: 28vh; z-index: 3; }
.cards.static .card, .no-js .card { position: relative; opacity: 1; }
.no-js .reveal, .no-js .intro { opacity: 1; transform: none; }

.intro {
  position: absolute; z-index: 3; left: clamp(20px, 3vw, 32px); bottom: clamp(22px, 4vh, 40px);
  max-width: 34rem; opacity: 0; transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}
.intro.on { opacity: 1; transform: none; }
.intro h1 { margin: 0; font-weight: 600; font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: .94; letter-spacing: -0.055em; }
.intro h1 em { font-style: normal; color: var(--ink-soft); font-weight: 400; }
.intro .tag { margin: .8rem 0 0; font-size: 1.02rem; line-height: 1.45; color: var(--ink-soft); max-width: 30rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .9rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

.hero-meta { position: absolute; z-index: 3; right: clamp(16px, 3vw, 28px); bottom: clamp(22px, 4vh, 40px); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.replay { font: inherit; font-size: .85rem; color: var(--ink-soft); background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.replay:hover, .replay:focus-visible { color: var(--ink); border-color: var(--glass-edge); background: var(--glass); outline: none; }
.scroll-cue { width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--ink-faint); display: grid; justify-items: center; padding-top: 7px; margin-right: 10px; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--ink-soft); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(80px, 12vw, 150px); }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; font-family: var(--mono); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.kicker span { color: var(--accent); }
.kicker::after { content: ""; flex: 0 1 80px; height: 1px; background: var(--line); }
.title { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; }
.title em { font-style: normal; color: var(--ink-faint); font-weight: 500; }
.title.big { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .96; letter-spacing: -0.055em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .scroll-cue span, .caret { animation: none; }
  .intro, .proj, .lrow, .lrow .arr { transition: none; }
}

/* mission */
.define { display: grid; gap: 6px; padding-left: 18px; border-left: 2px solid var(--accent); margin-bottom: 44px; max-width: 38rem; }
.define .word { margin: 0; font-family: var(--mono); font-size: .95rem; }
.define .word em { font-style: normal; color: var(--ink-soft); }
.define .word small { color: var(--accent); font-size: .85rem; }
.define .meaning { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.statement { margin: 0; font-size: clamp(2rem, 4.8vw, 3.8rem); line-height: 1.06; letter-spacing: -0.045em; font-weight: 600; max-width: 22ch; }
.hl { color: var(--accent); }
.lede { max-width: 40rem; font-size: 1.12rem; color: var(--ink-soft); margin: 28px 0 0; }
.about { max-width: 40rem; margin: 18px 0 0; font-size: 1rem; color: var(--ink-soft); padding: 14px 18px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-edge); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.principle { padding: 24px; border-radius: var(--radius); background: var(--tile); border: 1px solid var(--tile-edge); }
.principle b { display: block; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 18px; }
.principle h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.025em; font-weight: 600; }
.principle p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line); }
.stats div { padding: 26px 18px 0 0; }
.stats dt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 8px 0 0; color: var(--ink-soft); font-size: .9rem; max-width: 16ch; }

/* projects */
.projects { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--bg-2) 45%, var(--surface)) 50%, var(--surface)); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: inherit; font-size: .85rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; transition: all .2s ease; }
.filters button:hover { color: var(--ink); border-color: var(--ink-faint); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; grid-auto-flow: dense; }
.proj {
  grid-column: span 2; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--tile); border: 1px solid var(--tile-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, opacity .35s ease;
}
.proj:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 16%, transparent); }
.proj.xl { grid-column: span 4; grid-row: span 2; }
.proj.lg { grid-column: span 2; grid-row: span 2; }
.proj.gone { display: none; }
.viz { position: relative; aspect-ratio: 16 / 10; background: var(--viz-bg); border-bottom: 1px solid var(--tile-edge); overflow: hidden; }
.proj.xl .viz { aspect-ratio: auto; flex: 1; min-height: 300px; }
.proj.lg .viz { aspect-ratio: auto; flex: 1; min-height: 220px; }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.pill.live::before { background: #3f9a62; }
.pill.build::before { background: #c99a3e; }
.proj-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.03em; font-weight: 600; }
.proj.xl h3 { font-size: 1.75rem; }
.proj-top .yr { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); }
.proj-top a { text-decoration: none; font-family: var(--mono); font-size: .75rem; color: var(--accent-ink); white-space: nowrap; }
.proj-top a:hover { text-decoration: underline; }
.proj p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.proj .detail { font-size: .86rem; color: var(--ink-faint); }
.learned { margin-top: 4px; }
.learned span.lbl { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.learned ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.learned li { font-size: .82rem; font-weight: 500; padding: 5px 10px; border-radius: 9px; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.learned li::before { content: "✓ "; opacity: .6; }
.stack { font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); line-height: 1.6; margin-top: auto; padding-top: 6px; }

/* resume */
.resume-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; align-items: start; }
.term { border-radius: 16px; overflow: hidden; background: #111419; color: #dfe4ec; box-shadow: 0 24px 60px rgba(20, 28, 45, .22); border: 1px solid rgba(200, 212, 235, .1); position: sticky; top: 96px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #181c23; font-family: var(--mono); font-size: .72rem; color: #7d8594; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c313b; }
.term-bar span { margin-left: 8px; }
.term-body { margin: 0; padding: 18px 18px 22px; font-family: var(--mono); font-size: .84rem; line-height: 1.7; white-space: pre-wrap; min-height: 290px; overflow-x: auto; }
.term-body .p { color: #e48ea0; }
.term-body .k { color: #c9d1de; }
.term-body .c { color: #6c7482; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -2px; background: #e48ea0; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.timeline .when { font-family: var(--mono); font-size: .74rem; color: var(--accent-ink); letter-spacing: .04em; }
.timeline h3 { margin: 4px 0 2px; font-size: 1.22rem; letter-spacing: -0.025em; font-weight: 600; }
.timeline .where { font-size: .88rem; color: var(--ink-faint); }
.timeline p { margin: 8px 0 0; color: var(--ink-soft); font-size: .95rem; }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skill { background: var(--surface); padding: 22px 22px 24px; }
.skill h3 { margin: 0 0 12px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.skill ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.skill li { font-size: 1rem; font-weight: 500; }

/* links */
.links { overflow: hidden; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 32px 0 0; }
.mail-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--surface); text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; transition: transform .2s ease, background .2s ease; }
.mail-btn:hover { transform: translateY(-2px); background: var(--accent); }
.mail-btn span { transition: transform .2s ease; }
.mail-btn:hover span { transform: translateX(3px); }
.copy-btn { font: 500 .9rem var(--mono); color: var(--ink-soft); background: var(--tile); border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.copy-btn[data-state="copied"] { color: var(--accent-ink); border-color: var(--accent); }
.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); }
.link-list { margin-top: 48px; border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px; padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s ease, background .3s ease; }
.lrow:hover { padding-inline: 18px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lrow .lk { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.lrow .lv { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.04em; }
.lrow .ln { font-family: var(--sans); color: var(--ink-soft); font-size: .9rem; margin-left: 12px; font-weight: 400; letter-spacing: 0; }
.lrow .arr { font-size: 1.4rem; color: var(--accent); transition: transform .3s ease; }
.lrow:hover .arr { transform: translate(4px, -4px); }

.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--ink-faint); font-size: .85rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .mono { font-size: .75rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .proj, .proj.lg { grid-column: span 1; grid-row: auto; }
  .proj.xl { grid-column: span 2; grid-row: auto; }
  .proj.lg .viz { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .principles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .resume-grid { grid-template-columns: 1fr; }
  .term { position: relative; top: 0; }
  .skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .card { width: 128px; padding: 10px 11px 11px; border-radius: 14px; }
  .card strong { font-size: 1rem; }
  .card span { display: none; }
  .cards.static, .no-js .cards { grid-template-columns: repeat(2, 140px); padding-bottom: 46vh; }
  .intro { right: 20px; bottom: 76px; }
  .intro .tag { font-size: .92rem; }
  .eyebrow { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; }
  .eyebrow #nowLine { overflow: hidden; text-overflow: ellipsis; }
  .hero-meta { bottom: 22px; flex-direction: row; align-items: center; right: 50%; transform: translateX(50%); }
  .scroll-cue { display: none; }
  .bar-nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .proj, .proj.xl, .proj.lg { grid-column: span 1; }
  .proj.xl .viz { min-height: 0; aspect-ratio: 16 / 11; flex: none; }
  .skills { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .lrow .lk { grid-column: 1 / -1; }
  .lrow .ln { display: block; margin: 4px 0 0; }
}
