:root {
    color-scheme: light;
    --paper: #f3eee6;
    --paper-deep: #e6dfd4;
    --white: #fbf8f4;
    --ink: #161311;
    --ink-soft: #3c342c;
    --muted: #74685c;
    --line: rgba(22, 19, 17, 0.12);
    --clay: #8d5e3c;
    --night: #100e0c;
    --night-2: #1b1714;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --header-h: 88px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: #e4d2c2;
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 80;
    background: #fff;
    color: var(--ink);
    padding: 10px 14px;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.eyebrow:before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

h1, h2, h3, .footer-display {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    color: var(--ink);
    background: rgba(243, 238, 230, 0.96);
    border-bottom: 1px solid transparent;
}

body:not(.header-overlay) .site-header,
body.header-overlay .site-header.scrolled,
body.nav-open .site-header {
    color: var(--ink);
    background: rgba(243, 238, 230, 0.94);
    border-bottom-color: var(--line);
}

body.header-overlay .site-header {
    color: #f7f3ee;
    background: transparent;
    border-bottom-color: transparent;
}

body.header-overlay .site-header:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 150px;
    background: linear-gradient(180deg, rgba(10, 8, 7, 0.62), rgba(10, 8, 7, 0));
    pointer-events: none;
}

body.header-overlay .site-header.scrolled:before,
body.nav-open .site-header:before {
    display: none;
}

body.nav-open .site-header {
    color: var(--ink);
    background: transparent;
    border-bottom-color: transparent;
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1;
}

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1;
}

.brand-name strong {
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-name em {
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.72;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav a:not(.nav-cta) {
    opacity: 0.72;
}

.site-nav a:hover,
.site-nav a.active {
    opacity: 1;
}

.nav-cta {
    border: 1px solid currentColor;
    padding: 0.72rem 1.05rem;
    opacity: 1;
    transition: background 0.3s ease, color 0.3s ease;
}

body:not(.header-overlay) .nav-cta,
body.header-overlay .site-header.scrolled .nav-cta,
body.nav-open .nav-cta {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.nav-cta:hover {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    position: relative;
    color: inherit;
}

.nav-toggle span {
    position: absolute;
    left: 9px;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

main {
    padding-top: var(--header-h);
}

body.header-overlay main {
    padding-top: 0;
}

.hero,
.project-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #f7f3ee;
    background: var(--night);
    overflow: hidden;
}

.project-hero {
    min-height: 86vh;
    min-height: 86dvh;
}

.hero-media,
.project-hero-media,
.hero-shade,
.quote-media img,
.quote-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media,
.project-hero-media,
.quote-media img {
    object-fit: cover;
}

.hero-shade,
.quote-shade {
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.72) 0%, rgba(12, 10, 9, 0.28) 52%, rgba(12, 10, 9, 0.12) 100%),
        linear-gradient(180deg, rgba(12, 10, 9, 0.28) 0%, rgba(12, 10, 9, 0.05) 36%, rgba(12, 10, 9, 0.62) 100%);
}

.hero-content,
.project-hero-copy {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto;
    padding: 140px 0 36px;
    animation: rise 1s ease both;
}

.hero h1,
.project-hero h1,
.page-intro h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    line-height: 0.9;
    max-width: min(12ch, 100%);
}

.hero h1 {
    max-width: min(8ch, 100%);
}

.hero-lead {
    max-width: 460px;
    margin-top: 24px;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(247, 243, 238, 0.86);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 22px;
    margin-top: 32px;
}

