/* ==========================================================================
   Maria Tattoo — Ink & Bone, editorial atelier.
   Colours and metrics come from theme.css (admin-editable tokens); everything
   else is derived here. Mobile-first: base rules are 360 px, min-width adds.
   Trap: --ink is the LIGHT colour; shadows stay black, never mixed from it.
   ========================================================================== */

@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-var.woff2') format('woff2');
}

/* --- Derived tokens ----------------------------------------------------- */

:root {
    --band:        color-mix(in srgb, var(--brand) 4%, var(--bg));
    --surface-2:   color-mix(in srgb, var(--brand) 6%, var(--surface));
    --line-soft:   color-mix(in srgb, var(--line) 55%, var(--bg));
    --line-bright: color-mix(in srgb, var(--brand) 24%, var(--bg));
    --ink-soft:    color-mix(in srgb, var(--ink) 82%, var(--bg));
    --accent-ink:  color-mix(in srgb, var(--accent) 72%, var(--ink));
    --accent-deep: color-mix(in srgb, var(--accent) 78%, #000);
    --art:         color-mix(in srgb, var(--brand) 78%, var(--bg));

    --on-brand:  var(--bg);
    --on-accent: var(--ink);

    --shadow-2: 0 18px 40px -22px rgba(0, 0, 0, .8);
    --shadow-3: 0 40px 80px -40px rgba(0, 0, 0, .9);

    --danger:     #e0685c;
    --danger-bg:  color-mix(in srgb, #e0685c 14%, var(--surface));
    --danger-ink: color-mix(in srgb, #e0685c 72%, var(--ink));

    --r-sm: var(--radius);
    --r-md: calc(var(--radius) * 2);
    --r-lg: calc(var(--radius) * 4);

    --ease:     cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --gutter:   clamp(1rem, 4.5vw, 3rem);
    --header-h: 4.25rem;
    --sec-y:    clamp(4.5rem, 11vw, var(--section-y));

    --font-head: var(--font-head-stack, 'Instrument Serif', Georgia, serif);
    --font-body: var(--font-body-stack, 'Hanken Grotesk', system-ui, sans-serif);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 1080px) {
    :root { --header-h: 5.25rem; }
}

/* --- Reset + base ------------------------------------------------------- */

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

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Film grain over everything: breaks the flat digital black. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    background-image: var(--grain);
    opacity: .045;
}

body.menu-open { overflow: hidden; }

/* The page never scrolls sideways: intrinsic-width elements are capped, tables are
   fixed-layout, long Finnish compounds break. `clip`, not `hidden`, on html/body. */
html, body { overflow-x: clip; }
img, picture, svg, video, canvas, iframe, embed, object { display: block; max-width: 100%; }
img, picture, video, canvas { height: auto; }
.wrap iframe { width: 100%; }
table { table-layout: fixed; max-width: 100%; }

p, li, dd, dt, td, th, figcaption, summary, .lead, .note { overflow-wrap: break-word; }
a { overflow-wrap: anywhere; }

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--ink); text-decoration-color: var(--accent); }

::selection { background: var(--accent); color: var(--ink); }

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.04;
    letter-spacing: -.012em;
    margin: 0 0 .6em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(3.1rem, min(12.5vw, 13.5vh), 8rem); line-height: .92; letter-spacing: -.025em; }
h2 { font-size: clamp(2.5rem, 7.4vw, 5rem); line-height: .98; letter-spacing: -.02em; }
h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.12; }
h4 { font-size: 1.2rem; }

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--accent-ink);
    padding-right: .04em;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }
small { font-size: .85em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2rem; }

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.5rem 0;
}

blockquote {
    margin: 2rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 1px solid var(--accent);
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    color: var(--ink);
}

