/* Homepage opening: architecture, restrained typography and a full viewport. */
.gc-home {
    --gc-opening-header-height: var(--gc-header-height);
    --gc-opening-navy: #111e2c;
    --gc-opening-accent: #d8c29c;
    --gc-opening-gutter: clamp(24px, 10.8vw, 276px);
}

.gc-home .gc-header,
.gc-home .gc-header.is-scrolled {
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    box-shadow: none;
}
.gc-home .gc-header.is-content-nav,
.gc-home .gc-header.menu-open,
.gc-home .gc-header.search-open {
    background: var(--gc-opening-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
}

.gc-home .gc-header-inner {
    height: calc(var(--gc-opening-header-height) - 1px);
    padding-inline: clamp(22px, 4.8vw, 120px);
    gap: 24px;
}

.gc-home .gc-brand img { height: 32px; }
.gc-home .gc-header .gc-brand {
    transition: opacity 240ms ease, visibility 240ms;
}
.gc-home .gc-header:not(.is-content-nav) .gc-brand {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.gc-home .gc-header:not(.is-content-nav):not(.menu-open):not(.search-open) {
    pointer-events: none;
}
.gc-home .gc-nav-wrap,
.gc-home .gc-mobile-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
}
.gc-home .gc-header.is-content-nav .gc-nav-wrap,
.gc-home .gc-header.is-content-nav .gc-mobile-right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.gc-home .gc-nav-wrap { flex: 0 1 auto; gap: clamp(24px, 3.3vw, 72px); }
.gc-home .gc-nav-wrap > nav { flex: initial; }
.gc-home .gc-nav { gap: clamp(24px, 3.2vw, 72px); }
.gc-home .gc-nav-link {
    height: calc(var(--gc-opening-header-height) - 1px);
    font-size: clamp(16px, 1vw, 18px);
    font-weight: 500;
}
.gc-home .gc-sub { top: 100%; }
.gc-home .gc-header-actions { gap: clamp(12px, 1.5vw, 28px); }
.gc-home .gc-header-search-btn {
    width: 44px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    font-size: 18px;
}
.gc-home .gc-nav-wrap .gc-header-search-btn { width: auto; padding-inline: 8px; gap: 8px; }
.gc-home .gc-header-search-btn span { display: inline; font-size: 15px; font-weight: 500; }
.gc-home .gc-header-cta {
    font-size: 15px;
    font-weight: 500;
    color: var(--gc-opening-accent) !important;
    padding-inline: clamp(16px, 1.5vw, 28px);
}
.gc-home .gc-mobile-drawer,
.gc-home .gc-search-modal { max-height: calc(100dvh - var(--gc-opening-header-height)); }

.gc-opening {
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 360px;
    height: 100vh;
    height: 100dvh;
    padding-top: var(--gc-opening-header-height);
    overflow: visible;
    background: #172b44;
    color: #fff;
}

.gc-opening-brand {
    position: absolute;
    z-index: 3;
    top: clamp(30px, 5vh, 64px);
    left: var(--gc-opening-gutter);
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - var(--gc-opening-gutter) * 2);
    text-decoration: none !important;
    transition: opacity 180ms ease;
}
.gc-opening-brand img {
    display: block;
    width: auto;
    height: clamp(38px, 3.2vw, 52px);
    max-width: 100%;
    filter: brightness(0) invert(1);
}
.gc-opening-brand:hover { opacity: 0.82; }

.gc-opening-images,
.gc-opening-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gc-opening-images { z-index: -2; overflow: hidden; }
.gc-opening-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translate3d(-0.45%, 0.2%, 0) scale(1.025);
    transform-origin: 62% 50%;
    opacity: 0;
    transition: opacity 1600ms ease-in-out;
}
.gc-opening-image.is-active { opacity: 1; will-change: transform, opacity; }
.gc-opening-images::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 17, 31, 0.78), rgba(7, 17, 31, 0.58) 34%, rgba(7, 17, 31, 0.14) 64%, transparent 82%);
}
.gc-opening-lines {
    z-index: -1;
    display: flex;
    justify-content: space-between;
    margin-inline: 4.8%;
}
.gc-opening-lines span { width: 1px; background: rgba(236, 240, 245, 0.12); }

.gc-opening-inner {
    width: 100%;
    padding: 28px var(--gc-opening-gutter) clamp(112px, 16vh, 200px);
}
@media (min-width: 768px) {
    .gc-opening-inner {
        display: grid;
        grid-template-columns: clamp(280px, 27vw, 410px) max-content minmax(0, 1fr);
        align-items: end;
        column-gap: 10px;
        padding: clamp(32px, 4vh, 56px) var(--gc-opening-gutter) clamp(72px, 8.5vh, 108px);
    }
    .gc-opening-copy-deck {
        grid-column: 1 / -1;
    }
}
.gc-opening-copy-deck { display: grid; }
.gc-opening-copy {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 550ms ease, transform 800ms ease, visibility 550ms;
}
.gc-opening-copy.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.gc-opening .gc-opening-title {
    margin: 0;
    color: #fff;
    font-family: var(--gc-serif);
    font-size: clamp(40px, 4.65vw, 104px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.05em;
    word-break: keep-all;
    text-shadow: 0 2px 22px rgba(8, 20, 34, 0.16);
}
.gc-opening-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: clamp(56px, 4.1vw, 64px);
    min-height: 48px;
    margin-top: 0;
    padding: 0 24px;
    border: 1px solid rgba(228, 211, 182, 0.76);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(216, 194, 156, 0.18) 0%, rgba(216, 194, 156, 0.09) 100%), rgba(9, 22, 39, 0.56);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f6ede0 !important;
    font-family: var(--gc-sans);
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 500;
    letter-spacing: -0.015em;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
