/* karipidou.gr: sibling of the lawdika.gr system (same token names, so the shared booking drawer
   follows it), on the slate of the office walls with the quill's gold. */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bg:            oklch(0.195 0.012 250);
    --surface:       oklch(0.235 0.013 250);
    --surface-2:     oklch(0.275 0.014 250);
    --border:        oklch(0.35 0.014 250);
    --border-strong: oklch(0.44 0.016 250);

    --text:          oklch(0.95 0.007 85);
    --text-muted:    oklch(0.79 0.010 250);
    --text-faint:    oklch(0.64 0.012 250);

    --brass:         oklch(0.79 0.090 84);
    --brass-bright:  oklch(0.87 0.090 86);
    --brass-deep:    oklch(0.56 0.065 80);

    --paper:         oklch(0.962 0.010 85);
    --paper-2:       oklch(0.925 0.014 82);
    --ink:           oklch(0.24 0.014 250);
    --ink-muted:     oklch(0.45 0.014 250);

    --font-display: "Literata", Georgia, "Times New Roman", serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --text-xs:   0.8125rem;
    --text-sm:   0.9375rem;
    --text-base: 1.0625rem;
    --text-lg:   clamp(1.20rem, 1.0rem + 0.7vw, 1.40rem);
    --text-xl:   clamp(1.55rem, 1.2rem + 1.3vw, 2.10rem);
    --text-2xl:  clamp(2.10rem, 1.5rem + 2.6vw, 3.40rem);
    --text-3xl:  clamp(3.00rem, 1.8rem + 5.4vw, 6.20rem);

    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --section-y: clamp(5rem, 11vh, 9.5rem);
    --container: 1240px;
    --gutter: clamp(1rem, 5vw, 4rem);

    --radius: 4px;
    --radius-lg: 8px;
    --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.45);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 160ms;
    --t-base: 280ms;
    --t-slow: 700ms;

    --header-h: 84px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--brass-bright); }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-3);
    text-wrap: balance;
}
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-3); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.kicker {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: var(--space-3);
}
.lead { font-size: var(--text-lg); color: var(--text-muted); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brass); color: var(--bg); padding: var(--space-2) var(--space-3); }
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* 3. Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-height: 48px;
    padding: 0.7rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn-primary { background: var(--brass); color: var(--bg); }
.btn-primary:hover { background: var(--brass-bright); color: var(--bg); }
.btn-outline { border-color: var(--brass-deep); color: var(--brass); background: transparent; }
.btn-outline:hover { border-color: var(--brass); background: color-mix(in oklch, var(--brass) 12%, transparent); color: var(--brass-bright); }
.btn-ghost { padding-left: 0; padding-right: 0; color: var(--brass); }
.btn-ghost .arrow { transition: transform var(--t-base) var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* 4. Header ----------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), height var(--t-base) var(--ease-out);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-5); }
.site-header.is-solid, body:not(.page-home) .site-header {
    background: color-mix(in oklch, var(--bg) 94%, transparent);
    border-bottom-color: var(--border);
    backdrop-filter: blur(8px);
}
.site-header.is-solid { --header-h: 68px; }
.brand img { width: clamp(180px, 18vw, 246px); height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.primary-nav a, .mobile-nav a { color: var(--text); font-size: var(--text-sm); font-weight: 500; position: relative; padding: 0.4rem 0; }
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease-out);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--brass-bright); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-book { min-height: 42px; padding: 0.5rem 1.1rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg);
    padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease-out), visibility var(--t-base);
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav ul { display: grid; gap: var(--space-4); }
.mobile-nav ul a { font-family: var(--font-display); font-size: var(--text-xl); }
.mobile-nav a[aria-current="page"] { color: var(--brass); }
.mobile-nav__tel { color: var(--brass) !important; }
.nav-open { overflow: hidden; }

/* 5. Hero ------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + var(--space-6)) 0 var(--space-7);
    overflow: hidden;
    isolation: isolate;
}
.hero__bg { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 70% center;
    transform: scale(1.08);
    animation: hero-settle 2.4s var(--ease-out-expo) forwards;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 88%, transparent) 38%, color-mix(in oklch, var(--bg) 35%, transparent) 75%, color-mix(in oklch, var(--bg) 55%, transparent) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__inner { max-width: var(--container); position: relative; z-index: 1; }
/* soft light that follows the pointer */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), color-mix(in oklch, var(--brass) 14%, transparent), transparent 70%);
    mix-blend-mode: soft-light;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* quill that writes the signature */
.quill-pen__vane { fill: var(--brass); }
.quill-pen__shaft { stroke: var(--brass-bright); stroke-width: 1.2; fill: none; }

