/* ==========================================================================
   Lúmen Atelier (fiktív demo márka) — Atelier Editorial
   Direction: Vogue Beauty meets a Parisian apothecary.
   Palette: bone/ivory · bordeaux · cognac · blush · cocoa.
   ========================================================================== */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--bordeaux); color: var(--ivory); }


/* ---------- 2. DESIGN TOKENS ---------- */
:root {
    /* Warm editorial palette */
    --bone:           #f3ebdd;
    --bone-warm:      #ede2cf;
    --ivory:          #faf6ef;
    --cream:          #ede4d5;
    --paper:          #f5efe3;

    --blush:          #f0d6cd;
    --rose:           #e8c0b3;
    --petal:          #d99b8e;
    --terracotta:     #c47862;

    --bordeaux:       #5c1a2b;
    --bordeaux-deep:  #3d101c;
    --bordeaux-soft:  rgba(92, 26, 43, 0.08);
    --bordeaux-ring:  rgba(92, 26, 43, 0.25);

    --cognac:         #b07a4a;
    --cognac-deep:    #8a5a30;
    --cognac-light:   #d4a574;

    --cocoa:          #2a1a15;
    --espresso:       #1a0f0c;
    --ink:            #3d2a24;
    --ink-soft:       #5a443c;
    --mist:           #8d7569;
    --rule:           rgba(42, 26, 21, 0.14);
    --rule-soft:      rgba(42, 26, 21, 0.08);
    --rule-light:     rgba(245, 239, 227, 0.22);

    /* Typography */
    --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
    --font-body:    'Instrument Sans', 'Helvetica Neue', -apple-system, sans-serif;

    /* Spacing */
    --section-py: clamp(5rem, 11vw, 9rem);
    --container-px: clamp(1.25rem, 4vw, 2.5rem);
    --container-w: 1280px;

    /* Radii */
    --r-sm: 4px;
    --r-md: 8px;
    --r-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.2s ease;
    --t: 0.45s var(--ease);
}


/* ---------- 3. BASE TYPOGRAPHY ---------- */
body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--cocoa);
    background: var(--bone);
    /* "clip" instead of "hidden": hidden makes body a scroll container,
       which breaks position: sticky (the pinned gallery) */
    overflow-x: clip;
}

/* Subtle paper grain on the whole body */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--cocoa);
    text-wrap: balance;
}

p { color: var(--ink); text-wrap: pretty; }

/* Branded chrome: quiet scrollbar + keyboard focus ring */
html { scrollbar-color: var(--cognac) var(--bone); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bone); }
::-webkit-scrollbar-thumb {
    background: var(--cognac);
    border-radius: 999px;
    border: 2px solid var(--bone);
}

:focus-visible {
    outline: 2px solid var(--bordeaux);
    outline-offset: 3px;
    border-radius: 2px;
}
.form-group :focus-visible { outline: none; }

/* Anchor landing offset for the fixed nav */
section[id] { scroll-margin-top: 90px; }


/* ---------- 4. LAYOUT HELPERS ---------- */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding-inline: var(--container-px);
}

/* Kicker / section label */
.kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--bordeaux);
}

.kicker-dot {
    width: 7px; height: 7px;
    background: var(--bordeaux);
    border-radius: 50%;
}

/* Section heading block */
.section-head {
    max-width: 720px;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }

.section-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--cognac);
    letter-spacing: 0.04em;
}

.section-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.section-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--bordeaux);
}

.section-lede {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--ink-soft);
    max-width: 620px;
    line-height: 1.6;
}
.section-head--center .section-lede { margin-inline: auto; }

.link-underline {
    color: var(--bordeaux);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}


