:root {
    --ink: #07111b;
    --ink-soft: #31404d;
    --paper: #f4f7f9;
    --white: #ffffff;
    --line: #cbd5dc;
    --blue: #0a55d8;
    --green: #087f6a;
    --coral: #e35d4f;
    --navy: #0b2436;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--white);
    color: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

.hero {
    position: relative;
    min-height: 86svh;
    max-height: 940px;
    overflow: hidden;
    background-image: url("assets/tosin-headshot.jpg");
    background-position: center 36%;
    background-size: cover;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(7, 17, 27, 0.44);
    content: "";
}

.site-nav,
.hero-content,
.hero-footer,
.section-shell {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.site-nav {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--white);
}

.wordmark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    font-weight: 500;
}

.hero .wordmark {
    border-color: var(--white);
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    padding-block: 12px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: var(--blue);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.menu-button svg,
.button svg,
.icon-link svg,
.contact-actions svg,
.essay-feature svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.hero-content {
    display: flex;
    min-height: 610px;
    max-width: var(--max-width);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 56px 100px;
}

.eyebrow,
.section-label,
.project-type,
.timeline-meta,
.essay-kicker {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 22px;
    color: #8de8d6;
}

.hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: 112px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.9;
    color: var(--white);
}

.hero-copy {
    max-width: 650px;
    margin: 30px 0 0;
    color: var(--white);
    font-size: 20px;
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-weight: 600;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button-primary {
    border-color: var(--white);
    background: var(--white);
    color: var(--ink);
}

.button-secondary {
    border-color: var(--white);
    background: rgba(7, 17, 27, 0.2);
    color: var(--white);
}

.button-light {
    border-color: var(--white);
    color: var(--white);
}

.button-light:hover {
    background: var(--white);
    color: var(--navy);
}

.hero-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--white);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.hero-footer span {
    padding: 18px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-footer span:first-child {
    padding-left: 0;
}

.hero-footer span:last-child {
    border-right: 0;
}

.intro-band,
.work-section,
.experience-section,
.writing-section,
.contact-section {
    padding-block: 110px;
}

.section-label {
    color: var(--blue);
}

.intro-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1.15fr) minmax(280px, 0.75fr);
    gap: 46px;
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.experience-intro h2,
.writing-grid h2,
.contact-grid h2 {
    margin: 0;
    font-size: 64px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.02;
}

.lede {
    max-width: 700px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: 19px;
}

.capabilities {
    margin: 0;
    border-top: 1px solid var(--line);
}

.capabilities div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.capabilities dt {
    margin-bottom: 5px;
    font-weight: 700;
}

.capabilities dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.systems-visual {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 72px auto 0;
}

.systems-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    object-position: center 62%;
}

.systems-visual figcaption {
    display: grid;
    grid-template-columns: 180px minmax(0, 650px);
    gap: 36px;
    padding: 20px 0 0;
    border-top: 1px solid var(--ink);
}

