:root {
    --bg: #191817;
    --bg-raised: #221f1c;
    --accent: #d6c2a5;
    --accent-soft: rgba(214, 194, 165, 0.16);
    --text: #f2ede5;
    --muted: rgba(242, 237, 229, 0.68);
    --line: rgba(214, 194, 165, 0.22);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --space: clamp(1.25rem, 3vw, 2.5rem);
    --measure: 72rem;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
}

p {
    margin: 0;
}

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

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: clamp(0.12em, 2.4vw, 0.22em);
    text-transform: uppercase;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    min-height: 3rem;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--glass-light-border);
    border-radius: 999px;
    background: var(--glass-light-fill);
    color: var(--glass-light-text);
    box-shadow: var(--glass-light-shadow);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 55%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55),
        rgba(255, 255, 255, 0)
    );
}

.btn:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(214, 194, 165, 0.42) 100%
    );
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--glass-light-text);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    padding: 8rem var(--space) 4.5rem;
    overflow: hidden;
}

.hero-media,
.hero-slide,
.hero-slide img,
.hero-veil {
    position: absolute;
    inset: 0;
}

.hero-media {
    overflow: hidden;
    perspective: 1400px;
}

.hero-slide {
    opacity: 0;
    z-index: 0;
    transform-origin: 50% 100%;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide.is-leaving {
    z-index: 2;
    pointer-events: none;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: var(--image-fit, cover);
    object-position: var(--image-x, 50%) var(--image-y, 42%);
    transform-origin: var(--image-x, 50%) var(--image-y, 42%);
    transform: scale(calc(var(--cover-ratio, 1) * var(--image-zoom, 1)));
    filter: saturate(0.82) contrast(1.05);
}

.hero-slide.enter-fade.is-active {
    animation: hero-enter-fade 1s ease both;
}

.hero-slide.enter-zoom.is-active {
    animation: hero-enter-zoom 1.15s ease-out both;
}

.hero-slide.enter-slide.is-active {
    animation: hero-enter-slide 1.1s ease both;
}

.hero-slide.enter-rise.is-active {
    animation: hero-enter-rise 1.1s ease both;
}

.hero-slide.enter-wipe.is-active {
    animation: hero-enter-wipe 1.15s ease both;
}

.hero-slide.leave-fold {
    animation: hero-leave-fold 1.05s ease-in both;
}

.hero-slide.leave-fly {
    animation: hero-leave-fly 1.05s ease-in both;
}

.hero-slide.leave-spin {
    animation: hero-leave-spin 1.05s ease-in both;
}

.hero-slide.leave-drop {
    animation: hero-leave-drop 1s ease-in both;
}

.hero-slide.leave-shrink {
    animation: hero-leave-shrink 0.95s ease-in both;
}

@keyframes hero-enter-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hero-enter-zoom {
    from { opacity: 0; transform: scale(1.12); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-enter-slide {
    from { opacity: 0; transform: translateX(12%); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-enter-rise {
    from { opacity: 0; transform: translateY(10%); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-enter-wipe {
    from { clip-path: inset(0 0 0 100%); opacity: 1; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes hero-leave-fold {
    to {
        opacity: 0;
        transform: perspective(1200px) rotateX(78deg) scale(0.92);
    }
}

@keyframes hero-leave-fly {
    to {
        opacity: 0;
        transform: translate(28%, -34%) rotate(10deg) scale(0.55);
    }
}

@keyframes hero-leave-spin {
    to {
        opacity: 0;
        transform: rotate(22deg) scale(0.35);
    }
}

@keyframes hero-leave-drop {
    to {
        opacity: 0;
        transform: translateY(36%) scale(0.88);
    }
}

@keyframes hero-leave-shrink {
    to {
        opacity: 0;
        transform: scale(0.08);
    }
}

.hero-dots {
    position: absolute;
    right: var(--space);
    bottom: 1.6rem;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
}

.hero-dots button {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(242, 237, 229, 0.35);
}

.hero-dots button.is-current {
    background: var(--accent);
    transform: scale(1.2);
}

.hero-veil {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(25, 24, 23, 0.28) 0%, rgba(25, 24, 23, 0.18) 34%, rgba(25, 24, 23, 0.88) 100%),
        radial-gradient(120% 80% at 50% 0%, transparent 20%, rgba(25, 24, 23, 0.45) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    max-width: 13ch;
}

.hero-lead {
    max-width: 34rem;
    margin: 1.25rem 0 2rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.section {
    padding: 5.5rem var(--space) 1rem;
}

.section-head {
    max-width: var(--measure);
    margin: 0 auto 2.5rem;
}

.section-head h2,
.book-cta h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.services-grid {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 1.4rem;
}

.service-card {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.service-card .cover,
.service-card .cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-raised);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: var(--image-fit, cover);
    object-position: var(--image-x, 50%) var(--image-y, 18%);
    transform-origin: var(--image-x, 50%) var(--image-y, 18%);
    transform: scale(calc(var(--cover-ratio, 1) * var(--image-zoom, 1)));
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(calc(var(--cover-ratio, 1) * var(--image-zoom, 1) * 1.03));
}

.service-card h3 {
    font-size: 1.55rem;
}

.service-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.service-price {
    color: var(--accent);
    letter-spacing: 0.04em;
}

.service-note {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.book-cta {
    margin: 2rem var(--space) 0;
    padding: 4.5rem var(--space);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.book-cta p {
    max-width: 28rem;
    margin: 1rem auto 2rem;
    color: var(--muted);
}

@media (min-width: 760px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card:nth-child(-n + 2) {
        grid-column: span 1;
    }

    .hero {
        padding-left: 6vw;
        padding-bottom: 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card img,
    .service-card:hover img {
        transition: none;
        transform: scale(calc(var(--cover-ratio, 1) * var(--image-zoom, 1)));
    }

    .hero-slide,
    .hero-slide.is-active,
    .hero-slide.is-leaving {
        animation: none;
        transform: none;
        clip-path: none;
    }
}
