/* =========================================================
   ANGELINA KONCHEVSKAYA — Mobile-first Landing
   ========================================================= */

:root {
    --ink: #151c28;
    --ink-soft: #2a3342;
    --cream: #f5f0e6;
    --paper: #faf7f1;
    --paper-2: #f3ede0;
    --sky-deep: #0e1a2d;
    --sky-mid: #6e8caf;
    --sky-soft: #c9d5e3;
    --sunset: #f3cca2;
    --sunset-deep: #e2a47f;
    --gold: #c9a961;
    --gold-warm: #d9b77a;
    --line: rgba(21, 28, 40, 0.12);
    --line-light: rgba(245, 240, 230, 0.2);

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Inter", -apple-system, sans-serif;
    --script: "Caveat", cursive;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);

    --pad-x: 22px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bot: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
}

img, svg { max-width: 100%; display: block; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-warm); color: var(--ink); }

/* ========== Custom cursor (desktop only) ========== */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
    }
    .cursor-dot {
        position: fixed;
        width: 6px; height: 6px;
        background: #fff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.15s var(--ease);
    }
    .cursor-ring {
        position: fixed;
        width: 36px; height: 36px;
        border: 1px solid rgba(255,255,255,0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: transform 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
    }
    .cursor.hovering .cursor-ring { width: 70px; height: 70px; border-color: rgba(255,255,255,0.9); }
    .cursor.hovering .cursor-dot { transform: translate(-50%, -50%) scale(0); }
}

/* ========== Preloader ========== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--paper);
    display: grid;
    place-items: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; color: var(--ink); }
.preloader-compass {
    width: 56px; height: 56px;
    margin: 0 auto 26px;
    color: var(--gold);
}
.compass-needle {
    transform-origin: 50px 50px;
    animation: needleSpin 3s var(--ease) infinite;
}
@keyframes needleSpin {
    0% { transform: rotate(-30deg); }
    50% { transform: rotate(210deg); }
    100% { transform: rotate(-30deg); }
}
.preloader-text {
    font-family: var(--serif);
    font-size: 1.7rem;
    letter-spacing: 0.55em;
    margin-right: -0.55em;
    margin-bottom: 24px;
}
.preloader-text span {
    display: inline-block;
    opacity: 0;
    animation: letterIn 0.6s var(--ease) forwards;
}
.preloader-text span:nth-child(1){ animation-delay: 0.1s; }
.preloader-text span:nth-child(2){ animation-delay: 0.2s; }
.preloader-text span:nth-child(3){ animation-delay: 0.3s; }
.preloader-text span:nth-child(4){ animation-delay: 0.4s; }
.preloader-text span:nth-child(5){ animation-delay: 0.5s; }
.preloader-text span:nth-child(6){ animation-delay: 0.6s; }
.preloader-text span:nth-child(7){ animation-delay: 0.7s; }
.preloader-text span:nth-child(8){ animation-delay: 0.8s; }
@keyframes letterIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.preloader-bar { width: 130px; height: 1px; background: var(--line); margin: 0 auto; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; background: var(--gold); width: 0; animation: barFill 1.6s var(--ease) 0.9s forwards; }
@keyframes barFill { to { width: 100%; } }

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: calc(14px + var(--safe-top)) var(--pad-x) 14px;
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(250, 247, 241, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav.on-dark { color: var(--cream); }
.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: 0.06em;
    min-width: 0;
}
.nav-logo-mark { font-weight: 500; font-style: italic; font-size: 1.1rem; }
.nav-logo-divider { width: 18px; height: 1px; background: currentColor; opacity: 0.4; }
.nav-logo-name { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; font-family: var(--sans); font-weight: 400; white-space: nowrap; }

.nav-burger {
    width: 44px; height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: calc(80px + var(--safe-top)) var(--pad-x) calc(40px + var(--safe-bot));
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease);
    min-height: 100vh;
    min-height: 100dvh;
}
.nav-links.open { transform: translateY(0); }
.nav-links a {
    padding: 18px 0;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}
.nav-links.open a {
    opacity: 1;
    transform: translateY(0);
}
.nav-links.open a:nth-child(1){ transition-delay: 0.1s; }
.nav-links.open a:nth-child(2){ transition-delay: 0.15s; }
.nav-links.open a:nth-child(3){ transition-delay: 0.2s; }
.nav-links.open a:nth-child(4){ transition-delay: 0.25s; }
.nav-links.open a:nth-child(5){ transition-delay: 0.3s; }
.nav-links.open a:nth-child(6){ transition-delay: 0.35s; }
.nav-links a:active { color: var(--gold); }
.nav-insta-mobile {
    display: flex !important;
    align-items: center;
    gap: 12px;
    color: var(--gold) !important;
    font-size: 1.15rem !important;
    font-style: normal !important;
    letter-spacing: 0.05em;
    margin-top: 16px;
    padding-top: 28px !important;
    border-top: 1px solid var(--line);
    border-bottom: none !important;
}
.nav-cta { display: none; }

/* Desktop nav */
@media (min-width: 900px) {
    .nav { padding: 24px 40px; }
    .nav.scrolled { padding: 16px 40px; }
    .nav-burger { display: none; }
    .nav-logo-divider { width: 22px; }
    .nav-logo-name { font-size: 0.68rem; }
    .nav-links {
        position: static;
        flex-direction: row;
        min-height: auto;
        padding: 0;
        background: none;
        transform: none;
        gap: 32px;
        flex: 1;
        justify-content: center;
    }
    .nav-links a {
        padding: 6px 0;
        font-family: var(--sans);
        font-size: 0.72rem;
        font-style: normal;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        border-bottom: none;
        opacity: 0.75;
        transform: none;
        position: relative;
    }
    .nav-links.open a { transition-delay: 0 !important; }
    .nav-links a::after {
        content: "";
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s var(--ease);
    }
    .nav-links a:hover { opacity: 1; }
    .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
    .nav-insta-mobile { display: none !important; }
    .nav-cta {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 11px 20px;
        border: 1px solid currentColor;
        border-radius: 100px;
        font-size: 0.68rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        transition: all 0.4s var(--ease);
    }
    .nav-cta:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
    .nav.on-dark .nav-cta:hover { background: var(--cream); color: var(--ink); }
}

