:root {
    --bg: #090a0b;
    --panel: #111214;
    --panel2: #151619;
    --text: #f3f3f3;
    --muted: #a7a8ad;
    --line: #292b30;
    --red: #ef2736;
    --red2: #b90f1e;
    --max: 1240px;
    --header-max: 1600px;
    --page-gutter: clamp(36px,5.4vw,112px);
    --radius: 16px;
    --shadow: 0 28px 70px rgba(0,0,0,.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.light {
    --bg: #f4f3f1;
    --panel: #fff;
    --panel2: #f9f8f6;
    --text: #111214;
    --muted: #5e6168;
    --line: #d9d9dc;
    --shadow: 0 20px 55px rgba(10,10,10,.10);
}

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

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

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

/* ============================================================
   Navigation
   ============================================================ */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(9,10,11,.08);
    border-bottom: 1px solid transparent;
    transition: background .25s ease,border-color .25s ease,backdrop-filter .25s ease;
}

.nav.is-scrolled {
    background: rgba(9,10,11,.82);
    border-bottom-color: rgba(255,255,255,.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.light .nav.is-scrolled {
    background: rgba(244,243,241,.82);
    border-bottom-color: rgba(0,0,0,.08);
}

/* Match the dark theme's transparency before and after scrolling. */
body.light .nav {
    background: rgba(244,243,241,.08);
}

body.light .nav:not(.is-scrolled) .nav-links,
body.light .nav:not(.is-scrolled) .theme-sun {
    color: var(--text);
    text-shadow: 0 0 3px rgba(244,243,241,.95),0 0 8px rgba(244,243,241,.8);
}

body.light .brand,
body.light .nav-links a:hover,
body.light .nav-links a.active,
body.light .theme-btn,
body.light .eyebrow,
body.light .iconbox {
    color: var(--text);
}

body.light .nav-links,
body.light .quote,
body.light .meta,
body.light .job .date {
    color: var(--muted);
}

body.light .menu-btn {
    background: var(--panel);
    border-color: var(--line);
}

body.light .menu-btn span {
    background: var(--text);
}

.nav-inner {
    width: min(var(--header-max),calc(100% - (var(--page-gutter) * 2)));
    height: 96px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(210px,1fr) auto minmax(210px,1fr);
    align-items: center;
    gap: 42px;
}

.brand {
    justify-self: start;
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #f4f4f4;
    font-size: 18px;
    line-height: 1;
    letter-spacing: .38em;
    font-weight: 750;
}

.brand:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 38px;
    height: 3px;
    background: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    font-size: 15px;
    color: #f3f3f3;
    font-weight: 600;
    white-space: nowrap;
}

.nav:not(.is-scrolled) .nav-links a {
    text-shadow: 0 1px 3px rgba(0,0,0,.9),0 0 12px rgba(0,0,0,.65);
}

body.light .nav:not(.is-scrolled) .nav-links a {
    color: var(--text);
    text-shadow: 0 1px 3px rgba(255,255,255,.95),0 0 10px rgba(255,255,255,.85);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px;
    border-radius: 2px;
}

.nav-links a {
    position: relative;
    padding: 34px 0 30px;
    transition: color .2s ease;
}

.nav-links a:hover,.nav-links a.active {
    color: #fff;
}

.nav-links a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 2px;
    background: var(--red);
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.theme-sun {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 1;
}

.theme-switch {
    position: relative;
    display: block;
    width: 43px;
    height: 22px;
    border: 1px solid #777b82;
    border-radius: 999px;
    background: #08090a;
}

.theme-switch i {
    position: absolute;
    top: 4px;
    left: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px rgba(239,39,54,.45);
    transition: .2s;
}

.light .theme-switch i {
    left: 24px;
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    padding: 0;
    place-items: center;
    cursor: pointer;
}

.menu-btn span {
    position: absolute;
    width: 16px;
    height: 1px;
    background: #fff;
}

.menu-btn span:first-child {
    transform: translateY(-3px);
}

.menu-btn span:last-child {
    transform: translateY(3px);
}

/* ============================================================
   Home Hero
   ============================================================ */

.hero {
    min-height: 680px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: 48%;
    padding: 118px 64px 82px var(--page-gutter);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #dedee1;
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: 11px;
    font-weight: 650;
}

.eyebrow:before {
    content: "";
    width: 31px;
    height: 2px;
    background: var(--red);
}

.hero h1,.page-hero h1 {
    font-size: clamp(48px,6vw,82px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 23px 0 24px;
    max-width: 720px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/hero-art.png') center/cover no-repeat;
}

.hero-art:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
        var(--bg) 0%,
        color-mix(in srgb,var(--bg) 98%,transparent) 18%,
        color-mix(in srgb,var(--bg) 88%,transparent) 32%,
        color-mix(in srgb,var(--bg) 58%,transparent) 45%,
        color-mix(in srgb,var(--bg) 18%,transparent) 60%,
        transparent 76%);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 650;
    font-size: 14px;
    background: var(--panel);
    transition: .2s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: #555;
}

.btn.red {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.btn.red:hover {
    background: #ff3241;
}

.quote {
    font-style: italic;
    color: #8d8f95;
    margin-top: 50px;
    font-size: 14px;
}

/* ============================================================
   Capabilities
   ============================================================ */

.capabilities {
    background: color-mix(in srgb,var(--bg) 96%,var(--text));
}

.cap-grid {
    width: min(var(--header-max),calc(100% - (var(--page-gutter) * 2)));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 24px;
    padding: 30px 0;
}

.cap {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.cap-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--muted);
}

.cap-copy {
    min-width: 0;
}

.cap strong {
    display: block;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
}

.cap span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.iconbox {
    width: 38px;
    height: 38px;
    border: 1px solid #3a3d43;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #eee;
    font-size: 17px;
}

/* ============================================================
   Shared Sections / Cards
   ============================================================ */

.section {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}

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

.section h2 {
    font-size: 42px;
    letter-spacing: -.04em;
    margin: 8px 0 0;
}

.section-lead {
    color: var(--muted);
    max-width: 650px;
}

.link-red {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 16px;
}

.projects-grid {
    grid-template-columns: repeat(4,1fr);
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .22s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #43464d;
}

.card-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    filter: saturate(.88);
}

