/* Version 15 — header, mobile menu and hero taken from version 13 ("Fireside"),
   placed on top of the version 8 site. Loaded after the main stylesheet; every
   rule is scoped to the header, the menu or the hero so the rest of the site
   keeps its own look. */

:root {
    --header: 68px;
}

html {
    background: #0f0b09;
    scroll-padding-top: calc(var(--header) + 16px);
}

.site-header,
.mobile-nav,
.hero,
.skip-link {
    --bg: #17110e;
    --bg-deep: #0f0b09;
    --amber: #d9a856;
    --amber-bright: #eccb86;
    --cream: #f1e6d3;
    --cream-soft: rgba(241, 230, 211, .82);
    --taupe: #b6a694;
    --line: rgba(241, 230, 211, .11);
    --line-amber: rgba(217, 168, 86, .3);
    --content: 1240px;
    --gutter: clamp(20px, 4.5vw, 56px);
    --display: "Tenor Sans", "Avenir Next", "Mulish", "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    text-align: left;
}

.site-header :focus-visible,
.mobile-nav :focus-visible,
.hero :focus-visible {
    outline: 1px solid var(--amber);
    outline-offset: 4px;
    border-radius: 3px;
}

.site-header .wrap,
.hero .wrap {
    width: 100%;
    max-width: calc(var(--content) + (var(--gutter) * 2));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--amber);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* ---------- Buttons and kicker ---------- */

.site-header .btn,
.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .45s ease;
}

.hero .btn-gold {
    background: var(--amber);
    color: var(--bg);
    box-shadow: 0 0 0 0 rgba(217, 150, 70, 0);
}

.hero .btn-gold:hover {
    background: var(--amber-bright);
    box-shadow: 0 0 44px -6px rgba(217, 150, 70, .55);
}

.hero .btn-ghost,
.site-header .btn-navy {
    border-color: var(--line-amber);
    background: rgba(23, 17, 14, .35);
    color: var(--cream);
}

.hero .btn-ghost:hover,
.site-header .btn-navy:hover {
    border-color: var(--amber);
    background: rgba(217, 168, 86, .1);
    color: var(--amber-bright);
}

.hero .kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--amber);
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero .kicker::before,
.hero .kicker::after {
    flex: none;
    width: 22px;
    height: 1px;
    content: "";
    background: currentColor;
    opacity: .7;
}

/* ---------- Header ---------- */

#siteHeader.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    height: var(--header);
    background: linear-gradient(to bottom, rgba(15, 11, 9, .86), rgba(15, 11, 9, 0));
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background-color .4s ease, border-color .4s ease;
}

#siteHeader.site-header.is-scrolled,
.legalPage #siteHeader.site-header {
    background: rgba(20, 15, 12, .9);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.menu-open #siteHeader.site-header {
    background: var(--bg-deep);
    border-bottom-color: var(--line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    transform: none;
    transition: none;
}

.site-header .logo-mark {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-header .logo-text {
    display: grid;
    gap: 5px;
    line-height: 1;
    text-transform: uppercase;
}

.site-header .logo-text strong {
    color: var(--cream);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .22em;
    transition: none;
}

.site-header .logo-text span {
    color: var(--amber);
    font-family: var(--sans);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .44em;
    transition: none;
}

.primary-nav {
    display: none;
    align-items: center;
    gap: clamp(22px, 2.8vw, 44px);
    margin-left: auto;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.primary-nav a {
    position: relative;
    padding-block: 12px;
    color: rgba(241, 230, 211, .72);
    transition: color .3s ease;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--amber-bright);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header .header-cta {
    display: none;
    min-height: 42px;
    padding: 0 22px;
    font-size: 11px;
}

html:not(.js) .site-header .header-cta {
    display: inline-flex;
}

.nav-toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--cream);
    cursor: pointer;
}

html:not(.js) .nav-toggle {
    display: none;
}

.nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform .4s var(--ease), top .4s var(--ease);
}

.nav-toggle span:nth-child(1) {
    top: 18px;
}

.nav-toggle span:nth-child(2) {
    top: 26px;
}

.menu-open .nav-toggle span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.menu-open .nav-toggle span:nth-child(2) {
    top: 22px;
    transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.mobile-nav {
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 29;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 22px var(--gutter) 38px;
    overflow-y: auto;
    background:
        radial-gradient(90% 55% at 80% 100%, rgba(217, 150, 70, .16), rgba(217, 150, 70, 0) 70%),
        var(--bg-deep);
    color: var(--cream);
    font-family: var(--display);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s .35s;
}

.menu-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
}

.menu-open body {
    overflow: hidden;
}

.mobile-nav nav a {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
    font-size: 25px;
    letter-spacing: .12em;
    line-height: 1.1;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s ease;
}

