/* Generated by scripts/generate-site-css.mjs. */
/* Keep this file committed so GitHub Pages always has a stable stylesheet. */

/* src/styles/global.css */
:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #172331;
  --muted: #657385;
  --primary: #102a43;
  --secondary: #2f5168;
  --accent: #b88900;
  --accent-soft: #fff2bf;
  --green: #2f6f5e;
  --line: #e2e7ee;
  --shadow: 0 16px 36px rgba(16, 42, 67, 0.09);
  --radius: 8px;
  --max: 1120px;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

/* ── Minimal mode ── */
html.minimal-mode {
  --radius: 0px;
}
html.minimal-mode #mol-bg,
html.minimal-mode #particles-bg,
html.minimal-mode #cursor-glow {
  display: none !important;
}
html.minimal-mode .portrait-card .profile-photo {
  animation: none !important;
}
html.minimal-mode .project-card {
  animation: none !important;
}
html.minimal-mode .card,
html.minimal-mode .btn {
  box-shadow: none !important;
  border-color: var(--ink) !important;
}
html.minimal-mode .card:hover,
html.minimal-mode .btn:hover {
  transform: none !important;
  box-shadow: none !important;
}
html.minimal-mode [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}
html.minimal-mode .hero h1 {
  border-right: none !important;
}
html.minimal-mode .school {
  background: var(--primary) !important;
}
html.minimal-mode .contact-card {
  background: var(--primary) !important;
}
html.minimal-mode * {
  transition: none !important;
  animation: none !important;
}
html.minimal-mode a,
html.minimal-mode button {
  cursor: default;
}
html.minimal-mode .skeleton-screen {
  display: none !important;
}

:root[data-theme='dark'],
:root.dark {
  --bg: #0f1720;
  --paper: #162230;
  --ink: #edf3f8;
  --muted: #aab8c6;
  --primary: #d7e8f5;
  --secondary: #9fc6d8;
  --accent: #e0bd4e;
  --accent-soft: rgba(224, 189, 78, 0.13);
  --green: #71c0a8;
  --line: #2a3a4b;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:root {
  scroll-padding-top: 80px;
}
@media (max-width: 980px) {
  html {
    scroll-padding-top: 64px;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at top left, rgba(184, 137, 0, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(47, 111, 94, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition:
    background-color 0.3s,
    color 0.3s;
}

:root[data-theme='dark'] body,
:root.dark body {
  background:
    radial-gradient(circle at top left, rgba(201, 162, 39, 0.12), transparent 30rem),
    linear-gradient(180deg, #0d1620 0%, var(--bg) 52%, #111b25 100%);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  -webkit-user-drag: none;
  user-select: none;
}
::selection {
  background: var(--accent-soft);
  color: var(--primary);
}

/* Touch devices: remove sticky hover effects */
@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .btn:hover,
  .project-card:hover,
  .cert-card:hover,
  .tl-card:hover,
  .blog-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .cert-card:hover {
    transform: none !important;
  }
  .card:hover,
  .tl-card:hover {
    border-color: var(--line) !important;
  }
}

/* Images in dark mode */
[data-theme='dark'] .cert-card img,
[data-theme='dark'] img[src*='.jpg'],
[data-theme='dark'] img[src*='.png'] {
  opacity: 0.85;
  transition: opacity 0.3s;
}
[data-theme='dark'] .cert-card img:hover {
  opacity: 1;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
section {
  padding: 74px 0;
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}
.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.06);
  min-width: 0;
}
.card *,
.project-card *,
.evidence-list * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.card.pad {
  padding: 24px;
}
.card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 19px;
  line-height: 1.35;
}
.card p,
.card li {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.btn.primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}
.btn:hover {
  box-shadow: 0 10px 22px rgba(16, 42, 67, 0.12);
  transform: translateY(-1px);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}
:root[data-theme='dark'] .tag,
:root.dark .tag {
  background: rgba(255, 255, 255, 0.05);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-trail {
  padding: 20px 0 44px;
}
.trail-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at top right, rgba(201, 162, 39, 0.15), transparent 18rem);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.07);
}
.trail-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}
.trail-copy span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.trail-copy h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}
.trail-copy p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.trail-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.trail-link {
  display: grid;
  min-height: 104px;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.trail-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 10px 22px rgba(16, 42, 67, 0.09);
  transform: translateY(-1px);
}
.trail-link.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.trail-link strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
}
.trail-link small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.trail-link.primary small {
  color: rgba(255, 255, 255, 0.76);
}
:root[data-theme='dark'] .trail-shell,
:root.dark .trail-shell {
  background:
    linear-gradient(135deg, rgba(22, 34, 48, 0.92), rgba(22, 34, 48, 0.66)),
    radial-gradient(circle at top right, rgba(224, 189, 78, 0.13), transparent 18rem);
}
:root[data-theme='dark'] .trail-link,
:root.dark .trail-link {
  background: rgba(255, 255, 255, 0.04);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.evidence-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}
.evidence-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Wave dividers ── */
section::after {
  display: none;
}
section:last-of-type::after {
  display: none;
}

/* ── Glassmorphism nav ── */
.site-header {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(226, 231, 238, 0.6);
}
[data-theme='dark'] .site-header {
  background: rgba(15, 23, 32, 0.75) !important;
  border-bottom-color: rgba(42, 58, 75, 0.7);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 162, 39, 0.06) 50%, transparent 100%);
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

/* ── Dark mode card glow ── */
[data-theme='dark'] .card {
  border-color: rgba(201, 162, 39, 0.08);
}
[data-theme='dark'] .card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.06);
}
[data-theme='dark'] .project-card {
  animation: border-glow 8s ease-in-out infinite;
}

/* ── Skeleton ── */
@keyframes skeleton {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, transparent 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  position: relative;
  user-select: none;
}
main:focus {
  outline: none;
}

/* ── Avatar glow ── */
@keyframes avatar-glow {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(16, 42, 67, 0.18),
      0 0 0 0 rgba(201, 162, 39, 0.3);
  }
  50% {
    box-shadow:
      0 18px 34px rgba(16, 42, 67, 0.18),
      0 0 0 8px rgba(201, 162, 39, 0.08);
  }
}

/* ── Card border glow ── */
@keyframes border-glow {
  0%,
  100% {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.15);
  }
  33% {
    border-color: var(--green);
    box-shadow: 0 0 8px rgba(47, 111, 94, 0.15);
  }
  66% {
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(47, 81, 104, 0.15);
  }
}
.project-card {
  animation: none;
}

/* ── Blockquote decoration ── */
.interest-summary {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
  margin: -8px 0;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .portrait-card .profile-photo {
    animation: avatar-glow 3s ease-in-out infinite;
  }
}