.card-body {
    padding: 19px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

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

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.tag {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #1d2024;
    color: #c6c9cf;
    border: 1px solid #2e3238;
}

body.light .tag {
    background: #f0f1f2;
    color: #45474d;
}

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

.meta {
    font-size: 12px;
    color: #85878d;
    margin-bottom: 7px;
}

.footer {
    padding: 45px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted);
    font-size: 13px;
}

/* ============================================================
   Inner Pages
   ============================================================ */

.page-hero {
    padding: 166px 0 56px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 90% 10%,rgba(239,39,54,.09),transparent 30%);
}

.page-hero h1 {
    font-size: clamp(48px,5vw,70px);
    margin-bottom: 18px;
}

.page-hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 720px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: start;
}

.portrait-art {
    border-radius: 18px;
    min-height: 520px;
    background: url('../images/contact-art.png') center/cover;
    position: sticky;
    top: 105px;
    overflow: hidden;
}

.portrait-art:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent,rgba(0,0,0,.36));
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 35px 0;
    border-block: 1px solid var(--line);
}

.stat {
    padding: 20px 12px;
}

.stat:not(:last-child) {
    border-right: 1px solid var(--line);
}

.stat b {
    font-size: 28px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.values {
    grid-template-columns: repeat(2,1fr);
}

.value {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.value h3 {
    margin: 8px 0;
}

.filterbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.filter.active,.filter:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

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

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

.resume-layout {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 48px;
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #393c42;
}

.job {
    position: relative;
    padding: 0 0 34px;
}

.job:before {
    content: "";
    position: absolute;
    left: -27px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px var(--bg);
}

.job .date {
    font-size: 12px;
    color: #84868c;
}

.job h3 {
    margin: 4px 0;
}

.job p,.job li {
    color: var(--muted);
    font-size: 14px;
}

.skill-group {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    margin-bottom: 14px;
}

.skill-group h3 {
    margin-top: 0;
}

.article-wrap {
    display: grid;
    grid-template-columns: minmax(0,760px) 240px;
    gap: 56px;
    align-items: start;
}

.article {
    font-size: 17px;
}

.article .hero-image {
    border-radius: 16px;
    margin: 24px 0 36px;
    aspect-ratio: 16/8;
    object-fit: cover;
}

.article h2 {
    font-size: 32px;
    margin: 44px 0 12px;
    letter-spacing: -.03em;
}

.article h3 {
    font-size: 23px;
    margin-top: 30px;
}

.article p,.article li {
    color: #c6c7ca;
}

body.light .article p,body.light .article li {
    color: #3f4248;
}

.article blockquote {
    margin: 32px 0;
    padding: 20px 22px;
    border-left: 3px solid var(--red);
    background: var(--panel);
    color: var(--text);
    font-style: italic;
}

.article pre {
    overflow: auto;
    background: #0f1114;
    border: 1px solid #2b2e34;
    border-radius: 12px;
    padding: 20px;
    font-size: 13px;
    color: #d6d9de;
}

.toc {
    position: sticky;
    top: 100px;
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

.toc b {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.toc a {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
}

.contact-cards {
    grid-template-columns: repeat(2,1fr);
}

.contact-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.contact-card small {
    display: block;
    color: var(--muted);
}

.form {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.field label {
    font-size: 12px;
    color: var(--muted);
}

.field input,.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    padding: 13px 14px;
    font: inherit;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-art {
    min-height: 350px;
    border-radius: 16px;
    background: url('../images/contact-art.png') center/cover;
    border: 1px solid var(--line);
    margin-top: 16px;
}

.empty-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
}

.mobile-menu {
    display: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media(max-width:900px) {
    .nav-inner {
        width: calc(100% - 36px);
        height: 76px;
        grid-template-columns: 1fr auto;
    }
    .nav-links {
        display: none;
    }
    .theme-sun {
        display: none;
    }
    .menu-btn {
        display: grid;
        position: relative;
    }
    .mobile-menu.open {
        display: grid;
        position: fixed;
        inset: 76px 0 auto 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 16px 20px;
        z-index: 25;
    }
    .mobile-menu a {
        padding: 12px 0;
        color: var(--muted);
    }
    .hero {
        min-height: 0;
    }
    .hero-copy {
        width: 100%;
        padding: 100px 24px 55px;
    }
    .hero-art:after {
        background: linear-gradient(90deg,
            color-mix(in srgb,var(--bg) 96%,transparent),
            color-mix(in srgb,var(--bg) 82%,transparent) 60%,
            color-mix(in srgb,var(--bg) 55%,transparent));
    }
    .cap-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .projects-grid,.blog-grid,.blog-list,.project-list {
        grid-template-columns: repeat(2,1fr);
    }
    .about-layout,.resume-layout,.contact-grid,.article-wrap {
        grid-template-columns: 1fr;
    }
    .portrait-art,.toc {
        position: relative;
        top: auto;
    }
    .portrait-art {
        min-height: 380px;
    }
    .toc {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 20px 0;
    }
    .contact-art {
        min-height: 280px;
    }
}

@media(max-width:620px) {
    .container {
        width: min(100% - 28px,var(--max));
    }
    .nav-inner {
        width: calc(100% - 28px);
    }
    .brand {
        font-size: 14px;
        letter-spacing: .32em;
    }
    .brand:after {
        bottom: -11px;
        width: 25px;
    }
    .theme-switch {
        width: 38px;
    }
    .light .theme-switch i {
        left: 19px;
    }
    .hero h1,.page-hero h1 {
        font-size: 48px;
    }
    .cap-grid,.projects-grid,.blog-grid,.blog-list,.project-list,.values,.contact-cards,.fields,.stats {
        grid-template-columns: 1fr;
    }
    .cap-grid {
        width: calc(100% - 48px);
        gap: 26px;
    }
    .stat:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .section {
        padding: 64px 0;
    }
    .section h2 {
        font-size: 34px;
    }
    .section-head {
        align-items: start;
        flex-direction: column;
    }
    .footer-inner {
        flex-direction: column;
    }
    .page-hero {
        padding: 65px 0 42px;
    }
    .contact-grid {
        gap: 20px;
    }
}

/* Home project and editorial layouts. */
.home-projects,
.home-blog {
    padding: 40px 0 28px;
    border-bottom: 0;
}
.home-projects {
    background: var(--panel);
}
.home-projects > .container,
.home-blog > .container {
    width: min(var(--header-max),calc(100% - (var(--page-gutter) * 2)));
}
.home-projects h2,
.home-blog h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.025em;
}
.home-projects .section-lead,
.home-blog .section-lead {
    margin: 4px 0 0;
    font-size: 14px;
}
.home-projects .section-head {
    margin-bottom: 24px;
    align-items: center;
}
.home-projects .link-red,
.home-blog .link-red {
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 6px;
}
.home-projects .card,
.home-blog .card {
    border-radius: 2px;
    box-shadow: none;
}
.home-projects .card {
    position: relative;
    display: flex;
    min-height: 270px;
    background: #090a0b;
    color: #f3f3f3;
}
.home-projects .card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}
.home-projects .card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.45) 48%,rgba(0,0,0,.05) 100%),
        linear-gradient(180deg,transparent 20%,rgba(8,9,10,.55) 58%,#08090a 100%);
    pointer-events: none;
}
.home-projects .card-body {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 62px 20px 16px;
}
.project-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #666;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    margin-bottom: 12px;
}
.project-icon svg {
    width: 28px;
    height: 30px;
}
.home-projects .card h3,
.home-blog .card h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}
.home-projects .card p {
    color: #b6b7bb;
    font-size: 12px;
}
.project-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}
.home-projects .tags {
    margin: 0;
    gap: 6px;
}
.home-projects .tag {
    border: 0;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 10px;
    background: #17191b;
    color: #c6c9cf;
}
.project-arrow {
    color: #ff776e;
    font-size: 22px;
    padding: 0 2px;
}
.home-blog > .container {
    display: grid;
    grid-template-columns: .43fr 1fr;
    gap: 36px;
}
.home-blog .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    margin: 8px 0 0;
}
.home-blog .card {
    background: var(--bg);
}
.home-blog .card-img {
    aspect-ratio: 2.7;
}
.home-blog .card-body {
    padding: 14px 16px 18px;
}
.home-blog .card p {
    font-size: 13px;
}
@media(max-width:1100px) {
    .home-projects .projects-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .home-blog > .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .home-blog .blog-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}
