/* ------------------------------------------------------------------
   Dabir Latin — the brand lockup typeface.
   Amin Abedi (@aminabedi68), free for personal and commercial use.
   Self-hosted because the CSP allows font-src 'self' only. Latin-only:
   26 upper, 26 lower, and every character the lockup needs.
   Ships as Regular alone, so the 600-weight name line is synthesised by
   the browser rather than pointing at a bold file that does not exist.
   ------------------------------------------------------------------ */
@font-face {
    font-family: 'Dabir Latin';
    src: url('/assets/fonts/dabir-latin.woff2') format('woff2'),
         url('/assets/fonts/dabir-latin.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Header is sized to the brand lockup rather than the other way round. */
    --header-h: 88px;
    --bg: #000;
    --bg-2: #000;
    --bg-3: #070707;
    --ink: #fff;
    --ink-2: #cfcfcf;
    --muted: #949494;
    --line: #171717;
    --line-2: #262626;
    --accent: #fff;
    --brand: #fff;
    --danger: #ff5a5a;
    --success: #50e3a4;
    --header-bg: rgba(0, 0, 0, 0.88);
    --overlay-strong: rgba(0, 0, 0, 0.5);
    --overlay-lightbox: rgba(0, 0, 0, 0.985);
    --overlay-modal: rgba(0, 0, 0, 0.96);
    --glow: rgba(255, 255, 255, 0.04);
    --glow-soft: rgba(255, 255, 255, 0.025);
    --glow-strong: rgba(255, 255, 255, 0.055);
    --img-frame: #000;
    --shadow-hero: rgba(0, 0, 0, 0.6);
    --cta-bg: #fff;
    --cta-text: #000;
    --cta-hover: #e5e5e5;
    --focus-border: #6e6e6e;
    --placeholder: #7d7d7d;
    --logo-filter: brightness(1.8) contrast(1.05);
    --radius: 8px;
    --radius-sm: 6px;
    /* Dabir Latin is the site typeface; Geist covers the few glyphs it lacks
       (an arrow, for one) and stands in until the font file arrives. */
    --font-sans: 'Dabir Latin', 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Small labels, counters and buttons were set in a monospace face. The
       site is Dabir throughout now, so this token keeps its name but points
       at the site face; the monospace stack stays as the fallback. */
    --font-mono: 'Dabir Latin', 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
    --bg: #fafafa;
    --bg-2: #ffffff;
    --bg-3: #f2f2f2;
    --ink: #171717;
    --ink-2: #555;
    --muted: #888;
    --line: #e5e5e5;
    --line-2: #d4d4d4;
    --accent: #171717;
    --brand: #171717;
    --danger: #d9534f;
    --success: #1a8f5a;
    --header-bg: rgba(255, 255, 255, 0.82);
    --overlay-strong: rgba(255, 255, 255, 0.75);
    --overlay-lightbox: rgba(20, 20, 20, 0.92);
    --overlay-modal: rgba(20, 20, 20, 0.72);
    --glow: rgba(0, 0, 0, 0.04);
    --glow-soft: rgba(0, 0, 0, 0.025);
    --glow-strong: rgba(0, 0, 0, 0.06);
    --img-frame: #eaeaea;
    --shadow-hero: rgba(0, 0, 0, 0.15);
    --cta-bg: #171717;
    --cta-text: #ffffff;
    --cta-hover: #333333;
    --focus-border: #999;
    --placeholder: #aaa;
    --logo-filter: none;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    /* Dabir Latin has a 0.402 x-height where Geist has ~0.52, so without this
       every size renders roughly a quarter smaller than it reads on paper.
       Browsers without support simply use the nominal size. */
    font-size-adjust: 0.52;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: var(--ink); opacity: 1; }

img { max-width: 100%; display: block; }

button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    color: inherit;
}