/* ── Page fade-in ── */
@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body {
  animation: pageFadeIn 0.4s ease-out;
}

/* ── Accessibility focus style ── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 8px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus {
  top: 0;
}

@media (max-width: 940px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
  section {
    padding: 54px 0;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .trail-shell,
  .trail-links {
    grid-template-columns: 1fr;
  }
  .trail-link {
    min-height: 86px;
  }
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .project-facts li {
    grid-template-columns: 1fr;
  }
  .contact-list {
    white-space: normal;
  }
}
@media (orientation: landscape) and (max-height: 700px) {
  .hero {
    padding: 32px 0 16px;
  }
  .hero h1 {
    font-size: clamp(22px, 4vw, 36px);
  }
  .hero-grid {
    gap: 16px;
    grid-template-columns: 1fr 300px;
  }
  .portrait-card {
    padding: 14px;
  }
  .profile-photo {
    width: 70px;
    height: 70px;
  }
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
    gap: 8px;
  }
  .stat {
    padding: 8px;
  }
  .stat strong {
    font-size: 16px;
  }
  .nav {
    min-height: 48px;
  }
  section {
    padding: 28px 0;
    scroll-margin-top: 44px;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .education-card {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .skill-card ul {
    gap: 4px;
  }
  .skill-card li {
    font-size: 11px;
    padding: 4px 7px;
  }
  .project-card {
    min-height: auto;
  }
}
@media (orientation: landscape) and (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 260px;
    gap: 14px;
  }
  .nav-links {
    font-size: 12px;
    gap: 10px;
  }
  .nav-actions {
    gap: 6px;
  }
}

/* ── Print ── */
@media print {
  body {
    background: #fff !important;
    font-size: 12px;
    color: #000;
  }
  section {
    min-height: auto;
    padding: 22px 0;
  }
  .no-print {
    display: none !important;
  }
  .site-header,
  footer {
    display: none !important;
  }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10px;
    color: #666;
  }
  .card,
  .project-card,
  .tl-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .hero h1 {
    font-size: 28pt;
  }
  .section-head h2 {
    font-size: 18pt;
  }
  .profile-photo {
    animation: none !important;
  }
}