@media(max-width:620px) {
    .home-projects > .container,
    .home-blog > .container {
        width: calc(100% - 48px);
    }
    .home-projects .section-head {
        align-items: flex-start;
    }
    .home-projects .projects-grid,
    .home-blog .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* About page: illustrated introduction, milestones and values. */
.about-container {
    width: min(var(--header-max),calc(100% - (var(--page-gutter) * 2)));
    margin-inline: auto;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    padding: 24px 0;
}
.about-stats > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 28px;
    border-left: 1px solid var(--line);
}
.about-stats > div:first-child {
    border-left: 0;
    padding-left: 0;
}
.about-stats strong {
    font-size: 20px;
    font-weight: 600;
}
.about-stats .about-number {
    font-size: 32px;
    line-height: 1.25;
}
.about-stats span {
    font-size: 14px;
    color: var(--muted);
}
.about-journey,
.about-values {
    padding: 36px 0;
}
.about-page h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.025em;
    margin: 0 0 28px;
}
.about-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}
.about-timeline li {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
}
.about-date {
    font-size: 14px;
    padding-top: 3px;
    color: var(--muted);
}
.about-timeline li > div {
    position: relative;
    border-left: 1px solid var(--line);
    padding: 0 0 30px 32px;
}
.about-timeline li > div::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px var(--bg);
}
.about-timeline li:last-child > div {
    padding-bottom: 0;
}
.about-page h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}
.about-timeline p,
.about-value p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}
.about-value {
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}
.about-value svg {
    width: 28px;
    height: 28px;
    color: var(--red);
    margin-bottom: 12px;
}
.about-value h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
@media(max-width:900px) {
    .about-stats > div {
        padding-inline: 18px;
    }
    .about-stats strong {
        font-size: 17px;
    }
    .about-timeline li {
        grid-template-columns: 110px 1fr;
        gap: 24px;
    }
    .about-values-grid {
        gap: 12px;
    }
}
@media(max-width:620px) {
    .about-container {
        width: calc(100% - 48px);
    }
    .about-stats,
    .about-values-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        row-gap: 24px;
    }
    .about-stats > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
    .about-timeline li {
        grid-template-columns: 86px 1fr;
        gap: 12px;
    }
    .about-date {
        font-size: 12px;
    }
    .about-timeline li > div {
        padding-left: 20px;
    }
    .about-page h2 {
        font-size: 26px;
    }
    .about-page h3 {
        font-size: 16px;
    }
    .about-value {
        padding: 20px 12px;
    }
}

