/* =========================================================
   UB HERITAGE — main.css
   Figma-derived scale (Desktop 182:4765 / Mobile 182:3232)
   ========================================================= */

/* ===== Font-size / spacing scale ===== */
:root {
    --fs-hero: 64px;
    --fs-her-title: 62px;
    --fs-h2: 48px;
    /* section headings (coll/cats/stories/cta) */
    --fs-h3: 45px;
    --fs-h4: 32px;
    /* coll project title */
    --fs-card-title: 22px;
    --fs-num: 128px;
    --fs-stat: 96px;
    --fs-nav: 20px;
    --fs-body: 18px;
    --fs-body-sm: 16px;
    --fs-label: 14px;
    --fs-small: 13px;
    --fs-vtitle: 30px;
    /* cat-panel ka collapsed (vertical) heading */
    --sec-pad: 140px;
    /* Figma: sections ke beech 140px */
    --her-line-gap: 250px;
}

@media (max-width:1440px) {
    :root {
        --fs-hero: 56px;
        --fs-her-title: 54px;
        --fs-h2: 42px;
        --fs-h3: 38px;
        --fs-h4: 30px;
        --fs-num: 104px;
        --fs-stat: 78px;
        --fs-nav: 18px;
        --fs-vtitle: 26px;
        --sec-pad: 110px;
    }
}

@media (max-width:1024px) {
    :root {
        --fs-hero: 48px;
        --fs-her-title: 44px;
        --fs-h2: 36px;
        --fs-h3: 32px;
        --fs-h4: 26px;
        --fs-num: 84px;
        --fs-stat: 64px;
        --fs-body: 17px;
        --fs-vtitle: 22px;
        --sec-pad: 90px;
    }
}

@media (max-width:768px) {
    :root {
        --fs-hero: 36px;
        --fs-her-title: 32px;
        /* Figma mobile: 183w/78h = fs32 lh1.22 */
        --fs-h2: 26px;
        /* Figma mobile: 26 lh1.5 */
        --fs-h3: 26px;
        --fs-h4: 24px;
        /* coll title mobile: 174w/36h */
        --fs-card-title: 20px;
        --fs-num: 40px;
        /* 30+ mobile: 69w/55h */
        --fs-stat: 28px;
        /* Years mobile: 67w/39h */
        --fs-body: 16px;
        --fs-body-sm: 15px;
        --fs-label: 13px;
        --sec-pad: 80px;
    }
}

@media (max-width:425px) {
    :root {
        --fs-hero: 30px;
        --fs-her-title: 32px;
        /* 32 in the Figma 402 frame too */
        --fs-h2: 26px;
        --fs-h3: 26px;
        --fs-h4: 24px;
        --fs-num: 40px;
        --fs-stat: 28px;
        --fs-body: 16px;
        --sec-pad: 80px;
    }
}

/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: var(--lh-body);
    overflow-x: hidden;
    /* padding-top: var(--header-h); */
}

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

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

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-body-sm);
    letter-spacing: .4px;
    padding: 15px 34px;
    border-radius: 2px;
    cursor: pointer;
    transition: .25s;
}

.btn--banner {
    font-family: var(--font-body);
    color: #fff;
    padding: 0;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0%;
    text-decoration: underline;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-black);
    color: var(--color-black);
}

.btn--outline:hover {
    background: var(--color-black);
    color: #fff;
}

.page-default {
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px var(--gutter);
}

/* ===== Header (Figma: 100px bar, logo 343x80, nav gap 24, btn 155x59) ===== */
.site-header {
    position: static;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: #fff;
    z-index: 1000;
}

.header-inner {
    position: relative;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
    padding: 0 var(--gutter);
}

.site-logo {
    justify-self: start;
    display: flex;
    align-items: center;
    height: 80px;
}

.site-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 28px;
}

.primary-nav {
    justify-self: center;
    height: 100%;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.primary-menu .menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.menu-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-nav);
    line-height: 1.5;
    color: #000;
    display: inline-flex;
    align-items: center;
    transition: color .25s;
}

.menu-link:hover {
    color: var(--color-gold);
}

/* Open state — applied only on .menu-arrow button click (main.js), not on hover */
.has-mega.is-open>.menu-link,
.has-dropdown.is-open>.menu-link {
    color: var(--color-gold);
}

/* The arrow is now a real <button> (helpers.php walker), inside .menu-link —
   so clicking the link navigates normally; only this button toggles.
   24x24 tap target; the visual chevron is an 8x8 ::before. */
.menu-arrow {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 8px;
    margin: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: inherit;
    cursor: pointer;
}

.menu-arrow::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.menu-arrow:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.has-mega.is-open>.menu-arrow::before,
.has-dropdown.is-open>.menu-arrow::before {
    transform: rotate(-135deg);
}

.btn-contact {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    background: #201D1D;
    color: var(--color-white);
    padding: 16px 32px;
    border-radius: 73px;
    transition: .25s;
}

.btn-contact:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transition: .3s;
}

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

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

.nav-toggle span:nth-child(3) {
    top: 22px;
}

/* ---- Search icon + panel (mobile-only, per Figma header 64px) ---- */
.header-search {
    display: none;
    background: none;
    border: 0;
    padding: 4px;
    cursor: pointer;
    color: var(--color-black);
    transition: color .25s;
}

.header-search:hover {
    color: var(--color-gold);
}

.header-search-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h-mobile, var(--header-h));
    background: #fff;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .18);
    padding: 20px 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1002;
}

.header-search-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-panel__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-panel__inner form {
    flex: 1;
}

.header-search-panel__inner input[type="search"] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #ddd;
    padding: 10px 4px;
    font-size: var(--fs-body-sm);
    font-family: var(--font-body);
    outline: none;
}

.header-search-close {
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-black);
}

/* ===== Mega menu (Figma Menu_drop_down: panel 580, image 744x460 @ top 57) ===== */
.mega-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    width: 100%;
    min-height: 580px;
    background: #fff;
    box-shadow: 0 24px 36px -16px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
    z-index: 999;
}

.has-mega.is-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.mega-cols {
    display: flex;
    gap: 24px;
    margin-top: 100px;
}

.mega-col--ongoing {
    width: 437px;
    flex: none;
}

.mega-col--completed {
    width: 587px;
    flex: none;
}

.mega-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 30px;
    line-height: 1;
    color: var(--color-gold);
    margin: 0 0 28px;
}

.mega-list {
    list-style: none;
}