/* ---------- Header (Vercel-style) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
}

/* Left cluster: mark + slash + name */
.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 6px;
    transition: opacity 0.15s ease;
}
.brand-logo img {
    height: 44px;
    width: auto;
    display: block;
    /* Logo has transparent background; lift the dark navy so it reads on dark bg */
    filter: var(--logo-filter);
}
.brand-lockup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}
.brand-text {
    font-family: var(--font-sans);
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
    line-height: 1.2;
}
.brand-secondary {
    font-family: var(--font-sans);
    font-size: clamp(11px, 1.15vw, 16px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--muted, #8a8a8a);
    line-height: 1.2;
    white-space: nowrap;
}
.brand-logo:hover { opacity: 0.85; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.brand-mark .triangle {
    width: 22px;
    height: 20px;
    background: var(--ink);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    display: inline-block;
}
.brand-sep {
    color: var(--line-2);
    display: inline-flex;
    align-items: center;
    margin: 0 -0.15rem;
}
.brand-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 6px;
    border-radius: 6px;
}
.brand-name:hover { background: var(--bg-3); color: var(--ink); }
.brand-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 2px 8px;
    letter-spacing: 0;
}

/* Center: primary nav (text-only) */
.nav-center {
    display: flex;
    justify-content: center;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 100%;
}
.nav-links li { position: relative; display: flex; align-items: center; height: var(--header-h); }
.nav-links a {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--ink-2);
    padding: 0 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
    transition: color 0.15s ease;
    text-transform: none;
    background: transparent;
    border-radius: 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s var(--ease);
    border-radius: 2px;
}
.nav-links a:hover { color: var(--ink); background: transparent; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active {
    color: var(--ink);
    background: transparent;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-size: 14px;
}
.nav-links a.active::after { transform: scaleX(1); }

/* Right cluster: icons + CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.icon-link {
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}
.icon-link:hover { color: var(--ink); background: var(--bg-3); }

.cta-btn {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--cta-text);
    background: var(--cta-bg);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-left: 0.35rem;
    transition: background 0.15s ease;
    border: 1px solid var(--cta-bg);
}
.cta-btn:hover { background: var(--cta-hover); color: var(--cta-text); border-color: var(--cta-hover); }

.tagline { display: none; }

.menu-toggle { display: none; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--ink-2);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); background: var(--bg-3); }
.theme-toggle svg { width: 16px; height: 16px; display: inline-block; }
/* Default (dark) shows sun (to switch to light); light shows moon */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: inline-block; }

/* ---------- Slideshow / Hero ---------- */
.slideshow {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    min-height: 560px;
    max-height: 900px;
    background: var(--bg);
    overflow: hidden;
}

/* Radial glow */
.slideshow::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 50% -10%, var(--glow-strong), transparent 70%),
        radial-gradient(800px 400px at 80% 100%, var(--glow-soft), transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.7s var(--ease);
    background: var(--bg);
}
.slide.active { opacity: 1; z-index: 1; }

.slide img {
    max-width: min(1000px, 92%);
    max-height: 82%;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px var(--shadow-hero);
}