/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow 0.35s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.btn-lg { padding: 1.1rem 2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--bordeaux);
    color: var(--ivory);
}
.btn-primary:hover {
    background: var(--bordeaux-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -16px rgba(92, 26, 43, 0.6);
}
.btn-primary .btn-arrow { transition: transform var(--t-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--cocoa);
    border-color: var(--rule);
}
.btn-ghost:hover {
    background: var(--cocoa);
    color: var(--ivory);
    border-color: var(--cocoa);
}

.btn-arrow { width: 18px; height: 18px; }


/* ---------- 6. NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    /* Extend the bar's background up behind the iOS notch/status bar */
    padding: calc(1.1rem + env(safe-area-inset-top)) 0 1.1rem;
    background: rgba(243, 235, 221, 0.55);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), padding var(--t);
}
.nav.scrolled {
    background: rgba(243, 235, 221, 0.85);
    border-bottom-color: var(--rule);
    padding: calc(0.75rem + env(safe-area-inset-top)) 0 0.75rem;
}
/* Solid strip directly above the bar: covers the iOS status-bar area
   even when safe-area insets resolve to 0 (harmlessly offscreen elsewhere) */
.nav::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 100%;
    height: 120px;
    background: var(--bone);
}

.nav-inner {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding-inline: var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--cocoa);
}
.brand-mark {
    width: 32px; height: 32px;
    color: var(--bordeaux);
}
.brand-mark svg {
    width: 100%; height: 100%;
    transition: transform 0.45s var(--ease);
}
.brand:hover .brand-mark svg { transform: rotate(-12deg); }

.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name-1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--cocoa);
}
.brand-name-2 {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mist);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    transition: color var(--t-fast);
}
.nav-link:hover { color: var(--bordeaux); }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -5px;
    height: 1px;
    background: var(--bordeaux);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.7rem;
    color: var(--cognac);
}

.nav-cta { padding: 0.6rem 1.2rem; font-size: 0.82rem; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 14px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--cocoa);
    transition: transform var(--t), opacity var(--t);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }


/* ---------- 7. HERO (editorial cover) ---------- */
.hero {
    position: relative;
    display: flex;
    background:
        radial-gradient(ellipse 80% 50% at 85% 30%, var(--blush) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 5% 80%, rgba(176, 122, 74, 0.18) 0%, transparent 60%),
        var(--bone);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    min-height: 100dvh;
    padding: calc(clamp(6.5rem, 12vh, 8.5rem) + env(safe-area-inset-top)) var(--container-px) 0;
    display: flex;
    flex-direction: column;
}

.hero .kicker { margin-bottom: clamp(1.5rem, 3vh, 2.25rem); }

/* Oversized cover masthead — staggered editorial lines */
.hero-title {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 8.2vw, 7.25rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
}
.ht-line { display: block; }
.ht-line--2 { padding-left: clamp(1.5rem, 14vw, 13rem); }
.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--bordeaux);
}

.hero-intro {
    position: relative;
    z-index: 2;
    max-width: 440px;
    margin-top: clamp(2rem, 5vh, 3.5rem);
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-lede {
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    color: var(--ink-soft);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
}

/* Subordinate text link — the bordeaux pill stays the single dominant CTA */
.hero-link {
    display: inline-flex;
    align-items: center;
    padding-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cocoa);
    border-bottom: 1px solid var(--cocoa);
    transition: color var(--t-fast), border-color var(--t-fast);
}
.hero-link:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

/* Hero figure — the masthead overlaps the portrait like a magazine cover */
.hero-figure {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: clamp(2rem, 5vh, 3rem) auto 0;
}

/* Echo arch — offset hairline tracing the portrait frame */
.hero-figure::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(16px, -16px);
    border: 1px solid var(--cognac-light);
    border-radius: 280px 280px 6px 6px;
    pointer-events: none;
}
.hero-portrait {
    position: relative;
    width: clamp(280px, 78vw, 420px);
    aspect-ratio: 4 / 5;
    /* Arched-top editorial frame */
    border-radius: 280px 280px 6px 6px;
    overflow: hidden;
    background: var(--cream);
    box-shadow:
        0 1px 0 var(--rule),
        0 30px 60px -30px rgba(42, 26, 21, 0.25);
}
.hero-portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
    /* Slow settle while the figure fades in, then free for the hover zoom */
    animation: heroImgSettle 2.8s var(--ease) backwards;
    transition: transform 1.4s var(--ease);
}
.hero-portrait:hover img { transform: scale(1.045); }

