/* ==========================================================================
   HVR Photos - editorial photography portfolio
   Design system: warm near-black canvas, serif display type, champagne accent
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
    --bg:            #0b0a09;
    --bg-soft:       #121009;
    --surface:       #17140f;
    --ink:           #efeae0;
    --ink-dim:       #a89f90;
    --ink-faint:     #9a9284;
    --accent:        #c9a97a;
    --accent-soft:   rgba(201, 169, 122, 0.16);
    --line:          rgba(239, 234, 224, 0.10);
    --line-strong:   rgba(239, 234, 224, 0.18);

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --header-h: 78px;
    --content-w: 1240px;
    --gutter: clamp(20px, 4vw, 48px);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--accent); color: #16120a; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

em { font-style: italic; font-weight: 400; }

/* ---- Utilities ---------------------------------------------------------- */
.section {
    padding: clamp(84px, 12vh, 150px) var(--gutter);
    max-width: var(--content-w);
    margin: 0 auto;
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.section__head {
    max-width: 640px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section__eyebrow,
.hero__eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
}

.section__title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    color: var(--ink);
    letter-spacing: 0.01em;
}

.section__title em { color: var(--accent); }

.section__lede {
    margin: 22px 0 0;
    color: var(--ink-dim);
    font-size: 1.06rem;
    max-width: 52ch;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 16px 30px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.btn--solid {
    background: var(--ink);
    color: #14110b;
}
.btn--solid:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--ink);
    background: rgba(11, 10, 9, 0.25);
    backdrop-filter: blur(6px);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    z-index: 60;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
                height 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(11, 10, 9, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    height: 64px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.45rem;
    letter-spacing: 0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    z-index: 2;
}
.brand__first { font-weight: 600; }
.brand__second { font-style: italic; color: var(--accent); }

