/*
--------------------------------------------------------|
 Open House landing page
--------------------------------------------------------|
*/
.oh {
    --oh-wrap: min(90%, 112rem);
    --oh-pri-soft: color-mix(in srgb, var(--c-pri) 16%, transparent);
    color: var(--c-fg);
    background: var(--c-bg);
    overflow: clip;
}

.oh a {
    color: inherit;
}

.oh-wrap {
    width: var(--oh-wrap);
    margin: 0 auto;
}

.oh-section {
    padding: 10rem 0;
    position: relative;
}

.oh-section__head {
    max-width: 64rem;
    margin-bottom: 5.6rem;
}

.oh-section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.oh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 2rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: var(--oh-pri-soft);
    color: var(--c-pri);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.oh-badge--light {
    background: rgba(0, 0, 0, 0.45);
    color: #F8EDED;
    backdrop-filter: blur(8px);
}

.oh-badge--on-dark {
    background: var(--c-10);
    color: var(--c-fg);
}

.oh-h2 {
    margin: 0 0 1.6rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: clamp(3.2rem, 4vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--c-fg);
}

.oh-lede,
.oh-p {
    margin: 0 0 1.6rem;
    font-size: 1.7rem;
    line-height: 1.55;
    color: var(--c-75);
    text-wrap: pretty;
}

.oh-lede {
    margin-bottom: 0;
    max-width: 56rem;
}

.oh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.8rem;
    padding: 0 2.4rem;
    border-radius: 0.6rem;
    border: 0.2rem solid transparent;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.oh-btn--pri,
.oh a.oh-btn--pri {
    background: var(--c-pri);
    color: #fff;
}

.oh-btn--pri:hover,
.oh a.oh-btn--pri:hover {
    background: #9c3535;
    color: #fff;
    transform: translateY(-1px);
}

.oh-btn--ghost {
    background: transparent;
    border-color: var(--c-25);
    color: var(--c-fg);
}

.oh-btn--ghost:hover {
    border-color: var(--c-50);
    background: var(--c-05);
}

.oh-hero .oh-btn--ghost {
    background: rgba(0, 0, 0, 0.35);
}

.oh-hero .oh-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.5);
}

/*
--------------------------------------------------------| Hero
*/
.oh-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    color-scheme: dark;
    color: var(--c-fg);
}

.oh-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.oh-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.oh-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(26, 26, 26, 0.95) 100%),
        radial-gradient(ellipse at 50% 20%, rgba(180, 63, 63, 0.18), transparent 55%);
}

.oh-hero__inner {
    position: relative;
    z-index: 1;
    width: var(--oh-wrap);
    margin: 0 auto;
    padding: 20rem 0;
    max-width: 90rem;
    text-align: center;
}

.oh-hero__title {
    margin: 0 0 2rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: clamp(4.2rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--c-fg);
}

.oh-hero__title-line {
    display: block;
}

.oh-hero__title-line--accent {
    color: #fff;
}

.oh-hero__lede {
    margin: 0 auto 3.2rem;
    max-width: 62rem;
    font-size: clamp(1.6rem, 2vw, 1.9rem);
    color: var(--c-75);
}

.oh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.oh-hero__meta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    border-top: 0.1rem solid rgba(248, 237, 237, 0.1);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.oh-hero__meta-inner {
    width: var(--oh-wrap);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    padding: 2.4rem 0;
}

.oh-meta {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
}

.oh-meta:not(:last-child) {
    border-right: 0.1rem solid var(--c-10);
    padding-right: 2.4rem;
}

.oh-meta__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    background: var(--c-pri);
    color: #fff;
}

.oh-meta__icon svg {
    width: 2rem;
    height: 2rem;
}

.oh-meta__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-50);
}

.oh-meta__value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-fg);
}

/*
--------------------------------------------------------| Subnav
*/
.oh-subnav {
    position: sticky;
    top: var(--oh-hdr-offset, 13.4rem);
    z-index: 80;
    background: color-mix(in srgb, var(--c-bg) 92%, transparent);
    border-bottom: 0.1rem solid var(--c-10);
    backdrop-filter: blur(12px);
}

.oh-subnav__inner {
    width: var(--oh-wrap);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.oh-subnav__inner::-webkit-scrollbar {
    display: none;
}

.oh-subnav__link {
    flex: 0 0 auto;
    padding: 1.6rem 1.4rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-50);
    border-bottom: 0.3rem solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.oh-subnav__link:hover,
.oh-subnav__link.is-active {
    color: var(--c-fg);
    border-bottom-color: var(--c-pri);
}

.oh-subnav__link--cta {
    margin-left: auto;
    color: var(--c-pri);
}

.oh-subnav__link--cta:hover,
.oh-subnav__link--cta.is-active {
    color: var(--c-fg);
}

/*
--------------------------------------------------------| About
*/
.oh-about {
    background: var(--c-05);
}

.oh-about__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6.4rem;
    align-items: center;
}