@keyframes heroImgSettle {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.hero-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 2.4rem;
    line-height: 0.9;
    color: var(--ivory);
    text-align: right;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Folio bar — print-style hero footer with date, credit, social proof */
.hero-folio {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-block: 1.4rem 1.6rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
}
.folio-item--center em {
    font-style: italic;
    color: var(--cognac);
    text-transform: none;
    letter-spacing: 0.04em;
}

.folio-trust { display: flex; align-items: center; gap: 0.85rem; }
.trust-avatars { display: flex; }
.trust-avatars img {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bone);
    margin-left: -10px;
    transition: margin-left 0.45s var(--ease);
}
.trust-avatars img:first-child { margin-left: 0; }
.folio-trust:hover .trust-avatars img:not(:first-child) { margin-left: 2px; }

.folio-trust-line strong {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bordeaux);
    letter-spacing: 0;
    margin-right: 0.2rem;
}

/* Hero load-in: pure fade from 0% opacity, staggered (no movement).
   CSS-only so it runs even if JS fails; `forwards` keeps the end state. */
.hero .kicker,
.hero-title,
.hero-figure,
.hero-intro,
.hero-folio {
    opacity: 0;
    animation: heroFadeIn 1.2s var(--ease) forwards;
}
.hero .kicker { animation-delay: 0.1s; }
.hero-title   { animation-delay: 0.25s; }
.hero-figure  { animation-delay: 0.4s; }
.hero-intro   { animation-delay: 0.55s; }
.hero-folio   { animation-delay: 0.75s; }

@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ---------- 9. CREDO (Problem & Solution) ---------- */
.philosophy {
    /* Tighter rhythm than --section-py so the whole section fits one viewport */
    padding: clamp(3.5rem, 8vh, 5.5rem) 0;
    background: var(--bone);
    position: relative;
    overflow: hidden;
}

.philosophy .section-head { margin-bottom: clamp(2rem, 4vh, 3rem); }

/* Ghost watermark — oversized editorial signature */
.philosophy::after {
    content: "Credo";
    position: absolute;
    top: clamp(1rem, 4vw, 3rem);
    right: -1.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(6rem, 16vw, 14rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cocoa);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

/* Editorial layout: transformation visual + narrative cards */
.ps-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

/* ----- Transformation visual ----- */
.ps-visual {
    position: relative;
    margin: 0;
}

.ps-visual-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    isolation: isolate;
}

.ps-visual-pane {
    position: absolute;
    overflow: hidden;
    border-radius: 6px;
    background: var(--cream);
}
.ps-visual-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Large "after" pane — warm, full colour */
.ps-visual-pane--after {
    inset: 0 0 12% 26%;
    box-shadow: 0 30px 60px -28px rgba(42, 26, 21, 0.55);
}

/* Smaller overlapping "before" pane — desaturated, framed */
.ps-visual-pane--before {
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 3 / 4;
    border: 6px solid var(--ivory);
    box-shadow: 0 22px 44px -22px rgba(42, 26, 21, 0.5);
    z-index: 2;
}
.ps-visual-pane--before img {
    filter: grayscale(1) contrast(0.95) brightness(1.02);
}

/* Corner labels */
.ps-chip {
    position: absolute;
    top: 0.85rem;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border-radius: var(--r-pill);
    backdrop-filter: blur(4px);
}
.ps-chip--after {
    right: 0.85rem;
    background: rgba(92, 26, 43, 0.9);
    color: var(--bone);
}
.ps-chip--before {
    left: 0.85rem;
    background: rgba(245, 239, 227, 0.92);
    color: var(--ink-soft);
}

