
:root {
    color-scheme: dark;
    --bg: #080b10;
    --panel: #10151c;
    --text: #f1f4f8;
    --muted: #a4adbc;
    --blue: #78b7ff;
    --line: #29313d;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

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

a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
}

a:hover {
    color: var(--blue);
}

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

.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    background: white;
    color: black;
    padding: 10px;
    z-index: 5;
}

.skip:focus {
    top: 12px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 106px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.monogram {
    font-size: 24px;
    letter-spacing: -2px;
}

.monogram span,
.blue {
    color: var(--blue);
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    font-size: 14px;
    color: var(--muted);
    padding: 10px 0;
}

nav a[aria-current] {
    color: var(--blue);
    box-shadow: 0 2px var(--blue);
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 70px;
    padding: 84px 0 90px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 20px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    margin-right: 9px;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -.045em;
    margin: 0;
}

h1 {
    font-size: clamp(2.9rem, 5.3vw, 4.9rem);
    font-weight: 600;
}

h1 em {
    font-style: normal;
    color: var(--blue);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 550;
}

h3 {
    font-size: 1.5rem;
    font-weight: 550;
}

.hero-name {
    font-size: 20px;
    margin: 25px 0 8px;
}

.lede {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 640px;
    margin: 18px 0 0;
}

.actions {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    justify-content: space-between;
    gap: 28px;
    background: var(--blue);
    color: #071626;
    padding: 13px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
}

.button:hover {
    background: #a6d0ff;
    color: #071626;
}

.text-link {
    color: var(--blue);
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.focus {
    font-size: 13px;
    color: var(--muted);
    margin-top: 23px;
}

.hero-feature {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
    transition: border-color .2s;
}

.hero-feature:hover {
    border-color: var(--blue);
    color: var(--text);
}

.feature-top {
    display: flex;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid var(--line);
}

.feature-top .eyebrow {
    margin: 0;
}

.hero-img {
    padding: 28px 12px;
    background: #e7edf4;
}

.hero-img img {
    width: 100%;
    height: auto;
}

.feature-copy {
    padding: 26px;
}

.feature-copy .eyebrow {
    color: var(--blue);
    margin-bottom: 14px;
}

.feature-copy p:last-child {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 30px;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.work-section {
    padding: 40px 0 55px;
    border-top: 1px solid var(--line);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, border-color .2s;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    color: var(--text);
}

.category-thumb {
    height: 150px;
    background: #dfe5ed;
    overflow: hidden;
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-copy {
    padding: 22px;
}

.category-copy .eyebrow {
    color: var(--blue);
    margin-bottom: 18px;
}

.category-copy h3 {
    font-size: 21px;
    line-height: 1.3;
}

.category-copy h3 span {
    color: var(--blue);
}

.category-copy p:last-child {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 0;
}

.tool-section {
    padding: 50px 0 64px;
    border-top: 1px solid var(--line);
    margin-top: 25px;
}

.logos {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin: 0;
}

.logos li {
    text-align: center;
    min-width: 0;
}

.logo {
    height: 85px;
    padding: 18px;
    background: #f5f7fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dark-logo {
    background: #111;
}

.logos li > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer .brand {
    font-size: 18px;
    gap: 0;
}

.footer p {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0;
}

.footer > div:last-child {
    text-align: right;
}

.page-intro {
    padding: 40px 0 65px;
    max-width: 900px;
}

.back {
    display: inline-block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 44px;
}

.page-intro h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.7rem);
}

.page-intro .eyebrow {
    color: var(--blue);
    margin-bottom: 18px;
}

.project {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 45px;
    padding: 44px 0;
    border-top: 1px solid var(--line);
    align-items: center;
}

.project-image {
    position: relative;
    display: block;
    border-radius: 7px;
    background: #eef1f5;
    overflow: hidden;
    border: 1px solid #343d48;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
}

.project-image.contain img {
    height: 420px;
    padding: 12px;
}

.image-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #080b10e8;
    border: 1px solid #566173;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
}

.project-copy .eyebrow {
    color: var(--blue);
    margin-bottom: 16px;
}

.project-copy h2 {
    font-size: 34px;
}

.project-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.project-copy .note {
    font-size: 13px;
}

.project-copy .process {
    font-size: 14px;
    color: var(--blue) !important;
    border-left: 2px solid var(--blue);
    padding-left: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 0;
    margin: 22px 0;
}

.tags li {
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 4px;
    color: #c2cbd8;
}

.sql-section,
.reels {
    border-top: 1px solid var(--line);
    padding: 48px 0;
}

.sql-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sql-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    align-items: start;
}

.sql-card h3 {
    font-size: 23px;
}

.sql-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
}

.sql-card .sql-skills {
    font-size: 12px !important;
    color: var(--blue) !important;
    margin-top: auto;
    padding-top: 12px;
}

.sql-card .eyebrow {
    color: var(--blue);
}

.reel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 26px;
}

.reel-image {
    display: block;
    position: relative;
    border-radius: 7px;
    overflow: hidden;
}

.reel-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: opacity .2s;
}

.reel-image:hover img {
    opacity: .75;
}

.play {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 6px 12px;
    background: #080b10ed;
    color: white;
    border-radius: 4px;
    font-size: 13px;
}

.play span {
    margin-left: 8px;
}

.reel-card h3 {
    margin-top: 20px;
}

.reel-card p {
    color: var(--muted);
    font-size: 16px;
}

.project[id] {
    scroll-margin-top: 30px;
}

@media (min-width: 1600px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 110px;
    }
}