.slide-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-2);
    letter-spacing: 0;
    z-index: 4;
    padding: 0.4rem 0.8rem;
    background: var(--overlay-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* ---------- Section basics ---------- */
.section-heading {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: left;
    letter-spacing: -0.035em;
    text-transform: none;
    margin-bottom: 3rem;
    color: var(--ink);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* ---------- Galleries / Projects ---------- */
.galleries {
    padding: 6rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.galleries .section-heading { padding: 0; margin-bottom: 3rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-card {
    display: block;
    text-align: left;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.gallery-card:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
}

.gallery-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--img-frame);
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.gallery-card:hover .gallery-img img { transform: scale(1.03); }
.gallery-card:hover h3 { color: var(--ink); }

.gallery-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
    padding: 1rem 1.25rem 0.25rem;
    transition: color 0.2s ease;
}

.gallery-card span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    padding: 0 1.25rem 1.1rem;
    display: block;
}

/* ---------- About ---------- */
.about {
    background: var(--bg);
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 90% 20%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}

.about-inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-image {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-2);
    position: sticky;
    top: 90px;
}
.about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-copy h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.035em;
    text-transform: none;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.about-copy p {
    font-size: 1.2rem;
    color: var(--ink-2);
    margin-bottom: 1rem;
    max-width: 68ch;
    line-height: 1.7;
}
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-paragraph {
    max-width: 68ch;
    margin-bottom: 1rem;
    color: var(--ink-2);
    font-size: 1.2rem;
    line-height: 1.65;
}
.about-paragraph p { margin: 0 0 1rem; }
.about-paragraph p:last-child { margin-bottom: 0; }
.about-paragraph strong { color: var(--ink); font-weight: 600; }
.about-paragraph a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.about-paragraph h1,
.about-paragraph h2,
.about-paragraph h3,
.about-paragraph h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 1rem 0 0.5rem; }
.about-paragraph ul,
.about-paragraph ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.about-paragraph li { margin-bottom: 0.25rem; }
.about-paragraph blockquote { border-left: 3px solid var(--line-2); color: var(--ink-2); padding: 4px 12px; margin: 0.75rem 0; font-style: italic; }
.about-paragraph img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.5rem 0; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 14px;
    letter-spacing: -0.01em;
    text-transform: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    color: var(--ink);
    background: var(--bg-2);
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.text-link:hover { background: var(--bg-3); border-color: var(--line-2); color: var(--ink); }

.press-heading {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
    margin: 2.5rem 0 1rem;
    color: var(--ink-2);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.press-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    max-width: 620px;
}

.press-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}
.press-list li:last-child { border-bottom: 1px solid var(--line); }

.press-list a {
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s ease;
}
.press-list a::after {
    content: '↗';
    font-size: 12px;
    opacity: 0.6;
}
.press-list a:hover { color: var(--ink); opacity: 1; }

/* ---------- Link band (feature cards) ---------- */
.link-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.link-band a {
    padding: 2rem 1.75rem;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    color: var(--ink);
    display: block;
}
.link-band a:last-child { border-right: 1px solid var(--line); }
.link-band a:hover {
    background: var(--bg-3);
    border-color: var(--line-2);
    color: var(--ink);
    transform: translateY(-2px);
}
.link-band a:hover span { color: var(--ink); }

.link-band span {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-transform: none;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-weight: 600;
    transition: color 0.15s ease;
}

.link-band em {
    font-family: var(--font-sans);
    font-style: normal;
    color: var(--ink-2);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

/* ---------- Contact ---------- */
.contact {
    padding: 8rem 1.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, var(--glow), transparent 70%);
    pointer-events: none;
}

.contact h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em;
    text-transform: none;
    margin-bottom: 1rem;
    color: var(--ink);
    position: relative;
}

.contact > p {
    color: var(--ink-2);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    position: relative;
}

.email {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.25rem;
    color: var(--ink);
    background: var(--bg-2);
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
}
.email:hover { background: var(--bg-3); border-color: var(--line-2); color: var(--ink); }