/* src/layouts/BaseLayout.astro style 1 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(226, 231, 238, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  [data-theme='dark'] .site-header {
    background: rgba(15, 23, 32, 0.84);
    border-bottom-color: rgba(42, 58, 75, 0.9);
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 14px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
  }
  .brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(201, 162, 39, 0.42);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 15px;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
  }
  .nav-links a:hover {
    color: var(--primary);
  }
  .nav-links a.active {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-actions .btn.active {
    border-color: rgba(201, 162, 39, 0.5);
    background: var(--accent-soft);
  }
  .icon-btn {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--primary);
    cursor: pointer;
  }
  .menu-btn {
    display: none;
  }
  .lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
  }
  .lang-switch a {
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--muted);
  }
  .lang-switch a:hover {
    color: var(--primary);
  }
  .lang-switch a.active {
    color: var(--primary);
    background: var(--accent-soft);
  }
  .lang-switch .sep {
    color: var(--line);
  }
  @media (max-width: 980px) {
    .nav {
      position: relative;
      gap: 12px;
      min-height: 64px;
    }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 14px;
      right: 14px;
      align-items: stretch;
      flex-direction: column;
      gap: 2px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper);
      box-shadow: var(--shadow);
    }
    .nav-links.open {
      display: flex;
    }
    .nav-links a {
      padding: 10px 12px;
      border-radius: 6px;
    }
    .nav-links a:hover {
      background: var(--accent-soft);
    }
    .menu-btn {
      display: inline-grid;
    }
    .nav-actions > .btn {
      display: none;
    }
  }

  .skip-link {
    position: fixed;
    top: -100%;
    left: 8px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 14px;
    font-weight: 700;
  }
  .skeleton-screen {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: var(--bg);
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .skeleton-screen .sk-header {
    display: flex;
    gap: 16px;
    padding: 20px;
    max-width: var(--max);
    margin: 0 auto;
  }
  .skeleton-screen .sk-hero {
    display: flex;
    gap: 24px;
    padding: 60px 20px;
    max-width: var(--max);
    margin: 0 auto;
    align-items: center;
  }
  .skeleton-screen .sk-circle {
    width: 138px;
    height: 138px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .skeleton-screen .sk-block {
    flex: 1;
    display: grid;
    gap: 16px;
  }
  .skeleton-screen .sk-line {
    height: 16px;
    border-radius: 8px;
  }
  .skeleton-screen .sk-line.w-60 {
    width: 60%;
  }
  .skeleton-screen .sk-line.w-80 {
    width: 80%;
  }
  .skeleton-screen .sk-line.w-40 {
    width: 40%;
  }
  .skeleton-screen .sk-line.w-20 {
    width: 200px;
  }
  .skeleton-screen .sk-line.w-10 {
    width: 80px;
  }
  .skeleton-screen .sk-header .sk-line,
  .skeleton-screen .sk-line,
  .skeleton-screen .sk-circle {
    background: linear-gradient(90deg, var(--line) 25%, transparent 50%, var(--line) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
  }
  .footer-admin {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
  }
  .footer-admin:hover {
    text-decoration-color: var(--accent);
  }
  .skip-link:focus {
    top: 0;
  }
  @media (max-width: 460px) {
    .nav {
      gap: 8px;
    }
    .brand {
      gap: 8px;
    }
    .brand-mark {
      width: 36px;
      height: 36px;
    }
    .nav-actions {
      gap: 6px;
    }
    .icon-btn {
      width: 38px;
      height: 38px;
    }
  }

/* src/layouts/PrintLayout.astro style 1 */
*,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      body.a4-page {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        background: #e8e8e8;
        color: #1a1a1a;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px;
      }
      .toolbar {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        padding: 10px 20px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      }
      .btn {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(47, 81, 104, 0.18);
        border-radius: 8px;
        background: #fff;
        color: #2f5168;
        font: inherit;
        font-size: 13px;
        font-weight: 750;
        text-decoration: none;
        cursor: pointer;
        padding: 0 12px;
        transition:
          transform 180ms ease,
          background 180ms ease,
          border-color 180ms ease;
      }
      .btn:hover {
        background: #f7f3e6;
        border-color: rgba(201, 162, 39, 0.35);
        transform: translateY(-1px);
      }
      .btn:active {
        transform: translateY(0);
      }
      .btn:focus-visible,
      .ls a:focus-visible {
        outline: 2px solid #c9a227;
        outline-offset: 2px;
      }
      .btn.primary {
        background: #2f5168;
        border-color: #2f5168;
        color: #fff;
      }
      .ls {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
      }
      .variant-switch {
        display: flex;
        align-items: center;
        gap: 6px;
        padding-left: 12px;
        border-left: 1px solid #e2dcc9;
        font-size: 13px;
      }
      .ls a {
        color: #888;
        text-decoration: none;
        padding: 2px 6px;
        border-radius: 4px;
      }
      .variant-switch a {
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border-radius: 999px;
        color: #566;
        font-weight: 750;
        text-decoration: none;
      }
      .ls a.active {
        color: #1a1a1a;
        background: #e8e4d4;
      }
      .variant-switch a.active {
        background: #102a43;
        color: #fff;
      }
      .ls-sep {
        color: #ddd;
        margin: 0 2px;
      }
      .sheet {
        width: 210mm;
        min-height: 297mm;
        background: #fff;
        padding: 17mm 18mm 16mm;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
      }
      .sheet section {
        padding: 0;
      }
      .sheet h1 {
        font-size: 24pt;
        font-weight: 800;
      }
      .sheet h2 {
        font-size: 10.5pt;
        font-weight: 800;
        color: #2f5168;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-bottom: 1.5pt solid #c9a227;
        padding-bottom: 2pt;
        margin: 9pt 0 4pt 0;
      }
      .sheet p,
      .sheet li {
        font-size: 9pt;
        line-height: 1.32;
        color: #333;
      }
      .sheet .small {
        font-size: 8.5pt;
      }
      .sheet .tiny {
        font-size: 8pt;
        padding-left: 14px;
      }
      .sheet .tiny li {
        margin-bottom: 1.5pt;
      }
      .top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 7pt;
      }
      .top-main h1 {
        margin-bottom: 1.5pt;
      }
      .top-main .sub {
        font-size: 9pt;
        color: #555;
      }
      .top-contact {
        display: grid;
        gap: 0.5pt;
        font-size: 8.5pt;
        color: #555;
        text-align: right;
        white-space: nowrap;
      }
      .metric-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6pt;
        margin: 6pt 0 8pt;
      }
      .metric {
        border-left: 2pt solid #c9a227;
        background: #f7f5ef;
        padding: 5pt 6pt;
      }
      .metric strong {
        display: block;
        color: #102a43;
        font-size: 12pt;
        line-height: 1;
      }
      .metric span {
        color: #555;
        font-size: 7.4pt;
        font-weight: 700;
      }
      .summary {
        font-size: 9pt;
        line-height: 1.35;
        margin-bottom: 8pt;
      }
      .tagline {
        color: #2f5168;
        font-size: 8.5pt;
        font-weight: 750;
        margin: 1pt 0 0;
      }
      .row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
      }
      .row-2.tight {
        gap: 6px;
      }
      .row-2 ul {
        padding-left: 14px;
      }
      .row-2 li {
        font-size: 8.5pt;
        margin-bottom: 1.5pt;
      }
      .item {
        margin-bottom: 5pt;
      }
      .item-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 1pt;
      }
      .item-head strong {
        font-size: 9pt;
      }
      .item-head span {
        font-size: 8pt;
        color: #888;
      }
      .keyword-line {
        color: #555;
        font-size: 8.2pt;
        margin-top: 2pt;
      }
      .compact-list {
        padding-left: 14px;
      }
      .compact-list li {
        margin-bottom: 1.5pt;
      }
      @media screen and (max-width: 840px) {
        html,
        body {
          width: 100%;
          max-width: 100%;
          overflow-x: hidden;
        }
        body.a4-page {
          display: block;
          align-items: stretch;
          padding: 12px;
          background: #f2f2f2;
        }
        .toolbar {
          position: static;
          flex-wrap: wrap;
          justify-content: center;
          width: 100%;
          padding: 10px 12px;
        }
        .variant-switch {
          order: 3;
          width: 100%;
          justify-content: center;
          padding-left: 0;
          border-left: 0;
        }
        .sheet {
          display: block;
          width: 100%;
          max-width: 100%;
          min-width: 0;
          min-height: auto;
          padding: 18px;
          box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
          overflow: hidden;
        }
        .sheet * {
          max-width: 100%;
          min-width: 0;
        }
        .sheet h1 {
          font-size: clamp(28px, 10vw, 42px);
          line-height: 1.12;
          overflow-wrap: anywhere;
        }
        .top {
          flex-direction: column;
          gap: 8px;
        }
        .top-contact {
          text-align: left;
          white-space: normal;
        }
        .row-2,
        .row-2.tight {
          grid-template-columns: 1fr;
          gap: 8px;
        }
        .metric-strip {
          grid-template-columns: repeat(2, 1fr);
        }
        .item-head {
          display: grid;
          gap: 3px;
        }
        .sheet p,
        .sheet li {
          overflow-wrap: anywhere;
        }
      }
      /* ── Honors table ── */
      .honors-table {
        width: 100%;
        border-collapse: collapse;
        margin: 6pt 0;
        font-size: 8.5pt;
      }
      .honors-table td {
        padding: 2.5pt 6pt 2.5pt 0;
        vertical-align: top;
      }
      .honors-table .yr {
        width: 48pt;
        font-weight: 700;
        color: #c9a227;
        white-space: nowrap;
      }
      .honors-table .lvl {
        width: 36pt;
        font-weight: 600;
        color: #2f5168;
        white-space: nowrap;
      }

      @media print {
        @page {
          size: A4;
          margin: 0;
        }
        body.a4-page {
          background: #fff;
          padding: 0;
        }
        .toolbar {
          display: none !important;
        }
        .sheet {
          width: 210mm;
          min-height: 297mm;
          padding: 14mm 15mm 12mm 15mm;
          box-shadow: none;
          border: none;
          overflow: hidden;
        }
        .sheet-sioc {
          height: 297mm;
          min-height: 297mm;
          padding: 8mm 10.5mm 7mm;
        }
        .sheet h1 {
          font-size: 20pt;
        }
        .sheet h2 {
          font-size: 9pt;
          margin: 6pt 0 3pt 0;
          padding-bottom: 1.5pt;
        }
        .sheet p,
        .sheet li {
          font-size: 8pt;
          line-height: 1.25;
        }
        .sheet .small {
          font-size: 7.7pt;
        }
        .sheet .tiny {
          font-size: 7.3pt;
          padding-left: 11px;
        }
        .sheet .tiny li {
          margin-bottom: 1pt;
        }
        .top {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: flex-start;
          margin-bottom: 4pt;
        }
        .top-main h1 {
          font-size: 20pt;
          margin-bottom: 0.5pt;
        }
        .top-main .sub {
          font-size: 8pt;
        }
        .top-contact {
          text-align: right;
          white-space: nowrap;
          font-size: 7.2pt;
          gap: 0;
        }
        .summary {
          font-size: 8pt;
          line-height: 1.26;
          margin-bottom: 6pt;
        }
        .tagline {
          font-size: 8pt;
        }
        .metric-strip {
          grid-template-columns: repeat(4, 1fr);
        }
        .metric-strip {
          gap: 4pt;
          margin: 4pt 0 5pt;
        }
        .metric {
          padding: 3.5pt 4pt;
        }
        .metric strong {
          font-size: 10pt;
        }
        .metric span {
          font-size: 6.6pt;
        }
        .row-2 {
          grid-template-columns: 1fr 1fr;
          gap: 8px;
        }
        .row-2.tight {
          grid-template-columns: 1fr 1fr;
          gap: 5px;
        }
        .row-2 li {
          font-size: 7.6pt;
          margin-bottom: 1pt;
        }
        .item {
          margin-bottom: 4pt;
        }
        .item-head {
          display: flex;
          justify-content: space-between;
          align-items: baseline;
          gap: 6pt;
        }
        .item-head strong {
          font-size: 8pt;
        }
        .item-head span {
          font-size: 7pt;
          white-space: nowrap;
        }
        .keyword-line {
          font-size: 7.4pt;
        }
        section,
        .item,
        .top,
        .metric {
          break-inside: avoid;
          page-break-inside: avoid;
        }
      }