.lead {
    font-size: clamp(1.06rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 46ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 1.5rem;
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: var(--accent);
    flex: none;
}

.note {
    font-size: .88rem;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 52ch;
}
.note a { color: var(--ink); }

figure { margin: 2rem 0 0; }
figcaption { margin-top: .75rem; font-size: .82rem; color: var(--ink-muted); }

/* --- Layout primitives -------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--sec-y) calc(var(--sec-y) * 1.08);
}
.section + .section { border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--band); }

main > .section:first-child:not(.section-hero) { padding-top: calc(var(--header-h) + var(--sec-y) * .7); }

.section-head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin-top: 1.5rem; }

@media (min-width: 900px) {
    .section-head-split {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        column-gap: clamp(2rem, 6vw, 6rem);
        align-items: end;
    }
    .section-head-split .eyebrow { grid-column: 1 / -1; justify-self: start; }
    .section-head-split .lead { margin-top: 0; padding-bottom: .5rem; }
}

.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.split > * { min-width: 0; }
.split h3:not(:first-child) { margin-top: 2.25rem; }

@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split-lead { grid-template-columns: 1.2fr 1fr; }
    .split-aside { grid-template-columns: 1.45fr 1fr; }
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
    margin-top: 2.25rem;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 2.9rem;
    padding: .8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease), transform .2s var(--ease);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--brand); color: var(--on-brand); }
.btn-accent::before { background: var(--accent-deep); }
.btn-accent:hover { color: var(--on-accent); }

.btn-ghost { color: var(--ink); border-color: var(--line-bright); background: transparent; }
.btn-ghost::before { background: var(--brand); }
.btn-ghost:hover { color: var(--on-brand); border-color: var(--brand); }

.btn-lg { min-height: 3.5rem; padding: 1rem 1.25rem; letter-spacing: .1em; }
@media (min-width: 640px) {
    .btn-lg { padding: 1rem 1.9rem; letter-spacing: .14em; }
}
.btn-sm { min-height: 2.75rem; padding: .6rem 1.15rem; font-size: .72rem; }

.btn-arrow {
    position: relative;
    width: 1.4rem;
    height: 1px;
    background: currentColor;
    transition: width .35s var(--ease-out);
}
.btn-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}
.btn:hover .btn-arrow { width: 2rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 2.75rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}
.link-arrow::after {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--accent);
    transition: width .35s var(--ease-out);
}
.link-arrow:hover::after { width: 2.6rem; }

/* --- Header + navigation ----------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    transition: transform .4s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header box. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid var(--line-soft);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.site-header.is-stuck::before,
body.menu-open .site-header::before { opacity: 1; }
body.menu-open .site-header::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

.header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
.brand-mark { width: 5.1rem; height: auto; }

.nav-toggle {
    position: relative;
    z-index: 2;
    width: 2.9rem;
    height: 2.9rem;
    margin-right: -.6rem;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 1.6rem; height: .6rem; }
.nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .4s var(--ease-out), top .4s var(--ease-out), width .4s var(--ease-out);
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 100%; width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 50%; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 50%; width: 100%; transform: rotate(-45deg); }

/* Phone + tablet: full-screen overlay menu */
.site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease-out), opacity .3s var(--ease), visibility 0s linear .6s;
}
.site-nav::before {
    content: "";
    position: absolute;
    right: -30vw;
    bottom: -18vw;
    width: 92vw;
    aspect-ratio: 1;
    background: var(--art);
    opacity: .1;
    -webkit-mask: url('../art/mandala.svg') center / contain no-repeat;
    mask: url('../art/mandala.svg') center / contain no-repeat;
    pointer-events: none;
}
.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transition: clip-path .6s var(--ease-out), opacity .3s var(--ease), visibility 0s;
}

.nav-list { list-style: none; margin: 0; padding: 0; position: relative; }
.nav-list li { border-bottom: 1px solid var(--line-soft); }
.nav-list a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: .7rem 0;
    min-height: 2.75rem;
    font-family: var(--font-head);
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.1;
    color: var(--ink);
    text-decoration: none;
}
.nav-num {
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: .14em;
    color: var(--accent-ink);
    min-width: 1.6rem;
}
.nav-list a.is-current .nav-label { font-style: italic; }

.nav-meta {
    position: relative;
    margin-top: auto;
    padding-top: 2rem;
    font-size: .88rem;
    color: var(--ink-muted);
}
.nav-meta p { margin: 0 0 .25rem; }
.nav-cta { position: relative; margin-top: 1.5rem; width: 100%; }

.site-nav.is-open .nav-list li { animation: mt-rise .7s var(--ease-out) both; }
.site-nav.is-open .nav-list li:nth-child(2) { animation-delay: .05s; }
.site-nav.is-open .nav-list li:nth-child(3) { animation-delay: .1s; }
.site-nav.is-open .nav-list li:nth-child(4) { animation-delay: .15s; }
.site-nav.is-open .nav-list li:nth-child(5) { animation-delay: .2s; }
.site-nav.is-open .nav-list li:nth-child(6) { animation-delay: .25s; }
.site-nav.is-open .nav-list li:nth-child(7) { animation-delay: .3s; }
.site-nav.is-open .nav-list li:nth-child(8) { animation-delay: .35s; }