.mega-list li {
    margin-bottom: 18px;
}

.mega-project {
    font-family: var(--font-list);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-black);
    transition: color .2s;
}

.mega-project:hover,
.mega-project.is-active {
    color: var(--color-gold);
}

.mega-media {
    width: 744px;
    height: 460px;
    flex: none;
    margin-top: 57px;
    overflow: hidden;
}

.mega-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s;
}

.mega-media-img.is-fading {
    opacity: 0;
}

/* ---- Simple dropdown (real WP child pages, like About Us) ---- */
.menu-item.has-dropdown {
    position: relative;
}

.simple-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 24px 36px -16px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    z-index: 999;
    padding: 16px 0;
}

.has-dropdown.is-open .simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-25%) translateY(0);
}

.simple-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.simple-dropdown__link {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    color: var(--color-black);
    padding: 10px 28px;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.simple-dropdown__link:hover {
    color: var(--color-gold);
    background: rgba(210, 171, 103, .08);
}

/* =========================================================
   ===== BANNER =====

   HEIGHT — the banner NEVER crops the media.
     Media always stays at `width: 100%; height: auto`, so at every screen
     width the video/image shows in full natural aspect — not a pixel cut.

     .banner--auto    (DEFAULT) simply the media's own height.
     .banner--full    MIN-height = viewport - header. If the media is shorter,
                       the section stays that tall and the media centers —
                       but the media is still NOT cropped.
     .banner--custom  MIN-height = the px value you provide. Same behaviour.

     No @media block overrides the banner height — the same natural height
     applies on mobile/tablet too.

   SLIDER — the track is a CSS grid and all slides stack in the SAME cell
   (1/1). Two benefits:
     1. The section's height equals the tallest slide — no absolute
        positioning, no collapse.
     2. The crossfade is purely opacity-based; the layout never shifts.

   CONTROLS — helpers.php sends two modes:
     .ubh-video--native   -> browser/YouTube's own controls (clickable)
     .ubh-video.has-controls -> only our gold bar (pointer-events off on media)
    ========================================================= */
.banner {
    position: relative;
    width: 100%;
    background: #000;
    /* media stays in-flow; if min-height exceeds the media it centers */
    display: grid;
    align-content: center;
    z-index: 2;
}

/* --- Height modes: all are min-heights, so media is never cut off --- */
.banner--auto {
    min-height: 0;
}

.banner--full {
    min-height: calc(100% - var(--header-h));
}

.banner--custom {
    min-height: var(--banner-h, 0px);
}

/* --- Track + slides (multi-slide only) --- */
.banner__track {
    display: grid;
    width: 100%;
}

.banner__slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    min-width: 0;
}

.banner.has-slider .banner__slide {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    pointer-events: none;
    transition: opacity .85s ease, visibility .85s ease;
}

.banner.has-slider .banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

/* --- Media --- */
.banner__media {
    position: relative;
    width: 100%;
    font-size: 0;
    line-height: 0;
    /* removes the gap below inline media */
}

/* Mobile media comes first in the DOM, so a simple sibling selector
   hides the desktop one (no :has() needed). */
.banner__media--mobile {
    display: none;
}

.banner__img {
    display: block;
    width: 100%;
    height: auto;
}

.banner__embed,
.banner__embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* --- Overlay (rendered only when content exists) ---
   pointer-events:none so the native video controls underneath stay
   clickable; only actual content becomes clickable again. */
.banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    pointer-events: none;
}

.banner__overlay.ay-top {
    align-items: flex-start;
}

.banner__overlay.ay-center {
    align-items: center;
}

.banner__overlay.ay-bottom {
    align-items: flex-end;
}

.banner__container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px var(--gutter);
}

.banner__row {
    display: flex;
    width: 100%;
}

.banner__overlay.ax-left .banner__row {
    justify-content: flex-start;
    text-align: left;
}

.banner__overlay.ax-center .banner__row {
    justify-content: center;
    text-align: center;
}

.banner__overlay.ax-right .banner__row {
    justify-content: flex-end;
    text-align: right;
}

.banner__inner {
    max-width: 760px;
    pointer-events: auto;
}

.banner__overlay.theme-light {
    color: #fff;
}

.banner__overlay.theme-dark {
    color: #000;
}

.banner__overlay.theme-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .45));
    z-index: -1;
}

.banner__sub {
    font-size: var(--fs-body);
    letter-spacing: .3px;
    margin: 0 0 14px;
}

.banner__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-hero);
    line-height: 1.05;
    margin: 0;
}

.banner__para {
    font-size: var(--fs-body);
    line-height: 1.5;
    margin: 18px 0 0;
}

.banner__content .btn,
.banner__inner .btn {
    margin-top: 28px;
}

/* ---- Navigation cluster (bottom-right, site gold) ---- */
.banner__nav {
    position: absolute;
    right: var(--gutter);
    bottom: 44px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* any video slide has its control bar at the bottom —
   nav is moved above it, otherwise the two overlap */
.banner.has-video-controls .banner__nav {
    bottom: 104px;
}

.banner__navbtn {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    width: 46px;
    height: 16px;
    position: relative;
    cursor: pointer;
    color: var(--color-gold);
    transition: opacity .25s ease;
}

.banner__navbtn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-50%);
}

.banner__navbtn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.banner__navbtn--next::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.banner__navbtn--prev::after {
    left: 0;
    transform: translateY(-50%) rotate(135deg);
}

.banner__navbtn:hover {
    opacity: .6;
}

.banner__navbtn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

.banner__dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.banner__dot {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* dot — no-radius rule se exempt */
    border: 1px solid rgba(255, 255, 255, .75);
    background: transparent;
    cursor: pointer;
    transition: width .35s ease, background .3s ease, border-color .3s ease;
}