/* ========== Hero (mobile-first) ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(90px + var(--safe-top)) var(--pad-x) 32px;
    overflow: hidden;
    color: var(--cream);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.hero-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(243, 204, 162, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 15%, rgba(226, 164, 127, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, #2c3e58 0%, #4a6384 30%, #8ba5c4 62%, #d7c0a3 88%, #e8cfb0 100%);
    z-index: -3;
}
.horizon {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 26vh;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 28, 45, 0.15) 60%, rgba(14, 26, 45, 0.45) 100%);
    pointer-events: none;
}
.cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.65;
    animation: driftCloud 90s linear infinite;
}
.cloud-1 { width: 440px; height: 150px; top: 14%; left: -30%; }
.cloud-2 { width: 360px; height: 120px; top: 40%; left: 60%; animation-duration: 110s; animation-delay: -30s; opacity: 0.5; }
.cloud-3 { width: 520px; height: 160px; top: 64%; left: -40%; animation-duration: 130s; animation-delay: -60s; opacity: 0.4; }
@keyframes driftCloud {
    from { transform: translateX(0); }
    to { transform: translateX(160vw); }
}
.sun-flare {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255, 230, 200, 0.9) 0%, rgba(255, 210, 170, 0.35) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: sunPulse 8s ease-in-out infinite;
}
@keyframes sunPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.flight-paths {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}
.flight-path {
    stroke-dashoffset: 2000;
    animation: drawPath 14s ease-in-out infinite;
}
.fp-1 { animation-delay: 0s; }
.fp-2 { animation-delay: -6s; }
@keyframes drawPath {
    0% { stroke-dashoffset: 2000; opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { stroke-dashoffset: -2000; opacity: 0; }
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: auto 0;
    padding-top: 24px;
    padding-bottom: 40px;
}
.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 7px 14px;
    border: 1px solid rgba(245, 240, 230, 0.3);
    border-radius: 100px;
    background: rgba(245, 240, 230, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-meta-dot {
    width: 6px; height: 6px;
    background: var(--gold-warm);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(217, 183, 122, 0.25);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(217, 183, 122, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(217, 183, 122, 0.05); }
}
.hero-meta-text {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 0.92;
    margin-bottom: 28px;
    letter-spacing: -0.012em;
}
.ht-row { display: block; overflow: hidden; }
.ht-row em {
    display: inline-block;
    font-style: italic;
    font-size: clamp(3.3rem, 17vw, 11rem);
    line-height: 0.92;
    font-weight: 300;
    text-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.ht-row-2 { margin-top: -0.05em; }
.ht-row-2 span {
    display: inline-block;
    font-size: clamp(1.4rem, 6.5vw, 4.5rem);
    letter-spacing: 0.16em;
    font-weight: 300;
    text-transform: uppercase;
    padding-left: 0.16em;
    opacity: 0.96;
}

.hero-tagline { margin-bottom: 30px; font-family: var(--serif); }
.hero-tagline p {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    line-height: 1.55;
    font-weight: 300;
}
.tagline-italic { display: block; font-style: italic; color: var(--gold-warm); margin-top: 2px; }

/* Floating photo preview */
.hero-photo-preview {
    position: relative;
    height: 200px;
    margin: 0 auto 34px;
    max-width: 420px;
    pointer-events: none;
}
.hpp-frame {
    position: absolute;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5), 0 0 0 4px rgba(245,240,230,0.9);
    animation: floatFrame 6s ease-in-out infinite;
}
.hpp-frame > div {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}
.hpp-1 { width: 42%; aspect-ratio: 3/4; top: 0; left: 5%; transform: rotate(-6deg); z-index: 2; animation-delay: 0s; }
.hpp-2 { width: 38%; aspect-ratio: 4/5; top: 12%; left: 34%; transform: rotate(3deg); z-index: 3; animation-delay: -2s; }
.hpp-3 { width: 36%; aspect-ratio: 3/4; top: 2%; right: 10%; transform: rotate(7deg); z-index: 1; animation-delay: -4s; }
.hpp-4 { display: none; }
@keyframes floatFrame {
    0%, 100% { transform: translateY(0) rotate(var(--r, -6deg)); }
    50% { transform: translateY(-6px) rotate(var(--r, -6deg)); }
}
.hpp-1 { --r: -6deg; }
.hpp-2 { --r: 3deg; }
.hpp-3 { --r: 7deg; }

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 26px;
    border-radius: 100px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    min-height: 54px;
}
.btn-primary {
    background: linear-gradient(180deg, var(--gold-warm) 0%, var(--gold) 100%);
    color: var(--ink);
    font-weight: 500;
    box-shadow: 0 10px 30px -10px rgba(201, 169, 97, 0.6);
}
.btn-primary:active { transform: scale(0.98); }
.btn-icon { display: inline-flex; align-items: center; }
.btn-ghost {
    color: var(--cream);
    border: 1px solid rgba(245, 240, 230, 0.4);
    background: rgba(245, 240, 230, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:active { background: rgba(245, 240, 230, 0.1); }

.hero-handle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-warm);
    padding: 10px 0;
    transition: transform 0.4s var(--ease);
}
.hero-handle:active { transform: translateX(4px); }
.hh-dot {
    width: 5px; height: 5px;
    background: currentColor;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}