.hero-bar {
    position: relative;
    z-index: 1;
    animation: rise 1.1s ease both;
    width: min(var(--max), calc(100% - 64px));
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(247, 243, 238, 0.28);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-bar a:hover {
    color: #fff;
}

.btn,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.btn:hover {
    background: var(--clay);
    border-color: var(--clay);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-light:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.btn.danger,
.link.danger {
    background: transparent;
    color: #8d2d2d;
    border-color: rgba(141, 45, 45, 0.45);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

.marquee {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding: 16px 0;
    animation: marquee 38s linear infinite;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
}

.marquee-track span:after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--clay);
}

.section {
    padding: 96px 0;
}

.section-tight {
    padding-top: 36px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 42px;
}

.section-head h2,
.page-intro h1,
.founder-copy h2,
.cta-copy h2,
.band h2,
.project-story h2 {
    margin: 0;
}

.section-head h2,
.founder-copy h2,
.cta-copy h2,
.band h2,
.project-story h2,
.page-intro h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.92;
}

.section-note {
    max-width: 320px;
    color: var(--muted);
    font-size: 0.98rem;
}

.founder-grid,
.about-layout,
.contact-grid,
.project-detail,
.cta-grid,
.experience-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.founder-copy h2,
.about-copy h2 {
    max-width: 12ch;
}

.founder-copy p,
.about-copy p,
.prose p,
.contact-intro p {
    margin-top: 18px;
    color: var(--ink-soft);
    max-width: 58ch;
}

.founder-copy blockquote,
.pullquote {
    margin: 28px 0 0;
    padding-left: 18px;
    border-left: 1px solid var(--clay);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-style: italic;
    line-height: 1.35;
    color: var(--ink);
}

.portrait {
    margin: 0;
    background: var(--paper-deep);
}

.portrait img,
.frame img,
.contact-visual img {
    width: 100%;
    height: auto;
}

.portrait figcaption,
.frame figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.feature-grid,
.folio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 32px;
}

.feature-card,
.folio-card {
    display: block;
    color: inherit;
    min-width: 0;
}

.feature-card:first-child,
.folio-card:nth-child(3n + 1),
.feature-card:last-child:nth-child(even),
.folio-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
}

.feature-media,
.folio-media,
.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--paper-deep);
    aspect-ratio: 16 / 11;
}

.feature-card:first-child .feature-media,
.feature-card:last-child:nth-child(even) .feature-media,
.folio-card:nth-child(3n + 1) .folio-media,
.folio-card:last-child:nth-child(even) .folio-media {
    aspect-ratio: 16 / 8.4;
}

.feature-media img,
.folio-media img,
.gallery-item img,
.essay-scroller img,
.next-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.feature-card:hover img,
.folio-card:hover img,
.gallery-item:hover img,
.essay-scroller a:hover img {
    transform: scale(1.045);
}

.feature-copy,
.folio-copy {
    display: grid;
    gap: 6px;
    padding-top: 16px;
}

.feature-kicker,
.folio-kicker {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-copy h3,
.folio-copy h3 {
    margin: 4px 0 0;
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    line-height: 1;
}

.feature-copy p,
.folio-copy .excerpt {
    color: var(--ink-soft);
    max-width: 52ch;
}

.card-go {
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-card:hover .card-go,
.folio-card:hover .card-go {
    color: var(--clay);
}

.essay {
    padding-bottom: 40px;
}

.essay-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 28px;
}

.essay-head h2 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 0.92;
    max-width: 10ch;
}

.essay-meta {
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: right;
}

.essay-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 max(32px, calc((100% - var(--max)) / 2)) 18px;
    scrollbar-color: rgba(22, 19, 17, 0.28) transparent;
}

.essay-scroller a {
    flex: 0 0 auto;
    height: min(68vh, 620px);
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    overflow: hidden;
    background: var(--paper-deep);
    cursor: zoom-in;
}

.essay-scroller a.wide {
    aspect-ratio: 16 / 10;
}

.band {
    background: var(--night);
    color: #f6f1ea;
}

.band .eyebrow {
    color: rgba(246, 241, 234, 0.62);
}

.service-grid,
.process-grid,
.principle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.principle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article,
.process-grid article,
.principle-grid article {
    padding-top: 18px;
    border-top: 1px solid rgba(246, 241, 234, 0.16);
}