.banner__dot.is-active {
    width: 24px;
    border-radius: 5px;
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.banner__dot:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .banner.has-slider .banner__slide,
    .banner__dot {
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   Banner video — self-hosted file OR YouTube.

   helpers.php (ubh_banner_video) outputs:
     .ubh-video > .ubh-video__native (video tag)  OR  .ubh-video__yt (YouTube)
     .ubh-video.has-controls        -> our gold control-bar
     .ubh-video--native             -> browser/YouTube's own controls
    ========================================================= */
.ubh-video {
    position: relative;
    display: block;
    width: 100%;
}

/* AUTO mode: video takes its natural height — nothing is cropped */
.ubh-video__native {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/* Custom bar ON -> media clicks disabled (only our buttons work).
   Native mode -> browser/YouTube's own controls must stay clickable. */
.ubh-video.has-controls .ubh-video__native,
.ubh-video.has-controls .ubh-video__yt {
    pointer-events: none;
}

.ubh-video--native .ubh-video__native,
.ubh-video--native .ubh-video__yt {
    pointer-events: auto;
}

/* YouTube — always a 16:9 box; the iframe fits exactly inside it.
   No cover-crop, so the YouTube video is not cut by a pixel either. */
.ubh-video__yt {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ubh-video__yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ubh-video__controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    padding: 10px 18px;
    border-radius: 60px;
    /* pill — no-border-radius rule se exempt */
}

.ubh-video__btn {
    flex: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.ubh-video__btn:hover {
    background: var(--color-gold);
}

/* play/pause: triangle -> do bars */
.ubh-video__play::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

.ubh-video.is-playing .ubh-video__play::before {
    width: 3px;
    height: 12px;
    border: 0;
    background: #fff;
    box-shadow: 6px 0 0 #fff;
    margin-left: -1px;
}

/* mute/unmute icon (text glyph — swap for SVG if preferred) */
.ubh-video__mute::before {
    content: "\1F50A";
}

.ubh-video.is-muted .ubh-video__mute::before {
    content: "\1F507";
}

.ubh-video__bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.ubh-video__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--color-gold);
    border-radius: 3px;
}

@media (max-width:768px) {
    .ubh-video__controls {
        left: 14px;
        right: 14px;
        bottom: 14px;
        gap: 10px;
        padding: 8px 14px;
    }

    .ubh-video__btn {
        width: 30px;
        height: 30px;
    }
}

/* ===== Heritage (pinned + gold lines)
   Figma: top line 206px (banner->heading), heading 584x152 (fs62 lh1.22),
   heading->para 80, para 587 (fs18 lh1.5), para->link 60,
   cards 437x946, bottom line runs from the button to the collapse dot (60px inside) ===== */
.heritage {
    position: relative;
    background: #fff;
}

.heritage--pinned {
    height: 260vh;
}

.heritage__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heritage:not(.heritage--pinned) .heritage__stage {
    position: static;
    height: auto;
    padding: var(--sec-pad) 0;
}

.heritage__line {
    position: absolute;
    left: 50%;
    width: 1px;
    background: var(--color-gold);
    transform: translateX(-50%);
    z-index: 1;
}

.heritage__line--top {
    top: 0;
    height: calc(50% - var(--her-line-gap));
}

.heritage__line--bottom {
    top: calc(50% + var(--her-line-gap));
    bottom: 0;
}

.heritage__intro {
    position: relative;
    z-index: 3;
    max-width: clamp(560px, 36vw, 690px);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
}

.heritage__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 62px;
    line-height: 80px;
    letter-spacing: 0;
    text-align: center;
}

.heritage__text {
    max-width: 85%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.heritage__text p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 24px;
    text-align: center;
}

.heritage__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-label);
    line-height: 20px;
    letter-spacing: .7px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--color-gold);
}

.heritage__card {
    position: absolute;
    top: 0;
    width: clamp(240px, 22.7vw, 437px);
    height: 880px;
    overflow: hidden;
    z-index: 2;
    transform: translateY(115%);
    will-change: transform;
}

.heritage__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

.heritage__card--left {
    left: max(var(--gutter), calc(50% - 910px));
}

.heritage__card--right {
    right: max(var(--gutter), calc(50% - 910px));
}

.heritage__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heritage__card-body {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.heritage__num {
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 120px;
}

.heritage__label {
    font-family: var(--font-display);
    font-size: 96px;
    line-height: 96px;
}

.heritage__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    width: 80%;
}

/* ===== Collection (dark #1A1A1A)
   Figma desktop: heading top 104, line 60 + dot, heading fs48 lh1.23 690w,
   heading->slider 40, pill 255x53, bottom pad 65 ===== */
.coll {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
    background: #1A1A1A;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.coll::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 60px;
    background: var(--color-gold);
    transform: translateX(-50%);
}

/* .coll::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 60px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--color-gold);
} */

.coll__head {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold);
    max-width: 690px;
    font-size: 48px;
    line-height: 50px;
    letter-spacing: 0px;
    text-align: center;
    margin: 0 0 32px 0;
}

.coll__viewport {
    overflow: hidden;
}

.coll__track {
    display: flex;
    align-items: center;
    transition: transform .7s cubic-bezier(.65, 0, .2, 1);
}

.coll__slide {
    flex: 0 0 78%;
    max-width: 1512px;
    margin: 0;
    cursor: pointer;
}

.coll__img {
    width: 100%;
    height: 570px;
    object-fit: cover;
    display: block;
    transform: scale(.82);
    transform-origin: center;
    filter: brightness(.5);
    transition: transform .7s cubic-bezier(.65, 0, .2, 1), filter .6s;
}

.coll__img--mobile {
    display: none;
}

.coll__slide.is-active .coll__img {
    transform: scale(1);
    filter: none;
}

.coll__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 10px var(--gutter) 0;
}

.coll__meta {
    flex: 0.8;
    text-align: center;
}

.coll__title {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-gold);
    margin: 0 0 8px;
    font-weight: 400;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: 0px;
    text-align: center;
}

.coll__tag {
    font-family: var(--font-body);
    color: var(--color-white);
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
}

.coll__more {
    display: inline-block;
    margin-top: 20px;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 16px 60px;
    border-radius: 80px;
    font-family: var(--font-body);
    transition: .25s;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
}

.coll__more:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.coll__arrow {
    flex: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: clamp(60px, 8vw, 120px);
    height: 22px;
    position: relative;
    color: var(--color-gold);
    transition: opacity .25s;
}

.coll__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-50%);
}

.coll__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.coll__arrow--next::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.coll__arrow--prev::after {
    left: 0;
    transform: translateY(-50%) rotate(135deg);
}

.coll__arrow:hover {
    opacity: .65;
}

