/* =========================================================
   Portfolio — built on the membership page's visual system
   White surfaces, system font, mono micro-labels, hairline borders.
   No web fonts. No blue. Ink-black is the action color.
   ========================================================= */
:root {
    --bg: #ffffff;
    --bg-sunk: #f7f7f8;
    --line: #e3e3e6;
    --line-strong: #cfcfd4;
    --ink: #0a0a0a;
    --ink-2: #414144;
    --ink-3: #6b6b70;
    --ink-4: #64646b;
    --good: #0a8a4a;
    --warn: #b3401f;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

    --r: 8px;
    --r-lg: 12px;
    --edge: clamp(20px, 4vw, 64px);
    --nav-h: 68px;
    --sp: clamp(72px, 9vw, 112px);
    --t: .15s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--ink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.container { width: min(1180px, 100% - (var(--edge) * 2)); margin: 0 auto; }

/* ---------- Section scaffolding ---------- */
section { padding: var(--sp) 0; background: var(--bg); }
#education, #publications, #experience, #cert-provided, #inspiration { background: var(--bg-sunk); }
section + section { border-top: 1px solid var(--line); }
#hero + section { border-top: none; }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-num {
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: 12px;
}
.section-title {
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-fill, .btn-outline, .btn-sm, .btn-load, .btn-ghost, .btn-ghost-fill, .form-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: .84rem; line-height: 1.35;
    border-radius: var(--r); border: 1px solid var(--line-strong);
    padding: 10px 16px; min-height: 40px; cursor: pointer;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.btn-primary, .btn-fill, .form-submit { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover, .btn-fill:hover, .form-submit:hover { background: #262626; border-color: #262626; }
.btn-secondary, .btn-outline, .btn-sm, .btn-load { background: var(--bg); color: var(--ink); }
.btn-secondary:hover, .btn-outline:hover, .btn-sm:hover, .btn-load:hover { background: var(--bg-sunk); }
.btn-load:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; min-height: 34px; font-size: .78rem; }
.form-submit { width: 100%; min-height: 44px; }

/* ---------- Nav ---------- */
nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t);
}
nav.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo-link { display: flex; align-items: center; height: 32px; }
.nav-logo-link img { height: 32px; width: auto; }
.nav-logo-fallback { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: #fff; transition: color var(--t); }
nav.scrolled .nav-logo-fallback { color: var(--ink); }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
    font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.9);
    padding: 8px 12px; border-radius: var(--r); transition: background var(--t), color var(--t);
}
.nav-links a:hover { background: rgba(255,255,255,.14); color: #fff; }
nav.scrolled .nav-links a { color: var(--ink-3); }
nav.scrolled .nav-links a:hover { background: var(--bg-sunk); color: var(--ink); }
nav.scrolled .nav-links a.active { color: var(--ink); background: var(--bg-sunk); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; z-index: 1002; position: relative; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .25s ease, opacity .2s ease, background var(--t); }
nav.scrolled .hamburger span { background: var(--ink); }
.hamburger.open span { background: var(--ink) !important; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 1001; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    padding: 88px var(--edge) 40px; gap: 2px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a.ml {
    font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a.ml:hover { color: var(--ink-3); }
.mobile-menu .menu-socials { display: flex; gap: 10px; margin-top: 28px; }
.mobile-menu .menu-socials a {
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r);
    display: flex; align-items: center; justify-content: center; color: var(--ink-2);
    transition: background var(--t);
}
.mobile-menu .menu-socials a:hover { background: var(--bg-sunk); }
.mobile-menu .close-hint { margin-top: 24px; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-4); text-transform: uppercase; }

/* ---------- Hero ---------- */
#hero { position: relative; height: 100vh; min-height: 640px; padding: 0; display: flex; align-items: flex-end; overflow: hidden; background: #111; }
.hero-media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
    animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
/* Neutral charcoal scrim — no color cast */
.hero-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.28) 22%, rgba(10,10,10,.42) 42%, rgba(10,10,10,.74) 62%, rgba(10,10,10,.92) 100%);
}
.hero-grain { display: none; }
.hero-content { position: relative; z-index: 2; width: min(1180px, 100% - (var(--edge) * 2)); margin: 0 auto; padding-bottom: clamp(56px, 9vh, 96px); color: #fff; }
.hero-eyebrow {
    display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
    font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
    color: rgba(255,255,255,.92); line-height: 1.6; max-width: 70ch;
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
    animation: fadeUp .7s .1s both;
}
.hero-eyebrow::before { content: ''; flex: none; width: 28px; height: 1px; background: rgba(255,255,255,.7); }
.hero-eyebrow strong { font-weight: 600; color: #fff; }
.hero-name {
    font-weight: 600; font-size: clamp(2.4rem, 6.4vw, 4.8rem); line-height: 1.04; letter-spacing: -0.03em;
    margin-bottom: 22px; max-width: 14ch; text-shadow: 0 2px 28px rgba(0,0,0,.3);
    animation: fadeUp .7s .22s both;
}
.hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; color: rgba(255,255,255,.92);
    max-width: 52ch; margin-bottom: 36px; text-shadow: 0 1px 14px rgba(0,0,0,.35);
    animation: fadeUp .7s .34s both;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; animation: fadeUp .7s .46s both; }
#hero .btn-primary { background: #fff; border-color: #fff; color: var(--ink); min-height: 46px; padding-inline: 22px; }
#hero .btn-primary:hover { background: #ececee; border-color: #ececee; }
#hero .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; min-height: 46px; padding-inline: 22px; backdrop-filter: blur(6px); }
#hero .btn-secondary:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-img-wrap { position: relative; }
.about-img-frame { display: none; }
.about-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); }
.about-text h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.about-subtitle { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 22px; }
.about-bio { font-size: .95rem; color: var(--ink-3); line-height: 1.75; margin-bottom: 16px; max-width: 64ch; }
.about-quote { margin: 26px 0; padding: 14px 0 14px 18px; border-left: 2px solid var(--ink); font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.5; letter-spacing: -0.01em; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 26px; background: var(--bg); }
.stat-card { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-card:nth-child(3n) { border-right: none; }
.stat-card:nth-last-child(-n+3) { border-bottom: none; }
.stat-value { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .74rem; color: var(--ink-4); }

.social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; min-height: 36px;
    border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg);
    font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: background var(--t);
}
.social-btn i { font-size: .82rem; color: var(--ink-4); }
.social-btn:hover { background: var(--bg-sunk); }

