:root {
    color-scheme: dark;
    --bg: #090d13;
    --bg-soft: #0f151e;
    --panel: rgba(18, 25, 36, .78);
    --panel-solid: #121923;
    --text: #eef3f8;
    --muted: #9aa9b9;
    --line: rgba(255,255,255,.09);
    --accent: #65bfc2;
    --accent-2: #8577c8;
    --max: 1180px;
    --radius: 24px;
    --shadow: 0 20px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 15% 0%, rgba(79,126,137,.13), transparent 32rem),
        radial-gradient(circle at 85% 12%, rgba(101,75,145,.10), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    background: white;
    color: black;
    padding: .7rem 1rem;
    border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: .8rem max(1rem, calc((100vw - var(--max)) / 2));
    backdrop-filter: blur(18px);
    background: rgba(9,13,19,.74);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    font-weight: 760;
    letter-spacing: -.02em;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    background: linear-gradient(135deg, rgba(101,191,194,.85), rgba(133,119,200,.85));
    color: #081014;
    font-weight: 900;
}
.nav { display: flex; gap: .35rem; }
.nav a {
    padding: .5rem .7rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    border-radius: .7rem;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); background: rgba(255,255,255,.05); }

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(820px, 88svh);
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 84%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .44;
    pointer-events: none;
}
.hero-glow-a {
    width: 28rem; height: 28rem;
    right: -12rem; top: 7rem;
    background: radial-gradient(circle, rgba(92,187,188,.42), transparent 66%);
}
.hero-glow-b {
    width: 25rem; height: 25rem;
    left: -12rem; bottom: -7rem;
    background: radial-gradient(circle, rgba(113,87,172,.38), transparent 67%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 5.5rem 0 4.5rem;
}
.eyebrow {
    margin: 0 0 .8rem;
    color: #8ccdd0;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .72rem;
    font-weight: 800;
}
.hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(3rem, 9vw, 7.2rem);
    line-height: .94;
    letter-spacing: -.065em;
    text-wrap: balance;
}
.hero-copy {
    max-width: 710px;
    margin: 1.6rem 0 0;
    color: #b5c2cf;
    font-size: clamp(1rem, 2.6vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    text-decoration: none;
    font-weight: 730;
}
.button-primary { background: #dcebec; color: #0b1117; border-color: transparent; }
.button-quiet { background: rgba(255,255,255,.04); }
.hero-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-top: 3rem;
    max-width: 820px;
    color: var(--muted);
    font-size: .84rem;
}
.hero-facts span {
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    border-radius: .8rem;
}
.hero-facts strong { color: var(--text); font-weight: 740; }

.section {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.8rem 0;
}
.section-head { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2, .profile-card h2, .principle-card h2 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.section-head > p {
    margin: 0;
    max-width: 650px;
    color: var(--muted);
}

.project-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.project-card {
    --project-a: 93, 173, 178;
    --project-b: 92, 86, 151;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.theme-magic { --project-a: 125, 102, 198; --project-b: 69, 146, 167; }
.theme-data { --project-a: 82, 164, 154; --project-b: 74, 112, 151; }
.theme-web { --project-a: 191, 135, 93; --project-b: 96, 123, 159; }
.theme-portfolio { --project-a: 94, 175, 181; --project-b: 121, 94, 172; }
.project-banner {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: end;
    padding: 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(var(--project-a), .45), transparent 42%),
        radial-gradient(circle at 90% 70%, rgba(var(--project-b), .36), transparent 48%),
        #101720;
}
.project-banner.has-image {
    background-image:
        linear-gradient(to top, rgba(8,12,18,.88), rgba(8,12,18,.12) 68%),
        var(--banner-image);
    background-size: cover;
    background-position: center;
}
.banner-grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 26px 26px;
    transform: perspective(380px) rotateX(59deg) scale(1.6) translateY(28%);
    transform-origin: bottom;
}
.project-banner-content { position: relative; z-index: 2; }
.project-kicker { color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 750; }
.project-banner h3 { margin: .25rem 0 0; font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1; letter-spacing: -.04em; }
.project-body { padding: 1.25rem; }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .65rem; font-size: .82rem; color: var(--muted); }
.status-row strong { color: #bfe3d7; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #76cdb0; box-shadow: 0 0 0 .25rem rgba(118,205,176,.08); }
.project-description { color: #bcc7d2; margin: 1rem 0; }
.status-note {
    display: grid;
    gap: .22rem;
    margin: 1rem 0 0;
    padding: .9rem 1rem;
    background: rgba(255,255,255,.035);
    border-left: 2px solid rgba(var(--project-a), .72);
    border-radius: 0 .7rem .7rem 0;
    color: #cad2db;
    font-size: .9rem;
}
.status-note span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 740; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags span, .interest-list span {
    display: inline-flex;
    padding: .34rem .55rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    border-radius: .55rem;
    color: #aebbc8;
    font-size: .74rem;
}
.project-link { display: inline-flex; gap: .45rem; margin-top: 1.25rem; color: #d8e7e7; font-weight: 730; text-decoration: none; }
.project-link:hover { text-decoration: underline; text-underline-offset: .25rem; }

.profile-card, .principle-card {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.3rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(31,48,59,.62), rgba(29,24,47,.58));
}
.profile-copy p, .principle-card > p:last-child { margin: 0; color: #bac5d0; }
.interest-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }

.service-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.service-card {
    position: relative;
    min-height: 180px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: rgba(255,255,255,.027);
}
.service-index { display: block; color: #65808c; font-size: .72rem; letter-spacing: .12em; font-weight: 780; }
.service-card h3 { margin: 1.5rem 0 .45rem; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.principle-card { position: relative; overflow: hidden; }
.principle-card::after {
    content: "";
    position: absolute;
    width: 16rem; height: 16rem;
    right: -7rem; bottom: -8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101,191,194,.18), transparent 70%);
}

.site-footer {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--muted);
    font-size: .82rem;
}
.site-footer > div:first-child { display: flex; flex-direction: column; }
.site-footer strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (min-width: 700px) {
    .hero-facts { grid-template-columns: repeat(3, 1fr); }
    .section-head { grid-template-columns: minmax(0, .8fr) minmax(280px, .6fr); align-items: end; justify-content: space-between; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-card { grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr); align-items: center; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 980px) {
    .section { padding: 6.5rem 0; }
    .project-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.08fr .92fr; }
    .project-card:first-child .project-banner { min-height: 390px; }
    .project-card:first-child .project-body { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
    .service-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
    .site-header { align-items: center; }
    .nav a:nth-child(2) { display: none; }
    .hero { min-height: 760px; }
}

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


/* compact-projects-v2 */
.more-projects {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}
.subsection-head { margin-bottom: 1.5rem; }
.subsection-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}
.reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
}
.reference-card {
    --project-a: 93, 173, 178;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--project-a), .12), transparent 55%),
        rgba(255,255,255,.026);
}
.reference-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 760;
}
.reference-mark {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: rgb(var(--project-a));
}
.reference-card h3 {
    margin: 1.15rem 0 .55rem;
    font-size: 1.18rem;
    line-height: 1.15;
}
.reference-card p {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: .88rem;
}
.reference-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    color: #dce7e9;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 720;
}
.reference-card a:hover { color: white; }
.theme-food { --project-a: 119, 173, 126; }
.theme-books { --project-a: 164, 128, 96; }
.theme-artist { --project-a: 164, 118, 144; }
.theme-art { --project-a: 136, 108, 190; }
.theme-liq { --project-a: 82, 161, 184; }
.theme-snb { --project-a: 169, 117, 103; }
.theme-words { --project-a: 117, 145, 182; }