.socials {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.socials a {
    font-size: 13px;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink-2);
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.socials a:hover { color: var(--ink); background: var(--bg-3); border-color: var(--line-2); }

/* ---------- Blog ---------- */
.blog {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}
.blog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 10% 0%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}
.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.section-head .section-heading {
    margin: 0;
    padding: 0;
    max-width: none;
}
.section-sub {
    color: var(--ink-2);
    font-size: 1.2rem;
    font-family: var(--font-mono);
    letter-spacing: 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-align: left;
    color: inherit;
}
.blog-card:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
}
.blog-card .cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--img-frame);
    border-bottom: 1px solid var(--line);
}
.blog-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.blog-card:hover .cover img { transform: scale(1.03); }
.blog-card .body {
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card .meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.blog-card .meta .dot { width: 3px; height: 3px; background: var(--ink-2); border-radius: 50%; }
.blog-card h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.blog-card p {
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .read-more {
    margin-top: auto;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.blog-card .read-more::after { content: '→'; transition: transform 0.15s ease; }
.blog-card:hover .read-more::after { transform: translateX(3px); }

/* Blog post modal */
.blog-post {
    position: fixed;
    inset: 0;
    background: var(--overlay-modal);
    backdrop-filter: blur(8px);
    z-index: 2000;
    overflow-y: auto;
    display: none;
    padding: 4rem 1.5rem;
}
.blog-post.active { display: block; }
.blog-post .wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.blog-post .close-btn {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 20px;
    cursor: pointer;
}
.blog-post .close-btn:hover { background: var(--bg-3); border-color: var(--line-2); }
.blog-post .hero {
    aspect-ratio: 16 / 9;
    background: var(--img-frame);
    border-bottom: 1px solid var(--line);
}
.blog-post .hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-post .content {
    padding: 2.5rem 2rem;
}
.blog-post .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.blog-post h1 {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.blog-post .body {
    color: var(--ink-2);
    font-size: 1.25rem;
    line-height: 1.7;
}
.blog-post .body p { margin-bottom: 1.1rem; }
.blog-post .body strong { color: var(--ink); font-weight: 600; }
.blog-post .body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Street PhotoTherapy ---------- */
.phototherapy {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}
.phototherapy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 90% 0%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}
.phototherapy .section-inner { position: relative; z-index: 1; }
.pt-body {
    max-width: 780px;
    margin: 0 auto;
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.85;
}
.pt-body p { margin-bottom: 1.1rem; color: var(--ink-2); }
.pt-body p:first-child { color: var(--ink); font-size: 1.075rem; }
.pt-body .pt-link { margin-top: 1.5rem; }
.pt-body .pt-link a {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.pt-body .pt-link a:hover { color: var(--ink-2); }

/* ---------- Exhibitions ---------- */
.exhibitions {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}
.exhibitions::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 20% 100%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}
.exhibitions .section-inner { position: relative; z-index: 1; }
.exh-series { margin-top: 3rem; }
.exh-series:first-of-type { margin-top: 2rem; }
.exh-series-head { margin-bottom: 1.25rem; }
.exh-series-head h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}
.exh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.exh-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease;
}
.exh-card:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); }
.exh-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--muted);
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    line-height: 1;
    align-self: start;
}
.exh-body h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.exh-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-2);
    letter-spacing: 0.02em;
    margin: 0;
}
.exh-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--ink);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.exh-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--img-frame);
    grid-column: 1 / -1;
    margin-bottom: 0.75rem;
}
.exh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exh-desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.55;
    margin: 0.35rem 0 0;
}
.exh-desc p { margin: 0 0 0.5rem; }
.exh-desc p:last-child { margin-bottom: 0; }
.exh-desc strong { color: var(--ink); font-weight: 600; }
.exh-desc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.exh-desc ul,
.exh-desc ol { padding-left: 1.25rem; margin: 0 0 0.5rem; }
.exh-desc li { margin-bottom: 0.15rem; }
.exh-desc blockquote { border-left: 2px solid var(--line-2); color: var(--ink-2); padding: 2px 10px; margin: 0.4rem 0; font-style: italic; }
.exh-desc h1, .exh-desc h2, .exh-desc h3, .exh-desc h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 0.6rem 0 0.35rem; font-size: 14px; }
.exh-desc img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.4rem 0; }
.exh-link {
    margin: 0.6rem 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}
.exh-link a { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.exh-link a:hover { color: var(--ink-2); }

/* Form required marker */
.collab-form .req { color: var(--danger); margin-left: 2px; }

/* ---------- Collaboration Form ---------- */
.collab {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}
.collab::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 400px at 90% 100%, var(--glow), transparent 60%),
        radial-gradient(500px 300px at 10% 20%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}
