/* ==========================================================================
   Heaven's Garden — Homepage layout
   Depends on css/ui.css for tokens and primitives. Everything here is a
   section of the home page only.
   ========================================================================== */

/* ==========================================================================
   1 — HERO
   ========================================================================== */

.hg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100svh;
    /* a fixed offset, not var(--header-h) — that shrinks with the bar on scroll
       and would jitter the hero content as you move */
    padding-top: clamp(104px, 13vh, 168px);
    padding-bottom: calc(var(--book-overlap) + clamp(30px, 4.5vh, 60px));
    background: #0C0A08;
    overflow: hidden;
    color: #fff;
}

.hg-hero__bg {
    position: absolute;
    inset: -6% 0 0;
    height: 112%;
    z-index: 0;
    will-change: transform;
}

.hg-hero__bg video,
.hg-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    will-change: transform;
}

/* layered scrims: top for header legibility, bottom for copy, plus vignette */
.hg-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
            linear-gradient(180deg, rgba(8, 6, 5, .72) 0%, rgba(8, 6, 5, .12) 26%, rgba(8, 6, 5, 0) 42%),
            linear-gradient(180deg, rgba(8, 6, 5, 0) 38%, rgba(8, 6, 5, .55) 78%, rgba(8, 6, 5, .88) 100%),
            radial-gradient(120% 80% at 70% 40%, rgba(8, 6, 5, 0) 40%, rgba(8, 6, 5, .5) 100%);
}

.hg-hero__inner {
    position: relative;
    z-index: 3;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 4vw, 72px);
}

/* --- hero copy --- */

/* NB: never size these in `ch` — the container inherits the UI font while the
   headline is set in the display serif, so `ch` under-measures badly and the
   line masks clip the text. Always use explicit widths here. */
.hg-hero__copy {
    max-width: min(100%, 660px);
    min-width: 0;
}

.hg-hero__title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(38px, 4.6vw, 78px);
    line-height: .98;
    letter-spacing: -.018em;
    color: #fff;
    margin: clamp(18px, 2.4vh, 34px) 0 0;
    text-wrap: balance;
}

.hg-hero__desc {
    font-family: var(--sans);
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.85;
    color: rgba(255, 255, 255, .8);
    max-width: 46ch;
    margin: clamp(16px, 2.2vh, 30px) 0 0;
}

.hg-hero__desc p {
    margin: 0 0 .7em;
}

.hg-hero__desc p:last-child {
    margin-bottom: 0;
}

.hg-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(12px, 1.4vw, 20px);
    margin-top: clamp(22px, 3.4vh, 42px);
}

/* --- hero room carousel (bleeds off the right edge) --- */

.hg-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.8vw, 34px);
    margin-right: calc(var(--gutter) * -1);
}

.hg-stack {
    position: relative;
    flex: 1 1 auto;
    aspect-ratio: 15 / 11;
    perspective: 1400px;
    perspective-origin: 46% 50%;
    touch-action: pan-y;
    cursor: grab;
}

.hg-stack.is-dragging {
    cursor: grabbing;
}

.hg-slide {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #100D0A;
    transform-origin: 50% 50%;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    box-shadow: 0 34px 80px -30px rgba(0, 0, 0, .85);
}

.hg-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 1.1s var(--e-out);
}

.hg-slide.is-active:hover .hg-slide__img {
    transform: scale(1.09);
}

.hg-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .78) 100%);
    pointer-events: none;
}

/* dim the cards behind the active one */
.hg-slide:not(.is-active)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(10, 8, 6, .34);
    pointer-events: none;
}

.hg-slide__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(16px, 1.9vw, 30px);
}

.hg-slide__label {
    display: block;
    font-family: var(--sans);
    font-size: clamp(9px, .68vw, 11px);
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: .7em;
}

.hg-slide__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(21px, 1.85vw, 34px);
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

.hg-slide__video {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    font-family: var(--sans);
    font-size: clamp(10px, .72vw, 12px);
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity .45s var(--e-out), color .3s var(--e-out);
}

.hg-slide.is-active .hg-slide__video {
    opacity: 1;
}

.hg-slide__video[hidden] {
    display: none;
}

.hg-slide__video:hover {
    color: var(--gold-lt);
}

.hg-slide__play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    transition: background-color .4s var(--e-out), border-color .4s var(--e-out), transform .4s var(--e-out);
}

