/* =========================================================
   TOKENS
   ========================================================= */

:root {
    --ink: #12151c;
    --muted: #5b6472;
    --line: #e4e7ec;
    --paper: #ffffff;
    --wash: #f5f7fa;
    --accent: #1a56db;
    --accent-2: #0ea5a5;
    --accent-soft: #eef3ff;
}

/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter,
        Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e8e8e8;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: #151515;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 460px at 12% -10%, var(--accent-soft), transparent 60%),
        radial-gradient(760px 420px at 92% 8%, #e6fbfa, transparent 62%);
}

.hero-content {
    padding: 100px 0;
}

.eyebrow,
.section-label,
.project-type {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.section-label::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 9px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero h1 {
    margin: 10px 0;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 75%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    max-width: 760px;
    margin-bottom: 10px;
    font-size: 1.35rem;
    color: #444;
}

.hero-subtext {
    max-width: 720px;
    color: #777;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(120deg, var(--accent), #3f7bee);
    color: #fff;
    box-shadow: 0 6px 18px rgba(26, 86, 219, 0.28);
}

.primary:hover {
    box-shadow: 0 12px 26px rgba(26, 86, 219, 0.34);
}

.secondary {
    border: 1px solid var(--line);
    background: #fff;
}

.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 100px 0;
}

.alt-section {
    background: var(--wash);
}

.section h2 {
    max-width: 850px;
    margin-top: 6px;
    margin-bottom: 25px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section p {
    max-width: 750px;
}

.section-intro {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.05rem;
}

.large-text {
    font-size: 1.15rem;
    color: #444;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 45px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card {
    position: relative;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18, 21, 28, 0.11);
}

.project-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #f0f0f0;
}