/* Seam medallion where the two panes meet */
.ps-visual-seam {
    position: absolute;
    left: 46%;
    bottom: 18%;
    transform: translate(-50%, 50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: clamp(44px, 5vw, 58px);
    height: clamp(44px, 5vw, 58px);
    border-radius: 50%;
    background: var(--cognac);
    color: var(--ivory);
    box-shadow: 0 10px 24px -8px rgba(138, 90, 48, 0.7);
}
.ps-visual-seam svg { width: 45%; height: 45%; }

.ps-visual-cap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.7rem;
    margin-top: 1.4rem;
    padding-left: 0.2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.3;
    color: var(--ink);
}
.ps-visual-cap-note {
    flex-basis: 100%;
    margin-top: 0.35rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--mist);
}
.ps-visual-cap-num {
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--cognac-deep);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    padding: 0.2rem 0.55rem;
    transform: translateY(-0.15em);
}

/* ----- Transformation visual: orchestrated reveal + hover ----- */

/* The figure opts out of the generic float-up; it choreographs its own parts */
.ps-visual.reveal { opacity: 1; transform: none; }

/* Sheen that sweeps the "after" pane on hover */
.ps-visual-pane--after::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(250, 246, 239, 0.42) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--ease);
    pointer-events: none;
    z-index: 1;
}