.collab-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
}
.collab-copy .eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-2);
    display: inline-block;
    margin-bottom: 1rem;
    padding: 4px 10px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: 999px;
}
.collab-copy h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.1;
}
.collab-copy > p {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 520px;
}
.collab-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.collab-meta li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    align-items: center;
}
.collab-meta li > span:first-child {
    font-family: var(--font-mono);
    color: var(--ink-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.collab-meta li a, .collab-meta li .v { color: var(--ink); }
.collab-meta li a:hover { color: var(--ink-2); }

.collab-form {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.collab-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.collab-form .field { display: flex; flex-direction: column; gap: 0.4rem; }
.collab-form label {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-2);
    font-weight: 500;
}
.collab-form label .opt { text-transform: none; letter-spacing: 0; color: var(--placeholder); }
.collab-form input,
.collab-form textarea,
.collab-form select {
    width: 100%;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.collab-form input::placeholder, .collab-form textarea::placeholder { color: var(--placeholder); }
.collab-form input:focus,
.collab-form textarea:focus,
.collab-form select:focus {
    outline: none;
    border-color: var(--focus-border);
    background: var(--bg-3);
}
.collab-form textarea {
    resize: vertical;
    min-height: 130px;
    font-family: var(--font-sans);
    line-height: 1.5;
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.form-status { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }
.submit-btn {
    background: var(--cta-bg);
    color: var(--cta-text);
    border: 1px solid var(--cta-bg);
    border-radius: var(--radius);
    padding: 0.65rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.submit-btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.anchor { position: relative; top: -70px; display: block; }

/* ---------- Newsletter ---------- */
.newsletter {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}
.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 90% 100%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}
.newsletter .section-inner { max-width: 720px; }
.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: stretch;
}
.newsletter-form input[type=email] {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 17px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.newsletter-form input[type=email]::placeholder { color: var(--placeholder); }
.newsletter-form input[type=email]:focus {
    outline: none;
    border-color: var(--focus-border);
    background: var(--bg-3);
}
.newsletter-form .cta {
    background: var(--cta-bg);
    color: var(--cta-text);
    border: 1px solid var(--cta-bg);
    border-radius: var(--radius);
    padding: 0.85rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.15s ease;
}
.newsletter-form .cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.newsletter-form .cta:disabled { opacity: 0.5; cursor: not-allowed; }
.newsletter-status {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-2);
    min-height: 1em;
    margin-top: 0.25rem;
}
.newsletter-status.success { color: var(--success); }
.newsletter-status.error { color: var(--danger); }
.newsletter-note {
    grid-column: 1 / -1;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0;
    margin: 0.5rem 0 0;
}
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
@media (max-width: 640px) {
    .newsletter-form { grid-template-columns: 1fr; }
    .newsletter { padding: 4rem 1rem; }
}

/* Ensure rich-HTML blog bodies render nicely inside blog post modal */
.blog-post .body h1,
.blog-post .body h2,
.blog-post .body h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 1.4rem 0 0.6rem; }
.blog-post .body h1 { font-size: 1.8rem; }
.blog-post .body h2 { font-size: 1.4rem; }
.blog-post .body h3 { font-size: 1.15rem; }
.blog-post .body p { margin: 0 0 1rem; }
.blog-post .body ul,
.blog-post .body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.blog-post .body li { margin-bottom: 0.25rem; }
.blog-post .body blockquote {
    border-left: 3px solid var(--line-2);
    color: var(--ink-2);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
}
.blog-post .body a { color: var(--ink); text-decoration: underline; }
.blog-post .body img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.75rem 0; }
.blog-post .body pre,
.blog-post .body code {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
}
.blog-post .body pre { padding: 0.85rem 1rem; overflow-x: auto; white-space: pre-wrap; }
.blog-post .body code { padding: 0.1em 0.35em; }
.blog-post .body pre code { padding: 0; border: 0; background: transparent; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0;
    color: var(--muted);
    text-transform: none;
    background: var(--bg);
}

.site-footer {
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-credit {
    color: var(--ink-2);
    font-size: 13px;
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
}
.footer-credit a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-2);
    transition: border-color 0.2s ease, color 0.15s ease;
    padding-bottom: 1px;
}
.footer-credit a:hover {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay-lightbox);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--ink);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lb-close:hover { background: var(--bg-3); border-color: var(--line-2); color: var(--ink); transform: none; }

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lb-arrow:hover { background: var(--bg-3); border-color: var(--line-2); color: var(--ink); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .site-header { padding: 0 1rem; height: 60px; }
    .nav-wrap { grid-template-columns: auto 1fr auto; gap: 0.75rem; }
    .brand-name { font-size: 13px; }
    .brand-badge { display: none; }
    .brand-logo img { height: 34px; }
    .brand-secondary { display: none; }
    .brand-text { font-size: 18px; }

    .nav-center { justify-content: flex-end; }
    .nav-links {
        position: fixed;
        inset: 56px 0 0 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.25s var(--ease);
        padding: 1rem;
        border-top: 1px solid var(--line);
        height: auto;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links li { height: auto; display: block; }
    .nav-links a {
        font-size: 1rem;
        padding: 1rem 1rem;
        border-radius: var(--radius-sm);
        height: auto;
        color: var(--ink);
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover { background: var(--bg-3); }

    .cta-btn { display: none; }
    .nav-right .icon-link:first-child { display: inline-flex; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 32px;
        height: 32px;
        z-index: 300;
        position: relative;
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        background: var(--bg-2);
    }
    .menu-toggle span {
        display: block;
        width: 14px;
        height: 1.5px;
        background: var(--ink);
        margin: 0 auto;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .menu-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

    .slideshow { height: calc(100vh - 56px); min-height: 420px; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image { position: relative; top: 0; max-width: 320px; }
    .about-copy { text-align: left; }
    .about-copy p { margin-left: 0; margin-right: 0; }

    .link-band { grid-template-columns: 1fr; padding: 4rem 1rem; }
    .link-band a { padding: 1.5rem 1.25rem; }

    .galleries { padding: 4rem 1rem; }
    .about, .contact { padding: 4rem 1rem; }
    .contact { padding-top: 5rem; padding-bottom: 5rem; }

    .blog { padding: 4rem 1rem; }
    .phototherapy, .exhibitions { padding: 4rem 1rem; }
    .exh-card { grid-template-columns: 1fr; gap: 0.5rem; }
    .exh-num { justify-self: start; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .collab { padding: 4rem 1rem; }
    .collab-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .collab-form { padding: 1.5rem; }
    .collab-form .field-row { grid-template-columns: 1fr; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .submit-btn { width: 100%; }
    .collab-meta li { grid-template-columns: 1fr; gap: 0.2rem; }

    .email { font-size: 0.95rem; }
    .socials { gap: 0.5rem; flex-wrap: wrap; }
}

@media (max-width: 500px) {
    .brand-name { font-size: 12px; }
    .slideshow { min-height: 380px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .slide img { max-width: 94%; }
}

/* -------- i18n language toggle -------- */
.lang-toggle .lang-code {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
}
.lang-toggle {
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* -------- RTL support -------- */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .nav-right { flex-direction: row-reverse; }
html[dir="rtl"] .nav-left { text-align: right; }
html[dir="rtl"] .about-copy,
html[dir="rtl"] .pt-body,
html[dir="rtl"] .collab-copy,
html[dir="rtl"] .section-head { text-align: right; }
html[dir="rtl"] .press-list { padding-right: 1.2rem; padding-left: 0; }
html[dir="rtl"] .text-link::after,
html[dir="rtl"] .pt-link a::after,
html[dir="rtl"] .exh-link a::after { content: ""; }
html[dir="rtl"] .footer,
html[dir="rtl"] .site-footer-inner { text-align: center; }
html[dir="rtl"] .slide-caption,
html[dir="rtl"] .field label { text-align: right; }
html[dir="rtl"] input,
html[dir="rtl"] textarea { text-align: right; }


/* ============================================================
   Project detail pages (/projects/<slug>)
   ============================================================ */
.project-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
}
.project-hero { margin-bottom: 2.5rem; }
.project-back {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--muted, #8a8a8a);
    margin-bottom: 1.5rem;
    transition: color 0.15s ease;
}
.project-back:hover { color: var(--ink); }
.project-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.project-period {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--muted, #8a8a8a);
    margin: 0;
}
.project-standfirst {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-style: italic;
    line-height: 1.5;
    margin: 1.25rem 0 0;
    max-width: 46ch;
    color: var(--ink);
}
.project-body {
    max-width: none;
    margin: 0 0 3.5rem;
}
.project-body p {
    font-size: 1.5rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    color: var(--body, var(--ink));
}
.project-body p:last-child { margin-bottom: 0; }

/* The photographs sit above the words: one large stage with a thumbnail
   strip beneath it, so a twenty-picture project is one click deep rather
   than a long scroll. */
.project-stage { margin: 0 0 2.5rem; }
.stage-main {
    position: relative;
    background: var(--bg-2, #000);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.stage-main img {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 780px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.stage-main:hover .stage-nav,
.stage-main:focus-within .stage-nav { opacity: 1; }
.stage-nav:hover { background: rgba(0, 0, 0, 0.72); }
.stage-nav.prev { left: 12px; }
.stage-nav.next { right: 12px; }
.stage-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 9px;
    border-radius: 999px;
}
.stage-caption {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted, #8a8a8a);
    margin: 0.75rem 0 0;
    max-width: 70ch;
}
.stage-caption[hidden] { display: none; }
.stage-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 0.9rem;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.stage-thumb {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    opacity: 0.5;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: opacity 0.15s ease, outline-color 0.15s ease;
}
.stage-thumb img { width: 92px; height: 66px; object-fit: cover; display: block; }
.stage-thumb:hover { opacity: 0.85; }
.stage-thumb.is-active { opacity: 1; outline-color: var(--ink); }
.stage-thumb.is-missing { display: none; }

.project-more { margin-top: 4.5rem; }
.project-more h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 1.5rem;
    color: var(--muted, #8a8a8a);
}
.project-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* Lightbox */
.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 4.5rem;
    background: rgba(0, 0, 0, 0.94);
}
.project-lightbox[hidden] { display: none; }
.project-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    object-fit: contain;
}
.project-lightbox-caption {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 60ch;
    margin: 0;
}
.project-lightbox-close,
.project-lightbox-nav {
    position: absolute;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}
.project-lightbox-close:hover,
.project-lightbox-nav:hover { color: #fff; }
.project-lightbox-close { top: 1.25rem; right: 1.5rem; font-size: 2rem; }
.project-lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0 1rem; }
.project-lightbox-nav.prev { left: 0.5rem; }
.project-lightbox-nav.next { right: 0.5rem; }

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (max-width: 700px) {
    .project-page { padding: 5.5rem 1rem 3rem; }
    .stage-main { min-height: 200px; }
    .stage-nav { opacity: 1; width: 38px; height: 38px; font-size: 22px; }
    .stage-thumb img { width: 68px; height: 50px; }
    .project-lightbox { padding: 3.5rem 1rem; }
    .project-lightbox-nav { font-size: 2rem; padding: 0 0.35rem; }
}

.project-subheading {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 2.5rem 0 1rem;
    color: var(--ink);
}
.project-body p a {
    color: var(--accent, #e88800);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s ease;
}
.project-body p a:hover { opacity: 0.75; }

/* ============================================================
   Photo galleries on blog posts and exhibitions
   ============================================================ */
.entry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}
.entry-gallery figure {
    margin: 0;
    background: var(--card-bg, rgba(255, 255, 255, 0.02));
    border-radius: 4px;
    overflow: hidden;
}
.entry-gallery img {
    display: block;
    width: 100%;
    height: auto;
}
.entry-gallery figcaption {
    font-size: 12.5px;
    line-height: 1.45;
    padding: 0.5rem 0.65rem 0.7rem;
    color: var(--muted, #8a8a8a);
}
@media (max-width: 700px) {
    .entry-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