.hg-slide__play svg {
    width: 11px;
    height: 13px;
    fill: currentColor;
    margin-left: 2px;
}

.hg-slide__video:hover .hg-slide__play {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    transform: scale(1.06);
}

/* --- vertical rail: counter + progress + arrows --- */

.hg-rail {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-right: var(--gutter);
}

.hg-rail__count {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hg-rail__count b {
    font-weight: 500;
    color: var(--gold-lt);
}

.hg-rail__count span {
    opacity: .45;
}

.hg-rail__track {
    position: relative;
    width: 1px;
    height: clamp(90px, 14vh, 170px);
    background: var(--line-light);
    overflow: hidden;
}

.hg-rail__bar {
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    background: var(--gold-lt);
    transform: scaleY(0);
    transform-origin: top center;
}

.hg-rail__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hg-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .4s var(--e-out), color .4s var(--e-out),
    border-color .4s var(--e-out), transform .4s var(--e-out);
}

.hg-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.hg-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.hg-arrow--prev:hover {
    transform: translateY(-2px);
}

.hg-arrow--next:hover {
    transform: translateY(2px);
}

/* --- availability panel ------------------------------------------------
   A floating slab that straddles the hero's bottom edge. It sits outside
   .hg-hero (which clips its own overflow) and is pulled up over it, so it
   reads as a deliberate object rather than a bar welded to the viewport. */

.hg-booking {
    position: relative;
    z-index: 6;
    margin-top: calc(var(--book-overlap) * -1);
    margin-bottom: clamp(20px, 3vh, 40px);
}

.hg-booking__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(20, 16, 12, .93), rgba(12, 9, 7, .96));
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(191, 153, 72, .3);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}

.hg-booking__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.1fr);
    align-items: stretch;
    min-width: 0;
}

/* --- a single field cell --- */

.hg-bf {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 1vw, 16px);
    padding: clamp(18px, 1.8vw, 26px) clamp(16px, 1.5vw, 28px);
    min-width: 0;
    transition: background-color .4s var(--e-out);
}

/* hairline separators, inset so they read as rules rather than table borders */
.hg-bf + .hg-bf::before,
.hg-bf__split + .hg-bf::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(191, 153, 72, .26);
}

.hg-bf:hover,
.hg-bf:focus-within {
    background: rgba(191, 153, 72, .07);
}

/* gold underline that grows on focus */
.hg-bf::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s var(--e-out);
}

.hg-bf:focus-within::after {
    transform: scaleX(1);
}

.hg-bf__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid rgba(191, 153, 72, .3);
    border-radius: 50%;
    transition: background-color .4s var(--e-out), border-color .4s var(--e-out);
}

.hg-bf__icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--gold-lt);
    fill: none;
    stroke-width: 1.4;
    transition: stroke .4s var(--e-out);
}

.hg-bf:hover .hg-bf__icon,
.hg-bf:focus-within .hg-bf__icon {
    background: var(--gold);
    border-color: var(--gold);
}

.hg-bf:hover .hg-bf__icon svg,
.hg-bf:focus-within .hg-bf__icon svg {
    stroke: var(--ink);
}

/* fixed rows so every cell shares the same two baselines, whatever
   control it happens to contain */
.hg-bf__text {
    display: grid;
    grid-template-rows: 12px 26px;
    row-gap: 6px;
    min-width: 0;
}

.hg-bf__label {
    display: flex;
    align-items: center;
    height: 12px;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-lt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    cursor: pointer;
}

.hg-bf__value {
    display: block;
    height: 26px;
    line-height: 26px;
    font-family: var(--serif);
    font-size: clamp(16px, 1.15vw, 21px);
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* the real date input, laid transparently over its whole cell so the native
   picker opens from anywhere in it */
.hg-bf__native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
}

.hg-bf__native::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- nights marker sitting on the divider between the two dates --- */

.hg-bf__split {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(52px, 5vw, 78px);
}

.hg-bf__split::before,
.hg-bf__split::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    background: rgba(191, 153, 72, .26);
}

.hg-bf__split::before { top: 22%; height: 18%; }
.hg-bf__split::after  { bottom: 22%; height: 18%; }

.hg-bf__nights {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 100px;
    border: 1px solid rgba(191, 153, 72, .34);
    background: rgba(20, 16, 12, .95);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--gold-lt);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hg-bf__nights:empty {
    display: none;
}

/* --- submit --- */

