/* szrthk.in — one stylesheet, no build step. */

:root {
  --bg: #0d0d0d;
  --bg-deep: #0a0a0a;
  --bg-warm: #161412;
  --panel: #141414;
  --line: #1c1c1c;
  --line-2: #2a2a2a;
  --white: #f2f0eb;
  --text: #b4b4b4;      /* body copy on --bg: ~9:1 */
  --muted: #8f8f8f;     /* labels on --bg: ~6:1 */
  --faint: #5e5e5e;     /* decorative only */
  --focus: #f2f0eb;

  --font-display: 'Newsreader', 'Times New Roman', Georgia, serif;
  --font-heading: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, ui-monospace, monospace;

  --gutter: 3rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-mono);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--white); color: var(--bg-deep);
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 0.9rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 4px;
}

/* ─── CURSOR (fine pointers, JS only) ─── */
#cursor { display: none; }
.has-cursor body, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor #cursor {
  display: flex;
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  align-items: center; justify-content: center;
  transition: width .3s ease, height .3s ease, opacity .3s ease, background .3s ease, box-shadow .3s ease;
}
.has-cursor #cursor.on { opacity: 1; }
#cursor.hover {
  width: 40px; height: 40px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242,240,235,.5);
}
#cursor.hover-view { width: 72px; height: 72px; background: var(--white); }
#cursor.hover-view::after {
  content: 'VIEW';
  font-family: var(--font-heading);
  font-size: .55rem; font-weight: 500; letter-spacing: .18em;
  color: var(--bg-deep);
}

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 2rem var(--gutter);
  transition: background .4s ease, padding .4s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,.92);
  padding-top: 1.25rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem; font-style: italic; font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: .8;
  text-decoration: none;
}
.logo:hover { opacity: 1; }

nav { display: flex; gap: 2.5rem; align-items: center; }

.nav-link {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .4rem;
  text-decoration: none;
}
.nav-dot {
  width: 5px; height: 5px;
  border: 1px solid #555; border-radius: 50%;
  transition: border-color .2s, background .2s;
}
.nav-label {
  font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-line {
  display: block; position: relative;
  width: 100%; min-width: 80px; height: 1px;
  background: var(--line-2);
}
.nav-line-fill {
  position: absolute; top: 0; left: 0;
  height: 1px; width: 0%;
  background: var(--white);
}
.nav-link:hover .nav-dot, .nav-link.active .nav-dot { background: var(--white); border-color: var(--white); }
.nav-link:hover .nav-label, .nav-link.active .nav-label { color: var(--white); }

.nav-icons { display: flex; align-items: center; gap: 1rem; margin-left: .5rem; }
.nav-icon {
  position: relative; display: flex;
  color: var(--muted); padding: 4px;
  transition: color .2s;
}
.nav-icon:hover, .nav-icon:focus-visible { color: var(--white); }
.nav-icon::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg-deep); background: var(--white);
  padding: .3rem .6rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-icon:hover::after, .nav-icon:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}

.parallax-field { position: absolute; inset: 0; pointer-events: none; }
.pimg {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #1e1e1e;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: transform;
}
.pimg svg { width: 100%; height: 100%; }
.pimg.in { opacity: 1; }
.pimg.small.in { opacity: .5; }
.hero:hover .pimg.small.in { opacity: .7; }
.no-js .pimg, html:not(.js) .pimg { opacity: 1; }

/* desktop scatter, same rhythm as the reference */
#p-tl { top: -5%;  left: -1%;  width: 22%; height: 42%; }
#p-tc { top: -3%;  left: 29%;  width: 16%; height: 30%; }
#p-tr { top: -2%;  right: -1%; width: 21%; height: 35%; }
#p-ml { top: 44%;  left: 3%;   width: 11%; height: 24%; }
#p-mc { top: 56%;  left: 32%;  width: 13%; height: 22%; }
#p-mr { top: 38%;  right: 8%;  width: 12%; height: 20%; }
#p-bl { bottom: -5%;  left: -15%; width: 40%; height: 40%; }
#p-bc { bottom: -10%; left: 43%;  width: 16%; height: 50%; }
#p-br { bottom: -2%;  right: -1%; width: 26%; height: 50%; }