/* Resting + transition setup */
.ps-visual-pane--after {
    transition: transform 0.7s var(--ease), opacity 0.9s var(--ease), box-shadow 0.5s var(--ease);
}
.ps-visual-pane--after img {
    transition: transform 1.1s var(--ease);
}
.ps-visual-pane--before {
    transition: transform 0.6s var(--ease), opacity 0.8s var(--ease), box-shadow 0.5s var(--ease);
}
.ps-visual-pane--before img {
    transition: filter 0.7s var(--ease), transform 1.1s var(--ease);
}
.ps-visual-seam {
    transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.ps-visual-seam svg { transition: transform 0.6s var(--ease); }
.ps-chip { transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
.ps-visual-cap { transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }

/* Hidden / pre-reveal state (only while inside an un-revealed figure) */
.ps-visual.reveal .ps-visual-pane--after { opacity: 0; transform: translateX(34px) scale(0.94); }
.ps-visual.reveal .ps-visual-pane--before { opacity: 0; transform: translate(-32px, 14px); }
.ps-visual.reveal .ps-visual-seam { opacity: 0; transform: translate(-50%, 50%) scale(0) rotate(-120deg); }
.ps-visual.reveal .ps-chip { opacity: 0; }
.ps-visual.reveal .ps-chip--after { transform: translateY(-8px); }
.ps-visual.reveal .ps-chip--before { transform: translateY(8px); }
.ps-visual.reveal .ps-visual-cap { opacity: 0; transform: translateY(16px); }

/* Revealed state — staggered assembly */
.ps-visual.reveal.visible .ps-visual-pane--after { opacity: 1; transform: translateX(0) scale(1); transition-delay: 0.05s; }
.ps-visual.reveal.visible .ps-visual-pane--before { opacity: 1; transform: translate(0, 0); transition-delay: 0.28s; }
.ps-visual.reveal.visible .ps-visual-seam { opacity: 1; transform: translate(-50%, 50%) scale(1) rotate(0); transition-delay: 0.55s; transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
.ps-visual.reveal.visible .ps-chip { opacity: 1; }
.ps-visual.reveal.visible .ps-chip--after { transform: translateY(0); transition-delay: 0.45s; }
.ps-visual.reveal.visible .ps-chip--before { transform: translateY(0); transition-delay: 0.55s; }
.ps-visual.reveal.visible .ps-visual-cap { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

/* Hover — the transformation comes alive */
.ps-visual:hover .ps-visual-pane--after { box-shadow: 0 38px 70px -26px rgba(42, 26, 21, 0.62); }
.ps-visual:hover .ps-visual-pane--after img { transform: scale(1.07); }
.ps-visual:hover .ps-visual-pane--after::after { transform: translateX(120%); }
.ps-visual:hover .ps-visual-pane--before { transform: translateY(-10px) rotate(-2deg); box-shadow: 0 30px 56px -22px rgba(42, 26, 21, 0.55); }
/* "before" warms toward colour on hover — a hint of the result to come */
.ps-visual:hover .ps-visual-pane--before img { filter: grayscale(0.15) contrast(1) brightness(1.03); transform: scale(1.04); }
.ps-visual:hover .ps-visual-seam { transform: translate(-50%, 50%) scale(1.14); }
.ps-visual:hover .ps-visual-seam svg { transform: translateX(2px); }

.ps-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.ps-card {
    position: relative;
    padding: clamp(1.75rem, 2.6vw, 2.5rem);
    border-radius: 6px;
    background: var(--ivory);
    border: 1px solid var(--rule);
    overflow: hidden;
}

.ps-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 5rem;
    line-height: 1;
    color: var(--rule);
    letter-spacing: -0.04em;
}
.ps-num--light { color: rgba(245, 239, 227, 0.18); }

.ps-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: var(--r-pill);
    background: var(--bordeaux-soft);
    color: var(--bordeaux);
    margin-bottom: 1.25rem;
}
.ps-tag--light {
    background: rgba(245, 239, 227, 0.12);
    color: var(--bone);
}

.ps-card h3 {
    font-size: clamp(1.45rem, 2.2vw, 1.8rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.ps-list { display: flex; flex-direction: column; gap: 0.7rem; }
.ps-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.45;
}
.ps-list--light li { color: rgba(245, 239, 227, 0.92); }

.ps-bullet {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 4px;
}
.ps-bullet--neg { color: var(--petal); }
.ps-bullet--pos { color: var(--cognac-light); }

.ps-card--solution {
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(176, 122, 74, 0.35) 0%, transparent 60%),
        var(--bordeaux);
    color: var(--bone);
    border-color: var(--bordeaux-deep);
}
.ps-card--solution h3 { color: var(--ivory); }

.ps-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.3rem;
    border-radius: var(--r-pill);
    background: var(--ivory);
    color: var(--bordeaux);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    transition: transform var(--t-fast), background var(--t-fast);
}
.ps-cta:hover { background: var(--cognac-light); color: var(--cocoa); transform: translateX(4px); }
.ps-cta .btn-arrow { width: 16px; height: 16px; }


/* ---------- 10. SERVICES ---------- */
.services {
    padding: var(--section-py) 0;
    background: var(--paper);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
    margin-bottom: clamp(4rem, 8vw, 6rem);
}

.srv {
    position: relative;
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
    border-bottom: 1px solid var(--rule);
    transition: background var(--t-fast);
}
.srv:hover { background: var(--ivory); }

.srv-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.srv-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--cognac);
    letter-spacing: 0.04em;
}
.srv-rule {
    flex-grow: 1;
    height: 1px;
    background: var(--rule);
    transition: background 0.45s var(--ease);
}
.srv:hover .srv-rule { background: var(--cognac); }
.srv-icon {
    width: 18px;
    height: 18px;
    color: var(--cognac);
    stroke-width: 1.5;
    transition: transform 0.45s var(--ease);
}
.srv:hover .srv-icon { transform: rotate(-10deg) scale(1.12); }

.srv h3 {
    font-size: clamp(1.5rem, 2.6vw, 1.85rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.srv h3 em {
    font-style: italic;
    font-weight: 400;
    color: var(--bordeaux);
}

.srv p {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    max-width: 460px;
}

.srv-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule-soft);
}
.srv-price {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--cocoa);
    letter-spacing: -0.005em;
}
.srv-link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--bordeaux);
    transition: color var(--t-fast), transform var(--t-fast);
    display: inline-block;
}
.srv-link:hover { color: var(--cognac); transform: translateX(3px); }

.srv--featured {
    background: var(--bone-warm);
}
.srv--featured:hover { background: var(--blush); }

.srv-badge {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: var(--bordeaux);
    color: var(--ivory);
    border-radius: var(--r-pill);
}