.hg-booking__go {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 0 clamp(24px, 2.6vw, 48px);
    border: 0;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(10px, .76vw, 12px);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .45s var(--e-out);
}

.hg-booking__go::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    transform: translateY(101%);
    transition: transform .5s var(--e-out);
}

.hg-booking__go:hover::before,
.hg-booking__go:focus-visible::before {
    transform: translateY(0);
}

.hg-booking__go svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    transition: transform .45s var(--e-out);
}

.hg-booking__go:hover svg {
    transform: translateX(5px);
}

/* --- custom select, used for guests + room type --- */

.hg-select {
    position: relative;
    display: block;
    min-width: 0;
    height: 26px;
}

.hg-select__native {
    font-family: var(--serif);
    font-size: clamp(16px, 1.15vw, 21px);
    height: 26px;
    width: 100%;
    color: #fff;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color-scheme: dark;
}

.hg-select__native option {
    background: #16120E;
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
}

/* once enhanced the native control is hidden but still the thing that submits */
.hg-select.is-enhanced .hg-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
}

.hg-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 26px;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--serif);
    font-size: clamp(16px, 1.15vw, 21px);
    font-weight: 400;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.hg-select__value {
    min-width: 0;
    line-height: 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hg-select__caret {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    stroke: var(--gold-lt);
    fill: none;
    stroke-width: 2;
    transition: transform .35s var(--e-out);
}

.hg-select.is-open .hg-select__caret {
    transform: rotate(180deg);
}

.hg-select__list {
    position: absolute;
    left: -14px;
    right: -14px;
    bottom: calc(100% + 16px);
    z-index: 20;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    max-height: 46vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(16, 12, 9, .98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(191, 153, 72, .34);
    box-shadow: 0 -26px 54px -26px rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .28s var(--e-out), transform .28s var(--e-out), visibility .28s var(--e-out);
}

.hg-select.is-open .hg-select__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hg-select__opt {
    padding: 10px 18px;
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255, 255, 255, .74);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .2s var(--e-out), color .2s var(--e-out);
}

.hg-select__opt:hover,
.hg-select__opt.is-active {
    background: rgba(191, 153, 72, .16);
    color: #fff;
}

.hg-select__opt[aria-selected="true"] {
    color: var(--gold-lt);
}

/* --- responsive --- */

@media (max-width: 1180px) {
    .hg-booking__fields {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr);
    }

    .hg-bf {
        padding-inline: clamp(12px, 1.3vw, 20px);
    }
}

@media (max-width: 900px) {
    .hg-booking__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .hg-booking__fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    /* the nights marker becomes a divider spanning the row */
    .hg-bf__split {
        grid-column: 1 / -1;
        width: auto;
        height: 1px;
        background: rgba(191, 153, 72, .26);
        margin-inline: clamp(16px, 4vw, 28px);
    }

    .hg-bf__split::before,
    .hg-bf__split::after {
        display: none;
    }

    .hg-bf__nights {
        transform: translateY(0);
    }

    .hg-bf + .hg-bf::before,
    .hg-bf__split + .hg-bf::before {
        display: none;
    }

    /* rebuild the separators as a clean 2-column lattice */
    .hg-bf:nth-of-type(even)::before {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background: rgba(191, 153, 72, .26);
    }

    .hg-booking__go {
        padding: 20px;
        border-top: 1px solid rgba(191, 153, 72, .26);
    }
}

@media (max-width: 560px) {
    /* no overlap on phones — the panel simply follows the hero */
    .hg {
        --book-overlap: 0px;
    }

    .hg-booking {
        margin-bottom: 0;
    }

    .hg-booking__panel {
        border-inline: 0;
    }

    .hg-booking__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .hg-bf {
        padding: 16px clamp(16px, 5vw, 24px);
    }

    .hg-bf:nth-of-type(even)::before {
        display: none;
    }

    .hg-bf + .hg-bf {
        border-top: 1px solid rgba(191, 153, 72, .2);
    }

    .hg-bf__split {
        display: none;
    }
}

/* --- scroll cue --- */

.hg-cue-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--book-overlap) + clamp(18px, 2.5vh, 32px));
    z-index: 5;
    pointer-events: none;
}

.hg-cue {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin: 0;
}

.hg-cue__line {
    position: relative;
    width: 46px;
    height: 1px;
    background: var(--line-light);
    overflow: hidden;
}