@media (min-width: 1080px) {
    .brand-mark { width: 6.25rem; }
    .nav-toggle { display: none; }

    .site-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 2.25rem;
        padding: 0;
        background: none;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        clip-path: none;
        transition: none;
    }
    .site-nav::before, .nav-meta, .nav-num { display: none; }
    .nav-list { display: flex; gap: 1.85rem; }
    .nav-list li { border: 0; }
    .nav-list a {
        position: relative;
        padding: .25rem 0;
        min-height: 0;
        font-family: var(--font-body);
        font-size: .74rem;
        font-weight: 500;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--ink-soft);
    }
    .nav-list a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -.2rem;
        height: 1px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .45s var(--ease-out);
    }
    .nav-list a:hover { color: var(--ink); }
    .nav-list a:hover::after,
    .nav-list a.is-current::after { transform: scaleX(1); transform-origin: left; }
    .nav-list a.is-current { color: var(--ink); }
    .nav-list a.is-current .nav-label { font-style: normal; }
    .nav-cta { margin: 0; width: auto; }
}

/* --- Hero --------------------------------------------------------------- */

.section-hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + clamp(2rem, 5vh, 4rem)) 0 0;
    overflow: clip;
    background:
        radial-gradient(ellipse 60% 55% at 78% 42%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
        radial-gradient(ellipse 80% 60% at 10% 100%, color-mix(in srgb, var(--brand) 4%, transparent), transparent 70%),
        var(--bg);
}
.section-hero > .wrap { flex: 1; display: flex; flex-direction: column; }

.hero {
    position: relative;
    flex: 1;
    display: grid;
    align-items: center;
    gap: 3rem;
    padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: clamp(1.5rem, 4vh, 2.25rem); }
.hero h1 { margin-bottom: clamp(1.5rem, 4vh, 2.25rem); }
.hero h1 em { display: inline-block; }
.hero .lead { max-width: 44ch; }
.hero .btn-row { margin-top: clamp(2rem, 5vh, 2.75rem); }
.hero .btn-row .btn { flex: 1 1 15rem; }

.hero-facts {
    list-style: none;
    margin: clamp(2.25rem, 5vh, 3.5rem) 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
    max-width: 46rem;
}
.hero-facts li {
    display: grid;
    align-content: start;
    gap: .2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    line-height: 1.45;
    color: var(--ink-muted);
}
.hero-facts strong {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink);
}

/* Art: mandala behind, arch with sprig in front (layout/hero-art.php) */
.hero-art {
    position: absolute;
    top: -8%;
    right: -38%;
    width: 112%;
    max-width: 34rem;
    aspect-ratio: 1;
    pointer-events: none;
    opacity: .2;
}
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art-mandala { color: var(--art); }
.hero-art-mandala svg { animation: mt-spin 240s linear infinite; }
.hero-art-arch { display: none; }

@media (min-width: 640px) {
    .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .hero .btn-row .btn { flex: 0 0 auto; }
}

@media (min-width: 1080px) {
    .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2rem; }
    .hero-art {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: none;
        opacity: 1;
        display: grid;
        place-items: center;
        margin-right: -14%;
    }
    .hero-art-mandala {
        position: absolute;
        inset: -4%;
        opacity: .34;
    }
    .hero-art-arch {
        position: relative;
        display: grid;
        justify-items: center;
        width: 46%;
        aspect-ratio: 3 / 4.6;
        padding: 18% 10% 8%;
        border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent);
        border-radius: 999px 999px 0 0;
        background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--brand) 6%, var(--bg)), var(--bg) 70%);
        box-shadow: var(--shadow-3);
    }
    .hero-art-arch::before {
        content: "";
        position: absolute;
        inset: .6rem;
        border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
        border-radius: inherit;
    }
    .hero-art-moons {
        position: absolute;
        top: -2.75rem;
        width: 88%;
        color: var(--art);
        opacity: .9;
    }
    .hero-art-sprig {
        position: absolute;
        inset: 13% 16% 6%;
        color: var(--brand);
    }
    .hero-art-sprig svg { width: 100%; height: 100%; }
}