.oh-about__media {
    margin: 0;
    border-radius: 0.4rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--c-bg);
}

.oh-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
--------------------------------------------------------| Expect / Features
*/
.oh-expect {
    background: var(--c-bg);
}

.oh-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.2rem;
    margin-bottom: 6.4rem;
}

.oh-feature__icon {
    display: grid;
    place-items: center;
    width: 4.8rem;
    height: 4.8rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    background: var(--c-pri);
    color: #fff;
}

.oh-feature__icon svg {
    width: 2.4rem;
    height: 2.4rem;
}

.oh-feature__title {
    margin: 0 0 1rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--c-fg);
}

.oh-feature__text {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--c-75);
}

.oh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
    padding: 3.2rem 0 0;
    border-top: 0.1rem solid var(--c-10);
}

.oh-stat__num {
    display: block;
    margin-bottom: 0.6rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: clamp(3.2rem, 4vw, 4.8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--c-pri);
}

.oh-stat__label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-50);
}

/*
--------------------------------------------------------| Buck
*/
.oh-buck {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(180, 63, 63, 0.18), transparent 40%),
        var(--c-05);
}

.oh-buck__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.8rem;
    align-items: center;
}

.oh-buck__media {
    margin: 0;
    max-width: 42rem;
}

.oh-buck__media img {
    width: 100%;
    height: auto;
    display: block;
}

.oh-buck__name {
    margin: 2.4rem 0 0.4rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-fg);
}

.oh-buck__role {
    margin: 0;
    font-size: 1.4rem;
    color: var(--c-50);
}

/*
--------------------------------------------------------| Schedule
*/
.oh-schedule {
    background: var(--c-bg);
}

.oh-day {
    border: 0.1rem solid var(--c-10);
    border-radius: 1.2rem;
    background: var(--c-05);
    overflow: hidden;
}

.oh-day__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.4rem;
    padding: 3.2rem 3.2rem 2rem;
    background:
        linear-gradient(135deg, rgba(180, 63, 63, 0.22), transparent 55%),
        var(--c-05);
}

.oh-day__eyebrow {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-pri);
}

.oh-day__title {
    margin: 0;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--c-fg);
}

.oh-day__time {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-75);
    white-space: nowrap;
}

.oh-day__intro {
    margin: 0;
    padding: 2.4rem 3.2rem;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--c-75);
    border-bottom: 0.1rem solid var(--c-10);
}

.oh-agenda {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oh-agenda__item {
    display: grid;
    grid-template-columns: 22rem 1fr;
    gap: 2.4rem;
    padding: 2.8rem 3.2rem;
    border-bottom: 0.1rem solid var(--c-10);
}

.oh-agenda__item:last-child {
    border-bottom: 0;
}

.oh-agenda__time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-fg);
}

.oh-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--oh-pri-soft);
    color: var(--c-pri);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.oh-agenda__title {
    margin: 0 0 0.8rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--c-fg);
}

.oh-agenda__text,
.oh-agenda__speaker {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--c-75);
}

.oh-agenda__speaker {
    margin-top: 1.2rem;
}

.oh-agenda__speaker strong {
    color: var(--c-fg);
}

/*
--------------------------------------------------------| Gallery
*/
.oh-gallery {
    padding: 0;
    background: var(--c-bg);
}

.oh-gallery .gal-grid {
    width: 100%;
    margin: 0;
    gap: 0.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    --ar: 4 / 3;
}

.oh-gallery .gal-grid img {
    border-radius: 0;
    transition: transform 0.6s ease;
}

.oh-gallery .gal-grid a {
    display: block;
    overflow: hidden;
}

.oh-gallery .gal-grid a:hover img {
    transform: scale(1.04);
}

@media only screen and (max-width: 1024px) {
    .oh-gallery .gal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 512px) {
    .oh-gallery .gal-grid {
        grid-template-columns: 1fr;
    }
}

/*
--------------------------------------------------------| Visit
*/
.oh-visit {
    background: var(--c-bg);
}

.oh-visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.8rem;
    align-items: stretch;
}

.oh-visit__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.oh-visit__map {
    position: relative;
    min-height: 36rem;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 0.1rem solid var(--c-10);
    background: var(--c-05);
}

.oh-map {
    width: 100%;
    height: 100%;
    min-height: 36rem;
}

.oh-map .mapboxgl-ctrl-group {
    background: color-mix(in srgb, var(--c-bg) 92%, transparent);
    border: 0.1rem solid var(--c-10);
    box-shadow: none;
}