.process-grid article,
.principle-grid article {
    border-top-color: var(--line);
}

.service-grid span,
.process-grid span,
.principle-grid span,
.timeline-item span {
    display: block;
    margin-bottom: 14px;
    color: var(--clay);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

.service-grid h3,
.process-grid h3,
.principle-grid h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1;
}

.service-grid p,
.process-grid p,
.principle-grid p {
    color: rgba(246, 241, 234, 0.74);
}

.process-grid p,
.principle-grid p,
.skills-list li,
.timeline-item p {
    color: var(--ink-soft);
}

.quote-band {
    position: relative;
    min-height: 78vh;
    display: grid;
    align-items: end;
    color: #fff;
    background: var(--night);
    overflow: hidden;
}

.quote-band blockquote {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100% - 64px));
    margin: 0 auto 72px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.15;
}

.quote-band cite {
    display: block;
    margin-top: 22px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-style: normal;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.cta-section {
    padding-top: 40px;
}

.cta-grid {
    align-items: stretch;
    background: var(--night);
    color: #f6f1ea;
}

.cta-copy,
.cta-visual {
    min-height: 420px;
}

.cta-copy {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cta-copy .eyebrow {
    color: rgba(246, 241, 234, 0.66);
}

.cta-copy .btn {
    align-self: flex-start;
    margin-top: 28px;
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.cta-copy .btn:hover {
    background: #fff;
    color: var(--ink);
}

.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-intro {
    padding: 54px 0 10px;
}

.page-intro h1 {
    max-width: min(16ch, 100%);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 0.95;
}

.section-copy {
    margin-top: 14px;
    max-width: 62ch;
    color: var(--muted);
}

.contact-intro h1,
.skills-list h2 {
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.92;
    margin: 0;
    max-width: 12ch;
}

.page-intro .section-note {
    margin-top: 22px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    padding: 18px 0;
    background: rgba(243, 238, 230, 0.92);
    backdrop-filter: blur(12px);
}

.filter-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    min-height: 42px;
    padding: 0 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.filter-button.active,
.filter-button:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.filter-empty {
    padding: 28px 0 10px;
    color: var(--muted);
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 28px 0 36px;
}

.frame {
    margin: 28px 0 0;
}

.frame img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
}

.skills-list ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.timeline {
    display: grid;
    gap: 26px;
}

.contact-panel {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 32px;
}

.contact-form,
.admin-form {
    display: grid;
    gap: 16px;
}

.contact-form label,
.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.admin-form input,
.admin-form textarea,
.admin-form select,
#category-filter {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 14px 16px;
    border-radius: 0;
}

#category-filter {
    width: auto;
    min-width: 220px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--ink);
}