/* Benefits (Top 3) — editorial strip */
.benefits {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(176, 122, 74, 0.25) 0%, transparent 60%),
        var(--cocoa);
    color: var(--bone);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.benefits-head {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 540px;
}
.section-label--light {
    color: var(--cognac-light);
}
.benefits-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--ivory);
    font-weight: 500;
    line-height: 1.1;
}

.benefits-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    border-top: 1px solid var(--rule-light);
    padding-top: 2.5rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.benefit-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.9;
    color: var(--cognac-light);
    letter-spacing: -0.04em;
}
.benefit-body h4 {
    font-size: 1.15rem;
    color: var(--ivory);
    margin-bottom: 0.35rem;
    letter-spacing: -0.005em;
}
.benefit-body p {
    color: rgba(245, 239, 227, 0.7);
    font-size: 0.92rem;
    line-height: 1.55;
}


/* ---------- 11. GALLERY (pinned horizontal scroll) ---------- */
.gallery {
    position: relative;
    background: var(--bone);
    /* Tall runway — the extra height becomes horizontal travel while pinned */
    height: 340vh;
}

.gallery-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2rem, 5vh, 3.5rem);
    padding-block: clamp(4.5rem, 9vh, 6rem) clamp(1.5rem, 4vh, 3rem);
}

.gallery-head { margin-bottom: 0; flex-shrink: 0; }

/* Swipe affordance — only shown on small screens, where the track is a native carousel */
.gallery-hint { display: none; }

.gallery-track {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: max-content;
    padding-inline: max(var(--container-px), calc((100vw - var(--container-w)) / 2 + var(--container-px)));
    will-change: transform;
}

.g-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
}
.g-item img {
    height: clamp(300px, 46vh, 460px);
    width: auto;
    border-radius: 6px;
    filter: saturate(0.92) contrast(1.02);
    box-shadow: 0 24px 48px -32px rgba(42, 26, 21, 0.35);
}
/* Arch frame echo on selected portraits */
.g-item--arch img { border-radius: 200px 200px 6px 6px; }

.g-item figcaption {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--mist);
    letter-spacing: 0.06em;
}
.g-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--cognac);
}

.gallery-progress {
    position: relative;
    width: min(320px, 50vw);
    height: 1px;
    margin-inline: auto;
    background: var(--rule);
    flex-shrink: 0;
}
.gallery-progress span {
    position: absolute;
    inset: 0;
    background: var(--bordeaux);
    transform: scaleX(0);
    transform-origin: left;
}

/* Fallback: small screens get a native horizontal swipe carousel instead of pinning */
@media (max-width: 767px) {
    .gallery { height: auto; padding: var(--section-py) 0; }
    .gallery-pin {
        position: static;
        height: auto;
        overflow: visible;
        padding-block: 0;
        gap: 1.25rem;
    }
    .gallery-track {
        transform: none !important;
        width: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--container-px);
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    .gallery-track::-webkit-scrollbar { display: none; }
    /* Cap card width below the viewport so the next photo always peeks
       in from the right edge — that peek is the "this swipes" signal */
    .g-item {
        scroll-snap-align: start;
        width: min(72vw, 320px);
    }
    .g-item img {
        width: 100%;
        height: clamp(280px, 90vw, 380px);
        object-fit: cover;
    }
    .gallery-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 0;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--mist);
    }
    .gallery-hint svg { width: 15px; height: 15px; }
    /* Progress bar stays: it mirrors the user's own swipe (driven from JS) */
}


/* ---------- 12. CONTACT ---------- */
.contact {
    padding: var(--section-py) 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, var(--blush) 0%, transparent 55%),
        var(--paper);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-aside { max-width: 540px; }
.contact-aside .section-num,
.contact-aside .section-label { margin-bottom: 0.5rem; }
.contact-aside .section-title { margin-bottom: 1.25rem; }

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--rule);
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--bordeaux);
    stroke-width: 1.5;
    margin-top: 4px;
}
.contact-list strong {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--cocoa);
    margin-bottom: 2px;
}
.contact-list span,
.contact-list a {
    color: var(--ink);
    font-size: 0.95rem;
    transition: color var(--t-fast);
}
.contact-list a:hover { color: var(--bordeaux); }