.menu-open .mobile-nav nav a {
    opacity: 1;
    transform: none;
}

.menu-open .mobile-nav nav a:nth-child(2) {
    transition-delay: .05s;
}

.menu-open .mobile-nav nav a:nth-child(3) {
    transition-delay: .1s;
}

.menu-open .mobile-nav nav a:nth-child(4) {
    transition-delay: .15s;
}

.menu-open .mobile-nav nav a:nth-child(5) {
    transition-delay: .2s;
}

.mobile-nav nav span {
    color: var(--amber);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
}

.mobile-nav-foot {
    color: var(--taupe);
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: .04em;
    line-height: 1.65;
}

.mobile-nav-foot a {
    color: var(--amber);
    font-weight: 600;
}

.mobile-nav-foot p {
    margin: 6px 0 0;
}

/* Legal pages: the main content starts below the fixed header. */
.legalPage .wrapper {
    padding-top: var(--header);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--header);
    overflow: hidden;
    isolation: isolate;
    background: var(--bg);
    color: var(--cream);
    font-family: var(--display);
}

/* Firelight: one warm pool of light behind the emblem. The last stop fades to
   pure black so the hero joins the black section below without a seam. */
.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(70% 46% at 50% 26%, rgba(214, 138, 58, .2), rgba(214, 138, 58, 0) 72%),
        linear-gradient(to bottom, var(--bg-deep), var(--bg) 55%, var(--bg) 78%, #000 100%);
}

.hero-ornament {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Vector scrollwork: stays sharp at any size and on any screen density. */
    background: url("../images/fireside/scrollwork.svg?v=20261117") 50% 12% / 230% auto no-repeat;
    opacity: .26;
    -webkit-mask-image: radial-gradient(90% 46% at 50% 24%, #000 10%, transparent 100%);
    mask-image: radial-gradient(90% 46% at 50% 24%, #000 10%, transparent 100%);
}

.hero-inner {
    display: grid;
    flex: 1;
    gap: clamp(26px, 5vw, 44px);
    align-content: center;
    justify-items: center;
    padding-block: clamp(26px, 5vw, 56px);
    text-align: center;
}

.hero-copy {
    display: grid;
    justify-items: center;
}

.hero-title {
    margin: clamp(20px, 2.4vw, 30px) 0 0;
    font-family: var(--display);
    font-size: clamp(36px, 11vw, 84px);
    font-weight: 400;
    letter-spacing: .06em;
    line-height: 1.06;
    text-transform: uppercase;
}

.hero-line {
    display: block;
    padding-bottom: .05em;
    overflow: hidden;
}

.hero-line-in {
    display: block;
}

.hero-title em,
.hero-title i {
    color: var(--amber);
    font-style: normal;
}

.hero-lead {
    max-width: 31em;
    margin: clamp(20px, 2.2vw, 30px) 0 0;
    color: var(--cream-soft);
    font-size: clamp(16px, 1.35vw, 19px);
    letter-spacing: .01em;
    line-height: 1.7;
}

.hero-actions {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin-top: clamp(26px, 3vw, 40px);
}

/* The emblem, lit like a brass medallion above a fireplace. */
.medallion {
    position: relative;
    order: -1;
    width: clamp(186px, 52vw, 250px);
    aspect-ratio: 1;
}

.medallion::after {
    position: absolute;
    inset: -14px;
    box-sizing: border-box;
    content: "";
    border: 1px solid rgba(217, 168, 86, .2);
    border-radius: 50%;
}

.medallion-glow {
    position: absolute;
    inset: -42%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(226, 150, 70, .3), rgba(226, 150, 70, .09) 56%, rgba(226, 150, 70, 0) 74%);
    animation: ember 7s ease-in-out infinite;
}

.medallion-disc {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #523726 0, #2f2016 46%, #19120e 84%);
    box-shadow:
        0 0 0 1px rgba(217, 168, 86, .5),
        0 34px 80px -24px rgba(0, 0, 0, .9),
        0 0 70px -10px rgba(217, 150, 70, .3);
}

/* Scrollwork around the emblem (the artwork leaves the centre empty). */
.medallion-disc::before {
    position: absolute;
    inset: 0;
    content: "";
    background: url("../images/fireside/scrollwork.svg?v=20261117") 50% 50% / auto 100% no-repeat;
    opacity: .62;
}

.medallion-disc::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 11, 9, 0) 52%, rgba(15, 11, 9, .78) 100%);
    pointer-events: none;
}

/* The emblem itself: the original artwork on a transparent background, shown
   no larger than its real size on high-density screens. */
.medallion-disc img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 60%;
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5));
}

.hero-foot {
    display: none;
}

