:root {
  --page-max: 1120px;
  --page-pad: clamp(20px, 4vw, 48px);
  --section-space: clamp(56px, 8vw, 104px);
  --header-height: 59px;
  --anchor-gap: clamp(18px, 3vh, 30px);
  --anchor-offset: calc(var(--header-height) + var(--anchor-gap));
  --section-padding-y: clamp(42px, 5vw, 58px);
  --final-footer-space: clamp(210px, 24vh, 230px);
  --card-gap: clamp(16px, 2vw, 24px);
  --bg: #f8f7f1;
  --surface: #fffefb;
  --text: #17211d;
  --muted: #5d6b62;
  --subtle: #7a867d;
  --accent: #686B67;
  --accent-dark: #525652;
  --accent-soft: #EEEFEA;
  --border: #D8DAD5;
  --border-strong: #D8DAD5;
  --radius-card: 8px;
  --radius-image: 8px;
  --focus: #686B67;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.loading-state,
.error-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  text-align: center;
  color: var(--muted);
}

.wrap {
  width: min(100% - (var(--page-pad) * 2), var(--page-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  min-height: calc(var(--header-height) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.wordmark {
  flex: 0 0 auto;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.site-nav a {
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.site-nav a.nav-race-history {
  background: var(--accent-soft);
}

.site-nav a.nav-race-history:hover,
.site-nav a.nav-race-history:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--border));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr);
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  align-content: center;
  gap: clamp(28px, 4vw, 52px);
  padding-block: clamp(30px, 5vh, 50px) clamp(30px, 5vh, 50px);
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
}

.hero h1 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.82rem, 5.05vw, 4.55rem);
  line-height: 0.96;
}

.name-western,
.name-cjk {
  display: block;
  white-space: nowrap;
}

.name-cjk {
  font-size: 0.64em;
  line-height: 1.02;
}

.identity {
  margin: 18px 0 9px;
  color: var(--text);
  font-size: clamp(0.94rem, 1vw, 1.04rem);
  font-weight: 650;
  line-height: 1.34;
  overflow-wrap: break-word;
  white-space: nowrap;
}

.positioning,
.hero-meta {
  color: var(--text);
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 560;
}

.positioning {
  margin: 0 0 14px;
}

.hero-meta {
  display: grid;
  gap: 1px;
  margin-bottom: 17px;
}

.hero-intro {
  max-width: 52ch;
  margin: 0;
  color: #314039;
  font-size: 1.02rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button-link,
.proof-link,
.story-toggle {
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  padding: 11px 16px;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-link.primary {
  background: var(--accent);
  color: #fff;
}

.button-link.primary:hover,
.button-link.primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button-link.secondary {
  background: transparent;
  color: var(--text);
}

.button-link.secondary:hover,
.button-link.secondary:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.resume-link {
  align-self: flex-end;
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 0;
  text-decoration: none;
  transition: color 140ms ease;
  white-space: nowrap;
}

.hero-resume-link {
  align-self: center;
}

.resume-link:hover,
.resume-link:focus-visible {
  color: var(--accent-dark);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 456px);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-image);
  overflow: hidden;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
}

.section {
  scroll-margin-top: 0;
  padding-block: var(--section-padding-y);
}

.section + .section {
  padding-top: var(--section-padding-y);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title-group {
  max-width: 720px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.race-history-page {
  min-height: calc(100svh - var(--header-height));
}

.race-history-header {
  margin-bottom: 24px;
}

.race-history-page h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
}

.race-history-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

.race-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0 0 24px;
}

.race-summary div {
  min-width: 0;
}

.race-summary dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.race-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.race-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.race-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--text);
}

.race-history-table th,
.race-history-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.race-history-table th {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.race-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.race-event-name,
.race-result {
  font-weight: 700;
}

.race-proof-link {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}

.race-proof-link:hover,
.race-proof-link:focus-visible {
  color: var(--accent-dark);
}

.race-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.coach-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.training-video-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  color: var(--subtle);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.training-video-links a {
  color: var(--accent);
  text-decoration: none;
}

.training-video-links a:hover,
.training-video-links a:focus-visible {
  color: var(--accent-dark);
}

.highlight-grid,
.training-grid,
.academic-grid {
  display: grid;
  gap: var(--card-gap);
}

.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card,
.info-card,
.academic-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.highlight-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 27px 24px 22px;
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent);
}

.highlight-event,
.info-label,
.academic-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

.academic-label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.highlight-result {
  margin: 12px 0 8px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.3rem);
  font-weight: 800;
  line-height: 0.96;
  white-space: nowrap;
}

.highlight-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.highlight-note {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.proof-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--accent);
  padding-top: 16px;
}

.highlight-actions {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 16px;
}

.highlight-actions .proof-link {
  margin-top: 0;
  padding-top: 0;
}

.proof-link:hover,
.proof-link:focus-visible {
  color: var(--accent-dark);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  padding-block: calc(var(--section-space) * 0.34);
}

.photo-strip figure,
.story-image,
.hub-image {
  margin: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
  background: var(--surface);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-strip figure:first-child img {
  object-position: center center;
}

.photo-strip figure:last-child img {
  object-position: center center;
}

.training-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  min-height: 154px;
  padding: 23px 24px 22px;
  border-left: 5px solid var(--accent);
}