/* =========================================================
   ===== Crafted categories (Figma: heading fs48, gap 50, row 1820x780) =====

   A panel has TWO states — CSS crossfades; JS only toggles .is-active:

   COLLAPSED (narrow strip):
     .cat-panel__dim     -> flat dark overlay over the whole panel (image dimmed)
     .cat-panel__vtitle  -> vertical (bottom-to-top) italic heading, bottom-anchored
     body + btn          -> opacity 0

   ACTIVE (expanded):
     .cat-panel__vtitle  -> fades and slides away downward (translateY)
     .cat-panel__grad    -> left-dark gradient fades in (as before)
     .cat-panel__body    -> title + desc fade in from the top (staggered delay)
     .cat-panel__btn     -> button fades in from the bottom (slightly longer delay)

   Z-index stack: img 0 -> dim/grad 1 -> body/btn 2 -> vtitle 3
   ========================================================= */
.cats {
    padding: 120px 50px 0;
}

.cats__head {
    font-family: var(--font-display);
    font-style: italic;
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0px;
    text-align: center;
}

.cats__row {
    display: flex;
    gap: 8px;
    max-width: var(--container);
    margin: 0 auto;
    height: 780px;
}

.cat-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: flex .55s cubic-bezier(.7, 0, .2, 1);
}

.cat-panel.is-active {
    flex: 4;
}

.cat-panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Flat dim over collapsed panels; fades out when active */
.cat-panel__dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(0, 0, 0, .58);
    opacity: 1;
    transition: opacity .55s ease;
    pointer-events: none;
}

.cat-panel.is-active .cat-panel__dim {
    opacity: 0;
}

/* Active panel's left-dark gradient — hidden while collapsed */
.cat-panel__grad {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 57%);
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
}

.cat-panel.is-active .cat-panel__grad {
    opacity: 1;
}

/* ---- Vertical heading (collapsed state) ---- */
.cat-panel__vtitle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 54px;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
    color: var(--color-white);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s ease .18s, transform .55s cubic-bezier(.7, 0, .2, 1) .18s;
    pointer-events: none;
    padding-left: 32px;
}

.cat-panel__vtitle>span {
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.cat-panel.is-active .cat-panel__vtitle {
    opacity: 0;
    transform: translateY(44px);
    transition-delay: 0s, 0s;
}

/* ---- Expanded content (title + desc + button) ---- */
.cat-panel__body {
    max-width: 35%;
    width: 100%;
    position: absolute;
    left: 60px;
    top: 54px;
    right: 40px;
    z-index: 2;
    color: #fff;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .45s ease, transform .55s cubic-bezier(.7, 0, .2, 1);
    pointer-events: none;
}

.cat-panel.is-active .cat-panel__body {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
    transition-delay: .18s;
}

.cat-panel__title,
.cat-panel__desc {
    max-width: 100%;
    width: 100%;
}

.cat-panel__title,
.cat-panel__vtitle>span {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0px;
}

.cat-panel__desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
}

.cat-panel__btn {
    position: absolute;
    left: 60px;
    bottom: 54px;
    z-index: 2;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 14px 28px;
    border-radius: 81px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .7px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .55s cubic-bezier(.7, 0, .2, 1), background .25s ease, color .25s ease;
    pointer-events: none;
    white-space: nowrap;
}

.cat-panel.is-active .cat-panel__btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: .24s, .24s, 0s, 0s;
}

.cat-panel__btn:hover {
    background: #fff;
    color: #000;
}

@media (prefers-reduced-motion: reduce) {

    .cat-panel,
    .cat-panel__dim,
    .cat-panel__grad,
    .cat-panel__vtitle,
    .cat-panel__body,
    .cat-panel__btn {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}

/* =========================================================
   ===== STORIES / BLOGS =====

   Layout depends on post count (PHP adds the class):
     .stories--cols-1  -> 1 card full width
     .stories--cols-2  -> 2 cards 50% / 50%
     .stories--cols-3  -> 3 equal columns
     .stories--slider  -> 4+ cards, simple transform slider

   Per-view comes from `--st-per`: desktop 3 -> tablet 2.5 -> mobile 1.5.
   Navigation shows only when the cards actually overflow
   (JS adds `.is-scrollable` to the section).
    ========================================================= */
.stories {
    --st-gap: 60px;
    --st-per: 3;
    padding: 120px 0;
}

.stories__inner {
    max-width: 100%;
    padding: 0 var(--gutter);
}

.stories__head {
    font-family: var(--font-display);
    font-style: italic;
    margin-bottom: 38px;
    font-weight: 400;
    font-size: 48px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.stories__viewport {
    overflow: hidden;
}

.stories__grid {
    display: flex;
    gap: var(--st-gap);
    align-items: flex-start;
    transition: transform .7s cubic-bezier(.65, 0, .2, 1);
    will-change: transform;
}

/* ---- Fixed column modes ---- */
.stories--cols-1 .story-card {
    flex: 0 0 100%;
}

.stories--cols-2 .story-card {
    flex: 0 0 calc((100% - var(--st-gap)) / 2);
}

.stories--cols-3 .story-card {
    flex: 0 0 calc((100% - (2 * var(--st-gap))) / 3);
}

.stories--slider .story-card {
    flex: 0 0 calc((100% - ((var(--st-per) - 1) * var(--st-gap))) / var(--st-per));
}

/* ---- Card ---- */
.story-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

a.story-card__imgwrap {
    display: block;
    width: 100%;
    aspect-ratio: 560 / 304;
    overflow: hidden;
    background: #f2f2f2;
}

.stories--cols-1 a.story-card__imgwrap {
    aspect-ratio: 1820 / 640;
}

.stories--cols-2 a.story-card__imgwrap {
    aspect-ratio: 880 / 430;
}

.story-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.story-card:hover .story-card__img {
    transform: scale(1.04);
}

.story-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    line-height: 22px;
    margin: 32px 0 12px;
    letter-spacing: 0px;
}

.story-card__title a:hover {
    color: var(--color-gold);
}

.story-card__excerpt {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    color: #444;
}

.story-card__more {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    color: var(--color-black);
    text-transform: uppercase;
    transition: color .25s ease;
}

.story-card__more:hover {
    color: var(--color-gold);
}

/* ---- Navigation (banner jaisa gold) ---- */
.stories__nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 44px;
}

/* JS adds `.is-scrollable` only when cards overflow the viewport */
.stories.is-scrollable .stories__nav {
    display: flex;
}

.stories__arrow {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    width: 46px;
    height: 16px;
    position: relative;
    cursor: pointer;
    color: var(--color-gold);
    transition: opacity .25s ease;
}

.stories__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-50%);
}

.stories__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.stories__arrow--next::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.stories__arrow--prev::after {
    left: 0;
    transform: translateY(-50%) rotate(135deg);
}