/* ---------- Education (list rows, hairlines) ---------- */
.timeline { max-width: 880px; border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--ink-4); padding-top: 3px; }
.tl-degree { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.01em; }
.tl-school { font-size: .9rem; color: var(--ink-2); margin-bottom: 4px; }
.tl-focus, .tl-result { font-size: .84rem; color: var(--ink-3); }

/* ---------- Awards ---------- */
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.award-card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-sunk); }
.award-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.award-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(10,10,10,.85), transparent); }
.award-title { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.award-desc { font-size: .78rem; color: rgba(255,255,255,.8); }

/* ---------- Cards (shared surface) ---------- */
.pub-card, .exp-card, .cert-card, .cert-provided-card, .quote-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: border-color var(--t);
}
.pub-card:hover, .exp-card:hover, .cert-card:hover, .cert-provided-card:hover, .quote-card:hover { border-color: var(--line-strong); }

/* ---------- Publications ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pub-card { display: flex; flex-direction: column; }
.pub-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-bottom: 1px solid var(--line); }
.pub-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.pub-source { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.pub-title { font-size: 1.02rem; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 6px; }
.pub-author { font-size: .8rem; color: var(--ink-4); margin-bottom: 10px; }
.pub-desc { font-size: .86rem; color: var(--ink-3); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.pub-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj-card { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #111; }
.proj-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-card:hover .proj-img { transform: scale(1.03); }
.proj-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 48%, transparent 78%); }
.proj-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.proj-desc { font-size: .82rem; line-height: 1.55; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.proj-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; padding: 7px 14px; min-height: 34px; font-size: .78rem; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-ghost-fill { background: #fff; border-color: #fff; color: var(--ink); padding: 7px 14px; min-height: 34px; font-size: .78rem; }
.btn-ghost-fill:hover { background: #ececee; }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-hidden { display: none; }
.exp-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.exp-body { padding: 18px 20px 20px; }
.exp-role { font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 3px; }
.exp-org { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; line-height: 1.5; }
.exp-desc { font-size: .84rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 14px; }
.exp-desc strong { color: var(--ink-2); font-weight: 600; }
.load-more-exp-wrap, .load-more-cert-wrap, .load-more-wrap { text-align: center; margin-top: 32px; }

/* ---------- Certifications ---------- */
.cert-portrait-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.cert-landscape-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card { display: flex; flex-direction: column; }
.cert-img-p, .cert-img-l { width: 100%; height: auto; object-fit: contain; background: var(--bg-sunk); border-bottom: 1px solid var(--line); }
.cert-body { padding: 14px 16px 16px; }
.cert-title { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.cert-desc { font-size: .78rem; color: var(--ink-3); line-height: 1.55; }

/* ---------- Certificates issued ---------- */
.cert-provided-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-provided-img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.cert-provided-body { padding: 20px; }
.cert-provided-title { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.cert-provided-desc { font-size: .84rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }
.cert-provided-recipient { font-family: var(--mono); font-size: .72rem; color: var(--ink-4); border-top: 1px solid var(--line); padding-top: 12px; letter-spacing: .02em; }

/* ---------- Articles ---------- */
.article-list { max-width: 900px; border-top: 1px solid var(--line); }
.article-item { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.article-date { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.article-title { font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 6px; }
.article-item:hover .article-title { text-decoration: underline; text-underline-offset: 3px; }
.article-subtitle { font-size: .86rem; color: var(--ink-3); line-height: 1.55; }
.article-img { width: 100%; height: 110px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- Inspiration ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { padding: 24px; }
.quote-mark { font-size: 2rem; line-height: .8; color: var(--line-strong); margin-bottom: 12px; font-weight: 600; }
.quote-text { font-size: .9rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; }
.quote-text span { color: var(--ink-4) !important; font-family: var(--font) !important; }
.quote-position { font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.quote-university { font-size: .76rem; color: var(--ink-4); }

/* ---------- Contact ---------- */
.contact-inner { max-width: 680px; }
.contact-inner .section-head { max-width: none; }
.contact-desc { font-size: .95rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 28px; }
.contact-form { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; background: var(--bg); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 7px; }
.form-input, .form-textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r);
    background: var(--bg); font-family: var(--font); font-size: .92rem; color: var(--ink); outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-4); opacity: .75; }
.form-input:focus, .form-textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.06); }
.form-textarea { min-height: 128px; resize: vertical; }
.contact-socials { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: background var(--t); }
.icon-btn:hover { background: var(--bg-sunk); }

/* ---------- Footer: white, hairline top ---------- */
footer { background: var(--bg); color: var(--ink-3); text-align: left; padding: 56px var(--edge) 48px; border-top: 1px solid var(--line); }
footer > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.footer-name { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
footer p { font-size: .86rem; }
.footer-line { display: none; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.footer-links a { font-size: .82rem; font-weight: 500; color: var(--ink-3); padding: 6px 10px; margin-left: -10px; border-radius: var(--r); transition: background var(--t), color var(--t); }
.footer-links a:hover { background: var(--bg-sunk); color: var(--ink); }
.footer-copy { font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; color: var(--ink-4); margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Success modal (white, hairline) ---------- */
#successModal { background: rgba(10,10,10,.4) !important; backdrop-filter: none !important; }
#successModal .modal-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg) !important; box-shadow: none !important; max-width: 440px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .cert-portrait-row { grid-template-columns: repeat(3, 1fr); }
    .pub-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
    .quote-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img-wrap { max-width: 340px; }
    .tl-item { grid-template-columns: 1fr; gap: 6px; }
    .cert-landscape-row, .cert-provided-grid { grid-template-columns: repeat(2, 1fr); }
    .proj-grid { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --edge: 16px; --nav-h: 60px; }
    .pub-grid, .exp-grid, .quote-grid, .cert-landscape-row, .cert-provided-grid { grid-template-columns: 1fr; }
    .cert-portrait-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
    .stat-card:nth-child(2n) { border-right: none !important; }
    .stat-card:nth-last-child(-n+2) { border-bottom: none !important; }
    .article-item { grid-template-columns: 1fr; gap: 14px; }
    .article-img { order: -1; height: 170px; }
    .proj-card { aspect-ratio: 4/3; }
    .proj-overlay { padding: 18px; }
    .hero-name { max-width: 100%; }
    .hero-eyebrow { font-size: .68rem; }
    .contact-form { padding: 20px; }
}
@media (max-width: 380px) {
    .cert-portrait-row { grid-template-columns: 1fr; }
}
