/* =========================================================
   GS.TSKH Đặng Hùng Võ — Website chính thức (bản demo)
   Phong cách: Editorial cổ điển · Light theme
   ========================================================= */

:root {
  --paper: #FAF7F1;
  --paper-2: #F3EDE3;
  --paper-3: #EAE2D5;
  --card: #FFFFFF;
  --ink: #17202E;
  --ink-2: #3A4252;
  --muted: #5E6270;
  --line: #E4DCCF;
  --line-strong: #D3C8B6;
  --accent: #9A3A1E;        /* đỏ đất nung */
  --accent-soft: #F6E7DF;
  --orange: #C9672E;        /* cam ấm — hài hoà với ảnh chân dung */
  --gold: #A9844A;          /* vàng đồng */
  --gold-soft: #EFE4D0;
  --gold-ink: #806030;      /* vàng đồng cho chữ — đạt tương phản AA */
  --navy: #142036;

  --serif: "Playfair Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 46, .05), 0 2px 8px rgba(23, 32, 46, .04);
  --shadow: 0 2px 4px rgba(23, 32, 46, .04), 0 12px 32px rgba(23, 32, 46, .08);
  --shadow-lg: 0 30px 80px -20px rgba(23, 32, 46, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 18px; text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }
.h2 em, .h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-2); line-height: 1.75; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head-row .section-head { max-width: 880px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(23,32,46,.6); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s;
}
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { border-color: currentColor; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.scrolled, .nav.solid {
  background: rgba(250, 247, 241, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--accent);
  font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold-soft));
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.brand-text span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 11px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(23,32,46,.05); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.7); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--orange)); z-index: 60; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 12px 20px 28px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { left: auto; right: 10px; top: 50%; bottom: auto; margin-top: -2.5px; }
  .nav { background: rgba(250, 247, 241, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

/* ---------- Contour background ---------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--gold); opacity: .32; }
.contours path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(201,103,46,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(169,132,74,.12), transparent 60%),
    var(--paper);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(54px, 8.4vw, 116px);
  line-height: .98; font-weight: 600; letter-spacing: -.025em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .accent { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-title {
  margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.9vw, 24px); color: var(--ink-2); line-height: 1.5;
  padding-left: 20px; border-left: 2px solid var(--gold); max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-honors { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-honors div { display: flex; flex-direction: column; }
.hero-honors strong { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--ink); }
.hero-honors span { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 160px; }

.portrait-wrap { position: relative; justify-self: end; width: min(100%, 500px); }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: var(--paper-3); box-shadow: var(--shadow-lg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.portrait-wrap:hover .portrait-frame img { transform: scale(1.08); }
.portrait-outline {
  position: absolute; inset: -18px 18px 18px -18px; border-radius: 999px 999px 30px 30px;
  border: 1px solid var(--gold); z-index: -1;
}
.portrait-badge {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35; color: var(--ink-2);
  animation: floaty 6s ease-in-out infinite;
}
.portrait-badge strong { display: block; color: var(--ink); font-size: 14px; }
.portrait-badge .ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.portrait-badge .ico svg { width: 19px; height: 19px; }
.portrait-badge.b1 { left: -46px; bottom: 120px; }
.portrait-badge.b2 { right: -22px; bottom: 26px; animation-delay: -3s; }
.portrait-caption { position: absolute; right: 0; top: 100%; margin-top: 30px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; top: -40%; left: 0; width: 1px; height: 40%; background: var(--accent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-height: 980px) { .scroll-cue { display: none; } }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait-wrap { justify-self: center; width: min(86%, 420px); order: -1; }
  .portrait-badge.b1 { left: -18px; bottom: 90px; }
  .portrait-badge.b2 { right: -12px; }
  .portrait-caption { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .hero-honors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
  .hero-honors strong { font-size: 24px; }
  .hero-honors span { font-size: 12px; }
  .portrait-badge { padding: 9px 12px; font-size: 12px; }
  .portrait-badge .ico { width: 32px; height: 32px; }
  .portrait-badge.b1 { left: -10px; bottom: 76px; }
  .portrait-badge.b2 { right: -8px; bottom: 14px; }
}

/* ---------- Ribbon / marquee ---------- */
.ribbon { background: var(--ink); color: #F4EEE4; overflow: hidden; padding: 22px 0; position: relative; }
.ribbon-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ribbon-track span { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 26px); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.ribbon-track span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section.alt { background: var(--paper-2); }
section[id] { scroll-margin-top: calc(var(--nav-h) - 40px); }
.section.tight { padding: clamp(56px, 7vw, 90px) 0; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; width: 100%; }
.intro-media .stamp {
  position: absolute; right: -28px; bottom: -28px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow);
}
.intro-media .stamp strong { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.intro-media .stamp span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.prose p { margin: 0 0 1.15em; color: var(--ink-2); }
.prose p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 4.4em; line-height: .82; padding: 8px 12px 0 0; color: var(--accent); font-weight: 600;
}
.prose.no-drop p:first-of-type::first-letter { all: unset; }
.signature { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.signature strong { font-family: var(--serif); font-style: italic; font-size: 26px; font-weight: 500; }
.signature span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { max-width: 460px; }
  .intro-media .stamp { right: -10px; bottom: -22px; width: 124px; height: 124px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stat { padding: 44px 28px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.stat strong sup { font-size: .42em; color: var(--accent); margin-left: 4px; vertical-align: super; }
.stat span { display: block; margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Journey (horizontal timeline teaser) */
.journey { position: relative; }
.journey-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.journey-track::before { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 1px; background: var(--line-strong); }
.journey-item { position: relative; padding: 0 18px 0 0; }
.journey-item .yr { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--ink); line-height: 1; }
.journey-item .pin { position: relative; margin: 18px 0 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--accent); z-index: 1; }
.journey-item:hover .pin { background: var(--accent); }
.journey-item h3 { font-size: 19px; line-height: 1.3; }
.journey-item p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 1020px) {
  .journey-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; margin: 0 -24px; padding-left: 24px; scrollbar-width: thin; }
  .journey-item { scroll-snap-align: start; }
  .journey-track::before { left: 24px; width: calc(74% * 6); }
}
@media (min-width: 600px) and (max-width: 1020px) { .journey-track { grid-auto-columns: 40%; } }

/* Contribution cards */
.contrib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contrib {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.contrib:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.contrib .num::before { content: attr(data-n); }
.contrib .num { position: absolute; right: 30px; top: 18px; font-family: var(--serif); font-size: 78px; font-weight: 700; color: var(--paper-2); line-height: 1; transition: color .35s; }
.contrib:hover .num { color: var(--accent-soft); }
.contrib .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); position: relative; }
.contrib .ico svg { width: 26px; height: 26px; }
.contrib h3 { margin-top: 26px; font-size: 26px; position: relative; }
.contrib p { margin: 14px 0 0; color: var(--ink-2); position: relative; }
.contrib .tag { display: inline-block; margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 800px) { .contrib-grid { grid-template-columns: 1fr; } .contrib { padding: 30px; } }

/* Quote band */
.quote-band { position: relative; overflow: hidden; background: var(--paper-2); }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.quote-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1/1; }
.quote-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
blockquote.big { margin: 0; position: relative; }
blockquote.big .mark { font-family: var(--serif); font-size: 160px; line-height: .6; color: var(--accent); display: block; height: 70px; }
blockquote.big p { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.28; font-weight: 500; margin: 0; letter-spacing: -.01em; }
blockquote.big footer { margin-top: 30px; font-size: 15px; color: var(--muted); }
blockquote.big footer strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } .quote-img { max-width: 380px; } }

