/* ==========================================================================
   Luke Beattie Photography — public site design system
   Dark cinematic editorial. Fraunces (display) + Inter (text).
   Motion is driven by GSAP in /assets/js/site.js; everything here must
   degrade to a fully readable page when JS or motion is unavailable
   (see the prefers-reduced-motion and .no-js rules at the bottom).
   The admin area intentionally does NOT use this file -- it keeps
   /style.css, so nothing in here may leak into /admin.
   ========================================================================== */

:root {
    --bg: #0b0d10;
    --bg-raised: #12151a;
    --ink: #f2efe9;
    --ink-muted: rgba(242, 239, 233, 0.58);
    --ink-faint: rgba(242, 239, 233, 0.32);
    --hairline: rgba(242, 239, 233, 0.14);
    --accent: #c8a96e;
    --accent-deep: #a3854c;

    --font-display: 'Fraunces', 'Georgia', serif;
    --font-text: 'Inter', 'Helvetica Neue', sans-serif;

    /* Fluid type scale */
    --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
    --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
    --text-md: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    --text-lg: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
    --text-xl: clamp(1.9rem, 1.4rem + 2.4vw, 3.4rem);
    --text-hero: clamp(2.6rem, 1.6rem + 5.5vw, 6.5rem);

    --space: clamp(1rem, 0.8rem + 1vw, 1.75rem);
    --section-pad: clamp(4.5rem, 3rem + 7vw, 9rem);
    --side-pad: clamp(1.25rem, 4vw, 4rem);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--text-md);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

/* Several components (e.g. .nav-overlay a) set `display` on descendant
   anchors for their own layout, which has higher specificity than the
   browser's default [hidden] rule and would otherwise silently override it
   -- most visibly for .social-link, which relies on `hidden` to stay
   invisible until an admin publishes it. */