/* src/components/CompetitionTimeline.astro style 1 */
.timeline-wrap {
    margin: 0 auto;
  }

  .timeline-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
  }
  .filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }
  .filter-btn.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--primary);
  }
  .filter-btn:not(.active):hover {
    border-color: var(--level-color, var(--accent));
    color: var(--level-color, var(--primary));
  }

  .timeline-track {
    position: relative;
    padding-left: 28px;
  }
  .timeline-track::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
  }

  .tl-item {
    position: relative;
    margin-bottom: 18px;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }
  .tl-item.visible {
    opacity: 1;
    transform: translateX(0);
  }
  .tl-item[style*='display: none'] {
    opacity: 0;
  }

  .tl-dot {
    position: absolute;
    left: -13px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--level-color, var(--accent));
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
    z-index: 1;
  }

  .tl-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .tl-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--level-color, var(--accent));
    border-radius: var(--radius) 0 0 var(--radius);
  }
  .tl-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    border-color: var(--level-color, var(--accent));
  }
  .tl-card strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 4px;
  }
  .tl-card em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
  }
  .tl-year {
    color: var(--level-color, var(--accent));
    font-size: 12px;
    font-weight: 900;
    float: right;
    margin-left: 12px;
  }

  .tl-details {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .tl-item.expanded .tl-details {
    display: block;
  }
  .tl-details p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
  }
  .tl-details b {
    color: var(--primary);
  }

  .tl-soon {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #aaa;
    font-style: italic;
  }

  .tl-item.lit .tl-dot {
    box-shadow: 0 0 12px 3px var(--level-color, var(--accent));
  }
  .tl-item.lit .tl-card {
    border-color: rgba(201, 162, 39, 0.25);
  }

  @media (max-width: 640px) {
    .timeline-track {
      padding-left: 20px;
    }
    .tl-dot {
      left: -6px;
    }
    .tl-card {
      padding: 14px;
    }
    .tl-card strong {
      font-size: 14px;
    }
  }

/* src/components/Lightbox.astro style 1 */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .lightbox-image-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lightbox-image-wrap img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .lightbox-image-wrap img.lb-fade {
    opacity: 1;
  }
  .lightbox-overlay.active .lightbox-image-wrap img {
    opacity: 1;
  }
  .lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    z-index: 1;
  }
  .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 1;
  }
  .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .lightbox-prev {
    left: 16px;
  }
  .lightbox-next {
    right: 16px;
  }
  .lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
  }
  @media (max-width: 640px) {
    .lightbox-nav {
      font-size: 28px;
      width: 44px;
      height: 44px;
    }
    .lightbox-prev {
      left: 4px;
    }
    .lightbox-next {
      right: 4px;
    }
    .lightbox-close {
      top: 8px;
      right: 10px;
    }
  }

/* src/components/Molecule3D.astro style 1 */
#mol-bg {
    position: fixed;
    top: 72px;
    right: 0;
    width: clamp(140px, 12vw, 160px);
    height: clamp(118px, 12vw, 136px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
  }
  html.minimal-mode #mol-bg {
    display: none !important;
  }
  @media (max-width: 760px) {
    #mol-bg {
      top: 66px;
      right: 0;
      width: 72px;
      height: 44px;
      opacity: 0.14 !important;
    }
  }

/* src/components/ParticlesBackground.astro style 1 */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
  }

/* src/components/CursorGlow.astro style 1 */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(
      circle at center,
      rgba(201, 162, 39, 0.06) 0%,
      rgba(201, 162, 39, 0.02) 40%,
      transparent 70%
    );
    will-change: transform;
  }
  [data-theme='dark'] #cursor-glow {
    background: radial-gradient(
      circle at center,
      rgba(224, 189, 78, 0.08) 0%,
      rgba(224, 189, 78, 0.03) 40%,
      transparent 70%
    );
  }
  @media (max-width: 980px) {
    #cursor-glow {
      display: none !important;
    }
  }

