/* ==========================================================================
   Perpete Olo — Design System
   Couture-asymmetric, heritage-modern
   ========================================================================== */

:root {
    --color-bg: #F4EEE6;
    --color-surface: #EAE1D3;
    --color-text: #2B2320;
    --color-muted: #8B7F72;
    --color-accent: #8C3B2E;
    --color-bg-rgb: 244, 238, 230;

    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-max: 1360px;
    --gutter: clamp(1.25rem, 4vw, 4rem);

    --ease: cubic-bezier(.2, .7, .2, 1);
    --dur: 0.9s;
}

* , *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* subtle grain overlay, CSS-only, no image asset */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image:
        repeating-linear-gradient(0deg, rgba(43,35,32,0.6) 0px, transparent 1px, transparent 2px, rgba(43,35,32,0.4) 3px),
        repeating-linear-gradient(90deg, rgba(43,35,32,0.5) 0px, transparent 1px, transparent 3px);
    background-size: 3px 3px, 4px 4px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); line-height: 1.05; font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; }

p { margin: 0 0 1em; color: var(--color-text); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 0.75em 1.25em;
    z-index: 1000;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ---------- eyebrow / museum label ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted);
    padding-bottom: 0.6em;
    margin-bottom: 1em;
    position: relative;
    font-weight: 600;
}
.eyebrow::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 2.6rem;
    height: 1px;
    background: var(--color-accent);
}
.eyebrow--footer { color: var(--color-muted); }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.95em 2em;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    border: 1px solid var(--color-text);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--solid {
    background: var(--color-text);
    color: var(--color-bg);
}
.btn--solid:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.btn--outline {
    background: transparent;
    color: var(--color-text);
}
.btn--outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244,238,230,0.92);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid rgba(43,35,32,0.08);
}
.site-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.wordmark {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-text);
}
.wordmark span { color: var(--color-accent); font-style: italic; }
.wordmark--footer { font-size: 1.6rem; margin-bottom: 0.25rem; }

.site-nav ul {
    display: flex;
    gap: clamp(0.9rem, 2vw, 2rem);
    list-style: none;
    margin: 0; padding: 0;
}
.site-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--color-text);
    padding: 0.4em 0;
    position: relative;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}
.site-nav a.is-active { color: var(--color-accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(43,35,32,0.25);
    cursor: pointer;
}
.nav-toggle__line {
    display: block;
    height: 1px;
    width: 18px;
    margin: 0 auto;
    background: var(--color-text);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
    transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    display: flex;
    min-height: 76vh;
    align-items: stretch;
    background: var(--color-bg);
}
.hero__content {
    flex: 0 0 36%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}
.hero__title { margin-bottom: 0.4em; }
.hero__lead {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 30ch;
    margin-bottom: 1.6em;
}
.hero__content .btn { align-self: flex-start; }
.hero__media {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 42vh;
}
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.4s var(--ease);
}
.hero:hover .hero__media img { transform: scale(1.06); }

@media (max-width: 880px) {
    .hero { flex-direction: column-reverse; min-height: auto; }
    .hero__media { min-height: 52vh; }
    .hero__content { flex: none; padding: 2.4rem 1.5rem 2.8rem; }
    .hero__lead { max-width: none; }
}

/* ==========================================================================
   Section rhythm generic
   ========================================================================== */
.section {
    padding: clamp(4rem, 9vw, 8rem) 0;
}
.section--surface { background: var(--color-surface); }

/* Statement — text-only asymmetric, generous negative space */
.statement {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.6fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(4rem, 10vw, 9rem) var(--gutter);
    max-width: var(--container-max);
    margin: 0 auto;
}
.statement__text {
    max-width: 46ch;
}
.statement__text p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text);
}
@media (max-width: 780px) {
    .statement { grid-template-columns: 1fr; }
}

