:root {
    --bg: #fbfaf6;
    --surface: #fdfcf9;
    --text: #191918;
    --muted: #74716b;
    --soft: #a7a29a;
    --line: #e6e2da;
    --line-strong: #d2cdc4;
    --accent: #a58d6f;
    --dialog: #f7f5f0;
    --max: 1280px;
    --pad: clamp(1.25rem, 3vw, 3rem);
    --font-sans: "Manrope", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Cormorant Garamond", "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.58;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; }

.site-header,
.site-footer,
.hero,
.gallery-section,
.about {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.site-header {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    text-decoration: none;
}

/*
 * RS mark: deliberately not a camera icon.
 * The open corners borrow from a crop frame; the diagonal gives the mark movement.
 */
.brand-mark {
    position: relative;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    font-family: var(--font-display);
    line-height: 1;
}

.brand-corner {
    position: absolute;
    width: 23px;
    height: 23px;
    pointer-events: none;
}

.brand-corner-a {
    top: 2px;
    left: 2px;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
}

.brand-corner-b {
    right: 2px;
    bottom: 2px;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.brand-r,
.brand-s {
    position: absolute;
    z-index: 2;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.brand-r {
    top: 1px;
    left: 8px;
}

.brand-s {
    right: 7px;
    bottom: 0;
}

.brand-slash {
    position: absolute;
    top: 50%;
    left: 60%;
    width: 1px;
    height: 40px;
    background: var(--accent);
    transform: translate(-50%, -50%) rotate(28deg);
    transform-origin: center;
}

.brand-copy {
    display: grid;
    gap: 0.03rem;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.008em;
    line-height: 0.95;
}

.brand-label {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

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

.header-stories-link {
    display: none;
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: none;
}

.header-stories-link:hover,
.header-stories-link:focus-visible {
    color: var(--text);
}

.site-nav a,
.quiet-link,
.footer-link,
.language-switch a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a {
    position: relative;
    font-size: 0.86rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.35rem;
    height: 1px;
    background: var(--text);
    transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.quiet-link:hover,
.quiet-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.language-switch a:hover,
.language-switch a:focus-visible {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.language-switch a {
    transition: color 160ms ease;
}

.language-switch a.is-active {
    color: var(--text);
}

.hero {
    padding-top: clamp(5rem, 9.5vw, 8.25rem);
    padding-bottom: clamp(5rem, 10vw, 8rem);
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.21em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    max-width: 900px;
    margin-bottom: 1.55rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7.15rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.84;
}

.hero-copy {
    max-width: 630px;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.quiet-link {
    display: inline-block;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 0.25rem;
    font-size: 0.9rem;
}

.gallery-section {
    padding-bottom: clamp(5rem, 9vw, 9rem);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.about h2 {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.5vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.count {
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.4vw, 2.5rem) clamp(1rem, 2vw, 2rem);
}

.photo-card {
    appearance: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}

.photo-frame {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease, opacity 260ms ease;
}

.photo-card:hover .photo-frame img,
.photo-card:focus-visible .photo-frame img {
    transform: scale(1.012);
    opacity: 0.965;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.7rem;
}

.photo-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.2;
}

.photo-location {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    column-gap: clamp(2rem, 7vw, 8rem);
    row-gap: 0;
    padding-top: clamp(4.5rem, 8vw, 8rem);
    padding-bottom: clamp(5.5rem, 10vw, 9rem);
    border-top: 1px solid var(--line);
}

.about .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.about-copy {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.about-copy p { margin-bottom: 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

.site-footer {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}

.footer-link { white-space: nowrap; }

.footer-robnet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    vertical-align: middle;
}

.footer-robnet-icon {
    display: block;
    width: 17px;
    height: 17px;
    object-fit: contain;
    flex: 0 0 17px;
    position: relative;
    top: -1px;
}

.footer-legal,
.footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

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


/* Separate legal pages keep the same restrained editorial language as the gallery. */
.legal-page {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7.5rem) var(--pad) clamp(5rem, 9vw, 8rem);
}

.legal-page-head {
    max-width: 850px;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.legal-page h1 {
    max-width: none;
    margin-bottom: 1rem;
    font-size: clamp(3.4rem, 7vw, 6.4rem);
    line-height: 0.9;
}

.legal-lead {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.legal-content {
    max-width: 820px;
}

.legal-section {
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
}

.legal-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-section h2 {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}

.legal-section p {
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.legal-section p:last-child { margin-bottom: 0; }
.legal-placeholder { color: #9a604e !important; }
.legal-page a:not(.brand):not(.footer-link):not(.site-nav a):not(.language-switch a) {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.legal-return {
    display: inline-block;
    margin-top: 2rem;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: clamp(1rem, 2vw, 2rem);
    border: 0;
    background: var(--dialog);
    color: var(--text);
}

.lightbox::backdrop { background: rgba(25, 25, 24, 0.18); }

.lightbox[open] {
    display: grid;
    grid-template-columns: minmax(44px, 74px) minmax(0, 1fr) minmax(44px, 74px);
    align-items: center;
}

.lightbox-figure {
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
}

.lightbox-image-wrap {
    min-height: 0;
    display: grid;
    place-items: center;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: calc(100dvh - 185px);
    object-fit: contain;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.lightbox figcaption {
    width: min(900px, 100%);
    margin: 0 auto;
}

.lightbox-caption-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.lightbox h3 {
    margin-bottom: 0.1rem;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.5vw, 2.35rem);
    font-weight: 500;
    line-height: 1;
}

.lightbox-location,
.lightbox-position,
.lightbox-note {
    color: var(--muted);
}

.lightbox-location,
.lightbox-position {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.lightbox-note {
    max-width: 670px;
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
}

.lightbox-close,
.lightbox-nav {
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
    opacity: 0.55;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 2;
    font-size: 2rem;
    font-weight: 300;
}

.lightbox-nav { font-size: 1.6rem; }

.lightbox-nav:hover,
.lightbox-close:hover,
.lightbox-nav:focus-visible,
.lightbox-close:focus-visible { opacity: 1; }

@media (max-width: 900px) {
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about { grid-template-columns: 1fr; }
    .about .eyebrow { margin-bottom: 1rem; }
    .about-copy { margin-top: 1.5rem; }
    .header-right { gap: 1.1rem; }
    .site-nav { gap: 1rem; }
    .language-switch { padding-left: 1rem; }
}

@media (max-width: 650px) {
    .site-header {
        min-height: 84px;
        gap: 1rem;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand-r,
    .brand-s { font-size: 1.7rem; }
    .brand-r { left: 6px; }
    .brand-s { right: 5px; }
    .brand-slash { left: 60%; top: 50%; height: 33px; }
    .brand-corner { width: 19px; height: 19px; }
    .brand-name { font-size: 1.22rem; }
    .brand-label { font-size: 0.56rem; }

    .header-right { gap: 0.8rem; }
    .site-nav { display: none; }
    .header-stories-link { display: inline-block; }
    .language-switch { border-left: 0; padding-left: 0; }

    .hero { padding-top: 4.5rem; }
    h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
    .photo-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .section-heading { align-items: start; flex-direction: column; gap: 0.5rem; }
    .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.45rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .footer-legal { order: 2; flex-wrap: wrap; }
    .footer-actions { order: 3; }
    .lightbox[open] { grid-template-columns: 1fr; }
    .lightbox-nav { position: absolute; bottom: 1.15rem; z-index: 3; }
    .lightbox-prev { left: 1.25rem; }
    .lightbox-next { right: 1.25rem; }
    .lightbox-position { display: none; }
    .lightbox figcaption { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .photo-frame img,
    .site-nav a::after,
    .language-switch a { transition: none; }
}


/* Print sales: kept intentionally editorial rather than shop-like. */
.prints-page {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(4.5rem, 8vw, 7.5rem) var(--pad) clamp(5rem, 9vw, 8rem);
}
.prints-head { max-width: 900px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.prints-head h1 { max-width: 820px; }
.selected-print {
    display: grid;
    grid-template-columns: minmax(180px, 310px) 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}
.selected-print-image { aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.selected-print-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.selected-print h2, .print-info-block h2 {
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.95;
}
.print-muted { color: var(--muted); }
.print-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 7vw, 7rem);
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--line);
}
.print-info-block p { max-width: 620px; color: var(--muted); }
.order-steps { margin: 0 0 1.4rem; padding-left: 1.2rem; color: var(--muted); }
.order-steps li { margin-bottom: 0.55rem; padding-left: 0.25rem; }
.price-section { padding: clamp(4rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.price-lead, .price-tax-note { color: var(--muted); max-width: 760px; }
.price-table { margin-top: 2rem; border-top: 1px solid var(--line); }

.price-group + .price-group { margin-top: clamp(3rem, 5vw, 4.5rem); }
.price-group-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.85rem;
}
.price-group-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1;
}
.price-row-overview {
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.55fr);
}
.price-row-overview .price-value { text-align: right; }
.price-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.55fr) minmax(180px, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}
.price-size { font-family: var(--font-display); font-size: 1.45rem; }
.price-value { font-weight: 600; }
.price-action { text-align: right; }
.print-conditions { margin-top: 0; }
.lightbox-print-link { margin-top: 0.9rem; }

.dibond-card {
    margin-top: 1.9rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(253, 252, 249, 0.92), rgba(247, 245, 240, 0.94));
    border: 1px solid var(--line);
}

.dibond-visual {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 4 / 3;
    margin-bottom: 0.9rem;
    overflow: hidden;
}

.dibond-shadow,
.dibond-back,
.dibond-core,
.dibond-front,
.dibond-rail {
    position: absolute;
    display: block;
}

.dibond-shadow {
    inset: auto 1.6rem 1.2rem 3.5rem;
    height: 1rem;
    background: radial-gradient(ellipse at center, rgba(25, 25, 24, 0.16), rgba(25, 25, 24, 0));
    filter: blur(8px);
}

.dibond-back {
    inset: 2.15rem 1.5rem 1.25rem 3.2rem;
    background: linear-gradient(145deg, #d8d4cb 0%, #f0ece5 55%, #cbc6bc 100%);
    border: 1px solid #d2cdc4;
    transform: skewY(-5deg);
}

.dibond-core {
    inset: 1.85rem 1.15rem 1.05rem 2.8rem;
    background: linear-gradient(145deg, #b6b0a6 0%, #d7d1c8 50%, #aaa39a 100%);
    border: 1px solid #bdb6ac;
    transform: skewY(-5deg);
}

.dibond-front {
    inset: 1.55rem 0.9rem 0.85rem 2.45rem;
    background: linear-gradient(135deg, #f3efe7 0%, #faf8f2 45%, #e8e2d8 100%);
    border: 1px solid #d9d2c8;
    box-shadow: 0 9px 22px rgba(25, 25, 24, 0.08);
    transform: skewY(-5deg);
}

.dibond-front::before {
    content: "";
    position: absolute;
    inset: 8% 7%;
    background: linear-gradient(135deg, rgba(165, 141, 111, 0.12), rgba(165, 141, 111, 0.02));
    border: 1px solid rgba(165, 141, 111, 0.22);
}

.dibond-rail {
    width: 36%;
    height: 12%;
    top: 48%;
    left: 0.75rem;
    background: linear-gradient(180deg, #8e877d, #b2aba1 48%, #8a8379);
    border: 1px solid #928a80;
    transform: translateY(-50%) skewY(-5deg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.dibond-caption {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.dibond-specs {
    display: grid;
    gap: 0.85rem;
}

.dibond-spec {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0.8rem;
    align-items: start;
}

.dibond-spec-title {
    margin-bottom: 0.12rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.dibond-spec-text {
    color: var(--muted);
    font-size: 0.87rem;
}

.dibond-key {
    width: 14px;
    height: 14px;
    margin-top: 0.22rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.1);
}

.dibond-key-front { background: #efe9de; }
.dibond-key-core { background: #c8c1b7; }
.dibond-key-rail { background: #a79f95; }

@media (max-width: 760px) {
    .dibond-card { padding: 1.1rem; }
    .dibond-visual { width: min(100%, 320px); }

    .selected-print, .print-info-grid { grid-template-columns: 1fr; }
    .selected-print-image { max-width: 340px; }
    .price-row { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
    .price-row-overview { grid-template-columns: 1fr auto; }
    .price-action { grid-column: 1 / -1; text-align: left; }
}


/* Floating scroll-to-top button */
.scroll-top-button {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    z-index: 20;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(253, 252, 249, 0.94);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(25, 25, 24, 0.08);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease, background 180ms ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.scroll-top-button span {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-1px);
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    border-color: var(--accent);
    background: var(--surface);
}

.scroll-top-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .scroll-top-button {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-button { transition: none; }
}