.marquee {
    position: relative;
    margin-inline: calc(var(--gutter) * -1);
    border-block: 1px solid var(--line-soft);
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@media (min-width: 1240px) {
    .marquee { margin-inline: calc((100vw - 100%) / -2); }
}
.marquee p {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 1.1rem 0;
    font-family: var(--font-head);
    font-style: italic;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1;
    color: var(--ink-soft);
    white-space: nowrap;
    animation: mt-marquee 48s linear infinite;
}
.marquee span {
    display: inline-flex;
    align-items: center;
}
.marquee span::after {
    content: "";
    width: 1.05rem;
    aspect-ratio: 1;
    margin-inline: 1.6rem;
    background: var(--accent);
    -webkit-mask: url('../art/star.svg') center / contain no-repeat;
    mask: url('../art/star.svg') center / contain no-repeat;
}

/* --- Services ----------------------------------------------------------- */

#palvelut::before {
    content: "";
    position: absolute;
    top: clamp(3rem, 8vw, 6rem);
    right: max(-4rem, calc((100vw - var(--container)) / 2 - 12rem));
    width: clamp(8rem, 16vw, 13rem);
    aspect-ratio: 360 / 800;
    background: var(--art);
    opacity: .1;
    -webkit-mask: url('../art/sprig.svg') center / contain no-repeat;
    mask: url('../art/sprig.svg') center / contain no-repeat;
    pointer-events: none;
}

.service-list { counter-reset: svc; border-bottom: 1px solid var(--line); }
.service {
    counter-increment: svc;
    position: relative;
    display: grid;
    gap: .5rem 2rem;
    padding: 2rem 0 2.1rem;
    border-top: 1px solid var(--line);
}
.service::before {
    content: counter(svc, decimal-leading-zero);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .16em;
    color: var(--accent-ink);
    transition: color .3s var(--ease);
}
.service h3 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    transition: transform .5s var(--ease-out);
}
.service p { margin: .4rem 0 0; color: var(--ink-muted); max-width: 52ch; }

@media (min-width: 900px) {
    .service {
        grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: baseline;
        padding: 2.6rem 0 2.7rem;
    }
    .service p { margin: 0; }
    .service:hover h3 { transform: translateX(.6rem); }
    .service:hover h3 { font-style: italic; }
}

.styles {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.styles h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.tag-list li {
    padding: .55rem 1rem;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-sm);
    font-size: .88rem;
    color: var(--ink);
}
@media (min-width: 900px) {
    .styles { grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
    .styles .link-arrow { justify-self: end; }
}

/* --- Steps (aftercare) -------------------------------------------------- */

.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
    counter-increment: step;
    position: relative;
    display: grid;
    grid-template-columns: 3.6rem 1fr;
    column-gap: 1rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
    content: counter(step);
    grid-row: span 2;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 3.1rem;
    line-height: .85;
    color: var(--accent-ink);
}
.steps li strong {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.15;
}

/* --- Checklist ---------------------------------------------------------- */

.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li {
    position: relative;
    padding: .7rem 0 .7rem 2rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.02rem;
    width: .95rem;
    aspect-ratio: 1;
    background: var(--accent);
    -webkit-mask: url('../art/star.svg') center / contain no-repeat;
    mask: url('../art/star.svg') center / contain no-repeat;
}

/* --- Pricing ------------------------------------------------------------ */

.pricing table { width: 100%; border-collapse: collapse; }
.pricing tbody { display: grid; border-top: 1px solid var(--line-bright); }
.pricing tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 1rem;
    padding: 1.5rem 0 1.4rem;
    border-bottom: 1px solid var(--line);
}
.pricing td { padding: 0; }
.pricing td:first-child {
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 3.4vw, 2.1rem);
    line-height: 1.1;
    color: var(--ink);
}
.pricing td:nth-child(2) {
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 3.4vw, 2.1rem);
    line-height: 1.1;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pricing td:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: .4rem;
    font-size: .9rem;
    color: var(--ink-muted);
}
.pricing + * h3, .pricing ~ div h3 { margin-top: 0; }

/* --- Studio ------------------------------------------------------------- */

