body {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75em;
    color: #999;
    overflow-x: hidden !important;
    background: #222;
}
/* Video background */
.video-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

/* Dark overlay to replace data-overlay-dark */
.video-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.20);
  z-index:1;
}

/* Ensure caption sits above video + overlay */
.header .caption{
  position:relative;
  z-index:2;
}

/* Optional: keep hero full-height like your slider */
.header{
  position:relative;
  overflow:hidden;
  min-height:100vh;
}

/* CTA look to match your existing style */
.hero-cta{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.6);
  padding:.65rem 1.25rem;
  letter-spacing:.5px;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero-cta:hover{ 
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  border-color:#fff;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #heroVideo{ animation:none }
  #heroVideo[autoplay]{ -webkit-animation:none; }
  #heroVideo{ display:none; }            /* show poster only */
  .video-overlay{ background:rgba(0,0,0,.45); }
}
/* ---------- Vars you can tweak ---------- */
:root{
  --mobile-title:#1f1f1f;
  --mobile-sub:#6C7A74;
  --mobile-divider:rgba(0,0,0,.08);
  --mobile-arrow:#90A39B;
}

/* ========================================
   DESKTOP/TABLET: overlay triptych (inside <header>)
   ======================================== */
.hero-panels-desktop{
  position:absolute;
  left:0; right:0; bottom:0;
  z-index:2;                       /* above video/overlay */
  display:flex;
  width:100%;
  border-top:1px solid rgba(255,255,255,.25);
}
.hero-panels-desktop .row{ flex:1; margin:0; width:100%; }
.hero-panels-desktop .col-12{ padding:0; }

.hero-panels-desktop .panel{
  display:block; width:100%; height:100%;
  text-decoration:none;
  color:#fff;
  background:rgba(0,0,0,.25);
  transition:background .25s ease, transform .2s ease;
  padding:clamp(18px, 2.2vw, 32px) clamp(16px, 2vw, 24px);
  /* “centered indent” */
  padding-left:clamp(40px, 6vw, 80px);
}

/* vertical dividers — desktop only now */
@media (min-width:1200px){
  .hero-panels-desktop .col-md-4:not(:last-child) .panel{
    border-right:1px solid rgba(255,255,255,.25);
  }
}

/* text styles */
.hero-panels-desktop .eyebrow{
  display:block;
  font-size:.8rem; letter-spacing:.12em; text-transform:uppercase;
  opacity:.85; margin-bottom:.35rem; font-weight:600;
}
.hero-panels-desktop .panel-title{
  font-family: 'Cormorant Garamond', serif;
  font-weight:600; line-height:1.15; margin:0;
  font-size:clamp(1.25rem, 2vw + .5rem, 1.75rem);
  color:#f5eee9;
}

/* hover */
.hero-panels-desktop .panel:hover{
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}

/* header base */
.header{ position:relative; overflow:hidden; }

/* reserve space for overlay caption only on desktop */
@media (min-width:1200px){
  .header .caption{ padding-bottom:clamp(140px, 22vh, 240px); }
}

/* ========================================
   MOBILE/TABLET-UP-TO-1199: stacked list (below </header>)
   ======================================== */

/* hidden by default; we switch it on below 1200 */
.hero-panels-mobile{ display:none; }