.hg-cue__line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold-lt);
    transform-origin: left center;
    animation: hgCue 2.4s var(--e-io) infinite;
}

@keyframes hgCue {
    0% {
        transform: translateX(-100%);
    }
    55%, 100% {
        transform: translateX(100%);
    }
}

/* --- hero responsive --- */

@media (max-width: 1180px) {
    .hg-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(28px, 4vh, 48px);
        align-content: center;
    }

    .hg-hero__copy {
        max-width: 100%;
    }

    .hg-stage {
        margin-right: 0;
        max-width: 720px;
    }

    .hg-stack {
        aspect-ratio: 16 / 11;
    }

    .hg-rail {
        padding-right: 0;
    }

    .hg-cue-wrap {
        display: none;
    }
}

@media (max-width: 760px) {
    .hg-hero {
        min-height: 0;
        padding-top: clamp(92px, 16vh, 120px);
    }

    .hg-hero__inner {
        padding-bottom: 40px;
    }

    .hg-hero__bg {
        inset: 0;
        height: 100%;
    }

    .hg-stage {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .hg-stack {
        aspect-ratio: 4 / 5;
    }

    /* flat crossfade on phones — the 3-D stack is not readable at this size */
    .hg-slide {
        transform: none !important;
        filter: none !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .hg-slide.is-active {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .hg-rail {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
    }

    .hg-rail__track {
        width: auto;
        flex: 1 1 auto;
        height: 1px;
    }

    .hg-rail__bar {
        inset: 0 auto 0 0;
        width: 100%;
        height: 100%;
        transform: scaleX(0);
        transform-origin: left center;
    }

    .hg-rail__btns {
        flex-direction: row;
    }

    .hg-arrow {
        width: 42px;
        height: 42px;
    }

    .hg-hero__cta .hg-btn {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   2 — ABOUT
   ========================================================================== */

.hg-about {
    position: relative;
    background: var(--paper);
    padding-block: var(--section-y);
    overflow: hidden;
}

.hg-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(32px, 6vw, 120px);
    align-items: start;
}

.hg-about__copy {
    padding-top: clamp(0px, 4vw, 60px);
}

.hg-about__head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: clamp(18px, 2.4vw, 32px);
}

.hg-about__title {
    margin-bottom: clamp(20px, 2.6vw, 34px);
}

.hg-about__body {
    font-family: var(--sans);
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.85;
    color: var(--body);
    max-width: 46ch;
}

.hg-about__body p {
    margin: 0 0 1.1em;
}

.hg-about__body p:last-child {
    margin-bottom: 0;
}

/* drop cap on the opening paragraph */
.hg-about__body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 3.6em;
    line-height: .82;
    padding: .06em .12em 0 0;
    color: var(--gold);
}

.hg-about__actions {
    margin-top: clamp(26px, 3vw, 44px);
}

/* image with an offset gold passe-partout */
.hg-about__figure {
    position: relative;
    margin-top: clamp(-40px, -4vw, 0px);
}

.hg-about__frame {
    position: absolute;
    inset: clamp(16px, 2.2vw, 34px) calc(clamp(16px, 2.2vw, 34px) * -1)
    calc(clamp(16px, 2.2vw, 34px) * -1) clamp(16px, 2.2vw, 34px);
    border: 1px solid var(--line-gold);
    pointer-events: none;
}

.hg-about__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--sand-2);
}

.hg-about__media img {
    width: 100%;
    height: 116%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

/* amenity chips built from real service data */
.hg-about__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(26px, 3vw, 40px);
    padding: 0;
    list-style: none;
}

.hg-about__chips li {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--line-gold);
    border-radius: 100px;
    padding: .78em 1.35em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hg-about__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(32px, 6vw, 56px);
    }

    .hg-about__figure {
        margin-top: 0;
        order: -1;
    }

    .hg-about__media {
        aspect-ratio: 3 / 2;
    }

    .hg-about__copy {
        padding-top: 0;
    }

    .hg-about__body {
        max-width: 100%;
    }
}

/* ==========================================================================
   3 — JOURNAL (news) — editorial index with a cursor-follow preview
   ========================================================================== */

.hg-journal {
    position: relative;
    background: var(--sand);
    padding-block: var(--section-y);
}

.hg-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    flex-wrap: wrap;
    margin-bottom: clamp(34px, 4.6vw, 70px);
}