@media (min-width: 560px) {
    .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* project-images-v3 */
.project-image-link,
.reference-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #0b1118;
}
.project-image,
.reference-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
}
.project-image-link:hover .project-image,
.project-image-link:focus-visible .project-image,
.reference-image-link:hover .reference-image,
.reference-image-link:focus-visible .reference-image {
    transform: scale(1.018);
    filter: brightness(1.06);
}
.project-image-link:focus-visible,
.reference-image-link:focus-visible,
.project-link:focus-visible,
.reference-link:focus-visible {
    outline: 2px solid rgba(154, 213, 220, .9);
    outline-offset: 3px;
}
.image-cta {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .42rem .65rem;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: .65rem;
    background: rgba(8, 12, 18, .78);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.9);
    font-size: .72rem;
    font-weight: 720;
    opacity: .88;
}
.project-title-row h3 {
    margin: .35rem 0 1rem;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    letter-spacing: -.03em;
}
.project-title-row .project-kicker { color: var(--muted); }
.project-link-row,
.reference-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-top: 1.15rem;
}
.project-link-row .project-link { margin-top: 0; }
.reference-card {
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
.reference-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1.05rem 1.05rem;
}
.reference-card h3 { margin-top: .9rem; }
.reference-card p { flex: 1; }
.reference-footer {
    padding-top: .8rem;
    border-top: 1px solid var(--line);
}
.reference-card .reference-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    margin: 0;
    padding: 0;
    border: 0;
    color: #dce7e9;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 720;
}
.reference-card .reference-link:hover { color: white; }

@media (min-width: 980px) {
    .project-card:first-child .project-image-link,
    .project-card:first-child > .project-image {
        min-height: 390px;
        height: 100%;
    }
    .project-card:first-child .project-image {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 560px) {
    .image-cta { font-size: .68rem; right: .55rem; bottom: .55rem; }
}