.hh-arrow {
    font-style: normal;
    font-family: var(--sans);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: transform 0.3s var(--ease);
}
.hero-handle:hover .hh-arrow, .hero-handle:active .hh-arrow { transform: translate(3px, -3px); }

.hero-scroll {
    position: absolute;
    bottom: calc(16px + var(--safe-bot));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.65;
}
.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--cream) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gold-warm);
    animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* Hero desktop */
@media (min-width: 900px) {
    .hero { padding: 120px 48px 80px; align-items: center; justify-content: center; text-align: center; }
    .hero-content { text-align: center; max-width: 1100px; padding-top: 40px; }
    .hero-meta { margin-bottom: 40px; }
    .hero-title { margin-bottom: 36px; }
    .hero-photo-preview { display: none; }
    .hero-actions { flex-direction: row; justify-content: center; gap: 20px; margin-bottom: 40px; }
    .hero-tagline p { font-size: 1.35rem; }
    .hero-handle { font-size: 1.25rem; }
    .cloud-1 { width: 680px; height: 200px; }
    .cloud-2 { width: 520px; height: 160px; }
    .cloud-3 { width: 780px; height: 180px; }
    .sun-flare { top: 12%; right: 14%; width: 280px; height: 280px; }
}

/* ========== Marquee ========== */
.marquee-strip {
    overflow: hidden;
    padding: 18px 0;
    background: var(--ink);
    color: var(--cream);
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    padding-right: 30px;
}
.marquee-track .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold-warm);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (min-width: 900px) {
    .marquee-strip { padding: 26px 0; }
    .marquee-track { font-size: 1.7rem; gap: 48px; padding-right: 48px; }
}

/* ========== Section primitives ========== */
.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 28px;
}
.label-num { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--gold); }
.label-line { width: 40px; height: 1px; background: var(--ink); opacity: 0.25; }
.label-text { opacity: 0.75; }
.label-light { color: var(--cream); }
.label-light .label-line { background: var(--cream); opacity: 0.4; }

.section-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.1rem, 8vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title span { display: block; }
@media (min-width: 900px) {
    .section-title { margin-bottom: 40px; }
    .section-label { gap: 18px; font-size: 0.72rem; margin-bottom: 40px; }
    .label-line { width: 60px; }
}