/* Form */
.contact-form {
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--ivory);
    border: 1px solid var(--rule);
    border-radius: 6px;
    position: relative;
}

.form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}
.form-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cognac);
    margin-bottom: 0.6rem;
}
.form-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.req { color: var(--bordeaux); }
.muted { color: var(--mist); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    color: var(--cocoa);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--t-fast);
}
/* Bordeaux underline draws in from the left on focus
   (selects are excluded — their background slot holds the chevron) */
.form-group input:not([type="checkbox"]),
.form-group textarea {
    background-image: linear-gradient(var(--bordeaux), var(--bordeaux));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: left bottom;
    transition: border-color var(--t-fast), background-size 0.6s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { background-size: 100% 1px; }
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--mist);
    opacity: 0.7;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--bordeaux);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c1a2b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    padding-right: 2rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
    padding: 0.9rem 0;
}

.form-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.form-check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--bordeaux);
    border: none;
    padding: 0;
}
.form-check label {
    margin-bottom: 0;
    font-size: 0.86rem;
    color: var(--ink-soft);
    letter-spacing: 0;
    cursor: pointer;
    font-weight: 400;
    text-transform: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-bottom-color: var(--petal);
}

.contact-form .btn-block {
    margin-top: 1.5rem;
}

.form-note {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--mist);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.form-note-icon { width: 14px; height: 14px; stroke-width: 1.5; }

.form-success {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bordeaux-soft);
    border-left: 2px solid var(--bordeaux);
    color: var(--bordeaux);
    font-size: 0.9rem;
    display: none;
}
.form-success.show {
    display: block;
    animation: fadeIn 0.4s var(--ease);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ---------- 13. FOOTER ---------- */
.footer {
    background: var(--espresso);
    color: var(--bone);
    padding-top: clamp(4rem, 8vw, 6rem);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 0%, rgba(176, 122, 74, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-headline h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    color: var(--ivory);
    letter-spacing: -0.025em;
}
.footer-headline em {
    font-style: italic;
    font-weight: 400;
    color: var(--cognac-light);
}
.footer-loc {
    font-size: 0.6em;
    color: var(--mist);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cognac-light);
    margin-bottom: 1.25rem;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.footer-col a,
.footer-col li {
    color: rgba(243, 235, 221, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color var(--t-fast);
}
.footer-col a {
    display: inline-block;
    transition: color var(--t-fast), transform var(--t-fast);
}
.footer-col a:hover {
    color: var(--cognac-light);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--rule-light);
    color: var(--bone);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer-social a:hover {
    background: var(--cognac);
    color: var(--cocoa);
    border-color: var(--cognac);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-base {
    position: relative;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule-light);
}
.footer-base-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.78rem;
    color: var(--mist);
}
.footer-base-inner p { color: var(--mist); }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.footer-legal a:hover { color: var(--cognac-light); }

.footer-disclaimer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule-light);
}
.footer-disclaimer p {
    max-width: 70ch;
    font-size: 0.7rem;
    line-height: 1.55;
    color: rgba(245, 239, 227, 0.45);
}


/* ---------- 14. REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition:
        opacity 1.6s var(--ease),
        transform 1.6s var(--ease);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- 15. RESPONSIVE ---------- */

/* Small tablets */
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-base-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .benefits-row { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* Tablets */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        border-left: 1px solid var(--rule);
    }
    .srv { border-right: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-left: -1px; }
    .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
}

