:root {
    --bg: #f7f6f3;
    --surface: #ffffff;
    --border: #e6eae5;
    --text: #3a4238;
    --muted: #8b9187;
    --accent: #8f9d89;
    --accent-hot: #7a8a74;
    --badge: #e8e2d8;
    --badge-text: #5a6356;
    --line: #e6eae5;
    --shadow: 0 10px 32px rgba(58, 66, 56, 0.06);
    --radius: 18px;
    --header-h: 64px;
    --header-bg: rgba(247, 246, 243, 0.9);
    --header-bg-solid: rgba(247, 246, 243, 0.97);
    --header-shadow: 0 8px 24px rgba(58, 66, 56, 0.05);
    --surface-glass: rgba(255, 255, 255, 0.92);

    /* aliases used across existing rules */
    --cream: var(--bg);
    --cream-deep: #efeee9;
    --ink: var(--text);
    --ink-soft: var(--text);
    --white: #ffffff;
    --terracotta: var(--accent);
    --terracotta-deep: var(--accent-hot);
    --star: var(--accent);
    --founding: #5b6b54;
    --founding-strong: #4a5845;

    /* Editorial type — revert baseline commit: 8eeb7a4 */
    --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
    --font-sans: "DM Sans", system-ui, sans-serif;
}

html.dark {
    --bg: #161a16;
    --surface: #1e241e;
    --border: #2f382f;
    --text: #e8ebe4;
    --muted: #9aa396;
    --accent: #8f9d89;
    --accent-hot: #a3b19c;
    --badge: #2a3228;
    --badge-text: #c5cec0;
    --line: #2f382f;
    --shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(22, 26, 22, 0.92);
    --header-bg-solid: rgba(22, 26, 22, 0.97);
    --header-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --surface-glass: rgba(30, 36, 30, 0.94);
    --cream: var(--bg);
    --cream-deep: #1a201a;
    --ink: var(--text);
    --ink-soft: var(--text);
    --white: #1e241e;
    --terracotta: var(--accent);
    --terracotta-deep: var(--accent-hot);
    --star: var(--accent);
    --founding: #c5d6b8;
    --founding-strong: #d7e4cc;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
    overflow-x: hidden;
}

/* Avoid English flash before stored language is applied. */
html:not(.i18n-ready) [data-i18n],
html:not(.i18n-ready) [data-i18n-placeholder] {
    visibility: hidden;
}

html.dark {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100dvh;
}

h1,
h2,
h3,
.section-head h2,
.directory-head h1,
.directory-filters-title,
.profile-name-row,
.profile-hero-copy h1,
.profile-block h2,
.profile-package-title,
.profile-album-folder-title,
.photographer-card h3,
.photographer-card .card-name-row,
.how-hero h1,
.how-block h2,
.how-step h3,
.how-why-card h3,
.contact-head h1,
.why-item h3,
.cta-inner h2,
.map-modal-panel h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: none;
}

.site-header,
.hero,
.section,
.cta-band,
.site-footer,
.map-modal {
    position: relative;
    z-index: 1;
}

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

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; }

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    display: flex;
    align-items: center;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: var(--header-bg-solid);
    border-bottom-color: var(--line);
    box-shadow: var(--header-shadow);
}

.site-header.is-over-hero:not(.is-scrolled) {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
}

.site-header.is-over-hero:not(.is-scrolled) .brand-name,
.site-header.is-over-hero:not(.is-scrolled) .brand-tag,
.site-header.is-over-hero:not(.is-scrolled) .nav-links a,
.site-header.is-over-hero:not(.is-scrolled) .menu-toggle,
.site-header.is-over-hero:not(.is-scrolled) .map-btn {
    color: var(--text);
}

.site-header.is-over-hero:not(.is-scrolled) .brand-name {
    color: var(--founding);
}

.site-header.is-over-hero:not(.is-scrolled) .brand-tag {
    color: var(--muted);
}

.site-header.is-over-hero:not(.is-scrolled) .map-btn {
    border-color: var(--border);
    background: var(--surface);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.brand img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.brand-name {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--founding);
    white-space: nowrap;
    line-height: 1.2;
}