/* Article cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.a-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; min-height: 280px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.a-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.a-card .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.chip.gold { background: var(--gold-soft); color: #7A5B2A; }
.chip.ink { background: rgba(23,32,46,.07); color: var(--ink-2); }
.a-card h3 { margin-top: 18px; font-size: 25px; line-height: 1.25; transition: color .25s; }
.a-card:hover h3 { color: var(--accent); }
.a-card p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; flex: 1; }
.a-card .foot { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.a-card .foot svg { width: 18px; height: 18px; color: var(--accent); transition: transform .25s var(--ease); }
.a-card:hover .foot svg { transform: translate(3px, -3px); }
.a-card.featured { grid-column: span 2; background: var(--ink); color: #F4EEE4; border-color: var(--ink); position: relative; overflow: hidden; }
.a-card.featured h3 { font-size: clamp(30px, 3.4vw, 44px); color: #fff; }
.a-card.featured p { color: rgba(244,238,228,.82); font-size: 17px; }
.a-card.featured .meta { color: rgba(244,238,228,.7); }
.a-card.featured .chip { background: rgba(255,255,255,.12); color: #F7D9C4; }
.a-card.featured .foot { border-color: rgba(255,255,255,.18); color: #fff; }
.a-card.featured .foot svg { color: var(--orange); }
.a-card.featured:hover h3 { color: #F7D9C4; }
.a-card.featured .contours { color: var(--orange); opacity: .22; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; } .a-card.featured { grid-column: auto; } }

/* Book + press */
.book-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.book {
  position: sticky; top: calc(var(--nav-h) + 30px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center;
}
.book-cover { width: 72%; margin: 0 auto; border-radius: 4px 10px 10px 4px; box-shadow: -10px 16px 40px -12px rgba(23,32,46,.45), inset 4px 0 0 rgba(0,0,0,.08); transform: perspective(900px) rotateY(-8deg); transition: transform .5s var(--ease); }
.book:hover .book-cover { transform: perspective(900px) rotateY(0); }
.book h3 { margin-top: 30px; font-size: 23px; }
.book p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.press-item { border-bottom: 1px solid var(--line); }
.press-item a { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 6px; transition: background .25s, padding .25s; }
.press-item a:hover { background: rgba(255,255,255,.6); padding-left: 14px; }
.press-item .date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.press-item .title { font-family: var(--serif); font-size: 20px; line-height: 1.35; font-weight: 500; }
.press-item a:hover .title { color: var(--accent); }
.press-item .src { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.press-item svg { width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book { position: static; max-width: 420px; }
  .press-item a { grid-template-columns: 1fr auto; gap: 6px 18px; }
  .press-item .date { grid-column: 1 / -1; }
}

/* Gallery */
.gallery { columns: 3 280px; column-gap: 20px; }
.gallery figure { margin: 0 0 20px; break-inside: avoid; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--paper-3); }
.gallery img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; font-size: 14px; line-height: 1.45;
  background: linear-gradient(transparent, rgba(16, 20, 28, .78)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.gallery figcaption small { display: block; opacity: .75; font-size: 12px; margin-top: 3px; }
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 18, 26, .92); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.lightbox.open { display: flex; animation: fadeIn .3s; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #E9E3D8; margin-top: 16px; text-align: center; font-size: 15px; }
.lightbox figcaption small { display: block; color: #A9A397; margin-top: 2px; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -25px; }
.lb-next { right: 20px; top: 50%; margin-top: -25px; }
@keyframes fadeIn { from { opacity: 0; } }

/* Archive CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #F4EEE4; border-radius: 28px; padding: clamp(48px, 7vw, 90px); }
.cta-band .contours { color: var(--gold); opacity: .25; }
.cta-band .years { position: absolute; right: -20px; bottom: -40px; font-family: var(--serif); font-size: clamp(120px, 18vw, 240px); font-weight: 700; color: rgba(255,255,255,.05); line-height: 1; white-space: nowrap; pointer-events: none; }
.cta-band .eyebrow { color: #E7B98F; }
.cta-band h2 { color: #fff; max-width: 680px; }
.cta-band p { color: rgba(244,238,228,.78); max-width: 560px; margin: 20px 0 34px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--orange); color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(244,238,228,.75); padding: 90px 0 36px; margin-top: 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; position: relative; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: rgba(244,238,228,.55); }
.footer .brand-mark { background: transparent; color: #E7B98F; border-color: rgba(231,185,143,.6); }
.footer h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #E7B98F; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer p { font-size: 15px; line-height: 1.7; margin: 20px 0 0; }
.footer-bottom { position: relative; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(244,238,228,.5); }
.newsletter { display: flex; margin-top: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 10px 14px; font: inherit; font-size: 14.5px; }
.newsletter input::placeholder { color: rgba(244,238,228,.45); }
.newsletter input:focus { outline: none; }
.newsletter button { border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.newsletter button:hover { background: var(--orange); color: #fff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 80px) 0 80px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; }
.page-hero h1 { margin-top: 22px; font-size: clamp(46px, 7vw, 92px); letter-spacing: -.025em; line-height: 1; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.page-hero .lead { margin-top: 22px; max-width: 680px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.page-hero-img { width: 230px; aspect-ratio: 4/5; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 760px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-img { display: none; } }

/* ---------- Biography ---------- */
.bio-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.bio-aside { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; scrollbar-width: none; }
.bio-aside::-webkit-scrollbar { display: none; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts img { aspect-ratio: 16/10; object-fit: cover; object-position: 50% 22%; width: 100%; }
.facts dl { margin: 0; padding: 4px 22px 18px; }
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 12px; }
.facts dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.toc { margin-top: 22px; padding: 22px 24px; border-left: 1px solid var(--line-strong); }
.toc .toc-title { font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -25px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.chapter { padding-bottom: 72px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.chapter + .chapter { padding-top: 72px; border-top: 1px solid var(--line); }
.chapter-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; }
.chapter-head .idx { font-family: var(--serif); font-size: 15px; color: var(--gold-ink); font-style: italic; }
.chapter-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
.chapter-head .span { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }

.timeline { position: relative; list-style: none; margin: 36px 0 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 144px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 48px; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); text-align: right; line-height: 1.3; padding-right: 4px; }
.timeline .when small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.timeline .what { position: relative; }
.timeline .what::before { content: ""; position: absolute; left: -31.5px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline li.key .what::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline h3 { font-size: 21px; line-height: 1.35; }
.timeline p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.timeline .place { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .timeline .when { text-align: left; }
  .timeline .what::before { left: -34px; top: -22px; }
}
.figure-wide { margin: 40px 0 0; }
.figure-wide img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: 50% 30%; box-shadow: var(--shadow); }
.figure-wide figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15.5px; }
.data-table th, .data-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.data-table td:first-child { font-family: var(--serif); font-weight: 600; white-space: nowrap; color: var(--accent); width: 140px; }
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.honor { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.honor .yr { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--accent); line-height: 1; }
.honor h3 { margin-top: 14px; font-size: 19px; line-height: 1.35; }
.honor p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 980px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-aside { position: static; display: grid; grid-template-columns: 1fr; }
  .toc { display: none; }
  .facts { display: grid; grid-template-columns: 180px 1fr; }
  .facts img { height: 100%; aspect-ratio: auto; }
  .honor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts img { aspect-ratio: 1/1; } .honor-grid { grid-template-columns: 1fr; } }

/* ---------- Contributions page ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 130px); }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; background: var(--ink); box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.feature-media .contours { color: var(--gold); opacity: .5; }
.feature-media .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; color: #fff; background: linear-gradient(transparent 40%, rgba(14,18,26,.7)); }
.feature-media .overlay strong { font-family: var(--serif); font-size: clamp(54px, 7vw, 92px); line-height: .9; font-weight: 600; }
.feature-media .overlay span { margin-top: 10px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.feature h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; }
.feature ul.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.feature ul.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.feature ul.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.coord-art { position: absolute; inset: 0; display: grid; place-items: center; }
.coord-art svg { width: 70%; height: 70%; color: #E7B98F; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.reverse .feature-media { order: 0; } }

.topic-bars { display: grid; gap: 16px; margin-top: 10px; }
.topic-bar { display: grid; grid-template-columns: 170px 1fr 40px; gap: 18px; align-items: center; font-size: 15px; }
.topic-bar .track { height: 10px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.topic-bar .fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--orange)); transition: width 1.4s var(--ease); }
.topic-bar b { font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 560px) { .topic-bar { grid-template-columns: 1fr 40px; } .topic-bar .track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Blog page ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { border: 1px solid var(--line-strong); background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn .count { margin-left: 6px; font-size: 12px; opacity: .6; }
.search { position: relative; flex: 0 1 300px; }
.search input { width: 100%; padding: 12px 18px 12px 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Archive page ---------- */
.archive-layout { display: grid; grid-template-columns: 200px 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.year-rail { position: sticky; top: calc(var(--nav-h) + 28px); display: flex; flex-direction: column; gap: 2px; }
.year-rail h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.year-rail a { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.year-rail a span { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--paper-2); border-radius: 99px; padding: 2px 9px; }
.year-rail a:hover { background: var(--card); color: var(--ink); }
.year-rail a.active { background: var(--ink); color: #fff; }
.year-rail a.active span { background: rgba(255,255,255,.14); color: #fff; }
.tabs { display: inline-flex; padding: 5px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 44px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: all .2s; }
.tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.year-group { scroll-margin-top: calc(var(--nav-h) + 24px); }
.year-group + .year-group { margin-top: 64px; }
.year-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.year-head h2 { font-size: clamp(48px, 6vw, 76px); line-height: .9; letter-spacing: -.03em; }
.year-head span { font-size: 14px; color: var(--muted); }
.entry { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line); transition: background .2s, padding .25s; }
.entry:hover { background: rgba(255,255,255,.65); padding-left: 14px; }
.entry .d { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry .t { font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 500; }
.entry:hover .t { color: var(--accent); }
.entry .s { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.entry svg { width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 860px) {
  .archive-layout { grid-template-columns: 1fr; }
  .year-rail { position: sticky; top: var(--nav-h); z-index: 5; flex-direction: row; overflow-x: auto; background: var(--paper); padding: 10px 0; margin: 0 -24px; padding-left: 24px; border-bottom: 1px solid var(--line); }
  .year-rail h4 { display: none; }
  .year-rail a { flex: none; gap: 8px; font-size: 16px; }
  .entry { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .entry .d { grid-column: 1 / -1; }
}

/* ---------- Single post ---------- */
.post-hero { padding: calc(var(--nav-h) + 70px) 0 50px; text-align: center; position: relative; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.post-hero h1 { margin: 22px auto 0; max-width: 900px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.1; letter-spacing: -.02em; }
.post-meta { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 14px; color: var(--muted); }
.post-author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.post-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.post-body { padding: 70px 0 40px; }
.post-body p { font-size: 19px; line-height: 1.85; color: var(--ink-2); margin: 0 0 1.3em; }
.post-body .standfirst { font-family: var(--serif); font-size: 24px; line-height: 1.55; color: var(--ink); font-style: italic; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--gold-soft); color: #6B4F22; font-size: 15px; margin-bottom: 36px; line-height: 1.6; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.source-box { margin-top: 30px; padding: 30px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.source-box p { margin: 0 !important; font-size: 16px !important; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
.hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.loaded .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.loaded .hero .fade-up { opacity: 1; transform: none; }
.loaded .hero .fade-up.d1 { transition-delay: .35s; } .loaded .hero .fade-up.d2 { transition-delay: .5s; } .loaded .hero .fade-up.d3 { transition-delay: .65s; } .loaded .hero .fade-up.d4 { transition-delay: .8s; }
.portrait-wrap.fade-up { transform: translateY(30px) scale(.97); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero .fade-up { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .ribbon-track { animation: none; }
}

/* ---------- Đăng nhập & thanh quản trị ---------- */
.footer-login { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-login:hover { color: #fff; }
.admin-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; background: var(--ink); color: #F4EEE4; border-radius: 999px; box-shadow: 0 12px 32px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100% - 32px); }
.admin-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; }
.admin-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; }
.admin-bar a:first-of-type { background: var(--accent); }
.admin-bar a:hover { filter: brightness(1.12); }
.admin-bar svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .admin-bar span { display: none; } .admin-bar { padding: 6px; } }

/* =========================================================
   CHIỀU SÂU & GRADIENT — giữ nguyên bảng màu đất nung · đồng · mực
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --grad-warm: linear-gradient(115deg, var(--accent) 0%, var(--orange) 55%, var(--gold) 100%);
  --grad-ink: linear-gradient(135deg, #22304A 0%, var(--ink) 60%, #0F1724 100%);
}

/* ---------- Logo: chân dung Giáo sư trong vòng đồng ---------- */
.brand-mark {
  position: relative; width: 46px; height: 46px; padding: 2px; border: 0; flex: none;
  background: conic-gradient(from 200deg, var(--gold), var(--orange), var(--accent), var(--gold));
  box-shadow: 0 6px 14px -6px rgba(23,32,46,.35);
}
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); }
.footer .brand-mark { background: conic-gradient(from 200deg, #E7B98F, var(--orange), #E7B98F); }
.footer .brand-mark img { border-color: var(--navy); }

/* ---------- Gradient chữ & điểm nhấn ---------- */
.hero h1 .accent, .page-hero h1 em {
  background: var(--grad-warm); background-size: 220% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; /* chữ nghiêng không bị cắt */
}
.loaded .hero h1 .accent { animation: sheen 2.4s .9s var(--ease-out) both; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.eyebrow::before, .eyebrow.center::after { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.journey-track::before { background: linear-gradient(90deg, var(--accent), var(--orange) 45%, var(--gold) 80%, var(--line-strong)); }
.journey-item .pin { background: radial-gradient(circle at 35% 30%, #fff, var(--accent-soft)); box-shadow: 0 3px 8px -2px rgba(23,32,46,.28); }
.journey-item:hover .pin { background: radial-gradient(circle at 35% 30%, var(--orange), var(--accent)); }
.footer { background: radial-gradient(900px 400px at 85% 0%, rgba(201,103,46,.16), transparent 60%), var(--navy); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-warm); opacity: .7; }
.page-hero, .post-hero {
  background:
    radial-gradient(900px 420px at 88% 10%, rgba(201,103,46,.12), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(169,132,74,.14), transparent 60%),
    var(--paper-2);
}

/* ---------- Nút: gradient + cảm giác bấm ---------- */
.btn { transition: transform .2s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn-primary { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-ink); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 26px -12px rgba(23,32,46,.7); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-warm); opacity: 0; transition: opacity .25s ease; }
.btn-primary:hover { background: var(--grad-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 16px 30px -12px rgba(23,32,46,.6); }
.btn-primary:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }

/* ---------- Địa hình 3D bằng canvas (effects.js) ---------- */
.terrain-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 38%); mask-image: linear-gradient(to bottom, transparent 2%, #000 38%);
}
.has-terrain > svg.contours { opacity: .1; }
.page-hero.has-terrain .terrain-canvas, .post-hero.has-terrain .terrain-canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}

/* ---------- Chân dung trang chủ: các lớp có chiều sâu ---------- */
.portrait-wrap { transform-style: preserve-3d; }
.loaded .portrait-wrap.fade-up { transition: opacity 1s var(--ease), transform .7s var(--ease-out); }
.portrait-frame { transform: translateZ(0); box-shadow: 0 50px 90px -30px rgba(23,32,46,.45), 0 0 0 1px rgba(255,255,255,.6) inset; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, transparent 38%, transparent 70%, rgba(154,58,30,.18) 100%);
}
.portrait-outline { transform: translateZ(-40px); border-color: transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad-warm) border-box; opacity: .85; }
.portrait-glow {
  position: absolute; inset: 8% -6% -4% 6%; border-radius: 50%; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201,103,46,.35), rgba(169,132,74,.18) 55%, transparent 75%);
  transform: translateZ(-80px); filter: blur(10px);
}
.portrait-badge { --z: 55px; animation-name: floaty3d; }
@keyframes floaty3d { 0%, 100% { transform: translate3d(0, 0, var(--z)); } 50% { transform: translate3d(0, -8px, var(--z)); } }
@media (hover: none) {
  .portrait-frame { animation: sway 10s ease-in-out infinite; }
  @keyframes sway { 0%, 100% { transform: rotateY(-4deg) rotateX(1deg); } 50% { transform: rotateY(4deg) rotateX(-1deg); } }
}

/* ---------- Tiêu đề lật 3D khi mở trang ---------- */
.hero h1 .line { perspective: 700px; }
.hero h1 .line > span { transform: translateY(105%) rotateX(-75deg); transform-origin: 50% 100%; }
.loaded .hero h1 .line > span { transform: none; }
.page-hero h1, .post-hero h1 { animation: rise3d 1.1s var(--ease-out) both; transform-origin: 50% 100%; }
@keyframes rise3d { from { opacity: 0; transform: perspective(800px) translateY(28px) rotateX(-28deg); } to { opacity: 1; transform: none; } }

/* ---------- Hiện dần khi cuộn: nghiêng nhẹ từ dưới lên ---------- */
.reveal { transform: perspective(1000px) translate3d(0, 34px, 0) rotateX(10deg); transform-origin: 50% 0; }
.reveal.in { transform: none; }

/* ---------- Thẻ nội dung nghiêng 3D theo chuột (chỉ máy có chuột) ---------- */
.a-card, .day-card, .work, .v-thumb, .gallery figure, .page-hero-img { position: relative; }
.tilting { transition: transform .12s linear, box-shadow .3s, border-color .3s !important; will-change: transform; z-index: 2; }
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.42), rgba(255,255,255,0) 55%);
  mix-blend-mode: soft-light;
}
.tilting > .glare { opacity: 1; }
.a-card.featured { background: radial-gradient(700px 300px at 100% 0%, rgba(201,103,46,.22), transparent 60%), var(--grad-ink); }
.work-cover { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); transform: perspective(700px) rotateY(-14deg); transform-origin: 0 50%; }
@media (hover: hover) and (pointer: fine) {
  .work:hover .work-cover { transform: perspective(700px) rotateY(-4deg) translateZ(10px); box-shadow: -12px 18px 32px -10px rgba(23,32,46,.45); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in, .hero h1 .line > span { transform: none; }
  .portrait-frame, .portrait-badge, .page-hero h1, .post-hero h1, .loaded .hero h1 .accent, .orbit-spin, .sat, .hero::after { animation: none; }
  .portrait-badge { transform: translate3d(0, 0, var(--z)); }
}

/* =========================================================
   LƯỢT 3 — nền sống động, vệ tinh GPS, chuyển trang bản đồ, huy chương, liên hệ
   ========================================================= */

/* ---------- Nền gradient chuyển động nhẹ ---------- */
body {
  background:
    radial-gradient(1100px 700px at 100% 0%, rgba(201,103,46,.06), transparent 60%),
    radial-gradient(900px 700px at 0% 40%, rgba(169,132,74,.07), transparent 60%),
    var(--paper);
}
.hero { isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 72% 30%, rgba(201,103,46,.20), transparent 70%),
    radial-gradient(30% 28% at 20% 75%, rgba(169,132,74,.22), transparent 70%),
    radial-gradient(26% 24% at 50% 10%, rgba(154,58,30,.10), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(3%, 2%, 0) rotate(6deg) scale(1.08); }
}
.section.alt, .sunrise {
  background:
    radial-gradient(800px 420px at 92% 8%, rgba(201,103,46,.10), transparent 62%),
    radial-gradient(700px 420px at 4% 96%, rgba(169,132,74,.14), transparent 62%),
    var(--paper-2);
}
.hero-grid, .page-hero .container, .post-hero .container { z-index: 1; }