/* Desktop */
@media (min-width: 1024px) {
    /* Credo: editorial two-column head (title left, lede bottom-right)
       keeps the whole section within one viewport height */
    .philosophy .section-head {
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: clamp(3rem, 6vw, 5rem);
        row-gap: 1rem;
        align-items: start;
    }
    .philosophy .section-num,
    .philosophy .section-label,
    .philosophy .section-title { grid-column: 1; }
    .philosophy .section-title { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
    .philosophy .section-lede {
        grid-column: 2;
        grid-row: 1 / 4;
        align-self: end;
        margin-bottom: 0.4rem;
    }
    /* Credo body: visual left, narrative cards right */
    .ps-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: clamp(2.5rem, 5vw, 4.5rem);
        align-items: center;
    }
    /* Cover composition: masthead spans full width and overlaps the portrait */
    .hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
        grid-template-rows: auto auto 1fr;
        column-gap: clamp(2rem, 4vw, 4rem);
    }
    .hero .kicker { grid-column: 1 / -1; grid-row: 1; }
    .hero-title  { grid-column: 1 / -1; grid-row: 2; }
    .hero-figure {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: end;
        justify-self: end;
        margin: 0 0 clamp(2rem, 5vh, 3.5rem);
    }
    .hero-intro { grid-column: 1; grid-row: 3; align-self: center; margin-bottom: 0; }
    .hero-folio { grid-column: 1 / -1; grid-row: 4; margin-top: 0; }
    .hero-portrait { width: clamp(300px, 29vw, 440px); }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        border-right: 1px solid var(--rule);
    }
    .contact-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 6vw, 5rem); }claude

    .footer-inner {
        grid-template-columns: 1.1fr 2fr;
        gap: clamp(3rem, 6vw, 5rem);
        align-items: end;
    }
}

/* Burger menu under 900px */
@media (max-width: 899px) {
    /* iOS 26 Safari tints the status-bar "liquid glass" by sampling the
       background-color of the fixed bar at the viewport top. A translucent
       bar = see-through status bar, so on phones the bar goes solid. */
    .nav, .nav.scrolled { background: var(--bone); }

    .hamburger { display: flex; }

    /* Dim the page while the drawer is open; tapping it closes the menu */
    .nav-scrim {
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(42, 26, 21, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t);
    }
    body.menu-open .nav-scrim { opacity: 1; pointer-events: auto; }

    /* NOTE: .nav has backdrop-filter, so it is the containing block for
       fixed descendants — height must be explicit (inset alone resolves
       against the ~60px header bar, not the viewport) */
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        height: 100dvh;
        width: min(84%, 360px);
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: calc(5.5rem + env(safe-area-inset-top)) 1.75rem calc(1.5rem + env(safe-area-inset-bottom));
        background: var(--bone);
        border-left: 1px solid var(--rule);
        box-shadow: -24px 0 60px rgba(42, 26, 21, 0.25);
        transform: translateX(105%);
        transition: transform var(--t);
        overflow-y: auto;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu::before {
        content: "Menü";
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: var(--mist);
        margin-bottom: 0.75rem;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        border-top: 1px solid var(--rule);
    }
    .nav-list li { border-bottom: 1px solid var(--rule); }
    /* Full-width hairline-separated rows = unmissable tap targets */
    .nav-link {
        display: flex;
        width: 100%;
        align-items: baseline;
        gap: 0.7rem;
        padding: 1.05rem 0.25rem;
        font-size: 1.45rem;
        font-family: var(--font-display);
        letter-spacing: -0.01em;
    }
    .nav-link::after { content: none; }
    .nav-num { font-size: 0.9rem; }
    .nav-cta {
        width: 100%;
        margin-top: auto;
        padding: 1rem 1.5rem;
        justify-content: center;
        text-align: center;
    }
    body.menu-open { overflow: hidden; }
}

/* Hero adjustments under 640px */
@media (max-width: 640px) {
    .hero-actions .btn { width: 100%; }
    .hero-portrait { border-radius: 220px 220px 6px 6px; }
    .hero-figure::before {
        border-radius: 220px 220px 6px 6px;
        transform: translate(10px, -10px);
    }
    .folio-item--center { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Gallery: no pinning — plain horizontal swipe. The progress bar stays:
       it only mirrors the user's own swipe, it is not an animation. */
    .gallery { height: auto; padding: var(--section-py) 0; }
    .gallery-pin { position: static; height: auto; overflow: visible; padding-block: 0; }
    .gallery-track { transform: none !important; width: auto; overflow-x: auto; }
}