/* Split section — image + narrow offset column, asymmetric */
.split {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.split--reverse { grid-template-columns: 1fr 1.7fr; }
.split--reverse .split__media { order: 2; }
.split--reverse .split__text { order: 1; }
.split__media { overflow: hidden; }
.split__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.split__text { max-width: 34ch; }
.split__text p { color: var(--color-muted); }

@media (max-width: 880px) {
    .split, .split--reverse {
        grid-template-columns: 1fr;
    }
    .split--reverse .split__media,
    .split--reverse .split__text,
    .split .split__media,
    .split .split__text {
        order: initial;
    }
    .split__text { max-width: none; }
}

/* Fullbleed */
.fullbleed {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.fullbleed__media {
    width: 100%;
    height: clamp(48vh, 60vw, 82vh);
    overflow: hidden;
}
.fullbleed__media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.fullbleed__caption {
    position: absolute;
    left: var(--gutter);
    bottom: clamp(1.5rem, 4vw, 3rem);
    max-width: 34ch;
    color: #F4EEE6;
    background: rgba(43,35,32,0.55);
    padding: 1.2em 1.5em;
    backdrop-filter: blur(2px);
}
.fullbleed__caption .eyebrow { color: #EAE1D3; }
.fullbleed__caption .eyebrow::after { background: #F4EEE6; }
.fullbleed__caption p { color: #F4EEE6; margin: 0; font-size: 0.95rem; }

/* Craft / process asymmetric variant reuses .split */

/* ==========================================================================
   Gallery — irregular editorial masonry
   ========================================================================== */
.gallery {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}
.gallery__head {
    max-width: 46ch;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 14vw;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}
.gallery__item {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--tall { grid-column: span 2; grid-row: span 3; }
.gallery__item--wide { grid-column: span 4; grid-row: span 2; }
.gallery__item--square { grid-column: span 2; grid-row: span 2; }
.gallery__item--offset { grid-column: span 4; grid-row: span 1; align-self: end; }

.gallery__caption {
    position: absolute;
    left: 0.9rem; bottom: 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F4EEE6;
    background: rgba(43,35,32,0.55);
    padding: 0.45em 0.8em;
}

@media (max-width: 880px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 46vw;
    }
    .gallery__item--tall,
    .gallery__item--wide,
    .gallery__item--square,
    .gallery__item--offset {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) var(--gutter);
    display: grid;
    grid-template-columns: minmax(0,0.9fr) minmax(0,1.6fr);
    gap: clamp(1.5rem, 5vw, 4rem);
}
.faq__list { border-top: 1px solid rgba(43,35,32,0.15); }
.faq__item {
    border-bottom: 1px solid rgba(43,35,32,0.15);
    padding: 1.4em 0;
}
.faq__item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
    color: var(--color-muted);
    margin-top: 0.8em;
    max-width: 60ch;
}
@media (max-width: 780px) {
    .faq { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-surface);
}
.cta__media { overflow: hidden; height: 100%; min-height: 46vh; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5rem);
}
.cta__content p { color: var(--color-muted); max-width: 36ch; }
.cta__contact {
    margin-top: 1.4em;
    padding-top: 1.2em;
    border-top: 1px solid rgba(43,35,32,0.18);
}
.cta__contact a { display: block; margin-bottom: 0.3em; color: var(--color-text); }
.cta__contact a:hover { color: var(--color-accent); }

@media (max-width: 880px) {
    .cta { grid-template-columns: 1fr; }
    .cta__media { order: -1; min-height: 42vh; }
}

/* ==========================================================================
   Generic content pages (about/services/process/contacts/privacy)
   ========================================================================== */
.page-hero {
    padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(2rem, 5vw, 3rem);
    max-width: 70ch;
    margin: 0 auto;
}
.page-hero p { color: var(--color-muted); font-size: 1.05rem; }

.content-block {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
}
.content-block--narrow {
    max-width: 66ch;
    padding-left: 0; padding-right: 0;
    margin-left: var(--gutter);
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.card-list__item {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--color-surface);
}
.card-list__item h3 { margin-bottom: 0.5em; }
.card-list__item p { color: var(--color-muted); margin: 0; }

.step-list {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 70ch;
}
.step-list__item {
    counter-increment: step;
    position: relative;
    padding: 1.8em 0 1.8em 3.2em;
    border-top: 1px solid rgba(43,35,32,0.15);
}
.step-list__item:last-child { border-bottom: 1px solid rgba(43,35,32,0.15); }
.step-list__item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0; top: 1.8em;
    font-family: var(--font-display);
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.step-list__item h3 { margin-bottom: 0.35em; }
.step-list__item p { color: var(--color-muted); margin: 0; max-width: 56ch; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.info-grid__block .eyebrow { margin-bottom: 0.6em; }
.info-grid__block p { margin: 0 0 0.3em; }
.info-grid__block a { color: var(--color-text); }
.info-grid__block a:hover { color: var(--color-accent); }

/* ==========================================================================
   Reveal / motion
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__media img, .gallery__item img { transition: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-text);
    color: var(--color-bg);
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}
.site-footer a { color: var(--color-bg); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.site-footer__tag { color: rgba(244,238,230,0.65); }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4em; }
.site-footer__legal {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.2rem var(--gutter) 0;
    border-top: 1px solid rgba(244,238,230,0.15);
    font-size: 0.8rem;
    color: rgba(244,238,230,0.6);
}
@media (max-width: 780px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    .site-nav {
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--color-bg);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
        padding: 2rem var(--gutter);
        z-index: 90;
    }
    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .site-nav ul { flex-direction: column; gap: 1.4rem; }
    .site-nav a { font-size: 1.1rem; }
    .nav-toggle { display: flex; }
}
/* Landing Factory generated brand lockup */
.lf-brand-lockup{display:inline-flex;align-items:center;text-decoration:none;flex:0 0 auto}.lf-brand-lockup img{display:block;width:auto;height:44px;max-width:min(260px,48vw);object-fit:contain}@media(max-width:700px){.lf-brand-lockup img{height:36px;max-width:54vw}}
