:root{
  --black:#0b0b0b;
  --dark:#141414;
  --footer:#0b0b0b;
  --white:#ffffff;
  --accent:#2ab5b8;
}

/* =========================
   RESET
   ========================= */
*{ box-sizing:border-box; margin:0; padding:0; }

body{
  font-family:'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--dark);
  color:var(--white);
  overflow-x:hidden;
}

body.page{ padding-top:0px; }

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

/* =========================
   GLOBAL MICRO INTERACTION
   ========================= */
a, button{
  transition:transform .18s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}
a:hover, button:hover{ transform:translateY(-1px) scale(1.02); }
a:active, button:active{ transform:translateY(0) scale(.99); }

/* =========================
   PRELOADER – SINGLE LOGO BOB
   ========================= */

#preloader{
  position:fixed;
  inset:0;
  background:#0b0b0b;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

#preloader.is-hidden{
  opacity:0;
  pointer-events:none;
  transition:opacity .75s ease;
}

.preloader-logo{
  width:clamp(300px, 48vw, 460px);
  height:auto;
  animation:preloaderBob 3.6s cubic-bezier(.22,.9,.25,1) infinite;
  will-change:transform;
  transform-origin:center;
}

/* Smooth, calm bob */
@keyframes preloaderBob{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(-8px);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .preloader-logo{
    animation:none;
  }
}


/* =========================
   FIXED HERO BACKGROUND + MOTION LAYER
   ========================= */
.hero-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background:url("/assets/branding/hero-background.jpg") center / cover no-repeat;
}

/* subtle grain */
.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  mix-blend-mode:overlay;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 4px
    );
  animation:grainShift 8s steps(8,end) infinite;
}
@keyframes grainShift{
  0%{ transform:translate3d(0,0,0) }
  20%{ transform:translate3d(-1%,1%,0) }
  40%{ transform:translate3d(1%,-1%,0) }
  60%{ transform:translate3d(-1%,-1%,0) }
  80%{ transform:translate3d(1%,1%,0) }
  100%{ transform:translate3d(0,0,0) }
}

/* light sweep */
.hero-bg::after{
  content:"";
  position:absolute;
  inset:-20% -40%;
  pointer-events:none;
  opacity:.14;
  background:linear-gradient(
    110deg,
    transparent 0%,
    rgba(255,255,255,.10) 35%,
    rgba(255,255,255,.16) 45%,
    rgba(255,255,255,.08) 55%,
    transparent 70%
  );
  transform:translateX(-35%);
  animation:sweep 10s cubic-bezier(.2,.8,.2,1) infinite;
}
@keyframes sweep{
  0%{ transform:translateX(-35%) }
  45%{ transform:translateX(15%) }
  100%{ transform:translateX(35%) }
}

/* =========================
   HEADER
   ========================= */
.header{
  position:fixed;
  top:0;
  width:100%;
  background:rgba(16,16,16,.65);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:1000;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem clamp(1rem,3vw,2.5rem);
}
.header-logo{ height:46px; display:block; }

.nav a{
  color:var(--white);
  text-decoration:none;
  margin-left:2rem;
  font-weight:500;
  opacity:.92;
  position:relative;
}
.nav a:hover{ opacity:1; }

/* underline */
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .25s ease;
}
.nav a:hover::after{ width:100%; }

/* =========================
   MOBILE MENU
   ========================= */
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:none;
  cursor:pointer;
}
.menu-toggle .bars{
  width:18px;
  height:14px;
  position:relative;
  margin:auto;
}
.menu-toggle .bar{
  position:absolute;
  width:100%;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition:.22s;
  left:0;
}
.bar1{ top:0; }
.bar2{ top:6px; }
.bar3{ top:12px; }

.menu-toggle.is-open .bar1{ top:6px; transform:rotate(45deg); }
.menu-toggle.is-open .bar2{ opacity:0; }
.menu-toggle.is-open .bar3{ top:6px; transform:rotate(-45deg); }

.mobile-nav{
  display:none;
  position:fixed;
  top:78px;
  right:1.5rem;
  width:min(320px,90vw);
  background:rgba(16,16,16,.9);
  backdrop-filter:blur(14px);
  border-radius:18px;
  padding:1rem;
  z-index:1100;
}
.mobile-nav.is-open{
  display:flex;
  flex-direction:column;
}
.mobile-nav a{
  text-align:right;
  padding:.75rem;
  color:#fff;
  text-decoration:none;
  opacity:.95;
}
.mobile-nav a:hover{ opacity:1; }

@media(max-width:900px){
  .desktop-nav{ display:none; }
  .menu-toggle{ display:flex; align-items:center; justify-content:center; }
  .menu-toggle .bars{ margin:0; }
}

/* =========================
   HERO
   ========================= */
.hero{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.hero-logo-outline{
  width:clamp(300px,55vw,520px);
}

/* =========================
   CHEVRON
   ========================= */
.scroll-hint{
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  width:34px;
  height:34px;
  opacity:.6;
  animation:float 2.8s ease-in-out infinite;
  z-index:900;
  transition:opacity .18s ease, transform .18s ease;
}
.scroll-hint svg{ width:100%; height:100%; }
.scroll-hint path{
  stroke:#fff;
  stroke-width:2.5;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.scroll-hint.is-hidden{
  opacity:0;
  animation:none;
  pointer-events:none;
  transform:translate(-50%,-10px);
}
@keyframes float{
  0%,100%{transform:translate(-50%,0)}
  50%{transform:translate(-50%,6px)}
}

/* =========================
   LATEST RESULT BOX
   ========================= */
.latest-panel--fixed{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:950;
  width:min(320px,88vw);
  padding:.85rem .95rem;
  border-radius:16px;
  background:rgba(16,16,16,.30);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 16px 44px rgba(0,0,0,.35);
  text-decoration:none;
  color:#fff;
  transition:transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease;
  overflow:hidden;
}
.latest-panel--fixed:hover{
  transform:translateY(-2px) scale(1.01);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 20px 60px rgba(0,0,0,.52);
}

/* sheen overlay on latest box */
.latest-panel--fixed::before{
  content:"";
  position:absolute;
  inset:-60%;
  background:radial-gradient(
    circle at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(255,255,255,.08),
    transparent 55%
  );
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}
.latest-panel--fixed:hover::before{ opacity:1; }

.latest-map{
  width:100%;
  height:74px;
  margin-bottom:.55rem;
  border-radius:12px;
  background:rgba(42,181,184,.10);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  z-index:1;
}
.latest-map-mask{
  width:92%;
  height:92%;
  background:var(--accent);
  -webkit-mask-image:url("/assets/track-maps/brands-hatch-map.png");
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  mask-image:url("/assets/track-maps/brands-hatch-map.png");
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
}

.latest-kicker{
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.66rem;
  opacity:.82;
  position:relative;
  z-index:1;
}
.latest-title{
  margin-top:.22rem;
  font-weight:850;
  font-size:.98rem;
  color:var(--accent);
  position:relative;
  z-index:1;
}
.latest-cta{
  margin-top:.22rem;
  font-weight:800;
  opacity:.92;
  position:relative;
  z-index:1;
}

/* =========================
   SECTIONS
   ========================= */
.section{
  width:100%;
  padding:6rem 1.5rem;
  text-align:center;
  background:var(--dark);
  border-top-left-radius:26px;
  border-top-right-radius:26px;
  box-shadow:0 -18px 40px rgba(0,0,0,.45);
}
.section > h1,
.section > h2,
.section > h3,
.section > p,
.section > .blog-list,
.section > .form,
.section > .about-panel,
.section > img,
.section > ul{
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}

h1,h2{
  color:var(--accent);
  letter-spacing:-.02em;
  margin-bottom:1rem;
}
p{
  line-height:1.7;
  opacity:.92;
  margin:.9rem 0;
}

/* =========================
   REVEAL
   ========================= */
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.active{ opacity:1; transform:none; }

/* =========================
   NEWS / BLOG CARDS + SHEEN + POP
   ========================= */
.blog-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
@media(max-width:900px){
  .blog-list{ grid-template-columns:1fr; }
}

.card-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.card{
  background:var(--dark);
  padding:2rem;
  border-radius:18px;
  border:3px solid rgba(255,255,255,.22);
  display:flex;
  flex-direction:column;
  height:100%;
  position:relative;
  overflow:hidden;

  transition:
    transform .24s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s cubic-bezier(.2,.8,.2,1),
    border-color .24s ease;
}

.card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  object-position:center;
  border-radius:14px;
  margin-bottom:1rem;
}

.card p{ flex-grow:1; }

.card-link:hover .card{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  border-color:rgba(255,255,255,.32);
}

/* Sheen overlay */
.card::before{
  content:"";
  position:absolute;
  inset:-60%;
  background:radial-gradient(
    circle at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(255,255,255,.07),
    transparent 55%
  );
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}
.card-link:hover .card::before{ opacity:1; }

.read-more{
  color:var(--accent);
  font-weight:800;
  margin-top:1rem;
}

/* =========================
   ARTICLE IMAGES
   ========================= */
.content-image{
  width:min(900px,100%);
  height:auto;
  border-radius:16px;
  display:block;
  margin:1rem auto;
}

/* =========================
   SPONSOR LIST
   ========================= */
.sponsor-list{
  list-style:disc;
  text-align:left;
  padding-left:1.2rem;
  margin:1rem auto 0;
  max-width:900px;
}
.sponsor-list li{ margin:.45rem 0; opacity:.92; }

/* =========================
   CONTACT FORM
   ========================= */
.form{
  max-width:650px;
  margin:2rem auto 0;
  text-align:left;
  background:var(--dark);
  padding:2rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
}
.form label{ display:block; margin-top:1rem; margin-bottom:.4rem; }
.form input, .form textarea{
  width:100%;
  padding:.95rem 1rem;
  border-radius:12px;
  border:none;
  background:#0f0f0f;
  color:var(--white);
  outline:1px solid rgba(255,255,255,.08);
}
.form textarea{ resize:vertical; }
.form button{
  margin-top:1.25rem;
  padding:.9rem 1.3rem;
  border:none;
  border-radius:999px;
  background:var(--accent);
  color:var(--white);
  font-weight:850;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  background:var(--footer);
  padding:3.5rem 1.5rem;
  width:100%;
}
.footer-center{
  max-width:1200px;
  margin:0 auto;
  text-align:center;
}
.footer-socials{
  display:flex;
  justify-content:center;
  gap:1.2rem;
  margin-bottom:1.2rem;
}
.social-icon{
  width:22px;
  height:22px;
  fill:#2a2a2a;
}
.footer-logo{
  display:block;
  height:54px;
  margin:1.2rem auto;
}
.footer-nav{
  display:flex;
  justify-content:center;
  gap:.6rem;
  margin-bottom:.6rem;
}
.footer-nav a{
  color:#fff;
  text-decoration:none;
}
.footer-copy{
  font-size:.8rem;
  opacity:.55;
}

/* =========================
   POST NAV
   ========================= */
.post-nav{
  max-width:1200px;
  margin:0 auto;
  padding:0 1.5rem 3.5rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
}

.post-nav a{
  display:inline-flex;
  flex-direction:column;
  gap:.2rem;
  padding:.95rem 1.2rem;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  transition:transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease;

  /* centred writing */
  align-items:center;
  text-align:center;
}

.post-nav a:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.20);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}

.post-nav .label{
  font-weight:800;
  font-size:.78rem;
  color:var(--accent);
  opacity:.95;
}

/* Mobile side-by-side */
@media(max-width:700px){
  .post-nav{
    flex-direction:row;
    align-items:stretch;
  }
  .post-nav a{
    width:50%;
  }
}

/* =========================
   MOBILE FIXES
   ========================= */
@media (max-width: 600px){

  /* hero bias right */
  .hero-bg{
    background-position: 92% center;
  }

  /* dropdown nudges */
  .mobile-nav{
    top:84px;
    right:0.75rem;
  }

  /* latest box grid layout */
  .latest-panel--fixed{
    left:12px;
    right:12px;
    width:auto;
    bottom:12px;
    padding:.65rem .75rem;
    border-radius:14px;

    display:grid;
    grid-template-columns: 1fr 96px;
    grid-template-rows:auto auto auto;
    column-gap:.75rem;
    align-items:center;
  }

  .latest-kicker{ grid-column:1; grid-row:1; text-align:left; font-size:.60rem; margin:0; }
  .latest-title { grid-column:1; grid-row:2; text-align:left; font-size:.92rem; line-height:1.2; margin-top:.1rem; }
  .latest-cta   { grid-column:1; grid-row:3; text-align:left; font-size:.82rem; margin-top:.15rem; opacity:.9; }

  .latest-map{
    grid-column:2;
    grid-row:1 / span 3;
    display:flex;
    width:96px;
    height:56px;
    margin:0;
    border-radius:12px;
    align-self:center;
    justify-self:end;
  }

  .latest-map-mask{
    width:88%;
    height:88%;
  }
}

/* =========================
   REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion: reduce){
  .hero-bg::before,
  .hero-bg::after{
    animation:none !important;
  }
  .scroll-hint{ animation:none !important; }
}

/* =========================
   ABOUT PAGE (CLEANED)
   ========================= */
.about-page{
  background:transparent;
}

.about-hero{
  min-height:calc(100vh - 95px);
  padding:6rem 1.5rem 4.5rem;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;

  background-image:url("/assets/about/about-hero.jpg");
  background-size:cover;
  background-repeat:no-repeat;

  background-position: calc(50% + 10px) calc(50% - 15px);
}