.brand-tag {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    line-height: 1.25;
}

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover { opacity: 1; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 901px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    /* Content-sized sides only — growing flex rails covered the centered nav. */
    .brand,
    .header-actions {
        flex: 0 0 auto;
        min-width: 0;
    }

    .header-actions {
        justify-content: flex-end;
    }

    /*
     * Center the nav on "Photographers": middle link defines the box width,
     * How / Portal hang left/right of it. Entire box is page-centered.
     */
    .nav-links {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: block;
        z-index: 1;
        pointer-events: none;
    }

    .nav-links a {
        pointer-events: auto;
        white-space: nowrap;
    }

    .nav-links a:nth-child(2) {
        display: inline-block;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(3) {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links a:nth-child(1) {
        right: 100%;
        margin-right: 1.5rem;
    }

    .nav-links a:nth-child(3) {
        left: 100%;
        margin-left: 1.5rem;
    }
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.is-active {
    background: var(--accent);
    color: #ffffff;
}

.site-header.is-over-hero:not(.is-scrolled) .lang-switch {
    border-color: var(--border);
    background: var(--surface);
}

.site-header.is-over-hero:not(.is-scrolled) .lang-btn {
    color: var(--muted);
}

.site-header.is-over-hero:not(.is-scrolled) .lang-btn.is-active {
    background: var(--accent);
    color: #ffffff;
}

.map-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.map-btn svg,
.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.theme-toggle:active {
    transform: scale(0.96);
}

.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

.map-btn:hover {
    background: var(--surface);
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.map-btn:active {
    transform: scale(0.96);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: #5b6b54;
    color: #ffffff;
}

.btn-primary:hover { background: #4a5844; color: #ffffff; }

.btn-secondary,
.btn-outline,
a.btn:not(.btn-primary):not(.directory-map-btn):not(.directory-reset) {
    background: transparent;
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #f7f6f3;
    overflow: hidden;
    background: var(--bg);
}

.hero-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    color: #f7f6f3;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-media--mobile {
    display: none;
}

/* Desktop: stitch fills the hero edge-to-edge (no cream band under the copy). */
.hero-stitch {
    display: block;
    width: min(100%, calc(100dvh * 2.638));
    height: auto;
    aspect-ratio: 3166 / 1200;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (min-width: 901px) {
    .hero {
        min-height: 0;
        height: auto;
    }

    .hero-stage {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 3166 / 1200;
        max-height: min(100dvh, calc(100vw * 1200 / 3166));
    }

    .hero-stitch {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center center;
    }

    .hero-content {
        padding: calc(var(--header-h) + 1rem) 1.25rem 1.35rem;
        justify-content: flex-end;
    }

    /*
     * Edge blur from the photo itself (not a separate overlay tint):
     * a twin stitch is blurred and masked to a thin left/right strip.
     */
    .hero-media--desktop {
        isolation: isolate;
    }

    .hero-stitch--edge-blur {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center center;
        pointer-events: none;
        filter: blur(8px);
        transform: scale(1.02);
        -webkit-mask-image: linear-gradient(
            to right,
            #000 0%,
            #000 0.35%,
            transparent 1.4%,
            transparent 98.6%,
            #000 99.65%,
            #000 100%
        );
        mask-image: linear-gradient(
            to right,
            #000 0%,
            #000 0.35%,
            transparent 1.4%,
            transparent 98.6%,
            #000 99.65%,
            #000 100%
        );
    }
}

.hero-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    gap: 0.35rem;
    padding: 0.35rem;
    background: var(--bg);
}

.hero-panels img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
    background: var(--bg);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 58% at 50% 68%,
            rgba(18, 22, 18, 0.28) 0%,
            rgba(18, 22, 18, 0.1) 42%,
            transparent 74%
        );
    pointer-events: none;
}

.section {
    padding: 5rem 0;
    background: var(--cream);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    max-width: 56rem; /* max-w-4xl */
    margin: 0 auto;
    padding: calc(var(--header-h) + 2rem) 1.5rem 1.75rem; /* px-6 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

/* Soft, near-invisible veil so light type stays readable on any photo. */
.hero-content::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(48rem, 100%);
    height: min(16rem, 55%);
    background:
        radial-gradient(
            ellipse 100% 100% at 50% 70%,
            rgba(16, 20, 16, 0.42) 0%,
            rgba(16, 20, 16, 0.18) 38%,
            rgba(16, 20, 16, 0.06) 62%,
            transparent 78%
        );
    pointer-events: none;
    z-index: 0;
}

.hero-content > * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.hero-kicker {
    margin: 0 0 1rem;
    display: inline-block;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--badge-text);
    background: var(--badge);
    border-radius: 999px;
}

.hero-title {
    margin: 0 auto 1rem; /* mb-4 */
    max-width: none;
    width: 100%;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 1.875rem; /* text-3xl */
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    letter-spacing: -0.01em;
    line-height: 1.25; /* leading-snug */
    text-transform: none;
    color: #ffffff;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem; /* sm:text-5xl */
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem; /* md:text-6xl */
    }
}

.hero-title-accent {
    font-family: inherit;
    font-style: italic;
    font-weight: 400;
    font-stretch: normal;
    font-synthesis: none;
    letter-spacing: inherit;
}

.hero-subtitle {
    display: block;
    margin: 0 auto 0.75rem; /* mb-3 */
    max-width: none;
    width: 100%;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.75rem; /* text-xs */
    font-weight: 500;
    letter-spacing: 0.25em; /* tracking-[0.25em] */
    line-height: 1.5;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
}

