:root {
    color-scheme: dark;
    --bg: #171918;
    --panel: #202220;
    --paper: #f6f0e1;
    --muted: #c3bead;
    --gold: #eed9a9;
    --line: #3d4038;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .24em; font-variant-emoji: text; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid #f5b95d; outline-offset: 5px; }
button, select, input, textarea { font: inherit; font-variant-emoji: text; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
h1, h2 { font: 400 clamp(3rem, 7vw, 7rem)/.98 var(--serif); letter-spacing: -.065em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.5rem); }
.skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; transform: translateY(-200%); background: var(--gold); color: #1d1e18; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.site-header { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 1rem clamp(1.15rem, 4.5vw, 5rem); border-bottom: 1px solid var(--line); }
.page-home .site-header { position: absolute; inset: 0 0 auto; z-index: 3; border-color: #ffffff36; background: linear-gradient(#131510c9, #13151056); }
.page-home .site-header nav a { color: var(--paper); }
.site-header a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; font-size: .82rem; font-weight: 750; letter-spacing: .035em; }
.brand img, .brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: #20221c; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.8rem); font-size: .86rem; }
.site-header nav a { padding-block: .35rem; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--gold); border-bottom: 1px solid currentColor; }
.header-link { justify-self: end; color: var(--gold); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.header-link span { margin-left: .3rem; }
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 8rem clamp(1.25rem, 6.2vw, 7rem) clamp(3rem, 9vh, 7rem);
    background: #211b16;
}
.hero-copy { position: relative; z-index: 1; width: min(100%, 38rem); }
.kicker { display: flex; align-items: center; gap: .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 750; color: var(--gold); margin-bottom: 1.3rem; }
.kicker i { width: .5rem; height: .5rem; border: 1px solid currentColor; border-radius: 50%; flex: 0 0 auto; }
.hero h1 { font-size: clamp(3.9rem, 8vw, 8.8rem); line-height: .84; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 span { font-size: .55em; letter-spacing: -.045em; margin-bottom: .16em; }
.hero h1 em { font-weight: 400; color: var(--gold); }
.hero-role { font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 650; line-height: 1.36; margin-top: 1.2rem; }
.hero-intro { color: #eee8d9; max-width: 35ch; margin-top: .5rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; min-height: 45px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: .84rem; font-weight: 750; cursor: pointer; }
.gold { background: var(--gold); color: #28271f; }
.gold:hover { background: #fff0c9; color: #28271f; }
.text-link { width: fit-content; color: var(--gold); text-decoration-color: #ad9e7e; font-size: .88rem; }
.text-link:hover { text-decoration-color: currentColor; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { overflow: hidden; z-index: -1; }
.hero-media picture { animation: arrive-photo 1.1s ease-out both; }
.hero-media img { object-fit: cover; object-position: 55% 54%; transform: translate3d(var(--pan-x, 0), var(--pan-y, 0), 0) scale(1.025); transition: transform .45s ease-out; }
.hero::before, .hero::after { position: absolute; inset: 0; content: ''; pointer-events: none; }
.hero::before {
    background: linear-gradient(0deg, #141511e8, #14151159 27%, transparent 63%),
        linear-gradient(90deg, #13150fac, #13150f50 29%, transparent 55%);
}
.hero::after { inset: clamp(.45rem, 1.25vw, 1.1rem); border: 1px solid #f3e4c451; }
.hero-copy > * { animation: arrive-copy .7s ease-out both; }
.hero-copy h1 { animation-delay: .08s; }
.hero-role, .hero-intro { animation-delay: .19s; }
.hero-scroll {
    position: absolute; right: clamp(1.25rem, 6.2vw, 7rem); bottom: clamp(3rem, 9vh, 7rem);
    z-index: 1; display: flex; gap: .75rem; align-items: center; color: var(--paper);
    text-decoration: none; font-weight: 650; font-size: .8rem;
}
.hero-scroll-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid #f3e4c4a0; border-radius: 50%; font-size: 1.2rem; transition: transform .2s; }
.hero-scroll:hover .hero-scroll-icon { transform: translateY(.25rem); }
@keyframes arrive-copy { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes arrive-photo { from { transform: scale(1.065); opacity: .55; } to { transform: scale(1); opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .2s; }
::view-transition-new(root) { animation-duration: .38s; }
.container { width: min(1440px, 100%); margin-inline: auto; padding-inline: clamp(1.2rem, 5.5vw, 6rem); }
.inner { padding-block: clamp(3rem, 7vw, 7rem); min-height: calc(100svh - 155px); }
.home-work { padding-block: clamp(3rem, 7vw, 6rem); scroll-margin-top: 1rem; }
.showcase { position: relative; }
.showcase-controls { display: flex; gap: .5rem; justify-content: end; margin-bottom: 1rem; }
.showcase-controls button {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
    color: var(--gold); background: var(--panel); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.showcase-controls button:hover:not(:disabled) { background: var(--gold); color: var(--bg); }
.showcase-controls button:disabled { opacity: .5; cursor: default; }
.showcase-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 73%;
    gap: 1.25rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-color: #ad9e7e var(--panel); padding-bottom: .85rem;
}
.showcase-track .project { scroll-snap-align: start; }
.showcase-track .project-visual { aspect-ratio: 2; }
.showcase-track .project-body h3 { font-size: clamp(1.55rem, 3vw, 2.75rem); }
.showcase-track .project-art, .case-page .project-art { font-size: clamp(1.9rem, 5vw, 5.25rem); }
.home-contact { min-height: 10rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 2.5rem; }
.project-cover { display: block; text-decoration: none; overflow: hidden; }
.project-cover .project-visual { transition: filter .3s; }
.project-cover:hover .project-visual { filter: brightness(1.15); }
.project-detail { font-weight: 650; }
.case-header { margin-block: 2.5rem; }
.case-header .button { margin-top: 1.5rem; }
.case-page .project-visual { aspect-ratio: 2.2; }
.case-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.section-heading { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.lead { margin-top: 1.25rem; max-width: 55ch; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.project { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.project-visual { aspect-ratio: 1.62; display: grid; place-items: center; position: relative; text-align: center; padding: .85rem; overflow: hidden; }
.project-visual::before { content: ''; position: absolute; border: 1px solid currentColor; opacity: .33; inset: 12px; pointer-events: none; }
.project-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-art { position: relative; z-index: 1; padding: .5rem; font: italic 400 clamp(1.28rem, 2.6vw, 2.9rem)/1.02 var(--serif); letter-spacing: -.035em; }
.olive { color: #eee6bd; background: #4b503b; }
.wine { color: #f5d4bb; background: #5a3537; }
.ink { color: #e2e4e5; background: #363d50; }
.sand { color: #2f2c22; background: #bdab83; }
.green { color: #f0e6d0; background: #3a524b; }
.slate { color: #dce4de; background: #3d4548; }
.project-body { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.15rem 1.2rem 1.4rem; flex: 1; }
.project-body h3 { font: 400 1.55rem/1.08 var(--serif); }
.project-body p:not(.meta), .timeline-item p { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.project-body a { margin-top: auto; padding-top: .35rem; }
.meta { color: var(--gold); font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .115em; }
.filters { display: grid; grid-template-columns: minmax(13rem, 2fr) minmax(10rem,1fr) auto; align-items: end; gap: 1rem; margin-block: 2rem; }
[data-count] { color: var(--muted); white-space: nowrap; padding-bottom: .6rem; }
.source-link { display: block; margin-top: 1.8rem; }
.about-intro { display: grid; grid-template-columns: 1fr minmax(140px, 250px); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-bottom: 3rem; }
.portrait { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 3px; }
.bio { max-width: 66ch; margin-top: 1.15rem; }
.timeline { border-top: 1px solid var(--line); display: grid; gap: clamp(1.3rem, 4vw, 4rem); grid-template-columns: minmax(150px, 1fr) 2fr; padding-block: 2rem; }
.timeline h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.timeline-item + .timeline-item { margin-top: 1.35rem; }
.timeline-item h3 { font-size: 1.03rem; }
.timeline-item p.meta { margin-top: .35rem; color: var(--gold); text-transform: none; letter-spacing: normal; }
.timeline-item p:not(.meta) { margin-top: .3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.contact-list { display: grid; gap: .2rem; margin-top: 2.1rem; }
.contact-list dt { color: var(--muted); font-size: .84rem; }
.contact-list dd { margin-bottom: .75rem; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 2.2rem); overflow-wrap: anywhere; }
.contact-form { border: 1px solid var(--line); background: var(--panel); padding: clamp(1rem, 3vw, 2rem); }
.contact-form h2 { font-size: 2rem; margin-bottom: 1.35rem; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .82rem; }
input, select, textarea { width: 100%; min-width: 0; padding: .65rem .74rem; border: 1px solid #777767; border-radius: 3px; background: #1e1f1a; color: var(--paper); }
textarea { resize: vertical; }
.contact-form label:not(.trap) { margin-bottom: 1rem; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { padding: .6rem .75rem; color: #d6efce; margin-bottom: .8rem; border: 1px solid #778f72; }
.notice.error { color: #ffd7cf; border-color: #b97c74; }
.site-footer { border-top: 1px solid var(--line); padding: 1.2rem clamp(1.15rem, 4.5vw, 5rem); display: flex; flex-wrap: wrap; gap: .45rem 1rem; justify-content: space-between; color: var(--muted); font-size: .8rem; }
@media (max-width: 1000px) {
    .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .site-header { grid-template-columns: 1fr auto; gap: .75rem; }
    .site-header nav { grid-row: 2; justify-self: start; }
    .header-link { grid-row: 1; grid-column: 2; }
    .hero { display: flex; flex-direction: column; justify-content: end; align-items: flex-start; padding-top: 12rem; padding-bottom: 1.6rem; }
    .hero h1 { font-size: clamp(3.6rem, 15vw, 6rem); }
    .hero-media img { object-position: 58% 38%; }
    .hero::before { background: linear-gradient(0deg, #11130ff7, #11130fca 23%, #11130f45 44%, transparent 67%); }
    .hero-scroll { position: relative; right: auto; bottom: auto; margin-top: 1rem; }
    .hero-scroll-icon { width: 2.2rem; height: 2.2rem; }
    .showcase-track { grid-auto-columns: 90%; }
    .case-page .project-visual { aspect-ratio: 1.5; }
    .contact-grid, .timeline { grid-template-columns: 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    [data-count] { grid-column: 1/-1; padding: 0; }
}
@media (max-width: 460px) {
    .work-grid { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; }
    .portrait { width: min(180px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
    .hero-media img { transform: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    :root { color-scheme: light; }
    body, .timeline-item p, .timeline-item p.meta, .lead, .kicker, a { background: white; color: black; }
    .site-header, .site-footer, .skip, [data-print], .kicker i { display: none; }
    .container { padding: 0; }
    .about-intro { padding-bottom: 1rem; }
    h1 { font-size: 36pt; }
    h2, .timeline h2 { font-size: 18pt; }
    .timeline { display: block; padding-block: .8rem; }
    .timeline h2 { margin-bottom: .6rem; }
    .timeline-item { break-inside: avoid; }
}