.stories__arrow:hover {
    opacity: .6;
}

.stories__arrow:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

.stories__dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.stories__dot {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .35);
    background: transparent;
    cursor: pointer;
    transition: width .35s ease, background .3s ease, border-color .3s ease;
}

.stories__dot.is-active {
    width: 24px;
    border-radius: 5px;
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.stories__dot:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .stories__grid,
    .story-card__img,
    .stories__dot {
        transition-duration: .01ms !important;
    }
}

/* ===== CTA (Figma: 1820x403, heading top 117 fs48 lh1.23,
   overlay = bottom->top gradient rgba(0,0,0,.36)->0, radius 0) ===== */
.cta {
    max-width: 100%;
    padding: 0px var(--gutter) 119px;
    margin: 0 auto;
}

.cta__box {
    position: relative;
    height: 403px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    color: #fff;
    background-color: #222;
    background-size: cover;
    background-position: bottom left;
    background-repeat: no-repeat;
}

.cta__box.has-bg {
    background-image: var(--cta-bg);
}

.cta__box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.cta__title,
.cta__btn {
    position: relative;
    z-index: 2;
}

.cta__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 48px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

/* ===== Footer (Figma: bg #000, pad 72/28, logo 557, dividers 1090,
   tagline 804 fs18, menu gap 39 fs16, contact fs16, socials 40 box) ===== */
.site-footer {
    background: #000;
    color: #fff;
    padding: 72px var(--gutter) 28px;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.footer-logo {
    max-width: 557px;
    margin: 0 auto;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-tagline {
    max-width: 804px;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: Italic;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0.64px;
    text-align: center;
    color: #fff;
}

.footer-divider {
    display: block;
    height: 0.5px;
    background: #d2ab6780;
    max-width: 1090px;
    margin: 60px auto;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 39px;
}

.footer-menu a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0px;
    text-transform: capitalize;
    color: #fff;
    transition: color .2s;
}

.footer-menu a:hover {
    color: var(--color-gold);
}

.footer-contact {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
    color: #fff;
}

.footer-contact p {
    max-width: 320px;
    margin: 0 auto 17px;
}

.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 17px 0 0;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
    overflow: hidden;
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, .1);
}

.footer-socials img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.footer-copy {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
    color: #fff;
    margin-top: 24px;
}

.site-footer .footer-divider--mid {
    margin: 47px auto;
}

.site-footer .footer-divider--tight {
    margin: 36px auto 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1440px) {
    .header-inner {
        column-gap: 14px;
    }

    .site-logo {
        height: 60px;
    }

    .primary-menu {
        gap: 14px;
    }

    .btn-contact {
        padding: 14px 24px;
        border-radius: 50px;
        font-size: 16px;
    }

    .mega-inner {
        gap: 16px;
    }

    .mega-cols {
        margin-top: 60px;
        gap: 16px;
    }

    .mega-col--ongoing {
        width: 320px;
    }

    .mega-col--completed {
        width: 420px;
    }

    .mega-media {
        width: 520px;
        height: 320px;
        margin-top: 57px;
    }

    .mega-panel {
        min-height: 440px;
    }

    .mega-title {
        font-size: 26px;
        margin: 0 0 22px;
    }

    .mega-list li {
        margin-bottom: 12px;
    }

    .mega-project {
        font-size: 16px;
    }

    .heritage__card {
        width: clamp(240px, 26vw, 380px);
        height: 840px;
    }

    .heritage__intro {
        gap: 60px;
    }

    .heritage__title {
        font-size: 56px;
        line-height: 64px;
    }

    .cats__row {
        height: 700px;
    }

    .stories {
        --st-gap: 32px;
        padding: 80px 0;
    }
}

/* ---- <=1200px : Heritage MOBILE PINNED — intro top fix, cards bottom se rise ---- */
@media (max-width:1200px) {
    .heritage--pinned {
        height: 260vh;
    }

    .heritage__stage {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 48px var(--gutter) 0;
    }

    .heritage:not(.heritage--pinned) .heritage__stage {
        position: static;
        height: auto;
        padding: 64px 0;
    }

    .heritage__line {
        display: none;
    }

    /* Continuous center gold line across the whole section */
    .heritage::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--color-gold);
        transform: translateX(-50%);
        z-index: 0;
    }

    .heritage__intro {
        max-width: 100%;
        margin: 0 auto;
        gap: 32px;
        position: relative;
        z-index: 1;
        background: #fff;
        padding: 16px;
    }

    .heritage__text {
        max-width: 90%;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    /* Figma mobile: cards 177x383 (44% of 402), edges 14px */
    .heritage__card {
        position: absolute;
        top: auto;
        bottom: 16px;
        width: 44%;
        height: auto;
        aspect-ratio: 177/383;
        max-height: 60vh;
        overflow: hidden;
        z-index: 2;
        transform: translateY(115%);
        will-change: transform;
    }

    .heritage__card--left {
        left: 16px;
        right: auto;
    }

    .heritage__card--right {
        right: 16px;
        left: auto;
        margin-top: 0;
    }

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

    .heritage__card-body {
        top: 24px;
        gap: 16px;
    }

    .heritage__num {
        font-size: 80px;
        line-height: 80px;
    }

    .heritage__label {
        font-size: 64px;
        line-height: 64px;
    }

    .heritage__desc {
        width: 60%;
    }

    .cats {
        padding: 80px 16px 0;
    }
}