/* ========== About ========== */
.about {
    padding: 90px var(--pad-x) 70px;
    max-width: 1600px;
    margin: 0 auto;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
.about-visual {
    position: relative;
    aspect-ratio: 4/5;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}
.about-frame {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 25px 60px -20px rgba(14, 26, 45, 0.3);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about-frame-main { top: 0; left: 0; width: 70%; aspect-ratio: 3/4; z-index: 2; }
.about-frame-overlap {
    bottom: 0; right: 0;
    width: 55%; aspect-ratio: 4/3;
    z-index: 3;
    box-shadow: 0 30px 80px -20px rgba(14, 26, 45, 0.4);
}
.about-frame-small { top: 12%; right: 0; width: 38%; aspect-ratio: 1/1; z-index: 1; opacity: 0.9; }
.frame-caption {
    position: absolute;
    bottom: 14px; left: 14px; right: 14px;
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.78rem;
    text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}
.about-stamp {
    position: absolute;
    bottom: 28%;
    left: -20px;
    width: 84px; height: 84px;
    z-index: 4;
    color: var(--gold);
    animation: slowSpin 30s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
.about-stamp svg { width: 100%; height: 100%; }
.about-stamp text { font-family: var(--sans); font-size: 6px; letter-spacing: 0.2em; fill: currentColor; }
.stamp-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    animation: slowSpin 30s linear infinite reverse;
}

.about-paragraph { margin-bottom: 30px; }
.about-paragraph p {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 16px;
}
.about-paragraph p.muted { color: var(--ink-soft); font-size: 0.96rem; opacity: 0.85; }
.about-handwrite {
    margin-bottom: 36px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.hw-text {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-soft);
    opacity: 0.7;
    font-size: 0.95rem;
}
.hw-signature {
    font-family: var(--script);
    font-size: 2.3rem;
    color: var(--gold);
    line-height: 1;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.75;
    line-height: 1.4;
}
@media (min-width: 900px) {
    .about { padding: 150px 48px 130px; }
    .about-grid { grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
    .about-visual { max-width: none; }
    .about-stamp { width: 110px; height: 110px; left: -30px; }
    .about-stamp text { font-size: 7px; }
    .stamp-center { font-size: 1.4rem; }
    .about-paragraph p { font-size: 1.08rem; }
    .stat-num { font-size: 2.6rem; }
    .stat-label { font-size: 0.72rem; letter-spacing: 0.2em; }
    .about-stats { gap: 32px; padding-top: 40px; }
}

/* ========== Services — Frequency Panel ========== */
.services {
    padding: 90px var(--pad-x) 80px;
    max-width: 1600px;
    margin: 0 auto;
}
.services-header { max-width: 800px; margin-bottom: 36px; }
.services-intro {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-top: 4px;
}

.freq-panel {
    background: linear-gradient(180deg, #faf7f1 0%, #f3ede0 100%);
    border: 1px solid var(--line);
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
}
.freq-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.freq-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.fp-status { display: flex; align-items: center; gap: 10px; }
.fp-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6bb97c;
    box-shadow: 0 0 0 3px rgba(107, 185, 124, 0.2);
    animation: pulseDot 1.8s ease-in-out infinite;
}
.fp-label { opacity: 0.7; }
.fp-time {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0.04em;
}

.freq-list {
    display: flex;
    flex-direction: column;
}
.freq-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background 0.5s var(--ease);
    min-height: 96px;
}
.freq-item:last-child { border-bottom: none; }
.freq-item::before {
    content: "";
    position: absolute;
    left: -18px; right: -18px; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(217, 183, 122, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.freq-item:hover::before, .freq-item:active::before { opacity: 1; }

.freq-main { display: flex; align-items: center; gap: 16px; grid-column: 1 / 3; }
.freq-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 400;
    min-width: 22px;
}
.freq-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.65rem;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: var(--ink);
    line-height: 1;
}
.freq-body p {
    font-size: 0.82rem;
    color: var(--ink-soft);
    opacity: 0.8;
    font-family: var(--serif);
    font-style: italic;
    letter-spacing: 0.01em;
}

.freq-wave {
    grid-column: 1 / -1;
    height: 28px;
    margin-top: 6px;
    opacity: 0.55;
    transition: opacity 0.5s var(--ease);
}
.freq-wave svg { width: 100%; height: 100%; }
.wave-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 0 500;
    animation: waveReveal 4s var(--ease) infinite;
}
.freq-item:nth-child(1) .wave-path { animation-delay: 0s; }
.freq-item:nth-child(2) .wave-path { animation-delay: -1s; }
.freq-item:nth-child(3) .wave-path { animation-delay: -2s; }
.freq-item:nth-child(4) .wave-path { animation-delay: -3s; }
@keyframes waveReveal {
    0% { stroke-dasharray: 0 500; }
    50% { stroke-dasharray: 500 0; }
    100% { stroke-dasharray: 0 500; }
}
.freq-item:hover .freq-wave, .freq-item:active .freq-wave {
    opacity: 1;
}

.freq-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-size: 1.1rem;
    color: var(--gold);
    transition: all 0.5s var(--ease);
    flex-shrink: 0;
}
.freq-item:hover .freq-arrow, .freq-item:active .freq-arrow {
    background: var(--gold);
    color: var(--cream);
    border-color: var(--gold);
    transform: translateX(4px);
}