.about-box{
  max-width:720px;
  width:min(720px, 92vw);
  margin-left:clamp(1rem, 6vw, 6rem);
  margin-top:clamp(0.5rem, 3vw, 2rem);

  background:rgba(20,20,20,.78);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:2rem;
  text-align:left;
  box-shadow:0 18px 55px rgba(0,0,0,.45);
}

.about-box h1{
  margin-bottom:1rem;
}

@media (max-width:600px){
  .about-hero{
    padding:5.25rem 1rem 4rem;

    /* Mobile: keep biased right */
    background-position:75% center;
  }
  .about-box{
    margin-left:auto;
    margin-right:auto;
    width:92vw;
  }
}

/* Ensure footer styling/spacing matches other pages on About */
body.about-page .footer{
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/* =========================
   ABOUT PAGE – FINAL ADJUSTMENT
   ========================= */

/* Slight zoom gives room to move the image */
body.about-page .about-hero{
  background-size: 106% auto !important;
}

/* Mobile keeps your existing right bias */
@media (max-width:600px){
  body.about-page .about-hero{
    background-size: cover !important;
    background-position: 75% center !important;
  }
}

/* Force footer to match other pages exactly */
body.about-page .footer{
  width:100%;
  margin-top:0;
  border-radius:0;
  background:var(--footer);
}

/* =========================
   ABOUT PAGE – FINAL FORCE FIX
   (kills homepage hero-bg + forces about background + fixes footer)
   ========================= */

/* 1) Remove the homepage hero background layer on About */
body.about-page .hero-bg{
  display:none !important;
}

/* 2) Force About hero image (tiny zoom + move right/up) */
body.about-page .about-hero{
  background-image: url("assets/about/about-hero.jpg") !important; /* styles.css is in root */
  background-repeat: no-repeat !important;
  background-size: 104% auto !important; /* tiny zoom gives room to move */
  background-position: calc(50% + 14px) calc(50% - 18px) !important; /* right + up */
}

/* Keep your mobile framing exactly as before */
@media (max-width:600px){
  body.about-page .about-hero{
    background-size: cover !important;
    background-position: 92% center !important;
  }
}

/* 3) Make About footer match other pages */
body.about-page .footer{
  width:100% !important;
  background: var(--footer) !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
}

/* =========================
   ABOUT PAGE – HARD FIX (guaranteed)
   Uses its own fixed background layer so positioning ALWAYS works
   ========================= */

/* Keep the homepage hero background off on About */
body.about-page .hero-bg{ display:none !important; }

/* Create a dedicated About background layer */
body.about-page{
  position:relative;
  background:transparent !important;
}

body.about-page::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;

  /* IMPORTANT: styles.css is in root (same as HTML), so this path is correct */
  background-image:url("assets/about/about-hero.jpg");
  background-repeat:no-repeat;
  background-size:cover;
  background-position: calc(50% + 14px) calc(50% - 18px);

  /* Tiny zoom that cannot expose blank edges */
  transform: scale(1.04);
  transform-origin: center;
}

/* Ensure the About content section doesn’t paint over the background */
body.about-page .about-hero{
  background:transparent !important;
}

/* Mobile keeps your car framing */
@media (max-width:600px){
  body.about-page::before{
    transform: scale(1.00);
    background-position: 92% center;
  }
}

/* Footer consistency on About */
body.about-page .footer{
  width:100% !important;
  background: var(--footer) !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
}

/* =========================
   ABOUT PAGE – scroll background + tweak position/zoom + footer match
   ========================= */

/* keep homepage hero-bg off on About */
body.about-page .hero-bg{ display:none !important; }

/* make About background scroll like a normal photo (NOT fixed) */
body.about-page{
  position:relative;
  background:transparent !important;
}
body.about-page::before{
  content:"";
  position:absolute;               /* ✅ scrolls with page */
  inset:0;
  z-index:-1;

  background-image:url("assets/about/about-hero.jpg");
  background-repeat:no-repeat;
  background-size:cover;

  /* ✅ move a bit right + slightly up */
  background-position: calc(50% + 22px) calc(50% - 10px);

  /* ✅ tiny bit more zoom than before */
  transform: scale(1.06);
  transform-origin:center;
}

/* ensure About content doesn’t paint a solid layer */
body.about-page .about-hero{
  background:transparent !important;
}

/* ✅ Move the text box slightly left */
body.about-page .about-box{
  margin-left: clamp(0.75rem, 4.5vw, 4.5rem) !important;
}

/* ✅ Footer: remove any About-specific interference and force normal layout */
body.about-page .footer{
  width:100% !important;
  background: var(--footer) !important;
  margin:0 !important;
  border-radius:0 !important;
  position:relative !important;
  z-index:1 !important;
}
body.about-page .footer-center,
body.about-page .footer-socials,
body.about-page .footer-nav{
  max-width:1200px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Mobile: keep your car framing */
@media (max-width:600px){
  body.about-page::before{
    transform: scale(1.00);
    background-position: 92% center;
  }
  body.about-page .about-box{
    margin-left:auto !important;
    margin-right:auto !important;
  }
}
/* =========================
   ABOUT PAGE – FIX BACKGROUND SCOPE + FOOTER LAYER
   ========================= */

/* 1) Kill any page-wide About background layer */
body.about-page::before{
  content:none !important;
}

/* 2) Ensure homepage hero layer stays off on About */
body.about-page .hero-bg{
  display:none !important;
}

/* 3) Put the About photo ONLY on the about section (scrolls normally) */
body.about-page .about-hero{
  position:relative;
  background-image:url("assets/about/about-hero.jpg") !important;
  background-repeat:no-repeat !important;
  background-size:106% auto !important; /* tiny zoom so it can move */
  background-position: calc(50% + 22px) calc(50% - 12px) !important; /* right + up */
}

/* 4) Move the text box slightly left */
body.about-page .about-box{
  margin-left: clamp(0.75rem, 4.5vw, 4.5rem) !important;
}

/* 5) Footer must always sit on top and be the final visual block */
body.about-page .footer{
  position:relative !important;
  z-index:5 !important;
  background:var(--footer) !important;
  width:100% !important;
  margin:0 !important;
  border-radius:0 !important;
}

/* Mobile: keep your car framing */
@media (max-width:600px){
  body.about-page .about-hero{
    background-size:cover !important;
    background-position:92% center !important;
  }
  body.about-page .about-box{
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* =========================
   ABOUT PAGE – static background + glass panel left
   ========================= */

/* Stop homepage hero bg showing on About (if you still include it in HTML) */
body.about-page .hero-bg{
  display:none !important;
}

/* Static background for About page */
body.about-page{
  background:
    linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)),
    url("assets/about/about-hero.jpg") center / cover no-repeat fixed !important;
}

/* Layout wrapper */
body.about-page .about-layout{
  min-height: calc(100vh - 88px); /* respects your fixed header */
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  display:flex;
  align-items:center;            /* vertically centers the panel */
  justify-content:flex-start;    /* panel stays left */
}

/* Glass panel – matches “latest result box” vibe */
body.about-page .about-panel-glass{
  width: min(720px, 92vw);
  margin-left: clamp(0rem, 2vw, 1.5rem); /* slight off the wall */
  padding: 2rem 2rem;

  background: rgba(16,16,16,.32);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);

  text-align:left;
}

/* Headings in your accent blue */
body.about-page .about-panel-glass h1{
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Make sure paragraphs keep your global rhythm */
body.about-page .about-panel-glass p{
  opacity: .92;
}

/* Mobile: keep it clean and centered */
@media (max-width: 700px){
  body.about-page{
    background-attachment: scroll !important; /* iOS Safari reliability */
    background-position: 92% center !important; /* keep car framed */
  }
  body.about-page .about-layout{
    align-items:flex-start;
    padding-top: 2.5rem;
  }
  body.about-page .about-panel-glass{
    margin-left: auto;
    margin-right: auto;
    padding: 1.4rem 1.35rem;
  }
}

/* =========================
   ABOUT PAGE – background scroll + slight zoom + reposition
   ========================= */

/* Desktop + tablet: scrolls normally + tiny zoom + move up/right */
body.about-page{
  background-attachment: scroll !important; /* ✅ scrolls away like normal */
  background-size: 115% auto !important;    /* ✅ tiny zoom to allow movement */
  background-position: calc(50% + 143px) calc(50% - 268px) !important; /* ✅ right + up */
}

/* Mobile: focus point biased 65% to the right, centered vertically */
@media (max-width: 700px){
  body.about-page{
    background-size: cover !important;
    background-position: 65% center !important; /* ✅ 65% right bias */
  }
}

html{
  scroll-behavior:smooth;
}
.scroll-hint:active{
  transform:translateX(-50%) translateY(2px);
}
/* Chevron hide state (used by JS) */
.scroll-hint.is-hidden{
  opacity:0;
  transform:translate(-50%);
  pointer-events:none;
}
/* =========================
   CHEVRON – grey circle + keep position fixed
   ========================= */

.scroll-hint{
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(255,255,255,.06);         /* tiny grey circle */
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(10px);
}

/* Make SVG slightly smaller inside circle */
.scroll-hint svg{
  width:22px;
  height:22px;
}

/* Hover micro pop */
.scroll-hint:hover{
  opacity:.85;
  transform:translateX(-50%) scale(1.03);
}

/* Hide state: fade ONLY (no lifting/moving) */
.scroll-hint.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateX(-50%); /* stays in exact same place */
}
/* =========================
   CHEVRON – dark glass + subtle glow
   ========================= */

.scroll-hint{
  width:44px;
  height:44px;
  border-radius:999px;

  background:rgba(16,16,16,.38);            /* dark glass */
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(14px);

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:
    0 10px 30px rgba(0,0,0,.35);

  transition:
    opacity .18s ease,
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .18s ease;
}

/* Chevron icon sizing */
.scroll-hint svg{
  width:22px;
  height:22px;
}

/* Hover: tiny pop + glow */
.scroll-hint:hover{
  opacity:.95;
  transform:translateX(-50%) scale(1.035);

  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 18px rgba(255,255,255,.12);  /* subtle glow */
}

/* Hidden state: fade only, stays fixed */
.scroll-hint.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateX(-50%);
}
/* =========================
   CHEVRON – behave like hero logo (normal scroll)
   ========================= */

/* Move chevron into normal document flow */
.scroll-hint{
  position:absolute;           /* 🔑 key change */
  left:50%;
  bottom:32px;                 /* sits near bottom of hero */
  transform:translateX(-50%);

  width:44px;
  height:44px;
  border-radius:999px;

  background:rgba(16,16,16,.38);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(14px);

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:
    0 10px 30px rgba(0,0,0,.35);

  transition:
    opacity .18s ease,
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .18s ease;
}

/* Hover: tiny pop + glow */
.scroll-hint:hover{
  opacity:.95;
  transform:translateX(-50%) scale(1.035);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 18px rgba(255,255,255,.12);
}

/* Hidden state: fade only (no movement) */
.scroll-hint.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateX(-50%);
}

/* =========================
   HERO – subtle parallax readiness
   ========================= */

.hero-bg{
  will-change: transform;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-bg{
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
/* =========================
   HERO – depth gradient layer
   ========================= */

.hero-bg::before{
  content:"";
  position:absolute;
  inset:-10%;
  pointer-events:none;

  background:
    radial-gradient(
      circle at var(--dg-x, 50%) var(--dg-y, 50%),
      rgba(255,255,255,.06),
      rgba(0,0,0,0) 55%
    );

  opacity:.55;                 /* keep VERY subtle */
  transition: background-position .6s cubic-bezier(.2,.8,.2,1),
              opacity .3s ease;
}
/* =========================
   HERO SLIDESHOW LAYERS
   ========================= */

.hero-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
}

/* two crossfade layers */
.hero-bg-layer{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity 1.4s cubic-bezier(.2,.8,.2,1);
  will-change:opacity;
}

/* default visible layer */
.hero-bg-layer.is-visible{
  opacity:1;
}

/* keep your mobile framing if you already rely on it */
@media (max-width:600px){
  .hero-bg-layer{
    background-position:92% center;
  }
}

/* =========================
   NEXT ROUND BOX – matches Latest Result box (bottom-right)
   ========================= */

.next-panel--fixed{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:950;

  width:min(320px,88vw);
  padding:.85rem .95rem;
  border-radius:16px;

  background:rgba(16,16,16,.30);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 16px 44px rgba(0,0,0,.35);

  text-decoration:none;
  color:#fff;

  transition:transform .22s cubic-bezier(.2,.8,.2,1),
             border-color .22s ease,
             box-shadow .22s ease;

  overflow:hidden;
}

.next-panel--fixed:hover{
  transform:translateY(-2px) scale(1.01);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 20px 60px rgba(0,0,0,.52);
}

/* sheen overlay (same idea as latest box + cards) */
.next-panel--fixed::before{
  content:"";
  position:absolute;
  inset:-60%;
  background:radial-gradient(
    circle at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(255,255,255,.08),
    transparent 55%
  );
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}

.next-panel--fixed:hover::before{ opacity:1; }

.next-kicker{
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.66rem;
  opacity:.82;
  position:relative;
  z-index:1;
}

.next-title{
  margin-top:.22rem;
  font-weight:850;
  font-size:.98rem;
  color:var(--accent);
  position:relative;
  z-index:1;
}

.next-meta{
  margin-top:.25rem;
  opacity:.92;
  font-weight:650;
  position:relative;
  z-index:1;
}

.next-cta{
  margin-top:.28rem;
  font-weight:800;
  opacity:.92;
  position:relative;
  z-index:1;
}

/* Mobile: place it above the bottom bar and avoid covering the latest box */
@media (max-width: 600px){
  .next-panel--fixed{
    right:12px;
    left:12px;
    width:auto;
    bottom:86px;        /* sits ABOVE your bottom latest-result box */
    padding:.65rem .75rem;
    border-radius:14px;
  }
}
/* use the fixed-style panel as a normal in-page card */
.panel-inline{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:min(420px, 92vw) !important;
  margin:2.5rem auto 0 !important;
}
/* =========================
   SAME PANEL, RIGHT SIDE
   ========================= */
.panel-right{
  left:auto !important;
  right:18px !important;
}

/* Mobile: put the RIGHT panel above the LEFT panel so they don't overlap */
@media (max-width: 600px){
  .panel-right{
    left:12px !important;
    right:12px !important;
    width:auto !important;
    bottom:86px !important;  /* sits above the bottom latest-result box */
  }
}

/* Mobile: move NEXT ROUND (right panel) higher so it doesn't overlap */
@media (max-width: 600px){
  .panel-right{
    bottom: 130px !important; /* was ~86px — this lifts it cleanly */
  }
}
/* Mobile: move NEXT ROUND (right panel) higher so it doesn't overlap */
@media (max-width: 600px){
  .panel-right{
    bottom: 104px !important; /* was ~86px — this lifts it cleanly */
  }
}
/* Mobile: hide chevron (covered by panels anyway) */
@media (max-width: 600px){
  .scroll-hint{ display:none !important; }
}
/* Mobile: index footer gets extra bottom space so fixed panels don't cover it */
@media (max-width: 600px){
  body.home-page .footer{
    padding-bottom: 220px !important; /* enough space for 2 panels */
  }
}
/* Home only: make News start sooner (match previous feel) */
body.home-page #news.section{
  padding-top: 0rem; /* was 6rem in .section */
}