.hg-sec-head__left {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.6vw, 22px);
    flex: 1 1 460px;
    min-width: 0;
    max-width: 900px;
}

.hg-sec-head__meta {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.hg-sec-head__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    flex: 0 0 auto;
    padding-bottom: 10px;
}

.hg-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 36px);
    align-items: start;
}

/* broken baseline — every second column drops, so the row never reads as a
   row of identical boxes */
.hg-post:nth-child(even) {
    margin-top: clamp(30px, 5.5vw, 96px);
}

.hg-post {
    position: relative;
}

.hg-post__btn {
    display: inline;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: color .4s var(--e-out);
}

/* stretches the hit area over the whole card */
.hg-post__btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hg-post__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand-2);
}

.hg-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.1s var(--e-out), filter 1.1s var(--e-out);
}

.hg-post:hover .hg-post__media img,
.hg-post:focus-within .hg-post__media img {
    transform: scale(1.08);
}

.hg-post__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 18, 14, 0) 55%, rgba(22, 18, 14, .5) 100%);
    opacity: 0;
    transition: opacity .6s var(--e-out);
}

.hg-post:hover .hg-post__media::after {
    opacity: 1;
}

/* play badge for posts that carry a video */
.hg-post__play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(10, 8, 6, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    color: #fff;
    transition: background-color .45s var(--e-out), color .45s var(--e-out),
    border-color .45s var(--e-out), transform .45s var(--e-out);
}

.hg-post__play svg {
    width: 10px;
    height: 12px;
    fill: currentColor;
    margin-left: 2px;
}

.hg-post:hover .hg-post__play {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    transform: scale(1.08);
}

.hg-post__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(14px, 1.5vw, 22px) 0 10px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    color: var(--body);
    font-variant-numeric: tabular-nums;
}

.hg-post__meta b {
    font-weight: 500;
    color: var(--gold);
}

.hg-post__meta span {
    flex: 1 1 auto;
    height: 1px;
    background: var(--line-gold);
    transform: scaleX(1);
    transform-origin: left center;
}

.hg-post__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(19px, 1.42vw, 26px);
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.005em;
    transition: color .4s var(--e-out);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-post:hover .hg-post__title,
.hg-post:focus-within .hg-post__title {
    color: var(--gold-dk);
}

/* the stretched overlay swallows the focus ring, so draw it on the card */
.hg-post:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 8px;
}

.hg-post__btn:focus-visible {
    outline: none;
}

@media (max-width: 1024px) {
    .hg-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(20px, 3vw, 34px) clamp(16px, 2.4vw, 28px);
    }

    .hg-post:nth-child(even) {
        margin-top: clamp(24px, 6vw, 60px);
    }

    .hg-post__title {
        font-size: clamp(18px, 2.4vw, 24px);
    }
}

@media (max-width: 560px) {
    .hg-posts {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .hg-post:nth-child(even) {
        margin-top: 0;
    }

    .hg-post__media {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   4 — OFFERS — alternating editorial spreads
   ========================================================================== */

.hg-offers {
    background: var(--paper);
    padding-block: var(--section-y);
    overflow: hidden;
}

.hg-offer {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    column-gap: clamp(28px, 5vw, 96px);
    margin-top: clamp(48px, 7vw, 120px);
}

.hg-offer:first-of-type {
    margin-top: 0;
}

.hg-offer:nth-of-type(even) .hg-offer__figure {
    order: 2;
}

.hg-offer__figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--sand-2);
}

.hg-offer__figure img {
    width: 100%;
    height: 118%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

.hg-offer__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(22, 18, 14, .34), rgba(22, 18, 14, 0) 58%);
    pointer-events: none;
}

/* rotated badge riding the image edge */
.hg-offer__badge {
    position: absolute;
    top: clamp(16px, 2vw, 30px);
    left: clamp(16px, 2vw, 30px);
    z-index: 2;
    display: inline-block;
    max-width: min(60%, 320px);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    padding: .9em 1.4em;
    overflow-wrap: anywhere;
}

.hg-offer__num {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(48px, 6vw, 104px);
    line-height: 1;
    color: var(--sand-2);
    display: block;
    margin-bottom: clamp(4px, .8vw, 12px);
    user-select: none;
}

.hg-offer__title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(26px, 3.1vw, 50px);
    line-height: 1.08;
    color: var(--ink);
    margin: 0 0 clamp(18px, 2.2vw, 30px);
    letter-spacing: -.01em;
}