/* Hero entrance — only when scripting is available; loader-boot.js guarantees .is-ready. */

.js .hero .in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .hero-line-in {
    transform: translateY(110%);
    transition: transform 1.15s var(--ease);
}

.js .medallion {
    opacity: 0;
    transform: scale(.92);
    transition: opacity 1.6s ease, transform 2.2s var(--ease);
}

.js .hero-ornament {
    opacity: 0;
    transition: opacity 2.4s ease .6s;
}

.js.is-ready .hero .in,
.js.is-ready .hero-line-in,
.js.is-ready .medallion {
    opacity: 1;
    transform: none;
}

.js.is-ready .hero-ornament {
    opacity: .26;
}

.js .medallion {
    transition-delay: .35s;
}

.js .hero .in-1 {
    transition-delay: .55s;
}

.js .hero .in-2 {
    transition-delay: .6s;
}

.js .hero .in-3 {
    transition-delay: .7s;
}

.js .hero .in-4 {
    transition-delay: .8s;
}

.js .hero .in-5 {
    transition-delay: .9s;
}

.js .hero .in-6 {
    transition-delay: 1.1s;
}

.js .hero .in-7 {
    transition-delay: 1.2s;
}

.js .hero .in-8 {
    transition-delay: 1.4s;
}

.js.intro-seen .hero .in,
.js.intro-seen .hero-line-in,
.js.intro-seen .medallion,
.js.intro-seen .hero-ornament {
    transition-delay: 0s;
    transition-duration: .7s;
}

@keyframes ember {
    0%,
    100% {
        opacity: .82;
        transform: scale(1);
    }

    38% {
        opacity: 1;
        transform: scale(1.04);
    }

    62% {
        opacity: .9;
        transform: scale(.99);
    }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 480px) {
    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        max-width: none;
    }
}

@media (min-width: 640px) {
    .medallion {
        width: clamp(250px, 36vw, 320px);
    }
}

@media (min-width: 800px) {
    :root {
        --header: 76px;
    }
}

@media (min-width: 1024px) {
    :root {
        --header: 88px;
    }

    .site-header .logo-mark {
        width: 46px;
        height: 46px;
    }

    .site-header .logo-text strong {
        font-size: 19px;
    }

    .site-header .logo-text span {
        font-size: 9.5px;
    }

    .primary-nav,
    .site-header .header-cta {
        display: inline-flex;
    }

    .nav-toggle,
    .mobile-nav {
        display: none;
    }

    /* Cinematic hero: headline on the left, the lit medallion on the right. */
    .hero::before {
        background:
            radial-gradient(46% 62% at 76% 48%, rgba(214, 138, 58, .22), rgba(214, 138, 58, 0) 72%),
            linear-gradient(to bottom, var(--bg-deep), var(--bg) 60%, var(--bg) 80%, #000 100%);
    }

    .hero-ornament {
        background: url("../images/fireside/scrollwork.svg?v=20261117") 50% 50% / cover no-repeat;
        -webkit-mask-image: radial-gradient(52% 74% at 76% 48%, #000 8%, transparent 100%);
        mask-image: radial-gradient(52% 74% at 76% 48%, #000 8%, transparent 100%);
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
        gap: clamp(32px, 5vw, 80px);
        align-items: center;
        justify-items: start;
        padding-block: clamp(28px, 4vh, 56px);
        text-align: left;
    }

    .hero-copy {
        justify-items: start;
    }

    .hero .kicker {
        gap: 16px;
        letter-spacing: .24em;
    }

    .hero .kicker::before {
        width: 38px;
    }

    .hero .kicker::after {
        content: none;
    }

    .hero-title {
        font-size: clamp(48px, min(6.3vw, 10.4vh), 94px);
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .medallion {
        order: 0;
        justify-self: center;
        width: clamp(300px, 31vw, 450px);
    }

    .medallion::after {
        inset: -22px;
    }

    .hero-foot {
        display: flex;
        align-items: center;
        gap: 22px;
        padding-block: 0 26px;
        color: var(--taupe);
        font-family: var(--sans);
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: .26em;
        text-transform: uppercase;
    }

    .hero-foot-line {
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, var(--line-amber), var(--line) 40%, var(--line));
    }
}

@media (prefers-reduced-motion: reduce) {
    .medallion-glow {
        animation: none;
    }

    .js .hero .in,
    .js .hero-line-in,
    .js .medallion {
        transform: none;
        transition: opacity .8s ease .15s;
    }

    .js .hero-line-in {
        opacity: 0;
    }

    .js.is-ready .hero-line-in {
        opacity: 1;
    }

    .mobile-nav nav a {
        transition-duration: .01s !important;
        transition-delay: 0s !important;
    }
}