/* src/pages/index.astro style 1 */
.hero {
    padding: 108px 0 64px;
  }
  .hero h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(44px, 8vw, 82px);
    line-height: 1.02;
  }
  .subtitle {
    margin: 18px 0 0;
    color: var(--secondary);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 750;
  }
  .lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 44px;
    align-items: center;
  }
  .portrait-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .profile-photo {
    width: 138px;
    height: 138px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 34px rgba(16, 42, 67, 0.18);
    display: block;
  }
  .profile-meta {
    margin-top: 18px;
  }
  .profile-meta strong {
    display: block;
    color: var(--primary);
    font-size: 20px;
  }
  .profile-meta span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }
  .stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  }
  .stat strong {
    display: block;
    color: var(--primary);
    font-size: 28px;
    line-height: 1.1;
  }
  .stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .about-copy {
    display: grid;
    gap: 16px;
  }
  .about-copy p {
    margin: 0;
  }
  .education-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 22px;
    align-items: stretch;
  }
  .school {
    padding: 28px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(47, 111, 94, 0.92)), var(--primary);
    color: #fff;
    border-radius: var(--radius);
  }
  .school h3 {
    margin: 0;
    font-size: 27px;
  }
  .school p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
  }
  .rank-list {
    display: grid;
    gap: 12px;
  }
  .rank-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 750;
  }
  .rank-item span {
    color: var(--muted);
  }
  .interest-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .interest-card strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 4px;
  }
  .interest-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
  }
  .highlight {
    position: relative;
    min-height: 170px;
    overflow: hidden;
  }
  .highlight::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 12px solid var(--accent-soft);
    pointer-events: none;
  }
  .highlight .num {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin-bottom: 20px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
  }
  .skill-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }
  .skill-card li {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(47, 81, 104, 0.05);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 720;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
  }
  .project-card .tag-row {
    margin-top: 18px;
  }
  .project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .project-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background 180ms ease;
  }
  .project-action:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.42);
    transform: translateY(-1px);
  }
  .project-action.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }
  .project-facts {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }
  .project-facts li {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
  }
  .project-facts b {
    color: var(--primary);
  }
  .contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
  }
  .contact-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
  }
  .contact-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
  }
  .contact-list {
    display: grid;
    gap: 10px;
    color: #fff;
    font-weight: 750;
    white-space: nowrap;
    overflow-wrap: anywhere;
  }
  .contact-list span {
    min-width: 0;
  }
  .contact-list a {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  [data-animate].revealed {
    opacity: 1;
    transform: translateY(0);
  }
  [data-animate='right'] {
    transform: none;
  }
  [data-animate='right'].revealed {
    transform: translateX(0);
  }
  [data-animate='up'] {
    transform: none;
  }
  [data-animate='up'].revealed {
    transform: translateY(0);
  }
  @media (max-width: 940px) {
    .hero-grid,
    .education-card,
    .contact-card {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 640px) {
    .hero {
      padding-top: 50px;
    }
    .stat-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .hero {
    padding: 82px 0 42px;
    border-bottom: 1px solid rgba(226, 231, 238, 0.82);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18)),
      radial-gradient(circle at 84% 22%, rgba(47, 111, 94, 0.12), transparent 20rem);
  }
  .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero-context {
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 800;
  }
  .hero h1 {
    font-size: clamp(52px, 8vw, 86px);
    letter-spacing: 0;
  }
  .subtitle {
    max-width: 760px;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.28;
  }
  .lead {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.85;
  }
  .hero-actions {
    margin-top: 28px;
  }
  .hero-proof {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
  }
  .identity-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .profile-meta {
    margin: 0;
    min-width: 0;
  }
  .profile-meta strong {
    font-size: 22px;
  }
  .profile-meta a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }
  .stat {
    min-height: 86px;
    padding: 14px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }
  .stat span {
    display: block;
    margin-bottom: 8px;
  }
  .stat strong {
    font-size: 25px;
  }
  .proof-list {
    display: grid;
    gap: 8px;
  }
  .proof-list a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
  }
  .proof-list a::after {
    content: '→';
    color: var(--accent);
  }
  .review-strip {
    padding: 34px 0 58px;
  }
  .review-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    margin-bottom: 18px;
  }
  .review-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
  }
  .review-head p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
  }
  .review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .review-card {
    display: grid;
    align-content: start;
    min-height: 216px;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .review-card span {
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
  }
  .review-card h3 {
    margin: 10px 0 8px;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.35;
  }
  .review-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
  }
  .review-card a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
  }
  .review-card a::after {
    content: '→';
    margin-left: 8px;
    color: var(--accent);
  }
  .highlight::after {
    display: none;
  }
  .project-card {
    animation: none;
  }
  @media (min-width: 768px) {
    .hero-shell {
      grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
      gap: 56px;
      align-items: center;
    }
  }
  @media (max-width: 940px) {
    .review-grid {
      grid-template-columns: 1fr;
    }
    .review-head {
      display: grid;
      align-items: start;
      gap: 8px;
    }
  }
  @media (max-width: 640px) {
    .hero {
      padding: 46px 0 34px !important;
    }
    .hero-shell {
      gap: 28px;
    }
    .identity-card {
      grid-template-columns: 74px minmax(0, 1fr);
      gap: 12px;
    }
    .profile-photo {
      width: 74px !important;
      height: 74px !important;
    }
    .profile-meta strong {
      font-size: 20px;
      line-height: 1.2;
    }
    .profile-meta span {
      line-height: 1.35;
    }
    .hero-actions {
      grid-template-columns: 1fr;
    }
    .stat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat {
      padding: 12px !important;
    }
  }

