/* ============================================================
   ANDREA ESTEP — Venice Beach painter
   Sun-bleached editorial. Warm paper, terracotta, ochre, olive.
   Shared by index.html and collection.html
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --paper:      #F7F1E3;
    --paper-deep: #EFE6CF;
    --ink:        #2A241B;
    --ink-soft:   #6B6151;
    --ink-faint:  #9A8F7C;
    --terracotta: #C05B33;
    --terra-deep: #A34A28;
    --sun:        #D99C2B;
    --olive:      #77804F;
    --ocean:      #49768B;
    --blush:      #C97B62;
    --hairline:   rgba(42, 36, 27, 0.16);
    --hairline-soft: rgba(42, 36, 27, 0.09);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Karla', -apple-system, sans-serif;
    --hand: 'Caveat', cursive;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Sun-bleached paper grain over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--terracotta); color: var(--paper); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }
em, .it { font-style: italic; }

.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.section-label {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 28px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hairline);
    transform: translateY(-3px);
}
.section-label .num { color: var(--ink-faint); }

.hand-note {
    font-family: var(--hand);
    font-size: 24px;
    font-weight: 500;
    color: var(--terracotta);
    transform: rotate(-2.5deg);
    display: inline-block;
    line-height: 1.2;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 56px); }
section { position: relative; }

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--paper) 83%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease;
}
header.scrolled { border-bottom-color: var(--hairline-soft); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.wordmark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.wordmark .dot { color: var(--terracotta); font-style: normal; }

.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.current { color: var(--ink); }
.main-nav a.current::after { transform: scaleX(1); }

/* Hamburger toggle — mobile only */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 2px 10px 10px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease;
}
.nav-toggle span + span { margin-top: 6px; }
body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.locale {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.locale .sun-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 30%, transparent);
}
/* Timestamp colon blinks like a clock */
.locale .tick {
    animation: tickblink 1s steps(1, end) infinite;
}
@keyframes tickblink { 50% { opacity: 0; } }

/* Mobile-only copy of the locale line, shown in the hero / page head
   because the fixed header has no room for it on small screens */
.locale-hero { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    background: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 18px 34px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(192, 91, 51, 0.55);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(42,36,27,0.4); }

.text-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1.5px solid var(--terracotta);
    padding-bottom: 3px;
    transition: color 0.25s ease;
}
.text-link:hover { color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 40px;
    position: relative;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}
.hero-eyebrow .rule { width: 56px; height: 1.5px; background: var(--terracotta); }

.hero h1 {
    font-size: clamp(3.1rem, 8.4vw, 8rem);
    font-weight: 350;
    max-width: 14ch;
}
.hero h1 em {
    font-weight: 400;
    color: var(--terracotta);
}

.hero-sun {
    position: absolute;
    top: clamp(90px, 14vh, 150px);
    right: clamp(4%, 8vw, 12%);
    width: clamp(120px, 18vw, 240px);
    height: auto;
    z-index: -1;
    animation: sunspin 60s linear infinite;
    opacity: 0.9;
}
@keyframes sunspin { to { transform: rotate(360deg); } }

.hero-foot {
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.hero-sub {
    max-width: 46ch;
    font-size: 18px;
    color: var(--ink-soft);
}
.hero-sub strong { color: var(--ink); font-weight: 700; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-annotation {
    position: relative;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-annotation svg { flex-shrink: 0; }

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    overflow: hidden;
    padding: 20px 0;
    background: var(--paper);
    position: relative;
    z-index: 1;
}
.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    white-space: nowrap;
    color: var(--ink-soft);
    padding-right: 26px;
}
.marquee-track .sep { color: var(--sun); font-style: normal; }

/* ---------- Works ---------- */
.works { padding: clamp(90px, 12vh, 150px) 0 40px; }

.works-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(48px, 7vw, 84px);
}
.works-head h2, .works-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 380; }
.works-head .note {
    max-width: 34ch;
    font-size: 15px;
    color: var(--ink-soft);
    padding-bottom: 10px;
}

.works-grid, .collection-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px);
    align-items: start;
}

/* Inline SVG placeholders must never dictate a min track size */
.works-grid > *, .collection-grid > *, .studio-grid > *, .bungalow-grid > *,
.about-grid > *, .contact-grid > *, .lightbox-inner > * { min-width: 0; }

.work { cursor: pointer; text-decoration: none; color: inherit; }

/* On desktop, cap card width against viewport height so a full
   painting + caption fits on screen (3:4 media ≈ 1.33× width tall) */