/* ---- <=1024px : Header drawer + Mega (Figma mobile header 64px) ---- */
@media (max-width:1024px) {
    .site-header {
        height: var(--header-h-mobile);
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        padding: 0 14px;
        grid-auto-flow: dense;
    }

    .header-actions {
        display: contents;
    }

    .site-logo {
        grid-column: 2;
        justify-self: center;
        height: 50px;
    }

    .site-logo img {
        height: 50px;
    }

    .nav-toggle {
        display: block;
        grid-column: 1;
        justify-self: start;
        width: 24px;
        height: 18px;
    }

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

    .nav-toggle span:nth-child(3) {
        top: 16px;
    }

    .header-search {
        display: block;
        grid-column: 3;
        justify-self: end;
    }

    .btn-contact {
        display: none;
    }

    .primary-nav {
        position: fixed;
        left: 0;
        top: var(--header-h-mobile);
        width: 100%;
        height: calc(100vh - var(--header-h-mobile));
        background: #fff;
        transform: translateX(100%);
        transition: transform .35s;
        overflow-y: auto;
        z-index: 1001;
    }

    body.nav-open .primary-nav {
        transform: translateX(0);
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
        padding: 16px;
    }

    .primary-menu .menu-item {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
        border-bottom: 1px solid #eee;
        padding: 14px 0;
    }

    .primary-menu .menu-item .menu-link {
        flex: 1 1 auto;
    }

    .mega-panel,
    .simple-dropdown {
        flex-basis: 100%;
    }

    .mega-panel {
        position: static;
        width: auto;
        min-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s;
    }

    .has-mega.is-open .mega-panel {
        max-height: 2000px;
    }

    .mega-inner {
        padding: 12px 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }

    .mega-cols {
        flex-direction: row;
        gap: 5px;
        margin-top: 8px;
    }

    .mega-col--ongoing,
    .mega-col--completed {
        max-width: 48%;
        width: 100%;
    }

    .mega-media {
        max-width: 40%;
        width: 100%;
        height: 250px;
        margin-top: 8px;
    }

    .mega-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .mega-list li {
        margin-bottom: 12px;
    }

    .mega-project {
        font-size: 16px;
        line-height: 1.5;
    }

    .simple-dropdown {
        position: static;
        max-width: 100%;
        width: 100%;
        left: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height .4s;
    }

    .has-dropdown.is-open .simple-dropdown {
        max-height: 1000px;
        padding: 16px 0;
    }

    .banner__container {
        padding: 40px 20px;
    }

    /* banner nav: nudge inward on 14-gutter screens */
    .banner__nav {
        right: 20px;
        bottom: 28px;
        gap: 14px;
    }

    .banner.has-video-controls .banner__nav {
        bottom: 76px;
    }

    .banner__navbtn {
        width: 36px;
    }

    .heritage__intro {
        gap: 24px;
    }

    .heritage__title {
        font-size: 48px;
        line-height: 60px;
    }

    .heritage__text {
        max-width: 100%;
        gap: 24px;
    }

    .heritage__desc {
        width: 80%;
    }

    .coll {
        padding: 60px 0;
        gap: 16px;
    }

    .coll__head {
        font-size: 40px;
        line-height: 40px;
        margin: 0 0 16px 0;
    }

    .coll__img {
        height: 480px;
    }

    .coll__footer {
        gap: 16px;
        padding: 0;
    }

    .cats {
        padding: 48px 16px 0;
    }

    .cats__head {
        font-size: 40px;
        line-height: 40px;
    }

    .cat-panel__title,
    .cat-panel__vtitle>span {
        font-size: 40px;
        line-height: 40px;
    }

    /* ---- Stories: tablet = 2.5 cards ---- */
    .stories {
        --st-gap: 24px;
        --st-per: 2.5;
        padding: 60px 0;
    }

    .stories__inner {
        padding: 0 16px;
    }

    .stories__head {
        font-size: 40px;
        line-height: 40px;
    }

    /* cols-3 uses 2.5 per-view on tablet — same JS slider, so
       neither a scrollbar line appears nor does navigation disappear. */
    .stories--cols-3 .story-card {
        flex: 0 0 calc((100% - (1.5 * var(--st-gap))) / 2.5);
    }

    .stories__nav {
        margin-top: 32px;
    }

    .stories__arrow {
        width: 36px;
    }

    .cats__row {
        height: 600px;
    }

    .cat-panel.is-active {
        flex: 3;
    }

    /* tablet: the panel is thin, pull the vertical heading inward a bit */
    .cat-panel__vtitle {
        bottom: 40px;
    }

    .cat-panel__body {
        left: 40px;
        top: 40px;
        max-width: 70%;
    }

    .cat-panel__btn {
        left: 40px;
        bottom: 40px;
    }

    .cta {
        padding: 48px 16px 80px;
    }

    .cta__title {
        font-size: 40px;
        line-height: 40px;
    }

    .story-card__title {
        font-size: 20px;
        line-height: 24px;
        margin: 24px 0 10px;
    }

    .story-card__excerpt {
        font-size: 16px;
        line-height: 20px;
    }
}

/* ---- <=900px : Categories stack (Figma mobile) ---- */
@media (max-width:900px) {
    .cats__row {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .cat-panel {
        flex: none;
        height: 400px;
    }

    .cat-panel.is-active {
        flex: none;
    }

    /* Accordion is closed on mobile (main.js skips it <=900px) —
       the vertical heading is hidden and the inner content stays
       permanently visible, without any transform/delay. */
    .cat-panel__vtitle {
        display: none;
    }

    .cat-panel__dim {
        opacity: 0;
    }

    .cat-panel__grad {
        opacity: 1;
    }

    .cat-panel__body,
    .cat-panel.is-active .cat-panel__body {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition-delay: 0s;
        max-width: 60%;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .cat-panel__btn,
    .cat-panel.is-active .cat-panel__btn {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition-delay: 0s;
    }

    /* Figma: title @25/38 fs20, desc @84 fs16, btn @25/301 h43 */
    .cat-panel__body {
        left: 24px;
        top: 32px;
    }

    .cat-panel__btn {
        left: 25px;
        bottom: 30px;
        padding: 12px 20px;
        font-size: 12px;
        line-height: 16px;
    }

    .cat-panel__grad {
        background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .1));
    }

    .coll__slide {
        flex: 0 0 86%;
    }
}