/* src/pages/en/index.astro style 1 */
.hero {
    padding: 108px 0 64px;
  }
  .hero h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(44px, 8vw, 82px);
    line-height: 1.02;
  }
  .subtitle {
    margin: 18px 0 0;
    color: var(--secondary);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 750;
  }
  .lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 44px;
    align-items: center;
  }
  .portrait-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .profile-photo {
    width: 138px;
    height: 138px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 34px rgba(16, 42, 67, 0.18);
    display: block;
  }
  .profile-meta {
    margin-top: 18px;
  }
  .profile-meta strong {
    display: block;
    color: var(--primary);
    font-size: 20px;
  }
  .profile-meta span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }
  .stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  }
  .stat strong {
    display: block;
    color: var(--primary);
    font-size: 28px;
    line-height: 1.1;
  }
  .stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .about-copy {
    display: grid;
    gap: 16px;
  }
  .about-copy p {
    margin: 0;
  }
  .education-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 22px;
    align-items: stretch;
  }
  .school {
    padding: 28px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(47, 111, 94, 0.92)), var(--primary);
    color: #fff;
    border-radius: var(--radius);
  }
  .school h3 {
    margin: 0;
    font-size: 27px;
  }
  .school p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
  }
  .rank-list {
    display: grid;
    gap: 12px;
  }
  .rank-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 750;
  }
  .rank-item span {
    color: var(--muted);
  }
  .interest-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .interest-card strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 4px;
  }
  .interest-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
  }
  .highlight {
    position: relative;
    min-height: 170px;
    overflow: hidden;
  }
  .highlight::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 12px solid var(--accent-soft);
    pointer-events: none;
  }
  .highlight .num {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin-bottom: 20px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
  }
  .skill-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }
  .skill-card li {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(47, 81, 104, 0.05);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 720;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
  }
  .project-card .tag-row {
    margin-top: 18px;
  }
  .project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .project-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background 180ms ease;
  }
  .project-action:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.42);
    transform: translateY(-1px);
  }
  .project-action.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }
  .project-facts {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }
  .project-facts li {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
  }
  .project-facts b {
    color: var(--primary);
  }
  .contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
  }
  .contact-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
  }
  .contact-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
  }
  .contact-list {
    display: grid;
    gap: 10px;
    color: #fff;
    font-weight: 750;
    white-space: nowrap;
    overflow-wrap: anywhere;
  }
  .contact-list span {
    min-width: 0;
  }
  .contact-list a {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  [data-animate].revealed {
    opacity: 1;
    transform: translateY(0);
  }
  [data-animate='right'] {
    transform: none;
  }
  [data-animate='right'].revealed {
    transform: translateX(0);
  }
  [data-animate='up'] {
    transform: none;
  }
  [data-animate='up'].revealed {
    transform: translateY(0);
  }
  @media (max-width: 940px) {
    .hero-grid,
    .education-card,
    .contact-card {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 640px) {
    .hero {
      padding-top: 50px;
    }
    .stat-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .hero {
    padding: 82px 0 42px;
    border-bottom: 1px solid rgba(226, 231, 238, 0.82);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18)),
      radial-gradient(circle at 84% 22%, rgba(47, 111, 94, 0.12), transparent 20rem);
  }
  .hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero-context {
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 800;
  }
  .hero h1 {
    font-size: clamp(52px, 8vw, 86px);
    letter-spacing: 0;
  }
  .subtitle {
    max-width: 760px;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.28;
  }
  .lead {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.85;
  }
  .hero-actions {
    margin-top: 28px;
  }
  .hero-proof {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
  }
  .identity-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .profile-meta {
    margin: 0;
    min-width: 0;
  }
  .profile-meta strong {
    font-size: 22px;
  }
  .profile-meta a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }
  .stat {
    min-height: 86px;
    padding: 14px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }
  .stat span {
    display: block;
    margin-bottom: 8px;
  }
  .stat strong {
    font-size: 25px;
  }
  .proof-list {
    display: grid;
    gap: 8px;
  }
  .proof-list a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
  }
  .proof-list a::after {
    content: '→';
    color: var(--accent);
  }
  .review-strip {
    padding: 34px 0 58px;
  }
  .review-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    margin-bottom: 18px;
  }
  .review-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
  }
  .review-head p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
  }
  .review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .review-card {
    display: grid;
    align-content: start;
    min-height: 216px;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .review-card span {
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
  }
  .review-card h3 {
    margin: 10px 0 8px;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.35;
  }
  .review-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
  }
  .review-card a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
  }
  .review-card a::after {
    content: '→';
    margin-left: 8px;
    color: var(--accent);
  }
  .highlight::after {
    display: none;
  }
  .project-card {
    animation: none;
  }
  @media (min-width: 768px) {
    .hero-shell {
      grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
      gap: 56px;
      align-items: center;
    }
  }
  @media (max-width: 940px) {
    .review-grid {
      grid-template-columns: 1fr;
    }
    .review-head {
      display: grid;
      align-items: start;
      gap: 8px;
    }
  }
  @media (max-width: 640px) {
    .hero {
      padding: 46px 0 34px !important;
    }
    .hero-shell {
      gap: 28px;
    }
    .identity-card {
      grid-template-columns: 74px minmax(0, 1fr);
      gap: 12px;
    }
    .profile-photo {
      width: 74px !important;
      height: 74px !important;
    }
    .profile-meta strong {
      font-size: 20px;
      line-height: 1.2;
    }
    .profile-meta span {
      line-height: 1.35;
    }
    .hero-actions {
      grid-template-columns: 1fr;
    }
    .stat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat {
      padding: 12px !important;
    }
  }