@media (min-width: 821px) {
    .works-grid .work, .collection-grid .work { max-width: min(100%, 54vh); }
}
.works-grid .work:nth-child(4n+1), .collection-grid .work:nth-child(4n+1) { grid-column: 1 / span 6; }
.works-grid .work:nth-child(4n+2), .collection-grid .work:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: clamp(60px, 9vw, 140px); }
.works-grid .work:nth-child(4n+3), .collection-grid .work:nth-child(4n+3) { grid-column: 2 / span 5; margin-top: clamp(-20px, -1vw, 0px); }
.works-grid .work:nth-child(4n+4), .collection-grid .work:nth-child(4n+4) { grid-column: 8 / span 5; margin-top: clamp(40px, 6vw, 100px); }

.work-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--paper-deep);
    box-shadow:
        0 1px 2px rgba(42,36,27,0.10),
        0 24px 48px -20px rgba(42,36,27,0.28);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.work:hover .work-media {
    transform: translateY(-8px) rotate(-0.4deg);
    box-shadow:
        0 1px 2px rgba(42,36,27,0.10),
        0 40px 70px -24px rgba(42,36,27,0.38);
}
/* Replace each placeholder SVG with:
   <img src="images/<work>.jpg" alt="<Title>, <medium>"> — when photos arrive.
   Media boxes size themselves via aspect-ratio; the SVG/img just fills. */
.frame { position: relative; }
.work-media svg, .work-media img,
.frame svg, .frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    border-top: 1px solid var(--hairline-soft);
    padding-top: 16px;
}
.work-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 26px;
    font-weight: 450;
}
.work-meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 6px;
}
.work-price {
    font-family: var(--serif);
    font-size: 20px;
    white-space: nowrap;
}
.work-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--olive);
    margin-top: 6px;
}
.work-status::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--olive);
    margin-right: 7px;
    transform: translateY(-1px);
}
/* Collected reads as an honor, not an out-of-stock state: gold badge.
   Text is a deepened gold for contrast on paper; the dot keeps the
   brighter sun tone. */
.work-status.collected { color: #A87A1E; }
.work-status.collected::before { background: var(--sun); }

/* Coming soon: terracotta, with a gently pulsing dot */
.work-status.coming { color: var(--terracotta); }
.work-status.coming::before {
    background: var(--terracotta);
    animation: comingpulse 2.4s ease-out infinite;
}
@keyframes comingpulse {
    0%   { box-shadow: 0 0 0 0 rgba(192, 91, 51, 0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(192, 91, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 91, 51, 0); }
}

.works-foot {
    margin-top: clamp(56px, 8vw, 96px);
    text-align: center;
}
.works-foot .hand-note { font-size: 27px; }
.works-foot-note { margin-top: 22px; }

/* ---------- Collection page ---------- */
.collection { padding: clamp(150px, 20vh, 210px) 0 clamp(90px, 12vh, 150px); }
.collection-cta {
    background: var(--paper-deep);
    border-top: 1px solid var(--hairline-soft);
    padding: clamp(70px, 10vh, 120px) 0;
    text-align: center;
}
.collection-cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 380; }
.collection-cta h2 em { color: var(--terracotta); }
.collection-cta p { margin: 18px auto 0; max-width: 46ch; color: var(--ink-soft); }
.collection-cta .btn { margin-top: 34px; }

/* ---------- Commissions (collection page) ---------- */
.commission { padding: 0 0 clamp(90px, 12vh, 150px); }
.commission-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.commission-grid > * { min-width: 0; }
.commission h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 380; max-width: 14ch; }
.commission h2 em { color: var(--terracotta); }
.commission-copy p { margin-top: 24px; color: var(--ink-soft); max-width: 54ch; }
.commission-copy p strong { color: var(--ink); font-weight: 700; }
.commission .btn { margin-top: 36px; }
.commission-media { position: relative; }
.commission-media .frame {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    box-shadow: 0 30px 60px -24px rgba(42,36,27,0.35);
    transform: rotate(1.2deg);
    max-width: 480px;
    margin-left: auto;
}
.commission-media .hand-note {
    position: absolute;
    bottom: -18px;
    right: 6px;
    background: var(--paper);
    padding: 6px 14px;
    box-shadow: 0 10px 24px -12px rgba(42,36,27,0.3);
    border-radius: 6px;
}