/* notary seal, stamped after the signature */
.seal {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(3rem, 12vh, 7rem);
    width: clamp(120px, 12vw, 172px);
    opacity: 0;
    animation: stamp 0.75s cubic-bezier(0.3, 0, 0.2, 1) 3.1s forwards;
}
.seal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--brass);
    opacity: 0;
    animation: ripple 1.1s var(--ease-out) 3.55s;
}
.seal svg { width: 100%; height: auto; display: block; overflow: visible; }
.seal__edge { fill: none; stroke: var(--brass-deep); stroke-width: 1; }
.seal circle:first-of-type { fill: color-mix(in oklch, var(--bg) 55%, transparent); stroke: var(--brass); }
.seal__ring { transform-origin: 80px 80px; animation: spin 38s linear 3.9s infinite; }
.seal text { fill: var(--brass); font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; }

/* film grain over the whole site */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
    opacity: 0.06;
    background-image: 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__title { margin: 0; font-weight: 400; }
.hero__name { display: block; font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -0.025em; }
.hero__role {
    display: block;
    font-size: clamp(1.6rem, 1rem + 2.6vw, 3.1rem);
    font-style: italic;
    color: var(--brass);
    margin-top: 0.3em;
    letter-spacing: -0.01em;
}
.signature { width: clamp(240px, 36vw, 480px); height: auto; margin: var(--space-2) 0 var(--space-4) -4px; overflow: visible; }
.signature > path {
    fill: none;
    stroke: var(--brass);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: sign 2.2s var(--ease-out) 0.9s forwards;
}
.hero__lead { max-width: 46ch; font-size: var(--text-lg); color: var(--text-muted); margin-bottom: var(--space-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__role, .hero__lead, .hero__cta { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease-out-expo) forwards; }
.hero__name .word { white-space: nowrap; }
.hero__name .l { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(6px); animation: letter 1s var(--ease-out-expo) forwards; animation-delay: calc(var(--i) * 45ms); }
.hero__role { animation-delay: 0.65s; }
.hero__lead { animation-delay: 1.4s; }
.hero__cta { animation-delay: 1.6s; }
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: var(--space-5);
    width: 1px;
    height: 56px;
    background: var(--border-strong);
    overflow: hidden;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--brass); transform: translateY(-100%); animation: scroll-hint 2.4s var(--ease-out) 2.4s infinite; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes stamp {
    0% { opacity: 0; transform: scale(1.9) rotate(-28deg); }
    70% { opacity: 1; transform: scale(0.94) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { from { opacity: 0.7; transform: scale(0.9); } to { opacity: 0; transform: scale(1.6); } }
@keyframes sign { to { stroke-dashoffset: 0; } }
@keyframes hero-settle { to { transform: scale(1); } }
@keyframes scroll-hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* 5b. Manifesto: words light up as you scroll ------------------------------- */
.manifesto { height: 210vh; position: relative; background: var(--bg); }
.manifesto__stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.manifesto__stick::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70vmin;
    height: 70vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklch, var(--brass) calc(var(--p, 0) * 16%), transparent), transparent 70%);
    pointer-events: none;
}
.manifesto__text {
    position: relative;
    margin: 0;
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.2rem + 4.6vw, 5.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.manifesto__text b { font-weight: 400; font-style: italic; }
.manifesto__text .w { color: color-mix(in oklch, var(--text) 16%, transparent); transition: color 0.5s var(--ease-out); }
.manifesto__text .w.is-lit { color: var(--text); }
.manifesto__text b .w.is-lit { color: var(--brass); }

/* image unveil */
.js .wipe img { clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path 1.3s var(--ease-out-expo), transform 1.8s var(--ease-out-expo); }
.js .wipe.is-in img { clip-path: inset(0 0 0 0); transform: none; }
.js .wipe.reveal { opacity: 1; transform: none; }

/* 6. Role (paper) ----------------------------------------------------------- */
.role { background: var(--paper); color: var(--ink); }
.role .kicker { color: var(--brass-deep); }
.role__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.role__figure { position: relative; }
.role__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.role__figure::after {
    content: "";
    position: absolute;
    inset: var(--space-4) calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4);
    border: 1px solid var(--brass-deep);
    border-radius: var(--radius);
    z-index: -1;
}
.role__figure { isolation: isolate; }
.pull {
    margin: 0 0 var(--space-5);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.3;
    color: var(--ink);
    padding-left: var(--space-4);
    border-left: 2px solid var(--brass);
}
.role p { color: var(--ink-muted); max-width: 62ch; }
.role .btn-ghost { color: var(--brass-deep); }
.role .btn-ghost:hover { color: var(--ink); }