.hg-offer__title p {
    margin: 0;
}

.hg-offer__rule {
    width: clamp(48px, 6vw, 92px);
    margin-bottom: clamp(18px, 2.2vw, 28px);
}

@media (max-width: 900px) {
    .hg-offer {
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(20px, 4vw, 32px);
    }

    .hg-offer:nth-of-type(even) .hg-offer__figure {
        order: 0;
    }

    .hg-offer__figure {
        aspect-ratio: 3 / 2;
    }

    .hg-offer__num {
        display: none;
    }
}

/* ==========================================================================
   5 — SERVICES — seamless drag marquee
   ========================================================================== */

.hg-services {
    background: var(--ink);
    color: #fff;
    padding-block: var(--section-y);
    overflow: hidden;
}

.hg-services .hg-h2,
.hg-services .hg-item__title {
    color: #fff;
}

.hg-services .hg-lede {
    color: rgba(255, 255, 255, .66);
}

.hg-services .hg-link {
    color: #fff;
}

.hg-services .hg-link::before {
    background: var(--line-light);
}

.hg-marquee {
    position: relative;
    margin-top: clamp(30px, 4vw, 58px);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.hg-marquee.is-dragging {
    cursor: grabbing;
}

.hg-marquee__track {
    display: flex;
    gap: clamp(18px, 2.2vw, 40px);
    width: max-content;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.hg-card {
    flex: 0 0 clamp(230px, 24vw, 360px);
    display: flex;
    flex-direction: column;
}

.hg-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #221D17;
}

.hg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.2s var(--e-out), filter 1.2s var(--e-out);
    filter: saturate(.86) brightness(.9);
    pointer-events: none;
}

.hg-card:hover .hg-card__media img {
    transform: scale(1.08);
    filter: saturate(1) brightness(1);
}

.hg-card__num {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--gold-lt);
    font-variant-numeric: tabular-nums;
    mix-blend-mode: normal;
}

.hg-card__body {
    padding-top: clamp(14px, 1.4vw, 22px);
}

.hg-card__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(19px, 1.5vw, 27px);
    line-height: 1.16;
    color: #fff;
    margin: 0 0 .5em;
}

.hg-card__text {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.72;
    color: rgba(255, 255, 255, .6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hg-card__text p {
    margin: 0 0 .5em;
}

.hg-marquee__hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(20px, 2.4vw, 34px);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}

.hg-marquee__hint svg {
    width: 30px;
    height: 8px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
}

/* ==========================================================================
   6 — FAQ
   ========================================================================== */

.hg-faq {
    background: var(--sand);
    padding-block: var(--section-y);
}

.hg-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(32px, 6vw, 120px);
    align-items: start;
}

.hg-faq__aside {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 26px);
}

.hg-faq__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line-gold);
    padding-bottom: 12px;
}

.hg-faq__search svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.6;
}

.hg-faq__search input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    border: 0;
    padding: 4px 0;
}

.hg-faq__search input:focus {
    outline: none;
}

.hg-faq__search input::placeholder {
    color: rgba(92, 86, 77, .6);
}

.hg-faq__tools {
    display: flex;
    gap: 22px;
}

.hg-faq__tool {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--body);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color .3s var(--e-out);
}

.hg-faq__tool:hover {
    color: var(--gold-dk);
}

.hg-faq__list {
    border-top: 1px solid var(--line-gold);
}

.hg-q {
    border-bottom: 1px solid var(--line-gold);
}

.hg-q > h3 {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
}

.hg-q__btn {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(14px, 2vw, 30px);
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: clamp(20px, 2.2vw, 32px) 0;
    cursor: pointer;
    color: inherit;
}

.hg-q__num {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    padding-top: .6em;
}

.hg-q__text {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(19px, 1.85vw, 30px);
    line-height: 1.22;
    color: var(--ink);
    transition: color .35s var(--e-out);
}

.hg-q__btn:hover .hg-q__text {
    color: var(--gold-dk);
}

/* plus / minus drawn from two hairlines */
.hg-q__sign {
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: .45em;
    flex: 0 0 auto;
}

.hg-q__sign::before,
.hg-q__sign::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-dk);
    transition: transform .5s var(--e-out);
}

.hg-q__sign::after {
    transform: rotate(90deg);
}

.hg-q.is-open .hg-q__sign::after {
    transform: rotate(0deg);
}

