:root {
    --ink: #172f35;
    --ink-soft: #365157;
    --petrol: #153f46;
    --teal: #1b7d83;
    --turquoise: #36aeb3;
    --sky-feather: #8ccdd0;
    --violet-feather: #625f83;
    --paper: #f5f0e5;
    --paper-deep: #e8dfce;
    --white: #fffdf7;
    --leather: #875b45;
    --ochre: #c89b55;
    --line: rgba(23, 47, 53, .18);
    --shadow: 0 18px 60px rgba(19, 48, 54, .12);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
    --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(54,174,179,.08), transparent 28rem),
        repeating-linear-gradient(0deg, rgba(30,61,65,.018) 0, rgba(30,61,65,.018) 1px, transparent 1px, transparent 5px),
        var(--paper);
    font: 1rem/1.7 var(--sans);
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--petrol); }
button, input, textarea, select { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 100; padding: .7rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(245,240,229,.9); backdrop-filter: blur(12px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font: 700 1.35rem/1 var(--serif); letter-spacing: .02em; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-4deg); }
.brand-mark .brand-dot { stroke: var(--ochre); stroke-width: 5; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { position: relative; color: var(--ink); font-size: .84rem; font-weight: 700; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--turquoise); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; color: var(--ink); background: transparent; }

.hero { min-height: 660px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-block: 7rem; }
.eyebrow, .kicker { margin: 0 0 1rem; color: var(--leather); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font: 400 clamp(3.8rem, 8vw, 7.6rem)/.9 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: var(--teal); font-style: italic; }
.hero-copy { max-width: 33rem; margin: 2rem 0 0; color: var(--ink-soft); font: 1.15rem/1.75 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.15rem; border: 1px solid var(--petrol); border-radius: 999px; color: var(--white); background: var(--petrol); font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; transition: transform .18s ease, background .18s ease; }
.button:hover { color: white; background: var(--teal); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { color: var(--ink); background: var(--sky-feather); }
.hero-sketch { position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-sketch::before, .hero-sketch::after { content: ''; position: absolute; border: 1px solid rgba(27,125,131,.32); border-radius: 50%; transform: rotate(-12deg); }
.hero-sketch::before { width: 320px; height: 390px; }
.hero-sketch::after { width: 270px; height: 410px; transform: rotate(17deg); }
.motion-mark { position: relative; z-index: 1; width: min(330px, 80%); filter: drop-shadow(0 20px 30px rgba(21,63,70,.13)); }
.motion-mark path { fill: none; stroke: var(--petrol); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.motion-mark .feather { stroke: var(--turquoise); stroke-width: 8; }
.motion-mark .warm { stroke: var(--ochre); stroke-width: 6; }
.sketch-note { position: absolute; z-index: 2; right: 0; bottom: 1rem; max-width: 13rem; padding: .8rem 1rem; border-left: 2px solid var(--ochre); color: var(--ink-soft); font: italic .9rem/1.45 var(--serif); transform: rotate(-2deg); }

.section { padding-block: 6.5rem; }
.section-tint { background: var(--petrol); color: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2, .page-hero h1 { margin: 0; font: 400 clamp(2.5rem, 5vw, 4.7rem)/1 var(--serif); letter-spacing: -.035em; }
.section-heading p { max-width: 30rem; margin: 0; color: var(--ink-soft); }
.section-tint .section-heading p { color: var(--sky-feather); }
.text-link { font-size: .79rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.section-tint .text-link { color: var(--sky-feather); }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
.project-card { grid-column: span 6; color: inherit; text-decoration: none; }
.project-card:nth-child(3n) { grid-column: span 12; }
.project-image { position: relative; overflow: hidden; aspect-ratio: 16/10; border-radius: 2px 18px 2px 18px; background: linear-gradient(145deg, #204e56, #1b7378 52%, #78bcc0); box-shadow: var(--shadow); }
.project-image.placeholder::after { content: 'work in motion'; position: absolute; right: 1rem; bottom: 1rem; color: rgba(255,255,255,.7); font: italic .88rem var(--serif); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-card h3 { margin: 1rem 0 .25rem; font: 400 1.7rem/1.2 var(--serif); }
.project-card p { margin: 0; color: var(--ink-soft); }
.section-tint .project-card p { color: var(--sky-feather); }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.journal-card { display: flex; flex-direction: column; min-height: 300px; padding: 1.6rem; border: 1px solid var(--line); border-radius: 3px 20px 3px 3px; color: inherit; background: rgba(255,253,247,.55); text-decoration: none; transition: transform .18s ease, background .18s ease; }
.journal-card:hover { color: var(--ink); background: var(--white); transform: translateY(-4px) rotate(-.2deg); }
.journal-card time { color: var(--leather); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.journal-card h3 { margin: auto 0 .7rem; font: 400 1.6rem/1.15 var(--serif); }
.journal-card p { margin: 0; color: var(--ink-soft); }
.tag { display: inline-flex; width: fit-content; margin-top: 1rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { padding-block: 6rem 4rem; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 42rem; margin: 1.5rem 0 0; color: var(--ink-soft); font: 1.15rem/1.7 var(--serif); }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0; }
.filter-row a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .74rem; font-weight: 700; text-decoration: none; }
.filter-row a.active { color: white; border-color: var(--teal); background: var(--teal); }
.empty-state { padding: 4rem; border: 1px dashed var(--line); text-align: center; background: rgba(255,255,255,.28); }

.article-shell { width: min(820px, calc(100vw - 40px)); margin-inline: auto; }
.article-header { padding-block: 6rem 3rem; }
.article-header h1 { margin: 0; font: 400 clamp(2.8rem, 7vw, 5.8rem)/.98 var(--serif); letter-spacing: -.045em; }
.article-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: .82rem; }
.article-image { width: min(1120px, calc(100vw - 40px)); margin: 0 auto 4rem; overflow: hidden; border-radius: 3px 28px 3px 3px; background: var(--paper-deep); }
.article-image img { width: 100%; max-height: 760px; object-fit: cover; }
.prose { font: 1.08rem/1.82 var(--serif); }
.prose h2, .prose h3 { margin: 2.4rem 0 .8rem; line-height: 1.2; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.45rem; }
.prose p, .prose ul, .prose blockquote { margin: 0 0 1.3rem; }
.prose blockquote { margin-left: 0; padding: .5rem 0 .5rem 1.4rem; border-left: 3px solid var(--turquoise); color: var(--ink-soft); font-style: italic; }
.prose code { padding: .12em .3em; background: var(--paper-deep); font-size: .88em; }
.media-gallery { width: min(1120px, calc(100vw - 40px)); margin: 4rem auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.media-gallery figure { margin: 0; }
.media-gallery img { width: 100%; border-radius: 2px 14px 2px 2px; }
.media-gallery figcaption { margin-top: .45rem; color: var(--ink-soft); font-size: .78rem; }
.references { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.references h2 { font: 400 1.7rem var(--serif); }
.reference-list { padding-left: 1.25rem; font-size: .88rem; }
.reference-list li { margin-bottom: .8rem; }
.video-frame { position: relative; aspect-ratio: 16/9; margin: 2rem 0; overflow: hidden; background: #0d2226; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 3rem; padding-block: 1.3rem; border-block: 1px solid var(--line); }
.project-facts dt { color: var(--leather); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-facts dd { margin: .3rem 0 0; }

.about-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.portrait-placeholder { aspect-ratio: 4/5; display: grid; place-items: center; padding: 2rem; border: 1px solid var(--line); border-radius: 50% 50% 4px 4px; color: var(--ink-soft); background: linear-gradient(165deg, rgba(54,174,179,.3), rgba(98,95,131,.18) 52%, rgba(200,155,85,.2)); text-align: center; }

.site-footer { margin-top: 7rem; padding-block: 4rem; color: var(--paper); background: #102f35; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer-wordmark { color: white; }
.footer-grid p { color: var(--sky-feather); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--paper); }
.footer-small { grid-column: 1/-1; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .75rem; }

@media (max-width: 800px) {
    .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 5rem; }
    .hero-sketch { min-height: 320px; }
    .project-card, .project-card:nth-child(3n) { grid-column: 1/-1; }
    .journal-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-small { grid-column: auto; }
}

@media (max-width: 600px) {
    :root { --shell: min(100% - 28px, 1180px); }
    .header-inner { min-height: 72px; }
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
    .site-nav.open { display: grid; }
    .hero h1 { font-size: clamp(3.3rem, 18vw, 5rem); }
    .section { padding-block: 4.5rem; }
    .section-heading { align-items: start; flex-direction: column; }
    .project-grid { display: block; }
    .project-card { display: block; margin-bottom: 2.5rem; }
    .media-gallery { grid-template-columns: 1fr; }
    .project-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