.site-nav {
    display: flex;
    gap: clamp(22px, 3vw, 42px);
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-dim);
    padding: 6px 0;
    transition: color 0.3s var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
}
.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---- Menu toggle (mobile) ---------------------------------------------- */
.menu-toggle {
    display: none;
    position: relative;
    z-index: 80;
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle__bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    margin: 6px 0;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Mobile menu -------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(11, 10, 9, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}
.mobile-menu__nav a {
    font-family: var(--serif);
    font-size: clamp(2rem, 7vw, 2.8rem);
    color: var(--ink);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu__nav a:hover { color: var(--accent); transform: translateX(4px); }

.mobile-menu__meta {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 22s var(--ease-soft) infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(11,10,9,0.15) 0%, rgba(11,10,9,0.55) 100%),
        linear-gradient(180deg, rgba(11,10,9,0.5) 0%, rgba(11,10,9,0.2) 45%, rgba(11,10,9,0.82) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 var(--gutter);
}

.hero__eyebrow { color: var(--accent); }

.hero__title {
    font-size: clamp(3.4rem, 11vw, 7.5rem);
    letter-spacing: 0.01em;
    color: var(--ink);
    text-shadow: 0 4px 40px rgba(0,0,0,0.35);
}
.hero__title em { color: var(--accent); }

.hero__tagline {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 300;
    color: rgba(239, 234, 224, 0.88);
    max-width: 46ch;
    margin: 22px auto 34px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px;
    height: 44px;
    border: 1px solid rgba(239, 234, 224, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.hero__scroll-line {
    width: 1.5px;
    height: 10px;
    background: var(--ink);
    border-radius: 2px;
    animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
    0%   { transform: translateY(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ---- Filters ------------------------------------------------------------ */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(32px, 5vw, 52px);
}

.filter {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-dim);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.filter:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}
.filter.is-active {
    color: #16120a;
    background: var(--accent);
    border-color: var(--accent);
}

/* ---- Gallery (masonry) -------------------------------------------------- */
.gallery {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    animation: fadeUp 0.7s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transform: translateZ(0);
}

.gallery-item__img {
    width: 100%;
    height: auto;
    transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: linear-gradient(180deg, rgba(11,10,9,0) 35%, rgba(11,10,9,0.82) 100%);
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}

.gallery-item__title {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    transform: translateY(10px);
    transition: transform 0.45s var(--ease);
}

.gallery-item__category {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 4px;
    transform: translateY(10px);
    transition: transform 0.45s var(--ease) 0.05s;
}

.gallery-item:hover .gallery-item__img {
    transform: scale(1.06);
}
.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}
.gallery-item:hover .gallery-item__title,
.gallery-item:hover .gallery-item__category {
    transform: translateY(0);
}

/* ---- About -------------------------------------------------------------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
}

.about__media {
    position: relative;
}
.about__frame {
    position: absolute;
    inset: 22px -22px -22px 22px;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    pointer-events: none;
}
.about__media img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.about__content p {
    color: var(--ink-dim);
    margin: 0 0 20px;
    font-size: 1.05rem;
}
.about__content p:first-of-type {
    color: var(--ink);
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.55;
}

.about__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 48px);
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
.stat dt {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}
.stat dd {
    margin: 8px 0 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
}

/* ---- Services ----------------------------------------------------------- */
.services { max-width: var(--content-w); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
                background 0.4s var(--ease);
}
.service:hover {
    transform: translateY(-6px);
    border-color: var(--accent-soft);
    background: var(--bg-soft);
}

.service__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.service__link:hover .service__title { color: var(--accent); }

.service__index {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 18px;
}

.service__title {
    font-size: 1.45rem;
    color: var(--ink);
    margin-bottom: 14px;
}

.service__text {
    color: var(--ink-dim);
    font-size: 0.94rem;
    flex: 1;
}

.service__price {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.service__price strong {
    color: var(--ink);
    font-weight: 500;
    font-family: var(--serif);
    font-size: 1.2rem;
}

/* ---- Contact ------------------------------------------------------------ */
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 34px;
}
.contact__list li {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
.contact__list a { transition: color 0.3s var(--ease); }
.contact__list a:hover { color: var(--accent); }

.contact__label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.contact__note {
    color: var(--ink-dim);
    max-width: 36ch;
    margin: 0 0 30px;
}

.contact__social {
    display: flex;
    gap: 22px;
}
.contact__social a {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
    position: relative;
    padding-bottom: 4px;
}
.contact__social a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.contact__social a:hover { color: var(--ink); }
.contact__social a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Form --------------------------------------------------------------- */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 2px;
    border-radius: 0;
    transition: border-color 0.3s var(--ease);
    outline: none;
    width: 100%;
}
.field select { cursor: pointer; }
.field select option { background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

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

.contact__form .btn { align-self: flex-start; margin-top: 6px; }

.contact__form-status {
    font-size: 0.9rem;
    color: var(--accent);
    min-height: 1.4em;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 70px var(--gutter) 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
}

.brand--footer { font-size: 1.7rem; }

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
}
.site-footer__nav a {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    transition: color 0.3s var(--ease);
}
.site-footer__nav a:hover { color: var(--accent); }

.site-footer__meta {
    font-size: 0.8rem;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 7, 6, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__figure {
    max-width: min(88vw, 1200px);
    max-height: 82vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lightbox__img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: scale(0.96);
    transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__caption {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lightbox__title {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--ink);
}
.lightbox__meta {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(239, 234, 224, 0.06);
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--accent);
    color: #16120a;
    border-color: var(--accent);
}

.lightbox__close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__counter {
    position: absolute;
    top: 38px;
    left: 28px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--ink-dim);
}

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
    .site-nav { display: none; }
    .menu-toggle { display: block; }

    .gallery { columns: 2; }

    .about,
    .contact__grid {
        grid-template-columns: 1fr;
    }
    .about__media { max-width: 480px; }
    .about__frame { inset: 16px -16px -16px 16px; }

    .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .gallery { columns: 1; }

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

    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: min(100%, 260px); justify-content: center; }

    .lightbox__nav { display: none; }
    .lightbox__counter { top: 26px; left: 20px; }
    .lightbox__close { top: 18px; right: 18px; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__img { animation: none; }
    .hero__scroll-line { animation: none; }
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gallery-item { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---- Backend integration (server-rendered gallery) ---------------------- */
.gallery-item__link { display: block; color: inherit; }

.gallery-item[hidden] { display: none; }

.gallery__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ink-faint);
    padding: 40px 0;
    font-size: 0.95rem;
}

/* ---- Contact page / privacy --------------------------------------------- */
.contact--page { padding-top: calc(var(--header-h) + 70px); }

.field-err {
    margin: -8px 0 12px;
    color: #e8a08f;
    font-size: 0.8rem;
}

.field-optional { color: var(--ink-faint); font-weight: 400; }

.check--consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-dim);
}

.check--consent input { margin-top: 3px; accent-color: var(--accent); }
.check--consent a { color: var(--accent); text-decoration: underline; }

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact__form-status { min-height: 1.4em; }
.contact__form-status.is-ok { color: #a8d8b8; }
.contact__form-status.is-err { color: #e8a08f; }

.contact__note--small { font-size: 0.85rem; }
.contact__note--small a { color: var(--accent); text-decoration: underline; }

.contact__cta { display: flex; flex-direction: column; gap: 18px; }

.prose {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ink-dim);
    line-height: 1.75;
}

.prose h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 32px 0 8px;
}

.prose p { margin: 0 0 14px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover {color:var(--surface);}
/* ---- Public flash messages ---------------------------------------------- */
.flash-stack {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    width: min(560px, calc(100% - 32px));
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.flash--success { background: rgba(127, 196, 147, 0.12); border-color: rgba(127, 196, 147, 0.3); color: #a8d8b8; }
.flash--error { background: rgba(217, 120, 95, 0.14); border-color: rgba(217, 120, 95, 0.35); color: #e8a08f; }
.flash--info { background: var(--accent-soft); border-color: rgba(201, 169, 122, 0.3); color: var(--accent); }

/* ---- Work index / category ---------------------------------------------- */
.work--page,
.photo-page,
.about--page,
.services--page { padding-top: calc(var(--header-h) + 70px); }

.work-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.work-count { color: var(--ink-faint); font-size: 0.85rem; margin: 0 0 18px; }
.work-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs { margin: 0 0 26px; }
.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-dim); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---- Photo page --------------------------------------------------------- */
.photo-page__head { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.photo-page__title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); margin: 6px 0 10px; }
.photo-page__figure { margin: 0 0 34px; }
.photo-page__img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.photo-page__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.photo-page__description { font-size: 1.02rem; line-height: 1.8; color: var(--ink-dim); margin-bottom: 26px; }
.photo-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.photo-facts div { display: flex; flex-direction: column; gap: 4px; }
.photo-facts dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.photo-facts dd { margin: 0; color: var(--ink); font-size: 0.92rem; }
.photo-facts a { color: var(--accent); }
.photo-page__side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    background: var(--surface);
}
.share-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.photo-page__cta .btn { width: 100%; text-align: center; }
.photo-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 46px 0 10px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.photo-nav__link { display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.photo-nav__link--next { text-align: right; margin-left: auto; }
.photo-nav__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.photo-nav__title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.photo-nav__link:hover .photo-nav__title { color: var(--accent); }
.photo-related { margin-top: 60px; }

/* ---- About page --------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.about__grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }

/* ---- Pagination (public) ------------------------------------------------ */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 30px; }
.pager__info { color: var(--ink-dim); font-size: 0.85rem; }

@media (max-width: 900px) {
    .photo-page__body { grid-template-columns: 1fr; }
    .photo-page__side { position: static; }
    .about__grid { grid-template-columns: 1fr; }
}

/* ---- Cookie banner ------------------------------------------------------ */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 90;
    width: min(720px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid rgba(239, 234, 224, 0.18);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner__text { margin: 0; font-size: 0.86rem; color: var(--ink-dim); line-height: 1.5; }
.cookie-banner__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cookie-banner__link { font-size: 0.8rem; color: var(--accent); text-decoration: underline; }

/* ---- Instagram embeds (click-to-load) ----------------------------------- */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.instagram-embed {
    position: relative;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.instagram-embed__fallback {
    padding: 24px;
    text-align: center;
    color: var(--accent);
    font-size: 0.86rem;
    text-decoration: underline;
}

.instagram-embed__frame {
    width: 100%;
    min-height: 520px;
    border: 0;
    background: #fff;
}

.instagram-embed.is-loaded { min-height: 0; }
.instagram-embed.is-loaded .instagram-embed__fallback { display: none; }

@media (max-width: 720px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; }
}