/* ---------- Manifesto band ---------- */
.manifesto {
    margin-top: clamp(80px, 11vw, 140px);
    background: var(--terracotta);
    color: var(--paper);
    padding: clamp(80px, 11vw, 140px) 0;
    position: relative;
    overflow: hidden;
}
.manifesto::before {
    content: '';
    position: absolute;
    top: -140px; right: -140px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,156,43,0.5), transparent 70%);
}
.manifesto .eyebrow { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-bottom: 30px; }
.manifesto h2 {
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    font-weight: 350;
    max-width: 18ch;
}
.manifesto h2 em { color: #F3CE7E; }
.manifesto p {
    margin-top: 32px;
    max-width: 52ch;
    font-size: 18px;
    color: color-mix(in srgb, var(--paper) 88%, transparent);
}
.manifesto ::selection { background: var(--ink); }

/* ---------- Studio (garden) ---------- */
.studio { padding: clamp(90px, 13vh, 170px) 0; }

.studio-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.studio h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 380; max-width: 14ch; }
.studio h2 em { color: var(--olive); }
.studio-copy p { margin-top: 24px; color: var(--ink-soft); max-width: 54ch; }
.studio-copy p strong { color: var(--ink); font-weight: 700; }

.studio-media { position: relative; }
.studio-media .frame {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 200px 200px 12px 12px; /* arched garden-window shape */
    box-shadow: 0 30px 60px -24px rgba(42,36,27,0.35);
}
.studio-media .hand-note {
    position: absolute;
    bottom: -18px;
    right: -6px;
    background: var(--paper);
    padding: 6px 14px;
    box-shadow: 0 10px 24px -12px rgba(42,36,27,0.3);
    border-radius: 6px;
}

/* ---------- Bungalow / gallery ---------- */
.bungalow {
    background: var(--paper-deep);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
    padding: clamp(90px, 13vh, 170px) 0;
}
.bungalow-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.bungalow h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 380; max-width: 15ch; }
.bungalow h2 em { color: var(--terracotta); }
.bungalow-copy p { margin-top: 24px; color: var(--ink-soft); max-width: 54ch; }
.bungalow-copy p strong { color: var(--ink); font-weight: 700; }
.bungalow .btn { margin-top: 36px; }

.bungalow-media .frame {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    box-shadow: 0 30px 60px -24px rgba(42,36,27,0.35);
    transform: rotate(1deg);
}

.bungalow-facts {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid var(--hairline);
    padding-top: 28px;
}
.fact .fact-value { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.fact .fact-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 6px;
}

/* ---------- About ---------- */
.about { padding: clamp(90px, 13vh, 170px) 0; }
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(40px, 6vw, 110px);
    align-items: center;
}
.about-media { position: relative; }
.about-media .frame {
    overflow: hidden;
    aspect-ratio: 13 / 16;
    border-radius: 12px;
    box-shadow: 0 30px 60px -24px rgba(42,36,27,0.35);
    transform: rotate(-1.2deg);
}
.about-media::after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1.5px solid var(--sun);
    border-radius: 12px;
    z-index: -1;
}
.about h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 380; }
.about h2 em { color: var(--terracotta); }
.about-copy p { margin-top: 24px; color: var(--ink-soft); max-width: 56ch; }
.about-copy p strong { color: var(--ink); font-weight: 700; }
.about-sig {
    margin-top: 36px;
    font-family: var(--hand);
    font-size: 40px;
    color: var(--ink);
    transform: rotate(-3deg);
    display: inline-block;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(90px, 13vh, 170px) 0;
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    bottom: -220px; left: -160px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,91,51,0.35), transparent 70%);
}
.contact .section-label { color: var(--sun); }
.contact .section-label::after { background: rgba(247,241,227,0.2); }
.contact .section-label .num { color: rgba(247,241,227,0.4); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(48px, 6vw, 110px);
    align-items: start;
    position: relative;
}
.contact h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 350; max-width: 12ch; }
.contact h2 em { color: var(--sun); }
.contact-intro p {
    margin-top: 28px;
    color: rgba(247,241,227,0.75);
    max-width: 44ch;
}
.contact-intro .hand-note { color: var(--sun); margin-top: 28px; font-size: 26px; }

.contact-form .form-row { margin-bottom: 8px; }
.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(247,241,227,0.55);
    margin-bottom: 2px;
    padding-top: 18px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(247,241,227,0.28);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 22px;
    padding: 10px 0 14px;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--sun);
}
.contact-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.contact-form ::placeholder { color: rgba(247,241,227,0.3); font-style: italic; }
.contact-form .btn {
    margin-top: 36px;
    background: var(--paper);
    color: var(--ink);
}
.contact-form .btn:hover { background: var(--sun); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(217,156,43,0.5); }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-success { padding: 40px 0; }
.form-success-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 34px;
    color: var(--sun);
}
.form-success-body {
    margin-top: 16px;
    color: rgba(247, 241, 227, 0.75);
    max-width: 40ch;
}
.contact ::selection { background: var(--sun); color: var(--ink); }