.freq-footnote {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    background: rgba(217, 183, 122, 0.08);
    border-left: 2px solid var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.fn-mark { color: var(--gold); font-size: 1.05rem; flex-shrink: 0; }

@media (min-width: 760px) {
    .freq-panel { padding: 32px 32px; }
    .freq-item {
        grid-template-columns: auto 1fr 160px auto;
        gap: 30px;
        padding: 28px 10px;
    }
    .freq-main { grid-column: auto; }
    .freq-wave { grid-column: 3; margin-top: 0; height: 40px; }
    .freq-num { font-size: 1.3rem; min-width: 32px; }
    .freq-body h3 { font-size: 2rem; }
    .freq-body p { font-size: 0.92rem; }
}
@media (min-width: 900px) {
    .services { padding: 140px 48px; }
    .services-header { margin-bottom: 50px; }
    .services-intro { font-size: 1.2rem; }
    .freq-item { padding: 36px 12px; }
    .freq-body h3 { font-size: 2.4rem; }
    .freq-wave { width: 220px; }
}

/* ========== Portfolio ========== */
.portfolio {
    padding: 90px 0 80px;
    max-width: 1700px;
    margin: 0 auto;
}
.portfolio-header {
    max-width: 760px;
    padding: 0 var(--pad-x);
    margin-bottom: 36px;
}
.portfolio-intro {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink-soft);
    margin-top: 6px;
}
.portfolio-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 8px 14px;
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 100px;
}

.portfolio-rail { position: relative; }
.pr-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--pad-x) 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pr-track::-webkit-scrollbar { display: none; }

.pr-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--ink);
    cursor: pointer;
}
.pr-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.pr-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 26, 45, 0.8) 100%);
    opacity: 0.7;
    transition: opacity 0.5s var(--ease);
    z-index: 1;
    pointer-events: none;
}
.pr-item::after {
    content: "⤢";
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250, 247, 241, 0.9);
    color: var(--ink);
    font-size: 1rem;
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s var(--ease);
}
.pr-item:active .pr-img { transform: scale(1.03); }
.pr-item:hover::after, .pr-item.snap-active::after { opacity: 1; transform: scale(1); }

.pr-item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: baseline;
    gap: 12px;
    z-index: 2;
}
.pr-item figcaption span {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold-warm);
    opacity: 0.9;
}

.pr-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 0 var(--pad-x);
}
.pr-nav {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: all 0.4s var(--ease);
}
.pr-nav:active { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: scale(0.95); }
.pr-nav:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pr-progress {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--serif);
    min-width: 80px;
    justify-content: center;
}
.pr-curr { font-size: 1.6rem; font-style: italic; color: var(--gold); }
.pr-dash { opacity: 0.3; }
.pr-total { font-size: 1rem; opacity: 0.5; }

.pr-bar {
    height: 2px;
    background: var(--line);
    margin: 14px var(--pad-x) 0;
    position: relative;
    overflow: hidden;
}
.pr-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 11.11%;
    background: var(--gold);
    transition: width 0.5s var(--ease), transform 0.5s var(--ease);
}

@media (min-width: 900px) {
    .portfolio { padding: 140px 0 120px; }
    .portfolio-header { padding: 0 48px; margin-bottom: 60px; }
    .pr-track { gap: 20px; padding: 0 48px 20px; }
    .pr-item { flex: 0 0 44%; aspect-ratio: 3/4; }
}
@media (min-width: 1200px) {
    .pr-item { flex: 0 0 32%; }
}