[hidden] {
    display: none !important;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.preloader-wordmark {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.01em;
    display: flex;
    overflow: hidden;
}

.preloader-wordmark span {
    display: inline-block;
    white-space: pre;
}

.preloader-count {
    font-size: var(--text-xs);
    letter-spacing: 0.35em;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.preloader.is-done {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Custom cursor (pointer: fine only; enabled by JS adding .has-cursor)
   -------------------------------------------------------------------------- */
.cursor-dot {
    display: none;
}

body.has-cursor .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 400;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.25s var(--ease-out);
}

body.has-cursor .cursor-dot.is-active {
    transform: scale(4);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem var(--side-pad);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.site-header.is-scrolled {
    background: rgba(11, 13, 16, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.wordmark {
    text-decoration: none;
    line-height: 1.1;
    z-index: 220;
    display: inline-flex;
    align-items: center;
}

.wordmark-logo {
    height: clamp(2.2rem, 1.9rem + 1vw, 2.75rem);
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    font-size: var(--text-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-muted);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Instagram/Facebook/YouTube icons -- hidden by default, revealed by
   assets/js/site.js only for platforms an admin has published a URL for
   (see /api/social). Sits at the end of the desktop nav row. */
.social-links {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin-left: 0.5rem;
}

.social-link {
    color: var(--ink-muted);
    font-size: 1.425rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* .site-nav a (above) sets a small font-size for the text links and, being
   a class+element selector, has higher specificity than .social-link alone
   -- overriding it back down and making the header icons render far
   smaller than intended. Restated here at matching specificity so the
   icons keep their real size. */
.site-nav .social-link {
    font-size: 1.425rem;
}

.social-link:hover {
    color: var(--accent);
}

/* Burger (mobile) */
.nav-toggle {
    display: none;
    z-index: 220;
    background: none;
    border: none;
    padding: 0.6rem 0.2rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    margin: 6px 0;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Full-screen mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(11, 13, 16, 0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--side-pad);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

body.nav-open .nav-overlay {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.45s ease;
}

.nav-overlay a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 350;
    text-decoration: none;
    padding: 0.35rem 0;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(28px);
}

.nav-overlay a small {
    font-family: var(--font-text);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--accent);
}

body.nav-open .nav-overlay a {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

body.nav-open .nav-overlay a:nth-child(1) { transition-delay: 0.10s; }
body.nav-open .nav-overlay a:nth-child(2) { transition-delay: 0.16s; }
body.nav-open .nav-overlay a:nth-child(3) { transition-delay: 0.22s; }
body.nav-open .nav-overlay a:nth-child(4) { transition-delay: 0.28s; }
body.nav-open .nav-overlay a:nth-child(5) { transition-delay: 0.34s; }
body.nav-open .nav-overlay a:nth-child(6) { transition-delay: 0.40s; }
body.nav-open .nav-overlay a:nth-child(7) { transition-delay: 0.46s; }

body.nav-open {
    overflow: hidden;
}

/* Same icons as .social-links, shown at the bottom of the full-screen
   mobile menu (hidden there too until an admin publishes a URL). */
.nav-overlay-social {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.nav-overlay-social .social-link {
    font-size: 2.1rem;
    color: var(--ink-muted);
    padding: 0;
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-canvas,
.hero-fallback {
    position: absolute;
    inset: 0;
}

.hero-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-fallback img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero-fallback img.is-active {
    opacity: 1;
}

.hero::after {
    /* Legibility scrim over the imagery -- the top stop stays dark enough
       (see #32) that the fixed nav text reads consistently regardless of
       how bright the underlying photo is, not just at the bottom where the
       hero title sits. */
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(11, 13, 16, 0.92) 0%, rgba(11, 13, 16, 0.3) 45%, rgba(11, 13, 16, 0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 var(--side-pad) clamp(3rem, 8vh, 6rem);
}

.hero-kicker {
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1.2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 320;
    font-size: var(--text-hero);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0 0 1.4rem;
    max-width: 12ch;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    color: var(--ink-muted);
    font-size: var(--text-md);
    max-width: 44ch;
    margin: 0 0 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-scroll {
    position: absolute;
    right: var(--side-pad);
    bottom: clamp(3rem, 8vh, 6rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-faint);
    writing-mode: vertical-rl;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

@media (max-width: 700px) {
    .hero-scroll {
        display: none;
    }
}

/* Word-reveal helper: JS wraps [data-split] words in these */
.split-line {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.split-word {
    display: inline-block;
    will-change: transform;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-text);
    font-size: var(--text-xs);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 1rem 2.2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform 0.45s var(--ease-out);
    z-index: -1;
}

.btn:hover {
    color: var(--bg);
    border-color: var(--accent);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-solid {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.btn-solid::before {
    background: var(--ink);
}

.link-arrow {
    font-size: var(--text-xs);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.link-arrow::after {
    content: '\2192';
    transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover::after {
    transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Section primitives
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-pad) var(--side-pad);
    position: relative;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.kicker {
    font-size: var(--text-xs);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kicker::before {
    content: '';
    width: 42px;
    height: 1px;
    background: var(--accent);
}

.heading {
    font-family: var(--font-display);
    font-weight: 320;
    font-size: var(--text-xl);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}

.heading em {
    font-style: italic;
    color: var(--accent);
}

.lede {
    color: var(--ink-muted);
    max-width: 58ch;
}

/* Reveal-on-scroll initial states are applied by JS (so no-JS users see
   everything); these classes only define the composited properties. */
[data-reveal] {
    will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 1.4rem 0;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    gap: 3.5rem;
    padding-right: 3.5rem;
    will-change: transform;
}

.marquee-track span {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 320;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    color: var(--ink-faint);
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
}

.marquee-track span::after {
    content: '\2726';
    font-size: 0.8em;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   About split (home + category pages)
   -------------------------------------------------------------------------- */
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

.split-media {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4 / 5;
}

.split-media img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    will-change: transform;
}

.split-media a {
    display: block;
    height: 100%;
}

.split-body .heading {
    max-width: 16ch;
}

.split-body p {
    color: var(--ink-muted);
    max-width: 52ch;
}

.split-body .btn {
    margin-top: 1.5rem;
}

@media (max-width: 860px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-media {
        aspect-ratio: 4 / 3;
    }
}

/* --------------------------------------------------------------------------
   Disciplines index (home)
   -------------------------------------------------------------------------- */
.disciplines {
    border-top: 1px solid var(--hairline);
}

.discipline-row {
    display: flex;
    align-items: baseline;
    gap: clamp(1rem, 4vw, 3rem);
    padding: clamp(1.6rem, 4vw, 2.8rem) 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    position: relative;
    transition: padding-left 0.5s var(--ease-out);
}

.discipline-row:hover {
    padding-left: clamp(0.5rem, 2vw, 1.5rem);
}

.discipline-index {
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.discipline-name {
    font-family: var(--font-display);
    font-weight: 320;
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 1;
    transition: color 0.35s ease, font-style 0.35s ease;
}

.discipline-row:hover .discipline-name {
    color: var(--accent);
    font-style: italic;
}

.discipline-blurb {
    margin-left: auto;
    color: var(--ink-muted);
    font-size: var(--text-sm);
    max-width: 26ch;
    text-align: right;
}

@media (max-width: 700px) {
    .discipline-blurb {
        display: none;
    }
}

/* Floating hover preview (desktop only, driven by JS) */
.discipline-preview {
    position: fixed;
    z-index: 90;
    width: min(300px, 24vw);
    aspect-ratio: 3 / 4;
    pointer-events: none;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.9);
}

.discipline-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Testimonials (home)
   -------------------------------------------------------------------------- */
.quotes {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    min-height: 16rem;
}

.quote-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    opacity: 0;
    visibility: hidden;
}

.quote-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.quote-text {
    font-family: var(--font-display);
    font-weight: 320;
    font-style: italic;
    font-size: var(--text-lg);
    line-height: 1.45;
    margin: 0;
}

.quote-client {
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
}

.quote-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--ink-faint);
    background: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.quote-dots button.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
    text-align: center;
    border-top: 1px solid var(--hairline);
}

.cta-band .heading {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 2rem var(--side-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    color: var(--ink-faint);
}

.site-footer nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-footer a {
    color: var(--ink-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink);
}

/* Same .social-links/.social-link markup as the header, reused here so a
   platform only shows once an admin has published it -- sits inside the
   footer nav, to the left of Gallery/Reviews/Contact. */
.site-footer .social-links {
    margin-left: 0;
    margin-right: 0.25rem;
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding: calc(var(--section-pad) + 4rem) var(--side-pad) var(--section-pad);
}

.page-hero .heading {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    max-width: 14ch;
}

/* Category hero band with image */
.category-hero {
    position: relative;
    min-height: 72svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.category-hero-media {
    position: absolute;
    inset: 0;
}

.category-hero-media img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
}

.category-hero::after {
    /* Top stop kept dark enough that nav text stays readable over bright
       photos (see #32), not just a light vignette at the very top. */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 13, 16, 0.95), rgba(11, 13, 16, 0.35) 55%, rgba(11, 13, 16, 0.6) 100%);
}

.category-hero .hero-content {
    padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.filter-bar button {
    font-family: var(--font-text);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-bar button:hover {
    color: var(--ink);
    border-color: var(--ink-muted);
}

.filter-bar button.is-active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

/* Tag pills sit a level below the category filter -- smaller, and
   multi-select (toggle on/off) rather than the category row's single
   active pill. */
.tag-filter-bar {
    margin-top: -1.2rem;
}

.tag-filter-bar button {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
    opacity: 0.85;
}

.tag-filter-bar:empty {
    display: none;
}

.masonry {
    columns: 3 320px;
    column-gap: 1.25rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    display: block;
}

.masonry-item img {
    width: 100%;
    transition: transform 0.7s var(--ease-out), filter 0.7s ease;
}

.masonry-item:hover img {
    transform: scale(1.04);
}

.masonry-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 1.1rem 0.9rem;
    background: linear-gradient(to top, rgba(11, 13, 16, 0.85), transparent);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.masonry-item:hover figcaption {
    opacity: 1;
    transform: none;
}

.badge-video {
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    color: var(--bg);
    background: var(--accent);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    flex-shrink: 0;
}

.gallery-empty {
    color: var(--ink-muted);
    text-align: center;
    padding: 4rem 0;
}

/* Category page grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-grid .masonry-item {
    margin-bottom: 0;
    aspect-ratio: 3 / 4;
}

.feature-grid .masonry-item img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 860px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid .masonry-item {
        aspect-ratio: 3 / 2;
    }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(7, 8, 10, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 2px;
}

.lightbox-caption {
    position: absolute;
    bottom: clamp(1rem, 4vh, 2.5rem);
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--text-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    border-color: var(--accent);
    background: rgba(200, 169, 110, 0.12);
}

.lightbox-close {
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
}

.lightbox-prev {
    left: clamp(0.5rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: clamp(0.5rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 700px) {
    .lightbox-prev,
    .lightbox-next {
        display: none; /* swipe instead */
    }
}

/* --------------------------------------------------------------------------
   Reviews page
   -------------------------------------------------------------------------- */
.review-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.review-entry {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    border-bottom: 1px solid var(--hairline);
}

.review-entry:last-child {
    border-bottom: none;
}

.review-entry .quote-text {
    font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
    margin-bottom: 1.2rem;
}

.review-meta {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.review-meta .review-client {
    color: var(--accent);
}

.review-meta .review-date {
    color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.field input,
.field textarea {
    background: none;
    border: none;
    border-bottom: 1px solid var(--hairline);
    padding: 0.7rem 0;
    font-family: var(--font-text);
    font-size: var(--text-md);
    color: var(--ink);
    border-radius: 0;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-status {
    min-height: 1.5em;
    color: var(--accent);
    font-size: var(--text-sm);
}

.form-status:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   Motion preferences / no-JS safety nets
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
}