/* src/pages/modeling.astro style 1 */
.hero {
    padding: 80px 0 40px;
  }
  .hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    color: var(--primary);
  }
  .lead {
    max-width: 640px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
  }
  .flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .step {
    text-align: center;
    padding: 20px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .step b {
    display: block;
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 6px;
  }
  @media (max-width: 640px) {
    .flow {
      grid-template-columns: repeat(3, 1fr);
    }
  }

/* src/pages/en/modeling.astro style 1 */
.hero {
    padding: 80px 0 40px;
  }
  .hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    color: var(--primary);
  }
  .lead {
    max-width: 640px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
  }
  .flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .step {
    text-align: center;
    padding: 20px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .step b {
    display: block;
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 6px;
  }
  @media (max-width: 640px) {
    .flow {
      grid-template-columns: repeat(3, 1fr);
    }
  }

/* src/pages/evidence.astro style 1 */
.hero {
    padding: 80px 0 30px;
  }
  .hero h1 {
    font-size: clamp(36px, 6vw, 54px);
    color: var(--primary);
  }
  .lead {
    max-width: 720px;
    margin-top: 12px;
    color: var(--muted);
  }
  .evidence-overview {
    padding: 8px 0 28px;
  }
  .evidence-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .evidence-metrics div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .evidence-metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }
  .evidence-metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
  }
  .category-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }
  .category-rail a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }
  .category-rail em {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-style: normal;
  }
  .evidence-catalog {
    padding: 0 0 64px;
  }
  .evidence-groups {
    display: grid;
    gap: 32px;
  }
  .evidence-group {
    scroll-margin-top: 96px;
  }
  .group-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .group-head h2 {
    margin: 4px 0 14px;
    color: var(--primary);
    font-size: clamp(23px, 3vw, 32px);
  }
  .evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .cert-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease;
    cursor: pointer;
  }
  .cert-card:hover {
    border-color: rgba(201, 162, 39, 0.42);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
  .cert-thumb {
    display: grid;
    min-height: 230px;
    place-items: center;
    background: #f5f5f5;
  }
  .cert-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
  }
  .cert-body {
    display: grid;
    gap: 10px;
    padding: 16px;
  }
  .cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cert-meta span,
  .access-note {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(47, 111, 94, 0.1);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }
  .access-note {
    background: var(--accent-soft);
    color: var(--primary);
  }
  .cert-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.35;
  }
  .cert-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
  }
  .cert-card dt {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
  }
  .cert-card dd {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
  @media (max-width: 980px) {
    .evidence-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 700px) {
    .evidence-metrics {
      grid-template-columns: 1fr;
    }
    .evidence-grid {
      grid-template-columns: 1fr;
    }
  }

/* src/pages/en/evidence.astro style 1 */
.hero {
    padding: 80px 0 30px;
  }
  .hero h1 {
    font-size: clamp(36px, 6vw, 54px);
    color: var(--primary);
  }
  .lead {
    max-width: 720px;
    margin-top: 12px;
    color: var(--muted);
  }
  .evidence-overview {
    padding: 8px 0 28px;
  }
  .evidence-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .evidence-metrics div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .evidence-metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }
  .evidence-metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
  }
  .category-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }
  .category-rail a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }
  .category-rail em {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-style: normal;
  }
  .evidence-catalog {
    padding: 0 0 64px;
  }
  .evidence-groups {
    display: grid;
    gap: 32px;
  }
  .evidence-group {
    scroll-margin-top: 96px;
  }
  .group-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .group-head h2 {
    margin: 4px 0 14px;
    color: var(--primary);
    font-size: clamp(23px, 3vw, 32px);
  }
  .evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .cert-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease;
    cursor: pointer;
  }
  .cert-card:hover {
    border-color: rgba(201, 162, 39, 0.42);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
  .cert-thumb {
    display: grid;
    min-height: 230px;
    place-items: center;
    background: #f5f5f5;
  }
  .cert-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
  }
  .cert-body {
    display: grid;
    gap: 10px;
    padding: 16px;
  }
  .cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cert-meta span,
  .access-note {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(47, 111, 94, 0.1);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }
  .access-note {
    background: var(--accent-soft);
    color: var(--primary);
  }
  .cert-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.35;
  }
  .cert-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
  }
  .cert-card dt {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
  }
  .cert-card dd {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
  @media (max-width: 980px) {
    .evidence-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 700px) {
    .evidence-metrics {
      grid-template-columns: 1fr;
    }
    .evidence-grid {
      grid-template-columns: 1fr;
    }
  }

/* src/pages/materials.astro style 1 */
.materials-hero {
    padding: 108px 0 54px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.94), rgba(47, 111, 94, 0.88)), var(--primary);
    color: #fff;
  }
  .materials-hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .materials-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06;
  }
  .materials-hero .lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
  }
  .hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }
  .hub-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
  }
  .hub-actions .btn.primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
  }
  .access-legend {
    padding: 28px 0 0;
  }
  .legend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .legend-item {
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .legend-item span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
  }
  .legend-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }
  .materials-section {
    padding: 34px 0 18px;
  }
  .material-groups {
    display: grid;
    gap: 30px;
  }
  .material-group {
    display: grid;
    gap: 14px;
  }
  .group-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .group-head h2 {
    margin: 4px 0 0;
    color: var(--primary);
    font-size: clamp(24px, 3.6vw, 34px);
  }
  .material-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .material-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.07);
  }
  .material-card.access-local {
    border-style: dashed;
    background: rgba(226, 231, 238, 0.34);
    box-shadow: none;
  }
  .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .material-card .status,
  .access-badge {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }
  .material-card .status {
    background: var(--accent-soft);
    color: var(--primary);
  }
  .access-badge {
    background: rgba(47, 111, 94, 0.1);
    color: var(--secondary);
  }
  .access-restricted .access-badge {
    background: rgba(201, 162, 39, 0.16);
    color: #8a6515;
  }
  .access-local .access-badge {
    background: rgba(15, 23, 32, 0.08);
    color: var(--muted);
  }
  .material-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
  }
  .material-card p,
  .material-card dd {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
  }
  .material-card dl {
    margin: 0;
  }
  .material-card dt {
    margin-bottom: 3px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 850;
  }
  .material-link {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }
  .material-link.disabled {
    background: rgba(15, 23, 32, 0.08);
    color: var(--muted);
    cursor: not-allowed;
  }
  .privacy-note {
    padding: 10px 0 70px;
  }
  .privacy-card {
    padding: 24px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(201, 162, 39, 0.1);
  }
  .privacy-card h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 22px;
  }
  .privacy-card p {
    margin: 0;
    color: var(--muted);
  }
  @media (max-width: 900px) {
    .legend-grid {
      grid-template-columns: 1fr;
    }
    .legend-item {
      min-height: 0;
    }
  }
  @media (max-width: 760px) {
    .materials-hero {
      padding-top: 62px;
    }
    .material-grid {
      grid-template-columns: 1fr;
    }
    .material-card {
      padding: 18px;
    }
  }

/* src/pages/en/materials.astro style 1 */
.materials-hero {
    padding: 108px 0 54px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.94), rgba(47, 111, 94, 0.88)), var(--primary);
    color: #fff;
  }
  .materials-hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .materials-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06;
  }
  .materials-hero .lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
  }
  .hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }
  .hub-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
  }
  .hub-actions .btn.primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
  }
  .access-legend {
    padding: 28px 0 0;
  }
  .legend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .legend-item {
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .legend-item span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
  }
  .legend-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }
  .materials-section {
    padding: 34px 0 18px;
  }
  .material-groups {
    display: grid;
    gap: 30px;
  }
  .material-group {
    display: grid;
    gap: 14px;
  }
  .group-head span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .group-head h2 {
    margin: 4px 0 0;
    color: var(--primary);
    font-size: clamp(24px, 3.6vw, 34px);
  }
  .material-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .material-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.07);
  }
  .material-card.access-local {
    border-style: dashed;
    background: rgba(226, 231, 238, 0.34);
    box-shadow: none;
  }
  .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .material-card .status,
  .access-badge {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }
  .material-card .status {
    background: var(--accent-soft);
    color: var(--primary);
  }
  .access-badge {
    background: rgba(47, 111, 94, 0.1);
    color: var(--secondary);
  }
  .access-restricted .access-badge {
    background: rgba(201, 162, 39, 0.16);
    color: #8a6515;
  }
  .access-local .access-badge {
    background: rgba(15, 23, 32, 0.08);
    color: var(--muted);
  }
  .material-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
  }
  .material-card p,
  .material-card dd {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
  }
  .material-card dl {
    margin: 0;
  }
  .material-card dt {
    margin-bottom: 3px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 850;
  }
  .material-link {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
  }
  .material-link.disabled {
    background: rgba(15, 23, 32, 0.08);
    color: var(--muted);
    cursor: not-allowed;
  }
  .privacy-note {
    padding: 10px 0 70px;
  }
  .privacy-card {
    padding: 24px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(201, 162, 39, 0.1);
  }
  .privacy-card h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 22px;
  }
  .privacy-card p {
    margin: 0;
    color: var(--muted);
  }
  @media (max-width: 900px) {
    .legend-grid {
      grid-template-columns: 1fr;
    }
    .legend-item {
      min-height: 0;
    }
  }
  @media (max-width: 760px) {
    .materials-hero {
      padding-top: 62px;
    }
    .material-grid {
      grid-template-columns: 1fr;
    }
    .material-card {
      padding: 18px;
    }
  }

/* src/styles/mobile.css */
/* ═══════════════════════════════════════
   Mobile Responsive Styles
   All breakpoints consolidated here
   ═══════════════════════════════════════ */