.studio { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.studio-text p { max-width: 56ch; }
.studio-text p:first-of-type {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
    line-height: 1.32;
    color: var(--ink);
}
/* Arch "portrait" with a sprig: both pseudo-elements share the first grid cell. */
.studio::before,
.studio::after {
    content: "";
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
}
.studio::before {
    width: min(100%, 22rem);
    aspect-ratio: 3 / 4.2;
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    border-radius: 999px 999px 0 0;
    background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--brand) 6%, var(--bg)), var(--bg) 70%);
    box-shadow: var(--shadow-3), inset 0 0 0 .6rem var(--bg), inset 0 0 0 calc(.6rem + 1px) color-mix(in srgb, var(--brand) 16%, transparent);
}
.studio::after {
    align-self: end;
    width: min(46%, 10rem);
    aspect-ratio: 360 / 800;
    margin-bottom: 8%;
    background: var(--brand);
    opacity: .85;
    -webkit-mask: url('../art/sprig.svg') center / contain no-repeat;
    mask: url('../art/sprig.svg') center / contain no-repeat;
}
.studio-text { grid-row: 2; }
.studio-facts { grid-row: 3; }

@media (min-width: 900px) {
    .studio { grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); align-items: start; }
    .studio::before, .studio::after { grid-row: 1 / span 2; }
    .studio::after { align-self: start; margin-top: calc(min(100%, 22rem) * 1.4 * .22); }
    .studio-text { grid-row: 1; grid-column: 2; }
    .studio-facts { grid-row: 2; grid-column: 2; }
}
@media (min-width: 1180px) {
    .studio { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .85fr); }
    .studio::before, .studio::after { grid-row: 1; }
    .studio-facts { grid-row: 1; grid-column: 3; align-self: end; }
}

/* --- Facts -------------------------------------------------------------- */

.facts { margin: 0 0 1.75rem; display: grid; border-top: 1px solid var(--line-bright); }
.facts > div {
    display: grid;
    gap: .2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.facts dt {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.facts dd { margin: 0; color: var(--ink); font-size: 1rem; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* --- FAQ ---------------------------------------------------------------- */

#ukk .section-head::after {
    content: "";
    display: block;
    width: min(16rem, 70%);
    aspect-ratio: 520 / 80;
    margin-top: 2.5rem;
    background: var(--art);
    opacity: .5;
    -webkit-mask: url('../art/moons.svg') left center / contain no-repeat;
    mask: url('../art/moons.svg') left center / contain no-repeat;
}
@media (min-width: 900px) {
    #ukk .split-lead { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
    #ukk .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

.faq-list { border-top: 1px solid var(--line-bright); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 1.35rem 3rem 1.35rem 0;
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    line-height: 1.2;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
    content: "";
    position: absolute;
    right: .5rem;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--accent-ink);
    transition: transform .4s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-body { padding: 0 3rem 1.6rem 0; color: var(--ink-muted); }
.faq-item[open] .faq-body { animation: mt-rise .5s var(--ease-out); }

/* --- Cards, booking, map ------------------------------------------------ */

.card {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
}
.card > h3:first-child { margin-top: 0; }

/* Map iframe: tinted to the page, and its own stacking context so it never paints over the header. */
.map {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-top: 2rem;
}
.map iframe {
    width: 100%;
    height: 18rem;
    border: 0;
    filter: grayscale(1) invert(.92) contrast(.88) brightness(.92) sepia(.12);
}
.map figcaption { margin: 0; padding: .9rem 1rem; border-top: 1px solid var(--line); background: var(--surface); }

/* --- Forms -------------------------------------------------------------- */

.form-intro { font-size: .95rem; margin-bottom: 1.75rem; max-width: 52ch; color: var(--ink-muted); }
.form-row {
    display: grid;
    gap: 0 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.form-field { margin-bottom: 1.25rem; border: 0; padding: 0; min-width: 0; }
.form-field label,
.form-field legend {
    display: block;
    margin-bottom: .45rem;
    padding: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.form-field .req { color: var(--accent-ink); font-weight: 400; }
.form-field .opt { font-weight: 400; color: var(--ink-muted); letter-spacing: .04em; text-transform: none; font-size: .95em; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    font-size: max(16px, 1rem);
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    min-height: 3rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: color-mix(in srgb, var(--ink-muted) 65%, transparent); }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--line-bright); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--danger); }
.field-error { display: block; margin-top: .4rem; font-size: .82rem; color: var(--danger-ink); }
.field-hint { display: block; margin-top: .4rem; font-size: .82rem; color: var(--ink-muted); }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.75rem;
    margin: 0;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.radio-row label:hover { border-color: var(--line-bright); }
.radio-row input { accent-color: var(--accent); }
.radio-row label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }

.form-check label {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .93rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
    color: var(--ink-soft);
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .16rem;
    accent-color: var(--accent);
}
.form-check .field-hint { padding-left: 1.85rem; }

.form-note { font-size: .82rem; color: var(--ink-muted); margin-top: 1.1rem; }
#booking-form .btn { width: 100%; margin-top: .5rem; }

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

.form-msg {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: var(--r-sm);
    font-size: .93rem;
    font-weight: 500;
}
.form-msg.is-ok    { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); color: var(--ink); border: 1px solid var(--line-bright); }
.form-msg.is-error { background: var(--danger-bg); color: var(--danger-ink); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }

.cf-turnstile { margin-bottom: 1.1rem; }

/* --- Gallery ------------------------------------------------------------ */

.gallery-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.chip {
    min-height: 2.75rem;
    padding: .5rem 1.1rem;
    font: inherit;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-bright); }
.chip.is-active { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }

.gallery-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(.5rem, 1.2vw, 1rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.gallery-item { margin: 0; }
.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--surface);
    line-height: 0;
}
.gallery-link img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(.92);
    transition: transform .8s var(--ease-out), filter .4s var(--ease);
}
.gallery-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    border-radius: inherit;
    pointer-events: none;
}
.gallery-link:hover img { transform: scale(1.045); filter: saturate(1); }

/* Empty gallery: three arches of studio ornament + a pointer to Instagram. */
.gallery-soon {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--band);
}
.gallery-soon-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 2vw, 1.25rem); }
.gallery-soon-art span {
    position: relative;
    aspect-ratio: 3 / 4.4;
    border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
    border-radius: 999px 999px 0 0;
    background: var(--bg);
}
.gallery-soon-art span::before {
    content: "";
    position: absolute;
    inset: 14% 14% 10%;
    background: var(--art);
    -webkit-mask: var(--m) center / contain no-repeat;
    mask: var(--m) center / contain no-repeat;
    opacity: .75;
}
.gallery-soon-art span:nth-child(1) { --m: url('../art/mandala.svg'); }
.gallery-soon-art span:nth-child(2) { --m: url('../art/sprig.svg'); transform: translateY(-1.25rem); }
.gallery-soon-art span:nth-child(3) { --m: url('../art/moons.svg'); }
.gallery-soon-art span:nth-child(3)::before { inset: 12% 8%; -webkit-mask-size: 100% auto; mask-size: 100% auto; }
.gallery-soon h3 { margin-bottom: .75rem; }
.gallery-soon p { color: var(--ink-muted); max-width: 44ch; }
.gallery-soon .link-arrow { margin-top: 1rem; }
@media (min-width: 900px) {
    .gallery-soon { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; }
}

/* --- Lightbox (gallery.js) ---------------------------------------------- */

.lightbox {
    width: min(96vw, 1100px);
    max-width: none;
    max-height: 94vh;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 3, 2, .94); backdrop-filter: blur(4px); }
.lightbox-figure { margin: 0; display: grid; gap: .9rem; justify-items: center; }
.lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-3);
}
.lightbox-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .3rem 1rem;
    max-width: 60ch;
    font-size: .88rem;
    color: var(--ink-muted);
    text-align: center;
}
.lightbox-counter { font-variant-numeric: tabular-nums; font-size: .8rem; opacity: .75; }
.lightbox-close,
.lightbox-nav {
    position: fixed;
    z-index: 1;
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--surface); border-color: var(--brand); }
.lightbox-close { top: 1.1rem; right: 1.1rem; }
.lightbox-prev  { left: 1.1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close::before, .lightbox-close::after, .lightbox-nav::before { content: ""; display: block; }
.lightbox-close::before, .lightbox-close::after {
    position: absolute;
    width: 1.05rem;
    height: 1.5px;
    background: currentColor;
}
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }
.lightbox-nav::before {
    width: .62rem;
    height: .62rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}
.lightbox-prev::before { transform: translateX(2px) rotate(-135deg); }
.lightbox-next::before { transform: translateX(-2px) rotate(45deg); }
.lightbox.no-motion .lightbox-img { transition: none; }
@media (max-width: 640px) {
    .lightbox-prev { left: .5rem; }
    .lightbox-next { right: .5rem; }
    .lightbox-close { top: .5rem; right: .5rem; }
    .lightbox-img { max-height: 68vh; }
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    position: relative;
    padding: 0 0 2rem;
    border-top: 1px solid var(--line);
    background: var(--band);
    font-size: .92rem;
}

