:root {
    color-scheme: dark;
    --bg: #090909;
    --surface: #111111;
    --surface-raised: #171717;
    --text: #f4f4f0;
    --muted: #a4a4a0;
    --quiet: #777773;
    --line: #2b2b2a;
    --accent: #e9e9e3;
    --accent-ink: #101010;
    --header-bg: rgba(9, 9, 9, .88);
    --shadow: 0 26px 90px rgba(0, 0, 0, .35);
    font-family: "DM Sans", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    scroll-padding-top: 94px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f1f1ed;
    --surface: #ffffff;
    --surface-raised: #e8e8e3;
    --text: #111111;
    --muted: #555551;
    --quiet: #6c6c66;
    --line: #d5d5cf;
    --accent: #151515;
    --accent-ink: #f7f7f2;
    --header-bg: rgba(241, 241, 237, .9);
    --shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    transition: background-color .25s ease, color .25s ease;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 500;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    width: 100%;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 12px clamp(20px, 5vw, 76px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
}

.wordmark {
    flex: 0 0 auto;
    font-family: Manrope, sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.09em;
}
.wordmark span { color: var(--muted); }

.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { justify-content: center; gap: clamp(12px, 1.7vw, 25px); }
.site-nav a, .header-actions button, .google-dev-link, .footer-settings {
    font-size: 12px;
    font-weight: 600;
}
.site-nav a, .footer-settings { color: var(--muted); transition: color .2s ease; }
.site-nav a:hover, .footer-settings:hover, .site-footer > a:hover { color: var(--text); }

.header-actions { flex: 0 0 auto; gap: 11px; }
.google-dev-link, .theme-toggle, .settings-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    background: transparent;
    color: var(--text);
    white-space: nowrap;
}
.google-dev-link { border-color: var(--text); }
.google-dev-link:hover, .theme-toggle:hover, .settings-button:hover { background: var(--surface-raised); }
.theme-toggle, .settings-button, .menu-toggle, .dialog-close, .footer-settings { cursor: pointer; }
.theme-symbol { font-size: 16px; line-height: 1; }
.menu-toggle { display: none; }

.section-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.hero {
    display: grid;
    min-height: min(760px, calc(100svh - 80px));
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .8fr);
    align-content: center;
    align-items: center;
    column-gap: clamp(50px, 9vw, 140px);
    padding-top: 74px;
    padding-bottom: 38px;
}
.hero-copy { max-width: 630px; }
.eyebrow, .project-kicker, .achievement-label {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    line-height: 1.7;
    text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 12px var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -.055em; }
.hero h1 { margin: 20px 0 0; font-size: clamp(58px, 8.8vw, 112px); font-weight: 700; line-height: .98; }
.hero-role { margin: 18px 0 19px; font-family: Manrope, sans-serif; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
.hero-summary { max-width: 595px; margin-bottom: 26px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--text); background: var(--surface); }
.hero-links { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 28px; }
.hero-links a { color: var(--muted); font-size: 12px; transition: color .2s ease; }
.hero-links a:hover { color: var(--text); }

.hero-visual { position: relative; width: min(100%, 395px); justify-self: end; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--surface); }
.portrait-frame::after { position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .48)); content: ""; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 31%; filter: saturate(.78); }
.hero-note {
    position: absolute;
    right: -28px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    padding: 13px 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 12px;
    line-height: 1.5;
}
.note-marker { font-size: 24px; }

