/* LCG Joinery site styles (index2.html, privacy.html) */

/* ---------- Self-hosted font (SIL Open Font License) ---------- */
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-display: swap;
    src: url("../fonts/instrument-sans-latin-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
    --paper: #EEEDE8;
    --paper-alt: #E2E0D8;
    --ink: #2A211A;
    --ink-soft: #5B5047;
    --walnut: #7A4A14;
    --walnut-deep: #54320C;
    --sage: #5E7A66;
    --line: #CFCABE;
    --white: #FFFFFF;
    --flag: #FFE27A;

    --font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --text-sm: 0.9375rem;
    --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --text-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --text-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
    --text-h2: clamp(2.25rem, 1.5rem + 3vw, 4rem);
    --text-hero: clamp(3rem, 1.2rem + 7vw, 7.25rem);

    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
    --max-width: 1320px;
    --header-height: 76px;
    --call-bar-height: 72px;

    --radius-sm: 6px;
    --radius-btn: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;

    --tracking-tight: -0.03em;
    --tracking-snug: -0.02em;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 160ms;
    --duration-normal: 320ms;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1;
}

h2 {
    font-size: var(--text-h2);
    font-weight: 650;
    font-stretch: 88%;
    letter-spacing: var(--tracking-tight);
    line-height: 0.98;
}

h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    letter-spacing: var(--tracking-snug);
    line-height: 1.2;
}

p { margin: 0 0 1em; max-width: 64ch; }

:focus-visible {
    outline: 3px solid var(--walnut);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
}

.skip-link:focus { top: 1rem; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Details the owner must supply before launch. Search the HTML for "TO FILL". */
.to-fill {
    padding: 0 0.25em;
    background: var(--flag);
    color: var(--ink);
    font-weight: 600;
}

.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section.is-flush-top { padding-top: 0; }

.section-intro {
    max-width: 46ch;
    margin-top: 1.25rem;
    color: var(--ink-soft);
    font-size: var(--text-lg);
    line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.8rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}

.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--walnut); color: var(--white); }
.btn-primary:hover { background: var(--walnut-deep); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--walnut-deep); }
.btn-light:hover { background: var(--white); }

.btn-ghost-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(238, 237, 232, 0.94);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-height);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { width: auto; height: 60px; }

.main-nav ul {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.6rem 0.9rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-btn);
    transition: background-color var(--duration-fast);
}

.main-nav a:hover { background: var(--paper-alt); }

.header-call { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 1rem; }

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

.nav-toggle svg { width: 28px; height: 28px; margin: auto; }

@media (max-width: 900px) {
    .nav-toggle { display: grid; place-items: center; }
    .header-call { display: none; }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1.25rem;
    }

    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 0.9rem 0.25rem; font-size: 1.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0; overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: end;
}

.hero h1 {
    font-size: var(--text-hero);
    font-weight: 650;
    font-stretch: 82%;
    line-height: 0.92;
    letter-spacing: -0.035em;
    word-spacing: 0.04em;
}

.hero h1 span { display: block; }

.hero-lede {
    max-width: 44ch;
    margin: 1.75rem 0 2.25rem;
    color: var(--ink-soft);
    font-size: var(--text-lg);
    line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 2.75rem 0 2.5rem;
    padding: 0;
    list-style: none;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 550;
    color: var(--ink-soft);
}

.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--sage); }

.hero-figure { position: relative; margin: 0; }

.hero-figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-figure figcaption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.75rem;
    background: var(--paper);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
}

/* The tape-measure rule: the page's one signature detail */
.rule {
    position: relative;
    height: 34px;
    background-color: var(--walnut);
    background-image:
        repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 100px),
        repeating-linear-gradient(90deg, rgba(238, 237, 232, 0.85) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(90deg, rgba(238, 237, 232, 0.55) 0 1px, transparent 1px 10px);
    background-size: 100% 20px, 100% 13px, 100% 7px;
    background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
    .hero h1 span {
        opacity: 0;
        transform: translateY(0.35em);
        animation: rise 900ms var(--ease-out) forwards;
    }

    .hero h1 span:nth-child(2) { animation-delay: 120ms; }
    .hero h1 span:nth-child(3) { animation-delay: 240ms; }

    .rule { animation: measure 1400ms var(--ease-out) both; transform-origin: left; }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes measure { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-figure img { aspect-ratio: 4 / 3; }
}

/* ---------- Services ---------- */
.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 1rem + 5vw, 6rem);
    align-items: start;
}

.services-heading { position: sticky; top: calc(var(--header-height) + 2rem); }
.services-heading .btn { margin-top: 1.5rem; }

.service-list { margin: 0; padding: 0; list-style: none; }

.service {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 1.75rem;
    border-top: 1px solid var(--line);
}

.service:last-child { border-bottom: 1px solid var(--line); }