/* ---- <=768px : Phone (Figma 402 frame) ---- */
@media (max-width:768px) {

    /* Banner mobile media swap — the mobile div comes first in the DOM, so
       a simple adjacent-sibling selector hides the desktop one. */
    .banner__media--mobile {
        display: block;
    }

    .banner__media--mobile+.banner__media--desktop {
        display: none;
    }

    .banner__container {
        padding: 32px 14px;
    }

    .banner__nav {
        right: 14px;
        bottom: 20px;
        gap: 12px;
    }

    .banner.has-video-controls .banner__nav {
        bottom: 64px;
    }

    .banner__navbtn {
        width: 30px;
        height: 14px;
    }

    .banner__navbtn::after {
        width: 7px;
        height: 7px;
    }

    .banner__dot {
        width: 7px;
        height: 7px;
    }

    .banner__dot.is-active {
        width: 20px;
    }

    .mega-inner {
        gap: 24px;
    }

    .mega-cols,
    .mega-media {
        max-width: 100%;
    }

    .mega-media {
        height: 300px;
    }

    .mega-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .mega-list li {
        margin-bottom: 8px;
    }

    .mega-project {
        font-size: 15px;
        line-height: 1.45;
    }

    /* heritage phone: gutter 14, cards L/R 14, gap 20 (Figma) */
    .heritage__stage {
        padding: 40px 14px 0;
    }

    .heritage__intro {
        gap: 24px;
        padding: 16px;
    }

    .heritage__title {
        font-size: 40px;
        line-height: 48px;
    }

    .heritage__text {
        gap: 24px;
    }

    .heritage__text p {
        line-height: 1.5;
    }

    .heritage__link {
        font-size: 14px;
    }

    .heritage__card {
        width: 46%;
        bottom: 20px;
        max-height: 63vh;
    }

    .heritage__card-body {
        top: 16px;
        gap: 16px;
    }

    .heritage__card--left {
        left: 14px;
    }

    .heritage__card--right {
        right: 14px;
    }

    .heritage__num {
        font-size: 60px;
        line-height: 60px;
    }

    .heritage__label {
        font-size: 48px;
        line-height: 48px;
    }

    .heritage__desc {
        font-size: 16px;
        line-height: 20px;
    }

    /* Collection: Figma mobile — meta below image, small title/tag sizes */
    .coll {
        padding: 48px 0;
        gap: 16px;
    }

    .coll::before {
        height: 37px;
    }

    .coll::after {
        top: 37px;
        width: 3px;
        height: 3px;
        margin-left: -1.5px;
    }

    .coll__head {
        font-size: 32px;
        line-height: 40px;
        margin: 0;
    }

    .coll__slide {
        flex: 0 0 84.5%;
    }

    .coll__slide.has-mobile .coll__img--desktop {
        display: none;
    }

    .coll__slide.has-mobile .coll__img--mobile {
        display: block;
    }

    .coll__img {
        height: 700px;
        /* aspect-ratio: 340/550; */
        transform: scale(.94);
    }

    .coll__slide.is-active .coll__img {
        transform: scale(1);
    }

    .coll__footer {
        gap: 5px;
        padding: 0;
    }

    .coll__arrow {
        width: 40px;
    }

    .coll__title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .coll__tag {
        font-size: 16px;
        line-height: 1.5;
        max-width: 95%;
        margin: 0 auto;
    }

    .coll__more {
        margin-top: 16px;
        padding: 15px 33px;
        font-size: 12px;
        line-height: 1;
    }

    /* cats mobile: heading gap 30 */
    .cats {
        padding: 40px 16px 0;
    }

    .cats__head {
        margin-bottom: 32px;
        font-size: 32px;
        line-height: 32px;
    }

    .cat-panel__title,
    .cat-panel__vtitle>span {
        font-size: 32px;
        line-height: 32px;
    }

    /* ---- Stories: mobile = 1.5 cards ---- */
    .stories {
        --st-gap: 16px;
        --st-per: 1.5;
        padding: 48px 0 16px;
    }

    .stories__inner {
        padding: 0 14px;
    }

    .stories--cols-2 .story-card,
    .stories--cols-3 .story-card {
        flex: 0 0 calc((100% - (0.5 * var(--st-gap))) / 1.5);
    }

    .stories--cols-1 a.story-card__imgwrap,
    .stories--cols-2 a.story-card__imgwrap {
        aspect-ratio: 560 / 304;
    }

    .story-card__title {
        margin: 20px 0 10px;
    }

    .story-card__excerpt {
        font-size: 16px;
    }

    .story-card__more {
        font-size: 16px;
        line-height: 20px;
        margin-top: 10px;
    }

    .stories__head {
        margin-bottom: 30px;
        font-size: 32px;
        line-height: 32px;
    }

    .stories__nav {
        margin-top: 24px;
        gap: 10px;
    }

    .stories__arrow {
        width: 30px;
        height: 14px;
    }

    .stories__arrow::after {
        width: 7px;
        height: 7px;
    }

    .stories__dot {
        width: 7px;
        height: 7px;
    }

    .stories__dot.is-active {
        width: 20px;
    }

    /* CTA mobile: 374x500, heading fs26, gap 24 */
    .cta {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 80px;
    }

    .cta__box {
        height: 500px;
    }

    /* ... existing CTA mobile rules live here; add these alongside them ... */
    .cta__box.has-bg {
        background-image: var(--cta-bg-mobile, var(--cta-bg));
    }

    .cta__title {
        font-size: 32px;
        line-height: 32px;
    }

    /* footer mobile: Figma 402x770 */
    .site-footer {
        padding: 33px 14px 22px;
    }

    .footer-logo {
        max-width: 281px;
    }

    .footer-divider {
        margin: 36px auto;
    }

    .site-footer .footer-divider--mid {
        margin: 40px auto;
    }

    .site-footer .footer-divider--tight {
        margin: 30px auto 0;
    }

    .footer-tagline {
        max-width: 339px;
        font-size: 15px;
        line-height: 1.47;
    }

    /* 2-column left-aligned menu (column-major, Figma) */
    .footer-menu {
        display: block;
        columns: 2;
        column-gap: 58px;
        max-width: 279px;
        margin: 0 auto;
        text-align: left;
    }

    .footer-menu li {
        margin-bottom: 25px;
        break-inside: avoid;
    }

    .footer-menu li:last-child {
        margin-bottom: 0;
    }

    .footer-menu a {
        font-size: 14px;
    }

    .footer-contact {
        margin-top: 40px;
        font-size: 14px;
    }

    .footer-contact p {
        max-width: 260px;
        margin-bottom: 17px;
    }

    .footer-socials {
        margin-top: 14px;
        gap: 10px;
    }

    .footer-socials a {
        width: 24px;
        height: 24px;
    }

    .footer-socials img {
        width: 24px;
        height: 24px;
    }

    .footer-copy {
        font-size: 12px;
        margin-top: 25px;
    }
}