.hero-metrics {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(46px, 7vw, 88px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.metric { display: flex; min-height: 100px; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 20px; border-right: 1px solid var(--line); transition: background .2s ease; }
.metric:first-child { padding-left: 0; }
.metric:nth-child(4) { border-right: 0; }
.metric:hover { background: var(--surface); }
.metric-value { font-family: Manrope, sans-serif; font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.06em; }
.metric-unit { margin-left: 4px; color: var(--muted); font-size: .48em; font-weight: 500; letter-spacing: 0; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-main { display: flex; align-items: center; gap: 10px; }
.score-badge-image { width: 36px; height: 36px; flex: 0 0 auto; }
.metric-google .metric-value { font-size: 23px; }

.section-block { padding-top: 126px; }
.section-heading { max-width: 740px; margin-bottom: 48px; }
.section-heading h2, .contact-card h2 { margin: 16px 0; font-size: clamp(34px, 5vw, 58px); font-weight: 600; line-height: 1.08; }
.muted { color: var(--muted); }
.section-intro { max-width: 590px; margin: 14px 0 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 80px; }
.about-copy p { max-width: 690px; margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.about-facts { align-self: start; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fact span { color: var(--quiet); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.fact strong { font-size: 13px; font-weight: 500; }
.stack-panel { position: relative; overflow: hidden; margin-top: 69px; border: 1px solid var(--line); padding: clamp(24px, 4.5vw, 48px); background: var(--surface); }
.stack-panel::before { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--text), transparent 73%); content: ""; }
.toolkit-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.toolkit-heading h3 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.05; }
.toolkit-heading h3 span { color: var(--muted); }
.toolkit-caption { max-width: 250px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.tool-flow { position: relative; display: flex; justify-content: space-between; gap: 12px; margin: 34px 0 28px; padding: 0; list-style: none; }
.tool-flow::before { position: absolute; top: 11px; right: 8%; left: 4%; height: 1px; background: var(--line); content: ""; }
.tool-flow li { position: relative; display: flex; flex: 1; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.tool-flow li span { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid var(--quiet); border-radius: 50%; background: var(--surface); color: var(--text); font-family: Manrope, sans-serif; font-size: 8px; }
.toolkit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool-card { position: relative; min-height: 218px; overflow: hidden; border: 1px solid var(--line); padding: 19px; background: var(--bg); transition: border-color .2s ease, transform .2s ease; }
.tool-card::after { position: absolute; right: 19px; bottom: 0; left: 19px; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--text); content: ""; transition: transform .25s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--quiet); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-card-featured { background: var(--surface-raised); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-number { color: var(--quiet); font-family: Manrope, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.tool-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); color: var(--text); font-family: Manrope, sans-serif; font-size: 13px; }
.tool-category { margin: 18px 0 5px; color: var(--quiet); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.tool-card h4 { margin: 0; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.04em; }
.tool-description { min-height: 39px; margin: 6px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tool-tags span { border: 1px solid var(--line); padding: 3px 6px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: .72fr 1.6fr; gap: 45px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-item-featured { grid-template-columns: minmax(145px, .45fr) .72fr 1.6fr; align-items: start; }
.experience-photo { width: 100%; height: 180px; border: 1px solid var(--line); object-fit: cover; object-position: center 28%; }
.timeline-meta { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.timeline-meta span + span { color: var(--quiet); }
.timeline-content h3, .education-card h3, .project-card h3, .achievement-card h3, .credential-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.timeline-content h3 span { color: var(--muted); font-weight: 500; }
.timeline-content p, .timeline-content li { color: var(--muted); font-size: 14px; }
.timeline-content p { margin-bottom: 0; }
.timeline-content ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.project-card:hover { border-color: var(--quiet); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; }
.project-with-image { display: grid; grid-template-columns: 1fr 1.15fr; }
.project-image { min-height: 100%; background: var(--surface-raised); }
.project-image img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: center 42%; }
.project-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 34px); }
.project-kicker { margin-bottom: 12px; font-size: 9px; }
.project-body p:not(.project-kicker):not(.project-result) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-card h3 { font-size: clamp(20px, 2vw, 25px); }
.compact-list { display: grid; gap: 6px; margin: 2px 0 17px; padding-left: 17px; color: var(--muted); font-size: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 17px; padding-top: 16px; }
.tag-list span { border: 1px solid var(--line); border-radius: 2px; padding: 5px 8px; color: var(--muted); font-size: 10px; }
.project-result { margin: 0 0 14px; color: var(--text); font-size: 12px; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; border-bottom: 1px solid var(--quiet); padding-bottom: 3px; font-size: 12px; font-weight: 600; transition: border-color .2s ease, color .2s ease; }
.text-link:hover { border-color: var(--text); color: var(--muted); }
.project-thumbnail { width: 100%; max-height: 180px; margin: 4px 0 10px; border: 1px solid var(--line); object-fit: cover; object-position: top; }
.inline-badge { width: min(100%, 245px); max-height: 220px; margin: 15px auto 0; object-fit: contain; }
.text-link-group { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.project-compact .project-body { min-height: 100%; }
.project-portrait { display: flex; align-items: center; justify-content: center; }
.project-portrait img { width: auto; max-width: 100%; min-height: 360px; max-height: 540px; object-fit: contain; }
.project-deep-dive { grid-column: 1 / -1; }
.project-certificate-card { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(220px, .55fr) 1fr; align-items: center; gap: 28px; border: 1px solid var(--line); padding: 20px; background: var(--surface); }
.project-certificate-card > a { display: block; border: 1px solid var(--line); background: #08132b; }
.project-certificate-card img { width: 100%; max-height: 270px; object-fit: contain; }
.project-certificate-card h3 { margin: 7px 0; font-size: 20px; }
.project-certificate-card p:not(.project-kicker) { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.technical-report { width: 100%; margin-top: 20px; border-top: 1px solid var(--line); }
.technical-report > summary { padding: 15px 0; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; }
.technical-report[open] > summary { border-bottom: 1px solid var(--line); }
.report-sections { display: grid; gap: 26px; padding: 4px 0 12px; }
.report-section { border-bottom: 1px solid var(--line); padding: 18px 0 23px; }
.report-section:last-child { border-bottom: 0; }
.report-section h4 { margin: 7px 0 15px; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.report-section h5 { margin: 17px 0 8px; font-family: Manrope, sans-serif; font-size: 14px; }
.report-section p:not(.project-kicker), .report-section li { color: var(--muted); font-size: 12px; line-height: 1.75; }
.report-section ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; }
.report-section strong { color: var(--text); }
.document-preview { display: block; width: 100%; height: 440px; margin-top: 12px; border: 1px solid var(--line); background: #fff; }

.projects-intro { margin-bottom: 28px; }
.project-index { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.project-index a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); font-size: 11px; font-weight: 600; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.project-index a:hover { border-color: var(--text); background: var(--surface); color: var(--text); }
.project-detail { padding-top: 84px; scroll-margin-top: 90px; animation: project-rise .55s both; }
.project-detail:nth-of-type(2) { animation-delay: .04s; }
.project-detail:nth-of-type(3) { animation-delay: .08s; }
.project-detail:nth-of-type(4) { animation-delay: .12s; }
.project-detail:nth-of-type(5) { animation-delay: .16s; }
.project-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-brief article { padding: 22px clamp(14px, 2.5vw, 28px) 22px 0; }
.project-brief article + article { border-left: 1px solid var(--line); padding-left: clamp(14px, 2.5vw, 28px); }
.project-brief h3 { margin: 7px 0; font-family: Manrope, sans-serif; font-size: clamp(17px, 2.2vw, 23px); letter-spacing: -.04em; line-height: 1.25; }
.project-brief article > p:last-child { max-width: 540px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-heading { max-width: 800px; margin-bottom: 28px; }
.detail-heading h2 { margin: 8px 0 12px; font-size: clamp(33px, 5vw, 54px); font-weight: 600; line-height: 1.08; }
.detail-heading > p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.detail-overview { display: grid; grid-template-columns: minmax(220px, .65fr) 1fr; align-items: center; gap: clamp(24px, 5vw, 58px); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); background: var(--surface); }
.detail-overview > img { width: 100%; height: 270px; border: 1px solid var(--line); object-fit: cover; object-position: center 28%; }
.detail-overview-copy h3, .detail-award h3 { margin: 9px 0; font-size: clamp(21px, 2.7vw, 30px); font-weight: 600; line-height: 1.2; }
.detail-overview-copy > p:not(.eyebrow), .detail-award p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-block { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 24px; }
.detail-block-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.detail-block-heading h3 { margin: 7px 0 0; font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; line-height: 1.15; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(22px, 4vw, 46px); }
.detail-card { position: relative; min-width: 0; border-top: 1px solid var(--line); padding: 21px 0; background: transparent; }
.detail-card-wide { grid-column: 1 / -1; }
.detail-number { display: inline-block; margin-bottom: 12px; color: var(--quiet); font-family: Manrope, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.detail-card h4, .detail-card h3 { margin: 0 0 10px; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.035em; line-height: 1.35; }
.detail-card p, .detail-card li { color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-card p:last-child { margin-bottom: 0; }
.detail-card ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; }
.detail-card strong { color: var(--text); }
.detail-card code { border: 1px solid var(--line); padding: 2px 5px; color: var(--text); font-size: .9em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 13px; }
.detail-tags span { border: 1px solid var(--line); border-radius: 2px; padding: 4px 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.detail-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 4px 0 0; padding-left: 22px; }
.detail-award { display: grid; grid-template-columns: minmax(240px, .85fr) 1fr; align-items: center; gap: clamp(22px, 4vw, 44px); margin-top: 18px; border-block: 1px solid var(--line); padding: 20px 0; }
.detail-award > img { width: 100%; height: 260px; border: 1px solid var(--line); object-fit: cover; object-position: center; }
.detail-award .button { margin-top: 6px; }
.detail-award-ddos > img { object-position: center 30%; }
.rapidreach-collage { margin: 18px 0; padding: 12px 0; }
.rapidreach-collage img { width: 100%; max-height: 680px; object-fit: contain; background: #f4f3f0; }
.rapidreach-collage figcaption, .detail-certificate figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }
.detail-document { display: grid; gap: 12px; margin-top: 46px; border-top: 1px solid var(--line); padding: 24px 0 0; }
.detail-document h3 { margin: 8px 0; font-size: 22px; }
.detail-document p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.detail-document .button { justify-self: start; }
.detail-certificate { width: min(640px, 100%); margin: 30px auto 0; text-align: center; }
.detail-certificate img { width: 100%; max-height: 300px; object-fit: contain; background: #fff; }
.detail-certificate .text-link { margin-top: 5px; }
.other-projects { border-top: 1px solid var(--line); margin-top: 20px; }
.small-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.small-project-grid .detail-card { display: flex; flex-direction: column; align-items: flex-start; }
.small-project-grid .detail-card .text-link { margin-top: auto; padding-top: 12px; }
.small-project-image { width: 100%; max-height: 155px; margin: 5px 0 10px; border: 1px solid var(--line); object-fit: cover; object-position: top; }
.isl-media-gallery { display: grid; grid-template-columns: minmax(220px, .85fr) repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.isl-media-gallery figure { min-width: 0; margin: 0; }
.isl-media-gallery img { width: 100%; height: 100%; max-height: 235px; aspect-ratio: 16 / 10; object-fit: contain; background: var(--surface); }
.isl-media-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 10px; }
.isl-media-gallery .isl-team-photo { grid-row: span 2; }
.isl-media-gallery .isl-team-photo img { height: 100%; max-height: 482px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 42%; }
.projects-footer { margin-top: 45px; }
.football-intro { margin-bottom: 26px; }
.football-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(22px, 4vw, 46px); border-top: 1px solid var(--line); }
.football-card { display: grid; grid-template-columns: minmax(130px, .7fr) 1fr; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 24px 0; }
.football-card img { width: 100%; height: 180px; object-fit: cover; object-position: center; }
.football-card h2 { margin: 8px 0; font-size: 21px; line-height: 1.25; }
.football-card p:not(.project-kicker) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.football-card .text-link { margin-top: 10px; }
.football-card-team img { object-position: center 30%; }
.football-card-event img { object-fit: contain; background: transparent; }
.football-card-medal img { object-fit: contain; background: transparent; }
.football-card-runner img { object-position: center 28%; }
@keyframes project-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.achievement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.achievement-card { display: grid; grid-template-columns: 125px 1fr; min-height: 150px; align-items: center; gap: 20px; border: 1px solid var(--line); padding: 18px; background: var(--surface); }
.achievement-card.achievement-featured { grid-column: 1 / -1; grid-template-columns: minmax(180px, 260px) 1fr; }
.achievement-card > img { width: 125px; height: 120px; border: 1px solid var(--line); object-fit: cover; }
.achievement-card.achievement-featured > img { width: 100%; height: 180px; }
.achievement-card h3 { margin: 6px 0; font-size: 17px; }
.achievement-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.achievement-label { color: var(--quiet); font-size: 8px; }
.achievement-text { grid-template-columns: 54px 1fr; }
.achievement-number { align-self: start; color: var(--quiet); font-family: Manrope, sans-serif; font-size: 27px; font-weight: 600; }
.badge-row { display: flex; gap: 10px; margin-top: 13px; }
.badge-row img { width: 75px; height: 75px; border: 1px solid var(--line); object-fit: contain; }
.archive-link { margin-top: 22px; }

.archive-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    padding: 12px clamp(20px, 5vw, 76px);
    background: var(--header-bg);
    backdrop-filter: blur(18px);
}
.archive-header-links { display: flex; flex-wrap: wrap; gap: 22px; }
.archive-header-links a { color: var(--muted); font-size: 12px; font-weight: 600; }
.archive-header-links a:hover { color: var(--text); }
.archive-main { padding-top: 76px; padding-bottom: 70px; }
.archive-intro { max-width: 760px; margin-bottom: 35px; }
.archive-intro h1 { margin: 17px 0; font-size: clamp(40px, 6.5vw, 74px); font-weight: 600; line-height: 1.05; }
.archive-intro > p:last-child { max-width: 600px; margin-bottom: 0; color: var(--muted); }
.archive-nav { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.archive-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.archive-nav a:hover { border-color: var(--text); color: var(--text); }
.archive-football-link { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.archive-football-link .text-link { margin-top: 0; }
.archive-section { padding-top: 76px; scroll-margin-top: 96px; }
.archive-section-heading { margin-bottom: 23px; }
.archive-section-heading h2 { margin: 9px 0 0; font-size: clamp(25px, 3.5vw, 38px); font-weight: 600; line-height: 1.2; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.badge-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.badge-image, .badge-preview { display: grid; width: 100%; height: 170px; place-items: center; object-fit: contain; }
.badge-preview { align-content: center; gap: 4px; background: var(--surface); color: var(--text); text-align: center; }
.badge-preview-google span { color: var(--muted); font-size: 16px; font-weight: 700; }
.badge-preview-google strong { font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.05em; }
.badge-preview-google small { color: var(--quiet); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.badge-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px; }
.badge-copy h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.badge-copy p:not(.project-kicker) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.badge-copy .text-link { margin-top: 10px; font-size: 11px; }
.badge-copy .certificate-button { margin-top: auto; }
.badge-copy .certificate-button + .certificate-button { margin-top: 10px; }
.certificate-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.certificate-card { background: transparent; }
.certificate-thumb { display: block; width: 100%; height: 158px; border: 0; background: transparent; object-fit: contain; }
.certificate-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px; }
.certificate-copy .project-kicker { margin-bottom: 7px; }
.certificate-copy h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.certificate-copy p:not(.project-kicker) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.certificate-copy .text-link { margin-top: 10px; font-size: 11px; }
.certificate-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; margin-top: auto; border: 1px solid var(--line); padding: 0 12px; color: var(--text); font-size: 11px; font-weight: 700; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.certificate-button:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.certificate-copy .certificate-button { margin-top: 17px; }
.archive-footer { margin-top: 0; }

.education-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding: 27px 0; }
.education-card:last-child { border-bottom: 1px solid var(--line); }
.education-card p:not(.project-kicker) { margin: 0; color: var(--muted); font-size: 13px; }
.education-scores { display: flex; flex: 0 0 auto; align-items: center; gap: 27px; }
.education-score { display: grid; flex: 0 0 auto; justify-items: end; }
.education-score-secondary { border-left: 1px solid var(--line); padding-left: 27px; }
.education-score > span { font-family: Manrope, sans-serif; font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -.06em; }
.education-score small, .education-meta { color: var(--muted); font-size: 11px; }
.education-score .text-link { margin-top: 9px; }
.education-secondary h3 { margin-bottom: 6px; font-size: 17px; }
.education-meta { max-width: 310px; text-align: right; }
.education-meta strong { color: var(--text); font-size: 14px; }

.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credential-card { display: grid; grid-template-columns: 46px 1fr; gap: 15px; border: 1px solid var(--line); padding: 21px; background: var(--surface); }
.credential-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
.credential-card h3 { margin: 7px 0; font-size: 16px; }
.credential-card p:not(.project-kicker) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.credential-card .project-kicker { margin: 0; }
.credential-card .text-link { margin-top: 11px; }
.credential-actions { display: flex; grid-column: 2; gap: 15px; margin-top: 7px; }
.credential-actions a { color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.credential-actions a:hover { color: var(--text); }

.contact-section { padding-top: 130px; padding-bottom: 100px; }
.contact-card { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 50px; border: 1px solid var(--line); padding: clamp(28px, 6vw, 64px); background: var(--surface); }
.contact-card h2 { margin: 17px 0; font-size: clamp(34px, 5vw, 57px); }
.contact-card > div:first-child > p:last-child { max-width: 520px; margin-bottom: 0; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.contact-actions .button { width: 100%; justify-content: space-between; }
.contact-actions .text-link { margin-top: 4px; }
.site-footer { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 20px clamp(24px, 5vw, 76px); }
.site-footer p, .site-footer > a:last-child, .footer-settings { margin: 0; color: var(--muted); font-size: 11px; }
.footer-settings { border: 0; padding: 0; background: none; }

.settings-dialog {
    width: min(480px, calc(100% - 28px));
    max-width: none;
    border: 1px solid var(--line);
    padding: 32px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}
.settings-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.settings-dialog h2 { margin: 10px 0; font-size: 28px; }
.settings-intro, .settings-footnote { color: var(--muted); font-size: 12px; line-height: 1.65; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; font-size: 23px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 18px 0; }
.setting-row > div { display: flex; flex-direction: column; gap: 4px; }
.setting-row strong { font-size: 13px; }
.setting-row span:not(.switch-track) { color: var(--muted); font-size: 11px; }
.switch { position: relative; flex: 0 0 auto; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { display: block; width: 44px; height: 25px; border: 1px solid var(--quiet); border-radius: 99px; background: var(--surface-raised); transition: background .2s ease; }
.switch-track::after { position: absolute; top: 5px; left: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--text); content: ""; transition: transform .2s ease; }
.switch input:checked + .switch-track { background: var(--text); }
.switch input:checked + .switch-track::after { transform: translateX(19px); background: var(--bg); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--text); outline-offset: 4px; }
.settings-footnote { margin: 13px 0 0; font-size: 10px; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-motion="reduced"] { scroll-behavior: auto; }
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
[data-motion="reduced"].js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1120px) {
    .site-header { gap: 16px; }
    .site-nav { gap: 13px; }
    .site-nav a { font-size: 11px; }
    .header-actions { gap: 7px; }
    .google-dev-link, .theme-toggle, .settings-button { padding-inline: 10px; font-size: 11px; }
}

@media (max-width: 900px) {
    .site-header { min-height: 70px; }
    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        order: 3;
        border: 1px solid var(--line);
        border-radius: 3px;
        background: transparent;
    }
    .menu-toggle span { width: 17px; height: 1px; background: var(--text); transition: transform .2s ease; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--line);
        padding: 9px 24px 18px;
        background: var(--bg);
    }
    .site-nav.is-open { display: flex; flex-direction: column; }
    .site-nav a { border-bottom: 1px solid var(--line); padding: 11px 0; font-size: 13px; }
    .header-actions { margin-left: auto; }
    .hero { min-height: auto; padding-top: 86px; }
    .hero-visual { width: min(100%, 330px); }
    .hero-note { right: -12px; }
    .about-grid { gap: 45px; }
    .certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .metric:nth-child(n+3) { border-bottom: 0; }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(3) { border-right: 1px solid var(--line); }
}

@media (max-width: 640px) {
    .section-shell { width: min(100% - 36px, 560px); }
    .site-header { min-height: 64px; gap: 10px; padding-inline: 18px; }
    .wordmark { font-size: 23px; }
    .header-actions { gap: 6px; }
    .google-dev-link, .theme-toggle, .settings-button { min-height: 35px; padding-inline: 9px; font-size: 10px; }
    .theme-label { display: none; }
    .theme-symbol { font-size: 17px; }
    .menu-toggle { width: 37px; height: 37px; }
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 76px; }
    .hero h1 { font-size: clamp(54px, 17vw, 88px); }
    .hero-role { font-size: 21px; }
    .hero-visual { width: min(80%, 340px); justify-self: center; }
    .hero-note { right: -20px; bottom: 24px; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); margin-top: 15px; }
    .metric { min-height: 82px; border-bottom: 1px solid var(--line); padding: 14px; }
    .metric:first-child { padding-left: 14px; }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(3), .metric:nth-child(4) { border-bottom: 0; }
    .score-badge-image { width: 30px; height: 30px; }
    .metric-value { font-size: 29px; }
    .metric-google .metric-value { font-size: 20px; }
    .metric-label { font-size: 10px; }
    .section-block { padding-top: 92px; }
    .section-heading { margin-bottom: 33px; }
    .about-grid, .timeline-item, .project-featured, .project-grid, .achievement-grid, .credential-grid, .contact-card { grid-template-columns: 1fr; }
    .project-with-image { grid-template-columns: 1fr; }
    .about-grid { gap: 30px; }
    .toolkit-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .toolkit-caption { max-width: 330px; }
    .tool-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 25px 0 20px; }
    .tool-flow::before { display: none; }
    .tool-flow li:last-child { grid-column: 1 / -1; }
    .toolkit-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: auto; }
    .tool-description { min-height: 0; }
    .timeline-item { gap: 12px; padding: 22px 0; }
    .timeline-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
    .experience-photo { width: min(100%, 280px); height: 190px; }
    .project-grid { gap: 11px; }
    .project-featured { grid-column: auto; }
    .project-image img { min-height: 240px; max-height: 280px; }
    .project-portrait img { min-height: 300px; max-height: 470px; }
    .project-certificate-card { grid-template-columns: 1fr; gap: 17px; padding: 14px; }
    .project-certificate-card img { max-height: 220px; }
    .project-deep-dive { grid-column: auto; }
    .document-preview { height: 330px; }
    .achievement-card { grid-template-columns: 96px 1fr; gap: 14px; padding: 13px; }
    .achievement-card.achievement-featured { grid-column: auto; grid-template-columns: 96px 1fr; }
    .achievement-card > img { width: 96px; height: 96px; }
    .achievement-card.achievement-featured > img { width: 96px; height: 96px; }
    .achievement-text { grid-template-columns: 38px 1fr; }
    .achievement-number { font-size: 22px; }
    .education-card { align-items: flex-start; }
    .education-card:not(.education-secondary) { flex-direction: column; gap: 18px; }
    .education-scores { gap: 20px; }
    .education-score { justify-items: start; }
    .education-score-secondary { padding-left: 20px; }
    .education-secondary { flex-direction: column; gap: 10px; }
    .education-meta { text-align: left; }
    .credential-card { grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; }
    .credential-mark { width: 36px; height: 36px; font-size: 11px; }
    .credential-actions { gap: 13px; }
    .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-header { min-height: 64px; gap: 12px; padding-inline: 18px; }
    .archive-header-links { gap: 10px; }
    .archive-header-links a { font-size: 10px; }
    .project-detail { padding-top: 60px; }
    .detail-overview, .detail-award { grid-template-columns: 1fr; }
    .detail-overview > img { max-width: 340px; height: 230px; }
    .detail-award > img { height: 230px; }
    .project-brief { grid-template-columns: 1fr; }
    .project-brief article { padding: 18px 0; }
    .project-brief article + article { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
    .detail-block { margin-top: 42px; }
    .detail-block-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
    .detail-grid, .small-project-grid { grid-template-columns: 1fr; }
    .detail-card-wide { grid-column: auto; }
    .detail-steps { grid-template-columns: 1fr; gap: 7px; }
    .rapidreach-collage { padding: 7px; }
    .rapidreach-collage img { max-height: 430px; }
    .isl-media-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .isl-media-gallery .isl-team-photo { grid-row: span 2; }
    .isl-media-gallery img { max-height: 170px; }
    .isl-media-gallery .isl-team-photo img { max-height: 350px; }
    .football-grid { grid-template-columns: 1fr; }
    .football-card { grid-template-columns: 110px 1fr; gap: 14px; padding: 18px 0; }
    .football-card img { height: 130px; }
    .football-card h2 { font-size: 17px; }
    .detail-document .button { width: 100%; }
    .archive-main { padding-top: 55px; }
    .archive-section { padding-top: 58px; }
    .archive-nav { gap: 6px; }
    .archive-nav a { padding: 6px 9px; font-size: 10px; }
    .certificate-grid { grid-template-columns: 1fr; }
    .badge-grid { grid-template-columns: 1fr; }
    .certificate-card { display: grid; grid-template-columns: 112px 1fr; }
    .certificate-thumb { width: 112px; height: 100%; min-height: 145px; border: 0; }
    .certificate-copy { padding: 13px; }
    .certificate-copy h3 { font-size: 14px; }
    .certificate-copy p:not(.project-kicker) { font-size: 10px; }
    .certificate-button { min-height: 34px; padding-inline: 9px; }
    .contact-section { padding-top: 92px; padding-bottom: 70px; }
    .contact-card { gap: 28px; padding: 25px; }
    .site-footer { flex-wrap: wrap; justify-content: space-between; padding: 22px 18px; }
    .site-footer p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