@media (max-width:1199.98px){
  .hero-panels-mobile{ display:block; background:#fff; }

  .hero-panels-mobile .col-12:not(:last-child) .panel{
    border-bottom:1px solid var(--mobile-divider);
  }
  .hero-panels-mobile .panel.media-link{
    display:flex; align-items:center; gap:12px;
    padding:14px 8px 14px 0; background:#fff; color:inherit;
    text-decoration:none; -webkit-tap-highlight-color:transparent;
  }
  .hero-panels-mobile .thumb{
    flex:0 0 64px; width:64px; aspect-ratio:1/1;
    border-radius:1px; overflow:hidden; background:#eee;
  }
  .hero-panels-mobile .thumb img{
    width:100%; height:100%; object-fit:cover; display:block;
  }
  .hero-panels-mobile .text{ flex:1; min-width:0; }
  .hero-panels-mobile .title{
    display:block; font-family: 'Cormorant Garamond', serif; font-weight:600;
    font-size:1.125rem; line-height:1.1; color:var(--mobile-title);
    margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .hero-panels-mobile .sub{
    display:block; font-size:.92rem; line-height:1.25; color:var(--mobile-sub);
  }
  .hero-panels-mobile .arrow{
    flex:0 0 auto; color:var(--mobile-arrow);
    display:flex; align-items:center; justify-content:center;
    padding-left:6px; transition:transform .18s ease;
  }
  .hero-panels-mobile .panel.media-link:hover .arrow,
  .hero-panels-mobile .panel.media-link:active .arrow{
    transform:translateX(3px);
  }
}

/* ========================================
   Visibility guards (critical)
   ======================================== */
@media (max-width:1199.98px){
  .hero-panels-desktop{ display:none !important; visibility:hidden !important; }
  .gradient-edge-bottom{ display:none; }  /* prevents overlap over mobile section */
  .header{ overflow:visible; }            /* allow stacked section to sit below */
}
@media (min-width:1200px){
  .hero-panels-desktop{ display:flex !important; }
  .hero-panels-mobile{ display:none !important; }
}

/* mobile arrow sizing + color for the new SVG */
.hero-panels-mobile .arrow { color: var(--mobile-arrow); }
.hero-panels-mobile .arrow .intro2-arrow{
  width: 28px;
  height: 14px;
  display: block;
}
.hero-panels-mobile .arrow .intro2-arrow path{
  fill: #a98279;
}

/* ---------- base tweaks (all sizes) ----------- */
.hero-panels-mobile .panel.media-link{
  display:flex; align-items:center; gap:12px;
  padding:14px 8px 14px 0;
  background:#fff; color:inherit; text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.hero-panels-mobile .thumb{
  flex:0 0 64px; width:64px; aspect-ratio:5/5;
  border-radius:2px; overflow:hidden; background:#eee;
}
.hero-panels-mobile .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-panels-mobile .text{ flex:1; min-width:0; }
.hero-panels-mobile .title{
  display:block; font-family: 'Cormorant Garamond', serif; font-weight:500;
  font-size:1.425rem; line-height:1.1; color:#405263;
  margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hero-panels-mobile .sub{ display:block; font-size:.92rem; line-height:1.25; color:var(--mobile-sub, #998975); }
.hero-panels-mobile .arrow{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; padding-left:6px; }
.hero-panels-mobile .arrow .intro2-arrow{ width:28px; height:14px; display:block; }
.hero-panels-mobile .arrow .intro2-arrow path{ fill:#90a39b; }

/* ---------- 576–767 ---------- */
@media (min-width:576px) and (max-width:767.98px){
  .hero-panels-mobile .panel.media-link{ gap:14px; padding:16px 0; }
  .hero-panels-mobile .thumb{ width:84px; flex-basis:84px; }
  .hero-panels-mobile .title{ font-size:1.6rem; font-weight: 500; }
  .hero-panels-mobile .sub{ font-size:1rem; }
  .hero-panels-mobile .arrow .intro2-arrow{ width:32px; height:16px; }
}

/* ---------- 768–991 (tablet) ---------- */
@media (min-width:768px) and (max-width:991.98px){
  .hero-panels-mobile .panel.media-link{ gap:18px; padding:18px 0; }
  .hero-panels-mobile .thumb{ width:96px; flex-basis:96px; border-radius:3px; }
  .hero-panels-mobile .title{ font-size:1.7rem; }
  .hero-panels-mobile .sub{ font-size:1.08rem; }
  .hero-panels-mobile .arrow .intro2-arrow{ width:36px; height:16px; }
}

/* ---------- 992–1199 (large tablet / 1198 case) ---------- */
@media (min-width:992px) and (max-width:1199.98px){
  .hero-panels-mobile .panel.media-link{ gap:22px; padding:22px 0; }
  .hero-panels-mobile .thumb{
    width:140px; flex-basis:140px; aspect-ratio:16/10; border-radius:4px;
  }
  .hero-panels-mobile .title{ font-size:1.6rem; }
  .hero-panels-mobile .sub{ font-size:1.1rem; }
  .hero-panels-mobile .arrow .intro2-arrow{ width:40px; height:18px; }
}

/* ---------- =1200 (DESKTOP GRID like screenshot) ---------- */
/* Make sure this section is visible on desktop */
@media (min-width:1200px){
  .hero-panels-mobile{ display:block !important; background:transparent; padding:18px 0 8px; }

  /* Grid of 3 cards */
  .hero-panels-mobile .row{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
    margin:0; /* eliminate Bootstrap row gutters */
  }
  .hero-panels-mobile .col-12{ padding:0; } /* neutralize col padding inside grid */

  /* Card */
  .hero-panels-mobile .panel.media-link{
    flex-direction:column; align-items:stretch; gap:0; padding:0;
    background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:3px;
    overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.06);
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position:relative;
  }
  .hero-panels-mobile .panel.media-link:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,.15);
    border-color:rgba(0,0,0,.12);
  }

  /* Top image */
  .hero-panels-mobile .thumb{
    width:100%; flex:0 0 auto; aspect-ratio:16/9; border-radius:0; background:#ddd;
  }

  /* Text block */
  .hero-panels-mobile .text{
    padding:20px 24px 28px;
  }
  .hero-panels-mobile .title{
    font-size:clamp(22px, 1.6vw, 28px);
    margin-bottom:6px; white-space:normal; overflow:visible; text-overflow:clip;
  }
  .hero-panels-mobile .sub{
    font-size:clamp(16px, 1vw, 18px); color:#be918e;
  }

  /* Arrow in bottom-right */
  .hero-panels-mobile .arrow{
    position:absolute; right:22px; bottom:30px; padding:0;
  }
  .hero-panels-mobile .arrow .intro2-arrow{ width:42px; height:20px; }
}
/* === Desktop (=1200): show the grid BELOW the header, hide the overlay === */
/* Desktop: make the hero panels section full width */
@media (min-width:1200px){
  /* hide the old overlay version if any */
  .hero-panels-desktop{ display:none !important; visibility:hidden !important; }

  /* show the section version */

  .hero-panels-mobile{
    display:block !important;
    position:static !important;
    overflow:visible;
    /* outer breathing room */
    background: rgba(255,255,255,.9) url('../img/pattern-1-white.svg') no-repeat center;
    padding-left:0; padding-right:0; padding-top:2rem; padding-bottom:2rem;
  }
  /* remove the container width cap just for this section */
  .hero-panels-mobile > .container,
  .hero-panels-mobile > .container-lg,
  .hero-panels-mobile > .container-xl,
  .hero-panels-mobile > .container-xxl{
    max-width: none !important;
    width: 100% !important;
    padding-left: 0;                 /* we’ll control gutters on the row/cols */
    padding-right: 0;
  }

  /* full-bleed row with nice gutters */
  .hero-panels-mobile .row{
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: clamp(24px, 3vw, 40px);
  }
  .hero-panels-mobile .col-12{
    padding-left: calc(var(--bs-gutter-x) / 2);
    padding-right: calc(var(--bs-gutter-x) / 2);
  }

  /* let it sit cleanly beneath the header */
  .header{ overflow: visible; }
}
/* Mobile & tablet: visible */
.hero-panels-mobile{ display:block; }

@media (min-width:1200px){
  .hero-panels-mobile{ display:none !important; }
}

/* Make sure it's not sitting under the hero video/overlay */
.hero-panels-mobile{
  position: relative;     /* new stacking context */
  z-index: 10;            /* above typical hero overlays */
}

/* If your hero creates clipping, give some spacing */
.hero-panels-mobile{ margin-top: 1rem; }

/* ===== Desktop overlay tiles (force) ===== */
@media (min-width:1200px){

  /* 0) Beat Bootstrap d-xl-none */
  .hero-panels-mobile.d-xl-none{ display:block !important; }

  /* 1) Section + grid */
  .hero-panels-mobile{
    display:block !important;
    background:#e5e4df !important;
    margin-top:0 !important;
    padding:30px;
    overflow:visible !important;
  }
  .hero-panels-mobile .row{
    display:grid !important;
    grid-template-columns:repeat(3, 1fr) !important;
    gap:clamp(20px, 2vw, 32px) !important;
    margin:0 !important;
  }
  .hero-panels-mobile .col-12{ padding:0 !important; }

  /* 2) PURE overlay tile (kills card look) */
  .hero-panels-mobile .panel.media-link{
    position:relative !important;
    display:block !important;
    height:0 !important;
    padding-bottom:56% !important;           /* 16:9 */
    border:0 !important;
    border-radius:3px !important;
    box-shadow:none !important;
    background:#000 !important;
    overflow:hidden !important;
    /* undo any flex/column from earlier rules */
    flex-direction:initial !important;
    align-items:initial !important;
    gap:0 !important;
    padding:0 !important;
  }

  /* 3) Image fills */
  .hero-panels-mobile .thumb{
    position:absolute !important; inset:0 !important;
    width:100% !important; height:100% !important;
    flex:none !important; border-radius:0 !important;
  }
  .hero-panels-mobile .thumb img{
    width:100% !important; height:100% !important; display:block !important;
    object-fit:cover !important;
    transform:scale(1.03);
    filter:brightness(.72);
    transition:transform .35s ease, filter .35s ease;
  }

  /* 4) Soft gradient */
  .hero-panels-mobile .panel.media-link::after{
    content:""; position:absolute; inset:0; pointer-events:none;
    background:linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%);
  }

  /* 5) Overlay text bottom-left */
  .hero-panels-mobile .text{
    position:absolute !important; left:24px !important; bottom:24px !important;
    padding:0 !important; z-index:2 !important;
  }
  .hero-panels-mobile .title{
    margin:0 0 6px !important; font-weight:700 !important;
    font-size:clamp(22px, 1.6vw, 28px) !important;
    color:#fff !important; white-space:normal !important;
    overflow:visible !important; text-overflow:clip !important;
  }
  .hero-panels-mobile .sub{ color:rgba(255,255,255,.9) !important; }

  /* 6) Arrow below text */
  .hero-panels-mobile .arrow{
    position:absolute !important; left:24px !important; bottom:24px !important;
    transform:translateY(38px);
    padding:0 !important;
  }
  .hero-panels-mobile .arrow .intro2-arrow path{ fill:#fff !important; }

  /* 7) Hover polish */
  .hero-panels-mobile .panel.media-link:hover .thumb img{
    transform:scale(1.06); filter:brightness(.86);
  }
}
/* =========================================
   Fix: even edges for hero-panels-mobile (=1200px)
   - kill section padding set in video.css
   - row owns the visible left/right padding
   - no negative margins / no col padding
   ========================================= */
@media (min-width:1200px){

  /* 1) Zero any section padding (beats video.css) */
  section.hero-panels-mobile.hero-panels-mobile{
    padding-left: 0 !important;
    padding-right: 0 !important;
    --edge: clamp(20px, 2.2vw, 32px);  /* one knob for edges + gaps */
  }

  /* 2) Also zero any inner container padding just in case */
  section.hero-panels-mobile > .container,
  section.hero-panels-mobile > .container-fluid{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left:  auto;
    margin-right: auto;
  }

  /* 3) The row defines the visible edges + gaps */
  section.hero-panels-mobile .row{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: var(--edge) !important;

    /* the only left/right padding you see */
    padding-left:  var(--edge) !important;
    padding-right: var(--edge) !important;

    margin-left: 0 !important;  /* kill Bootstrap negatives */
    margin-right: 0 !important;
  }

  /* 4) Remove column padding entirely (grid gap handles spacing) */
  section.hero-panels-mobile .row > [class*="col-"]{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}