/* =====================================================================
   McKenzie Hebert - portfolio
   Cool palette: deep teal ink on a pale blue-green ground, one rose
   secondary that matches the pictogram in her Shiny app.
   ===================================================================== */

:root {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --tint: #e9f1f1;
  --ink: #10262b;
  --body: #2f4449;
  --muted: #5d7377;
  --line: #d5e2e2;
  --accent: #1f6f78;
  --accent-deep: #14535b;
  --accent-soft: #d9ebeb;
  --sage: #86aea3;
  --rose: #c25e86;
  --rose-soft: #f5e3eb;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin-bottom: 40px; }
h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-top: 16px; border-radius: 2px; }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.22; }
h4 { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.meta, .eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.method { font-family: var(--mono); font-size: 0.86rem; color: var(--accent-deep); margin-top: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.93rem;
  transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

/* ---------- progress + nav ---------- */
.progress-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(244, 248, 248, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { position: relative; font-size: 0.9rem; color: var(--muted); text-decoration: none; padding: 6px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 23px; }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { padding: 132px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.eyebrow { margin-bottom: 22px; }
h1 { font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: 0.98; font-weight: 400; letter-spacing: -0.03em; }
h1 .line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
h1 .line span { display: inline-block; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 34em; margin-top: 28px; color: var(--body); }
.seeking { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.92rem; font-weight: 500; }
.seeking .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31, 111, 120, 0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 111, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 111, 120, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero-photo { width: clamp(220px, 26vw, 330px); position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%; background: var(--sage); transform: translate(14px, 14px); opacity: 0.45; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%; }

.hero-chart { margin-top: 64px; }
.hero-chart-plot { position: relative; height: clamp(130px, 20vw, 230px); }
.hero-chart-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.peak { position: absolute; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.6s 0.2s; }
.peak.in { opacity: 1; }
.peak i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(194, 94, 134, 0.2); }
.peak b { position: absolute; right: 16px; top: -6px; white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--rose); }
.hero-chart-axis { position: relative; height: 26px; border-top: 1px solid var(--line); width: min(100%, 100vw); }
.hero-chart-axis span { position: absolute; top: 7px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.hero-chart-axis span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 5px; background: var(--line); }
.hero-chart figcaption { width: min(var(--wrap), 100% - 48px); margin: 10px auto 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--tint); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p + p { margin-top: 1.1em; }
.about-text p:first-child { font-family: var(--display); font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { font-size: 0.95rem; color: var(--ink); line-height: 1.5; }

.school-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.school-logo { flex: none; height: 20px; width: auto; margin-top: 1px; }

/* case studies */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4.5vw, 56px); }
.case + .case { margin-top: 40px; }
.case-head h3 { margin-top: 12px; max-width: 24em; }
.case-summary { margin-top: 24px; max-width: 46em; font-size: 1.06rem; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 20px 16px 18px 0; }
.specs div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.specs b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.specs span { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.case-grid-wide { grid-template-columns: 1.5fr 1fr; align-items: start; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel figcaption { margin-top: 18px; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
h4.gap { margin-top: 28px; }

.flow-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; column-gap: 12px; position: relative; padding: 5px 0; }
.flow-row .bar { grid-column: 1 / -1; grid-row: 1; height: 34px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--accent-soft), #c4dfdf); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.flow-row:last-child .bar { background: linear-gradient(90deg, var(--accent), #2e8a93); }
.flow-row:last-child b, .flow-row:last-child em { color: #fff; }
.flow-row b { grid-column: 1; grid-row: 1; padding-left: 12px; font-family: var(--mono); font-weight: 500; font-size: 0.92rem; color: var(--accent-deep); z-index: 1; }
.flow-row em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 0.85rem; color: var(--ink); z-index: 1; }
.in .flow-row .bar { transform: scaleX(1); }
.in .flow-row:nth-child(2) .bar { transition-delay: 0.12s; } .in .flow-row:nth-child(3) .bar { transition-delay: 0.24s; } .in .flow-row:nth-child(4) .bar { transition-delay: 0.36s; }

.mini { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mini th { text-align: left; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 0 0 8px; }
.mini td { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.mini td:first-child, .mini th:first-child { white-space: nowrap; padding-right: 14px; }
.mini td:nth-child(2) { width: 52%; white-space: nowrap; }
.mini .fu { display: inline-block; vertical-align: middle; height: 8px; width: calc(var(--w) * 0.55); margin-right: 10px; border-radius: 4px; background: var(--sage); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) 0.5s; }
.in .mini .fu { transform: scaleX(1); }
.mini tr.on td { font-weight: 600; } .mini tr.on .fu { background: var(--accent); }

.picto-line { font-family: var(--display); font-size: 1.2rem; line-height: 1.35; color: var(--ink); }
.picto-line strong { color: var(--rose); font-weight: 500; }
.picto { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px 4px; margin-top: 20px; max-width: 290px; }
.picto svg { width: 100%; height: auto; aspect-ratio: 1 / 2; fill: #cfdcdc; transition: fill 0.5s, transform 0.5s var(--ease); }
.picto svg.hit { fill: var(--rose); transform: translateY(-2px); }

.case-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); margin-top: 40px; }
.case-notes li, .case-side li, .modal li { position: relative; padding-left: 20px; font-size: 0.95rem; line-height: 1.55; }
.case-notes li + li, .case-side li + li, .modal li + li { margin-top: 9px; }
.case-notes li::before, .case-side li::before, .modal li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.case-side h4 + ul + h4 { margin-top: 28px; }
.side-photo { margin-top: 28px; }
.side-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 38%; }
.side-photo img, .case-photos img, .edu-photo img, .modal-photo img { border-radius: var(--radius); }

.case-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.case-photos figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-photos figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.poster-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.poster-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform 0.7s var(--ease); }
.poster-thumb span { position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 500; }
.poster-thumb:hover img { transform: scale(1.04); }

.case-foot { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.credit { margin-top: 18px; font-size: 0.84rem; color: var(--muted); max-width: 60em; }

.seq { display: grid; gap: 10px; }
.seq-day { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.seq-name b { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.seq-name span { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.seq-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.seq-times em { font-style: normal; font-family: var(--mono); font-size: 0.66rem; color: var(--muted); text-align: center; }
.t { display: grid; place-items: center; height: 46px; border-radius: 7px; opacity: 0; transform: scale(0.8); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); transition-delay: calc(var(--i) * 90ms + 200ms); }
.t span { font-style: normal; font-size: 0.66rem; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.in .t { opacity: 1; transform: none; }
.seq-day:nth-child(3) .t { transition-delay: calc(var(--i) * 90ms + 500ms); }
.seq-day:nth-child(4) .t { transition-delay: calc(var(--i) * 90ms + 800ms); }
.t-so { background: #1f6f78; } .t-ph { background: #6f9a8d; } .t-do { background: #c9913f; } .t-me { background: #4f77a3; }
.t-sc { background: #c25e86; } .t-pr { background: #7a67a6; } .t-le { background: #8aa3a8; }
.seq-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 0.76rem; color: var(--muted); }
.seq-legend li { display: flex; align-items: center; gap: 6px; }
.seq-legend i { width: 11px; height: 11px; border-radius: 3px; }
.seq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.seq-steps li { font-size: 0.84rem; line-height: 1.45; color: var(--body); }
.seq-steps b { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(16, 38, 43, 0.35); border-color: var(--sage); }
.thumb { display: block; aspect-ratio: 16 / 9; background: var(--accent-soft); color: var(--accent); overflow: hidden; position: relative; }
.thumb svg { position: absolute; inset: 14% 8%; width: 84%; height: 72%; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.7s var(--ease); }
.card:hover .thumb svg { transform: scale(1.06); }
.thumb-flu svg { inset: 18% 0 10%; width: 100%; }
.thumb-swim { background: #dbe9f1; color: #2a6a8e; }
.thumb-song { background: var(--rose-soft); color: var(--rose); } .thumb-song svg { fill: currentColor; stroke: none; }
.thumb-ballot { background: #e3ecdf; color: #4f7a5e; }
.thumb-statcom { background: #e6e6f3; color: #5a5f9c; } .thumb-statcom circle { fill: currentColor; stroke: none; }
.card-body { display: block; padding: 20px 22px 24px; }
.card-body b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.card-body i { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 0.76rem; line-height: 1.5; color: var(--muted); }
.more { margin-top: 32px; color: var(--muted); }

/* modal */
.modal { width: min(680px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: clamp(28px, 5vw, 48px); border: 0; border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--body); box-shadow: 0 40px 80px -30px rgba(16, 38, 43, 0.5); overflow-y: auto; }
.modal::backdrop { background: rgba(16, 38, 43, 0.5); }
.modal[open] { animation: pop 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.modal h3 { margin: 10px 0 18px; }
.modal ul { margin: 18px 0; }
.modal .tools { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-deep); margin-top: 18px; }
.modal .links { margin-top: 24px; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-close:hover { background: var(--accent-soft); }
.modal-photo { margin: 0 0 20px; max-width: 280px; }

/* experience + education */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); }
.timeline { border-left: 1px solid var(--line); margin-left: 5px; }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--tint); border: 2px solid var(--accent); }
.timeline time, .edu time { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-bottom: 4px; }
.timeline b, .edu b, .awards b { display: block; font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.timeline span, .edu span, .awards span { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.edu { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.edu p { margin-top: 10px; font-size: 0.93rem; }
.edu-split { display: grid; grid-template-columns: 1fr 122px; gap: 24px; align-items: start; }
.edu-split:not(:has(.edu-photo)) { grid-template-columns: 1fr; }
.edu-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.timeline em { display: block; margin-top: 5px; font-style: normal; font-size: 0.9rem; line-height: 1.5; color: var(--body); }
.sub-head { margin: 8px 0 22px; }
.awards-row { margin-top: clamp(56px, 8vw, 88px); }
.h2-gap { margin-top: 56px; }
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.awards li { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.awards span { margin-top: 8px; }

/* study abroad */
.abroad-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.abroad-grid:not(:has(.abroad-photo)) { grid-template-columns: minmax(0, 46em); }
.abroad-text h3 { margin: 10px 0 18px; }
.abroad-text .facts { margin-top: 28px; }
.abroad-photo { max-width: 400px; justify-self: end; width: 100%; }
.abroad-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius); }
.abroad-photo figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.credit-first { margin-top: 0; }

/* skills */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px) clamp(40px, 7vw, 96px); }
.bar-row + .bar-row { margin-top: 26px; }
.bar-head { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.bar-track { position: relative; height: 7px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bar-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--sage), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s var(--ease) 0.15s; }
.bar-track b { position: absolute; left: var(--w); bottom: 15px; transform: translateX(-100%) translateY(6px); opacity: 0; padding: 4px 9px; border-radius: 5px; background: var(--accent-deep); color: #fff; font-family: var(--sans); font-size: 0.7rem; font-weight: 600; white-space: nowrap; transition: opacity 0.5s 1s, transform 0.6s var(--ease) 1s; }
.bar-track b::after { content: ""; position: absolute; right: 8px; top: 100%; border: 5px solid transparent; border-top-color: var(--accent-deep); }
.bars.in .bar-track i { transform: scaleX(1); }
.bars.in .bar-track b { opacity: 1; transform: translateX(-100%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; color: var(--ink); transition: border-color 0.2s, transform 0.3s var(--ease); }
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }
.chips li.soft { border-style: dashed; color: var(--muted); }

/* resume */
.resume-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.resume-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.resume-frame iframe { display: block; width: 100%; height: min(1180px, 130vw); border: 0; }
.resume-fallback { display: none; padding: 40px; text-align: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform 0.4s var(--ease), border-color 0.2s, background 0.3s; }
.contact-item:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); }
.contact-item span { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-item b { display: block; margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink); word-break: break-word; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: var(--muted); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .mobile-menu { display: grid; gap: 4px; padding: 0 24px; max-height: 0; overflow: hidden; background: var(--bg); transition: max-height 0.45s var(--ease), padding 0.45s var(--ease); }
  .mobile-menu.open { max-height: 420px; padding: 8px 24px 24px; box-shadow: 0 1px 0 var(--line); }
  .mobile-menu a { padding: 12px 0; font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav:has(.mobile-menu.open) { background: var(--bg); }
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; width: 168px; }
  .awards { grid-template-columns: 1fr 1fr; }
  .about-grid, .abroad-grid, .case-grid, .case-grid-wide, .case-notes, .two-col, .skills, .contact-grid { grid-template-columns: 1fr; }
  .hero-chart-axis span:nth-child(even) { display: none; }
  .peak b { font-size: 0.64rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .seq-day { grid-template-columns: 1fr; gap: 6px; }
  .seq-times { display: none; }
  .t { height: 38px; }
  .t span { font-size: 0.56rem; }
  .seq-steps { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr; }
  .edu-split { grid-template-columns: 1fr 110px; gap: 16px; }
  .wrap { width: calc(100% - 36px); }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div { padding: 16px 12px 14px 0; }
  .specs div + div { padding-left: 14px; }
  .specs div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .panel { padding: 18px; }
  .flow-row em { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .flow-row .bar, .mini .fu, .bar-track i { transform: none; }
  .t { opacity: 1; transform: none; }
  .bar-track b { opacity: 1; transform: translateX(-100%); }
  .peak { opacity: 1; }
}