/* Shared hero geometry across Home, About and Blog. */
.hero-copy {
    min-width: 0;
}
.hero h1 {
    min-height: 2lh;
}
.hero-about .hero-art {
    background-image: url('../images/hero-about.png');
}
.hero-blog .hero-art {
    background-image: url('/uploads/34B98846-A9B1-4F46-B01E-2653DC867C97.png');
}
.blog-page > .section > .container {
    width: min(var(--header-max),calc(100% - (var(--page-gutter) * 2)));
}
.blog-page .card {
    border-radius: 2px;
    box-shadow: none;
}
@media(min-width:901px) and (max-width:1450px) {
    .hero h1 {
        min-height: 3lh;
    }
}
@media(max-width:620px) {
    .blog-page > .section > .container {
        width: calc(100% - 48px);
    }
}

/* Remaining pages share the same hero and content gutters. */
.hero-article .hero-art {
    background-image: url('/uploads/CBB1F4CB-DC38-4DF9-9B33-EBC8ED33B9FD.png');
}
.hero-contacts .hero-art {
    background-image: url('../images/contact-art.png');
}
.hero-projects .hero-art {
    background-image: url('../images/project-orvion.png');
}
.hero-resume .hero-art {
    background-image: url('../images/hero-about.png');
}
.inner-page > .section {
    padding: 40px 0;
}
.inner-page > .section > .container {
    width: min(var(--header-max),calc(100% - (var(--page-gutter) * 2)));
}
.inner-page .section h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.025em;
}
.inner-page .card {
    border-radius: 2px;
    box-shadow: none;
}
.inner-page .contact-card,
.inner-page .form,
.inner-page .skill-group {
    border-radius: 6px;
    box-shadow: none;
}
.inner-page .article-wrap {
    grid-template-columns: minmax(0,760px) minmax(180px,240px);
    justify-content: space-between;
}
.article-hero-meta {
    margin-top: 14px;
    color: var(--muted);
}
.hero-article .tags {
    margin-top: 8px;
}
@media(max-width:900px) {
    .inner-page .article-wrap {
        grid-template-columns: minmax(0,1fr);
    }
}
@media(max-width:620px) {
    .inner-page > .section > .container {
        width: calc(100% - 48px);
    }
}