.service img {
    width: 140px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.service h3 { margin-bottom: 0.5rem; }
.service p { margin: 0; color: var(--ink-soft); }

@media (max-width: 900px) {
    .services-layout { grid-template-columns: 1fr; }
    .services-heading { position: static; }
}

@media (max-width: 520px) {
    .service { grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; }
    .service img { width: 88px; }
}

/* ---------- Projects ---------- */
.projects { background: var(--paper-alt); }

.projects-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.projects-head .section-intro { margin: 0; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 12vw + 60px, 260px);
    grid-auto-flow: dense;
    gap: 12px;
}

.project {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: var(--white);
    text-align: left;
    cursor: zoom-in;
    font: inherit;
}

.project.is-large { grid-column: span 2; grid-row: span 2; }
.project.is-tall { grid-row: span 2; }
.project.is-wide { grid-column: span 2; }

.project img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 22, 15, 0.82) 0%, rgba(30, 22, 15, 0.1) 55%, transparent 100%);
}

.project-meta {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1rem;
    z-index: 1;
}

.project-title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: var(--tracking-snug);
    line-height: 1.15;
}

.project-count {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    opacity: 0.85;
}

.project:hover img, .project:focus-visible img { transform: scale(1.04); }
.project:focus-visible { outline-offset: 4px; }

@media (max-width: 760px) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
    .project.is-large { grid-column: span 2; grid-row: span 2; }
    .project.is-wide { grid-column: span 2; grid-row: span 1; }
    .project.is-tall { grid-row: span 2; }
}

/* ---------- Process ---------- */
.process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.process-step {
    counter-increment: step;
    padding-top: 1.25rem;
    border-top: 3px solid var(--ink);
}

.process-step::before {
    content: counter(step);
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    font-stretch: 80%;
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    color: var(--walnut);
}

.process-step h3 { margin-bottom: 0.6rem; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process-list { grid-template-columns: 1fr; } }

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

.about-figure { margin: 0; }

.about-figure img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-text h2 { margin-bottom: 1.75rem; }
.about-text .btn { margin-top: 1rem; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-figure img { aspect-ratio: 4 / 3; }
}

/* ---------- Testimonials ---------- */
.reviews { background: var(--paper-alt); }

.reviews-note {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: var(--text-sm);
}

.review-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 30%);
    gap: 1.25rem;
    margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    padding-bottom: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--walnut) transparent;
}

.review {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0;
    padding: 1.75rem;
    background: var(--paper);
    border-radius: var(--radius-md);
    scroll-snap-align: start;
}

.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.review blockquote p { margin: 0; }
.review figcaption { font-family: var(--font-display); font-size: var(--text-sm); color: var(--ink-soft); }
.review figcaption strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 650; }

@media (max-width: 760px) { .review-track { grid-auto-columns: 85%; } }

/* ---------- Contact ---------- */
.contact { background: var(--walnut-deep); color: var(--paper); }
.contact h2 { color: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 5vw, 6rem);
    align-items: end;
}

.contact .section-intro { color: rgba(238, 237, 232, 0.85); }

.contact-phone {
    display: inline-block;
    margin: 2rem 0 1.75rem;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
    font-weight: 650;
    font-stretch: 82%;
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    color: var(--white);
    text-decoration: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.35);
    transition: border-color var(--duration-fast);
}

.contact-phone:hover { border-color: var(--white); }
.contact :focus-visible { outline-color: var(--white); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.contact-privacy {
    margin: 1.5rem 0 0;
    color: rgba(238, 237, 232, 0.8);
    font-family: var(--font-display);
    font-size: var(--text-sm);
}

.contact-details { margin: 0; padding: 0; list-style: none; font-family: var(--font-display); }

.contact-details li {
    display: flex;
    gap: 0.9rem;
    padding-block: 1rem;
    border-top: 1px solid rgba(238, 237, 232, 0.2);
}

.contact-details li:last-child { border-bottom: 1px solid rgba(238, 237, 232, 0.2); }
.contact-details svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.contact-details a, .contact-privacy a { text-decoration-color: rgba(238, 237, 232, 0.4); text-underline-offset: 4px; }
.contact-details a:hover, .contact-privacy a:hover { text-decoration-color: currentColor; }

.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

.socials a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(238, 237, 232, 0.45);
    border-radius: 50%;
    transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.socials svg { width: 20px; height: 20px; }

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

/* ---------- Footer ---------- */
.site-footer {
    padding-block: 2.5rem;
    background: var(--ink);
    color: rgba(238, 237, 232, 0.75);
    font-family: var(--font-display);
    font-size: var(--text-sm);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }

.footer-links a, .footer-links button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.footer-links a:hover, .footer-links button:hover { color: var(--white); text-decoration: underline; }
.site-footer p { margin: 0; }

.footer-legal {
    width: 100%;
    max-width: none;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(238, 237, 232, 0.15);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

@media (max-width: 760px) {
    body.has-call-bar { padding-bottom: var(--call-bar-height); }

    .call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--paper);
        border-top: 1px solid var(--line);
    }

    .call-bar .btn { min-height: 48px; padding-inline: 0.75rem; }
}