/* optional: reduce the heading's first margin so it appears sooner */
body.home-page #news.section > h2{
  margin-top: 0;
}
 
/* Home: move Recent News section down slightly (heading + cards together) */
body.home-page #news.section{
  padding-top: 7.25rem; /* was 6rem — subtle increase */
}
/* Home: push news cards slightly lower than the heading */
body.home-page #news .blog-list{
  margin-top: 1.25rem; /* adjust: 0.75rem – 2rem */
}
/* About page: extra space under fixed header */
body.about-page{
  padding-top: 89px;
}


/* =====================================
   DIAGONAL PAINT WIPE PAGE TRANSITION
   ===================================== */

#paint-transition{
  position: fixed;
  inset: -20%;                 /* oversized so diagonal covers edges */
  z-index: 99998;
  pointer-events: none;

  /* a diagonal band of your accent color with a soft edge */
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 42%,
    var(--accent) 46%,
    var(--accent) 54%,
    transparent 58%,
    transparent 100%
  );

  /* add subtle “paint texture” noise */
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
  opacity: 0;
  transform: translate3d(-140%, 140%, 0); /* start bottom-left */
}

/* optional subtle irregularity along the band */
#paint-transition::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 48%, rgba(0,0,0,.12) 14%, transparent 15%),
    radial-gradient(circle at 36% 62%, rgba(0,0,0,.10) 12%, transparent 13%),
    radial-gradient(circle at 58% 44%, rgba(0,0,0,.10) 15%, transparent 16%),
    radial-gradient(circle at 78% 58%, rgba(0,0,0,.12) 13%, transparent 14%);
  mix-blend-mode: overlay;
  opacity: .55;
}

/* ENTER: paint sweeps across and covers the page */
html.paint-enter #paint-transition{
  opacity: 1;
  animation: paint-diag-in .45s cubic-bezier(.6,0,.2,1) forwards;
}

/* EXIT: paint sweeps off, revealing page */
html.paint-exit #paint-transition{
  opacity: 1;
  animation: paint-diag-out .40s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes paint-diag-in{
  0%   { transform: translate3d(-140%, 140%, 0); }
  100% { transform: translate3d(140%, -140%, 0); }
}

@keyframes paint-diag-out{
  0%   { transform: translate3d(-20%, 20%, 0); }  /* start near center */
  100% { transform: translate3d(140%, -140%, 0); }
}
/* =========================
   SOCIAL STACK (fixed positions + hover pop + labels)
   ========================= */

.socials-section{
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.social-stack{
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto 0;
  position: relative;

  --tileW: clamp(170px, 18vw, 240px);
  height: calc(var(--tileW) * 16 / 9 + 44px); /* + label space */

  display: flex;
  align-items: flex-start;
  justify-content: center;

  perspective: 900px;

  /* scroll-driven open factor (0..1) */
  --open: 0;

  /* fan controls */
  --spreadClosed: 54;   /* overlap */
  --spreadOpen:   280;  /* fully visible */
  --tiltClosed:   7deg;
  --tiltOpen:     13deg;
}

/* Base tile */
.social-stack .social-tile{
  width: var(--tileW);
  aspect-ratio: 9 / 16;
  border-radius: 18px;

  background-image: var(--img);
  background-size: cover;
  background-position: center;

  position: absolute;
  top: 0;
  left: 50%;

  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  overflow: hidden;

  transform-style: preserve-3d;
  will-change: transform;

  transition:
    transform .34s cubic-bezier(.2,.8,.2,1),
    filter .34s ease,
    box-shadow .34s ease,
    border-color .34s ease;

  /* sheen defaults */
  --sheen-x: 50%;
  --sheen-y: 50%;
}

/* Labels underneath */
.social-stack .social-tile::after{
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  font-weight: 850;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  opacity: .9;
}

/* Depth gradient + sheen */
.social-stack .social-tile::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(0,0,0,.22), transparent 55%),
    radial-gradient(circle at var(--sheen-x) var(--sheen-y), rgba(255,255,255,.10), transparent 55%);
  pointer-events:none;
}

/* Assign indices + z layering (middle always top) */
.social-stack .social-tile:nth-child(1){ --i:-2; z-index: 1; --y: 18px; }
.social-stack .social-tile:nth-child(2){ --i:-1; z-index: 2; --y: 8px;  }
.social-stack .social-tile:nth-child(3){ --i: 0; z-index: 3; --y: 0px;  } /* middle */
.social-stack .social-tile:nth-child(4){ --i: 1; z-index: 2; --y: 8px;  }
.social-stack .social-tile:nth-child(5){ --i: 2; z-index: 1; --y: 18px; }

/* Core positioning rule (ONLY transform rule) */
.social-stack .social-tile{
  transform:
    translateX(-50%)
    translateX(calc(
      var(--i) * (
        (var(--spreadClosed) * (1 - var(--open))) +
        (var(--spreadOpen) * var(--open))
      ) * 1px
    ))
    rotate(calc(
      var(--i) * (
        (var(--tiltClosed) * (1 - var(--open))) +
        (var(--tiltOpen) * var(--open))
      )
    ))
    translateY(var(--y));
}

/* Hover stack = fully open so all tiles are reachable */
.social-stack:hover{
  --open: 1;
}

/* Hover individual tile = pop */
.social-stack .social-tile:hover{
  z-index: 10;
  transform:
    translateX(-50%)
    translateX(calc(var(--i) * (var(--spreadOpen) * 1px)))
    rotate(calc(var(--i) * var(--tiltOpen)))
    translateY(calc(var(--y) - 10px))
    scale(1.055)
    translateZ(40px);

  border-color: rgba(255,255,255,.22);
  box-shadow: 0 30px 90px rgba(0,0,0,.60);
  filter: saturate(1.02) contrast(1.03);
}

/* Mobile: switch to horizontal portrait row */
@media (max-width: 700px){
  .social-stack{
    height: auto;
    width: calc(100% - 2rem);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    gap: 14px;
    padding: 6px 0 24px;
    perspective: none;

    --open: 1; /* always open on mobile */
  }

  .social-stack .social-tile{
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    flex: 0 0 auto;
    width: clamp(150px, 46vw, 200px);
    z-index: 1;
  }

  .social-stack .social-tile::after{
    left: 0;
    transform: none;
    bottom: -22px;
  }
}

/* Social fan: make the stack fan DOWN more (outer tiles lower) */
.social-stack .social-tile:nth-child(1){ --y: 85px; }
.social-stack .social-tile:nth-child(2){ --y: 20px; }
.social-stack .social-tile:nth-child(3){ --y: 0px;  }
.social-stack .social-tile:nth-child(4){ --y: 20px; }
.social-stack .social-tile:nth-child(5){ --y: 85px; }


/* =========================
   GLASS PILL HEADER
   ========================= */

.header.header-pill{
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  background: transparent;
  border: none;
  backdrop-filter: none;
  z-index: 1200;
}