.form-row {
    display: grid;
    gap: 0;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.contact-details {
    display: grid;
    gap: 18px;
    margin: 28px 0;
}

.contact-details strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-visual {
    margin-top: 12px;
    overflow: hidden;
}

.project-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.project-facts div {
    padding: 26px 22px;
    border-right: 1px solid var(--line);
}

.project-facts div:last-child {
    border-right: 0;
}

.project-facts span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-facts p {
    font-weight: 500;
}

.project-story h2 {
    max-width: 12ch;
}

.lead {
    margin: 18px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    line-height: 1.3;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
}

.gallery-item {
    display: block;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(3n + 1) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
}

.next-project {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: end;
    color: #fff;
    overflow: hidden;
    background: var(--night);
}

.next-project img,
.next-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.next-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.next-project .container {
    position: relative;
    z-index: 1;
    padding-bottom: 48px;
}

.next-project h2 {
    margin: 8px 0 0;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.95;
}

.site-footer {
    background: var(--night);
    color: rgba(243, 238, 230, 0.78);
}

.footer-display {
    margin: 0;
    font-size: clamp(5rem, 16vw, 12rem);
    line-height: 0.78;
    color: rgba(243, 238, 230, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.footer-logo,
.footer-label {
    margin: 0 0 14px;
    color: #f6f1ea;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--sans);
    font-weight: 500;
}

.footer-copy {
    max-width: 36ch;
}

.footer-grid p + p {
    margin-top: 6px;
}

.footer-grid a:hover,
.footer-bar a:hover {
    color: #fff;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(243, 238, 230, 0.12);
    font-size: 0.85rem;
}

.alert {
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
}

.alert.success {
    background: #e7f2ea;
    color: #1d4a32;
}

.alert.error {
    background: #fbeceb;
    color: #7c2424;
}

.alert ul {
    margin: 8px 0 0;
}

.admin-login-panel {
    max-width: 560px;
}

.admin-edit-panel {
    max-width: 780px;
}

.admin-actions,
.admin-actions-row,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.admin-actions,
.admin-filters {
    margin-bottom: 22px;
}

.admin-filters {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--white);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.link {
    border-bottom: 1px solid currentColor;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.inline-form {
    display: inline;
}

.hint {
    color: var(--muted);
    font-size: 0.85rem;
}

.delete-row {
    margin-top: 18px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
}

.lightbox.hidden {
    display: none;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 7, 6, 0.9);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(1100px, 86vw);
    max-height: 86vh;
}

.lightbox-panel img {
    max-height: 78vh;
    width: auto;
    max-width: 86vw;
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    border: 0;
    background: #fff;
    color: var(--ink);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-close {
    top: 18px;
    right: 18px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.fade-in {
    animation: rise 0.9s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
    .founder-grid,
    .about-layout,
    .contact-grid,
    .project-detail,
    .cta-grid,
    .experience-grid,
    .about-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-facts {
        grid-template-columns: 1fr 1fr;
    }

    .project-facts div:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .project-facts div:nth-child(even) {
        border-right: 0;
    }

    .cta-copy {
        padding: 36px 28px;
    }

    .section-head,
    .essay-head,
    .hero-bar,
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .essay-meta,
    .section-note {
        text-align: left;
    }
}

@media (max-width: 800px) {
    .container,
    .hero-content,
    .project-hero-copy,
    .hero-bar {
        width: min(100%, calc(100% - 36px));
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--paper);
        color: var(--ink);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        display: flex;
        align-items: flex-end;
        padding: 100px 28px 48px;
    }

    .site-nav.open {
        transform: none;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
    }

    .site-nav a:not(.nav-cta) {
        font-family: var(--serif);
        font-size: 3rem;
        letter-spacing: -0.03em;
        text-transform: none;
        opacity: 1;
    }

    .feature-grid,
    .folio-grid,
    .gallery-mosaic,
    .principle-grid,
    .service-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card:first-child,
    .feature-card:last-child:nth-child(even),
    .folio-card,
    .folio-card:nth-child(3n + 1),
    .folio-card:last-child:nth-child(even),
    .gallery-item:nth-child(3n + 1) {
        grid-column: auto;
    }

    .feature-media,
    .feature-card:first-child .feature-media,
    .folio-media,
    .folio-card:nth-child(3n + 1) .folio-media,
    .gallery-item,
    .gallery-item:nth-child(3n + 1) {
        aspect-ratio: 16 / 11;
    }

    .section {
        padding: 68px 0;
    }

    .hero h1,
    .project-hero h1,
    .page-intro h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .essay-scroller a,
    .essay-scroller a.wide {
        height: 62vh;
        aspect-ratio: 3 / 4;
    }

    .project-facts {
        grid-template-columns: 1fr;
    }

    .project-facts div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in,
    .hero-content,
    .project-hero-copy,
    .hero-bar {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .marquee-track { animation: none; }
    .feature-media img,
    .folio-media img,
    .gallery-item img,
    .essay-scroller img {
        transition: none;
    }
}