/* ---------- Footer ---------- */
footer {
    background: var(--ink);
    color: rgba(247,241,227,0.5);
    padding: 0 0 44px;
    overflow: hidden;
}
.footer-mark {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 350;
    font-size: clamp(4rem, 14.5vw, 15rem);
    line-height: 0.95;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(247,241,227,0.22);
    user-select: none;
    white-space: nowrap;
    transform: translateY(6%);
}
.footer-row {
    border-top: 1px solid rgba(247,241,227,0.12);
    margin-top: 26px;
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    letter-spacing: 0.08em;
}
.footer-row a { color: rgba(247,241,227,0.7); text-decoration: none; }
.footer-row a:hover { color: var(--sun); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 60px);
    background: rgba(42, 36, 27, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner {
    background: var(--paper);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lightbox-inner { transform: translateY(0) scale(1); }
.lightbox-media { background: var(--paper-deep); }
.lightbox-media svg, .lightbox-media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.lightbox-info .work-title { font-size: 34px; }
.lightbox-info .work-meta { margin-top: 12px; }
.lightbox-info .work-price { font-size: 26px; margin-top: 20px; }
.lightbox-info .lightbox-blurb { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }
.lightbox-info .btn { margin-top: 28px; padding-top: 16px; padding-bottom: 16px; justify-content: center; }
.lightbox-close {
    position: absolute;
    top: 22px; right: 26px;
    background: none;
    border: none;
    color: var(--paper);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px;
}
.lightbox-close:hover { color: var(--sun); }

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    .hero-sun { animation: none; }
    .locale .tick { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .studio-grid, .bungalow-grid, .about-grid, .contact-grid, .commission-grid {
        grid-template-columns: 1fr;
    }
    .bungalow-grid .bungalow-media { order: 2; }
    .about-media { max-width: 440px; }
    .commission-media .frame { margin-left: 0; }
    .lightbox-inner { grid-template-columns: 1fr; }
    .lightbox-media { max-height: 44vh; overflow: hidden; }
}

@media (max-width: 820px) {
    /* Single column: block flow avoids a Chrome grid-sizing bug with
       spanning items that forces cards wider than the viewport */
    .works-grid, .collection-grid, .work { display: block; }
    .works-grid .work:nth-child(n), .collection-grid .work:nth-child(n) { margin-top: 0; }
    .works-grid .work + .work, .collection-grid .work + .work { margin-top: 56px; }
    header .locale .locale-time, header .locale .locale-temp { display: none; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .header-inner { padding-top: 14px; padding-bottom: 12px; }
    .nav-toggle { display: block; }

    /* Nav becomes a full-screen overlay. The header's backdrop-filter
       makes it the containing block for fixed descendants, so size the
       overlay explicitly from the header's top-left (which is 0,0)
       rather than with inset. Wordmark and toggle get a higher z-index
       so they stay visible and clickable on top. */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100svh;
        z-index: 1;
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        padding: 90px 40px 48px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    body.nav-open .main-nav { opacity: 1; visibility: visible; }
    .wordmark, .nav-toggle { position: relative; z-index: 2; }
    body.nav-open { overflow: hidden; }
    .main-nav a {
        font-family: var(--serif);
        font-style: italic;
        font-size: 38px;
        font-weight: 400;
        text-transform: none;
        letter-spacing: -0.01em;
        color: var(--ink);
        padding: 6px 0;
    }
    .main-nav a::after { display: none; }
    /* Collection is the only standalone page — sun mark + terracotta */
    .main-nav .nav-collection { color: var(--terracotta); }
    .main-nav .nav-collection::before { content: '✹ '; color: var(--sun); font-style: normal; }

    header .locale { display: none; }
    .locale-hero { display: flex; margin-bottom: 26px; }
    /* Locale line sits right below the eyebrow on mobile — drop the
       redundant role/location from the eyebrow there */
    .eyebrow .eyebrow-extra { display: none; }
    html { scroll-padding-top: 110px; }
    .hero { padding-top: 150px; }
    .hero-sun { opacity: 0.5; }
    .bungalow-facts { grid-template-columns: 1fr 1fr; }
    .footer-mark { white-space: normal; }
}