@media (max-width: 600px) {

    .inq-tab {
        padding: 14px 6px;
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .heritage__intro {
        gap: 20px;
        padding: 0;
    }

    .heritage__title {
        font-size: 32px;
        line-height: 40px;
    }

    .heritage__card {
        width: 45%;
        max-height: 100%;
        aspect-ratio: 177 / 400;
    }

    .heritage__text {
        gap: 20px;
    }

    .heritage__num {
        font-size: 40px;
        line-height: 40px;
    }

    .heritage__label {
        font-size: 32px;
        line-height: 32px;
    }

    .coll__head {
        font-size: 24px;
        line-height: 28px;
    }

    .coll__img {
        height: 520PX;
    }

    .coll__footer {
        align-items: baseline;
        gap: 0;
    }

    .coll__more {
        margin-top: 12px;
        padding: 14px 28px;
        font-size: 12px;
        line-height: 16px;
    }

    .cats {
        padding: 32px 16px 0;
    }

    .cats__head {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 28px;
    }

    .cat-panel {
        height: 260px;
    }

    .cat-panel__body,
    .cat-panel.is-active .cat-panel__body {
        max-width: 90%;
        width: 100%;
    }

    .cat-panel__body {
        left: 16px;
        top: 24px;
    }

    .cat-panel__title,
    .cat-panel__vtitle>span {
        font-size: 28px;
        line-height: 28px;
    }

    .cat-panel__desc {
        font-size: 16px;
        line-height: 20px;
    }

    .cat-panel__btn {
        left: 16px;
        bottom: 20px;
        padding: 8px 14px;
        font-size: 10px;
        line-height: 12px;
    }

    .stories {
        --st-gap: 16px;
        padding: 24px 0 16px;
    }

    .stories__head {
        font-size: 28px;
        line-height: 28px;
        margin-bottom: 24px;
    }

    .story-card__title {
        font-size: 18px;
        line-height: 20px;
        margin: 15px 0 8px;
    }

    .story-card__excerpt {
        font-size: 14px;
        line-height: 18px;
    }

    .story-card__more {
        font-size: 14px;
        line-height: 16px;
    }

    .cta__title {
        font-size: 28px;
        line-height: 28px;
    }

    .btn--banner {
        font-size: 16px;
        line-height: 20px;
    }
}

/* ---- <=425px ---- */
@media (max-width:425px) {

    .mega-media {
        height: 250px;
    }

    .heritage__intro {
        gap: 16px;
    }

    .heritage__title {
        font-size: 24px;
        line-height: 32px;
    }

    .heritage__text {
        gap: 16px;
    }

    .heritage__desc {
        font-size: 11px;
    }

    .heritage__card {
        max-height: 100%;
        aspect-ratio: 177/360;
    }

    .heritage__num {
        font-size: 32px;
        line-height: 32px;
    }

    .heritage__label {
        font-size: 24px;
        line-height: 24px;
    }

    .coll {
        padding: 24px 0;
    }

    .coll__img {
        height: 500PX;
    }

    .cats {
        padding: 24px 16px 0;
    }

    .cats__head {
        margin-bottom: 20px;
        font-size: 24px;
        line-height: 24px;
    }

    .cta {
        padding: 16px 16px 48px;
    }

    .cat-panel__title,
    .cat-panel__vtitle>span {
        font-size: 24px;
        line-height: 24px;
    }

    .stories__head {
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .cta__title {
        font-size: 24px;
        line-height: 24px;
    }

    .btn--banner {
        font-size: 14px;
        line-height: 16px;
    }
}

/* =========================================================
   ===== INQUIRY NOW — floating tab + centre popup =====

   The tab side comes from the backend — PHP provides two classes:
     side  : .inq-tab--left | .inq-tab--right
     align : .inq-tab--top  | .inq-tab--center | .inq-tab--bottom
   plus `--inq-offset` (distance from the edge in top/bottom cases).

   The text is vertical (writing-mode), not a rotate hack — this keeps letter
   spacing and baseline clean. On the left side, a 180deg rotation makes the
   text read bottom-to-top, as in the reference.
    ========================================================= */
.inq-tab {
    position: fixed;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    margin: 0;
    padding: 22px 12px;
    cursor: pointer;
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
    transition: background-color .25s ease, color .25s ease, padding .25s ease;
}

.inq-tab:hover {
    background: var(--color-black);
    color: var(--color-white);
    padding-inline: 16px;
}

.inq-tab:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 3px;
}

.inq-tab__label {
    display: block;
    writing-mode: vertical-rl;
}

/* ---- side ---- */
.inq-tab--right {
    right: 0;
    border-radius: 6px 0 0 6px;
    /* pill-ish edge — no image inside, so radius is allowed */
}

.inq-tab--left {
    left: 0;
    border-radius: 0 6px 6px 0;
}

/* left side text is read bottom-to-top */
.inq-tab--left .inq-tab__label {
    transform: rotate(180deg);
}

/* ---- vertical align ---- */
.inq-tab--top {
    top: var(--inq-offset, 140px);
}

.inq-tab--bottom {
    bottom: var(--inq-offset, 140px);
}

.inq-tab--center {
    top: 50%;
    transform: translateY(-50%);
}

/* ---- popup ---- */
.inq-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.inq-modal[hidden] {
    display: none;
}

.inq-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
}

.inq-modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--color-white);
    padding: 44px 40px 40px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
    animation: inqPop .32s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes inqPop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.inq-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-black);
    transition: color .2s ease;
}

.inq-modal__close:hover {
    color: var(--color-gold);
}

.inq-modal__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 24px;
    text-align: center;
    color: var(--color-black);
}

/* CF7 fields — theme ke baaki forms jaisa simple underline style */
.inq-modal__form p {
    margin: 0 0 18px;
}

.inq-modal__form input[type="text"],
.inq-modal__form input[type="email"],
.inq-modal__form input[type="tel"],
.inq-modal__form select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d9d9d9;
    background: transparent;
    padding: 12px 2px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
    outline: none;
    transition: border-color .25s ease;
}

.inq-modal__form input:focus,
.inq-modal__form select:focus {
    border-bottom-color: var(--color-gold);
}

.inq-modal__form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 12px) 21px, calc(100% - 7px) 21px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.inq-modal__form input[type="submit"] {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--color-black);
    border-radius: 80px;
    background: var(--color-black);
    color: var(--color-white);
    padding: 15px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.inq-modal__form input[type="submit"]:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

body.inq-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .inq-tab {
        padding: 18px 10px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .inq-modal {
        padding: 16px;
    }

    .inq-modal__box {
        padding: 36px 20px 28px;
        max-height: calc(100vh - 32px);
    }

    .inq-modal__title {
        font-size: 24px;
        margin-bottom: 18px;
    }
}

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

/* Inquiry popup — project select ka invalid state + inline tip */
.inq-modal__form select.is-invalid {
    border-bottom-color: #dc3232;
}

.inq-modal__form .inq-error {
    display: block;
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #dc3232;
}

.inq-modal__form .inq-error[hidden] {
    display: none;
}