.hg-q__panel {
    height: 0;
    overflow: hidden;
}

.hg-q__inner {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.85;
    color: var(--body);
    padding: 0 0 clamp(22px, 2.4vw, 34px) 0;
    max-width: 62ch;
    margin-left: calc(11px + clamp(14px, 2vw, 30px));
}

.hg-q__inner p {
    margin: 0 0 .9em;
}

.hg-q__inner p:last-child {
    margin-bottom: 0;
}

.hg-q__inner ul,
.hg-q__inner ol {
    margin: .6em 0 .9em 1.2em;
}

.hg-q__inner a {
    color: var(--gold-dk);
    text-underline-offset: 3px;
}

.hg-q mark {
    background: rgba(191, 153, 72, .28);
    color: inherit;
    padding: 0 .15em;
    border-radius: 2px;
}

.hg-faq__empty {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--body);
    padding: clamp(26px, 3vw, 42px) 0;
}

.hg-faq__empty[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .hg-faq__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(26px, 5vw, 40px);
    }

    .hg-faq__aside {
        position: static;
    }

    .hg-q__inner {
        margin-left: 0;
    }
}

/* ==========================================================================
   Loader
   ========================================================================== */

/* Self-contained on purpose: the loader renders outside .hg (the header include
   sits before the page slot), so it cannot inherit that scope's tokens. Every
   value it needs is declared right here. */

#heaven-loader {
    --l-ink: #0C0A08;
    --l-gold: #BF9948;
    --l-gold-lt: #E1C285;
    --l-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --l-ease: cubic-bezier(.76, 0, .24, 1);

    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: all;
}

/* two ink bands that part to reveal the hero */
.hg-loader__panel {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.4%;
    background: var(--l-ink);
    will-change: transform;
    transition: transform 1.05s var(--l-ease);
}

.hg-loader__panel--t {
    top: 0;
    background: radial-gradient(120% 160% at 50% 100%, #17120C 0%, var(--l-ink) 70%);
}

.hg-loader__panel--b {
    bottom: 0;
    background: radial-gradient(120% 160% at 50% 0%, #17120C 0%, var(--l-ink) 70%);
}

#heaven-loader.is-done .hg-loader__panel--t {
    transform: translateY(-100%);
}

#heaven-loader.is-done .hg-loader__panel--b {
    transform: translateY(100%);
}

.hg-loader__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transition: opacity .5s ease, transform .7s var(--l-ease);
}

#heaven-loader.is-done .hg-loader__inner {
    opacity: 0;
    transform: translateY(-14px);
}

.hg-loader__logo {
    width: clamp(148px, 19vw, 216px);
    height: auto;
    opacity: 0;
    transform: translateY(16px);
    animation: hgLoaderIn 1.1s cubic-bezier(.16, 1, .3, 1) .1s forwards;
}

/* hairline meter, filled from real progress rather than a fixed keyframe */
.hg-loader__meter {
    position: relative;
    display: block;
    width: clamp(170px, 24vw, 260px);
    height: 1px;
    background: rgba(225, 194, 133, .22);
    overflow: hidden;
    opacity: 0;
    animation: hgLoaderIn 1s cubic-bezier(.16, 1, .3, 1) .3s forwards;
}

.hg-loader__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--l-gold), var(--l-gold-lt));
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.hg-loader__count {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .26em;
    color: rgba(225, 194, 133, .75);
    font-variant-numeric: tabular-nums;
    opacity: 0;
    animation: hgLoaderIn 1s cubic-bezier(.16, 1, .3, 1) .42s forwards;
}

.hg-loader__count b,
.hg-loader__count i {
    font-weight: 500;
    font-style: normal;
}

@keyframes hgLoaderIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* the node is removed after the exit; this is the belt-and-braces fallback */
#heaven-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hg-loader__logo,
    .hg-loader__meter,
    .hg-loader__count {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hg-loader__panel,
    .hg-loader__inner {
        transition-duration: .2s;
    }
}

/* Hero intro pre-state. Held in CSS so the timeline can be built late (after
   the display face loads) without a flash of un-animated content. */
html.hg-anim .hg-hero__eyebrow,
html.hg-anim .hg-hero__title,
html.hg-anim .hg-hero__desc,
html.hg-anim .hg-hero__cta > *,
html.hg-anim .hg-stage,
html.hg-anim .hg-booking,
html.hg-anim .hg-cue-wrap {
    opacity: 0;
}