.gc-opening-link span {
    position: relative;
    padding-bottom: 0;
}
.gc-opening-link svg {
    width: 15px;
    height: 15px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    stroke: var(--gc-opening-accent);
    stroke-width: 1.75;
    flex-shrink: 0;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), stroke 220ms ease;
}
.gc-opening-link:hover,
.gc-opening-link:focus-visible {
    border-color: #e8d5b5;
    background: linear-gradient(180deg, rgba(216, 194, 156, 0.30) 0%, rgba(216, 194, 156, 0.18) 100%), rgba(9, 22, 39, 0.76);
    color: #fff !important;
}
.gc-opening-link:hover svg,
.gc-opening-link:focus-visible svg {
    stroke: #fff;
    transform: translate(2px, -2px);
}
.gc-opening-controls {
    position: absolute;
    inset: auto var(--gc-opening-gutter) clamp(24px, 4.5vh, 56px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.gc-opening-controls[hidden] { display: none; }
.gc-opening-progress-info { display: flex; align-items: center; gap: 22px; }
.gc-opening-count {
    display: inline-flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--gc-sans);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
#gc-opening-current { color: #fff; }
.gc-opening-count-divider { color: rgba(255, 255, 255, 0.35); }
.gc-opening-progress { width: clamp(100px, 14vw, 230px); height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.24); }
#gc-opening-progress-fill { display: block; width: 100%; height: 100%; background: #e4d3b6; transform: scaleX(0); transform-origin: left; }
.gc-opening-buttons { display: inline-flex; gap: 4px; }
.gc-opening-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}
.gc-opening-control svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.gc-opening-control:hover,
.gc-opening-control:active { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.95); }
.gc-opening-control .gc-opening-play-icon { display: none; }
.gc-opening-toggle[aria-pressed="true"] .gc-opening-play-icon { display: block; }
.gc-opening-toggle[aria-pressed="true"] .gc-opening-pause-icon { display: none; }
.gc-opening-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: clamp(28px, 4.5vh, 56px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
}
.gc-opening-scroll svg { width: 28px; height: 42px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.gc-opening-scroll span { font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0.02em; white-space: nowrap; }
.gc-opening-scroll-wheel { animation: gc-scroll-wheel 1.8s ease-in-out infinite; animation-play-state: paused; }
.gc-opening.is-playing .gc-opening-scroll-wheel { animation-play-state: running; }
.gc-opening-scroll:hover { color: #fff !important; }
@keyframes gc-scroll-wheel {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    55% { transform: translateY(3px); opacity: 0.4; }
}
.gc-opening a:focus-visible,
.gc-opening button:focus-visible,
.gc-home .gc-header a:focus-visible,
.gc-home .gc-header button:focus-visible { outline: 2px solid #e6d4b6; outline-offset: 5px; }

/* The original live search is available immediately inside the opening. */
.gc-home .gc-opening .gc-hero-search-hub {
    width: 100%;
    max-width: 100%;
    margin: clamp(38px, 4.6vh, 56px) 0 0;
}
@media (min-width: 768px) {
    .gc-home .gc-opening .gc-hero-search-hub {
        grid-column: 1;
    }
    .gc-opening-link {
        grid-column: 2;
        justify-self: start;
    }
}
.gc-home .gc-opening .gc-hero-search-box {
    height: clamp(56px, 4.1vw, 64px);
    padding: 0 10px 0 22px;
    border: 1px solid rgba(224, 209, 181, 0.68);
    border-radius: 2px;
    background: rgba(9, 22, 39, 0.44);
    box-shadow: none;
    backdrop-filter: blur(12px);
}
.gc-home .gc-opening .gc-hero-search-box:focus-within {
    border-color: #e4d3b6;
    background: rgba(9, 22, 39, 0.84);
}
.gc-home .gc-opening .gc-hero-search-input { color: #fff; width: 100%; }
.gc-home .gc-opening .gc-hero-search-input,
.gc-home .gc-opening .gc-hero-search-input::placeholder { font-size: clamp(15px, 1.15vw, 18px); }
.gc-home .gc-opening .gc-hero-search-input::placeholder { color: rgba(255, 255, 255, 0.88); }
.gc-home .gc-opening .gc-hero-search-clear { color: rgba(255, 255, 255, 0.82); min-width: 44px; min-height: 44px; }
.gc-home .gc-opening .gc-hero-search-submit { color: #fff; }
.gc-home .gc-opening .gc-live-dropdown { top: calc(100% + 10px); max-height: min(440px, 52dvh); overscroll-behavior: contain; }

@media (max-width: 1023px) {
    .gc-home { --gc-opening-gutter: 8vw; }
    .gc-home .gc-brand img { height: 32px; }
    .gc-home .gc-opening-title { font-size: clamp(36px, 5.2vw, 52px); }
    .gc-opening-image { object-position: 58% center; }
}

@media (max-width: 767px) {
    .gc-home { --gc-opening-gutter: 7vw; }
    .gc-opening { height: 100svh; height: 100dvh; }
    .gc-opening-brand img { height: clamp(34px, 9vw, 38px); }
    .gc-opening-inner { padding: 24px var(--gc-opening-gutter) 112px; }
    .gc-home .gc-opening-title { font-size: clamp(28px, 7.6vw, 48px); line-height: 1.5; letter-spacing: -0.055em; }
    .gc-opening-image { object-position: 53% center; }
    .gc-opening-images::after { background: linear-gradient(90deg, rgba(7, 17, 31, 0.82), rgba(7, 17, 31, 0.52) 60%, rgba(7, 17, 31, 0.22)); }
    .gc-opening-lines span:nth-child(3) { display: none; }
    .gc-opening-actions { margin-top: 18px; gap: 12px 20px; }
    .gc-opening-ai-cta { min-height: 46px; padding: 8px 14px 8px 12px; font-size: 14.5px; gap: 10px; }
    .gc-opening-ai-badge { font-size: 11.5px; padding: 2px 7px; }
    .gc-opening-link { display: flex; width: 100%; height: 50px; min-height: 48px; margin-top: 10px; padding: 0 20px 0 16px; font-size: 15.5px; gap: 12px; }
    .gc-opening-actions .gc-opening-link { margin-top: 0; }
    .gc-home .gc-opening .gc-hero-search-hub { width: 100%; margin-top: 26px; }
    .gc-home .gc-opening .gc-hero-search-box { height: 56px; padding-inline: 16px 4px; }
    .gc-opening-controls {
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        gap: 0;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .gc-opening-progress-info { flex: 0 1 auto; min-width: 0; gap: 8px; }
    .gc-opening-count { gap: 6px; font-size: 12px; }
    .gc-opening-progress { width: 32px; flex: 0 0 32px; max-width: 32px; }
    .gc-opening-buttons { gap: 0; }
    .gc-opening-control svg { width: 15px; height: 15px; }
    .gc-opening-scroll {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        height: 44px;
        justify-content: center;
        gap: 2px;
    }
    .gc-opening-scroll svg { width: 20px; height: 26px; }
    .gc-opening-scroll span { font-size: 11px; line-height: 1.4; }
}

@media (min-width: 1024px) and (max-height: 720px) {
    .gc-home .gc-opening-title { font-size: clamp(38px, 7vh, 54px); }
}

@media (max-height: 540px) and (orientation: landscape) {
    .gc-opening-brand { top: 20px; }
    .gc-opening-brand img { height: 32px; }
    .gc-opening-inner { padding: 8px var(--gc-opening-gutter) 72px; }
    .gc-home .gc-opening-title { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.4; }
    .gc-home .gc-opening .gc-hero-search-hub { width: 100%; margin-top: 18px; }
    .gc-home .gc-opening .gc-hero-search-box { height: 52px; }
    .gc-opening-link { height: 52px; margin: 0; padding: 0 18px; font-size: 15px; }
    .gc-opening-controls { bottom: 16px; }
    .gc-opening-scroll { bottom: 18px; }
}

/* Reserve room for one bottom toolbar on short mobile screens. */
@media (max-width: 1023px) and (max-height: 540px) and (orientation: landscape) {
    .gc-opening-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 8px clamp(24px, 4vw, 40px);
        padding: 8px var(--gc-opening-gutter) calc(112px + env(safe-area-inset-bottom, 0px));
    }
    .gc-opening-copy-deck { grid-column: 1; grid-row: 1 / span 2; }
    .gc-home .gc-opening-title { font-size: clamp(22px, 3.3vw, 32px); line-height: 1.45; }
    .gc-home .gc-opening .gc-hero-search-hub { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
    .gc-opening-link { grid-column: 2; grid-row: 2; display: flex; width: 100%; height: 46px; min-height: 44px; justify-self: stretch; margin: 0; }
    .gc-opening-controls { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
    .gc-opening-scroll {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        height: 44px;
        justify-content: center;
        gap: 2px;
    }
    .gc-opening-scroll svg { width: 20px; height: 26px; }
    .gc-opening-scroll span { font-size: 11px; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
    .gc-opening-image, .gc-opening-copy { transition: none; transform: none; }
    .gc-opening-image { transform: none !important; will-change: auto; }
    .gc-home .gc-nav-wrap, .gc-home .gc-mobile-right { transition: none; transform: none; }
    .gc-opening-brand, .gc-home .gc-header .gc-brand { transition: none; }
    .gc-opening-scroll-wheel { animation: none; }
}