/* The actual pill */
.header-pill-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 2rem;
  padding: 0.75rem 1.6rem;

  background: rgba(18,18,18,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Micro lift on hover */
.header-pill-inner:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Logo sizing */
.header-pill .header-logo{
  height: 40px;
}

/* Nav spacing cleanup */
.header-pill .nav a{
  margin-left: 1.4rem;
  font-weight: 600;
  opacity: 0.95;
}

/* Keep underline animation exactly as before */
.header-pill .nav a::after{
  bottom: -6px;
}

/* =========================
   MOBILE PILL ADJUSTMENTS
   ========================= */

@media (max-width: 1100px){
  .header.header-pill{
    top: 14px;
    width: calc(100% - 2rem);
  }

  .header-pill-inner{
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 1.2rem;
  }
}

/* =========================
   FLOATING LOGO + HAMBURGER NAV (NO HEADER BAR)
   ========================= */

/* Hide old header bar if it exists */
.header{ display:none !important; }

/* Floating container */
.floating-nav{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 2200;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 clamp(1rem, 3vw, 2.5rem);
  pointer-events: none; /* so only the controls are clickable */
}

/* Logo — clean, no glass */
.floating-logo{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;

  background: transparent;           /* REMOVE glass */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border: none;
  border-radius: 0;
  padding: 0;

  box-shadow: none;

  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.floating-logo:hover{
  transform: translateY(-1px) scale(1.03);
}


/* Hamburger in glass curved square */
.floating-burger{
  pointer-events: auto;
  width: 54px;
  height: 54px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;

  background: rgba(18,18,18,0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease;
}

.floating-burger:hover{
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(42,181,184,0.40);
  box-shadow: 0 18px 46px rgba(0,0,0,0.50);
}

/* tiny glow on hover */
.floating-burger:hover{
  box-shadow:
    0 18px 46px rgba(0,0,0,0.50),
    0 0 18px rgba(42,181,184,0.10);
}

/* Hamburger bars */
.burger-bars{
  width: 20px;
  height: 14px;
  position: relative;
}

.burger-bar{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}
.b1{ top: 0; }
.b2{ top: 6px; }
.b3{ top: 12px; }

/* X state */
.floating-burger.is-open .b1{ top: 6px; transform: rotate(45deg); }
.floating-burger.is-open .b2{ opacity: 0; }
.floating-burger.is-open .b3{ top: 6px; transform: rotate(-45deg); }

/* Menu panel bubble (right side) */
.menu-panel{
  position: fixed;
  top: 92px;
  right: clamp(1rem, 3vw, 2.5rem);
  z-index: 2300;

  width: min(320px, calc(100vw - 2rem));
  padding: 12px;

  background: rgba(18,18,18,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;

  box-shadow: 0 24px 60px rgba(0,0,0,0.55);

  display: grid;
  gap: 6px;

  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.menu-panel.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-panel a{
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px;

  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 650;
  opacity: .92;

  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s ease, opacity .18s ease;
}

.menu-panel a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* Mobile tweaks */
@media (max-width: 700px){
  .floating-logo img{ height: 48px; }
  .floating-burger{ width: 50px; height: 50px; border-radius: 16px; }
  .menu-panel{ top: 86px; }
}
/* Slightly larger logo + hamburger */
.floating-logo img{
  height: 62px; /* was 54px */
}

.floating-burger{
  width: 60px;  /* was 54px */
  height: 60px;
}

@media (max-width: 700px){
  .floating-logo img{
    height: 54px;
  }

  .floating-burger{
    width: 56px;
    height: 56px;
  }
}
/* =========================
   HAMBURGER – GLASS TINT HOVER (LINES STAY WHITE)
   ========================= */

/* Smooth base transitions */
.floating-burger{
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    background-color .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

/* Hover: glass turns turquoise */
.floating-burger:hover{
  background:
    linear-gradient(
      135deg,
      rgba(42,181,184,0.18),
      rgba(42,181,184,0.10)
    );
  border-color: rgba(42,181,184,0.55);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.55),
    0 0 26px rgba(42,181,184,0.35);
  transform: translateY(-1px) scale(1.04);
}

/* IMPORTANT: keep burger lines white */
.floating-burger .burger-bar{
  background-color: #ffffff !important;
}

/* =========================
   MENU SYSTEM – FLOATING NAV + FULL SCREEN SHEET
   ========================= */

/* Floating container */
.floating-nav{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 3000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 clamp(1rem, 3vw, 2.5rem);
  pointer-events: none;
}

/* Logo: clean, no glass */
.floating-logo{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.floating-logo:hover{
  transform: translateY(-1px) scale(1.03);
}
.floating-logo img{
  height: 62px;
  width: auto;
  display: block;
}

/* Hamburger: glass curved square */
.floating-burger{
  pointer-events: auto;
  width: 60px;
  height: 60px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;

  background: rgba(18,18,18,0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    background-color .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

/* Hover: glass turns turquoise (lines stay white) */
.floating-burger:hover{
  background:
    linear-gradient(
      135deg,
      rgba(42,181,184,0.18),
      rgba(42,181,184,0.10)
    );
  border-color: rgba(42,181,184,0.55);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.55),
    0 0 26px rgba(42,181,184,0.35);
  transform: translateY(-1px) scale(1.04);
}

/* Hamburger bars */
.burger-bars{
  width: 20px;
  height: 14px;
  position: relative;
}
.burger-bar{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}
.b1{ top: 0; }
.b2{ top: 6px; }
.b3{ top: 12px; }

/* X state */
.floating-burger.is-open .b1{ top: 6px; transform: rotate(45deg); }
.floating-burger.is-open .b2{ opacity: 0; }
.floating-burger.is-open .b3{ top: 6px; transform: rotate(-45deg); }

/* -------------------------
   FULL SCREEN MENU SHEET
   ------------------------- */

.menu-sheet{
  position: fixed;
  inset: 0;
  z-index: 2600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

/* Fullscreen panel */
.menu-sheet-inner{
  position:absolute;
  inset:0;
  height: 100vh;
  width: 100vw;
  background: var(--dark);

  transform: translateY(1000px);
  transition: transform 1.05s cubic-bezier(.16, 1, .22, 1);
  will-change: transform;
}

/* OPEN */
.menu-sheet.is-open{
  opacity: 1;
  pointer-events: auto;
}
.menu-sheet.is-open::before{ opacity: 1; }
.menu-sheet.is-open .menu-sheet-inner{
  transform: translateY(0);
}
}
.menu-sheet.is-closed::before{ opacity: 1; }
.menu-sheet.is-closed .menu-sheet-inner{
  transform: translateY(-1000px);
}

/* Content layout */
.menu-sheet-content{
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 110px clamp(1rem, 3vw, 2.5rem) 48px;
}

.menu-sheet-left{
  min-width: 0;
  display:flex;
  align-items:flex-start;
}

.menu-sheet-meta-label{
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .75;
}
.menu-sheet-meta-sub{
  margin-top: .35rem;
  font-weight: 850;
  font-size: 1.05rem;
  color: var(--accent);
  opacity: .95;
}

/* Right: big caps */
.menu-sheet-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap: clamp(10px, 1.5vh, 18px);
  text-align:right;
}

.menu-big{
  text-decoration:none;
  color:#fff;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(2.0rem, 4.4vw, 4.25rem);
  line-height: .95;
  opacity: .92;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), opacity .18s ease, color .18s ease;
  position: relative;
}

/* hover */
.menu-big:hover{
  opacity: 1;
  transform: translateY(-1px);
  color: var(--accent);
}
.menu-big::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-10px;
  width:0;
  height:2px;
  background: var(--accent);
  transition: width 1.5s ease;
}
.menu-big:hover::after{ width: 120px; }

/* Stagger-in for page titles */
.menu-sheet .menu-big{
  opacity: 0;
  transform: translateY(14px);
}
.menu-sheet.is-open .menu-big{
  animation: menuStaggerIn .62s cubic-bezier(.2,.9,.2,1) both;
}
.menu-sheet.is-open .menu-big:nth-child(1){ animation-delay:.06s; }
.menu-sheet.is-open .menu-big:nth-child(2){ animation-delay:.12s; }
.menu-sheet.is-open .menu-big:nth-child(3){ animation-delay:.18s; }
.menu-sheet.is-open .menu-big:nth-child(4){ animation-delay:.24s; }
.menu-sheet.is-open .menu-big:nth-child(5){ animation-delay:.30s; }
.menu-sheet.is-open .menu-big:nth-child(6){ animation-delay:.36s; }

@keyframes menuStaggerIn{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:.92; transform: translateY(0); }
}

/* Socials: text only, right side, stagger after titles */
.menu-sheet-socials{
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 64px;

  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 12px;

  text-align:right;
  z-index: 5;
}

.menu-sheet-socials a{
  text-decoration:none;
  color:#fff;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;

  opacity: 0;
  transform: translateY(12px);

  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s ease, color .22s ease;
}

.menu-sheet.is-open .menu-sheet-socials a{
  animation: socialStaggerIn .55s cubic-bezier(.2,.9,.2,1) both;
}
.menu-sheet.is-open .menu-sheet-socials a:nth-child(1){ animation-delay:.42s; }
.menu-sheet.is-open .menu-sheet-socials a:nth-child(2){ animation-delay:.48s; }
.menu-sheet.is-open .menu-sheet-socials a:nth-child(3){ animation-delay:.54s; }

@keyframes socialStaggerIn{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:.85; transform: translateY(0); }
}

.menu-sheet-socials a:hover{
  opacity: 1;
  color: var(--accent);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 820px){
  .menu-sheet-content{
    grid-template-columns: 1fr;
    padding: 100px 1rem 30px;
    gap: 1.4rem;
  }
  .menu-sheet-right{
    align-items:flex-start;
    text-align:left;
    justify-content:flex-start;
  }
  .menu-big::after{
    left:0;
    right:auto;
  }
  .menu-sheet-socials{
    right: 1rem;
    bottom: 36px;
    align-items:flex-start;
    text-align:left;
  }
}
/* ==========================================
   MENU SHEET: clean open/close (no end-lag)
   Paste at bottom of styles.css
   ========================================== */

/* IMPORTANT: do NOT use display:none/visibility toggles for the menu sheet */
.menu-sheet{
  /* keep your existing positioning/inset/background styles above if you already have them */
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  pointer-events: none;

  /* one smooth timeline */
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2,.8,.2,1);

  will-change: transform, opacity;
}

/* open */
.menu-sheet.is-open{
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* closing: ignore mouse + kill hover transitions */
.menu-sheet.is-closing,
.menu-sheet.is-closing *{
  pointer-events: none !important;
}

.menu-sheet.is-closing .menu-big,
.menu-sheet.is-closing .menu-sheet-socials a{
  transition: none !important;
  transform: none !important;
}

/* Prevent layout jump when scrollbars appear/disappear */
html{ scrollbar-gutter: stable; }

/* Lock scroll while menu is open/closing */
html.menu-lock, body.menu-lock{ overflow: hidden; }

/* While closing: ignore mouse completely */
.menu-sheet.is-closing,
.menu-sheet.is-closing *{
  pointer-events:none !important;
}
.menu-sheet.is-closing *{
  transition: none !important;
}

/* Hard kill ALL hover/child transitions while the menu is closing */
html.menu-closing .menu-sheet *,
html.menu-closing .menu-sheet *::before,
html.menu-closing .menu-sheet *::after{
  transition: none !important;
  animation: none !important;
}

/* Also stop pointer influence during close */
html.menu-closing .menu-sheet,
html.menu-closing .menu-sheet *{
  pointer-events: none !important;
}

/* Prevent scrollbar reflow snap at end */
html{ scrollbar-gutter: stable; }
html.menu-lock, body.menu-lock{ overflow:hidden; }

/* =========================================
   REACTBITS-LIKE TILT (FINAL OVERRIDE)
   ========================================= */

/* Perspective must be on the PARENT (like the ReactBits figure) */
.card-link{
  position: relative;
  display: block;
  perspective: 800px;
}

/* Card must preserve 3D */
.card{
  transform-style: preserve-3d;
  will-change: transform;
}

/* We ONLY apply tilt when JS adds .tilt-on */
.card.tilt-on{
  transform:
    translateY(-6px) scale(1.02)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateZ(var(--tz, 0px));
}

/* When not tilting, revert to your normal state */
.card:not(.tilt-on){
  transform: none;
}

/* Keep your normal hover pop for devices that don't run tilt */
@media (hover: hover) and (pointer: fine){
  .card-link:hover .card:not(.tilt-on){
    transform: translateY(-6px) scale(1.02);
  }
}

/* Optional: makes the image feel like it has depth */
.card img{
  transform: translateZ(0);
}

/* Tooltip bubble (ReactBits style) */
.tilt-caption{
  pointer-events:none;
  position:absolute;
  left:0;
  top:0;
  transform: translate(-50%, -125%);
  border-radius:6px;
  background:#fff;
  padding:4px 10px;
  font-size:10px;
  font-weight:700;
  color:#2d2d2d;
  opacity:0;
  transition:opacity .18s ease;
  z-index:60;
  white-space:nowrap;
}
.tilt-caption.is-on{ opacity:1; }

@media (max-width: 640px){
  .tilt-caption{ display:none; }
}
/* =========================================
   FORCE TILT TRANSFORM TO WIN OVER HOVER POP
   (paste at very bottom of styles.css)
   ========================================= */

.card-link:hover .card.tilt-on{
  transform:
    translateY(-6px) scale(1.02)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateZ(var(--tz, 0px)) !important;
}

/* Optional: keep transitions smooth while tilting */
.card{
  transition:
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s cubic-bezier(.2,.8,.2,1),
    border-color .24s ease;
}
/* =========================================
   SUBTLE 3D DEPTH LIFT FOR TILTING CARDS
   ========================================= */

/* Give cards a 3D context */
.card{
  transform-style: preserve-3d;
  will-change: transform;
}

/* When tilt is active, lift the card slightly */
.card.tilt-on{
  transform:
    translateY(-6px)
    scale(1.02)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(18px); /* 👈 subtle depth lift */
}

/* Extra depth for the image itself */
.card img{
  transform: translateZ(10px);
}

/* Soft dynamic shadow that enhances depth */
.card.tilt-on{
  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    0 6px 14px rgba(42,181,184,0.12);
}

/* Smooth return */
.card{
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s cubic-bezier(.2,.8,.2,1);
}
/* =========================
   NEWS PAGE TITLE STYLING
   ========================= */

/* Make NEWS title large, bold, all caps */
.section > h1{
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

/* =========================
   HOME: MERGE ABOUT + SOCIALS INTO ONE SECTION
   ========================= */

.home-page #news {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Remove visual separation from nested socials section */
.home-page #news .socials-section {
  margin-top: 0;
  padding-top: 60px; /* breathing room, NOT a separator */
  background: none;
  box-shadow: none;
  border: none;
}

/* Ensure no accidental divider effects */
.home-page #news .socials-section::before,
.home-page #news .socials-section::after {
  display: none;
}

/* Keep everything feeling continuous */
.home-page #news h2 {
  margin-bottom: 40px;
}

.home-page #socials h2 {
  margin-top: 80px;
}
/* =========================
   SCROLL REVEAL (SAFE)
   Text is VISIBLE by default.
   Only hides after JS adds .sr-init
   ========================= */

.sr .sr-word{
  display:inline-block;
  opacity: 1;                 /* visible by default */
  filter: none;
  transform: none;
  will-change: opacity, filter, transform;
}

/* JS enables the effect by adding .sr-init */
.sr.sr-init .sr-word{
  opacity: var(--sr-base-opacity, 0);
  filter: blur(var(--sr-blur, 10px));
  transform: translateY(10px);
}

/* =========================================
   SCROLL REVEAL (word-by-word) – .sr
   Paste at bottom of styles.css
   ========================================= */

.sr {
  --sr-base-opacity: 0;
  --sr-blur: 10px;
  --sr-stagger: 18ms; /* smaller = faster cascade */

  /* spacing stays normal */
}

.sr .sr-word {
  display: inline-block;
  opacity: var(--sr-base-opacity);
  filter: blur(var(--sr-blur));
  transform: translateY(6px);
  will-change: opacity, filter, transform;

  transition:
    opacity 550ms ease,
    filter 650ms ease,
    transform 650ms ease;

  /* stagger controlled by inline style in JS: transition-delay */
}

