
/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ── Tokens ─────────────────────────────────────────── */
:root {
    --bg: oklch(97% 0.012 142);
    --surface: oklch(100% 0 0);
    --surface-sage: oklch(94% 0.030 142);
    --fg: oklch(18% 0.020 142);
    --muted: oklch(46% 0.015 142);
    --border: oklch(88% 0.020 142);
    --accent: oklch(38% 0.098 145);
    --accent-mid: oklch(52% 0.098 145);
    --accent-light: oklch(90% 0.040 145);

    --font-display: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', monospace;

    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 20px;

    --section-py: clamp(56px, 7vw, 96px);
    --container: 1160px;
    --gutter: clamp(20px, 4vw, 40px);
}

/* ── Base ────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

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

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--fg);
}

h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.015em;
    font-weight: 700;
}

h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

p {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    color: var(--muted);
}

p + p {
    margin-top: 14px;
}

strong {
    color: var(--fg);
    font-weight: 600;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent-mid);
    margin-bottom: 14px;
}

/* ── Nav ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo img {
    height: 42px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--fg);
}

.nav-logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-mid);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--fg);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius-s);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: oklch(32% 0.098 145);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentcolor;
    forced-color-adjust: preserve-parent-color;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px var(--gutter) 28px;
    z-index: 190;
    flex-direction: column;
    gap: 14px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--fg);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .nav-cta {
    margin-top: 8px;
    text-align: center;
    display: block;
    padding: 13px;
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-logo-text {
        display: none;
    }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 72px);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content h1 em {
    display: block;
    font-style: normal;
    color: var(--accent);
}

.hero-lead {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    margin-top: 36px;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 3px 12px oklch(38% 0.098 145 / 28%);
}

.btn-primary:hover {
    background: oklch(32% 0.098 145);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px oklch(38% 0.098 145 / 36%);
    text-decoration: none;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-s);
    background: white;
    transition: border-color 0.2s, background 0.2s;
}

.btn-wa:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    text-decoration: none;
}

.hero-badge-row {
    display: flex;
    gap: 24px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.hero-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero-photo-wrap {
    position: relative;
}

.hero-photo-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-l);
    box-shadow: 0 20px 60px oklch(18% 0.020 142 / 14%);
}

.hero-photo-chip {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-photo-chip span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

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

    .hero-photo-wrap img {
        height: 360px;
        object-position: center 20%;
    }

    .hero-photo-wrap {
        order: -1;
    }
}

@media (max-width: 600px) {
    .hero-photo-wrap img {
        height: 280px;
    }
}

/* ── Sections ─────────────────────────────────────────── */
.section {
    padding: var(--section-py) 0;
}

.section-white {
    background: var(--surface);
}

.section-sage {
    background: var(--surface-sage);
}

.section-bg {
    background: var(--bg);
}

.section-header {
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    max-width: 600px;
}

.section-header.center p {
    margin: 0 auto;
}

/* ── About ────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius-m);
    box-shadow: 0 8px 32px oklch(18% 0.020 142 / 10%);
}

.about-content .kicker {
    margin-bottom: 10px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.credential-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credential-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--fg);
}

.credential-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

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

/* ── Services ─────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px oklch(18% 0.020 142 / 8%);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14.5px;
    margin: 0;
}

/* ── Gallery ─────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 12px;
}

.gallery-main {
    grid-row: 1 / 3;
    border-radius: var(--radius-m);
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-thumb {
    border-radius: var(--radius-m);
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-main {
        grid-row: auto;
        height: 220px;
    }

    .gallery-thumb {
        height: 160px;
    }
}

/* ── Booking ─────────────────────────────────────────── */
.booking-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: clamp(36px, 6vw, 64px);
    align-items: start;
}

.booking-intro h2 {
    margin-bottom: 16px;
}

.booking-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: 15px;
    margin-top: 28px;
    transition: background 0.2s, transform 0.15s;
}

.booking-wa:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    text-decoration: none;
}

.social-text {
    margin-top: 16px;
}

.booking-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;

    padding: 14px 24px;
    border-radius: 8px;

    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    background: linear-gradient(
            45deg,
            #f58529,
            #dd2a7b,
            #8134af,
            #515bd4
    );

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-instagram:hover {
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.booking-instagram svg {
    flex-shrink: 0;
}

.booking-alt-text {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
    font-style: italic;
}

.booking-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: clamp(24px, 3vw, 36px);
}

.booking-form-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.booking-form-card > p {
    font-size: 14px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: 0.02em;
}

.form-group label .req {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-s);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--fg);
    background: var(--bg);
    transition: border-color 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

.form-group textarea {
    min-height: 96px;
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    pointer-events: none;
}

.btn-form-submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-s);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-form-submit:hover {
    background: oklch(32% 0.098 145);
    transform: translateY(-1px);
}

.form-notice {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

.form-feedback {
    display: none;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: var(--radius-s);
    font-size: 14px;
    font-weight: 500;
}

.form-feedback.success {
    background: oklch(93% 0.05 142);
    color: oklch(28% 0.08 142);
    border: 1px solid oklch(80% 0.06 142);
}

.form-feedback.error {
    background: oklch(95% 0.05 25);
    color: oklch(38% 0.12 25);
    border: 1px solid oklch(80% 0.10 25);
}

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

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Contact & Location ──────────────────────────────── */
.contact-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 64px);
}

.contact-block {
     text-wrap-style: balance;
     overflow-wrap: anywhere;
 }

.contact-block h3 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-s);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-item-text {
    padding-top: 2px;
}

.contact-item-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 3px;
}

.contact-item-text a,
.contact-item-text p {
    font-size: 16px;
    color: var(--fg);
    font-weight: 500;
    line-height: 1.5;
}