/* ── 980px: Tablet ── */
@media (max-width: 980px) {
  .nav {
    gap: 8px;
  }
  .brand {
    min-height: 44px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand > span:not(.brand-mark) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-actions {
    flex: 0 0 auto;
  }
  .lang-switch {
    flex: 0 0 auto;
  }
  .lang-switch a,
  .ls a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
  }
  .contact-list a,
  .project-facts a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .filter-btn {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .footer-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
  }
  .lightbox-close,
  .lightbox-nav {
    min-width: 44px;
    min-height: 44px;
  }
  section {
    padding: 48px 0;
  }
  .hero {
    padding: 80px 0 40px;
  }
  .nav-links.open {
    animation: navFadeIn 0.2s ease-out;
  }
  @keyframes navFadeIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── 768px: Small tablet / large phone ── */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    gap: 28px;
  }
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
  .tech-card {
    padding: 14px;
  }
  .tech-card strong {
    font-size: 14px;
  }
  .module-card {
    padding: 12px;
  }
  .cert-card img {
    height: 200px;
  }
  .blog-card {
    padding: 18px;
  }
  .blog-card h2 {
    font-size: 18px;
  }
  #tab-content fieldset.card {
    padding: 12px;
  }
  #tab-content .field {
    margin-bottom: 10px;
  }
}

/* ── 640px: Phone ── */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px) !important;
  }

  .hero {
    padding: 50px 0 42px !important;
  }
  .hero-grid,
  .education-card,
  .contact-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  .hero-grid > *,
  .contact-card > *,
  .education-card > * {
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 11vw, 44px) !important;
    overflow-wrap: anywhere;
  }
  .subtitle,
  .lead,
  .section-head p,
  .card p,
  .contact-list,
  .profile-meta,
  .project-facts {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }
  .hero-actions .btn {
    min-height: 46px;
    padding: 0 12px;
    white-space: normal;
    text-align: center;
  }

  .portrait-card {
    width: 100%;
    max-width: 100%;
    padding: 20px !important;
    transform: none !important;
  }
  .profile-photo {
    width: 116px !important;
    height: 116px !important;
  }
  .stat-grid {
    gap: 10px !important;
  }
  .stat {
    padding: 14px !important;
  }
  .stat strong {
    font-size: 24px !important;
  }

  .tag-row {
    gap: 8px !important;
    margin-top: 22px !important;
  }
  .tag {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .card.pad {
    padding: 20px;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* ChemAI Lab */
  .tech-card {
    padding: 12px;
  }
  .tech-card strong {
    font-size: 14px;
  }
  .tech-card span {
    font-size: 12px;
  }
  .module-card {
    padding: 12px 10px;
    min-height: auto;
  }
  .module-card h3 {
    font-size: 14px;
  }
  .module-card p {
    font-size: 12px;
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .step {
    min-width: 0;
    padding: 16px 8px !important;
    overflow-wrap: anywhere;
  }

  .contact-card {
    padding: 22px !important;
  }
  .contact-list {
    white-space: normal !important;
    word-break: break-word;
  }

  /* Competition timeline */
  .tl-item {
    margin-bottom: 12px;
  }
  .tl-card {
    padding: 12px 14px;
  }
  .tl-card strong {
    font-size: 14px;
  }
  .tl-card em {
    font-size: 12px;
  }
  .tl-year {
    font-size: 11px;
  }
  .timeline-filters {
    gap: 6px;
  }
  .filter-btn {
    padding: 7px 11px;
    font-size: 12px;
    min-height: 38px;
  }
  .timeline-track {
    padding-left: 18px;
  }
  .tl-dot {
    width: 10px;
    height: 10px;
    left: -23px;
  }

  /* Research interests */
  .interest-card {
    padding: 12px;
  }
  .interest-card strong {
    font-size: 14px;
  }
  .interest-card p {
    font-size: 13px;
  }

  /* Projects */
  .project-card {
    min-height: auto !important;
  }
  .project-facts li {
    grid-template-columns: 60px 1fr;
    gap: 6px;
    font-size: 13px;
  }

  /* Certificate / Lightbox */
  .cert-card img {
    height: clamp(180px, 58vw, 240px) !important;
  }
  .cert-card {
    width: 100%;
  }
  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .lightbox-nav {
    font-size: 28px;
    width: 44px;
    height: 44px;
  }
  .lightbox-prev {
    left: 4px;
  }
  .lightbox-next {
    right: 4px;
  }

  /* Blog */
  .blog-card {
    padding: 16px;
  }
  .blog-card h2 {
    font-size: 17px;
  }
  .blog-card p {
    font-size: 14px;
  }
  .blog-content {
    padding: 0 !important;
  }
  .blog-content h2 {
    font-size: 20px;
  }
  .blog-content pre {
    font-size: 13px;
    padding: 12px;
  }

  /* Admin */
  .admin-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  fieldset.card {
    padding: 12px;
  }
  fieldset.card .field {
    margin-bottom: 8px;
  }

  /* Write page */
  .field textarea {
    min-height: 150px;
  }

  /* Mermaid diagram */
  .mermaid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer */
  footer {
    padding: 22px 0 32px;
    font-size: 12px;
  }
  .footer-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
    margin: 0 2px;
  }

  /* Section spacing */
  section {
    padding: 36px 0;
    scroll-margin-top: 56px;
  }
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .section-head p {
    max-width: 100%;
  }

  /* Education card */
  .education-card {
    gap: 14px !important;
  }
  .school {
    padding: 20px;
  }
  .school h3 {
    font-size: 22px;
  }

  /* Skill tags */
  .skill-card ul {
    gap: 6px;
  }
  .skill-card li {
    font-size: 12px;
    padding: 5px 8px;
  }
  .skill-card h3 {
    font-size: 16px;
  }

  /* Particles performance */
  #particles-bg,
  #mol-bg {
    opacity: 0.4;
  }

  /* Award hero */
  .hero-icon {
    font-size: 48px;
  }
}

/* ── 360px: Small phones ── */
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px) !important;
  }
  .nav {
    min-height: 60px !important;
  }
  .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }
  .brand > span:not(.brand-mark) {
    max-width: 92px;
  }
  .nav-actions {
    gap: 4px !important;
  }
  .icon-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(30px, 10.5vw, 38px) !important;
  }
  .subtitle {
    font-size: 17px !important;
  }
  .lead {
    font-size: 15.5px !important;
  }
  .toolbar {
    gap: 8px !important;
    padding: 10px !important;
  }
  .hero-icon {
    font-size: 36px;
  }
  .admin-tab {
    font-size: 11px;
    padding: 5px 8px;
  }
  .stat strong {
    font-size: 20px !important;
  }
}