/* ---------- Cookie consent ---------- */
.consent {
    position: fixed;
    left: var(--gutter);
    bottom: var(--gutter);
    z-index: 60;
    width: min(560px, calc(100% - 2 * var(--gutter)));
    padding: 1.5rem;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px -12px rgba(42, 33, 26, 0.35);
}

.consent[hidden] { display: none; }

.consent h2 {
    margin-bottom: 0.6rem;
    font-size: 1.375rem;
    letter-spacing: var(--tracking-snug);
}

.consent p { margin: 0 0 1.1rem; font-size: 1rem; line-height: 1.55; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.consent .btn { min-height: 48px; padding-inline: 0.75rem; font-size: 1rem; }

@media (max-width: 760px) {
    .has-call-bar .consent { bottom: calc(var(--call-bar-height) + 0.75rem); }
    .consent { left: 12px; width: calc(100% - 24px); padding: 1.25rem; }
}

@media (max-width: 380px) { .consent-actions { grid-template-columns: 1fr; } }

/* ---------- Desktop call / email panel (js/contact.js) ---------- */
.contact-sheet {
    width: min(460px, calc(100% - 2rem));
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 30px 80px -20px rgba(42, 33, 26, 0.45);
}

.contact-sheet::backdrop { background: rgba(42, 33, 26, 0.45); backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: no-preference) {
    .contact-sheet[open] { animation: sheet-in var(--duration-normal) var(--ease-out); }
}

@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.contact-sheet-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
}

.contact-sheet-close:hover { background: var(--paper); color: var(--ink); }
.contact-sheet-close svg { width: 20px; height: 20px; }

.contact-sheet-title { font-size: 1.125rem; font-weight: 600; letter-spacing: var(--tracking-snug); color: var(--ink-soft); }

.contact-sheet-value {
    margin: 0.5rem 0 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 650;
    font-stretch: 88%;
    letter-spacing: var(--tracking-tight);
    line-height: 1.1;
    overflow-wrap: anywhere;
    user-select: all;
}

.contact-sheet-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-sheet-actions .btn { flex: 1 1 auto; }

.contact-sheet-label { margin: 1.5rem 0 0.6rem; color: var(--ink-soft); font-size: var(--text-sm); }

.contact-sheet-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-sheet-apps .btn { width: 100%; min-height: 46px; font-size: 1rem; }

.contact-sheet-hint { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }

.contact-sheet-status {
    min-height: 1.5em;
    margin: 1rem 0 0;
    color: var(--sage);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ---------- Legal page ---------- */
.legal-page { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--space-section); }

.legal-page h1 {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    font-weight: 650;
    font-stretch: 85%;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.legal-meta { margin: 1rem 0 0; color: var(--ink-soft); font-family: var(--font-display); font-size: var(--text-sm); }

.legal-body { max-width: 72ch; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

.legal-body h2 {
    margin: 2.75rem 0 1rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    letter-spacing: var(--tracking-snug);
    line-height: 1.1;
}

.legal-body h3 { margin: 1.75rem 0 0.6rem; font-size: 1.25rem; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal-body li { margin-bottom: 0.4em; }
.legal-body a { text-decoration-color: var(--walnut); text-underline-offset: 3px; }

.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }

.legal-body table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.legal-body th, .legal-body td {
    padding: 0.75rem 0.9rem 0.75rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-body th { font-family: var(--font-display); font-weight: 650; }

/* ---------- Photo viewer ---------- */
.viewer {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 15, 10, 0.96);
    color: var(--white);
}

.viewer::backdrop { background: rgba(20, 15, 10, 0.96); }

.viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

@media (prefers-reduced-motion: no-preference) {
    .viewer[open] { animation: viewer-in var(--duration-normal) var(--ease-out); }
}

@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }

body:has(.viewer[open]) { overflow: hidden; }

.viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--gutter);
    font-family: var(--font-display);
}

.viewer-title { margin: 0; color: var(--white); font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
.viewer-counter { font-size: var(--text-sm); opacity: 0.75; }

.viewer-stage {
    position: relative;
    min-height: 0;
    padding: 0 clamp(0.5rem, 5vw, 5rem);
    touch-action: pan-y;
}

.viewer-stage img { width: 100%; height: 100%; object-fit: contain; }

.viewer-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(20, 15, 10, 0.5);
    color: var(--white);
    cursor: pointer;
    transition: background-color var(--duration-fast), border-color var(--duration-fast);
}

.viewer-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.viewer-btn:focus-visible { outline-color: var(--white); }
.viewer-btn svg { width: 22px; height: 22px; }

.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.viewer-next { right: clamp(0.5rem, 2vw, 1.5rem); }

.viewer-foot {
    max-width: none;
    margin: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    opacity: 0.7;
    text-align: center;
}

@media (max-width: 760px) {
    .viewer-prev, .viewer-next { top: auto; bottom: 0.5rem; transform: none; }
    .viewer-stage { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