/* Ink & vermilion — visual language drawn from the Felarmir mark. */
:root {
    --bg: #10100f;
    --panel: #151513;
    --panel2: #1a1a17;
    --text: #f1eee6;
    --muted: #aaa79e;
    --line: #2b2b26;
    --red: #ed352b;
    --radius: 2px;
}
body.light {
    --bg: #f4f0e7;
    --panel: #ebe6db;
    --panel2: #fffaf0;
    --text: #1c1c19;
    --muted: #66635b;
    --line: #d2cbbd;
    --red: #bd281f;
}
/* Fine, low-contrast paper grain; fixed tile size avoids cloudy patches. */
body { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888888' opacity='.018' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    background-repeat: repeat;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 200; background: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 10px; }
.nav-inner { height: 88px; }
.brand { letter-spacing: .25em; }
.brand:after { width: 44px; height: 5px; clip-path: polygon(0 25%,100% 0,94% 75%,4% 100%); }
.nav-links { gap: clamp(18px,2.5vw,38px); font-size: 13px; }
.nav-links a:after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a:hover:after,.nav-links a.active:after { transform: scaleX(1); }
.hero-copy { padding-top: 160px; padding-bottom: 90px; }
.hero h1 { font-weight: 500; font-family: Georgia,'Times New Roman',serif; letter-spacing: -.055em; line-height: 1.04; min-height: 0; }
.hero h1 em { font-weight: 400; color: var(--red); }
.hero p { font-size: 16px; line-height: 1.8; }
.hero-home { min-height: 790px; }
.hero-home .hero-copy { width: 53%; }
/* Full-bleed illustration, with the same theme-colored veil as inner pages. */
.hero-home .hero-art {
    inset: 0;
    background: url('/uploads/E4B77106-ACE1-4345-BB28-CD424EFFE4CD.png') center / cover no-repeat;
    animation: hero-art-appear .8s ease both;
}
 .hero-home .hero-art::after {
    background:
        linear-gradient(90deg,var(--bg) 0%,color-mix(in srgb,var(--bg) 98%,transparent) 30%,color-mix(in srgb,var(--bg) 88%,transparent) 44%,color-mix(in srgb,var(--bg) 32%,transparent) 65%,transparent 88%),
        linear-gradient(180deg,color-mix(in srgb,var(--bg) 85%,transparent),transparent 24%,transparent 80%,color-mix(in srgb,var(--bg) 45%,transparent));
}
@keyframes hero-art-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero-home:after { content: 'CODE / CRAFT / CURIOSITY'; position: absolute; right: 24px; top: 150px; writing-mode: vertical-rl; letter-spacing: .28em; font-size: 9px; color: var(--muted); }
.eyebrow { font-size: 10px; color: var(--muted); letter-spacing: .24em; }
.eyebrow:before { width: 26px; height: 5px; clip-path: polygon(0 35%,100% 0,92% 75%,3% 100%); }
.btn { border-radius: 1px; padding: 15px 23px; font-size: 12px; letter-spacing: .04em; }
.btn.red { background: #c92d24; border-color: #c92d24; }
.quote { border-left: 2px solid var(--red); padding-left: 18px; font-family: Georgia,serif; font-size: 16px; max-width: 370px; }
.chapter-line { padding: 20px var(--page-gutter); display: flex; justify-content: space-between; gap: 20px; font-size: 9px; letter-spacing: .18em; color: var(--muted); border-bottom: 1px solid var(--line); }
.capabilities { background: transparent; border-bottom: 1px solid var(--line); }
.cap-grid { padding-block: 38px; }
.cap-icon { color: var(--red); stroke-width: 1.2; }
.home-projects,.home-blog { padding-block: 85px; }
.home-projects { background: var(--panel); position: relative; }
.home-projects:before { content: ''; position: absolute; top: -3px; left: 0; width: 100%; height: 6px; background: var(--red); clip-path: polygon(0 40%,35% 65%,65% 10%,100% 70%,100% 100%,50% 70%,0 100%); }
.section h2,.home-projects h2,.home-blog h2,.about-page h2,.inner-page .section h2 { font-family: Georgia,'Times New Roman',serif; font-weight: 400; font-size: clamp(32px,3.2vw,48px); }
.home-projects .section-head { margin-bottom: 36px; }
.home-projects .projects-grid { gap: 20px; }
.home-projects .card { min-height: 350px; border: 0; border-bottom: 2px solid var(--red); }
.home-projects .card-body { padding: 85px 24px 24px; }
.home-projects .card h3 { font-size: 21px; font-family: Georgia,serif; }
.home-projects .card p { font-size: 13px; line-height: 1.7; }
.project-icon { border-radius: 0; border-color: #9c9585; background: #141412aa; }
.card-img { transition: transform .7s cubic-bezier(.2,.7,.2,1),filter .7s; filter: saturate(.45); }
.card:hover .card-img { transform: scale(1.045); filter: saturate(.9); }
.home-blog .card { border: 0; border-top: 1px solid var(--line); background: transparent; }
.home-blog .card-img { aspect-ratio: 1.7; }
.home-blog .card-body { padding: 20px 0; }
.home-blog .card h3 { font-family: Georgia,serif; font-size: 22px; }
.meta { letter-spacing: .06em; }
.tag,.filter,.value,.about-value,.contact-card,.skill-group,.form,.field input,.field textarea { border-radius: 1px; }
.filter { padding: 10px 18px; transition: background .25s,color .25s; }
.about-value { border-top: 2px solid var(--red); }
.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-inner { font-size: 11px; letter-spacing: .08em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay,0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@property --logo-reveal {
    syntax: '<number>';
    inherits: false;
    initial-value: 1;
}
@keyframes ink-reveal {
    from { --logo-reveal: 0; }
    to { --logo-reveal: 1; }
}
@media(min-width:901px) and (max-width:1100px) { .nav-inner { grid-template-columns: auto 1fr auto; gap: 22px; } .brand { font-size: 15px; } }
@media(max-width:900px) {
    .nav-inner { height: 76px; }
    .hero-home { min-height: 0; }
    .hero-copy,.hero-home .hero-copy { width: 100%; padding: 125px 24px 55px; }
    .hero-home .hero-copy { padding-bottom: 390px; }
    .hero-home .hero-art {
        inset: 0;
        height: auto;
        background-position: 75% bottom;
        background-size: auto 520px;
        background-color: var(--bg);
    }
    .hero-home .hero-art::after {
        background: linear-gradient(180deg,var(--bg) 0%,var(--bg) 46%,transparent 75%),
            linear-gradient(0deg,color-mix(in srgb,var(--bg) 35%,transparent),transparent 35%);
    }
    .hero-home .hero-copy p { max-width: 550px; }
    .hero-home:after { display: none; }
    .hero h1 { max-width: 620px; }
    .chapter-line span:last-child { display: none; }
}
@media(max-width:620px) {
    .hero h1 { font-size: clamp(44px,11vw,66px); }
    .hero-home .hero-copy { padding-bottom: 325px; }
    .hero-home .hero-art { background-size: auto 450px; }
    .hero p { font-size: 15px; }
    .quote { margin-top: 30px; }
    .chapter-line { padding: 18px 24px; font-size: 8px; }
    .chapter-line span:nth-child(2) { display: none; }
    .cap-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
    .cap { align-items: flex-start; gap: 10px; }
    .cap-icon { width: 28px; height: 32px; flex-basis: 28px; }
    .cap strong { font-size: 12px; }
    .cap span { font-size: 10px; }
    .home-projects,.home-blog { padding-block: 56px; }
    .home-projects .card { min-height: 320px; }
}
@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
.hero-home { background-color: var(--bg); }
.hero-home h1 em { padding-right: .12em; }