/* 7. Services index --------------------------------------------------------- */
.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.index-list { counter-reset: none; border-top: 1px solid var(--border); }
.index-row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1fr) 1.5rem;
    gap: var(--space-4);
    align-items: baseline;
    padding: var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background-color var(--t-base) var(--ease-out);
}
.index-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, color-mix(in oklch, var(--brass) 16%, var(--bg)), var(--surface) 60%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}
.index-row:hover::before, .index-row:focus-visible::before { transform: scaleX(1); }
.index-row:hover { color: var(--text); }
.index-row__title { transition: transform 0.6s var(--ease-out-expo); }
.index-row:hover .index-row__title { transform: translateX(10px); }
.index-row:hover .index-row__num { color: var(--brass-bright); }
.index-row__num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--brass); font-variant-numeric: lining-nums; }
.index-row__title { font-family: var(--font-display); font-size: var(--text-lg); }
.index-row__short { color: var(--text-muted); font-size: var(--text-sm); }
.index-row__go { color: var(--brass-deep); align-self: center; transition: color var(--t-fast), transform var(--t-base) var(--ease-out); }
.index-row:hover .index-row__go { color: var(--brass); transform: translateX(4px); }

/* 8. Facts ------------------------------------------------------------------ */
.facts { padding: var(--space-7) 0; background: var(--surface); border-block: 1px solid var(--border); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.fact { display: grid; gap: var(--space-1); padding-left: var(--space-4); border-left: 1px solid var(--brass-deep); }
.fact__num { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--brass); }
.fact__lbl { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }

/* 9. Space gallery ---------------------------------------------------------- */
.space__grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: var(--space-4); }
.space__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.space__a { grid-row: span 2; }
.space__a img { aspect-ratio: 4 / 4.2; }
.space__b img, .space__c img { aspect-ratio: 3 / 2; }

/* 10. CTA band -------------------------------------------------------------- */
.cta-band { background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, var(--brass) 10%, var(--bg)) 0%, var(--bg) 70%); border-top: 1px solid var(--border); }
.cta-band__inner { text-align: center; max-width: 720px; }
.cta-band__quill { width: 92px; margin: 0 auto var(--space-4); }
.cta-band p { color: var(--text-muted); font-size: var(--text-lg); }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* 11. Inner pages ----------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(4rem, 12vh, 8rem)) 0 clamp(3rem, 8vh, 5rem);
    isolation: isolate;
    overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.32; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 40%, transparent) 100%); }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); font-weight: 400; margin: 0; }
.page-hero h1 em { color: var(--brass); }
.page-hero .lead { max-width: 56ch; margin-top: var(--space-4); }

/* Bio */
.bio__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.bio__body p { color: var(--text-muted); max-width: 64ch; }
.bio__body p:first-of-type { font-size: var(--text-lg); color: var(--text); }
.timeline { border-left: 1px solid var(--border); padding-left: var(--space-5); display: grid; gap: var(--space-5); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--space-5) * -1 - 4px); top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.timeline__when { font-family: var(--font-display); color: var(--brass); font-size: var(--text-lg); display: block; }
.timeline__what { color: var(--text-muted); font-size: var(--text-sm); }

/* Services detail */
.svc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-toc { position: sticky; top: calc(var(--header-h) + var(--space-4)); display: grid; gap: 2px; }
.svc-toc a { display: grid; grid-template-columns: 2.2rem 1fr; padding: 0.45rem 0; color: var(--text-muted); font-size: var(--text-sm); border-bottom: 1px solid var(--border); }
.svc-toc a span { color: var(--brass-deep); font-family: var(--font-display); }
.svc-toc a:hover, .svc-toc a.is-active { color: var(--text); }
.svc-toc a.is-active span { color: var(--brass); }
.svc { padding: var(--space-6) 0; border-bottom: 1px solid var(--border); }
.svc:first-child { padding-top: 0; }
.svc__head { display: flex; align-items: baseline; gap: var(--space-4); }
.svc__num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--brass); line-height: 1; }
.svc h2 { font-size: var(--text-xl); margin: 0; }
.svc__intro { color: var(--text-muted); max-width: 66ch; margin-top: var(--space-4); }
.svc__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); margin-top: var(--space-3); }
.svc__items li { position: relative; padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); font-size: var(--text-sm); line-height: 1.55; }
.svc__items li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 0.7rem; height: 1px; background: var(--brass); }