/* ========== Cinema strip ========== */
.cinema-strip {
    position: relative;
    padding: 110px var(--pad-x);
    overflow: hidden;
    color: var(--cream);
    text-align: center;
}
.cinema-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transform: scale(1.1);
    will-change: transform;
}
.cinema-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 26, 45, 0.55) 0%, rgba(14, 26, 45, 0.2) 50%, rgba(14, 26, 45, 0.5) 100%);
}
.cinema-quote { position: relative; max-width: 1000px; margin: 0 auto; font-family: var(--serif); }
.cinema-quote p {
    font-size: clamp(1.5rem, 6vw, 3.2rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.35);
}
.cinema-quote footer {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-family: var(--sans);
    opacity: 0.75;
}
@media (min-width: 900px) {
    .cinema-strip { padding: 180px 48px; }
}

/* ========== Reviews ========== */
.reviews {
    padding: 90px var(--pad-x) 80px;
    max-width: 1600px;
    margin: 0 auto;
}
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}
.review {
    position: relative;
    padding: 32px 24px 26px;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: all 0.6s var(--ease);
}
.review:active { background: var(--paper-2); }
.review-mark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 4rem;
    line-height: 0.3;
    color: var(--gold);
    margin-bottom: 6px;
    opacity: 0.6;
}
.review p {
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 22px;
}
.review p em { color: var(--gold); font-style: italic; }
.review footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.r-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink);
}
.r-meta {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
}
@media (min-width: 900px) {
    .reviews { padding: 140px 48px; }
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 30px;
        margin-top: 40px;
    }
    .review { padding: 40px 34px 34px; }
    .r-1 { grid-column: 1 / span 5; }
    .r-2 { grid-column: 7 / span 5; transform: translateY(40px); }
    .r-3 { grid-column: 2 / span 5; transform: translateY(20px); }
    .r-4 { grid-column: 8 / span 5; transform: translateY(60px); }
    .review:hover {
        box-shadow: 0 30px 70px -25px rgba(14, 26, 45, 0.2);
        border-color: var(--gold);
    }
    .review p { font-size: 1.15rem; }
    .review-mark { font-size: 5rem; }
}

/* ========== Certificates ========== */
.certs {
    padding: 90px var(--pad-x) 80px;
    max-width: 1600px;
    margin: 0 auto;
}
.polaroid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
    padding: 16px 0;
}
.polaroid {
    position: relative;
    background: #fffdf7;
    padding: 10px 10px 40px;
    box-shadow: 0 16px 32px -14px rgba(14, 26, 45, 0.3), 0 4px 12px -6px rgba(14, 26, 45, 0.15);
    transition: all 0.5s var(--ease);
    text-align: left;
    width: 100%;
}
.polaroid:nth-child(1) { transform: rotate(-3deg); }
.polaroid:nth-child(2) { transform: rotate(2deg); }
.polaroid:nth-child(3) { transform: rotate(-2deg); }
.polaroid:nth-child(4) { transform: rotate(3deg); }
.polaroid:active {
    transform: translateY(-6px) rotate(0deg) scale(1.02);
    box-shadow: 0 30px 50px -18px rgba(14, 26, 45, 0.4);
    z-index: 3;
}
.polaroid-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    filter: sepia(0.08) saturate(0.95);
}
.polaroid figcaption {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    font-family: var(--script);
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.2;
}
.tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 60px; height: 18px;
    background: rgba(217, 183, 122, 0.4);
    border-left: 1px dashed rgba(201, 169, 97, 0.3);
    border-right: 1px dashed rgba(201, 169, 97, 0.3);
}
.tape-2 {
    transform: translateX(-50%) rotate(4deg);
    background: rgba(200, 210, 220, 0.45);
    width: 54px;
}
@media (min-width: 760px) {
    .polaroid-row { grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 30px 10px; }
    .polaroid { padding: 14px 14px 50px; }
    .polaroid figcaption { font-size: 1.2rem; bottom: 16px; left: 18px; right: 18px; }
    .polaroid:hover {
        transform: translateY(-12px) rotate(0deg) scale(1.03);
        box-shadow: 0 40px 60px -20px rgba(14, 26, 45, 0.35);
        z-index: 3;
    }
    .tape { width: 80px; height: 22px; }
    .tape-2 { width: 70px; }
}
@media (min-width: 900px) {
    .certs { padding: 140px 48px; }
}

