/* ---------- Print (Save as PDF) ---------- */
@page { size: A4; margin: 0; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .nav-links, .lightbox, .skip-link, .theme-toggle { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .bar span { width: var(--w) !important; transition: none !important; }
  .hero { height: 720px !important; }
  .block { padding: 56px 0 !important; }
  .job, .win, .work, .book, .vol, .honor, .tool, .skill-group, .edu-col, .stat,
  .practice-list li, .essay-list li, figure { break-inside: avoid; }
  .area-title, .display, .works-title { break-after: avoid; }

  /* Smaller type so the desktop layout fits an A4 page */
  html { font-size: 11px !important; }
  body { font-size: 11.5px !important; }
  .container { padding: 0 28px !important; }
  .job { grid-template-columns: 150px 1fr !important; gap: 24px !important; }
  .honor { grid-template-columns: 90px 1fr !important; gap: 20px !important; }

  /* Compact version: skip sections that repeat other content, tighten spacing */
  #wins, #practice, .job-photo, .honor-gallery, .tags, .book-en, .book-more,
  .intro-links, .essay-more, .tool-use, .job-note, .lightbox-close { display: none !important; }
  .hero { height: 460px !important; }
  .block { padding: 36px 0 !important; }
  .intro { padding-top: 40px !important; }
  .stats-grid { margin-top: 32px !important; }
  .display, .works-title, .contact-title { font-size: 3rem !important; margin-bottom: 24px !important; }
  .journey-media { grid-template-rows: 300px auto !important; }
  .journey-quote { padding: 28px 32px !important; font-size: 1.6rem !important; }
  .journey-copy { padding: 40px 48px !important; }
  .facts { margin-top: 16px !important; }
  .area + .area { margin-top: 28px !important; }
  .job { padding: 16px 0 !important; }
  .job-body li { margin-bottom: 4px !important; }
  .works-grid { gap: 28px 32px !important; }
  .work-media { aspect-ratio: 16 / 9 !important; margin-bottom: 12px !important; }
  .essay-list a { padding: 12px 0 !important; }
  .book-grid, .vol-grid { gap: 14px !important; }
  .book-cover { padding: 12px 0 !important; margin-bottom: 12px !important; }
  .book-cover img, .book-cover-text { height: 110px !important; }
  .book-quote { font-size: .95rem !important; margin-top: 10px !important; }
  .book-link { padding-top: 10px !important; }
  .honor { padding: 16px 0 !important; }
  .vol { padding: 18px !important; }
  .edu-col { padding: 22px !important; }
  .skill-groups, .tool-groups { gap: 24px !important; }
  .tool { padding: 8px 12px !important; }
  .tool-list { gap: 6px !important; }
  .contact { padding-bottom: 40px !important; }
}

/* ---------- Fonts ----------
   Saral LT (Linotype) for headings and body, Quincy CF Italic (Connary Fagen) for italic accents.
   Both are commercial fonts: add the licensed web files to assets/fonts/ with the names below.
   local() lets an installed copy load first; until the files exist, the fallbacks in the
   --display, --sans and --serif-italic stacks are used. Type Machine stays for small labels. */
@font-face { font-family: "Saral LT"; src: local("Saral LT Light"), local("SaralLT-Light"), url("assets/fonts/SaralLT-Light.woff2") format("woff2"), url("assets/fonts/SaralLT-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Saral LT"; src: local("Saral LT Roman"), local("SaralLT-Roman"), url("assets/fonts/SaralLT-Roman.woff2") format("woff2"), url("assets/fonts/SaralLT-Roman.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Saral LT"; src: local("Saral LT Bold"), local("SaralLT-Bold"), url("assets/fonts/SaralLT-Bold.woff2") format("woff2"), url("assets/fonts/SaralLT-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Quincy CF"; src: local("Quincy CF Regular Italic"), local("QuincyCF-RegularItalic"), url("assets/fonts/QuincyCF-RegularItalic.woff2") format("woff2"), url("assets/fonts/QuincyCF-RegularItalic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Type Machine"; src: url("assets/fonts/TypeMachine.ttf") format("truetype"); font-weight: 400; font-display: swap; }
/* Jost stays bundled as the first fallback for Saral LT */
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-variable-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ----------
   Palette: Floral Blush (coolors.co/c23350-e15c7c-f38aa5-f7acbf-f9c5d1)
   plus a blush white and a deep rose for readable text. */
:root {
  --rosewood: #c23350;
  --blush-rose: #e15c7c;
  --bubblegum: #f38aa5;
  --cherry-blossom: #f7acbf;
  --pastel-petal: #f9c5d1;
  --blush-white: #fff6f8;
  --deep-rose: #3d0f1d;

  --cream: var(--blush-white);
  --pink: var(--pastel-petal);
  --blue: var(--pastel-petal);
  --orange: var(--bubblegum);
  --dark: var(--deep-rose);
  --card: #ffffff;
  --ink: var(--deep-rose);
  --ink-soft: #74404f;
  --accent: #b02a47;
  --maroon: var(--rosewood);
  --name: var(--blush-rose);
  --num: var(--rosewood);
  --on-dark: var(--blush-white);
  --on-dark-soft: rgba(255, 246, 248, .75);
  --line: rgba(61, 15, 29, .2);
  --line-dark: rgba(255, 246, 248, .22);
  --pill-bg: var(--deep-rose);
  --pill-ink: var(--blush-white);
  --chip-bg: var(--blush-white);
  --hi: var(--bubblegum);
  --hi-soft: var(--pastel-petal);

  --sans: "Saral LT", "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --serif-italic: "Quincy CF", Georgia, "Times New Roman", Times, serif;
  --display-weight: 400;
  --type: "Type Machine", "Courier New", monospace;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #1d0b11;
    --pink: #34121e;
    --blue: #34121e;
    --orange: #4a1829;
    --dark: #12060a;
    --card: #2a0f18;
    --ink: #fdeef2;
    --ink-soft: #dcb3bf;
    --accent: #f38aa5;
    --maroon: #f7acbf;
    --name: #e15c7c;
    --num: #f38aa5;
    --line: rgba(253, 238, 242, .18);
    --pill-bg: #f7acbf;
    --pill-ink: #1d0b11;
    --chip-bg: rgba(253, 238, 242, .1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #1d0b11;
  --pink: #34121e;
  --blue: #34121e;
  --orange: #4a1829;
  --dark: #12060a;
  --card: #2a0f18;
  --ink: #fdeef2;
  --ink-soft: #dcb3bf;
  --accent: #f38aa5;
  --maroon: #f7acbf;
  --name: #e15c7c;
  --num: #f38aa5;
  --line: rgba(253, 238, 242, .18);
  --pill-bg: #f7acbf;
  --pill-ink: #1d0b11;
  --chip-bg: rgba(253, 238, 242, .1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--pill-bg); color: var(--pill-ink); padding: 8px 14px; border-radius: 999px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--name); outline-offset: 3px; }

.display {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 48px;
}
.display-center { text-align: center; }

.block { padding: 112px 0; }
.block-cream { background: var(--cream); color: var(--ink); }
.block-pink { background: var(--pink); color: var(--ink); }
.block-blue { background: var(--blue); color: var(--ink); }
.block-orange { background: var(--orange); color: var(--ink); }
.block-dark { background: var(--dark); color: var(--on-dark); }

.pill {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-ink);
  font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill-dark { background: var(--deep-rose); color: var(--blush-white); }
.pill-light { background: var(--pastel-petal); color: var(--deep-rose); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.pill-outline { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 2px var(--line-dark); }
.pill-outline:hover { box-shadow: inset 0 0 0 2px var(--on-dark); }

.link-underline { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-underline:hover { color: var(--accent); }

/* ---------- Header & navigation bar ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--blush-white); transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled { background: var(--cream); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; padding: 0 32px; max-width: 1440px; margin: 0 auto; }
.brand { flex-shrink: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none; color: var(--name); }
.nav-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-cta {
  text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px;
  border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: inherit;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-links {
  display: flex; align-items: center; gap: 4px 18px; margin: 0 auto; padding: 0;
  list-style: none; min-width: 0;
}
.nav-links-contact { display: none; }
.nav-links a {
  display: block; padding: 6px 0; white-space: nowrap; text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: .9rem; color: inherit; opacity: .85;
  border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom-color: currentColor; }

/* Narrower screens: links move to a second row that scrolls sideways */
@media screen and (max-width: 1240px) {
  html { scroll-padding-top: 116px; }
  .nav { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 14px; }
  .nav-links {
    order: 3; flex: 1 0 100%; margin: 6px -32px 0; padding: 4px 32px 10px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .hero-tag { top: 136px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(110% 90% at 28% 25%, #0139a6 0%, #012a78 55%, #061c4a 100%);
  height: clamp(520px, 84vh, 820px);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1;
  background: linear-gradient(rgba(5, 20, 70, .45), transparent);
}
.hero-photo {
  position: absolute; top: 0; right: 8%; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.hero-tag {
  position: absolute; z-index: 2; left: max(32px, calc((100% - 1440px) / 2 + 32px)); top: 104px; margin: 0;
  color: var(--blush-white); font-family: var(--type); font-size: 1.05rem; line-height: 1.45;
}
.hero-name {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  font-family: var(--display); font-weight: var(--display-weight); color: var(--name);
  font-size: 18.4vw; line-height: .8; text-align: center; white-space: nowrap; letter-spacing: -.035em;
  transform: translateY(8%);
}

/* ---------- Intro ---------- */
.intro { padding-top: 96px; }
.intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.intro-title { font-size: clamp(3rem, 7.4vw, 6.4rem); margin: 0; }
.intro-copy { padding-top: 12px; }
.intro-lead { font-size: 1.35rem; line-height: 1.5; }
.intro-lead strong { font-weight: 600; }
.intro-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; font-size: 1.1rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 88px; }
.stat { border-top: 3px solid var(--ink); padding-top: 18px; }
.stat-num { display: block; font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.03em; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--num); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

/* ---------- Journey ---------- */
.journey { display: grid; grid-template-columns: 43% 1fr; background: var(--cream); }
.journey-media { display: grid; grid-template-rows: minmax(480px, 1fr) auto; }
.journey-photo { position: relative; overflow: hidden; background: #0b3aa8; }
.journey-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; }
.journey-quote {
  margin: 0; background: var(--deep-rose); color: var(--blush-white); padding: 56px 48px;
  font-family: var(--serif-italic); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; text-align: center;
}
.journey-copy { padding: 112px clamp(32px, 7vw, 112px); }
.journey-copy .display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.prose p { font-size: 1.12rem; line-height: 1.7; }
.prose strong { font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 2px solid var(--line); }
.facts li:last-child { border-bottom: 2px solid var(--line); }
.facts span { font-family: var(--type); font-size: .95rem; padding-top: 1px; }
.facts a { color: var(--accent); font-weight: 700; }

/* ---------- Wins ---------- */
.wins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.win { background: var(--card); display: flex; flex-direction: column; text-align: center; }
.win-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.win-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform .6s ease; }
.win:nth-child(2) .win-photo img { object-position: 50% 50%; }
.win:nth-child(3) .win-photo img { object-position: 50% 42%; }
.win:hover .win-photo img { transform: scale(1.05); }
.win-body { padding: 32px 28px 36px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.win h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin-bottom: 14px; }
.win p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 24px; }
.win .pill { margin-top: auto; }

/* ---------- Practice ---------- */
.practice-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.practice-list a {
  display: grid; grid-template-columns: 90px 1.1fr 1fr; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 2px solid var(--line-dark); text-decoration: none;
}
.practice-list li:last-child a { border-bottom: 2px solid var(--line-dark); }
.practice-num { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.8rem; color: var(--bubblegum); line-height: 1; }
.practice-name { font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.25; transition: color .2s; }
.practice-desc { color: var(--on-dark-soft); }
.practice-list a:hover .practice-name { color: var(--pastel-petal); }

/* ---------- Experience ---------- */
.area + .area { margin-top: 80px; }
.area-title {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.02em; color: var(--maroon);
  font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.1; margin-bottom: 8px;
}
.job { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 32px 0; border-top: 3px solid var(--ink); }
.area-title + .job { margin-top: 20px; }
.job-date { font-family: var(--type); font-size: 1.05rem; margin: 0; }
.job-place { color: var(--ink-soft); font-size: .92rem; margin: 2px 0 0; }
.job-body h4 { font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em; }
.org { color: var(--accent); font-weight: 700; margin: 4px 0 14px; }
.job-roles { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -6px 0 14px; font-size: .9rem; color: var(--ink-soft); }
.job-summary { font-size: 1.05rem; }
.job-body ul { margin: 0; padding-left: 1.15em; color: var(--ink-soft); }
.job-body li { margin-bottom: 8px; }
.job-body li::marker { color: var(--name); }
.job-body a { color: var(--accent); font-weight: 700; }
.job-note { font-size: .92rem; color: var(--ink-soft); font-style: italic; margin: 12px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); }

.job-photo { margin: 22px 0 0; max-width: 460px; }
.job-photo .zoom { aspect-ratio: 4 / 3; }
.job-photo img { object-position: 50% 62%; }
.job-photo-portrait { max-width: 260px; }
.job-photo-portrait .zoom { aspect-ratio: 1 / 1; }
.job-photo-portrait img { object-position: 50% 25%; }
.job-photo figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; font-style: italic; }

/* ---------- Works ---------- */
.works-title {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.035em; line-height: 1.02; color: var(--maroon); text-align: center;
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 56px;
}
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 48px; max-width: 980px; margin: 0 auto; }
.work { color: var(--ink); }
.work h3, .work-date { color: var(--maroon); }
.work-date { color: var(--accent); }
.work-media { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.work-media img { object-position: 50% 45%; }
.job-photo-pair { max-width: 720px; }
.job-photo-grid { display: grid; grid-template-columns: 1fr 1.33fr; gap: 8px; }
.job-photo-grid .zoom { aspect-ratio: auto; height: 300px; }
.job-photo-grid a:last-child img { object-position: 50% 55%; }
.work-pair { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; }
.work-pair .zoom { height: 100%; }
.work-pair a:first-child img { object-position: 55% 45%; }
.work-pair a:last-child img { object-position: 50% 62%; }
.work-tile { display: grid; place-items: center; overflow: hidden; }
.work-tile span { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.03em; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; text-align: center; }
.tile-orange { background: var(--blush-rose); color: var(--blush-white); }
.tile-maroon { background: var(--rosewood); color: var(--blush-white); }
.tile-pink { background: var(--pastel-petal); color: var(--deep-rose); }
.work-date { font-family: var(--type); font-size: .95rem; margin-bottom: 6px; opacity: .85; }
.work h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }
.work p:last-child { font-size: .98rem; line-height: 1.6; margin: 0; }

/* ---------- Writing ---------- */
.essay-featured {
  display: block; position: relative; overflow: hidden; text-decoration: none;
  background: var(--pastel-petal); color: var(--deep-rose); padding: clamp(32px, 5vw, 64px); margin-bottom: 56px;
  transition: transform .3s ease;
}
.essay-featured:hover { transform: translateY(-4px); }
.essay-badge { font-family: var(--type); font-size: 1.05rem; margin-bottom: 20px; }
.essay-featured h3 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.03em; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1; }
.essay-en { font-family: var(--serif-italic); font-style: italic; font-weight: 400; font-size: 1.4rem; margin: 14px 0 6px; }
.essay-featured .essay-meta { font-family: var(--type); font-size: 1rem; opacity: .8; margin-bottom: 28px; }

.essay-list { list-style: none; margin: 0; padding: 0; }
.essay-list a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center;
  padding: 24px 0; border-top: 2px solid var(--line-dark); text-decoration: none;
}
.essay-list li:last-child a { border-bottom: 2px solid var(--line-dark); }
.essay-title { font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.3; transition: color .2s; }
.essay-title em { display: block; font-weight: 400; font-size: .95rem; color: var(--on-dark-soft); margin-top: 4px; }
.essay-list .essay-meta { font-family: var(--type); font-size: .95rem; color: var(--on-dark-soft); white-space: nowrap; }
.essay-arrow { font-size: 1.6rem; color: var(--bubblegum); transition: transform .2s; }
.essay-list a:hover .essay-title { color: var(--pastel-petal); }
.essay-list a:hover .essay-arrow { transform: translate(3px, -3px); }
.essay-more { margin: 32px 0 0; }
.block-dark .link-underline:hover { color: var(--pastel-petal); }

/* ---------- Skills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
.skill-group h3 { font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid var(--ink); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--chip-bg); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; }

/* ---------- Honors ---------- */
.honor { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 32px 0; border-top: 3px solid var(--ink); }
.honor:last-child { border-bottom: 3px solid var(--ink); }
.honor-date { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.03em; font-size: 2.1rem; line-height: 1; color: var(--accent); margin: 0; }
.honor-date span { display: block; }
.honor h3 { font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; }
.honor-issuer { font-weight: 700; font-size: .9rem; margin: 6px 0 12px; }
.honor p:last-child { margin: 0; }
.honor div > p:not(.honor-issuer) { color: var(--ink-soft); }
.honor-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.honor-gallery .zoom { aspect-ratio: 3 / 2; }
.honor-gallery-5 { grid-template-columns: repeat(6, 1fr); }
.honor-gallery-5 a:nth-child(-n+2) { grid-column: span 3; }
.honor-gallery-5 a:nth-child(n+3) { grid-column: span 2; }
.honor-gallery-5 a:nth-child(1) img { object-position: 62% 45%; }
.honor-gallery-5 a:nth-child(3) img { object-position: 60% 45%; }
.honor-gallery-pfp { grid-template-columns: 1fr 1.6fr 1fr; max-width: 760px; }
.honor-gallery-pfp .zoom { aspect-ratio: auto; height: 260px; }
.honor-gallery-pfp a:nth-child(1) img { object-position: 50% 45%; }
.honor-gallery-pfp a:nth-child(3) img { object-position: 50% 30%; }
.honor-gallery-2 { grid-template-columns: 1.5fr 1fr; max-width: 640px; }
.honor-gallery-2 .zoom { aspect-ratio: 4 / 3; }
.honor-gallery-2 a:nth-child(2) img { object-position: 50% 30%; }

/* ---------- Volunteering ---------- */
.vol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vol { background: var(--card); padding: 32px 28px; box-shadow: inset 0 0 0 2px var(--ink); }
.vol-meta { font-family: var(--type); font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.vol-meta strong { color: var(--accent); }
.vol h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.vol-org { font-weight: 700; color: var(--accent); margin: 6px 0 12px; }
.vol p:last-child { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edu-col { background: var(--card); padding: 36px; box-shadow: inset 0 0 0 2px var(--line); }
.edu-col-wide { grid-column: 1 / -1; }
.col-title { font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); margin-bottom: 20px; }
.edu-item { padding: 16px 0; border-top: 2px solid var(--line); }
.edu-name { font-weight: 600; font-size: 1.2rem; margin: 0; }
.edu-detail { color: var(--ink-soft); margin: 2px 0 0; }
.lang-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-weight: 700; }
.lang-row:first-child { margin-top: 0; }
.lang-level { color: var(--ink-soft); font-weight: 400; font-size: .9rem; }
.bar { height: 8px; background: var(--line); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--rosewood); border-radius: 99px; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.visible .bar span { width: var(--w); }
.certs { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.certs li { counter-increment: c; position: relative; padding: 16px 0 16px 52px; border-top: 2px solid var(--line); }
.certs li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.35rem; color: var(--num); }
.cert-name { display: block; font-weight: 700; }
.cert-issuer { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Contact & footer ---------- */
.contact { padding-bottom: 96px; }
.contact-title { font-size: clamp(2.8rem, 7.4vw, 6.4rem); margin-bottom: 56px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-lead { font-size: 1.2rem; color: var(--on-dark-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding: 28px 0 36px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .container { position: relative; padding-top: 24px; }
.site-footer .container::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; border-top: 2px solid var(--line-dark); }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--name); font-family: var(--display); font-weight: var(--display-weight); font-size: 1.5rem; letter-spacing: -.03em; }
.footer-inner a { text-decoration: none; font-weight: 700; color: var(--on-dark); }

/* ---------- Photos & lightbox ---------- */
.zoom { display: block; overflow: hidden; cursor: zoom-in; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.zoom:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(61, 15, 29, .92); }
.lightbox img { display: block; max-width: min(92vw, 1400px); max-height: 88vh; width: auto; height: auto; }
.lightbox-close {
  position: absolute; top: -16px; right: -16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--pastel-petal); color: var(--deep-rose); font-size: 1.7rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bar span { width: var(--w); }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1024px) {
  .wins-grid { gap: 24px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .practice-list a { grid-template-columns: 70px 1fr; }
  .practice-desc { grid-column: 2; }
  .vol-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 820px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav { padding: 0 16px; }
  .nav-cta { display: none; }
  .nav-links-contact { display: block; }
  .nav-links { margin: 6px -16px 0; padding: 4px 16px 10px; gap: 4px 16px; }
  .block { padding: 80px 0; }
  .display { margin-bottom: 36px; }

  .hero { height: clamp(480px, 78vh, 680px); }
  .hero-photo { right: auto; left: 50%; transform: translateX(-42%); height: 92%; top: 8%; }
  .hero-tag { left: 20px; top: 124px; }

  .intro { padding-top: 72px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-lead { font-size: 1.15rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 56px; }

  .journey { grid-template-columns: 1fr; }
  .journey-media { grid-template-rows: auto auto; }
  .journey-photo { aspect-ratio: 4 / 3; }
  .journey-quote { padding: 40px 24px; }
  .journey-copy { padding: 72px 20px; }

  .wins-grid { grid-template-columns: 1fr; gap: 28px; max-width: 480px; margin: 0 auto; }
  .win-photo { aspect-ratio: 16 / 9; }

  .job { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .job-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
  .job-place { margin: 0; }

  .works-grid { grid-template-columns: 1fr; gap: 48px; }
  .essay-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .essay-list .essay-meta { grid-column: 1; grid-row: 2; white-space: normal; }
  .essay-arrow { grid-column: 2; grid-row: 1 / span 2; }

  .skill-groups { grid-template-columns: 1fr; gap: 40px; }
  .honor { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .honor-date { font-size: 1.6rem; }
  .honor-date span { display: inline; }
  .honor-gallery { grid-template-columns: 1fr 1fr; }
  .honor-gallery-5 a:nth-child(n) { grid-column: auto; }
  .honor-gallery-5 a:nth-child(1) { grid-column: 1 / -1; }
  .honor-gallery-pfp { grid-template-columns: 1fr 1fr; }
  .honor-gallery-pfp a:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .honor-gallery-pfp .zoom { height: 200px; }
  .job-photo-grid .zoom { height: 200px; }
  .honor-gallery:not(.honor-gallery-4):not(.honor-gallery-2) a:first-child { grid-column: 1 / -1; }
  .vol-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .edu-col { padding: 26px 22px; }
  .certs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .container::before { left: 20px; right: 20px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .lightbox-close { top: 8px; right: 8px; }
}

/* ---------- Books ---------- */
.books-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.books-head .display { margin: 0; }
.books-intro { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book { display: flex; flex-direction: column; background: var(--card); padding: 0 24px 24px; box-shadow: inset 0 0 0 2px var(--line); }
.book-cover {
  margin: 0 -24px 22px; padding: 28px 0; display: flex; justify-content: center;
  background: var(--pastel-petal);
}
.book:nth-child(even) .book-cover { background: var(--cherry-blossom); }
.book-cover img { height: 210px; width: auto; box-shadow: 0 10px 24px rgba(61, 15, 29, .28); }
.book-cover-text {
  display: flex; flex-direction: column; justify-content: space-between; height: 210px; width: 140px; padding: 16px 14px;
  background: var(--rosewood); color: var(--blush-white); box-shadow: 0 10px 24px rgba(61, 15, 29, .28);
  font-family: var(--display); font-weight: var(--display-weight); font-size: 1.15rem; line-height: 1.1; letter-spacing: -.01em;
}
.book-cover-text small { font-family: var(--type); font-weight: 400; font-size: .8rem; letter-spacing: 0; }
.book-meta { font-family: var(--type); font-size: .95rem; color: var(--ink-soft); margin-bottom: 10px; }
.book h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.1; color: var(--maroon); }
.book-sub { font-style: italic; color: var(--ink-soft); margin: 4px 0 2px; font-size: .95rem; }
.book-author { font-weight: 600; margin: 0 0 8px; font-size: .95rem; }
.book-stars { color: var(--rosewood); letter-spacing: .12em; font-size: 1.05rem; }
.book-stars .off { color: var(--line); }
.book-quote {
  margin: 18px 0 0; font-family: var(--serif-italic); font-style: italic; font-weight: 400;
  font-size: 1.08rem; line-height: 1.4; color: var(--ink);
}
.book-en { margin: 8px 0 0; font-size: .92rem; color: var(--ink-soft); }
.book-link { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: .92rem; color: var(--accent); text-decoration: none; }
.book-link:hover { text-decoration: underline; text-underline-offset: 4px; }
:root[data-theme="dark"] .book-stars { color: var(--bubblegum); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .book-stars { color: var(--bubblegum); } }

@media screen and (max-width: 820px) {
  .books-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .book-grid { grid-template-columns: 1fr; }
  .book { padding: 26px 22px 24px 36px; }
    .brand { font-size: 1.35rem; }
}

/* ---------- Toolkit ---------- */
.tool-groups { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; }
.tool-group h3 {
  font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark);
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid var(--bubblegum);
}
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tool {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px;
  background: rgba(255, 246, 248, .06); box-shadow: inset 0 0 0 1.5px var(--line-dark);
  transition: background .2s, box-shadow .2s;
}
.tool:hover { background: rgba(243, 138, 165, .12); box-shadow: inset 0 0 0 1.5px var(--bubblegum); }
.tool-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem; letter-spacing: -.02em; color: var(--pastel-petal); line-height: 1.15; }
.tool-use { font-family: var(--type); font-size: .92rem; color: var(--on-dark-soft); }
@media screen and (max-width: 1024px) { .tool-groups { grid-template-columns: 1fr 1fr; } .tool-group:first-child { grid-column: 1 / -1; } .tool-group:first-child .tool-list { grid-template-columns: 1fr 1fr; } }
@media screen and (max-width: 820px) { .tool-groups { grid-template-columns: 1fr; gap: 32px; } .tool-group:first-child .tool-list { grid-template-columns: 1fr; } }

@media screen and (max-width: 1024px) and (min-width: 821px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }

.book-more {
  justify-content: center; align-items: flex-start; gap: 16px; padding: 32px; text-decoration: none;
  background: var(--deep-rose); color: var(--blush-white); box-shadow: none; transition: transform .3s ease;
}
.book-more:hover { transform: translateY(-4px); }
.book-more-title { font-family: var(--display); font-weight: var(--display-weight); font-size: 2rem; line-height: 1.05; letter-spacing: -.025em; color: var(--pastel-petal); }
.book-more-text { color: rgba(255, 246, 248, .78); }
.book-more .pill { background: var(--pastel-petal); color: var(--deep-rose); }
:root[data-theme="dark"] .book-more { background: var(--rosewood); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .book-more { background: var(--rosewood); } }
@media screen and (max-width: 1024px) and (min-width: 821px) { .book-more { grid-column: 1 / -1; } }

@media screen and (max-width: 820px) {
  .book { padding: 0 22px 22px; }
  .book-cover { margin: 0 -22px 20px; }
  .book-more { padding: 28px 22px; }
}