.sr.is-active .sr-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.sr.is-active .sr-word.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Big title helper you already use */
.sr--big {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* Normal body size boost (optional, but you asked bigger) */
.sr:not(.sr--big) {
  font-size: clamp(1.15rem, 1.25vw + 0.95rem, 1.6rem);
  line-height: 1.6;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .sr .sr-word {
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
/* =========================
   SCROLL REVEAL FAILSAFE
   Put at VERY bottom of styles.css
   ========================= */

/* Visible by default (so text can never disappear) */
.sr .sr-word{
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Only hide when JS adds .sr-ready to <html> */
html.sr-ready .sr .sr-word{
  opacity: var(--sr-base-opacity, 0);
  filter: blur(var(--sr-blur, 10px));
  transform: translateY(6px);
}

html.sr-ready .sr.is-active .sr-word.is-revealed{
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
/* =========================
   SCROLL REVEAL FAILSAFE
   Put at VERY bottom of styles.css
   ========================= */

/* Visible by default (so text can never disappear) */
.sr .sr-word{
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Only hide when JS adds .sr-ready to <html> */
html.sr-ready .sr .sr-word{
  opacity: var(--sr-base-opacity, 0);
  filter: blur(var(--sr-blur, 10px));
  transform: translateY(6px);
}

html.sr-ready .sr.is-active .sr-word.is-revealed{
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
/* =========================
   WORD SCROLL REVEAL
   ========================= */

.sr {
  font-size: clamp(2.6rem, 6vw, 4.5rem); /* BIG text */
  line-height: 1.2;
  font-weight: 700;
}

.sr-word {
  display: inline-block;
  opacity: 1;
  transform: none;
}

/* Only hide once JS is confirmed loaded */
html.sr-ready .sr-word {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(14px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    filter 0.4s ease;
}

html.sr-ready .sr-word.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
/* =========================
   WORD SCROLL REVEAL
   ========================= */
.sr {
  font-size: clamp(3rem, 7vw, 5.5rem); /* MUCH bigger */
  line-height: 1.15;
  font-weight: 800;
}

.sr-word {
  display: inline-block;
}

/* Only apply hiding AFTER JS confirms it ran */
html.sr-ready .sr-word {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

html.sr-ready .sr-word.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

#news p.sr{
 font-size: 40px;
 line-height: 1.7; !important;
}

/* =========================
   CLEAN THEMED "READ MORE"
   ========================= */

a.read-more{
  display: inline-flex;
  align-items: center;

  margin-top: 22px;
  padding: 12px 20px;

  border-radius: 999px;
  text-decoration: none;

  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #ffffff;

  /* dark glass look */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.10);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

/* hover: subtle turquoise glow */
a.read-more:hover{
  transform: translateY(-2px);
  background: rgba(0, 255, 220, 0.10);
  border-color: rgba(0, 255, 220, 0.40);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.40),
    0 0 0 1px rgba(0,255,220,0.10),
    0 0 18px rgba(0,255,220,0.18),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* keyboard focus */
a.read-more:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0,255,220,0.25),
    0 14px 34px rgba(0,0,0,0.40);
}

/* reduced motion support */
@media (prefers-reduced-motion: reduce){
  a.read-more{
    transition: none;
  }
}
/* =========================
   SCROLL VELOCITY MARQUEE
   ========================= */
.sv-wrap{
  margin: 40px 0 50px;
}

.sv-marquee{
  overflow: hidden;
  width: 100%;
}

.sv-track{
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}

.sv-chunk{
  display: inline-flex;
  white-space: nowrap;
}

/* Add just a tiny separator via padding, so it feels continuous */
.sv-item{
  flex: 0 0 auto;
  padding: 0 10px;        /* controls spacing between phrases */
  margin: 0;              /* ensure none */
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em; /* reduce slightly so it packs tighter */
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4.5vw, 4rem);
  color: #19d3d1;
  opacity: 0.9;
}

@media (max-width: 600px){
  .sv-marquee{ padding: 10px 0; }
  .sv-track{ gap: 18px; }
}

.scroll-velocity { 
 margin-top: 120px;
}

/* Space between About Me and Scroll Velocity section */
.section + .scroll-velocity-section {
  margin-top: clamp(80px, 12vh, 160px);
}

.read-more.reveal.active {
  margin-bottom: 140px; /* Adjust the value as needed */
}

/* =========================
   SOCIAL BUTTONS (UNDER STACK)
   ========================= */

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.social-buttons a {
  text-decoration: none;
  position: relative;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.social-buttons a:hover {
  transform: translateY(-3px);
  background: rgba(0, 190, 190, 0.15);
  border-color: rgba(0, 190, 190, 0.6);
  box-shadow: 0 12px 30px rgba(0, 190, 190, 0.25);
}
 
/* =========================================
   CONTACT FORM – button + checkbox polish
   Paste at very bottom of styles.css
   ========================================= */

/* Match your pill/glass button style on the contact form */
.form .form[type="submit"],
.form form button[type="submit"],
.form .contact-form .btn-submit,
.form .contact-submit {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: #fff;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;

  padding: 14px 22px;
  border-radius: 999px;

  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.form .contact-form button[type="submit"]:hover,
.form form button[type="submit"]:hover,
.form .contact-form .btn-submit:hover,
.form .contact-submit:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(0, 225, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(0, 225, 255, 0.15);
  transform: translateY(-1px);
}

.form .contact-form button[type="submit"]:active,
.form form button[type="submit"]:active,
.form .contact-form .btn-submit:active,
.form .contact-submit:active {
  transform: translateY(0px) scale(0.99);
}

.form .contact-form button[type="submit"]:focus-visible,
.form form button[type="submit"]:focus-visible,
.form .contact-form .btn-submit:focus-visible,
.form .contact-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.30);
}

/* ---------- Checkbox: clean custom look ---------- */
/* Wrap: <label class="contact-check"> <input type="checkbox"> <span>Text</span> </label> */
.form .contact-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Hide native checkbox, keep accessible */
.form .contact-check input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* The custom box */
.form .contact-check span::before{
  content: "";
  display: inline-grid;
  place-items: center;

  width: 18px;
  height: 18px;
  margin-right: 10px;

  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Checkmark */
.form .contact-check span::after{
  content: "";
  position: relative;
  display: inline-block;

  width: 10px;
  height: 6px;
  margin-left: -28px; /* aligns over the box */
  margin-right: 8px;

  border-left: 2px solid rgba(255,255,255,0.95);
  border-bottom: 2px solid rgba(255,255,255,0.95);
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .18s ease;
  pointer-events: none;
}

/* Checked state */
.form .contact-check input[type="checkbox"]:checked + span::before{
  border-color: rgba(0, 225, 255, 0.45);
  background: rgba(0, 225, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(0, 225, 255, 0.12);
}

.form .contact-check input[type="checkbox"]:checked + span::after{
  transform: rotate(-45deg) scale(1);
}

/* Hover/focus */
.form .contact-check:hover span::before{
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.10);
}

.form .contact-check input[type="checkbox"]:focus-visible + span::before{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.26);
}

/* If your form uses a plain checkbox without label wrapper, this helps too */
.form input[type="checkbox"]{
  accent-color: rgba(0, 225, 255, 0.85);
}

/* =========================================
   CONTACT FORM (scoped)
   Paste at VERY BOTTOM of styles.css
   ========================================= */

.page .contact-form{
  width: min(720px, 100%);
  margin-top: 22px;

  padding: 22px 22px 18px;
  border-radius: 18px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.page .contact-field{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.page .contact-form label{
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page .contact-form input[type="text"],
.page .contact-form input[type="email"],
.page .contact-form textarea{
  width: 100%;
  color: inherit;

  border-radius: 14px;
  padding: 12px 14px;

  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  outline: none;

  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.page .contact-form textarea{
  resize: vertical;
  min-height: 140px;
}

.page .contact-form input[type="text"]:focus,
.page .contact-form input[type="email"]:focus,
.page .contact-form textarea:focus{
  border-color: rgba(35, 210, 197, 0.55);
  box-shadow: 0 0 0 4px rgba(35, 210, 197, 0.12);
}

.page .contact-consent{
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;

  margin-top: 10px;
  padding-top: 6px;

  cursor: pointer;
  user-select: text; /* still lets people highlight the text */
}

.page .contact-consent-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page .contact-consent-box{
  width: 18px;
  height: 18px;
  margin-top: 3px;

  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.16);

  display: grid;
  place-items: center;

  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.page .contact-consent-box::after{
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid rgba(255,255,255,0.95);
  border-bottom: 2px solid rgba(255,255,255,0.95);
  transform: translateY(-2px) rotate(-45deg) scale(0.0);
  transform-origin: center (+2px);
  transition: transform .14s ease;
}

.page .contact-consent-input:checked + .contact-consent-box{
  background: rgba(35, 210, 197, 0.18);
  border-color: rgba(35, 210, 197, 0.55);
  box-shadow: 0 0 0 4px rgba(35, 210, 197, 0.10);
}

.page .contact-consent-input:checked + .contact-consent-box::after{
  transform: translateY(-2px) rotate(-45deg) scale(1);
}

.page .contact-consent-text{
  opacity: 0.92;
  line-height: 1.55;
}

.page .contact-note{
  opacity: .75;
  font-size: .92rem;
  margin-top: 10px;
  margin-bottom: 14px;
}

.page .contact-submit{
  width: 100%;
  border: none;
  cursor: pointer;

  padding: 13px 16px;
  border-radius: 999px;

  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.page .contact-submit:hover{
  transform: translateY(-2px);
  border-color: rgba(35, 210, 197, 0.55);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  background: rgba(35, 210, 197, 0.12);
}

.page .contact-submit:active{
  transform: translateY(0px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

/* Mobile tightening */
@media (max-width: 600px){
  .page .contact-form{
    padding: 18px 16px 14px;
    border-radius: 16px;
  }
}


/* =========================================
   RACE REPORT – SQUARE IMAGE FRAME
   Keeps typography EXACTLY the same
   ========================================= */

.post-split-media{
  aspect-ratio: 1 / 1;        /* forces 1x1 frame */
  width: 100%;
  overflow: hidden;
  border-radius: 14px;        /* optional – remove if you want sharp corners */
}

.post-split-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* crops image to fill square */
  display: block;
}
/* =========================================
   MATCH SEASON UPDATE IMAGE SIZE (PIXEL EXACT)
   ========================================= */

.post-split-media{
  width: 600px;              /* SAME rendered width as Season Update */
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

/* =========================================
   ARTICLE TITLE – CONSISTENT SIZE
   ========================================= */

.section.reveal h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* =====================================================
   OULTON PARK – PAGE-SPECIFIC RIGHT ALIGN (FIX)
   ===================================================== */

.page-oulton .season-split__content,
.page-oulton .season-split__body{
  text-align: right;
}

.page-oulton .season-split__title,
.page-oulton h1,
.page-oulton h2{
  text-align: right;
  text-transform: uppercase;
}

/* If you use the underline bar, push it to the right */
.page-oulton .season-split__title::after{
  margin-left: auto;
  margin-right: 0;
}

/* Paragraphs (only inside the split content) */
.page-oulton .season-split__body p{
  text-align: right;
}

/* =========================
   SEASON UPDATE – SPLIT LAYOUT (SCOPED)
   ========================= */
.page-season-update .season-split{
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 140px 0 60px; /* space under floating header */
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.page-season-update .season-split__media{
  border-radius: 18px;
  overflow: hidden;
  height: clamp(520px, 70vh, 600px);
  background: rgba(255,255,255,0.04);
}

.page-season-update .season-split__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.page-season-update .season-split__content{
  padding-top: clamp(6px, 1vh, 18px);
  text-align: left; /* explicitly normal so it can’t inherit weird alignment */
}

.page-season-update .season-split__title{
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
}

.page-season-update .season-split__title::after{
  content:"";
  display:block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(0, 255, 209, 0.65);
}

.page-season-update .season-split__body p{
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.75;
  opacity: 0.92;
  text-align: left;
}

@media (max-width: 900px){
  .page-season-update .season-split{
    grid-template-columns: 1fr;
    padding: 120px 0 40px;
  }
  .page-season-update .season-split__media{
    height: clamp(260px, 45vh, 520px);
  }
}

/* =========================
   OULTON – SPLIT LAYOUT (SCOPED)
   ========================= */

.page-oulton .season-split{
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 140px 0 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* text | image */
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* Reverse = keep image on the right (same as season update “other side”) */
.page-oulton .season-split--reverse{
  grid-template-columns: 1.05fr 0.95fr;
}

/* Text styling */
.page-oulton .season-split__content{
  padding-top: clamp(6px, 1vh, 18px);
  text-align: right; /* you wanted right aligned on Oulton */
}

.page-oulton .season-split__title{
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem); /* same scale as season */
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-oulton .season-split__title::after{
  content:"";
  display:block;
  width: 72px;
  height: 3px;
  margin: 14px 0 0 auto; /* underline on the right */
  border-radius: 999px;
  background: rgba(0, 255, 209, 0.65);
}

.page-oulton .season-split__subtitle{
  margin: 0 0 22px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.page-oulton .season-split__body p{
  margin: 0 0 18px;
  font-size: clamp(0.5rem, 1.25vw, 0.95rem);
  line-height: 1.75;
  opacity: 0.92;
}

/* Image box: 1:1 at 400px wide */
.page-oulton .season-split__media--square{
  width: 600px;
  height: 600px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  justify-self: end; /* stick to the right */
}

.page-oulton .season-split__media--square img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* Responsive: stack + make square fluid */
@media (max-width: 900px){
  .page-oulton .season-split{
    grid-template-columns: 1fr;
    padding: 120px 0 40px;
  }

  .page-oulton .season-split__content{
    text-align: left;
  }

  .page-oulton .season-split__title::after{
    margin-left: 0;
    margin-right: auto;
  }

  .page-oulton .season-split__media--square{
    width: min(400px, 92vw);
    height: min(400px, 92vw);
    justify-self: start;
  }
}

/* =========================
   SEASON UPDATE – IMAGE SIZE LOCK
   ========================= */

.page-season .season-split__media{
  width: 600px;
  height: 600px;          /* 1×1 ratio */
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

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

/* =========================
   BRANDS HATCH — SPLIT LAYOUT (LOCAL)
   Image left, text right, square image
   ========================= */
body.page-brands .season-split{
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 140px 0 60px;
  display: grid;
  grid-template-columns: 600px 1fr; /* left = fixed square, right = flexible */
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

body.page-brands .season-split__media{
  width: 600px;
  aspect-ratio: 1 / 1;   /* ✅ forces perfect square */
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

body.page-brands .season-split__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

body.page-brands .season-split__content{
  padding-top: clamp(6px, 1vh, 18px);
}

body.page-brands .season-split__title{
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.page-brands .season-split__title::after{
  content:"";
  display:block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(0, 255, 209, 0.65);
}

body.page-brands .season-split__body p{
  margin: 0 0 18px;
  font-size: clamp(0.95rem, 1.25vw, 1.0rem);
  line-height: 1.75;
  opacity: 0.92;
}

@media (max-width: 900px){
  body.page-brands .season-split{
    grid-template-columns: 1fr;
    padding: 120px 0 40px;
  }

  body.page-brands .season-split__media{
    width: min(600px, 92vw);
    margin: 0 auto;
  }
}

body.about-page h1{
  font.weight: 800;
  letter-spacing: 0.02em;
}

/* =========================================
   SPONSOR "LANO-STYLE" PINNED INTRO
   Scoped to: body.sponsor-page
   ========================================= */
body.sponsor-page .sponsor-intro{
  height: 500vh;                 /* scroll distance for the intro */
  position: relative;
}

body.sponsor-page .sponsor-intro__sticky{
  position: sticky;
  top: 0;
  height: 100vh;                 /* the pinned stage */
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.sponsor-page .sponsor-intro__frame{
  /* JS drives these variables */
  width: var(--si-w, 100vw);
  height: var(--si-h, 100vh);
  border-radius: var(--si-r, 0px);

  overflow: hidden;
  position: relative;

  /* makes it feel like it “settles” into place */
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.02);

  will-change: width, height, border-radius;
}

body.sponsor-page .sponsor-intro__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transform: scale(var(--si-imgscale, 1.12));
  will-change: transform;
}

body.sponsor-page .sponsor-intro__overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 40%,
    rgba(0,0,0,0.10),
    rgba(0,0,0,0.55)
  );
  pointer-events: none;
}

body.sponsor-page .sponsor-intro__text{
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 5vh, 54px);
  z-index: 2;
  max-width: 760px;
}

body.sponsor-page .sponsor-intro__text h1{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

body.sponsor-page .sponsor-intro__text p{
  margin: 0;
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  body.sponsor-page .sponsor-intro{ height: 100vh; }
  body.sponsor-page .sponsor-intro__frame{
    width: min(980px, 88vw);
    height: min(560px, 62vh);
    border-radius: 24px;
  }
  body.sponsor-page .sponsor-intro__img{ transform: none; }
}
body.sponsor-page .sponsor-intro__img{
  object-position: 50% 42%;
}
/* =========================
   SPONSOR: BACKGROUND MARQUEE BEHIND HERO IMAGE
   ========================= */

/* wrapper sits behind the image */
body.sponsor-page .sponsor-marquee{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;                 /* behind image */
  overflow: hidden;
  pointer-events: none;       /* never blocks clicks */
  opacity: 0.22;              /* subtle */
}

/* track that moves */
body.sponsor-page .sponsor-marquee__track{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 18px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* typography */
body.sponsor-page .sponsor-marquee__track span{
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4.2vw, 4.4rem);
}

/* IMPORTANT: your hero/image container must be above this */
body.sponsor-page .sponsor-intro,
body.sponsor-page .sponsor-intro__media,
body.sponsor-page .sponsor-intro__frame{
  position: relative;
  z-index: 2;
}

/* Make sure the section is positioned so absolute marquee has a reference */
body.sponsor-page .sponsor-intro{
  position: relative;
}
body.sponsor-page .sponsor-zoom{ position: relative; }

body.sponsor-page .sponsor-marquee{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;           /* behind image, but inside the pinned scene */
  pointer-events: none;
  opacity: 0.22;
}
body.sponsor-page .sponsor-intro__frame{ position: relative; z-index: 2; }

/* Outer scroll area */
body.sponsor-page .sponsor-zoom{
  position: relative;
}

/* This is the pinned viewport area */
body.sponsor-page .sponsor-zoom__sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Marquee sits BEHIND the zoom frame */
body.sponsor-page .sponsor-marquee{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
}

/* The image/frame must be above */
body.sponsor-page .sponsor-zoom__frame{
  position: relative;
  z-index: 2;
}
body.sponsor-page .sponsor-zoom{
  min-height: 220vh; /* gives you the Lando-style hold duration */
}
/* Make frame the stacking context */
.sponsor-intro__frame{
  position: relative;
  overflow: hidden;
}

/* Marquee sits behind everything in the frame */
.sponsor-marquee{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
}

/* Ensure image + overlay + text are above marquee */
.sponsor-intro__img,
.sponsor-intro__overlay,
.sponsor-intro__text{
  position: relative;
  z-index: 2;
}

/* Make section a positioning context */
.sponsor-intro{
  position: relative;
  overflow: visible; /* IMPORTANT: don't clip marquee */
}

/* Keep your sticky content above */
.sponsor-intro__sticky{
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Make sure the frame is above the marquee */
.sponsor-intro__frame{
  position: relative;
  z-index: 2;
}
/* =========================================
   SPONSOR: MARQUEE PINNED + BEHIND ZOOM (HARD FIX)
   Scoped to: body.sponsor-page
   Paste at VERY bottom of styles.css
   ========================================= */

body.sponsor-page .sponsor-intro{
  position: relative;
}

body.sponsor-page .sponsor-intro__sticky{
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow: hidden !important;
  z-index: 0 !important;          /* create a clean stacking context */
}

/* FORCE the frame + its contents ABOVE the marquee */
body.sponsor-page .sponsor-intro__frame{
  position: relative !important;
  z-index: 3 !important;
}

body.sponsor-page .sponsor-intro__img,
body.sponsor-page .sponsor-intro__overlay,
body.sponsor-page .sponsor-intro__text{
  position: absolute;              /* keep your existing look */
  z-index: 4;                      /* above marquee */
}

/* Your img already fills frame; this just ensures layer order */
body.sponsor-page .sponsor-intro__img{
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.sponsor-page .sponsor-intro__overlay{
  inset: 0;
}

/* =========================================
   SPONSOR PAGE – MERGE HERO + NEXT SECTION
   ========================================= */

body.sponsor-page .sponsor-intro,
body.sponsor-page main > .section:first-of-type{
  background: var(--bg-grey, #111); /* use your existing grey */
}

/* Remove any divider effects */
body.sponsor-page main > .section:first-of-type{
  border-top: none !important;
  box-shadow: none !important;
}

/* Remove visual gap between zoom + content */
body.sponsor-page .sponsor-intro{
  margin-bottom: 0;
  padding-bottom: 0;
}

body.sponsor-page main > .section:first-of-type{
  margin-top: 0;
  padding-top: clamp(40px, 6vh, 80px); /* breathing room without a “break” */
}

/* =========================================
   SPONSOR PAGE — REDUCE GAP BELOW ZOOM
   ========================================= */

/* Reduce space between sponsor zoom and content */
body.sponsor-page .sponsor-intro + .section{
  padding-top: clamp(32px, 6vh, 72px) !important;
  margin-top: 0 !important;
}

/* If your .section has large default padding */
body.sponsor-page .section{
  padding-bottom: clamp(60px, 10vh, 120px);
}

/* =========================================
   SPONSOR PAGE — REDUCE GAP BELOW ZOOM
   ========================================= */

/* Reduce space between sponsor zoom and content */
body.sponsor-page .sponsor-intro + .section{
  padding-top: clamp(32px, 6vh, 72px) !important;
  margin-top: 0 !important;
}

/* If your .section has large default padding */
body.sponsor-page .section{
  padding-bottom: clamp(60px, 10vh, 120px);
}

/* =========================================
   SPONSOR CONTENT LAYOUT (scoped)
   ========================================= */
/* FULL-WIDTH sponsor section */
body.sponsor-page .sponsor-content{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px clamp(24px, 5vw, 96px);
}

/* Split rows (text + image) */
body.sponsor-page .sponsor-split{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 3.5vw, 52px);
  align-items: start;
  margin: 0 0 clamp(34px, 5vw, 64px);
}

body.sponsor-page .sponsor-split--reverse{
  grid-template-columns: 0.95fr 1.05fr;
}
body.sponsor-page .sponsor-split--reverse .sponsor-split__text{ order: 2; }
body.sponsor-page .sponsor-split--reverse .sponsor-split__media{ order: 1; }

body.sponsor-page .sponsor-split__text h2{
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

body.sponsor-page .sponsor-split__text p{
  margin: 0 0 14px;
  line-height: 1.75;
  opacity: 0.92;
}

/* Media */
body.sponsor-page .sponsor-split__media{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
body.sponsor-page .sponsor-split__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Optional square media block */
body.sponsor-page .sponsor-split__media--square{
  aspect-ratio: 1 / 1;
}

/* Benefit cards */
body.sponsor-page .sponsor-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 clamp(34px, 5vw, 64px);
}

body.sponsor-page .sponsor-card{
  border-radius: 16px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

body.sponsor-page .sponsor-card h3{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
body.sponsor-page .sponsor-card p{
  margin: 0;
  opacity: 0.9;
  line-height: 1.65;
}

/* Gallery */
body.sponsor-page .sponsor-gallery{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 clamp(34px, 5vw, 64px);
}

body.sponsor-page .sponsor-shot{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
body.sponsor-page .sponsor-shot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Sponsor link */
body.sponsor-page .sponsor-link{
  font-weight: 800;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 900px){
  body.sponsor-page .sponsor-split{
    grid-template-columns: 1fr;
  }
  body.sponsor-page .sponsor-split--reverse .sponsor-split__text,
  body.sponsor-page .sponsor-split--reverse .sponsor-split__media{
    order: initial;
  }
  body.sponsor-page .sponsor-cards{
    grid-template-columns: 1fr;
  }
  body.sponsor-page .sponsor-gallery{
    grid-template-columns: 1fr;
  }
}

body.sponsor-page p{
  font-size: clamp(1.8rem, 1.6vw, 2rem);
  line-height: 1.75;
}

body.sponsor-page .sponsor-img-top{
  object-fit: cover;
  object-position: 50% 30%;
}

/* ======================================
   SPONSOR PAGE – SPONSOR DRIVEN LINK COLOR
   ====================================== */
body.sponsor-page a[href*="sponsordriven"]{
  color: #2ab5b8; /* your turquoise brand colour */
  font-weight: 600;
  text-decoration: none;
}

body.sponsor-page a[href*="sponsordriven"]:hover{
  text-decoration: underline;
}
/* ======================================
   SPONSOR PAGE – SECTION TITLE SCALE UP
   ====================================== */
body.sponsor-page .section h3{
  font-size: clamp(2rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 3rem 0 1.25rem;
}


/* ======================================
   SPONSOR PAGE – EVEN CARD VERTICAL PADDING
   ====================================== */
body.sponsor-page .sponsor-card{
  padding: 32px; /* equal top & bottom */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Remove extra top margin from headings inside cards */
body.sponsor-page .sponsor-card h3,
body.sponsor-page .sponsor-card h4{
  margin-top: 0;
  margin-bottom: 14px;
}

/* Normalise paragraph spacing */
body.sponsor-page .sponsor-card p{
  margin: 0;
  line-height: 1.6;
}

/* ======================================
   FOOTER – RESET TEXT SIZE (ALL PAGES)
   ====================================== */
.footer,
.footer p,
.footer a,
.footer-copy{
  font-size: 0.9rem;   /* or whatever it was originally */
  line-height: 1.4;
}

/* ======================================
   SPONSOR PAGE: STOP BIG TYPE AFFECTING FOOTER
   (paste at very bottom of styles.css)
   ====================================== */

body.sponsor-page footer.footer,
body.sponsor-page footer.footer *{
  font-size: 14px !important;   /* restores normal footer size */
  line-height: 1.4 !important;
}

/* keep the footer headings/links tidy */
body.sponsor-page footer.footer .footer-nav a{
  font-size: 14px !important;
}

/* if you want the copyright a touch smaller */
body.sponsor-page footer.footer .footer-copy{
  font-size: 13px !important;
  opacity: 0.8;
}

/* ======================================
   CALENDAR PAGE (Lando-inspired)
   Scoped: body.calendar-page
   ====================================== */

body.calendar-page .calendar-wrap{
  width: min(1400px, 92vw);
  margin: 0 auto;
  padding: 140px 0 80px; /* space under floating nav */
}

body.calendar-page .calendar-head{
  margin-bottom: clamp(18px, 3vw, 36px);
}

body.calendar-page .calendar-title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

body.calendar-page .calendar-sub{
  margin: 0;
  opacity: 0.85;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

body.calendar-page .calendar-grid{
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

body.calendar-page .round-card{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* big map + info */
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(16px, 2.6vw, 28px);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

body.calendar-page .round-media{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  aspect-ratio: 16 / 9;  /* big map “poster” feel */
}

body.calendar-page .round-media img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* track maps usually look best contained */
  display: block;
  padding: 0;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}

body.calendar-page .round-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.calendar-page .round-name{
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
}

body.calendar-page .round-pill{
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  white-space: nowrap;
}

body.calendar-page .round-meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.calendar-page .meta-item{
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

body.calendar-page .meta-label{
  opacity: 0.75;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 6px;
}

body.calendar-page .meta-value{
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 980px){
  body.calendar-page .round-card{
    grid-template-columns: 1fr;
  }
  body.calendar-page .round-meta{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px){
  body.calendar-page .round-meta{
    grid-template-columns: 1fr;
  }
}
/* ======================================
   CALENDAR (LANDO-STYLE PANELS)
   Scoped: body.calendar-page
   ====================================== */

body.calendar-page{
  /* if your site already has bg, ignore this */
  background: #0b0f12;
}

body.calendar-page .calendar-wrap{
  width: min(1500px, 94vw);
  margin: 0 auto;
  padding: 140px 0 90px;
}

/* Title */
body.calendar-page .calendar-head{
  margin-bottom: clamp(20px, 3vw, 44px);
}
body.calendar-page .calendar-title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}
body.calendar-page .calendar-sub{
  margin: 0;
  opacity: .85;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
}

/* STACK OF ROUNDS */
body.calendar-page .calendar-panels{
  display: grid;
  gap: clamp(22px, 3vw, 44px);
}

/* ONE ROUND PANEL FRAME */
body.calendar-page .round-panel{
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

/* thin “inner” border like Lando */
body.calendar-page .round-panel::before{
  content:"";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

/* layout: left rail + main + right info */
body.calendar-page .round-shell{
  display: grid;
  grid-template-columns: 120px 1fr 320px;
  min-height: 560px;
}

/* LEFT VERTICAL RAIL */
body.calendar-page .round-rail{
  position: relative;
  padding: 18px 10px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

body.calendar-page .rail-track{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 1.2rem;
  opacity: .92;
}

body.calendar-page .rail-dates{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1rem;
  opacity: .75;
}

/* MAIN CONTENT */
body.calendar-page .round-main{
  padding: 28px 26px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

/* top stats row */
body.calendar-page .round-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.calendar-page .stat{
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

body.calendar-page .stat .k{
  opacity: .7;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 6px;
}
body.calendar-page .stat .v{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

/* BIG MAP AREA */
body.calendar-page .round-map{
  position: relative;
  border-radius: 18px;
  background: radial-gradient(70% 60% at 50% 40%,
    rgba(0,255,209,.10),
    rgba(0,0,0,.30)
  );
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.calendar-page .round-map img{
  width: min(980px, 92%);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;

  /* gives that “glow” vibe like the screenshot */
  filter:
    drop-shadow(0 18px 50px rgba(0,255,209,.18))
    drop-shadow(0 22px 60px rgba(0,0,0,.45));
  opacity: .98;
}

/* RIGHT INFO BOX */
body.calendar-page .round-side{
  padding: 28px 24px;
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}

body.calendar-page .side-title{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
  opacity: .8;
}

body.calendar-page .side-body{
  opacity: .88;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0 0 18px;
}

body.calendar-page .side-list{
  display: grid;
  gap: 10px;
}

body.calendar-page .side-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  opacity: .9;
}

/* responsive */
@media (max-width: 1100px){
  body.calendar-page .round-shell{
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
  }
  body.calendar-page .round-side{
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  body.calendar-page .round-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px){
  body.calendar-page .round-shell{
    grid-template-columns: 1fr;
  }
  body.calendar-page .round-rail{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 12px;
    align-content: start;
  }
  body.calendar-page .rail-track,
  body.calendar-page .rail-dates{
    writing-mode: initial;
    transform: none;
    font-size: 1rem;
  }
  body.calendar-page .round-main{
    padding: 20px;
  }
}

/* ======================================
   CALENDAR (LANDO-STYLE PANELS)
   Scoped: body.calendar-page
   ====================================== */

body.calendar-page{
  background: #0b0f12;
}

body.calendar-page .calendar-wrap{
  width: min(1500px, 94vw);
  margin: 0 auto;
  padding: 140px 0 90px; /* space under floating nav */
}

/* Header */
body.calendar-page .calendar-head{
  margin-bottom: clamp(20px, 3vw, 44px);
}
body.calendar-page .calendar-title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}
body.calendar-page .calendar-sub{
  margin: 0;
  opacity: .85;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
}

/* Panels stack */
body.calendar-page .calendar-panels{
  display: grid;
  gap: clamp(22px, 3vw, 44px);
}

/* Panel frame */
body.calendar-page .round-panel{
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

/* Inner thin border like Lando */
body.calendar-page .round-panel::before{
  content:"";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

/* layout: rail + main + side */
body.calendar-page .round-shell{
  display: grid;
  grid-template-columns: 120px 1fr 320px;
  min-height: 560px;
}

/* Left rail */
body.calendar-page .round-rail{
  padding: 18px 10px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

body.calendar-page .rail-track{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 1.2rem;
  opacity: .92;
}

body.calendar-page .rail-dates{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1rem;
  opacity: .75;
}

/* Main */
body.calendar-page .round-main{
  padding: 28px 26px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

/* Stats row */
body.calendar-page .round-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.calendar-page .stat{
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

body.calendar-page .stat .k{
  opacity: .7;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 6px;
}
body.calendar-page .stat .v{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

/* Big map area */
body.calendar-page .round-map{
  border-radius: 18px;
  background: radial-gradient(70% 60% at 50% 40%,
    rgba(0,255,209,.10),
    rgba(0,0,0,.30)
  );
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.calendar-page .round-map img{
  width: min(980px, 92%);
  max-height: 360px;
  height: auto;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 18px 50px rgba(0,255,209,.18))
    drop-shadow(0 22px 60px rgba(0,0,0,.45));
  opacity: .98;
}

/* Right side info */
body.calendar-page .round-side{
  padding: 28px 24px;
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}

body.calendar-page .side-title{
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
  opacity: .8;
}

body.calendar-page .side-body{
  margin: 0 0 18px;
  opacity: .88;
  line-height: 1.6;
  font-size: 1rem;
}

body.calendar-page .side-list{
  display: grid;
  gap: 10px;
}

body.calendar-page .side-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  opacity: .9;
}

/* Responsive */
@media (max-width: 1100px){
  body.calendar-page .round-shell{
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
  }
  body.calendar-page .round-side{
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  body.calendar-page .round-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px){
  body.calendar-page .round-shell{
    grid-template-columns: 1fr;
  }
  body.calendar-page .round-rail{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
  }
  body.calendar-page .rail-track,
  body.calendar-page .rail-dates{
    writing-mode: initial;
    transform: none;
    font-size: 1rem;
  }
  body.calendar-page .round-main{
    padding: 20px;
  }
}

/* =========================================
   HOME (mobile): Condensed About text smaller
   ========================================= */
@media (max-width: 768px) {
  body.home-page #news p.sr {
    font-size: 0.95rem;     /* try 0.9–1.0rem */
    line-height: 1.55;      /* keeps it readable */
  }
}
/* =========================================
   HOME (mobile): Reduce gap before socials marquee
   ========================================= */
@media (max-width: 768px) {
  body.home-page .read-more {
    margin-bottom: 1.2rem; /* try 0.8–1.4rem */
  }
}

/* =========================================================
   HOME (mobile): Force SOCIAL STACK to be a FAN (no swipe)
   Targets: the #socialStack element on the homepage
   ========================================================= */
@media (max-width: 768px){

  /* 1) Kill the horizontal swipe/scroll layout */
  body.home-page #socialStack{
    overflow: visible !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    display: block !important;
    gap: 0 !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: auto !important;
    touch-action: auto !important;
  }

  /* 2) Make the container behave like a stacked stage */
  body.home-page #socialStack{
    position: relative !important;
    width: min(92vw, 520px);
    height: 360px;               /* adjust if you want taller */
    margin: 20px auto 0;
  }

  /* 3) Force each tile to stack + fan */
  body.home-page #socialStack .social-tile{
    position: absolute !important;
    left: 50%;
    top: 50%;
    width: min(78vw, 360px);     /* size of each card */
    aspect-ratio: 4 / 5;         /* card shape */
    transform-origin: 50% 90%;
    border-radius: 18px;
    overflow: hidden;
    translate: -50% -50%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  }

  /* 4) Apply the fan angles (for 5 tiles) */
  body.home-page #socialStack .social-tile:nth-child(1){
    transform: translate(-50%,-50%) rotate(-16deg) translateY(12px);
    z-index: 1;
  }
  body.home-page #socialStack .social-tile:nth-child(2){
    transform: translate(-50%,-50%) rotate(-8deg) translateY(6px);
    z-index: 2;
  }
  body.home-page #socialStack .social-tile:nth-child(3){
    transform: translate(-50%,-50%) rotate(0deg) translateY(0px);
    z-index: 3;
  }
  body.home-page #socialStack .social-tile:nth-child(4){
    transform: translate(-50%,-50%) rotate(8deg) translateY(6px);
    z-index: 4;
  }
  body.home-page #socialStack .social-tile:nth-child(5){
    transform: translate(-50%,-50%) rotate(16deg) translateY(12px);
    z-index: 5;
  }
}
/* Mobile safety: if anything set the socials to swipe, kill it */
@media (max-width: 768px){
  body.home-page #socialStack{
    overflow-x: visible !important;
    scroll-snap-type: none !important;
  }
}
/* =========================================================
   HOME: SOCIAL FAN ON MOBILE (CSS-ONLY BASE)
   Put at VERY bottom of styles.css
   ========================================================= */
@media (max-width: 768px){
  body.home-page #socialStack{
    position: relative !important;
    width: min(92vw, 560px) !important;
    height: 440px !important;
    margin: 18px auto 0 !important;

    /* ensure no swipe/scroller behaviour */
    display: block !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: auto !important;
    touch-action: none;
  }

  body.home-page #socialStack .social-tile{
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    translate: -50% -50% !important;

    width: min(80vw, 420px) !important;
    aspect-ratio: 3 / 4 !important;     /* adjust if you want squarer */
    border-radius: 18px !important;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);

    transform-origin: 50% 60%;
    transition: transform 260ms ease;
    will-change: transform;
  }

  /* FAN POSITIONS (same idea as desktop) */
  body.home-page #socialStack .social-tile:nth-child(1){ transform: translate(-50%, -50%) rotate(-18deg) translateX(-72px) translateY(10px); z-index: 1; }
  body.home-page #socialStack .social-tile:nth-child(2){ transform: translate(-50%, -50%) rotate(-9deg)  translateX(-36px) translateY(2px);  z-index: 2; }
  body.home-page #socialStack .social-tile:nth-child(3){ transform: translate(-50%, -50%) rotate(0deg)   translateX(0px)   translateY(-6px); z-index: 3; }
  body.home-page #socialStack .social-tile:nth-child(4){ transform: translate(-50%, -50%) rotate(9deg)   translateX(36px)  translateY(2px);  z-index: 2; }
  body.home-page #socialStack .social-tile:nth-child(5){ transform: translate(-50%, -50%) rotate(18deg)  translateX(72px)  translateY(10px); z-index: 1; }

  /* Optional: slight spread on tap/hover */
  body.home-page #socialStack:active .social-tile:nth-child(1){ transform: translate(-50%, -50%) rotate(-22deg) translateX(-88px) translateY(14px); }
  body.home-page #socialStack:active .social-tile:nth-child(2){ transform: translate(-50%, -50%) rotate(-11deg) translateX(-44px) translateY(4px); }
  body.home-page #socialStack:active .social-tile:nth-child(4){ transform: translate(-50%, -50%) rotate(11deg)  translateX(44px)  translateY(4px); }
  body.home-page #socialStack:active .social-tile:nth-child(5){ transform: translate(-50%, -50%) rotate(22deg)  translateX(88px)  translateY(14px); }
}

/* =========================================
   MOBILE: RIGHT-ALIGN FULL SCREEN MENU
   Matches desktop alignment
   ========================================= */
@media (max-width: 768px){

  /* Right side column */
  .menu-sheet-right{
    align-items: flex-end !important;
    text-align: right !important;
    padding-right: 28px;     /* breathing room from edge */
    padding-left: 0 !important;
  }

  /* Main nav links */
  .menu-sheet-right .menu-big{
    text-align: right !important;
    width: 100%;
  }

  /* Social links at bottom */
  .menu-sheet-socials{
    align-items: flex-end !important;
    text-align: right !important;
  }

  .menu-sheet-socials a{
    text-align: right !important;
  }
}
/* =========================================
   MOBILE: HARD RIGHT ALIGN MENU (MATCH SOCIALS)
   ========================================= */
@media (max-width: 768px){

  /* Remove internal width constraint */
  .menu-sheet-content{
    padding-right: 0 !important;
  }

  /* Push nav column fully to the right */
  .menu-sheet-right{
    align-items: flex-end !important;
    text-align: right !important;
    padding-right: 20px !important; /* SAME edge as socials */
  }

  /* Ensure each link snaps to the same edge */
  .menu-sheet-right .menu-big{
    width: auto !important;
    text-align: right !important;
  }

  /* Socials: lock same padding */
  .menu-sheet-socials{
    padding-right: 20px !important;
    align-items: flex-end !important;
    text-align: right !important;
  }
}
@media (max-width: 768px){

  /* KEEP menu exactly where it is */
  .menu-sheet-right{
    padding-right: 20px !important;
  }

  /* Pull socials back slightly to original position */
  .menu-sheet-socials{
    padding-right: 5px !important;
  }
}
/* =========================================================
   OULTON -> match BRANDS HATCH layout (MOBILE ONLY)
   Scoped to: body.oulton-page
   ========================================================= */
@media (max-width: 700px){

  /* 1) Make the main “hero/content” wrapper stack like Brands */
  body.oulton-page .race-hero,
  body.oulton-page .race-report,
  body.oulton-page .news-hero,
  body.oulton-page .news-layout,
  body.oulton-page .report-layout,
  body.oulton-page .page-hero,
  body.oulton-page main .section{
    width: min(520px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
  }

  /* 2) If your Oulton page uses a 2-col wrapper, force column stack */
  body.oulton-page .race-split,
  body.oulton-page .split,
  body.oulton-page .two-col,
  body.oulton-page .hero-split,
  body.oulton-page .news-split{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* 3) Put the IMAGE above the text on mobile (like Brands) */
  body.oulton-page .race-media,
  body.oulton-page .hero-media,
  body.oulton-page .news-media,
  body.oulton-page .report-media,
  body.oulton-page .race-image,
  body.oulton-page .hero-image,
  body.oulton-page .content-image-wrap{
    order: -1;
  }

  /* 4) Force the Oulton image into a square + fill the box */
  body.oulton-page .race-media img,
  body.oulton-page .hero-media img,
  body.oulton-page .news-media img,
  body.oulton-page .report-media img,
  body.oulton-page .race-image img,
  body.oulton-page .hero-image img,
  body.oulton-page img.content-image{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;     /* square like Brands */
    object-fit: cover;
    display: block;
    border-radius: 22px;
    margin: 0;
  }

  /* 5) Make sure no weird gaps around the image container */
  body.oulton-page .race-media,
  body.oulton-page .hero-media,
  body.oulton-page .news-media,
  body.oulton-page .report-media,
  body.oulton-page .race-image,
  body.oulton-page .hero-image,
  body.oulton-page .content-image-wrap{
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 6) Match Brands text alignment + sizing (Oulton was more centered) */
  body.oulton-page h1,
  body.oulton-page .race-title,
  body.oulton-page .report-title{
    text-align: left !important;
  }

  body.oulton-page p,
  body.oulton-page .race-copy,
  body.oulton-page .report-copy{
    text-align: left !important;
  }

  /* Optional: tighten text block a bit like Brands */
  body.oulton-page .race-copy p,
  body.oulton-page .report-copy p,
  body.oulton-page p{
    font-size: 0.95rem;
    line-height: 1.55;
  }
}
/* =========================================================
   MOBILE ONLY: Make Oulton match Brands layout
   (image first, square, same spacing/align)
   Scoped to: body.page-oulton ONLY
   ========================================================= */
@media (max-width: 700px){

  /* Force the split to stack like Brands */
  body.page-oulton .season-split{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Put image above text on mobile */
  body.page-oulton .season-split__media{
    order: -1;
  }
  body.page-oulton .season-split__content{
    order: 2;
  }

  /* Make the image square + fill the box */
  body.page-oulton .season-split__media{
    width: 100%;
  }
  body.page-oulton .season-split__media img{
    width: 100%;
    aspect-ratio: 1 / 1;   /* square like Brands */
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
  }

  /* Match Brands text alignment (Oulton was centered) */
  body.page-oulton .season-split__title,
  body.page-oulton .season-split__subtitle,
  body.page-oulton .season-split__body{
    text-align: left;
  }

  /* Optional: make sure the section width/margins feel the same */
  body.page-oulton main{
    padding-left: 14px;
    padding-right: 14px;
  }
}
/* =========================================================
   MOBILE ONLY: Oulton text size + left alignment
   ========================================================= */
@media (max-width: 700px){

  body.page-oulton .season-split__content{
    text-align: left;
    padding-left: 0;      /* ensures it hugs the left like Brands */
    padding-right: 0;
  }

  body.page-oulton .season-split__title{
    font-size: 1.9rem;    /* larger headline on mobile */
    line-height: 1.15;
    text-align: left;
  }

  body.page-oulton .season-split__subtitle{
    font-size: 1.1rem;
    margin-top: 6px;
    text-align: left;
  }

  body.page-oulton .season-split__body p{
    font-size: 1.05rem;   /* readable but not oversized */
    line-height: 1.6;
    text-align: left;
  }
}
/* =========================================================
   MOBILE ONLY: Center text inside news post pills
   ========================================================= */
@media (max-width: 700px){

  .post-nav a{
    display: flex;
    flex-direction: column;
    align-items: center;     /* horizontal centering */
    justify-content: center; /* vertical centering */
    text-align: center;
  }

  .post-nav a .label{
    display: block;
    text-align: center;
    margin-bottom: 4px;
  }

  .post-nav a span{
    text-align: center;
  }
}
/* =========================
   MOBILE NAV (Become a Sponsor only if you want)
   ========================= */
@media (max-width: 768px) {

  /* Show hamburger */
  .nav-toggle{
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 0;
    z-index: 9999;
  }

  .nav-toggle span{
    display:block;
    width: 24px;
    height: 2px;
    background: #ffffff; /* change if needed */
    border-radius: 999px;
  }

  /* Hide the normal nav links by default on mobile */
  .nav-links{
    display: none;
  }

  /* When menu is open */
  .nav-open .nav-links{
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 64px;       /* adjust to your header height */
    right: 14px;
    left: 14px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
  }
}
@media (max-width: 768px) {
  /* Disable any hover-based zoom effects on mobile */
  .sponsor-zoom:hover img,
  .sponsor-zoom img:hover{
    transform: none !important;
  }

  /* Base state */
  .sponsor-zoom img{
    transition: transform 220ms ease;
    transform: scale(1);
    transform-origin: 70% 50%; /* slightly to the RIGHT */
    will-change: transform;
  }

  /* Tapped/zoomed state */
  .sponsor-zoom.is-zoomed img{
    transform: scale(1.6); /* adjust: 1.4–2.0 */
  }
}
@media (max-width: 768px) {
  .sponsor-zoom img{
    object-fit: cover;
    object-position: 70% 50%; /* move focal point right */
  }
}
@media (max-width: 768px) {
  .page-sponsor p{
    font-size: 13px;      /* adjust down as needed */
    line-height: 1.45;
  }
}
/* =========================================================
   SPONSOR PAGE - MOBILE ONLY FIXES
   ========================================================= */
@media (max-width: 768px) {

  /* Hide the duplicate hamburger (the one you added) */
  body.sponsor-page .nav-toggle{
    display: none !important;
  }

  /* Ensure the EXISTING burger (#menuToggle) is visible + top-right */
  body.sponsor-page .floating-nav{
    position: fixed; /* if yours is already fixed, this won't change behaviour much */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
  }

  body.sponsor-page .floating-burger{
    display: inline-flex !important;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
  }

  /* Make sure logo stays left */
  body.sponsor-page .floating-logo{
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 768px) {

  /* --- HERO IMAGE focal point to the right --- */
  body.sponsor-page .sponsor-intro__img{
    object-fit: cover;
    object-position: 70% 50%; /* move centre point right */
  }

  /* --- Stop any buggy transform behaviour coming from JS --- */
  body.sponsor-page .sponsor-intro__img{
    transform: none !important;
    transition: none !important;
  }

  /* If sponsor-zoom.js applies transforms to the frame or sticky wrapper */
  body.sponsor-page .sponsor-intro__frame,
  body.sponsor-page .sponsor-intro__sticky,
  body.sponsor-page #sponsorIntro{
    transform: none !important;
  }
}
@media (max-width: 768px) {

  /* Make body paragraphs smaller on this page */
  body.sponsor-page .section p,
  body.sponsor-page .sponsor-content p{
    font-size: 16px;
    line-height: 1.45;
  }

  /* Keep headings readable (optional) */
  body.sponsor-page .sponsor-content h2{
    font-size: 22px;
    line-height: 1.15;
  }

  body.sponsor-page .sponsor-content h3{
    font-size: 18px;
    line-height: 1.2;
  }
}

/* =========================================
   SPONSOR ZOOM — MOBILE END SHAPE (PORTRAIT)
   Only affects small screens
   ========================================= */
@media (max-width: 640px){
  body.sponsor-page{
    /* width/height ratio for the FINAL settled rectangle
       0.5625 = 9/16 (portrait phone-ish) */
    --si-end-ratio: 0.5625;

    /* cap the final height so it doesn’t get too tall */
    --si-end-max-h: 78vh;

    /* final corner radius on mobile */
    --si-end-r: 26px;

    /* subtle shadow similar to your “card” look */
    --si-end-shadow: 0 18px 55px rgba(0,0,0,0.35);
  }

  /* optional: keep the final card feeling centered */
  body.sponsor-page .sponsor-intro__sticky{
    padding: 0 0px;
  }

  body.sponsor-page .sponsor-intro__frame{
    box-shadow: var(--si-end-shadow, 0 20px 60px rgba(0,0,0,0.35));
  }
}

/* =========================================================
   MOBILE ONLY – FORCE SPONSOR PAGE HEADER TO MATCH SITE
   ========================================================= */
@media (max-width: 768px){

  /* Header spacing + position */
  body.sponsor-page .floating-nav{
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    align-items: center !important;
  }

  /* Logo alignment (stops it touching the top) */
  body.sponsor-page .floating-logo{
    display: flex;
    align-items: center;
  }

  body.sponsor-page .floating-logo img{
    height: 62px !important;
    width: auto !important;
    display: block;
  }

  /* Burger button – restore rounded square */
  body.sponsor-page .floating-burger{
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
 
    place-items: center !important;
  }

  /* Burger bars spacing (prevents “floating lines” look) */
  body.sponsor-page .burger-bars{
    display: grid !important;
    gap: 6px !important;
  }

}

/* =========================================================
   MOBILE — ALIGN SPONSOR PAGE HEADER MARGINS
   Matches all other pages exactly
========================================================= */
@media (max-width: 768px) {

  body.page.sponsor-page .floating-nav {
    top: calc(4px + env(safe-area-inset-top));
    left: 0px;
    right: 0px;
  }

}

/* =========================================================
   OULTON PARK – TABLET FIX (force mobile-style layout)
   Makes tablet look like mobile (your pic 2)
   Only affects body.page-oulton
   ========================================================= */
@media (min-width: 767px) and (max-width: 1024px) {
  body.page-oulton .season-split {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }


  /* Image first, full width */
  body.page-oulton .season-split__media {
    order: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.page-oulton .season-split__media img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  /* Text under image, full width + LEFT aligned */
  body.page-oulton .season-split__content {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body.page-oulton .season-split__title,
  body.page-oulton .season-split__subtitle,
  body.page-oulton .season-split__body {
    text-align: left !important;
  }
}

/* =========================================================
   OULTON PARK – FORCE LEFT ALIGN (mobile + tablet)
   Up to desktop breakpoint
   ========================================================= */
@media (max-width: 1024px) {

  /* Main race report text */
  body.page-oulton .season-split__content,
  body.page-oulton .season-split__body {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  /* Paragraphs explicitly */
  body.page-oulton .season-split__body p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Post navigation container */
  body.page-oulton .post-nav {
    justify-content: space-between !important;
    text-align: left !important;
  }

  /* Individual pills */
  body.page-oulton .post-nav a {
    text-align: left !important;
    align-items: flex-start !important;
  }

  body.page-oulton .post-nav .label,
  body.page-oulton .post-nav span {
    text-align: left !important;
  }
}

/* =========================================================
   ABOUT PAGE – BACKGROUND ALWAYS COVERS + CENTER LOWER
   ========================================================= */
body.about-page,
body.page.about-page {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 62% !important; /* move focal point DOWN a bit */
}

/* =========================================================
   TABLET: make Social Stack behave like mobile (single tile)
   ========================================================= */
@media (min-width: 426px) and (max-width: 1204px) {

  /* kill the fan layout on tablet */
  #socialStack {
    position: relative !important;
    height: 420px !important;          /* adjust if you want */
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  /* hide all tiles... */
  #socialStack .social-tile {
    display: none !important;
    transform: none !important;
    position: relative !important;
    inset: auto !important;
  }

  /* ...show just ONE tile (first one) */
  #socialStack .social-tile:nth-child(1) {
    display: block !important;
    width: min(86vw, 420px) !important;
    height: min(110vw, 520px) !important; /* phone-ish aspect */
    border-radius: 28px !important;
    background-position: center !important;
    background-size: cover !important;
  }
}

/* ===============================
   CONTACT FORM – FINAL STYLING
   =============================== */

.contact-form,
form[name="contact"]{
  max-width: 680px;
  margin: 40px auto 0;
  padding: 28px;

  background: rgba(20,20,20,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Grid for name + email */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}

/* Field wrapper */
.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels */
.field label,
.contact-consent{
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Required star */
.req{
  color: #2ab5b8;
  margin-left: 2px;
}

/* Inputs & textarea */
form[name="contact"] input[type="text"],
form[name="contact"] input[type="email"],
form[name="contact"] textarea{
  width: 100%;
  padding: 12px 14px;

  background: rgba(255,255,255,0.05);
  color: #fff;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);

  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;

  outline: none;
}

form[name="contact"] textarea{
  min-height: 110px;
  resize: vertical;
}

/* Focus state */
form[name="contact"] input:focus,
form[name="contact"] textarea:focus{
  border-color: rgba(42,181,184,0.8);
  box-shadow: 0 0 0 1px rgba(42,181,184,0.35);
}

/* Consent row */
.contact-consent{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.consent{
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Custom checkbox */
.consent input{
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
}

.consent input:checked{
  background: rgba(42,181,184,0.25);
  border-color: #2ab5b8;
}

.consent input:checked::after{
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #2ab5b8;
}

/* Required key */
.req-key{
  font-size: 12px;
  opacity: 0.65;
}

/* Send button */
form[name="contact"] button{
  margin-top: 18px;
  padding: 12px 20px;

  align-self: flex-start;

  background: rgba(42,181,184,0.18);
  color: #2ab5b8;

  border-radius: 999px;
  border: 1px solid rgba(42,181,184,0.45);

  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;

  cursor: pointer;
  transition: all .25s ease;
}

form[name="contact"] button:hover{
  background: rgba(42,181,184,0.28);
}