.footer-cta { padding-block: clamp(4rem, 9vw, 6.5rem); border-bottom: 1px solid var(--line); text-align: center; }
.footer-cta-title {
    margin: 0 auto 2rem;
    max-width: 18ch;
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1;
    color: var(--ink);
    text-wrap: balance;
}

.footer-ornament {
    width: min(17rem, 72%);
    aspect-ratio: 520 / 80;
    margin: clamp(3.5rem, 7vw, 5rem) auto clamp(3rem, 6vw, 4rem);
    background: var(--art);
    opacity: .45;
    -webkit-mask: url('../art/moons.svg') center / contain no-repeat;
    mask: url('../art/moons.svg') center / contain no-repeat;
}

.footer-grid { display: grid; gap: 2.5rem; }
.footer-lead { max-width: 30rem; }
.footer-logo { width: 9.5rem; height: auto; margin-bottom: 1.25rem; }
.footer-tagline { color: var(--ink-muted); }
.footer-col h2 {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .2rem 0; color: var(--ink-soft); }
.footer-col a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2rem;
    justify-content: space-between;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--ink-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-legal a { display: inline-block; padding: .35rem 0; text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr .8fr; gap: 3rem; }
}

/* --- Mobile booking bar ------------------------------------------------- */

.mobile-cta {
    position: fixed;
    inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom));
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .55rem .55rem 1.1rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-bright);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-3);
    transform: translateY(150%);
    transition: transform .5s var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta-text { display: grid; line-height: 1.25; font-size: .78rem; color: var(--ink-muted); }
.mobile-cta-text strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 400; }
body.menu-open .mobile-cta { transform: translateY(150%); }

@media (max-width: 719px) {
    .mobile-cta { display: flex; }
    .site-footer { padding-bottom: 6rem; }
}

/* --- Legal pages -------------------------------------------------------- */

.page-legal main .wrap { max-width: calc(70ch + var(--gutter) * 2); }
.page-legal main h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.legal-body h2 { margin-top: 2.75rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.legal-body ul { color: var(--ink-muted); padding-left: 1.2rem; }
.legal-body li { margin-bottom: .35rem; }

/* --- Motion ------------------------------------------------------------- */

@keyframes mt-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
@keyframes mt-spin { to { transform: rotate(360deg); } }
@keyframes mt-marquee { to { transform: translateX(-50%); } }
@keyframes mt-grow {
    from { clip-path: inset(100% 0 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}
@keyframes mt-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: mt-rise 1s var(--ease-out) both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; }
    .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .hero-copy > :nth-child(4) { animation-delay: .24s; }
    .hero-copy > :nth-child(5) { animation-delay: .32s; }
    .hero-art { animation: mt-fade 1.6s var(--ease) .2s both; }
    .hero-art-sprig { animation: mt-grow 2.4s var(--ease-out) .5s both; }

    /* Structural blocks fade up as they scroll in; browsers without scroll timelines just show them. */
    @supports (animation-timeline: view()) {
        .section-head,
        .service,
        .steps li,
        .checklist,
        .card,
        .facts,
        .faq-list,
        .pricing tr,
        .gallery-soon,
        .split > * {
            animation: mt-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 20%;
        }
    }
}

/* --- Accessibility + utilities ----------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--brand);
    color: var(--on-brand);
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .marquee p { animation: none; }
}

/* --- Closed sign (layout/maintenance.php) ------------------------------- */

.maintenance {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: var(--gutter);
    overflow: clip;
    text-align: center;
}
.maintenance::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(140vw, 58rem);
    aspect-ratio: 1;
    translate: -50% -50%;
    background: var(--art);
    opacity: .12;
    -webkit-mask: url('../art/mandala.svg') center / contain no-repeat;
    mask: url('../art/mandala.svg') center / contain no-repeat;
    animation: mt-spin 300s linear infinite;
    pointer-events: none;
}
.maintenance-inner { position: relative; max-width: 44ch; display: grid; justify-items: center; gap: 1.1rem; }
.maintenance-logo { width: min(14rem, 60vw); height: auto; margin-bottom: 1.5rem; }
.maintenance h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); margin: 0; }
.maintenance p { margin: 0; }
.maintenance-contact a { color: var(--ink); text-decoration-color: var(--accent); }
.maintenance-legal { margin-top: 2rem; font-size: .78rem; color: var(--ink-muted); text-wrap: balance; }