.hero-lede {
    margin: 0 auto;
    max-width: 32rem; /* max-w-lg */
    width: 100%;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.875rem; /* text-sm */
    font-weight: 400;
    line-height: 1.625; /* leading-relaxed */
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    opacity: 1;
}

@media (min-width: 768px) {
    .hero-lede {
        font-size: 1rem; /* md:text-base */
    }
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
}

.section-head p {
    margin: 0.75rem auto 0;
    max-width: 48ch;
    color: var(--muted);
}

.photographer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.photographer-rail-wrap {
    position: relative;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
}

.section--photographers {
    overflow-x: clip;
    overflow-y: visible;
}

.hero-explore {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.75rem 1.25rem 0.75rem;
    background: var(--cream);
}

.hero-explore .btn {
    border-radius: 999px;
}

.section--photographers .photographers-cta {
    margin-top: 1.25rem;
}

.photographer-rail {
    display: flex;
    align-items: stretch;
    gap: 1.15rem;
    overflow-x: auto;
    /* proximity + auto avoid jank while dragging / wheel-scrolling on desktop */
    scroll-snap-type: x proximity;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    padding: 0.35rem 3.25rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photographer-rail::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.photographer-rail .photographer-card {
    flex: 0 0 clamp(260px, 22vw, 320px);
    scroll-snap-align: start;
    align-self: stretch;
    contain: layout paint style;
}

.rail-nav {
    position: absolute;
    top: 45%;
    z-index: 2;
    translate: 0 -50%;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
}

.rail-nav--prev { left: 0.65rem; }
.rail-nav--next { right: 0.65rem; }

.rail-nav:hover {
    background: var(--surface);
    color: var(--accent-hot);
}

html.dark .rail-nav {
    background: var(--surface);
    color: var(--ink);
}

/* Dark mode: keep brand + header controls olive (not washed cream). */
html.dark .brand-name {
    color: var(--founding);
}

html.dark .map-btn,
html.dark .theme-toggle,
html.dark .menu-toggle {
    color: var(--founding);
    border-color: color-mix(in srgb, var(--founding) 32%, transparent);
    background: color-mix(in srgb, var(--founding) 10%, var(--surface));
}

html.dark .map-btn:hover,
html.dark .theme-toggle:hover {
    border-color: var(--founding);
    color: var(--founding-strong);
    background: color-mix(in srgb, var(--founding) 18%, var(--surface));
}

html.dark .lang-switch {
    border-color: color-mix(in srgb, var(--founding) 32%, transparent);
    background: color-mix(in srgb, var(--founding) 10%, var(--surface));
}

html.dark .lang-btn {
    color: color-mix(in srgb, var(--founding) 80%, #e8ebe4);
}

html.dark .lang-btn.is-active {
    background: var(--founding);
    color: #161a16;
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .brand-name {
    color: var(--founding);
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .brand-tag,
html.dark .site-header.is-over-hero:not(.is-scrolled) .nav-links a {
    color: color-mix(in srgb, var(--founding) 78%, #e8ebe4);
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .menu-toggle,
html.dark .site-header.is-over-hero:not(.is-scrolled) .map-btn,
html.dark .site-header.is-over-hero:not(.is-scrolled) .theme-toggle {
    color: var(--founding);
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .map-btn,
html.dark .site-header.is-over-hero:not(.is-scrolled) .theme-toggle {
    border-color: color-mix(in srgb, var(--founding) 35%, transparent);
    background: color-mix(in srgb, var(--founding) 12%, var(--surface));
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .lang-switch {
    border-color: color-mix(in srgb, var(--founding) 35%, transparent);
    background: color-mix(in srgb, var(--founding) 12%, var(--surface));
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .lang-btn {
    color: color-mix(in srgb, var(--founding) 75%, #e8ebe4);
}

html.dark .site-header.is-over-hero:not(.is-scrolled) .lang-btn.is-active {
    background: var(--founding-strong);
    color: #161a16;
}

html.dark .menu-toggle span,
html.dark .menu-toggle span::before,
html.dark .menu-toggle span::after {
    background: var(--ink);
}

.photographers-cta {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.photographers-cta .btn {
    border-radius: 999px;
}

.photographer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.photographer-card-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.photographer-card-main:hover h3 {
    color: var(--accent-hot);
}

.profile-page {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) 0 max(4rem, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 70% 45% at 90% 0%, rgba(143, 157, 137, 0.12), transparent 55%),
        var(--bg);
    min-height: 100svh;
}

.profile-page .container.profile-page-inner,
.profile-page-inner {
    width: min(80rem, calc(100% - 2rem));
    max-width: 80rem;
    margin-inline: auto;
}

/* Legacy: search rail no longer used on profile pages */
.profile-page .profile-dir-filters {
    display: none;
}

.profile-results {
    min-width: 0;
    flex: 1 1 auto;
}

.profile-back {
    display: inline-flex;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
}

.profile-back:hover {
    color: var(--ink);
}

.profile-root {
    display: grid;
    gap: 1.75rem;
}

.profile-missing {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-missing p {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: min(200px, 46vw);
    height: min(200px, 46vw);
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid var(--border);
    display: block;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 400;
}

.profile-name-text {
    min-width: 0;
}

.profile-founding-mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--founding);
    line-height: 0;
}

.profile-founding-mark svg {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 901px) {
    .profile-founding-mark svg {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.profile-founding-label {
    display: inline-block;
    margin: 0.35rem 0 0.5rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--founding);
}

.profile-hero-copy h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 400;
}

.profile-bio {
    margin: 0.65rem 0 0;
    max-width: 48ch;
    color: var(--muted);
}

.profile-story-text {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
}

.profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.profile-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.profile-socials-label {
    color: var(--muted);
}

.profile-socials a {
    color: var(--accent, var(--primary, #5b6b54));
    font-weight: 600;
    text-decoration: none;
}

.profile-socials a:hover {
    text-decoration: underline;
}

.profile-block {
    padding: 1.35rem 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-block h2 {
    margin: 0 0 0.9rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-chip {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(143, 157, 137, 0.16);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 500;
}

.profile-chip--soft {
    background: var(--badge);
    color: var(--badge-text);
}

.profile-packages {
    display: grid;
    gap: 0.65rem;
}

.profile-package {
    display: grid;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.profile-package:hover {
    border-color: rgba(91, 107, 84, 0.45);
}

.profile-package.is-selected {
    border-color: #5b6b54;
    background: rgba(91, 107, 84, 0.08);
    box-shadow: inset 0 0 0 1px rgba(91, 107, 84, 0.25);
}

.profile-package-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-package-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.profile-package-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-rail-left { order: 2; }
.profile-main { order: 1; }
.profile-rail-right { order: 3; }

.profile-rail-left,
.profile-rail-right,
.profile-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-sidebar {
    min-width: 0;
}

.profile-reviews-wrap {
    min-width: 0;
}

.profile-rail-sticky {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-availability-note {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
}

@media (min-width: 901px) {
    .profile-layout {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2rem;
        align-items: start;
    }

    .profile-rail-left,
    .profile-main,
    .profile-rail-right {
        order: unset;
    }

    .profile-rail-left {
        grid-column: 1 / span 3;
    }

    .profile-main {
        grid-column: 4 / span 6;
    }

    .profile-rail-right {
        grid-column: 10 / span 3;
    }

    .profile-rail-sticky {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

.profile-gallery-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.profile-gallery-heading h2 {
    margin: 0;
}

.profile-album-back {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--olive, #5b6b54);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.profile-album-back:hover {
    text-decoration: underline;
}

.profile-album-folders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-album-folder {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.2s ease;
}

.profile-album-folder:hover {
    border-color: color-mix(in srgb, var(--olive, #5b6b54) 45%, var(--border));
}

.profile-album-folder-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--cream-deep, #efeee9);
    overflow: hidden;
}

.profile-album-folder-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.profile-album-folder:hover .profile-album-folder-media img {
    transform: scale(1.02);
}

.profile-album-folder-meta {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 2.5rem 0.85rem 0.85rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18), transparent);
    color: #fff;
}

.profile-album-folder-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-album-folder-count {
    font-size: 0.75rem;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .profile-album-folders {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .profile-album-folders {
        grid-template-columns: 1fr;
    }
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.profile-gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.profile-contact-lede {
    margin: -0.2rem 0 1rem;
    color: var(--muted);
    max-width: 52ch;
}

.profile-contact-success,
.profile-contact-error {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.4;
}

.profile-contact-success {
    background: color-mix(in srgb, var(--olive, #6b7c5a) 16%, transparent);
    color: var(--ink, #1c1c1a);
}

.profile-contact-error {
    background: color-mix(in srgb, #b42318 12%, transparent);
    color: #8a1c14;
}

.profile-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.profile-reviews-head h2 {
    margin: 0;
}

.profile-reviews-summary {
    margin: 0.35rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-reviews-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.profile-review-list {
    display: grid;
    gap: 0.85rem;
}

.profile-review-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.profile-review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.profile-review-head span {
    color: var(--muted);
    font-size: 0.85rem;
}

.profile-review-card .stars {
    margin-bottom: 0.45rem;
    color: #c4a35a;
    letter-spacing: 0.08em;
}

.profile-review-card p {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
    font-size: 0.95rem;
}

.profile-review-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.star-input-row {
    display: inline-flex;
    gap: 0.15rem;
}

.star-input {
    border: 0;
    background: transparent;
    padding: 0.1rem 0.15rem;
    font-size: 1.45rem;
    line-height: 1;
    color: #c5c1b8;
    cursor: pointer;
}

.star-input.is-on {
    color: #c4a35a;
}

.profile-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rating-badge {
    display: block;
    margin: 0.1rem 0 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
}

.rating-badge span {
    color: var(--muted);
    font-weight: 500;
}

.profile-form {
    display: grid;
    gap: 0.85rem;
    max-width: 560px;
}

.profile-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    resize: vertical;
    min-height: 140px;
    font: inherit;
    color-scheme: inherit;
}

.profile-form textarea:focus {
    border-color: var(--accent);
}

.profile-form .btn {
    width: fit-content;
    border-radius: 12px;
}

.contact-page {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) 0 max(4rem, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 70% 45% at 10% 0%, rgba(143, 157, 137, 0.12), transparent 55%),
        var(--bg);
    min-height: 100svh;
}

.how-page {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) 0 max(4rem, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 70% 45% at 90% 0%, rgba(143, 157, 137, 0.12), transparent 55%),
        var(--bg);
    min-height: 100svh;
}

.how-wrap {
    max-width: 720px;
}

.how-hero {
    margin-bottom: 2.75rem;
    text-align: center;
}

.how-hero h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.how-lede {
    margin: 0.85rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--accent-hot);
}

.how-intro {
    margin: 1.15rem 0 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.how-block {
    margin-bottom: 2.75rem;
}

.how-block h2 {
    margin: 0 0 1.25rem;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 400;
    color: var(--ink);
    text-align: center;
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.how-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 1.2rem;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.how-step-num {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 650;
}

.how-step h3 {
    margin: 0.15rem 0 0.4rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--ink);
}

.how-step p,
.how-why-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.how-why-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .how-why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.1rem;
    }
}

.how-why-card {
    padding: 1.15rem 1.2rem;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.how-why-card h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    text-align: center;
}

.how-cta {
    display: flex;
    justify-content: flex-start;
    padding-top: 0.25rem;
}

.contact-wrap {
    max-width: 640px;
}

.contact-head {
    margin-bottom: 1.75rem;
}

.contact-head h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 400;
}

.contact-form {
    padding: 1.5rem 1.35rem 1.5rem;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    font: inherit;
    color-scheme: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form-note {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .site-header {
        backdrop-filter: none;
        background: var(--header-bg-solid);
    }

    .profile-page {
        padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.25rem);
    }

    /* Keep mobile profile unchanged — no left search rail */
    .profile-page .profile-dir-filters {
        display: none;
    }

    .profile-page .directory-layout {
        display: block;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
        align-items: center;
    }

    .profile-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-gallery img {
        content-visibility: auto;
        contain-intrinsic-size: 160px 200px;
    }

    .profile-form .btn {
        width: 100%;
    }

    .profile-block {
        padding: 1.1rem 1rem 1.25rem;
    }
}

.avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.photographer-card h3,
.photographer-card .card-name-row {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 650;
    line-height: 1.25;
    min-height: 1.25em;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, auto) 1.5rem;
    align-items: center;
    justify-content: center;
    column-gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

.photographer-card .card-name-text {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.photographer-card .card-name-side,
.photographer-card .card-founding-mark {
    grid-column: 3;
    justify-self: start;
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--founding);
    line-height: 0;
}

.photographer-card .card-name-row > .card-name-side:first-child {
    grid-column: 1;
    justify-self: end;
}

.photographer-card .card-founding-mark svg {
    width: 1.35rem;
    height: 1.35rem;
}

.photographer-card .card-founding-label {
    display: block;
    margin: 0.3rem 0 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--founding);
    text-align: center;
}

.photographer-card .card-languages {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--muted);
    min-height: 1.3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photographer-card .meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--muted);
    margin-bottom: 0;
}

.photographer-card .portfolio-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-top: auto;
    margin-bottom: 0.85rem;
    padding-top: 0.85rem;
    min-height: 0;
}

.photographer-card .portfolio-row img,
.photographer-card .portfolio-row .portfolio-slot {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.photographer-card .portfolio-row .portfolio-slot {
    display: block;
    background: var(--border);
    opacity: 0.35;
}

.photographer-card .stars {
    color: var(--star);
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    margin: 0 0 0.85rem;
    flex-shrink: 0;
    min-height: 1.2em;
}

.photographer-card > .btn {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.portfolio-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.portfolio-row img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.stars {
    color: var(--star);
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.photographer-rail:has(> .empty-state),
.photographer-rail.is-centered {
    justify-content: center;
    overflow-x: hidden;
}

.photographer-rail-wrap:not(.is-scrollable) .rail-nav {
    display: none;
}

.photographer-rail .empty-state {
    flex: 0 1 min(28rem, 100%);
    width: min(28rem, 100%);
    margin-inline: auto;
    box-sizing: border-box;
}

.directory {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) 0 max(4rem, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(143, 157, 137, 0.12), transparent 55%),
        var(--bg);
    min-height: 100svh;
}

.directory-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.directory-filters {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem);
    z-index: 20;
    flex: 0 0 280px;
    width: 280px;
    max-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.35rem 1.25rem 1.4rem;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.directory-filters-toggle {
    display: none;
}

.directory-results {
    flex: 1 1 auto;
    min-width: 0;
}

.directory-filters-title {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.directory-form {
    display: grid;
    gap: 0.85rem;
}

.directory-field {
    display: grid;
    gap: 0.35rem;
}

.directory-field span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.directory-field select,
.directory-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    color-scheme: inherit;
}

.directory-field select option {
    background: var(--surface);
    color: var(--ink);
}

.directory-field select:focus,
.directory-field input:focus {
    border-color: var(--accent);
}

.directory-field input::placeholder {
    color: var(--muted);
}

.directory-combobox {
    position: relative;
    display: grid;
}

.directory-combobox input {
    width: 100%;
    padding-right: 2.4rem;
}

.directory-combobox-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    translate: 0 -50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.directory-combobox-toggle svg {
    width: 1rem;
    height: 1rem;
}

.directory-combobox.is-open .directory-combobox-toggle {
    color: var(--accent-hot);
}

.directory-combobox-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.3rem);
    z-index: 30;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    max-height: 14rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.directory-combobox-option,
.directory-combobox-empty {
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--ink);
    cursor: pointer;
}

.directory-combobox-empty {
    cursor: default;
    color: var(--muted);
}

.directory-combobox-option:hover,
.directory-combobox-option.is-active {
    background: var(--cream-deep);
}

.directory-field-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.directory-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.directory-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    margin: 0;
    padding: 0.28rem 0.45rem 0.28rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
}

.directory-category-chip span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.directory-category-chip-x {
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--muted);
}

.directory-category-chip:hover {
    border-color: var(--accent);
    background: var(--cream-deep);
}

.directory-category-chip:hover .directory-category-chip-x {
    color: var(--accent-hot);
}

.directory-results {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.directory-form .btn {
    width: 100%;
    border-radius: 12px;
}

.directory-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    text-align: center;
}

.directory-map-btn:hover {
    background: var(--cream-deep);
    color: var(--accent-hot);
    border-color: var(--accent);
}

.directory-reset {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.directory-reset:hover {
    color: var(--ink);
    background: var(--cream-deep);
}

.directory-head {
    margin-bottom: 1.75rem;
}

.directory-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.directory-head h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.directory-lede {
    margin: 0.7rem 0 0;
    max-width: 48ch;
    color: var(--muted);
}

.directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.directory-grid .photographer-card {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.photographer-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 920px;
    margin-inline: auto;
}

.why-item {
    text-align: center;
    padding: 0.5rem;
}

.why-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--badge);
    color: var(--badge-text);
}

.why-icon svg {
    width: 24px;
    height: 24px;
}

.why-item h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 650;
}

.why-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.how-home-more {
    margin-top: 1.75rem;
    text-align: center;
}

.how-home-more a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-hot);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.how-home-more a:hover {
    color: var(--ink);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.review-card .stars { margin-bottom: 0.75rem; }

.review-card blockquote {
    margin: 0;
    font-style: italic;
    color: var(--ink-soft);
}

.review-card cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.cta-band {
    background: var(--accent);
    color: #ffffff;
    padding: 2.75rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-inner h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
    max-width: 22ch;
}

.cta-band a.btn,
.cta-band .btn {
    background: #ffffff;
    color: #3a4238;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(58, 66, 56, 0.18);
}

.cta-band a.btn:hover,
.cta-band .btn:hover {
    background: #f3f1ec;
    color: #2f362d;
}

html.dark .cta-band a.btn,
html.dark .cta-band .btn {
    background: #ffffff;
    color: #1e241e;
    border-color: transparent;
}

html.dark .cta-band a.btn:hover,
html.dark .cta-band .btn:hover {
    background: #eef0eb;
    color: #1e241e;
}

.site-footer {
    background: #4a5248;
    color: rgba(247, 246, 243, 0.88);
    padding: 3.5rem 0 max(1.75rem, env(safe-area-inset-bottom, 0px));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.65rem;
}

.footer-tag {
    font-size: 0.88rem;
    max-width: 28ch;
    margin: 0 0 1rem;
}

.footer-grid h4 {
    margin: 0 0 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    opacity: 0.75;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.map-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
}

.map-modal[hidden] {
    display: none;
}

.map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(58, 66, 56, 0.45);
}

.map-modal-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(85dvh, calc(100dvh - 2.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.map-modal-panel h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
}

.map-modal-panel p {
    margin: 0 0 0.65rem;
    color: var(--muted);
}

.map-modal-note {
    font-size: 0.85rem;
}

.map-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
        right: 0;
        left: 0;
        bottom: auto;
        z-index: 210;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem max(1.25rem, env(safe-area-inset-right, 0px)) max(1.25rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
        max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--header-bg-solid);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--header-shadow);
    }

    .nav-links.is-open { display: flex; }

    .nav-links a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        color: var(--ink) !important;
    }

    .menu-toggle { display: grid; place-items: center; }

    .header-inner {
        gap: 0.5rem;
        width: calc(100% - 1.25rem);
    }

    .header-actions {
        gap: 0.3rem;
        flex-shrink: 0;
    }

    .brand {
        gap: 0.45rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-text {
        min-width: 0;
        overflow: hidden;
    }

    .lang-switch {
        flex-shrink: 0;
    }

    .lang-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.62rem;
    }

    .map-btn,
    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .brand img {
        display: block;
        width: 30px;
        height: 30px;
        border-radius: 7px;
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }

    .brand-tag {
        display: none;
    }

    .site-header.is-over-hero:not(.is-scrolled) {
        background: var(--header-bg);
        backdrop-filter: blur(10px);
    }

    html.dark .site-header.is-over-hero:not(.is-scrolled) {
        background: rgba(18, 22, 18, 0.96);
    }

    .site-header.is-over-hero:not(.is-scrolled) .brand-name {
        color: var(--founding);
    }

    html.dark .site-header.is-over-hero:not(.is-scrolled) .brand-name {
        color: var(--founding);
    }

    html.dark .site-header.is-over-hero:not(.is-scrolled) .brand-tag {
        color: color-mix(in srgb, var(--founding) 78%, #e8ebe4);
    }

    .site-header.is-over-hero:not(.is-scrolled) .menu-toggle,
    .site-header.is-over-hero:not(.is-scrolled) .map-btn {
        color: var(--text);
    }

    html.dark .site-header.is-over-hero:not(.is-scrolled) .menu-toggle,
    html.dark .site-header.is-over-hero:not(.is-scrolled) .map-btn,
    html.dark .site-header.is-over-hero:not(.is-scrolled) .theme-toggle,
    html.dark .site-header.is-over-hero:not(.is-scrolled) .nav-links a {
        color: var(--founding);
    }

    .site-header.is-over-hero:not(.is-scrolled) .map-btn {
        border-color: var(--border);
        background: var(--surface);
    }

    html.dark .site-header.is-over-hero:not(.is-scrolled) .map-btn,
    html.dark .site-header.is-over-hero:not(.is-scrolled) .theme-toggle {
        border-color: color-mix(in srgb, var(--founding) 35%, transparent);
        background: color-mix(in srgb, var(--founding) 12%, var(--surface));
    }

    .site-header.is-over-hero:not(.is-scrolled) .lang-switch {
        border-color: var(--border);
        background: var(--surface);
    }

    .site-header.is-over-hero:not(.is-scrolled) .lang-btn {
        color: var(--muted);
    }

    .site-header.is-over-hero:not(.is-scrolled) .lang-btn.is-active {
        background: var(--accent);
        color: #ffffff;
    }

    .hero {
        position: relative;
        min-height: 0;
        height: auto;
        max-height: 100svh;
        display: flex;
        flex-direction: column;
        padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
        box-sizing: border-box;
        background: var(--bg);
        color: #f7f6f3;
        overflow: hidden;
    }

    .hero-stage {
        position: relative;
        flex: 0 1 auto;
        min-height: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        background: var(--bg);
    }

    .hero::-webkit-scrollbar {
        display: none;
    }

    .hero-media--desktop {
        display: none;
    }

    .hero-media--mobile {
        position: relative;
        inset: auto;
        z-index: 0;
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        background: var(--bg);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        container-type: inline-size;
        container-name: hero-mobile;
    }

    .hero-media--mobile::-webkit-scrollbar {
        display: none;
    }

    .hero-media--mobile::after {
        display: block;
        background:
            radial-gradient(
                ellipse 95% 70% at 50% 50%,
                rgba(18, 22, 18, 0.22) 0%,
                rgba(18, 22, 18, 0.08) 48%,
                transparent 76%
            );
    }

    .hero-panels {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        height: auto;
        gap: 0;
        column-gap: 0;
        padding: 0;
        margin: 0;
        aspect-ratio: auto;
        max-height: none;
        background: var(--bg);
        font-size: 0;
        line-height: 0;
    }

    .hero-panels img {
        flex: 0 0 100cqw;
        flex-shrink: 0;
        box-sizing: border-box;
        display: block;
        width: 100cqw;
        min-width: 100cqw;
        max-width: none;
        height: calc(
            100svh - var(--header-h) - env(safe-area-inset-top, 0px) - 4.75rem
        );
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        object-fit: cover;
        object-position: center top;
        background: var(--bg);
        aspect-ratio: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .hero-panels img:first-child {
        min-width: 100cqw;
    }

    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 1.25rem max(1.5rem, env(safe-area-inset-right, 0px)) 1.25rem max(1.5rem, env(safe-area-inset-left, 0px));
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: transparent;
        color: #ffffff;
        pointer-events: none;
    }

    .hero-explore {
        flex: 0 0 auto;
        padding: 0.85rem 1.25rem max(0.95rem, env(safe-area-inset-bottom, 0px));
        background: var(--cream);
    }

    .hero-content::before {
        left: 50%;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(36rem, 94%);
        height: min(18rem, 62%);
        background:
            radial-gradient(
                ellipse 100% 100% at 50% 50%,
                rgba(16, 20, 16, 0.4) 0%,
                rgba(16, 20, 16, 0.16) 42%,
                rgba(16, 20, 16, 0.05) 65%,
                transparent 80%
            );
    }

    .hero-content > * {
        position: relative;
        z-index: 1;
        pointer-events: auto;
    }

    .hero-kicker {
        margin-bottom: 0.55rem;
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .hero-title {
        max-width: none;
        width: 100%;
        margin-inline: auto;
        margin-bottom: 1rem;
        font-size: 1.875rem;
        letter-spacing: 0.025em;
        line-height: 1.25;
        color: #ffffff;
        filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.65));
    }

    .hero-subtitle {
        display: block;
        margin-top: 0;
        margin-bottom: 0.75rem;
        margin-inline: auto;
        font-size: 0.75rem;
        letter-spacing: 0.25em;
        max-width: none;
        width: 100%;
        color: rgba(255, 255, 255, 0.8);
        filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.5));
    }

    .hero-lede {
        margin-top: 0;
        margin-bottom: 0;
        margin-inline: auto;
        font-size: 0.875rem;
        max-width: 32rem;
        line-height: 1.625;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
        opacity: 1;
        color: rgba(255, 255, 255, 0.9);
    }

    .photographer-grid,
    .why-grid,
    .reviews-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .photographer-rail-wrap {
        margin-inline: 0;
        padding-inline: 0;
    }

    .photographer-rail {
        /* Side padding so a snapped card can sit dead-center */
        padding-inline: max(0.75rem, calc((100% - min(280px, 82vw)) / 2));
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
    }

    .photographer-rail .photographer-card {
        flex: 0 0 min(280px, 82vw);
        width: min(280px, 82vw);
        max-width: min(280px, 82vw);
        scroll-snap-align: center;
        scroll-snap-stop: normal;
    }

    .rail-nav {
        display: none;
    }

    .directory-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .directory-filters {
        position: relative;
        top: auto;
        z-index: auto;
        flex: none;
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 1rem 1rem 1.1rem;
        transition: padding 0.28s ease;
    }

    .directory-filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .directory-filters-title {
        margin: 0;
    }

    .directory-filters-body {
        overflow: hidden;
        max-height: 40rem;
        opacity: 1;
        transition: max-height 0.34s ease, opacity 0.22s ease;
    }

    .directory-filters.is-collapsed {
        padding-bottom: 0.85rem;
    }

    .directory-filters.is-collapsed .directory-filters-body {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .directory-filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: var(--muted);
        box-shadow: none;
        cursor: pointer;
        touch-action: manipulation;
        transition: color 0.15s ease;
    }

    .directory-filters-toggle:hover,
    .directory-filters-toggle:focus-visible {
        color: var(--ink);
        background: transparent;
        outline: none;
    }

    .directory-filters-toggle-chevron {
        width: 1.15rem;
        height: 1.15rem;
        transition: transform 0.28s ease;
    }

    .directory-filters.is-collapsed .directory-filters-toggle-chevron {
        transform: rotate(180deg);
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }

    .directory-head h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .directory-lede {
        font-size: 0.92rem;
    }

    .profile-package {
        padding: 0.75rem 0.85rem;
    }

}

@media (max-width: 560px) {
    .brand-tag {
        display: none;
    }

    .section {
        padding: 3.5rem 0;
    }

    .container {
        width: calc(100% - 1.25rem);
    }

    .directory {
        padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.25rem) 0 max(3rem, env(safe-area-inset-bottom, 0px));
    }

    .directory-form .btn {
        width: 100%;
    }

    .hero-content {
        padding-bottom: 1.5rem;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band .btn { width: 100%; }

    .photographer-card {
        padding: 1.25rem 1rem 1rem;
    }
}