.info-value,
.academic-value {
  margin: 12px 0 0;
  color: #2f3d36;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
}

.story-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
}

.story-copy {
  max-width: 64ch;
}

.story-copy p {
  margin: 0 0 18px;
  color: #2e3b35;
  font-size: 1.02rem;
}

.story-more[hidden] {
  display: none;
}

.story-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  padding: 9px 14px;
}

.story-toggle:hover,
.story-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hub-section {
  border-block: 1px solid var(--border);
  background: #fbfaf5;
}

.hub-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.hub-intro {
  position: sticky;
  top: var(--anchor-offset);
}

.hub-header {
  margin-bottom: 24px;
}

.hub-kicker,
.hub-section .section-note {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hub-kicker {
  margin: 0 0 6px;
  font-weight: 600;
}

.hub-section .section-note {
  font-weight: 400;
}

.hub-photos {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hub-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hub-image iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--surface);
}

.hub-image:first-child img {
  object-position: center center;
}

.hub-image:last-child img {
  object-position: center 74%;
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 2px 0 18px 28px;
  border-left: 1px solid var(--border-strong);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 750;
}

.timeline-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.2;
}

.timeline-text {
  margin: 0;
  color: #34443c;
}

.academic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.academic-card {
  min-height: 156px;
  padding: 22px 23px;
}

.academic-value {
  white-space: pre-line;
}

.pending-value {
  display: grid;
  gap: 6px;
}

.pending-value .pending-meta {
  color: var(--subtle);
  font-size: 0.92rem;
}

.beyond-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.beyond-item {
  text-align: center;
}

.beyond-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.beyond-image-wrap {
  display: grid;
  width: min(210px, 64vw);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color 150ms ease, transform 150ms ease;
}

.beyond-trigger:hover .beyond-image-wrap,
.beyond-trigger:focus-visible .beyond-image-wrap,
.beyond-item.is-open .beyond-image-wrap {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.beyond-trigger:focus-visible {
  outline: 0;
}

.beyond-trigger:focus-visible .beyond-image-wrap {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 5px;
}

.beyond-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beyond-item:nth-child(1) img {
  object-position: center 36%;
}

.beyond-item:nth-child(2) img {
  object-position: center center;
}

.beyond-item:nth-child(3) img {
  object-position: center 40%;
}

.beyond-label {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.18;
}

.beyond-copy {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 160ms ease, opacity 140ms ease, transform 140ms ease;
}

.beyond-item:hover .beyond-copy,
.beyond-item:focus-within .beyond-copy,
.beyond-item.is-open .beyond-copy {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

.beyond-copy-lines {
  display: grid;
  gap: 2px;
  max-width: 24ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.38;
}

#beyond-running {
  min-height: calc(100svh - var(--header-height) - var(--final-footer-space));
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(36px, 4vw, 48px) clamp(42px, 5vw, 62px);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.thanks {
  margin: 0 0 clamp(32px, 4vw, 46px);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2vw, 1.72rem);
  font-weight: 700;
  text-align: center;
}

.footer-contact-row {
  width: 100%;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-contacts div {
  display: flex;
  gap: 7px;
}

.footer-contacts dt {
  color: var(--text);
  font-weight: 700;
}

.footer-contacts dd {
  margin: 0;
}

.footer-contacts a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contacts a:hover,
.footer-contacts a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.last-updated {
  justify-self: center;
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 940px) {
  :root {
    --header-height: 94px;
    --anchor-gap: 22px;
    --section-padding-y: 42px;
    --final-footer-space: 232px;
  }

  .nav-shell {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .story-grid,
  .hub-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding-block: 30px 42px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .identity {
    white-space: normal;
  }

  .hero-media {
    justify-self: start;
    width: min(100%, 560px);
  }

  .hub-intro {
    position: static;
  }

  .highlight-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card,
  .info-card {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 122px;
    --anchor-gap: 18px;
    --section-padding-y: 42px;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding-block: var(--section-padding-y);
  }

  .section-header {
    display: block;
    margin-bottom: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 4px 6px;
    overflow-x: auto;
  }

  .site-nav a {
    font-size: 0.82rem;
    padding: 7px 8px;
  }

  .coach-note {
    margin-top: 10px;
    text-align: left;
  }

  .training-video-links {
    justify-content: flex-start;
    margin-top: 10px;
    text-align: left;
  }

  .race-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    padding-block: 28px 36px;
  }

  .hero-media {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.58rem, 11.6vw, 3.72rem);
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .photo-strip,
  .academic-grid,
  .beyond-list {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    padding-block: 28px;
  }

  .photo-strip img {
    aspect-ratio: 4 / 3;
  }

  .beyond-list {
    gap: 32px;
  }

  #beyond-running {
    min-height: auto;
  }

  .beyond-image-wrap {
    width: min(184px, 58vw);
  }

  .beyond-item:hover .beyond-copy,
  .beyond-item:focus-within .beyond-copy,
  .beyond-item.is-open .beyond-copy {
    max-height: 220px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .footer-contacts {
    display: grid;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .footer-contacts div {
    display: grid;
    gap: 0;
  }

  .last-updated {
    justify-self: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
