﻿:root {
  --bg: #0b1220;
  --bg-soft: #111a2d;
  --surface: rgba(18, 27, 44, 0.72);
  --surface-strong: rgba(16, 24, 40, 0.9);
  --text: #f5f7fb;
  --muted: #b7c3d8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #89e6cf;
  --accent-2: #dfb073;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shell: min(1240px, calc(100% - 40px));
  --section-space: clamp(62px, 6.4vw, 104px);
  --card-pad: clamp(20px, 2.2vw, 30px);
  --body-size: clamp(15px, 0.16vw + 14px, 17px);
  --small-size: clamp(13px, 0.08vw + 12px, 14px);
  --nav-size: clamp(13px, 0.12vw + 12px, 15px);
  --h1-size: clamp(2.2rem, 4vw, 3.9rem);
  --h2-size: clamp(1.82rem, 2.5vw, 2.7rem);
  --h3-size: clamp(1.04rem, 0.8vw + 0.86rem, 1.24rem);
}
body[data-theme='light'] {
  --bg: #f5efe6;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #182235;
  --muted: #617089;
  --line: rgba(24, 34, 53, 0.1);
  --accent: #0f8d75;
  --accent-2: #b57b31;
  --shadow: 0 24px 70px rgba(32, 44, 66, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: auto; overflow-x: hidden; height: auto; }
body.intro-active { overflow-y: auto; }
body { overflow-x: hidden; overflow-y: auto; min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--body-size);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 14% 16%, rgba(137, 230, 207, 0.14), transparent 18%),
    radial-gradient(circle at 84% 12%, rgba(223, 176, 115, 0.14), transparent 14%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  transition: background 220ms ease, color 220ms ease;
}
img { display: block; width: 100%; height: auto; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 14%, transparent 78%);
}
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 230, 207, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(137, 230, 207, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(6, 12, 23, 0.96), rgba(7, 12, 22, 0.99));
  transition: opacity 720ms ease, visibility 720ms ease;
}
body[data-theme='light']  .intro-screen {
  background:
    radial-gradient(circle at 50% 40%, rgba(15, 141, 117, 0.11), transparent 18%),
    linear-gradient(180deg, rgba(246, 241, 232, 0.99), rgba(244, 239, 230, 0.99));
}
.intro-screen.is-entering {
  opacity: 0;
  visibility: hidden;
}
.intro-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.98), rgba(7, 13, 24, 1));
  transition: transform 900ms cubic-bezier(.22,1,.36,1), opacity 900ms ease;
}
body[data-theme='light'] .intro-shutter {
  background: linear-gradient(180deg, rgba(246, 241, 232, 0.98), rgba(246, 241, 232, 1));
}
.intro-shutter-left {
  left: -2%;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.intro-shutter-right {
  right: -2%;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.intro-screen.is-entering .intro-shutter-left {
  transform: translateX(-120%);
  opacity: 0.2;
}
.intro-screen.is-entering .intro-shutter-right {
  transform: translateX(120%);
  opacity: 0.2;
}
.intro-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22vw;
  height: 22vw;
  min-width: 220px;
  min-height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 230, 207, 0.22), transparent 68%);
  transform: translate(-50%, -50%) scale(0.8);
  filter: blur(10px);
  transition: transform 900ms cubic-bezier(.22,1,.36,1), opacity 900ms ease;
}
.intro-screen.is-entering .intro-glow {
  transform: translate(-50%, -50%) scale(2.2);
  opacity: 0;
}
.intro-inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  text-align: center;
  pointer-events: auto;
  transition: transform 700ms cubic-bezier(.22,1,.36,1), opacity 700ms ease;
}
.intro-screen.is-entering .intro-inner {
  transform: translateY(-18px) scale(0.96);
  opacity: 0;
}
.intro-eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  letter-spacing: 0.28em;
  font-size: var(--small-size);
  font-weight: 700;
}
.intro-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.08;
}
.intro-copy {
  margin: 18px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.16rem);
}
.intro-button {
  margin-top: 28px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #fff2da);
  color: #071119;
  font-size: var(--small-size);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(137, 230, 207, 0.16);
}
.intro-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--small-size);
}
.intro-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(137,230,207,0.8) 55%, rgba(137,230,207,0) 72%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.intro-screen.is-entering .intro-particle {
  animation: particle-burst 1100ms cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes particle-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0,0,0) scale(0.2);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--tx), var(--ty), 0) scale(1.9);
  }
}
.shell, .site-header { width: var(--shell); margin: 0 auto; }
.section { padding: var(--section-space) 0; position: relative; z-index: 1; scroll-margin-top: 88px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 1.8vw, 18px);
  padding: 12px 0;
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; }
.brand-mark { width: 12px; height: 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 20px rgba(137, 230, 207, 0.45); }
.site-nav { display: flex; justify-content: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04); overflow-x: auto; }
.site-nav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-size: var(--nav-size); padding: 8px 14px; border-radius: 999px; transition: background 180ms ease, color 180ms ease; }
.site-nav a.is-active, .site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.theme-toggle { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text); font-size: var(--small-size); cursor: pointer; }
.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding-top: 8px;
}
.eyebrow { margin: 0 0 12px; color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; font-size: var(--small-size); font-weight: 700; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", "Songti SC", serif; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--h1-size); max-width: 11ch; letter-spacing: -0.03em; }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); margin-bottom: 10px; }
.hero-summary, .section-heading p, .text-card p, .project-card p, .contact-list li, .site-footer, .media-card figcaption, .contact-card p, .timeline-body li, .timeline-body p { color: var(--muted); }
.hero-summary { margin: 14px 0 0; max-width: 48ch; font-size: clamp(0.96rem, 0.18vw + 0.92rem, 1.04rem); line-height: 1.66; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-size: var(--small-size); font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #071119; background: linear-gradient(135deg, var(--accent), #fff2da); box-shadow: 0 16px 40px rgba(137, 230, 207, 0.16); }
.button-secondary { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.hero-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.hero-results article { padding: 14px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.04); }
.hero-results strong { display: block; font-size: clamp(1.08rem, 1.35vw, 1.34rem); color: var(--text); }
.hero-results span { color: var(--muted); font-size: 12px; }
.hero-points, .contact-list { margin: 0; padding: 0; list-style: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li, .filter-button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04); font-size: var(--small-size); }
.hero-stage { display: flex; justify-content: center; align-items: center; }
.portrait-frame { width: min(248px, 42vw); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--surface-strong); box-shadow: var(--shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.portrait-frame img { height: 100%; object-fit: cover; }
.section-heading { margin-bottom: clamp(18px, 2.2vw, 26px); }
.section-heading p { max-width: 58ch; font-size: clamp(0.92rem, 0.18vw + 0.88rem, 1rem); }
.text-card, .project-card, .media-card, .contact-card, .timeline-body { padding: var(--card-pad); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.text-section .text-card p { margin: 0; }
.timeline { display: grid; gap: 22px; }
.timeline-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(14px, 2vw, 20px); align-items: start; }
.timeline-meta span { display: block; margin-bottom: 8px; color: var(--accent); font-size: var(--small-size); }
.timeline-meta strong { color: var(--muted); font-size: clamp(0.88rem, 0.16vw + 0.84rem, 0.96rem); }
.timeline-body p, .timeline-body li, .project-card p, .media-card figcaption, .contact-card p, .contact-list li, .text-card p { font-size: clamp(0.92rem, 0.18vw + 0.88rem, 1rem); }
.timeline-body ul { margin: 12px 0 0; padding-left: 18px; }
.detail-block { overflow: hidden; transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease; }
.detail-block.is-collapsed { max-height: 0; opacity: 0; margin-top: 0; }
.detail-block:not(.is-collapsed) { max-height: 1200px; opacity: 1; margin-top: 8px; }
.compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-button { color: var(--muted); cursor: pointer; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; }
.filter-button.is-active, .filter-button:hover { color: var(--text); border-color: rgba(137,230,207,0.36); background: rgba(137,230,207,0.08); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.media-card { padding: 14px; cursor: pointer; }
.media-card img {
  width: 100%;
  height: clamp(240px, 18vw, 320px);
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 10px;
}
.media-card.is-hidden { display: none; }
.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(18px, 2.8vw, 24px); align-items: center; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.contact-list span { min-width: 56px; }
.contact-list a, .contact-list strong { color: var(--text); text-decoration: none; }
.contact-card { text-align: center; }
.contact-card img { width: min(100%, 138px); margin: 0 auto 10px; aspect-ratio: 1 / 1; object-fit: contain; }
.site-footer { padding: 0 0 18px; font-size: var(--small-size); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-tilt:hover { border-color: rgba(137,230,207,0.36); box-shadow: 0 28px 80px rgba(0,0,0,0.24); }
.lightbox { width: min(92vw, 1100px); border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: var(--surface-strong); color: var(--text); }
.lightbox::backdrop { background: rgba(5, 8, 15, 0.82); }
.lightbox img { max-height: 74vh; object-fit: contain; border-radius: 16px; }
.lightbox-close { display: block; margin-left: auto; border: 0; background: transparent; color: var(--text); font-size: 2rem; cursor: pointer; }
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; }
  .hero, .contact-section, .compact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 8px; }
  .hero-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  h1 { max-width: none; }
}
@media (max-width: 640px) {
  :root { --shell: min(calc(100% - 28px), 1180px); }
  .hero-results { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .button { width: 100%; }
  .portrait-frame { width: min(210px, 58vw); }
  .contact-card img { width: min(100%, 140px); }
}

@media (max-width: 1320px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .hero {
    min-height: calc(100svh - 74px);
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
    gap: 18px;
  }

  h1 {
    font-size: clamp(1.85rem, 3vw, 2.95rem);
    max-width: 14ch;
  }

  .hero-summary {
    font-size: 0.92rem;
    margin-top: 10px;
  }

  .hero-results {
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-results article {
    padding: 10px 10px;
  }

  .hero-results strong {
    font-size: 1rem;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points li {
    padding: 8px 12px;
    font-size: 12px;
  }

  .portrait-frame {
    width: min(230px, 42vw);
  }
}



.intro-title {
  max-width: 8ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.intro-title span {
  display: block;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(216px, 0.44fr);
  gap: clamp(18px, 2.6vw, 36px);
}

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

.portrait-frame {
  width: min(236px, 38vw);
}

.site-footer p {
  margin: 0;
}

.project-card-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.project-card-link:hover {
  border-bottom-color: currentColor;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: currentColor;
}

body.site-entering .site-header,
body.site-entering main,
body.site-entering .site-footer {
  animation: site-reveal 900ms cubic-bezier(.18,.9,.22,1) both;
}

@keyframes site-reveal {
  0% {
    opacity: 0;
    transform: scale(0.985) translateY(26px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .intro-title {
    max-width: 10ch;
  }

  .intro-title span {
    display: inline;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(196px, 0.4fr);
    gap: 16px;
    align-items: start;
    padding-top: 4px;
  }

  h1 {
    font-size: clamp(1.72rem, 2.4vw, 2.56rem);
    max-width: 10ch;
  }

  .hero-summary {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .hero-actions {
    margin: 14px 0 12px;
  }

  .hero-results {
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-results article {
    padding: 10px;
    border-radius: 16px;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points li {
    padding: 7px 12px;
    font-size: 12px;
  }

  .portrait-frame {
    width: min(208px, 34vw);
  }
}

:root {
  --shell: min(1440px, calc(100% - 64px));
}

@media (min-width: 981px) {
  .hero {
    min-height: calc(100svh - 84px);
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.72fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: center;
  }

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

  h1 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 4.2vw, 4.8rem);
  }

  .hero-summary {
    max-width: 52ch;
    font-size: clamp(1rem, 0.2vw + 0.96rem, 1.12rem);
  }

  .hero-actions {
    margin: 22px 0 20px;
  }

  .hero-results {
    gap: 16px;
    margin-bottom: 18px;
  }

  .hero-results article {
    min-height: 96px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-results strong {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    margin-bottom: 6px;
  }

  .hero-points {
    gap: 12px;
  }

  .hero-points li {
    padding: 10px 16px;
  }

  .portrait-frame {
    width: min(360px, 28vw);
    border-radius: 28px;
  }

  .contact-section {
    min-height: calc(100svh - 84px);
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(28px, 3vw, 44px);
    align-items: center;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .hero {
    min-height: calc(100svh - 84px);
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.62fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.24rem, 3.1vw, 3.4rem);
    max-width: 9ch;
  }

  .hero-summary {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin: 18px 0 16px;
  }

  .hero-results {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-results article {
    min-height: 82px;
    padding: 14px;
    border-radius: 18px;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points li {
    padding: 8px 14px;
    font-size: 13px;
  }

  .portrait-frame {
    width: min(300px, 24vw);
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(calc(100% - 28px), 1240px);
  }
}


:root {
  --shell: min(1360px, calc(100% - 56px));
}

.section {
  padding: clamp(54px, 6vw, 92px) 0;
}

@media (min-width: 981px) {
  .hero {
    min-height: calc(100svh - 92px);
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
    gap: clamp(32px, 4.2vw, 80px);
    align-items: center;
  }

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

  h1 {
    max-width: 8.8ch;
    font-size: clamp(3rem, 4.1vw, 4.6rem);
  }

  .hero-summary {
    max-width: 46ch;
  }

  .hero-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    gap: 14px;
  }

  .hero-results article {
    min-height: 104px;
  }

  .hero-points {
    max-width: 620px;
  }

  .portrait-frame {
    width: min(372px, 100%);
    margin-left: auto;
  }

  .text-section {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(26px, 3vw, 44px);
    align-items: start;
  }

  .text-section .section-heading {
    margin: 0;
    position: sticky;
    top: 110px;
  }

  .text-section .text-card {
    min-height: 100%;
    padding: clamp(24px, 2.4vw, 34px);
  }

  .timeline {
    gap: 28px;
  }

  .timeline-item {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .contact-section {
    min-height: auto;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 360px);
    gap: clamp(28px, 3vw, 52px);
    align-items: center;
  }

  .contact-copy {
    max-width: 620px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card img {
    width: min(100%, 200px);
    margin: 0 auto 12px;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .hero {
    min-height: calc(100svh - 92px);
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.7fr);
    gap: clamp(24px, 3vw, 56px);
  }

  h1 {
    font-size: clamp(2.4rem, 3.3vw, 3.6rem);
    max-width: 8.6ch;
  }

  .hero-summary {
    font-size: 0.98rem;
  }

  .hero-results {
    gap: 12px;
  }

  .hero-results article {
    min-height: 88px;
    padding: 14px 16px;
  }

  .portrait-frame {
    width: min(320px, 100%);
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(calc(100% - 28px), 1240px);
  }

  .text-section {
    display: block;
  }

  .text-section .section-heading {
    position: static;
    margin-bottom: 18px;
  }
}

@media (min-width: 981px) {
  .contact-section {
    min-height: calc(100svh - 150px);
    padding-top: 26px;
    padding-bottom: 28px;
    align-items: start;
  }

  .contact-copy {
    padding-top: 12px;
  }

  .contact-card {
    padding: 18px 18px 12px;
  }

  .contact-card img {
    width: min(100%, 184px);
    margin: 0 auto 8px;
  }

  .contact-card p {
    margin: 6px 0 0;
  }

  .site-footer {
    padding-bottom: 10px;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .contact-section {
    min-height: calc(100svh - 132px);
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .contact-card {
    padding: 16px 16px 10px;
  }

  .contact-card img {
    width: min(100%, 170px);
  }
}

@media (min-width: 981px) {
  .contact-section {
    grid-template-columns: minmax(0, 1.12fr) 300px;
  }

  .contact-card {
    width: 300px;
    margin-left: auto;
    padding: 14px 14px 10px;
  }

  .contact-card img {
    width: min(100%, 156px);
    margin: 0 auto 6px;
  }

  .contact-card p {
    font-size: 0.94rem;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .contact-section {
    grid-template-columns: minmax(0, 1.12fr) 280px;
  }

  .contact-card {
    width: 280px;
    padding: 12px 12px 8px;
  }

  .contact-card img {
    width: min(100%, 148px);
  }
}

@media (min-width: 981px) {
  .contact-section {
    min-height: calc(100svh - 190px);
    grid-template-columns: minmax(0, 1.16fr) 220px;
    gap: clamp(22px, 2.6vw, 40px);
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .contact-card {
    width: 220px;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    padding: 12px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border-radius: 24px;
  }

  .contact-card img {
    width: 156px;
    margin: 0;
  }

  .contact-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .site-footer {
    padding-bottom: 6px;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .contact-section {
    min-height: calc(100svh - 172px);
    grid-template-columns: minmax(0, 1.16fr) 204px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .contact-card {
    width: 204px;
    padding: 10px;
    border-radius: 22px;
  }

  .contact-card img {
    width: 144px;
  }
}

@media (min-width: 981px) {
  .contact-section {
    min-height: calc(100svh - 240px);
    grid-template-columns: minmax(0, 1.18fr) 180px;
    gap: clamp(18px, 2.2vw, 32px);
    padding-top: 6px;
    padding-bottom: 4px;
    align-items: center;
  }

  .contact-card {
    width: 180px;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    justify-items: center;
    align-content: center;
    gap: 10px;
  }

  .contact-card img {
    width: 180px;
    margin: 0;
  }

  .contact-card p {
    margin: 0;
  }

  .site-footer {
    padding-bottom: 4px;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .contact-section {
    min-height: calc(100svh - 220px);
    grid-template-columns: minmax(0, 1.18fr) 170px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .contact-card {
    width: 170px;
  }

  .contact-card img {
    width: 170px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(calc(100% - 24px), 1240px);
    --section-space: 44px;
  }

  body::before,
  .cursor-glow {
    display: none;
  }

  .site-header {
    position: relative;
    gap: 10px;
    padding: 12px 0 6px;
  }

  .brand {
    gap: 10px;
    font-size: 1.06rem;
    letter-spacing: 0.02em;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 6px;
    padding: 4px;
    width: 100%;
    border-radius: 22px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 9px 14px;
    font-size: 0.98rem;
  }

  .theme-toggle {
    width: 100%;
    min-height: 44px;
    border-radius: 22px;
  }

  .intro-inner {
    width: min(100% - 28px, 540px);
  }

  .intro-title {
    max-width: 7ch;
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    line-height: 1.12;
  }

  .intro-copy {
    max-width: 20ch;
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding-top: 12px;
  }

  .hero-copy {
    max-width: none;
  }

  .eyebrow {
    margin-bottom: 10px;
    letter-spacing: 0.18em;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(2rem, 10.5vw, 3rem);
    line-height: 1.06;
    text-wrap: pretty;
  }

  .hero-summary {
    max-width: 18ch;
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 10px;
    margin: 16px 0 14px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }

  .hero-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-results article {
    min-height: 84px;
    padding: 12px;
    border-radius: 16px;
  }

  .hero-results strong {
    font-size: 1.5rem;
  }

  .hero-results span {
    font-size: 0.86rem;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points li,
  .filter-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .portrait-frame {
    width: min(100%, 240px);
    margin: 0 auto;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .text-card,
  .project-card,
  .media-card,
  .timeline-body,
  .contact-card {
    border-radius: 18px;
    padding: 16px;
  }

  .timeline {
    gap: 16px;
  }

  .timeline-body ul {
    padding-left: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-section {
    gap: 16px;
  }

  .contact-copy {
    order: 1;
  }

  .contact-card {
    order: 2;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .contact-card img {
    width: 148px;
    margin: 0 auto 8px;
  }

  .contact-card p {
    margin: 0;
    text-align: center;
  }

  .site-footer {
    padding-bottom: 10px;
  }
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-width: 44px;
  padding: 0;
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  font-size: 1rem;
  line-height: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.72);
}

body[data-theme='light'] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.72);
}

body[data-theme='light'] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0 6px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 1rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    gap: 8px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.88rem;
    scroll-snap-align: start;
  }

  .theme-toggle {
    position: relative;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-left: auto;
    border-radius: 999px;
  }

  main {
    overflow: hidden;
  }

  .hero {
    min-height: calc(100svh - 108px);
    grid-template-columns: minmax(0, 1.02fr) minmax(132px, 0.82fr);
    align-items: start;
    gap: 14px;
    padding-top: 8px;
    padding-bottom: 18px;
  }

  .hero-copy {
    display: grid;
    align-content: start;
    gap: 10px;
  }

  .eyebrow {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  h1 {
    max-width: 4.8ch;
    font-size: clamp(2.05rem, 11vw, 3.1rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
  }

  .hero-summary {
    max-width: none;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0 0;
  }

  .button {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .hero-stage {
    align-self: end;
    justify-content: flex-end;
    padding-top: 42px;
  }

  .portrait-frame {
    width: min(100%, 178px);
    margin: 0;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }

  .hero-results {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0 0;
  }

  .hero-results article {
    min-height: 0;
    padding: 10px 8px;
    border-radius: 16px;
  }

  .hero-results strong {
    font-size: 0.98rem;
    margin-bottom: 2px;
  }

  .hero-results span {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .hero-points {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .hero-points li {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .section {
    padding: 42px 0;
  }

  .text-card,
  .project-card,
  .media-card,
  .timeline-body,
  .contact-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .gallery-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-button {
    min-height: 40px;
    padding: 8px 10px;
    text-align: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  :root {
    --shell: calc(100% - 18px);
    --section-space: 40px;
  }

  .site-header {
    gap: 8px 10px;
    padding-top: 8px;
  }

  .site-nav a {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: calc(100svh - 100px);
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 12px;
    padding-top: 6px;
  }

  h1 {
    max-width: 4.5ch;
    font-size: clamp(1.9rem, 11vw, 2.7rem);
  }

  .hero-summary {
    font-size: 0.81rem;
    line-height: 1.45;
  }

  .button {
    min-height: 40px;
    font-size: 0.9rem;
  }

  .portrait-frame {
    width: 126px;
    border-radius: 22px;
  }

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

  .hero-results article {
    padding: 10px;
  }

  .hero-points li {
    font-size: 0.76rem;
    padding: 6px 9px;
  }

  .gallery-switch {
    grid-template-columns: 1fr;
  }
}

.hero-summary span {
  display: inline;
}

.theme-toggle {
  position: relative;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.theme-toggle svg,
.quick-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-sun {
  opacity: 1;
  transform: scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.72);
}

body[data-theme='light'] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.72);
}

body[data-theme='light'] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.quick-actions {
  position: fixed;
  right: max(18px, calc((100vw - var(--shell)) / 2 - 78px));
  top: 50%;
  z-index: 34;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.quick-action {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 26, 45, 0.92), rgba(11, 18, 32, 0.9));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-action span {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.9);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.quick-action:hover,
.quick-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(137, 230, 207, 0.45);
}

.quick-action:hover span,
.quick-action:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 980px) {
  .detail-block,
  .detail-block.is-collapsed,
  .detail-block:not(.is-collapsed) {
    max-height: none;
    opacity: 1;
    margin-top: 10px;
  }

  .theme-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: auto auto;
    gap: 10px 12px;
    padding: 12px 0 8px;
  }

  .brand {
    gap: 10px;
    letter-spacing: 0.02em;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12px, black calc(100% - 12px), transparent);
    mask-image: linear-gradient(90deg, transparent, black 12px, black calc(100% - 12px), transparent);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.92rem;
  }

  .hero {
    min-height: calc(100svh - 126px);
    grid-template-columns: minmax(0, 1fr) minmax(148px, 176px);
    gap: 18px;
    align-items: end;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-copy {
    max-width: none;
    display: grid;
    gap: 12px;
    align-content: start;
  }

  .eyebrow {
    margin: 0;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
  }

  h1 {
    max-width: 5.2ch;
    font-size: clamp(2.4rem, 11.6vw, 4.1rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
  }

  .hero-summary {
    display: grid;
    gap: 4px;
    margin: 0;
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 2px 0 0;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
  }

  .hero-stage {
    justify-content: flex-end;
    align-items: end;
    padding-bottom: 4px;
  }

  .portrait-frame {
    width: 100%;
    max-width: 176px;
    margin: 0;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  }

  .hero-results {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
  }

  .hero-results article {
    min-height: 0;
    padding: 14px 14px 12px;
    border-radius: 20px;
  }

  .hero-results strong {
    font-size: 1.16rem;
    margin-bottom: 4px;
  }

  .hero-results span {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .hero-points {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .hero-points li {
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .timeline-item {
    gap: 10px;
  }

  .timeline-body {
    padding-bottom: 18px;
  }

  .gallery-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 4px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .media-card {
    flex: 0 0 min(72vw, 320px);
    scroll-snap-align: start;
    padding: 10px;
  }

  .media-card img {
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
  }

  .contact-section .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions {
    right: 12px;
    bottom: 18px;
    top: auto;
    transform: none;
    gap: 10px;
  }

  .quick-action {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .quick-action span {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 22px);
    --section-space: 42px;
  }

  .site-header {
    gap: 8px 10px;
    padding-top: 10px;
  }

  .brand {
    font-size: 1rem;
  }

  .site-nav {
    gap: 8px;
    padding-bottom: 1px;
  }

  .site-nav a {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: calc(100svh - 118px);
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 14px;
  }

  h1 {
    max-width: 4.7ch;
    font-size: clamp(2.12rem, 12vw, 3.2rem);
  }

  .hero-summary {
    font-size: 0.84rem;
  }

  .button {
    min-height: 42px;
    font-size: 0.92rem;
  }

  .portrait-frame {
    max-width: 138px;
    border-radius: 24px;
  }

  .hero-results article {
    padding: 12px;
  }

  .hero-results strong {
    font-size: 1.06rem;
  }

  .hero-results span {
    font-size: 0.82rem;
  }

  .gallery-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .media-card {
    flex-basis: min(78vw, 292px);
  }
}

@media (max-width: 420px) {
  :root {
    --shell: calc(100% - 16px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
  }

  h1 {
    max-width: 4.2ch;
    font-size: clamp(1.96rem, 12vw, 2.76rem);
  }

  .hero-summary {
    font-size: 0.79rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    min-height: 40px;
    font-size: 0.88rem;
  }

  .portrait-frame {
    max-width: 120px;
    border-radius: 22px;
  }

  .hero-points li {
    font-size: 0.76rem;
  }

  .media-card {
    flex-basis: 82vw;
  }
}

@media (max-width: 980px) {
  .site-header {
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.96), rgba(8, 14, 28, 0.82));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
  }

  .hero {
    margin-top: 10px;
    padding-top: 14px;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero-summary span {
    display: block;
  }

  .hero-actions {
    align-items: stretch;
  }

  .quick-actions {
    right: 10px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    display: flex;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(8, 14, 28, 0.82);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
  }

  .quick-action {
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .site-nav {
    gap: 7px;
    margin-right: -6px;
    padding-right: 6px;
  }

  .site-nav a {
    padding: 8px 13px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 6px;
    padding-bottom: 2px;
  }

  .hero-stage {
    order: -1;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .portrait-frame {
    max-width: 132px;
    width: 132px;
    border-radius: 26px;
  }

  .hero-copy {
    justify-items: start;
    gap: 10px;
  }

  h1 {
    max-width: 6.2ch;
    font-size: clamp(2rem, 10.4vw, 2.9rem);
    line-height: 0.94;
  }

  .hero-summary {
    gap: 3px;
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .hero-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .button {
    min-height: 40px;
    font-size: 0.88rem;
    padding: 0 10px;
  }

  .hero-results {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-results article {
    padding: 12px 12px 10px;
    border-radius: 18px;
  }

  .hero-results strong {
    font-size: 1.02rem;
  }

  .hero-results span {
    font-size: 0.8rem;
  }

  .hero-points {
    gap: 7px;
  }

  .hero-points li {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .quick-actions {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .site-nav a {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .portrait-frame {
    width: 120px;
    max-width: 120px;
  }

  h1 {
    max-width: 5.8ch;
    font-size: clamp(1.86rem, 10.8vw, 2.56rem);
  }

  .hero-summary {
    font-size: 0.78rem;
  }

  .button {
    font-size: 0.84rem;
  }

  .quick-actions {
    gap: 8px;
    padding: 5px;
    border-radius: 18px;
  }

  .quick-action {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-stage {
    order: 0;
    justify-content: center;
  }

  .portrait-frame {
    width: 124px;
    max-width: 124px;
  }

  .hero-copy {
    gap: 8px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.86rem, 7.2vw, 2.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .hero-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .hero-summary span {
    display: inline;
    white-space: nowrap;
  }

  .hero-actions {
    display: none;
  }

  .quick-actions {
    left: auto;
    right: 8px;
    bottom: 108px;
    transform: none;
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .quick-action {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(18, 28, 48, 0.96), rgba(10, 16, 30, 0.94));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.08rem);
  }

  .hero-summary {
    gap: 4px 8px;
    font-size: 0.78rem;
  }

  .quick-actions {
    right: 6px;
    bottom: 104px;
  }

  .quick-action {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: start;
    gap: 12px;
  }

  .hero-copy {
    gap: 8px;
    padding-top: 2px;
  }

  .hero-stage {
    order: 0;
    justify-content: flex-end;
    align-items: start;
    padding: 0;
  }

  .portrait-frame {
    width: 120px;
    max-width: 120px;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.8rem, 7vw, 2.18rem);
    line-height: 1.02;
    text-wrap: pretty;
  }

  .hero-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero-summary span {
    display: inline;
    white-space: nowrap;
  }

  .hero-results,
  .hero-points {
    grid-column: 1 / -1;
  }

  .quick-actions {
    right: 8px;
    left: auto;
    bottom: 124px;
    transform: none;
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .quick-action {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(10, 16, 28, 0.94));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
  }
}

@media (max-width: 420px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 10px;
  }

  .portrait-frame {
    width: 108px;
    max-width: 108px;
  }

  h1 {
    font-size: clamp(1.66rem, 7.4vw, 1.96rem);
  }

  .hero-summary {
    font-size: 0.76rem;
    gap: 2px 8px;
  }

  .quick-actions {
    right: 6px;
    bottom: 118px;
  }

  .quick-action {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 14px;
    align-items: start;
    padding-top: 4px;
  }

  .hero-copy {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
  }

  .hero-stage {
    justify-content: flex-end;
    align-items: start;
    align-self: start;
    padding: 4px 0 0;
  }

  .portrait-frame {
    width: 112px;
    max-width: 112px;
    border-radius: 22px;
  }

  .eyebrow {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }

  h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(1.74rem, 7vw, 2.08rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .hero-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .hero-summary span {
    display: inline;
    white-space: nowrap;
  }

  .hero-results {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 0;
  }

  .hero-results article {
    min-height: 0;
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .hero-points {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .hero-points li {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  .quick-actions {
    right: 8px;
    bottom: 124px;
    left: auto;
    transform: none;
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .quick-action {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(10, 16, 28, 0.94));
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
  }
}

@media (max-width: 420px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 102px;
    gap: 12px;
  }

  .portrait-frame {
    width: 102px;
    max-width: 102px;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(1.58rem, 7.2vw, 1.88rem);
  }

  .hero-summary {
    font-size: 0.76rem;
    gap: 2px 8px;
  }

  .quick-actions {
    right: 6px;
    bottom: 118px;
  }

  .quick-action {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  body[data-theme='light'] .site-header {
    background: linear-gradient(180deg, rgba(246, 241, 232, 0.96), rgba(246, 241, 232, 0.86));
    border-bottom: 1px solid rgba(24, 34, 53, 0.08);
    box-shadow: 0 10px 28px rgba(32, 44, 66, 0.08);
  }

  body[data-theme='light'] .site-nav a {
    color: #324158;
    border-color: rgba(24, 34, 53, 0.12);
    background: rgba(255, 255, 255, 0.72);
  }

  body[data-theme='light'] .site-nav a.is-active,
  body[data-theme='light'] .site-nav a:hover {
    color: #182235;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 141, 117, 0.18);
  }

  body[data-theme='light'] .theme-toggle {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(24, 34, 53, 0.12);
    color: #182235;
    box-shadow: 0 10px 24px rgba(32, 44, 66, 0.08);
  }

  body[data-theme='light'] .brand {
    color: #182235;
  }

  body[data-theme='light'] .brand-mark {
    box-shadow: 0 0 16px rgba(15, 141, 117, 0.18);
  }
}

@media (max-width: 640px) {
  body[data-theme='light'] .site-header {
    background: linear-gradient(180deg, rgba(246, 241, 232, 0), rgba(246, 241, 232, 0));
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: blur(0);
  }

  body[data-theme='light'] .site-header.is-floating {
    background: linear-gradient(180deg, rgba(246, 241, 232, 0.94), rgba(246, 241, 232, 0.82));
    box-shadow: 0 12px 28px rgba(32, 44, 66, 0.1);
    backdrop-filter: blur(12px);
  }

  body[data-theme='light'] .site-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-theme='light'] .site-nav a {
    color: #324158;
    border-color: rgba(24, 34, 53, 0.1);
    background: rgba(255, 255, 255, 0.54);
    box-shadow: none;
  }

  body[data-theme='light'] .site-nav a.is-active,
  body[data-theme='light'] .site-nav a:hover {
    color: #182235;
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(24, 34, 53, 0.12);
  }

  body[data-theme='light'] .theme-toggle {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(24, 34, 53, 0.1);
    color: #182235;
    box-shadow: none;
  }

  body[data-theme='light'] .quick-action {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 239, 230, 0.94));
    border-color: rgba(24, 34, 53, 0.1);
    color: #182235;
    box-shadow: 0 12px 24px rgba(32, 44, 66, 0.12);
  }

  body[data-theme='light'] .quick-action span {
    background: rgba(255, 255, 255, 0.92);
    color: #182235;
    border-color: rgba(24, 34, 53, 0.1);
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 116px;
    align-items: start;
    gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-copy {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
  }

  .hero-stage {
    justify-content: flex-end;
    align-items: start;
    align-self: start;
    padding-top: 0;
  }

  .portrait-frame {
    width: 116px;
    max-width: 116px;
    border-radius: 24px;
  }

  .eyebrow {
    margin: 0 0 2px;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }

  h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(1.86rem, 7.1vw, 2.2rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .hero-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    font-size: 0.81rem;
    line-height: 1.42;
  }

  .hero-summary span {
    display: inline;
    white-space: nowrap;
  }

  .hero-results {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 0;
  }

  .hero-results article {
    min-height: 110px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-results strong {
    font-size: 1.18rem;
    margin-bottom: 8px;
  }

  .hero-results span {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .hero-points {
    grid-column: 1 / -1;
    gap: 10px;
    margin-top: 2px;
  }

  .hero-points li {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .quick-actions {
    right: 10px;
    bottom: 142px;
    gap: 12px;
  }

  .quick-action {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
  }

  .portrait-frame {
    width: 104px;
    max-width: 104px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(1.68rem, 7.4vw, 1.98rem);
  }

  .hero-summary {
    gap: 3px 8px;
    font-size: 0.77rem;
  }

  .hero-results article {
    min-height: 102px;
    padding: 14px 14px 12px;
  }

  .quick-actions {
    right: 8px;
    bottom: 136px;
  }

  .quick-action {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

body[data-theme='light'] .quick-action {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 230, 0.96));
  border-color: rgba(24, 34, 53, 0.1);
  color: #182235;
  box-shadow: 0 14px 28px rgba(32, 44, 66, 0.12);
}

body[data-theme='light'] .quick-action span {
  background: rgba(255, 255, 255, 0.94);
  color: #182235;
  border-color: rgba(24, 34, 53, 0.12);
}

.hero-stage {
  display: none !important;
}

.hero {
  grid-template-columns: minmax(0, 1fr) !important;
  min-height: calc(100svh - 120px);
  align-items: center;
  gap: 24px;
}

.hero-copy {
  max-width: 860px;
  display: grid;
  gap: 16px;
}

h1 {
  max-width: 10ch;
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 56ch;
  margin: 0;
}

.hero-summary span {
  white-space: nowrap;
}

.hero-actions {
  margin: 2px 0 4px;
}

.hero-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  gap: 16px;
  margin-bottom: 4px;
}

.hero-results article {
  min-height: 108px;
  padding: 18px 18px 16px;
}

.hero-points {
  max-width: 720px;
  gap: 12px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    gap: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-copy {
    max-width: none;
    gap: 12px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.08rem, 9vw, 3rem);
    line-height: 1.04;
  }

  .hero-summary {
    gap: 4px 12px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 12px;
  }

  .hero-results article {
    min-height: 100px;
    padding: 16px 16px 14px;
  }

  .hero-points {
    max-width: none;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .hero {
    gap: 16px;
    padding-top: 2px;
  }

  .hero-copy {
    gap: 10px;
  }

  .eyebrow {
    margin: 0;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(1.96rem, 9vw, 2.56rem);
    letter-spacing: -0.05em;
  }

  .hero-summary {
    gap: 3px 10px;
    font-size: 0.8rem;
  }

  .hero-results {
    gap: 10px;
  }

  .hero-results article {
    min-height: 96px;
    border-radius: 18px;
  }

  .hero-results strong {
    font-size: 1.1rem;
  }

  .hero-results span {
    font-size: 0.82rem;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points li {
    padding: 7px 12px;
    font-size: 0.79rem;
  }

  .quick-actions {
    right: 8px;
    bottom: 118px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.76rem, 9.4vw, 2.24rem);
  }

  .hero-summary {
    font-size: 0.76rem;
    gap: 3px 8px;
  }

  .hero-results article {
    min-height: 88px;
    padding: 14px 14px 12px;
  }

  .quick-action {
    width: 44px;
    height: 44px;
  }
}

html,
body {
  overflow-x: hidden;
}

@media (min-width: 981px) {
  html,
  body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr) !important;
    align-items: stretch;
    gap: clamp(36px, 4.2vw, 84px);
    min-height: calc(100svh - 118px);
  }

  .hero-copy {
    align-content: center;
    max-width: 760px;
    gap: 18px;
  }

  h1 {
    max-width: 8.6ch;
    font-size: clamp(3rem, 4.2vw, 4.8rem);
    line-height: 1.02;
  }

  .hero-summary {
    max-width: 54ch;
    gap: 8px 18px;
    font-size: 1rem;
  }

  .hero-actions {
    margin: 6px 0 8px;
  }

  .hero-results {
    max-width: 740px;
    gap: 16px;
  }

  .hero-results article {
    min-height: 110px;
    border-radius: 22px;
  }

  .hero-points {
    max-width: 700px;
  }

  .hero-art {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 100%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
      radial-gradient(circle at 22% 18%, rgba(137, 230, 207, 0.16), transparent 24%),
      radial-gradient(circle at 78% 82%, rgba(223, 176, 115, 0.14), transparent 28%),
      linear-gradient(180deg, rgba(12, 20, 36, 0.88), rgba(10, 16, 28, 0.94));
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  body[data-theme='light'] .hero-art {
    background:
      radial-gradient(circle at 22% 18%, rgba(15, 141, 117, 0.12), transparent 24%),
      radial-gradient(circle at 78% 82%, rgba(181, 123, 49, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 232, 0.96));
  }

  .hero-art-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.72;
  }

  .hero-art-glow-a {
    top: 28px;
    right: 24px;
    width: 120px;
    height: 120px;
    background: rgba(137, 230, 207, 0.16);
  }

  .hero-art-glow-b {
    left: 18px;
    bottom: 18px;
    width: 180px;
    height: 180px;
    background: rgba(223, 176, 115, 0.12);
  }

  .hero-art-panel {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
  }

  body[data-theme='light'] .hero-art-panel {
    border-color: rgba(24, 34, 53, 0.08);
    background: rgba(255, 255, 255, 0.62);
  }

  .hero-art-panel-main {
    padding: 22px;
  }

  .hero-art-label,
  .hero-art-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .hero-art-panel-main strong {
    display: block;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(1.34rem, 1.7vw, 1.8rem);
    line-height: 1.22;
    margin-bottom: 16px;
  }

  .hero-art-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-art-grid span,
  .hero-art-panel-side li {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.92rem;
    list-style: none;
  }

  body[data-theme='light'] .hero-art-grid span,
  body[data-theme='light'] .hero-art-panel-side li {
    border-color: rgba(24, 34, 53, 0.08);
    background: rgba(255, 255, 255, 0.68);
  }

  .hero-art-panel-side {
    margin-top: 18px;
    padding: 18px 20px;
  }

  .hero-art-panel-side ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 980px) {
  .hero-art {
    display: none !important;
  }
}

/* Credentials Section Refresh - 2026-03-21 */
@media (min-width: 981px) {
  .hero h1 {
    max-width: 14.5ch;
    font-size: clamp(2.5rem, 3.3vw, 4rem);
    line-height: 0.94;
  }

  .hero-summary {
    max-width: 44rem;
    font-size: 0.98rem;
  }
}

.credentials-orchestra {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
  margin-top: 28px;
}

.credentials-column,
.credentials-centerpiece {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 1.9vw, 30px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 16%, rgba(137, 230, 207, 0.12), transparent 28%),
    radial-gradient(circle at 86% 86%, rgba(223, 176, 115, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 27, 46, 0.94), rgba(10, 17, 31, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-theme='light'] .credentials-column,
body[data-theme='light'] .credentials-centerpiece {
  background:
    radial-gradient(circle at 18% 16%, rgba(15, 141, 117, 0.1), transparent 28%),
    radial-gradient(circle at 86% 86%, rgba(181, 123, 49, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 241, 233, 0.98));
}

.credentials-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credentials-column h3,
.credentials-centerpiece h3,
.credentials-group h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.credentials-column h3 {
  font-size: clamp(1.86rem, 2vw, 2.45rem);
}

.credentials-centerpiece h3 {
  font-size: clamp(2rem, 2.3vw, 2.8rem);
}

.credentials-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.credentials-scroll-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.credentials-catalog {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  flex: 1;
}

.credentials-group {
  display: grid;
  gap: 12px;
}

.credentials-group h4 {
  font-size: clamp(1.06rem, 1.08vw, 1.28rem);
  color: var(--text);
}

.credentials-role-grid,
.credentials-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials-role-grid li,
.credentials-cert-grid li,
.credentials-center-metrics article,
.credentials-center-award,
.credentials-proof-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

body[data-theme='light'] .credentials-role-grid li,
body[data-theme='light'] .credentials-cert-grid li,
body[data-theme='light'] .credentials-center-metrics article,
body[data-theme='light'] .credentials-center-award,
body[data-theme='light'] .credentials-proof-grid article {
  border-color: rgba(24, 34, 53, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.credentials-role-grid li,
.credentials-cert-grid li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 14px 14px 14px 50px;
  border-radius: 20px;
  line-height: 1.38;
}

.credentials-role-grid li::before,
.credentials-cert-grid li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(137, 230, 207, 1), rgba(223, 176, 115, 0.95));
  box-shadow: 0 0 0 8px rgba(137, 230, 207, 0.1);
}

.credentials-role-grid span,
.credentials-cert-grid span {
  display: block;
  font-size: 0.98rem;
}

.credentials-centerpiece {
  justify-content: space-between;
  gap: 16px;
  text-align: center;
}

.credentials-centerpiece h3 span {
  display: block;
}

.credentials-center-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.credentials-center-metrics article {
  padding: 18px 12px;
  border-radius: 22px;
}

.credentials-center-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 1.9vw, 2.2rem);
}

.credentials-center-metrics span,
.credentials-award-label,
.credentials-proof-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.credentials-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.credentials-proof-grid article {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 22px;
  text-align: left;
}

.credentials-proof-grid strong {
  font-size: 1rem;
  line-height: 1.35;
}

.credentials-center-award {
  width: 100%;
  padding: 20px 18px;
  border-radius: 24px;
}

.credentials-center-award strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.14rem, 1.32vw, 1.45rem);
  line-height: 1.2;
}

@media (min-width: 981px) {
  .credentials-column,
  .credentials-centerpiece {
    height: clamp(680px, 74vh, 860px);
  }

  .credentials-catalog {
    overflow: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(137, 230, 207, 0.45) transparent;
  }

  .credentials-catalog::-webkit-scrollbar {
    width: 8px;
  }

  .credentials-catalog::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(137, 230, 207, 0.35);
  }
}

@media (max-width: 1260px) {
  .credentials-orchestra {
    grid-template-columns: 1fr;
  }

  .credentials-column,
  .credentials-centerpiece {
    height: auto;
  }

  .credentials-catalog {
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .credentials-column,
  .credentials-centerpiece {
    padding: 20px;
    border-radius: 24px;
  }

  .credentials-column-head {
    display: block;
  }

  .credentials-scroll-hint {
    margin-top: 8px;
  }

  .credentials-role-grid,
  .credentials-cert-grid,
  .credentials-proof-grid,
  .credentials-center-metrics {
    grid-template-columns: 1fr;
  }

  .credentials-role-grid li,
  .credentials-cert-grid li {
    min-height: 72px;
    padding-left: 50px;
  }
}

/* Final Balance Pass - 2026-03-21 */
@media (min-width: 981px) {
  .credentials-orchestra {
    grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
    gap: clamp(16px, 1.8vw, 24px);
    min-height: clamp(620px, 68vh, 740px);
  }

  .credentials-column,
  .credentials-centerpiece {
    height: clamp(620px, 68vh, 740px);
    padding: clamp(20px, 1.6vw, 26px);
  }

  .credentials-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .credentials-centerpiece {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    align-content: start;
    justify-content: stretch;
    gap: 16px;
    text-align: center;
  }

  .credentials-column-head {
    align-items: flex-end;
    gap: 12px;
  }

  .credentials-column h3 {
    font-size: clamp(1.72rem, 1.8vw, 2.22rem);
  }

  .credentials-centerpiece h3 {
    font-size: clamp(1.92rem, 2vw, 2.56rem);
    line-height: 0.96;
  }

  .credentials-catalog {
    min-height: 0;
    margin-top: 16px;
    overflow: auto;
    gap: 16px;
    padding-right: 8px;
    padding-bottom: 4px;
    mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }

  .credentials-group {
    gap: 10px;
  }

  .credentials-group h4 {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 4px 0 8px;
    background: linear-gradient(180deg, rgba(12, 21, 36, 0.98), rgba(12, 21, 36, 0.86) 72%, rgba(12, 21, 36, 0));
  }

  body[data-theme='light'] .credentials-group h4 {
    background: linear-gradient(180deg, rgba(250, 246, 238, 0.98), rgba(250, 246, 238, 0.88) 72%, rgba(250, 246, 238, 0));
  }

  .credentials-role-grid li,
  .credentials-cert-grid li {
    min-height: 70px;
    padding: 13px 14px 13px 48px;
    border-radius: 18px;
  }

  .credentials-role-grid span,
  .credentials-cert-grid span {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .credentials-center-metrics {
    gap: 10px;
  }

  .credentials-center-metrics article {
    min-height: 120px;
    padding: 16px 12px;
    display: grid;
    align-content: center;
  }

  .credentials-center-metrics strong {
    margin-bottom: 6px;
  }

  .credentials-proof-grid {
    align-self: stretch;
    align-content: start;
    gap: 10px;
  }

  .credentials-proof-grid article {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .credentials-proof-grid strong {
    font-size: 0.96rem;
  }

  .credentials-center-award {
    margin-top: auto;
    padding: 18px 16px;
  }

  .credentials-center-award strong {
    font-size: clamp(1.08rem, 1.12vw, 1.3rem);
  }
}

@media (max-width: 1120px) {
  .credentials-orchestra {
    grid-template-columns: 1fr;
  }

  .credentials-column,
  .credentials-centerpiece {
    height: auto;
  }

  .credentials-catalog {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .credentials-scroll-hint {
    font-size: 0.8rem;
  }

  .credentials-column h3,
  .credentials-centerpiece h3 {
    text-wrap: balance;
  }
}

/* Hero First Screen Fit - 2026-03-21 */
@media (min-width: 981px) {
  .site-header {
    padding: 8px 0 10px;
  }

  main > .hero.section {
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .hero {
    min-height: calc(100svh - 102px) !important;
    gap: clamp(24px, 3vw, 52px) !important;
    align-items: center;
  }

  .hero-copy {
    align-content: center;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(2.72rem, 3.7vw, 4.2rem);
    line-height: 0.98;
    max-width: 8.7ch;
  }

  .hero-summary {
    margin-top: 0;
    font-size: 0.96rem;
  }

  .hero-actions {
    margin: 2px 0 2px;
  }

  .hero-results {
    gap: 12px;
    margin-bottom: 0;
  }

  .hero-results article {
    min-height: 92px;
    padding: 16px 16px 14px;
    border-radius: 20px;
  }

  .hero-results strong {
    margin-bottom: 4px;
    font-size: clamp(1.14rem, 1.28vw, 1.38rem);
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points li {
    padding: 8px 13px;
  }

  .hero-art {
    padding: 22px;
    border-radius: 28px;
  }

  .hero-art-panel-main {
    padding: 18px;
  }

  .hero-art-panel-main strong {
    margin-bottom: 14px;
    font-size: clamp(1.2rem, 1.45vw, 1.56rem);
  }

  .hero-art-grid {
    gap: 9px;
  }

  .hero-art-grid span,
  .hero-art-panel-side li {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .hero-art-panel-side {
    margin-top: 14px;
    padding: 16px 18px;
  }
}

@media (min-width: 981px) and (max-height: 880px) {
  main > .hero.section {
    padding-top: 6px;
    padding-bottom: 12px;
  }

  .hero {
    min-height: calc(100svh - 92px) !important;
  }

  .hero h1 {
    font-size: clamp(2.44rem, 3.18vw, 3.52rem);
  }

  .hero-results article {
    min-height: 84px;
    padding: 14px 14px 12px;
  }

  .hero-art {
    padding: 18px;
  }
}

/* Navigation stability fixes */
html {
  scroll-padding-top: calc(var(--header-offset, 96px) + 4px);
}

body {
  overflow-y: auto !important;
}

main {
  padding-top: calc(var(--header-height, 76px) + 24px);
}

.section {
  scroll-margin-top: var(--header-offset, 96px);
}

.site-header {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 60;
  align-self: start;
  width: min(var(--shell), calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 17, 31, 0), rgba(10, 17, 31, 0));
  box-shadow: none;
  backdrop-filter: blur(0);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease,
    transform 260ms ease,
    border-radius 260ms ease,
    padding 260ms ease;
}

.site-header.is-floating {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.9), rgba(10, 17, 31, 0.72));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) translateY(0);
}

.site-nav {
  gap: 8px;
  padding: 6px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 260ms ease, border-color 260ms ease, border-radius 260ms ease;
}

.site-header.is-floating .site-nav {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-nav a {
  position: relative;
  border-radius: 999px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  will-change: transform, background;
  transition: color 220ms ease, background 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 12px 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(137, 230, 207, 0.9), rgba(223, 176, 115, 0.72));
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.site-nav a.is-active {
  background: linear-gradient(135deg, rgba(137, 230, 207, 0.22), rgba(223, 176, 115, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-toggle {
  box-shadow: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-header.is-floating .theme-toggle {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body[data-theme='light'] .site-header {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 239, 230, 0));
  box-shadow: none;
}

body[data-theme='light'] .site-nav {
  background: transparent;
  border-color: transparent;
}

body[data-theme='light'] .site-header.is-floating {
  border-color: rgba(24, 34, 53, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 239, 230, 0.88));
  box-shadow: 0 18px 42px rgba(32, 44, 66, 0.12);
}

body[data-theme='light'] .site-header.is-floating .site-nav {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(24, 34, 53, 0.08);
}

body[data-theme='light'] .site-nav a.is-active {
  background: linear-gradient(135deg, rgba(15, 141, 117, 0.12), rgba(181, 123, 49, 0.12));
  box-shadow: inset 0 0 0 1px rgba(24, 34, 53, 0.06);
}

body[data-theme='light'] .site-nav a::after {
  background: linear-gradient(90deg, rgba(15, 141, 117, 0.9), rgba(181, 123, 49, 0.72));
}

@media (hover: hover) and (pointer: fine) {
  .site-header:hover {
    transform: translateX(-50%) translateY(2px);
  }

  .site-header.is-floating:hover {
    transform: translateX(-50%) translateY(4px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
  }

  .site-nav a:hover {
    background: linear-gradient(135deg, rgba(137, 230, 207, 0.12), rgba(223, 176, 115, 0.1));
    transform: translateY(-1px) scale(1.01);
  }

  .site-nav a:hover::after {
    opacity: 0.72;
    transform: scaleX(0.82);
  }

  body[data-theme='light'] .site-nav a:hover {
    background: linear-gradient(135deg, rgba(15, 141, 117, 0.08), rgba(181, 123, 49, 0.08));
  }

  .site-header.is-floating .theme-toggle:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  main {
    padding-top: calc(var(--header-height, 96px) + 18px);
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top, 0px));
    width: calc(100% - 16px);
    padding: 10px 10px 12px;
    border-radius: 24px;
  }

  .site-nav {
    padding: 4px;
    border-radius: 20px;
  }

  .site-nav a {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor-glow,
  .intro-particles,
  .intro-glow,
  .intro-shutter,
  .reveal,
  .js-tilt,
  .site-header,
  .site-nav a,
  .theme-toggle {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
  }
}

/* Gallery hotfix - 2026-04-24 */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

#gallery .media-card {
  min-width: 0;
  flex: none;
  padding: 14px;
}

#gallery .media-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  margin-bottom: 12px;
}

#gallery .media-card figcaption {
  margin: 0;
}

#gallery .media-card.is-hidden {
  display: none !important;
}

@media (max-width: 1320px) {
  #gallery .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #gallery .media-card {
    padding: 12px;
  }
}

@media (max-width: 640px) {
  #gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