/* SVG drawing vocabulary */
.sv-mono { font-family: var(--font-mono); font-size: 15px; fill: #c9c7c2; letter-spacing: .04em; }
.sv-s { font-size: 13px; }
.sv-c { text-anchor: middle; font-size: 13px; }
.sv-dim { fill: #77756f; }
.sv-bright { fill: var(--white); font-size: 22px; }
.sv-soft { fill: #7a7873; }
.sv-serif { font-family: var(--font-display); font-style: italic; font-weight: 200; fill: var(--white); font-size: 92px; letter-spacing: -.03em; }
.sv-serif-s { font-size: 46px; }
.sv-serif-m { font-size: 52px; }
.sv-serif-l { font-size: 92px; }
.sv-sans { font-family: var(--font-heading); font-weight: 800; fill: var(--white); letter-spacing: -.03em; }
.sv-sans-m { font-size: 46px; }
.sv-sans-l { font-size: 76px; }
.sv-stroke, .sv-stroke path, .sv-stroke line { stroke: #5a5853; stroke-width: 1.5; fill: none; }
.sv-stroke-b { stroke: #d8d6d0; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sv-node rect { fill: #1b1b1b; stroke: #6a6863; stroke-width: 1.2; }
.sv-node .sv-node-dim { stroke: #3a3a3a; }
.sv-frame { fill: none; stroke: #2f2f2f; stroke-dasharray: 4 5; }
.sv-ok { fill: #1b1b1b; stroke: #d8d6d0; stroke-width: 1.4; }
.sv-run { fill: var(--white); }
.sv-tick path { stroke: #d8d6d0; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sv-grid line { stroke: #242424; stroke-width: 1; }
.sv-line { fill: none; stroke: #e6e4de; stroke-width: 2; stroke-linejoin: round; }
.sv-line-dim { stroke: #555; stroke-width: 1.5; }
.sv-alert { stroke: #e6e4de; stroke-width: 1; stroke-dasharray: 3 4; }
.sv-bars rect { fill: #2c2c2c; }
.sv-bars rect:nth-child(3n) { fill: #4a4a4a; }
.sv-bars rect:nth-child(6) { fill: #cfcdc7; }
.sv-stages rect { fill: #222; }
.sv-stages .sv-stage-on { fill: #cfcdc7; }
.sv-cursor { fill: #d8d6d0; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: .5rem;
  padding: 0 1rem 20vh;
  pointer-events: none;
}
.hero-name-clip { overflow: hidden; padding: 0 .2em .3em; line-height: 1; }
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.5vw, 6.5rem);
  font-weight: 200; font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  mix-blend-mode: difference;
}
.hn-letter { display: inline-block; }
.intro .hn-letter { transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hn-space { display: inline-block; width: .25em; }
@keyframes rise { to { transform: translateY(0); } }

.hero-roles {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: .6em;
  font-family: var(--font-heading);
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9a9a9a;
}
.hero-roles-sep { font-size: 1.8em; line-height: 1; letter-spacing: 0; }
.hero-sub {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: .75rem; letter-spacing: .1em; line-height: 1.8;
  text-transform: uppercase;
  color: #a3a3a3;
}
.intro .hero-roles, .intro .hero-sub {
  opacity: 0; transform: translateY(1rem);
  animation: fadeUp .9s var(--ease-out) forwards;
}
.intro .hero-roles { animation-delay: .9s; }
.intro .hero-sub { animation-delay: 1.05s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ─── SECTION HEADING ─── */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 3rem;
  overflow: hidden;
  padding: .06em 0 .12em;
}
.sh-letter { display: inline-block; will-change: transform; }
.sh-space { display: inline-block; width: .28em; }

/* ─── WHAT I DO ─── */
.philosophy-section {
  padding: 9rem var(--gutter) 8rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.philosophy-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 6rem;
  align-items: start;
}
.philosophy-text {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 3rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: .01em;
  color: #c9c7c2;
}
.hl {
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  color: #fff;
  letter-spacing: -.01em;
}
.q-word { white-space: nowrap; }
[data-reveal] { position: relative; }
.q-char { transition: opacity .15s linear; }

.expertise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.expertise-card {
  display: flex; flex-direction: column;
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background .3s ease;
}
.expertise-card:nth-child(even) { border-right: none; }
.expertise-card:last-child { border-bottom: none; }
.ecard-icon {
  width: 34px; height: 34px;
  color: var(--white);
  margin-bottom: 1.2rem;
  transition: color .3s ease, transform .4s var(--ease-spring);
}
.ecard-icon svg { overflow: visible; }
.ecard-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400; font-style: italic;
  color: var(--white);
  line-height: 1; margin-bottom: .8rem;
  transition: color .3s ease;
}
.ecard-list { display: flex; flex-direction: column; gap: .25rem; }
.ecard-list li {
  position: relative;
  padding-left: 1.1em;
  font-family: var(--font-heading);
  font-size: .86rem; font-weight: 300; line-height: 1.6;
  color: var(--text);
  transition: color .3s ease;
}
.ecard-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .5;
}
@media (hover: hover) {
  .expertise-list:has(.expertise-card:hover) .expertise-card:not(:hover) .ecard-icon,
  .expertise-list:has(.expertise-card:hover) .expertise-card:not(:hover) .ecard-title,
  .expertise-list:has(.expertise-card:hover) .expertise-card:not(:hover) .ecard-list li { color: #444; }
  .expertise-card:hover { background: #181818; }
  .expertise-card:hover .ecard-icon { transform: scale(1.15); }
  .expertise-card:hover .ecard-list li { color: var(--white); }

  .expertise-card:nth-child(1):hover rect { animation: bar 1.1s ease-in-out infinite; transform-origin: left center; transform-box: fill-box; }
  .expertise-card:nth-child(1):hover rect:nth-child(2) { animation-delay: .18s; }
  .expertise-card:nth-child(1):hover rect:nth-child(3) { animation-delay: .36s; }
  .expertise-card:nth-child(1):hover rect:nth-child(4) { animation-delay: .54s; }
  .expertise-card:nth-child(2):hover circle { animation: blinkSoft 1.2s ease-in-out infinite; }
  .expertise-card:nth-child(2):hover circle:nth-child(2) { animation-delay: .2s; }
  .expertise-card:nth-child(2):hover circle:nth-child(3) { animation-delay: .4s; }
  .expertise-card:nth-child(3):hover path { animation: blinkSoft 1.6s ease-in-out infinite; }
  .expertise-card:nth-child(3):hover path:nth-child(2) { animation-delay: .25s; }
  .expertise-card:nth-child(3):hover path:nth-child(3) { animation-delay: .5s; }
  .expertise-card:nth-child(4):hover circle { animation: pulse 1.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .expertise-card:nth-child(4):hover circle:nth-child(2) { animation-delay: .2s; }
  .expertise-card:nth-child(4):hover circle:nth-child(3) { animation-delay: .4s; }
  .expertise-card:nth-child(5):hover rect { animation: blinkSoft 1.3s ease-in-out infinite; }
  .expertise-card:nth-child(5):hover rect:nth-child(2) { animation-delay: .22s; }
  .expertise-card:nth-child(5):hover rect:nth-child(3) { animation-delay: .44s; }
  .expertise-card:nth-child(5):hover rect:nth-child(4) { animation-delay: .66s; }
}
@keyframes bar { 50% { transform: scaleX(1.3); } }
@keyframes blinkSoft { 50% { opacity: .15; } }
@keyframes pulse { 50% { transform: scale(1.18); } }

/* ─── SELECTED WORK ─── */
.featured-section {
  padding: 7rem var(--gutter) 6rem;
  background: var(--bg-deep);
}
.featured-section .section-heading { margin-bottom: 1rem; }
.work-intro {
  font-family: var(--font-heading);
  font-size: .98rem; line-height: 1.7;
  color: var(--text);
  max-width: 52ch;
  margin-bottom: 3.5rem;
}
.work-list { list-style: none; border-top: 1px solid var(--line-2); }
.wk {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 5rem;
  padding: 3.5rem 0 3.75rem;
  border-bottom: 1px solid var(--line-2);
}
.wk-left { min-width: 0; }
.wk-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .85rem; letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.wk-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
  transition: transform .4s var(--ease-out);
}
.wk:hover .wk-title { transform: translateX(.4rem); }
.wk-kicker {
  margin-top: .8rem;
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: 1.2rem;
  color: #c9c7c2;
}
.wk-intro {
  margin-top: 1.4rem;
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 300; line-height: 1.65;
  color: var(--text);
  max-width: 46ch;
}
.wk-diagram {
  margin-top: 2.2rem;
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid #1e1e1e;
  max-width: 460px;
}
.wk-svg { width: 100%; height: auto; overflow: visible; }
.wk-svg .sv-mono { font-size: 16px; }
.wk-svg .sv-c { font-size: 15px; }
.wk-svg .wk-on { fill: #2a2926; stroke: #cfcdc7; }
.wk-svg .wk-on-t { fill: var(--white); }

.wk-right { min-width: 0; padding-top: 2.6rem; }
.wk-bullets { list-style: none; border-top: 1px solid var(--line); }
.wk-bullets li {
  position: relative;
  padding: 1rem 0 1rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: .97rem; font-weight: 300; line-height: 1.6;
  color: var(--text);
}
.wk-bullets li::before {
  content: '';
  position: absolute; left: .1rem; top: 1.62rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: #6e6c68;
}
.wk-bullets strong { font-weight: 500; color: var(--white); }
.wk-stack {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .1em; line-height: 1.9;
  text-transform: uppercase;
  color: var(--muted);
}

.wk-labs-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2.4rem 2.2rem 2rem;
  background: var(--panel);
  border: 1px solid #1e1e1e;
  text-decoration: none;
  transition: border-color .3s;
}
.wk-labs-card:hover, .wk-labs-card:focus-visible { border-color: #4a4a4a; }
.wk-labs-mark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: .92; letter-spacing: -0.035em;
  color: var(--white);
}
.wk-labs-tag {
  font-family: var(--font-display);
  font-style: italic; font-weight: 200;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: #c9c7c2;
}
.wk-labs-link {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white);
}
.wk-labs-card:hover .wk-labs-link { text-decoration: underline; text-underline-offset: .25em; }

/* ─── OTHER REPOS ─── */
.work-section {
  padding: 7rem var(--gutter) 5rem;
  background: var(--bg-warm);
}
.work-section .section-heading { margin-bottom: 1rem; }
.work-description {
  font-family: var(--font-heading);
  font-size: .98rem; line-height: 1.7; letter-spacing: .01em;
  color: var(--text);
  max-width: 52ch;
  margin-bottom: 3rem;
}
.work-description a { color: var(--white); text-underline-offset: .2em; }
.project-list { border-top: 1px solid #262320; }
.project-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid #262320;
  text-decoration: none;
  transition: border-color .3s;
}
.project-index {
  font-family: var(--font-mono);
  font-size: 1rem; letter-spacing: .1em;
  color: var(--faint);
  padding-top: .4rem;
  transition: color .3s;
}
.project-name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #8a8784;
  overflow-wrap: anywhere;
  transition: transform .4s var(--ease-out), color .3s;
}
.project-sub {
  display: block;
  margin-top: .8rem;
  font-size: .8rem; font-weight: 400; line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase;
  color: #8a8784;
  transition: color .3s;
}
.project-quote {
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0; text-transform: none;
}
.project-arrow {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--faint);
  padding-top: .3rem;
  transition: color .3s, transform .3s var(--ease-out);
}
.project-row:hover, .project-row:focus-visible { border-bottom-color: #4a4643; }
.project-row:hover .project-name, .project-row:focus-visible .project-name { transform: translateX(.5rem); color: var(--white); }
.project-row:hover .project-sub, .project-row:focus-visible .project-sub { color: #cfcdc7; }
.project-row:hover .project-index, .project-row:focus-visible .project-index { color: var(--white); }
.project-row:hover .project-arrow, .project-row:focus-visible .project-arrow { color: var(--white); transform: translate(3px, -3px); }

/* ─── ABOUT ─── */
.about-section {
  padding: 8rem var(--gutter) 6rem;
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 6rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.about-section .section-heading { margin-bottom: 2.5rem; }
.about-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--text);
  max-width: 40em;
}
.about-text p + p { margin-top: 1.6em; }
.about-text a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(242,240,235,.4); }
.about-text a:hover { text-decoration-color: var(--white); }

.about-photo-wrap {
  position: relative;
  width: 65%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 3.5rem;
  background: #161616;
  border: 1px solid #222;
}
/* Fallback when me.jpg is missing: initials set like the hero name */
.about-photo-wrap::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic; font-weight: 200;
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: -0.04em;
  color: #6e6c68;
}
.about-photo-wrap::after {
  content: 'photo soon';
  position: absolute; left: 1rem; bottom: .9rem;
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: #6e6c68;
}
.about-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(100%);
  transition: filter .6s ease;
}
.about-photo-wrap:hover .about-photo { filter: grayscale(0%); }

.about-right-label {
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 400;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.about-role + .about-right-label { margin-top: 3rem; }
.about-role { margin-bottom: 1.6rem; }
.about-role-company {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 400;
  letter-spacing: .02em; line-height: 1.15;
  color: var(--white);
  margin-bottom: .35rem;
}
.about-role-company a { text-decoration: none; }
.about-role-company a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.about-role-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 300; font-style: italic;
  color: #a3a3a3;
  margin-bottom: .2rem;
}
.about-role-period {
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ─── ATHLETE ─── */
.athlete-section {
  padding: 7rem var(--gutter) 7rem;
  background: var(--bg-warm);
  border-top: 1px solid #1f1d1a;
}
.athlete-head {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 6rem;
  align-items: end;
  margin-bottom: 4.5rem;
}
.athlete-section .section-heading {
  font-size: clamp(3rem, 9vw, 9rem);
  margin-bottom: 0;
}
.athlete-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300; line-height: 1.4; letter-spacing: .01em;
  color: #c9c7c2;
  max-width: 34ch;
}
.athlete-ig {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  gap: .4em;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.athlete-ig:hover .fbl-l, .athlete-ig:focus-visible .fbl-l { transform: translateX(-4px); }
.athlete-ig:hover .fbl-r, .athlete-ig:focus-visible .fbl-r { transform: translateX(4px); }
.athlete-ig-note {
  flex-basis: 100%;
  margin-top: .35rem;
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: 1.05rem; letter-spacing: 0; text-transform: none;
  color: var(--muted);
  transition: color .3s;
}
.athlete-ig:hover .athlete-ig-note { color: var(--white); }

.race-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2b2825;
  border-bottom: 1px solid #2b2825;
}
.race-stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  gap: 1rem;
  padding: 2.2rem 1.5rem 2rem;
  border-left: 1px solid #2b2825;
}
.race-stat:first-child { border-left: none; padding-left: 0; }
.race-stat dd {
  font-family: var(--font-display);
  font-style: italic; font-weight: 200;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  line-height: .95;
  letter-spacing: -0.035em;
  color: var(--white);
  white-space: nowrap;
}
.race-stat dt {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* 21.1 km course line; --p is scroll progress set by the script */
.track { position: relative; margin: 4rem 0 4.5rem; --p: 1; }
.js .track { --p: 0; }
.track-svg { width: 100%; height: 56px; overflow: visible; }
.track-base { stroke: #34302c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.track-bar {
  position: absolute; left: 0; top: 27px;
  height: 2px; width: calc(var(--p) * 100%);
  background: var(--white);
}
.track-ticks line { stroke: #6f6b66; stroke-width: 1; vector-effect: non-scaling-stroke; }
.track-labels { position: relative; height: 1.4rem; margin-top: .5rem; }
.track-labels span {
  position: absolute; top: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.track-labels span:first-child { transform: none; }
.track-labels .track-end { transform: translateX(-100%); color: var(--white); }
.track-runner {
  position: absolute; top: 28px;
  left: calc(var(--p) * 100%);
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(242,240,235,.12);
}

.race-log { list-style: none; border-top: 1px solid #262320; }
.race-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.7rem 0;
  border-bottom: 1px solid #262320;
}
.race-name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.02em;
  color: #cfcdc7;
}
.race-row .project-sub { color: var(--muted); }
.race-time {
  font-family: var(--font-display);
  font-style: italic; font-weight: 200;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--white);
  white-space: nowrap;
}

.race-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4rem;
}
.race-photos:not(:has(figure)) { display: none; }
.race-photos figure { aspect-ratio: 4 / 5; overflow: hidden; background: #1c1a18; }
.race-photos img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: filter .6s ease, transform .7s cubic-bezier(0.77, 0, 0.175, 1);
}
.race-photos figure:hover img { filter: grayscale(0%); transform: scale(1.03); }

/* ─── PUNCHLINE ─── */
.punchline-section {
  padding: 10rem var(--gutter) 11rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.punchline-wrap { max-width: 820px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.punchline-quote-icon {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.05em;
  color: #3a3a3a;
  margin-bottom: 1.5rem;
  height: .55em;
}
.punchline-text {
  font-family: var(--font-display);
  font-style: italic; font-weight: 200;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.3; letter-spacing: -0.02em;
  color: #a3a3a3;
}
.punchline-text .hl { font-weight: 400; color: #fff; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-links-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem;
  padding: 3.5rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.footer-links-left { display: flex; flex-direction: column; gap: .5rem; }
.footer-links-eyebrow {
  font-family: var(--font-display);
  font-style: italic; font-weight: 200;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.01em;
  color: #a3a3a3;
}
.footer-links-email {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 300;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
  transition: color .3s;
  align-self: flex-start;
}
.footer-links-email::after {
  content: '↗'; font-size: .8em;
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .25s ease, transform .25s ease;
}
.footer-links-email:hover, .footer-links-email:focus-visible { color: var(--white); }
.footer-links-email:hover::after, .footer-links-email:focus-visible::after { opacity: 1; transform: none; }

.footer-links-buttons { display: flex; flex-direction: column; gap: .9rem; align-items: flex-end; }
.footer-barrel-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono);
  font-size: .95rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.fbl-bracket { display: inline-block; transition: transform .3s var(--ease-spring); }
.footer-barrel-link:hover .fbl-l, .footer-barrel-link:focus-visible .fbl-l { transform: translateX(-4px); }
.footer-barrel-link:hover .fbl-r, .footer-barrel-link:focus-visible .fbl-r { transform: translateX(4px); }
/* barrel roll: the label rolls up and an identical copy rolls in from below */
.fbl-drum {
  position: relative; display: inline-block;
  height: 1.2em; line-height: 1.2em;
  overflow: hidden;
  color: transparent;
}
.fbl-drum::before, .fbl-drum::after {
  content: attr(data-label);
  position: absolute; left: 0; top: 0;
  color: var(--white);
  white-space: nowrap;
  transition: transform .45s var(--ease-out);
}
.fbl-drum::after { transform: translateY(100%); }
.footer-barrel-link:hover .fbl-drum::before, .footer-barrel-link:focus-visible .fbl-drum::before { transform: translateY(-100%); }
.footer-barrel-link:hover .fbl-drum::after, .footer-barrel-link:focus-visible .fbl-drum::after { transform: translateY(0); }

.footer-name-wrap { padding: 4rem var(--gutter) 0; line-height: 0; }
.footer-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 35vw;
  line-height: .8;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  /* dot-matrix fill, a static nod to the reference's particle name */
  background: radial-gradient(circle, #8e8c88 1.15px, transparent 1.45px) 0 0 / 6px 6px;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transition: color .6s ease;
  user-select: none;
}
.footer-name:hover { color: #8e8c88; }
.footer-meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--gutter) 1.6rem;
  font-family: var(--font-heading);
  font-size: .78rem; color: var(--muted);
}

/* ─── TABLET ─── */
@media (max-width: 1024px) {
  :root { --gutter: 2rem; }
  nav { gap: 1.5rem; }
  .nav-line { min-width: 60px; }
  .philosophy-inner { gap: 3rem; grid-template-columns: 1fr 1fr; }
  .about-section { gap: 3rem; }
  .athlete-head { gap: 3rem; }
  .wk { gap: 3rem; }
  .race-stats { grid-template-columns: 1fr 1fr; }
  .race-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .race-stat:nth-child(-n+2) { border-bottom: 1px solid #2b2825; }
}

/* ─── MOBILE ─── */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .site-header { padding: 1.25rem var(--gutter) 1rem; }
  .site-header.scrolled { padding-top: 1rem; padding-bottom: .8rem; }
  .logo, .nav-icons { display: none; }
  nav { gap: .55rem; width: 100%; }
  .nav-link { flex: 1; min-width: 0; }
  .nav-line { min-width: 0; }
  .nav-label { font-size: .7rem; letter-spacing: .04em; }

  #p-tc, #p-mc, #p-ml, #p-mr { display: none; }
  #p-tl { top: 8%;  left: -3%;  width: 40%; height: 26%; }
  #p-tr { top: 10%; right: -3%; width: 42%; height: 21%; }
  #p-bl { bottom: 4%; left: -24%; width: 62%; height: 24%; }
  #p-bc { bottom: -6%; left: 42%; width: 28%; height: 28%; }
  #p-br { bottom: 12%; right: -3%; width: 40%; height: 20%; }
  .pimg.in { opacity: .55; }

  .hero-text { padding-bottom: 6vh; }
  .hero-roles { font-size: .72rem; gap: .45em; }
  .hero-sub { font-size: .68rem; letter-spacing: .08em; padding: 0 .5rem; }
  .hero-sub br { display: none; }

  .philosophy-section { padding: 6rem var(--gutter) 5rem; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .expertise-card { padding: 1.4rem 1rem 1.4rem 0; }
  .expertise-card:nth-child(even) { padding-left: 1rem; padding-right: 0; }
  .ecard-list li { font-size: .82rem; }

  .featured-section { padding: 5rem var(--gutter) 4rem; }
  .work-intro { margin-bottom: 2.5rem; }
  .wk { grid-template-columns: 1fr; gap: 0; padding: 2.5rem 0 2.75rem; }
  .wk-num { margin-bottom: 1rem; }
  .wk-title { font-size: 1.85rem; }
  .wk-kicker { font-size: 1.08rem; }
  .wk-intro { font-size: 1rem; }
  .wk-diagram { margin-top: 1.6rem; padding: .8rem .9rem; }
  .wk-right { padding-top: 1.8rem; }
  .wk-bullets li { font-size: .94rem; padding: .9rem 0 .9rem 1.3rem; }
  .wk-bullets li::before { top: 1.5rem; }
  .wk-stack { font-size: .68rem; letter-spacing: .08em; }
  .wk-labs-card { padding: 1.8rem 1.4rem 1.6rem; }

  .work-section { padding: 5rem var(--gutter) 4rem; }
  .project-row { grid-template-columns: 2rem 1fr auto; gap: .9rem; padding: 1.3rem 0; }
  .project-index { font-size: .8rem; padding-top: .35rem; }
  .project-sub { font-size: .7rem; margin-top: .55rem; }
  .project-quote { font-size: .95rem; }
  .project-name { font-size: 1.5rem; overflow-wrap: normal; }
  .project-arrow { font-size: 1.2rem; }

  .about-section { grid-template-columns: 1fr; gap: 4rem; padding: 6rem var(--gutter) 5rem; }
  .about-photo-wrap { width: 62%; margin-bottom: 2.5rem; }

  .athlete-section { padding: 5rem var(--gutter) 5rem; }
  .athlete-head { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
  .athlete-section .section-heading { font-size: 4rem; }
  .athlete-ig { font-size: .9rem; }
  .race-stat { padding: 1.5rem 0 1.4rem 1rem; gap: .7rem; }
  .race-stat:nth-child(odd) { border-left: none; padding-left: 0; padding-right: 1rem; }
  .race-stat dd { font-size: 2.6rem; }
  .race-stat dt { font-size: .72rem; letter-spacing: .08em; }
  .track { margin: 3rem 0 3.5rem; }
  .track-labels span { font-size: .62rem; letter-spacing: .08em; }
  .race-row { grid-template-columns: 1fr auto; gap: 1rem; padding: 1.3rem 0; }
  .race-row .project-index { display: none; }
  .race-name { font-size: 1.45rem; }
  .race-time { font-size: 1.9rem; }
  .race-photos { grid-template-columns: 1fr 1fr; margin-top: 3rem; }

  .punchline-section { padding: 6rem var(--gutter) 7rem; }

  .footer-links-row { flex-direction: column; align-items: flex-start; gap: 2.5rem; padding: 3rem var(--gutter); }
  .footer-links-buttons { align-items: flex-start; gap: .4rem; }
  .footer-links-buttons a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-name-wrap { padding-top: 3rem; }
  .footer-name { background-size: 4px 4px; background-image: radial-gradient(circle, #8e8c88 .8px, transparent 1px); }
  .footer-meta { flex-direction: column; gap: .3rem; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .pimg { opacity: 1; transform: none !important; }
  .pimg.small { opacity: .5; }
}