.systems-visual figcaption span {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.systems-visual figcaption p {
    margin: 0;
    color: var(--ink-soft);
}

.work-section {
    background: var(--white);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 54px;
}

.section-heading .section-label {
    margin-bottom: 18px;
}

.section-heading > p {
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: 17px;
}

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

.project-card {
    position: relative;
    display: grid;
    min-height: 390px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.project-featured {
    grid-column: 1 / -1;
    min-height: 430px;
    background: var(--navy);
    color: var(--white);
}

.project-index {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.project-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-type {
    margin-bottom: auto;
    color: var(--green);
}

.project-featured .project-type {
    color: #65d9c1;
}

.project-card h3 {
    margin: 70px 0 10px;
    font-size: 58px;
    font-weight: 600;
    line-height: 1;
}

.project-card p:not(.project-type) {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.project-featured p:not(.project-type) {
    color: #d6e0e6;
}

.project-facts {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 30px;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    list-style: none;
    color: #d6e0e6;
    font-size: 14px;
}

.project-facts li::before {
    color: #65d9c1;
    content: "+ ";
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tech-list span {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
}

.project-featured .tech-list span {
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-link {
    position: absolute;
    top: 26px;
    right: 26px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
}

.icon-link:hover {
    background: var(--white);
    color: var(--navy);
}

.experience-section {
    background: #dfe9ee;
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 100px;
}

.experience-intro .section-label {
    margin-bottom: 18px;
}

.experience-intro > p:last-child {
    max-width: 520px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.timeline {
    border-top: 1px solid #9babb5;
}

.timeline article {
    position: relative;
    padding: 28px 0 34px 34px;
    border-bottom: 1px solid #9babb5;
}

.timeline-marker {
    position: absolute;
    top: 36px;
    left: 0;
    width: 11px;
    height: 11px;
    background: var(--coral);
}

.timeline-meta {
    color: var(--blue);
}

.timeline h3 {
    margin: 8px 0 8px;
    font-size: 27px;
    font-weight: 600;
}

.timeline article > p:last-child {
    margin: 0;
    color: var(--ink-soft);
}

.services-section {
    padding-block: 110px;
    background: var(--navy);
    color: var(--white);
}

.services-heading {
    align-items: end;
}

.services-heading .section-label {
    color: #65d9c1;
}

.service-list {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.service-list article {
    display: grid;
    grid-template-columns: 60px minmax(200px, 0.7fr) minmax(280px, 1fr) 160px;
    gap: 24px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.service-list article > span,
.service-list strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.service-list h3 {
    margin: 0;
    font-size: 23px;
}

.service-list p {
    margin: 0;
    color: #ced9df;
}

.service-list strong {
    color: #65d9c1;
    text-align: right;
}

.writing-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 100px;
}

.writing-grid .section-label,
.contact-grid .section-label {
    margin-bottom: 18px;
}

.essay-feature {
    padding-top: 20px;
    border-top: 5px solid var(--coral);
}

.essay-kicker {
    color: var(--blue);
}

.essay-feature h3 {
    margin: 20px 0;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
}

.essay-feature > p:not(.essay-kicker) {
    color: var(--ink-soft);
    font-size: 18px;
}

.essay-feature a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    border-bottom: 2px solid var(--ink);
    font-weight: 700;
}

.contact-section {
    background: var(--coral);
}

.contact-grid .section-label {
    color: var(--ink);
}

.contact-actions {
    border-top: 1px solid rgba(7, 17, 27, 0.45);
}

.contact-actions a {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(7, 17, 27, 0.45);
    font-size: 18px;
    font-weight: 600;
}

.contact-actions a:hover span {
    text-decoration: underline;
}

.site-footer {
    background: var(--ink);
    color: var(--white);
}

.footer-inner {
    display: grid;
    min-height: 150px;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
    font-size: 13px;
}

.wordmark-footer {
    border-color: var(--white);
    color: var(--white);
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 82px;
    }

    .intro-grid h2,
    .section-heading h2,
    .experience-intro h2,
    .writing-grid h2,
    .contact-grid h2 {
        font-size: 48px;
    }

    .project-card h3,
    .essay-feature h3 {
        font-size: 40px;
    }

    .intro-grid,
    .experience-grid,
    .writing-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .intro-grid > .section-label {
        margin-bottom: -20px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-list article {
        grid-template-columns: 44px minmax(180px, 0.7fr) minmax(240px, 1fr);
    }

    .service-list strong {
        grid-column: 2 / -1;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .site-nav,
    .hero-content,
    .hero-footer,
    .section-shell {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .hero {
        min-height: 88svh;
        background-position: 57% center;
    }

    .hero::before {
        background: rgba(7, 17, 27, 0.56);
    }

    .site-nav {
        min-height: 68px;
    }

    .menu-button {
        display: flex;
    }

    .nav-links {
        position: absolute;
        z-index: 10;
        top: 68px;
        right: 14px;
        left: 14px;
        display: none;
        align-items: stretch;
        padding: 12px 18px;
        border: 1px solid var(--ink);
        background: var(--paper);
        color: var(--ink);
        flex-direction: column;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .hero-content {
        min-height: 580px;
        padding-block: 38px 116px;
    }

    .hero h1 {
        font-size: 58px;
        line-height: 0.94;
    }

    .hero-copy {
        margin-top: 24px;
        font-size: 17px;
    }

    .intro-grid h2,
    .section-heading h2,
    .experience-intro h2,
    .writing-grid h2,
    .contact-grid h2 {
        font-size: 40px;
    }

    .project-card h3,
    .essay-feature h3 {
        font-size: 36px;
    }

    .hero-actions {
        margin-top: 26px;
    }

    .hero-footer {
        grid-template-columns: 1fr;
    }

    .hero-footer span {
        display: none;
        border-right: 0;
    }

    .hero-footer span:first-child {
        display: block;
        padding: 14px 0;
    }

    .intro-band,
    .work-section,
    .experience-section,
    .services-section,
    .writing-section,
    .contact-section {
        padding-block: 76px;
    }

    .systems-visual {
        width: min(calc(100% - 28px), var(--max-width));
        margin-top: 50px;
    }

    .systems-visual img {
        aspect-ratio: 4 / 3;
    }

    .systems-visual figcaption {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-featured {
        grid-column: auto;
    }

    .project-card {
        min-height: 360px;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        padding: 22px 18px;
    }

    .project-card h3 {
        margin-top: 54px;
    }

    .project-facts {
        grid-template-columns: 1fr;
    }

    .service-list article {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 14px;
    }

    .service-list article p,
    .service-list strong {
        grid-column: 2;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-block: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