.contact-item-text a {
    color: var(--accent);
}

.contact-item-text a:hover {
    text-decoration: underline;
}

.map-wrap {
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 320px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.orari-block {
    margin-top: 28px;
}

.orari-block h4 {
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.orari-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orari-table td {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
}

.orari-table td:last-child {
    text-align: right;
    color: var(--muted);
}

.orari-table tr:last-child td {
    border-bottom: none;
}

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

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    background: var(--fg);
    color: rgba(255, 255, 255, 0.7);
    padding: 36px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
}

.footer-logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.footer-logo img {
    height: 36px;
    width: auto;
    opacity: 0.85;
    filter: brightness(10);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-copy {
    width: 100%;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 8px;
}

/* ── WhatsApp FAB ─────────────────────────────────────── */
.wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    forced-color-adjust: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.50);
    text-decoration: none;
}

.wa-fab svg {
    color: white;
}

.divider {
    height: 1px;
    background: var(--border);
}

@media (max-width: 360px) {
    :root {
        --gutter: 16px;
    }
}

/* ── Scroll Animations ───────────────────────────────── */

/* Base reveal state — elements start invisible */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.from-left {
    transform: translateX(-20px);
}

.reveal.from-right {
    transform: translateX(20px);
}

.reveal.scale-in {
    transform: scale(0.95) translateY(20px);
}

/* Revealed state */
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > *:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.visible > *:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-stagger.visible > *:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-stagger.visible > *:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-stagger.visible > *:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal-stagger.visible > *:nth-child(6) {
    transition-delay: 0.40s;
}

.reveal-stagger.visible > * {
    opacity: 1;
    transform: none;
}

/* Hero content staggered load */
.hero-animate > * {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

.hero-animate.loaded > *:nth-child(1) {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-animate.loaded > *:nth-child(2) {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-animate.loaded > *:nth-child(3) {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.hero-animate.loaded > *:nth-child(4) {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

.hero-animate.loaded > *:nth-child(5) {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Hero photo float */
.hero-photo-wrap {
    animation: heroPhotoEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes heroPhotoEnter {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-photo-wrap img {
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Chip fade-in delayed */
.hero-photo-chip {
    animation: chipPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

@keyframes chipPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Nav scroll shadow */
.site-header {
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px oklch(18% 0.020 142 / 8%);
}

/* Line reveal for section headers */
.section-line {
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 28px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.reveal.visible .section-line,
.section-line.visible {
    width: 40px;
}

/* Gallery parallax overlay shimmer on enter */
.gallery-main, .gallery-thumb {
    overflow: hidden;
}

.gallery-main img,
.gallery-thumb img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
    filter: brightness(0.92);
}

.gallery-main.visible img,
.gallery-thumb.visible img {
    filter: brightness(1);
}

/* ── Lightbox ──────────────────────────────────────────── */
.gallery-main,
.gallery-thumb {
    cursor: zoom-in;
}

.gallery-main:hover,
.gallery-thumb:hover {
    outline: 2px solid oklch(52% 0.098 145 / 0.5);
    outline-offset: 2px;
}

/* ── Gallery dialog ──────────────────────────────────── */
dialog#lb-dialog {
    /* reset browser defaults */
    background: transparent;
    border: none;
    padding: 0;
    margin: auto;
    overflow: visible;
    /* center content */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    max-height: none;
}

dialog#lb-dialog:not([open]) {
    display: none;
}

dialog#lb-dialog::backdrop {
    background: #2e352cc2;
    backdrop-filter: blur(5px) saturate(1.4);
    -webkit-backdrop-filter: blur(5px) saturate(1.4);
    animation: lb-fade-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.lb-frame {
    position: relative;
    max-width: min(90vw, 1080px);
    max-height: 85vh;
    border-radius: var(--radius-l);
    /*overflow: hidden;*/
    box-shadow: 0 32px 80px oklch(10% 0.04 145 / 0.55);
    animation: lb-slide-up 0.30s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lb-slide-up {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lb-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Nav buttons */
.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: oklch(100% 0 0 / 0.18);
    border: 1.5px solid oklch(100% 0 0 / 0.30);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}

.lb-btn:hover {
    background: oklch(100% 0 0 / 0.30);
}

.lb-prev {
    left: -60px;
}

.lb-next {
    right: -60px;
}

@media (max-width: 640px) {
    .lb-prev {
        left: -15px;
    }

    .lb-next {
        right: -15px;
    }
}

/* Close button */
.lb-close {
    position: absolute;
    top: -45px;
    right: 0;
    z-index: 2;
    background: oklch(100% 0 0 / 0.18);
    border: 1.5px solid oklch(100% 0 0 / 0.30);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}

.lb-close:hover {
    background: oklch(100% 0 0 / 0.35);
}

/* Counter */
.lb-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: oklch(95% 0.010 142);
    white-space: nowrap;
}

/* Dot strip */
.lb-dots {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.lb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: oklch(100% 0 0 / 0.35);
    forced-color-adjust: preserve-parent-color;
    transition: background 0.2s, transform 0.2s;
}

.lb-dot.active {
    background: oklch(100% 0 0 / 0.90);
    transform: scale(1.3);
}

@media (max-height: 490px) {
    .lb-close {
        top: -15px;
    }

    /*.lb-dots {*/
    /*    bottom: -15px;*/
    /*}*/
}

/* Explicit delay helpers */
.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

.delay-3 {
    transition-delay: 0.3s !important;
}

.delay-4 {
    transition-delay: 0.4s !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > *,
    .hero-animate > *,
    .hero-photo-wrap,
    .hero-photo-chip {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .hero-photo-wrap img {
        animation: none !important;
    }

    .section-line {
        width: 40px !important;
        transition: none !important;
    }
}