@media (max-width: 1280px) { .portrait-badge.b2 { right: 4px; } }

/* ---------- Chuyển trang kiểu bản đồ ---------- */
html.dhv-enter body::before { content: ""; position: fixed; inset: 0; z-index: 9999; background: rgb(205,187,160); }
.map-tx { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; }
.map-tx-bands { position: absolute; inset: 0; display: block; }
.map-tx-bands path { stroke: rgba(169,132,74,.45); stroke-width: 1.2; transform-box: view-box; will-change: transform, opacity; }
.map-tx-bands path.idx { stroke: rgba(154,58,30,.4); stroke-width: 1.8; }
.map-tx-compass { position: absolute; left: 50%; top: 50%; width: min(24vmin, 150px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.map-tx-compass svg { width: 100%; height: 100%; overflow: visible; }
.map-tx-compass .c1 { fill: rgba(255,255,255,.7); stroke: rgba(169,132,74,.8); stroke-width: 1; }
.map-tx-compass .c2 { fill: none; stroke: rgba(169,132,74,.45); stroke-width: .6; }
.map-tx-compass line { stroke: rgba(128,96,48,.75); stroke-width: .6; }
.map-tx-compass .n { fill: var(--accent); } .map-tx-compass .s { fill: rgba(23,32,46,.75); } .map-tx-compass .ew { fill: rgba(169,132,74,.55); }
.map-tx-compass .hub { fill: var(--paper); stroke: rgba(23,32,46,.4); stroke-width: .8; }
.map-tx-compass text { fill: var(--accent); font: 700 9px var(--sans); text-anchor: middle; }
.map-tx-hud {
  position: absolute; left: 50%; top: calc(50% + min(12vmin, 75px) + 26px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gold-ink);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.map-tx-hud strong { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }

/* ---------- Gợn sóng GPS khi bấm ---------- */
.gps-ping { position: fixed; z-index: 9000; width: 0; height: 0; pointer-events: none; }
.gps-ping::before, .gps-ping::after {
  content: ""; position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(201,103,46,.7); transform: scale(.2); opacity: 1;
  animation: ping .7s var(--ease-out) forwards;
}
.gps-ping::after { border-color: rgba(154,58,30,.45); animation-delay: .12s; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Số liệu & huy chương ---------- */
.stat-link { display: block; color: inherit; transition: background-color .3s ease; }
@media (hover: hover) and (pointer: fine) { .stat-link:hover { background: linear-gradient(180deg, rgba(246,231,223,.6), transparent); } .stat-link:hover strong { color: var(--accent); } }
.stat strong { transition: color .3s ease; }
.honors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.medal {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 14px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  color: inherit; transition: box-shadow .3s, border-color .3s;
}
.medal-coin {
  position: relative; width: 64px; height: 64px; margin: 18px 0 12px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF4DA 0 12%, #E0B96E 38%, #A9844A 70%, #7A5A2C 100%);
  box-shadow: 0 0 0 3px #F3E3C1 inset, 0 0 0 4px rgba(122,90,44,.5) inset, 0 10px 18px -8px rgba(23,32,46,.45);
  transform-style: preserve-3d; transition: transform .9s var(--ease-out);
}
.medal-coin::before {
  content: ""; position: absolute; left: 50%; top: -26px; width: 30px; height: 30px; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent) 0 33%, #E7B98F 33% 40%, var(--accent) 40% 60%, #E7B98F 60% 67%, var(--accent) 67%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); z-index: -1;
}
.medal-coin i {
  position: absolute; inset: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239A3A1E' d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3l-6.4 3.6 1.5-7.1-5.4-4.9 7.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.medal-yr { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent); line-height: 1; }
.medal strong { font-size: 15px; line-height: 1.3; color: var(--ink); }
.medal em { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .medal:hover .medal-coin { transform: rotateY(360deg); } }
@media (max-width: 1100px) { .honors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .honors { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 32px -24px 0; padding: 4px 24px 12px; scrollbar-width: none; }
  .honors::-webkit-scrollbar { display: none; }
  .medal { flex: 0 0 62%; scroll-snap-align: center; }
}

/* ---------- Khối "nhân cách người quân tử" ---------- */
.quote-band {
  color: #F4EEE4;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(201,103,46,.30), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(169,132,74,.22), transparent 60%),
    var(--grad-ink);
  background-color: var(--ink);
}
.quote-band .contours { color: #E7B98F; opacity: .16; }
.quote-img { position: relative; overflow: visible; box-shadow: none; transform: perspective(1000px) rotateY(8deg) rotateX(2deg); transition: transform .8s var(--ease-out); }
.quote-img img { border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); outline: 1px solid rgba(231,185,143,.35); outline-offset: 10px; }
@media (hover: hover) and (pointer: fine) { .quote-band:hover .quote-img { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); } }
.quote-seal {
  position: absolute; right: -18px; bottom: -18px; width: 92px; height: 92px; border-radius: 14px;
  display: grid; place-content: center; gap: 2px; transform: rotate(-8deg);
  background: linear-gradient(145deg, #B8452A, #8A2F16); color: #FCE9DC; box-shadow: 0 14px 26px -10px rgba(0,0,0,.6), 0 0 0 3px rgba(252,233,220,.25) inset;
  font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1; text-align: center; letter-spacing: .02em;
}
.quote-band blockquote.big .eyebrow { color: #E7B98F; margin-bottom: 18px; }
.quote-band blockquote.big .mark { color: var(--orange); }
.quote-band blockquote.big p { color: #fff; }
.quote-band blockquote.big footer { color: rgba(244,238,228,.65); }
.quote-band blockquote.big footer strong { color: #fff; }
.quote-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.quote-values span {
  font-family: var(--serif); font-size: 17px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(231,185,143,.45); color: #F7D9C4; background: rgba(255,255,255,.04);
}
@media (max-width: 860px) { .quote-img { transform: none; max-width: 340px; } .quote-seal { width: 76px; height: 76px; font-size: 16px; right: -10px; bottom: -10px; } }

/* ---------- Trang Video: ba mục ---------- */
.video-sec { scroll-margin-top: calc(var(--nav-h) + 24px); margin-top: 56px; }
.video-sec + .video-sec { margin-top: 84px; }
.video-sec-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.video-sec-head .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: var(--grad-warm); box-shadow: 0 10px 20px -10px rgba(23,32,46,.5); }
.video-sec-head .ico svg { width: 26px; height: 26px; }
.video-sec-head h2 { font-size: clamp(26px, 3vw, 36px); }
.video-sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.video-sec-head .n { margin-left: auto; font-family: var(--serif); font-size: 30px; color: var(--line-strong); font-weight: 700; }
#video-jump .filter-btn { display: inline-flex; align-items: center; gap: 8px; }
#video-jump .filter-btn svg { width: 16px; height: 16px; }

/* ---------- Trang Liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-h { margin-top: 14px; font-size: clamp(28px, 3.2vw, 40px); }
#contact-note { margin: 14px 0 26px; }
.c-cards { display: grid; gap: 14px; }
.c-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); color: inherit; transition: box-shadow .3s, border-color .3s;
}
a.c-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.c-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.c-card .ico svg { width: 22px; height: 22px; }
.c-card small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.c-card strong { display: block; font-size: 16px; font-weight: 600; word-break: break-word; }
.contact-form-wrap {
  padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); color: #F4EEE4;
  background: radial-gradient(500px 300px at 100% 0%, rgba(201,103,46,.3), transparent 60%), var(--grad-ink);
  background-color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(23,32,46,.6);
}
.contact-form-wrap .eyebrow { color: #E7B98F; }
.contact-form-wrap .contact-h { color: #fff; }
.contact-form { margin-top: 24px; display: grid; gap: 16px; }
.c-field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: rgba(244,238,228,.9); }
.c-field em { font-style: normal; font-weight: 400; color: rgba(244,238,228,.55); }
.c-field input, .c-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff; padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(244,238,228,.2); transition: border-color .2s, background-color .2s;
}
.c-field input:focus, .c-field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.1); }
.c-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form-wrap .btn-primary { background: var(--grad-warm); }
.form-status { margin: 0; font-size: 14px; }
.form-status.ok { color: #B9E4C0; } .form-status.err { color: #FFC2AE; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .medal:hover .medal-coin { transform: none; }
  .quote-img { transform: none; }
}

/* ---------- Dấu mốc cuộc đời: mỗi giáp 12 năm ---------- */
.milestones { list-style: none; margin: 56px 0 0; padding: 0; position: relative; }
.milestones::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px;
  background: linear-gradient(var(--gold), var(--accent) 45%, var(--orange) 80%, var(--gold));
}
.ms { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: start; }
.ms + .ms { margin-top: -28px; }
.ms-year { grid-column: 1; grid-row: 1; text-align: right; padding: 14px 0 0; }
.ms-card { grid-column: 3; grid-row: 1; }
.ms.right .ms-year { grid-column: 3; text-align: left; }
.ms.right .ms-card { grid-column: 1; }
.ms-dot {
  grid-column: 2; grid-row: 1; justify-self: center; margin-top: 20px; width: 22px; height: 22px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, var(--orange) 55%, var(--accent));
  box-shadow: 0 0 0 5px var(--paper), 0 6px 14px -4px rgba(23,32,46,.4);
}
.ms-y { display: block; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.ms-sub { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.ms-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.ms-card h3 { font-size: 21px; line-height: 1.3; }
.ms-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ms-card li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ms-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
@media (max-width: 860px) {
  .milestones::before { left: 11px; margin-left: 0; }
  .ms, .ms.right { grid-template-columns: 24px 1fr; column-gap: 18px; }
  .ms + .ms { margin-top: 26px; }
  .ms-dot { grid-column: 1; grid-row: 1; margin-top: 8px; }
  .ms-year, .ms.right .ms-year { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .ms-card, .ms.right .ms-card { grid-column: 2; grid-row: 2; margin-top: 14px; }
  .ms-y { font-size: 40px; }
}

/* ---------- Phương châm sống: câu nói thay nhau hiện ---------- */
.motto-body { transition: opacity .38s var(--ease-out), transform .38s var(--ease-out); }
#motto.swap .motto-body { opacity: 0; transform: translateY(10px); }
.motto-dots { display: flex; gap: 8px; margin-top: 22px; }
.motto-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(244,238,228,.3); transition: width .3s var(--ease-out), background-color .3s; }
.motto-dots button[aria-current="true"] { width: 26px; background: var(--orange); }
.motto-dots button:hover { background: rgba(244,238,228,.6); }
.quote-band blockquote.big footer a { color: #F7D9C4; text-decoration: underline; text-underline-offset: 3px; }
.quote-band blockquote.big p { min-height: 2.6em; }

/* ---------- Dòng xác nhận trang chính thức ---------- */
.hero-official {
  position: relative; margin: 26px 0 0; max-width: 540px; padding: 14px 18px 14px 56px; border-radius: 14px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.hero-official strong { color: var(--accent); font-weight: 700; }
.hero-official::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A3A1E' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 600px) { .hero-official { font-size: 13.5px; padding: 12px 14px 12px 48px; } .hero-official::before { left: 13px; width: 22px; height: 22px; margin-top: -11px; } }

/* ---------- Thư viện ảnh: các mục ---------- */
.gal-sec { scroll-margin-top: calc(var(--nav-h) + 24px); margin-top: 48px; }
.gal-sec + .gal-sec { margin-top: 80px; }
#gal-jump .filter-btn { display: inline-flex; align-items: center; gap: 8px; }