@media (max-width: 1050px) {
    .header {
        align-items: flex-start;
        padding: 24px 0;
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        gap: 35px;
    }

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

    .logos {
        grid-template-columns: repeat(5, 1fr);
    }

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

    .project {
        gap: 28px;
    }

    .project-copy h2 {
        font-size: 29px;
    }
}

@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 36px);
    }

    nav {
        gap: 7px 18px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 48px 0;
        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 10vw, 4rem);
    }

    .hero-feature {
        max-width: 550px;
    }

    .hero-img {
        padding: 18px 10px;
    }

    .feature-copy h2 br {
        display: none;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p,
    .section-heading > .text-link {
        margin-top: 12px;
    }

    .category-grid {
        gap: 12px;
    }

    .category-copy {
        padding: 16px;
    }

    .category-copy h3 {
        font-size: 19px;
    }

    .category-thumb {
        height: 120px;
    }

    .category-copy p:last-child {
        font-size: 14px;
    }

    .logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .logo {
        height: 75px;
        padding: 14px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 0;
    }

    .project-copy h2 {
        font-size: 30px;
    }

    .page-intro {
        padding-bottom: 40px;
    }

    .back {
        margin-bottom: 30px;
    }

    .project-image.contain img {
        height: auto;
        max-height: 480px;
    }

    .sql-grid,
    .reel-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        display: block;
    }

    .footer > div:last-child {
        text-align: left;
        margin-top: 20px;
    }

    .tool-section {
        padding-top: 32px;
    }

    .lede {
        font-size: 17px;
    }
}

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

    * {
        transition: none !important;
    }
}

/* SIMPLE HOMEPAGE — isolated from the portfolio detail pages. */
.home-simple {
    --blue: #ffffff;
    background: #000000;
    color: #f5f5f5;
    min-height: 100svh;
    display: grid;
    align-items: center;
}

.home-shell {
    width: min(850px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0;
}

.home-intro {
    border-bottom: 1px solid #242424;
    padding-bottom: 22px;
}

.home-intro h1 {
    font-size: clamp(2.25rem, 5vw, 3.4rem);
    font-weight: 650;
    letter-spacing: -0.05em;
}

.home-intro p {
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0;
}

.home-intro > a {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.home-grid .home-box {
    position: relative;
    display: block;
    padding: 20px 36px 20px 20px;
    border: 1px solid #282828;
    border-radius: 10px;
    background: #0b0b0b;
    color: #f5f5f5;
    transition: background 150ms, border-color 150ms;
}

.home-grid .home-box:hover {
    background: #141414;
    border-color: #666666;
}

.home-label {
    display: block;
    color: #a0a0a0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-box h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.home-box p {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.5;
    margin: 9px 0 0;
}

.home-arrow {
    position: absolute;
    right: 17px;
    top: 17px;
    font-size: 18px;
}

.home-footer {
    padding-top: 15px;
    border-top: 1px solid #242424;
    color: #888888;
    font-size: 12px;
}

@media (max-width: 540px) {
    .home-shell { width: calc(100% - 32px); padding: 20px 0; }
    .desktop-break { display: none; }
    .home-grid { gap: 10px; margin: 16px 0; }
    .home-grid .home-box { padding: 16px 14px; }
    .home-label { font-size: 11px; margin-bottom: 9px; padding-right: 12px; }
    .home-arrow { right: 10px; top: 10px; font-size: 15px; }
    .home-box p { font-size: 13px; }
}

/* Short displays remain compact; zoom and very small screens may scroll
   naturally so text and links are never clipped. */
@media (max-height: 700px) and (min-width: 541px) {
    .home-shell { padding: 18px 0; }
    .home-intro { padding-bottom: 14px; }
    .home-intro h1 { font-size: 2.5rem; }
    .home-grid { margin: 14px 0; }
    .home-grid .home-box { padding-top: 14px; padding-bottom: 14px; }
}

/* ABOUT PAGE AND HOMEPAGE HIGHLIGHTS */
.home-simple {
    --blue: #78b7ff;
}
.home-intro .home-about {
    margin-right: 20px;
}
.about-intro {
    padding-bottom: 36px;
}
.about-profile {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding-bottom: 48px;
}
.about-photo {
    width: 240px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
}
.about-profile .lede {
    margin-top: 0;
}
.about-email {
    margin-top: 20px;
}
.about-background {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    border-top: 1px solid var(--line);
    padding: 36px 0 48px;
}
.about-background h2 {
    font-size: 28px;
}
.experience-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}
.experience-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.experience-list strong {
    display: block;
    font-weight: 500;
}
.experience-list span {
    display: block;
    color: var(--muted);
    font-size: 15px;
}
@media (max-width: 700px) {
    .about-profile, .about-background {
    grid-template-columns: 1fr;
    gap: 28px;
}
    .about-photo {
    width: 200px;
}
}

/* HOMEPAGE: FOUR PROJECT CARDS AND A VERTICAL ABOUT CARD */
.home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(140px, 0.55fr);
    grid-template-areas:
        "ai data about"
        "post broadcast about";
}

.home-box[href="ai-automation.html"] {
    grid-area: ai;
}

.home-box[href="data-analytics.html"] {
    grid-area: data;
}

.home-box[href="post-production.html"] {
    grid-area: post;
}

.home-box[href="broadcast-engineering.html"] {
    grid-area: broadcast;
}

.home-grid .home-about-card {
    grid-area: about;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

/* Retain comfortable text widths on smaller screens. */
@media (max-width: 640px) {
    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "ai data"
            "post broadcast"
            "about about";
    }

    .home-grid .home-about-card {
        padding: 14px 36px 14px 16px;
    }

    .home-about-card .home-label {
        display: none;
    }

    .home-about-card p {
        margin-top: 4px;
    }
}