/* ========== Instagram ========== */
.insta {
    padding: 90px var(--pad-x) 80px;
    max-width: 1700px;
    margin: 0 auto;
}
.insta-header { margin-bottom: 30px; }
.insta-title { margin-bottom: 18px; }
.insta-handle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gold);
    padding: 10px 0;
    border-bottom: 1px solid var(--gold);
    transition: all 0.4s var(--ease);
}
.insta-handle:active, .insta-handle:hover { color: var(--ink); border-color: var(--ink); gap: 14px; }
.ih-arrow { font-style: normal; font-family: var(--sans); font-size: 0.9rem; opacity: 0.7; }

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 24px;
}
.insta-tile {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--ink);
}
.insta-tile div {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--ease), filter 0.5s var(--ease);
}
.insta-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 45, 0.3);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.insta-tile .heart {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--cream);
    font-size: 2rem;
    z-index: 2;
    transition: transform 0.5s var(--ease);
    text-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.insta-tile:hover div { transform: scale(1.08); filter: brightness(0.7); }
.insta-tile:hover::after { opacity: 1; }
.insta-tile:hover .heart { transform: translate(-50%, -50%) scale(1); }
.insta-tile:active div { transform: scale(1.05); filter: brightness(0.75); }
.insta-tile:active .heart { transform: translate(-50%, -50%) scale(1.1); animation: heartPop 0.5s var(--ease); }
@keyframes heartPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    60% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.insta-big-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #f4cea1 0%, #d9b77a 50%, #c9a961 100%);
    color: var(--ink);
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 20px 50px -20px rgba(201, 169, 97, 0.6);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.insta-big-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.25), transparent 60%);
    pointer-events: none;
}
.insta-big-cta:active { transform: scale(0.98); }
.insta-big-cta:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -20px rgba(201, 169, 97, 0.7); }
.ibc-inner { display: flex; flex-direction: column; gap: 4px; }
.ibc-label {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1;
}
.ibc-sub {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.75;
}
.ibc-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(21, 28, 40, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease);
}
.insta-big-cta:hover .ibc-arrow { transform: rotate(-10deg); }
@media (min-width: 760px) {
    .insta-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .ibc-label { font-size: 1.7rem; }
    .insta-big-cta { padding: 32px 40px; }
}
@media (min-width: 900px) {
    .insta { padding: 140px 48px; }
    .insta-header { margin-bottom: 50px; }
}

/* ========== Contact ========== */
.contact {
    position: relative;
    padding: 90px var(--pad-x) 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #0e1a2d 0%, #1a2740 40%, #2a3556 100%);
    color: var(--cream);
}
.contact-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(243, 204, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(201, 169, 97, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.runway-lights {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 180px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    pointer-events: none;
}
.runway-lights span {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--gold-warm);
    box-shadow: 0 0 12px var(--gold-warm), 0 0 24px rgba(217, 183, 122, 0.4);
    animation: runwayBlink 2.2s ease-in-out infinite;
    margin-bottom: 16px;
}
.runway-lights span:nth-child(2n) { animation-delay: 0.3s; }
.runway-lights span:nth-child(3n) { animation-delay: 0.7s; }
.runway-lights span:nth-child(5n) { animation-delay: 1.1s; }
@keyframes runwayBlink {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.contact-inner {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px;
}
.contact-inner .section-label { justify-content: center; }
.contact-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 10vw, 7rem);
    line-height: 0.95;
    margin-bottom: 22px;
}
.contact-title span { display: block; }
.contact-title em { font-style: italic; color: var(--gold-warm); }

.contact-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 42px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 50px;
    text-align: left;
}
.btn-big {
    position: relative;
    padding: 22px 22px 22px 24px;
    border: 1px solid rgba(245, 240, 230, 0.2);
    background: rgba(245, 240, 230, 0.03);
    transition: all 0.5s var(--ease);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    align-items: center;
    overflow: hidden;
    min-height: 80px;
}
.btn-big-icon {
    grid-row: 1 / 3;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 183, 122, 0.15);
    border-radius: 50%;
    color: var(--gold-warm);
    flex-shrink: 0;
    transition: all 0.4s var(--ease);
}
.btn-big:not(.btn-big-primary) .btn-big-icon { display: none; }
.btn-big:not(.btn-big-primary) { grid-template-columns: 1fr auto; }
.btn-big:not(.btn-big-primary) .btn-big-label,
.btn-big:not(.btn-big-primary) .btn-big-detail { grid-column: 1; }
.btn-big:not(.btn-big-primary) .btn-big-arrow { grid-column: 2; grid-row: 1 / 3; }