.placeholder {
    display: grid;
    place-items: center;
    background: #ededed;
    color: #777;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.project-content h3 {
    margin: 6px 0 12px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.project-content p {
    color: #555;
}

.project-content > a {
    display: inline-block;
    margin-top: auto;
    padding-top: 18px;
    font-weight: 700;
    text-decoration: none;
}

.project-content > a:hover {
    text-decoration: underline;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.project-tags span {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #dbe4f7;
    background: var(--accent-soft);
    color: #24439c;
    font-size: 0.76rem;
    font-weight: 600;
}

.project-highlight {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: var(--accent-soft);
    font-size: 0.9rem;
}

.featured-project {
    grid-column: span 2;
}

.featured-project .project-image {
    height: 400px;
}

.featured-project .project-content h3 {
    font-size: 1.9rem;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-location {
    margin-top: -15px;
    color: #666;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.education-card {
    padding: 28px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.education-card h3 {
    margin: 5px 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
}

.education-card p {
    margin: 4px 0;
}

.education-status {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
}


/* =========================================================
   COURSEWORK
   ========================================================= */

.coursework {
    margin-top: 70px;
}

.coursework h3,
.skills h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.coursework-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.coursework-grid > div {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.coursework-grid h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.coursework-grid ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.coursework-grid li {
    margin-bottom: 5px;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills {
    margin-top: 70px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.skills-grid > div {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.skills-grid h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.skills-grid p {
    margin: 0;
    color: #555;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.experience-item {
    max-width: 900px;
    margin-top: 40px;
}

.experience-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ddd;
}

.experience-heading h3 {
    margin: 0;
    font-size: 1.6rem;
}

.company {
    margin: 4px 0 0;
    color: #555;
}

.meta {
    color: #666;
}


/* =========================================================
   RECOGNITION
   ========================================================= */

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.recognition-card {
    padding: 28px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.recognition-card h3 {
    margin-top: 7px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.recognition-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    text-decoration: none;
}

.recognition-link:hover {
    text-decoration: underline;
}

.recognition-year {
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    background: #111;
    color: #fff;
}

.contact-section h2 {
    color: #fff;
}

.contact-section .section-label,
.contact-section .large-text {
    color: #bbb;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 35px;
}

.contact-links a {
    padding-bottom: 4px;
    border-bottom: 1px solid #666;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.contact-links a:hover {
    border-color: #fff;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px 0;
    border-top: 1px solid #e8e8e8;
    color: #666;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-content p {
    margin: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-bottom: 10px;
        border-top: 1px solid #e8e8e8;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 14px 2px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    nav a:last-child {
        border-bottom: 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 80px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 75px 0;
    }

    .project-grid,
    .education-grid,
    .coursework-grid,
    .skills-grid,
    .recognition-grid {
        grid-template-columns: 1fr;
    }

    .featured-project {
        grid-column: span 1;
    }

    .featured-project .project-image {
        height: 280px;
    }

    .experience-heading {
        flex-direction: column;
        gap: 5px;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================================
   PROJECT DETAIL PAGES
   ========================================================= */

.project-hero {
    padding: 70px 0 60px;
    border-bottom: 1px solid #e8e8e8;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link:hover {
    color: #111;
}

.project-hero h1 {
    max-width: 900px;
    margin: 10px 0 20px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 35px 0 30px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
    color: #444;
    font-size: 0.95rem;
}

.meta-label {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
}

.container.narrow {
    width: min(760px, 90%);
}

.results-section {
    padding-bottom: 90px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stat {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(18, 21, 28, 0.08);
}

.stat-value {
    display: block;
    margin-bottom: 8px;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.45;
}

.section h3 {
    margin: 38px 0 10px;
    font-size: 1.3rem;
}

.project-figure {
    max-width: 820px;
    margin: 45px auto 0;
}

.project-figure.wide {
    max-width: 1000px;
}

/* A linked figure needs a block-level anchor, or max-width resolves against
   an inline box of zero width and the image collapses. */
.project-figure a {
    display: block;
}

.project-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 33vh;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.project-figure figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-figure {
    margin: 0;
}

.video-figure figcaption {
    margin-top: 12px;
    color: #666;
    font-size: 0.9rem;
}

.more-videos {
    max-width: 700px;
    margin-top: 40px;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.more-videos summary {
    cursor: pointer;
    font-weight: 700;
}

.more-videos ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #555;
}

.more-videos li {
    margin-bottom: 8px;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

@media (max-width: 750px) {

    .project-meta,
    .stat-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .project-hero {
        padding: 45px 0 40px;
    }
}

.doc-note {
    margin-top: 22px;
    color: #666;
    font-size: 0.92rem;
}

/* attribution callout + topic grid + case list */

.attribution {
    padding: 26px 28px;
    border-left: 3px solid #111;
    border-radius: 0 8px 8px 0;
    background: #f5f5f5;
}

.attribution h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.attribution p {
    margin: 0 0 12px;
    color: #444;
    font-size: 0.95rem;
}

.attribution p:last-child {
    margin-bottom: 0;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 45px;
}

.topic {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic:hover {
    transform: translateY(-3px);
    border-color: #c9d8f6;
    box-shadow: 0 12px 26px rgba(18, 21, 28, 0.08);
}

.topic-num {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.topic h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.topic p {
    margin: 0;
    color: #555;
    font-size: 0.92rem;
}

.case-list {
    max-width: 750px;
    margin: 18px 0 24px;
    padding-left: 20px;
    color: #444;
}

.case-list li {
    margin-bottom: 12px;
}

@media (max-width: 750px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

.two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.two-up .project-figure {
    max-width: none;
    margin: 0;
}

.code-block {
    max-width: 750px;
    margin: 26px 0;
    padding: 20px 22px;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.7;
}

@media (max-width: 750px) {
    .two-up {
        grid-template-columns: 1fr;
    }
}

.project-figure video {
    width: 100%;
    height: auto;
    max-height: 55vh;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #000;
}

/* Dense multi-panel plots. The 33vh cap shrinks their axis labels past
   legibility, so let them take the full column width instead; width stays
   auto so nothing is upscaled past its native size. */
.project-figure.plot img,
.project-figure.plot video {
    width: auto;
    max-width: 100%;
    max-height: none;
}


/* =========================================================
   MOTION
   ========================================================= */

/* Hidden only once JS has confirmed it can reveal them again. Without the
   js-reveal flag on <html>, everything renders normally. */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal,
    .js-reveal .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   HERO PORTRAIT
   ========================================================= */

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 56px;
}

.hero-portrait {
    margin: 0;
    flex-shrink: 0;
}

.hero-portrait img {
    width: clamp(180px, 20vw, 260px);
    height: auto;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 18px 44px rgba(18, 21, 28, 0.18);
}

@media (max-width: 880px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-portrait {
        order: -1;
    }

    .hero-portrait img {
        width: 150px;
    }
}

.credit {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #8b93a1;
}

/* =========================================================
   PRINT / PDF PORTFOLIO
   ========================================================= */

.print-only {
    display: none;
}

@media print {

    @page {
        size: Letter;
        margin: 0.55in 0.6in;
    }

    html, body {
        background: #fff;
        font-size: 10.5pt;
        line-height: 1.45;
    }

    /* Navigation chrome is meaningless on paper */
    .site-header,
    .nav-toggle,
    nav,
    .back-link,
    footer {
        display: none !important;
    }

    /* The scroll reveal must never hide content in print */
    .js-reveal .reveal,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .print-only {
        display: block;
    }

    .media-note {
        margin-top: 8px;
        padding: 7px 10px;
        border-left: 3px solid #1a56db;
        background: #f2f6ff;
        font-size: 8.5pt;
        color: #24439c;
        word-break: break-all;
    }

    /* Media cannot render in a PDF - the note replaces it */
    video,
    iframe,
    .video-frame,
    .more-videos {
        display: none !important;
    }

    /* Tighten the generous screen rhythm */
    .section,
    .project-hero,
    .hero {
        padding: 14pt 0 !important;
        min-height: 0 !important;
        background: none !important;
        border: 0 !important;
    }

    .hero-content {
        padding: 0 !important;
    }

    .container,
    .container.narrow {
        width: 100% !important;
        max-width: none !important;
    }

    .hero h1,
    .project-hero h1 {
        font-size: 22pt !important;
        color: #12151c !important;
        -webkit-text-fill-color: #12151c;
        margin-bottom: 6pt;
    }

    .section h2 {
        font-size: 14pt !important;
        margin: 4pt 0 6pt;
    }

    .section h3 {
        font-size: 11pt !important;
        margin: 10pt 0 4pt;
    }

    .hero-text,
    .large-text {
        font-size: 11pt !important;
    }

    .stat-value {
        font-size: 15pt !important;
        color: #1a56db !important;
        -webkit-text-fill-color: #1a56db;
    }

    /* Keep related blocks whole across page breaks */
    .project-figure,
    .stat,
    .topic,
    .project-card,
    .education-card,
    .recognition-card,
    .attribution,
    .project-highlight,
    .experience-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Figures sized for paper, not viewport height */
    .project-figure img {
        max-height: 2.9in !important;
        max-width: 100% !important;
    }

    .project-figure.wide img {
        max-height: 3.2in !important;
    }

    .hero-portrait img {
        width: 1.25in !important;
        box-shadow: none !important;
    }

    .project-image {
        height: 1.6in !important;
    }

    .project-grid {
        gap: 12pt !important;
    }

    .stat-grid,
    .topic-grid {
        gap: 10pt !important;
    }

    /* Spell out destinations that a click cannot follow on paper */
    .contact-links a::after,
    .link-row a::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        font-weight: 400;
        color: #5b6472;
    }

    .contact-section {
        background: none !important;
        color: #12151c !important;
    }

    .contact-section h2,
    .contact-section .section-label,
    .contact-section .large-text,
    .contact-links a {
        color: #12151c !important;
        -webkit-text-fill-color: #12151c;
    }

    .button {
        border: 1px solid #c9d2e0 !important;
        background: none !important;
        color: #12151c !important;
        box-shadow: none !important;
    }

    a {
        text-decoration: none;
    }

    /* A Letter page at these margins is ~700px wide, which trips the mobile
       breakpoint and collapses every grid to a single column. Restore them. */
    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .topic-grid,
    .project-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .project-grid,
    .two-up,
    .education-grid,
    .recognition-grid,
    .coursework-grid,
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* The featured card spans both columns on screen; on paper that wastes
       most of a page, so let it pair with its neighbour instead. */
    .featured-project {
        grid-column: span 1 !important;
    }

    .experience-heading {
        flex-direction: row !important;
    }

    .stat,
    .topic,
    .education-card,
    .recognition-card {
        padding: 10pt !important;
    }

    .stat-label,
    .topic p {
        font-size: 8.5pt !important;
    }

    .project-content {
        padding: 10pt !important;
    }

    .project-content h3 {
        font-size: 11pt !important;
    }

    .project-content p,
    .project-tags span {
        font-size: 8.5pt !important;
    }

    /* On-screen calls to action mean nothing on paper */
    .hero-buttons,
    .project-content > a {
        display: none !important;
    }
}