.oh-map .mapboxgl-ctrl-group button {
    background: transparent;
    border-color: var(--c-10);
}

.oh-map .mapboxgl-ctrl-group button + button {
    border-top-color: var(--c-10);
}

[data-theme="dark"] .oh-map .mapboxgl-ctrl-icon {
    filter: invert(1) brightness(1.2);
}

.oh-map .mapboxgl-ctrl-attrib {
    background: color-mix(in srgb, var(--c-bg) 88%, transparent);
    color: var(--c-50);
}

.oh-map .mapboxgl-ctrl-attrib a {
    color: var(--c-75);
}

.oh-map .mapboxgl-popup-content {
    background: var(--c-bg);
    color: var(--c-fg);
    border: 0.1rem solid var(--c-10);
    border-radius: 0.8rem;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.22);
}

.oh-map .mapboxgl-popup-tip {
    border-top-color: var(--c-bg);
}

.oh-map__popup-name {
    display: block;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--c-fg);
}

.oh-map__popup-address {
    display: block;
    font-size: 1.3rem;
    color: var(--c-75);
    line-height: 1.4;
}

/*
--------------------------------------------------------| FAQ
*/
.oh-faq {
    background: var(--c-05);
}

.oh-faq__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4.8rem;
    align-items: start;
}

.oh-faq__list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.oh-faq__item {
    border: 0.1rem solid var(--c-10);
    border-radius: 1rem;
    background: var(--c-bg);
    overflow: hidden;
}

.oh-faq__q {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 2rem 2.4rem;
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-fg);
}

.oh-faq__q::-webkit-details-marker {
    display: none;
}

.oh-faq__q::after {
    content: "+";
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    color: var(--c-pri);
    font-size: 2.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.oh-faq__item[open] .oh-faq__q::after {
    content: "–";
}

.oh-faq__a {
    padding: 0 2.4rem 2.4rem;
}

.oh-faq__a p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.55;
    color: var(--c-75);
}

/*
--------------------------------------------------------| RSVP
*/
.oh-rsvp {
    background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c-pri) 28%, transparent), transparent 45%),
        var(--c-bg);
    padding-bottom: 12rem;
}

.oh-rsvp__inner {
    max-width: 76.8rem;
}

.oh-rsvp__form {
    margin-top: 4rem;
    padding: 3.2rem;
    border-radius: 1.2rem;
    border: 0.1rem solid var(--c-10);
    background: var(--c-05);
}

.oh-rsvp .gform_wrapper.gravity-theme .gform_footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/*
--------------------------------------------------------| Motion
*/
.oh-reveal {
    opacity: 0;
    transform: translateY(1.6rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.oh-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .oh-reveal,
    .oh-btn,
    .oh-gallery__item img {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/*
--------------------------------------------------------| Responsive
*/
@media only screen and (max-width: 1024px) {
    .oh-about__grid,
    .oh-buck__grid,
    .oh-visit__grid,
    .oh-faq__grid {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .oh-features,
    .oh-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .oh-about__media {
        aspect-ratio: 16 / 10;
        max-width: 64rem;
    }

    .oh-buck__media {
        max-width: 32rem;
        margin: 0 auto;
    }

    .oh-agenda__item {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

}

@media only screen and (max-width: 768px) {
    .oh-section {
        padding: 7.2rem 0;
    }

    .oh-hero__inner {
        padding: 12rem 0;
        text-align: left;
    }

    .oh-hero__lede {
        margin-left: 0;
    }

    .oh-hero__actions {
        justify-content: flex-start;
    }

    .oh-hero__meta-inner {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding: 2rem 0;
    }

    .oh-meta:not(:last-child) {
        border-right: 0;
        border-bottom: 0.1rem solid var(--c-10);
        padding: 0 0 1.6rem;
    }

    .oh-day__head {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.4rem;
    }

    .oh-day__intro,
    .oh-agenda__item {
        padding-left: 2.4rem;
        padding-right: 2.4rem;
    }

    .oh-rsvp__form {
        padding: 2.4rem;
    }
}

@media only screen and (max-width: 512px) {
    .oh-features,
    .oh-stats {
        grid-template-columns: 1fr;
    }

    .oh-btn {
        width: 100%;
    }

    .oh-hero__actions {
        width: 100%;
    }
}

/* Keep page content dark even if user toggles site theme */
body.page-template-open-house .main {
    background: var(--c-bg);
}

body.page-template-open-house .oh-subnav {
    top: var(--oh-hdr-offset, 13.4rem);
}

@media only screen and (max-width: 768px) {
    .oh-buck__media {
        max-width: none;
        order: -1;
    }

    .oh-day__intro {
        padding: 2.4rem;
    }

    .oh-subnav {
        top: var(--oh-hdr-offset, 8rem);
    }
}