/* Contact */
.contact__grid h2 { font-size: var(--text-xl); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-list { display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; align-items: start; }
.contact-list i { color: var(--brass); margin-top: 0.4rem; }
.contact-list small { display: block; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.contact-list a, .contact-list span { color: var(--text); font-size: var(--text-lg); font-family: var(--font-display); }
.contact-list a:hover { color: var(--brass-bright); }
.booking-card { padding: var(--space-5); border: 1px solid var(--brass-deep); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--space-5); }
.booking-card h2 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.booking-card p { color: var(--text-muted); font-size: var(--text-sm); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(0.6) invert(0.9) hue-rotate(180deg) contrast(0.9); }
.map a { position: absolute; right: var(--space-2); bottom: var(--space-2); font-size: var(--text-xs); background: var(--bg); padding: 0.3rem 0.6rem; border-radius: var(--radius); }

/* Forms (also the booking drawer) */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.contact-form .form-group { margin-bottom: var(--space-4); }
.contact-form label { display: block; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 0.4rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in oklch, var(--brass) 22%, transparent); }
.contact-form [aria-invalid="true"] { border-color: oklch(0.68 0.15 28); }
.contact-form .form-consent { display: flex; margin-bottom: var(--space-4); }
.form-consent { gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.form-consent input { margin-top: 0.35rem; accent-color: var(--brass); }
.form-hp { position: absolute; left: -9999px; }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: var(--space-4); }
.notice--ok { border-color: var(--brass-deep); background: color-mix(in oklch, var(--brass) 10%, var(--surface)); }
.notice--error { border-color: oklch(0.55 0.13 28); background: color-mix(in oklch, oklch(0.55 0.13 28) 14%, var(--surface)); }
.form-turnstile { margin-bottom: var(--space-4); min-height: 65px; }

/* Cancel page */
.cancel-card { max-width: 560px; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cancel-card__when { font-family: var(--font-display); font-size: var(--text-xl); color: var(--brass); margin-bottom: var(--space-2); }

/* 12. Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--brass-deep); padding: var(--space-7) 0 var(--space-4); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.footer-brand img { width: 220px; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--text-muted); font-size: var(--text-sm); max-width: 40ch; }
.footer-h { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--space-4); }
.footer-contact { display: grid; gap: var(--space-3); }
.footer-contact li { display: grid; grid-template-columns: 1.6rem 1fr; font-size: var(--text-sm); }
.footer-contact i { color: var(--brass-deep); margin-top: 0.35rem; }
.footer-contact a, .footer-links a { color: var(--text-muted); }
.footer-contact a:hover, .footer-links a:hover { color: var(--brass-bright); }
.footer-links { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); }
.footer-social a:hover { border-color: var(--brass); color: var(--brass); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-faint); }
.footer-bottom p { margin: 0; }
.powered-by { display: flex; align-items: center; gap: var(--space-2); }
.powered-by img { width: 96px; opacity: 0.75; transition: opacity var(--t-fast); }
.powered-by a:hover img { opacity: 1; }

/* 13. Reveal ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out-expo), transform var(--t-slow) var(--ease-out-expo); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 14. Responsive ------------------------------------------------------------ */
@media (max-width: 1020px) {
    .primary-nav, .header-book span { display: none; }
    .nav-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .header-book { min-height: 44px; width: 44px; padding: 0; }
    .index-row { grid-template-columns: 3rem minmax(0, 1fr) 1.2rem; }
    .index-row__short { display: none; }
    .facts__grid { grid-template-columns: repeat(2, 1fr); }
    .svc-layout { grid-template-columns: 1fr; }
    .svc-toc { display: none; }
}
@media (max-width: 760px) {
    :root { --header-h: 68px; }
    .hero { align-items: flex-end; }
    .hero__scroll { display: none; }
    .seal { top: calc(var(--header-h) + var(--space-4)); bottom: auto; width: 104px; }
    .manifesto { height: 170vh; }
    .hero__media { background-position: 62% center; }
    .hero::before { background: linear-gradient(0deg, var(--bg) 18%, color-mix(in oklch, var(--bg) 70%, transparent) 60%, color-mix(in oklch, var(--bg) 45%, transparent) 100%); }
    .role__grid, .bio__grid, .contact__grid { grid-template-columns: 1fr; }
    .role__figure { max-width: 420px; }
    .space__grid { grid-template-columns: 1fr; }
    .space__a { grid-row: auto; }
    .space__a img { aspect-ratio: 3 / 2; }
    .facts__grid { grid-template-columns: 1fr; }
    .svc__items { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .hero__cta .btn, .cta-band__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .wipe img { clip-path: none; transform: none; }
    .quill-pen { display: none; }
    .hero__name .l { opacity: 1; transform: none; filter: none; }
    .manifesto { height: auto; }
    .manifesto__stick { position: static; height: auto; padding: var(--section-y) 0; }
    .manifesto__text .w { color: var(--text); }
    .manifesto__text b .w { color: var(--brass); }
}