.btn-big-label {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.45rem;
    color: var(--cream);
    line-height: 1.1;
}
.btn-big-detail {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.65;
}
.btn-big-arrow {
    grid-row: 1 / 3;
    font-size: 1.1rem;
    color: var(--gold-warm);
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 230, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease);
}
.btn-big:hover, .btn-big:active {
    border-color: var(--gold-warm);
    background: rgba(217, 183, 122, 0.08);
}
.btn-big:hover .btn-big-arrow, .btn-big:active .btn-big-arrow {
    background: var(--gold-warm);
    color: var(--ink);
    border-color: var(--gold-warm);
    transform: translate(3px, -3px);
}
.btn-big-primary {
    background: linear-gradient(135deg, rgba(243, 204, 162, 0.15), rgba(217, 183, 122, 0.08));
    border-color: rgba(217, 183, 122, 0.4);
}
.btn-big-primary .btn-big-icon { background: var(--gold-warm); color: var(--ink); }

.contact-signature { color: var(--gold-warm); opacity: 0.65; }
.contact-signature svg {
    width: 180px; height: 50px;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 3s var(--ease);
}
.contact-signature.in-view svg { stroke-dashoffset: 0; }

@media (min-width: 900px) {
    .contact { padding: 140px 48px 40px; }
    .contact-sub { font-size: 1.3rem; }
    .contact-signature svg { width: 220px; height: 60px; }
    .runway-lights { height: 240px; }
    .runway-lights span { width: 4px; height: 4px; margin-bottom: 20px; }
}

/* Footer */
.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 0 calc(20px + var(--safe-bot));
    border-top: 1px solid rgba(245, 240, 230, 0.12);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-right a { margin: 0 6px; }
.footer-label { color: var(--gold-warm); }
.footer-text { opacity: 0.7; text-transform: none; letter-spacing: 0.04em; font-family: var(--serif); font-style: italic; font-size: 0.9rem; }
.footer a { opacity: 0.75; transition: opacity 0.3s var(--ease); }
.footer a:hover, .footer a:active { opacity: 1; color: var(--gold-warm); }
@media (min-width: 900px) {
    .footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; text-align: left; padding: 40px 0 20px; }
    .footer-col { align-items: flex-start; }
    .footer-center { text-align: center; align-items: center; }
    .footer-right { text-align: right; align-items: flex-end; }
    .footer-right a { margin: 0; }
    .footer-right a, .footer-right span { display: block; }
}

/* ========== Reveal animations ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
.hero-title [data-reveal] {
    transform: translateY(100%);
    transition: opacity 1.2s var(--ease) 0.5s, transform 1.4s var(--ease) 0.5s;
}
.hero-title [data-reveal].in-view { transform: translateY(0); }
.hero-tagline [data-reveal] { transition-delay: 0.9s; }
.hero-photo-preview[data-reveal] { transition-delay: 1.1s; }
.hero-actions[data-reveal] { transition-delay: 1.3s; }
.hero-handle[data-reveal] { transition-delay: 1.5s; }

/* ========== Modals ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(14, 20, 32, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
    padding: 20px;
    padding-top: calc(20px + var(--safe-top));
    padding-bottom: calc(20px + var(--safe-bot));
}
.modal.open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }

.modal-close {
    position: absolute;
    top: calc(18px + var(--safe-top));
    right: 18px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(245, 240, 230, 0.1);
    color: var(--cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s var(--ease);
}
.modal-close:hover, .modal-close:active {
    background: var(--cream);
    color: var(--ink);
}
.modal-counter {
    position: absolute;
    top: calc(32px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.8;
    letter-spacing: 0.15em;
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(245, 240, 230, 0.08);
    color: var(--cream);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    z-index: 10;
}
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
.modal-nav:hover { background: var(--cream); color: var(--ink); }
@media (min-width: 760px) { .modal-nav { display: inline-flex; } }

.modal-stage {
    position: relative;
    max-width: min(95vw, 1100px);
    max-height: min(80vh, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
    touch-action: pan-y;
}
.modal.open .modal-stage { opacity: 1; transform: scale(1); }
#galImg {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.modal-caption {
    color: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-align: center;
    opacity: 0.9;
}

/* Certificate modal */
.modal-card {
    background: #fffdf7;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
    border-radius: 4px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.modal.open .modal-card { opacity: 1; transform: translateY(0) scale(1); }
.cert-card-photo {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    filter: sepia(0.08) saturate(0.95);
}
.cert-card-body {
    padding: 26px 22px 32px;
    color: var(--ink);
}
.cert-card-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 500;
}
.cert-card-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
}
.cert-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.cert-card-meta {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
}
@media (min-width: 760px) {
    .modal-card { max-width: 560px; }
    .cert-card-body { padding: 36px 36px 40px; }
    .cert-card-title { font-size: 2.2rem; }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001s !important; transition-duration: 0.15s !important; }
    .hero-scroll, .runway-lights span, .wave-path { animation: none !important; }
}
