/* ===== Base ===== */
:root{
  --bg:#ffffff;
  --panel:rgba(255,255,255,.82);
  --text:#0b0f14;
  --muted:rgba(11,15,20,.70);
  --line:rgba(11,15,20,.12);
  --wrap:1120px;
  --radius:18px;
  --accent:#B11A2A;
  --accent-soft: rgba(177, 26, 42, .30);
  --pastel-1: rgba(182, 120, 255, .10);
  --pastel-2: rgba(190, 220, 80, .12);
  --pastel-3: rgba(255, 198, 90, .12);
  --pastel-4: rgba(255, 120, 120, .10);
  --pastel-5: rgba(255, 120, 220, .10);
  --pastel-6: rgba(120, 200, 255, .10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}
a{color:inherit;text-decoration:none}
.wrap{width:min(var(--wrap), calc(100% - 40px)); margin:0 auto}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;overflow:visible;background:rgba(255,255,255,.72);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:14px}
.brand{display:flex;flex-direction:column;gap:2px}
.brand__mark{
  font-weight:800;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.brand__tag{font-size:12px;color:var(--muted)}
.site-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.site-nav a,.dropbtn{font-size:14px;color:var(--muted);padding:8px 10px;border-radius:10px;border:0;background:transparent;cursor:pointer}
.site-nav a:hover,.dropbtn:hover{color:var(--text);background:rgba(11,15,20,.06)}
.nav-cta{border:1px solid var(--line);background:rgba(11,15,20,.03);color:var(--text)!important}
.nav-cta:hover{background:rgba(11,15,20,.06)}
.nav-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--text);margin:4px 0;border-radius:2px}

/* Dropdown (hover bridge prevents menu vanishing) */
.dropdown{position:relative}
.dropdown::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;}
.dropdown-menu{position:absolute;top:100%;left:0;margin-top:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;min-width:220px;box-shadow:0 12px 28px rgba(0,0,0,.10);z-index:100;display:block;max-height:0;opacity:0;overflow:hidden;pointer-events:none;transition:max-height .28s ease, opacity .22s ease, transform .22s ease}
.dropdown-menu a{display:block;padding:10px 10px;border-radius:10px}

/* Hero */
.hero{
  min-height:92svh;
  display:grid;
  align-items:end;
  padding-top:82px;
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  /* lighter overlay so the image is clearly visible */
  background:
    radial-gradient(85% 60% at 18% 18%, rgba(11,15,20,.12), transparent 60%),
    linear-gradient(to bottom, rgba(255,255,255,.20), rgba(255,255,255,.70));
  pointer-events:none;
}
.hero-content, .scroll-hint{position:relative; z-index:1;}

.hero-content{padding:66px 0 48px}
.kicker{color:var(--muted);letter-spacing:.08em;font-size:12px;text-transform:uppercase}
.hero h1{font-weight:600;font-size:clamp(34px,4vw,58px);line-height:1.04;margin:12px 0 14px;max-width:22ch}
.lede{color:var(--muted);font-size:clamp(16px,1.3vw,18px);max-width:62ch;line-height:1.65}
.hero-actions{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}
.scroll-hint{justify-self:center;margin:0 0 18px;width:44px;height:44px;border:1px solid var(--line);border-radius:999px;display:grid;place-items:center;color:var(--muted);background:rgba(11,15,20,.03)}

/* Badges */
.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.badge{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(11,15,20,.02)}
.badge__text{font-size:13px;color:var(--muted)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);font-size:14px;transition:transform .15s ease, background .15s ease, filter .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-sm{height:38px;padding:0 14px;font-size:13px}
.btn-primary{background:var(--accent);color:#fff;border-color:transparent}
.btn-primary:hover{filter:brightness(.92)}
.btn-ghost{background:rgba(11,15,20,.04);color:var(--text)}
.btn-ghost:hover{background:rgba(11,15,20,.07)}
.text-link{color:var(--muted)}
.text-link:hover{color:var(--text)}

/* Sections */
.section{padding:76px 0;border-top:1px solid var(--line)}
.section-alt{background:linear-gradient(to bottom, rgba(11,15,20,.03), rgba(11,15,20,0))}
.section h2{font-weight:600;font-size:28px;margin:0 0 18px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* Subnav */
.subnav{display:flex;gap:10px;flex-wrap:wrap}
.subnav a{font-size:13px;color:var(--muted);padding:8px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(11,15,20,.02)}
.subnav a:hover{color:var(--text);background:rgba(11,15,20,.05)}
.subnav a.is-active{color:var(--text);background:rgba(11,15,20,.08)}

/* Grids */
.grid-2{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:start}
.card{background:rgba(11,15,20,.03);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.card h3{margin:0 0 8px;font-weight:600}
.card p,.card li{color:var(--muted);line-height:1.6}

/* Ticks */
.ticks{list-style:none;padding:0;margin:12px 0 0}
.ticks li{padding-left:22px;position:relative;margin:8px 0}
.ticks li::before{content:"✓";position:absolute;left:0;top:0;color:rgba(11,15,20,.55)}

/* Pills */
.pill-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.pill{font-size:12px;color:var(--muted);padding:8px 10px;border-radius:999px;background:rgba(11,15,20,.03);border:1px solid var(--line)}

/* Callout */
.callout{margin-top:14px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.85)}

/* Mini grid */
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.mini-card{border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.75);padding:16px}
.steps{margin:10px 0 0;color:var(--muted);line-height:1.7;padding-left:18px}

/* Quote */
.quote{margin-top:18px;border:1px solid var(--line);border-radius:var(--radius);padding:18px;background:rgba(11,15,20,.02)}
.quote p{margin:0 0 8px;font-size:16px;line-height:1.6}

/* Feature row with background-corner icons */
.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.feature{position:relative;display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:var(--radius);padding:16px 132px 16px 16px;background:rgba(11,15,20,.02);overflow:hidden}


/* Topic grid with background-corner icons */
.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.topic-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);padding:18px;background:rgba(255,255,255,.70);transition:transform .15s ease, box-shadow .15s ease}

.topic-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.08)}
.topic-card h3{margin:0 0 8px;font-weight:600; position:relative; z-index:1}
.topic-card p{margin:0 0 12px;color:var(--muted);line-height:1.55; position:relative; z-index:1}
.topic-tags{display:flex;gap:6px;flex-wrap:wrap; position:relative; z-index:1}
.topic-tags span{font-size:12px;color:#333;padding:6px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.18);background:#fff;}

/* Parallax segments */
.bg-learning{background-image:url("images/alternative_provisions.jpg")}
.bg-alt{background-image:url("images/alternative_provisions.jpg")}
.bg-edu{background-image:url("images/education.jpg")}
.bg-asb{background-image:url("images/alternative_provisions.jpg")}
.bg-segment{
  position:relative;
  min-height:560px;
  display:grid;
  align-items:center;
  padding:68px 0;
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.bg-segment::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.78));pointer-events:none;z-index:0}
.bg-segment .content{position:relative;z-index:1;width:min(var(--wrap), calc(100% - 40px));margin:0 auto;background:var(--panel);border:1px solid rgba(11,15,20,.10);border-radius:var(--radius);padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.bg-segment .content h3{margin:0;font-weight:700}
.bg-segment .content p{margin:0;color:var(--muted)}

/* Articles */
.articles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.article-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:rgba(255,255,255,.78)}
.article-card .thumb{height:170px;background-size:cover;background-position:center}
.article-card .thumb-link{display:block;position:relative;height:170px;background-size:cover;background-position:center;overflow:hidden}
.article-card h3{margin:14px 14px 6px;font-weight:600}
.article-card p{margin:0 14px 16px;color:var(--muted);line-height:1.55}

/* CTA panel */
.cta-panel{margin-top:18px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(11,15,20,.02);padding:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}

/* Footer */
.footer{border-top:1px solid var(--line);padding:70px 0 22px;background:rgba(11,15,20,.02)}
.footer-inner{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.contact-form{display:grid;gap:12px;background:rgba(255,255,255,.85);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
label{display:grid;gap:6px;color:var(--muted);font-size:13px}
input,textarea{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text);outline:none}
input:focus,textarea:focus{border-color:rgba(11,15,20,.25)}
.form-note{margin:4px 0 0;font-size:12px}
.contact-details{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.contact-chip{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.65);font-size:13px;color:var(--muted)}
.footer-bottom{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}

/* Reveal */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .7s ease, transform .7s ease}
.reveal.is-visible{opacity:1;transform:translateY(0)}

/* Responsive */
@media (max-width:1080px){
  .topic-grid{grid-template-columns:repeat(2,1fr)}
  .mini-grid{grid-template-columns:1fr}
  .feature-row{grid-template-columns:1fr}
}
@media (max-width:980px){
  .grid-2{grid-template-columns:1fr}
  .articles{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
}
@media (max-width:820px){
  .site-nav{position:absolute;right:20px;top:64px;display:none;flex-direction:column;align-items:stretch;min-width:260px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:16px;padding:10px;gap:0}
  .nav-toggle{display:block}
  .dropdown-menu{position:static;box-shadow:none;border-radius:12px;margin-top:6px}
  .site-nav{position:absolute;right:20px;top:64px;display:none;flex-direction:column;align-items:stretch;min-width:260px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:16px;padding:10px;gap:0}
  .site-nav.is-open{display:flex}
  .site-nav a,.dropbtn{padding:10px 12px;text-align:left}
    .dropdown-menu.is-open{max-height:520px;height:auto;opacity:1;pointer-events:auto;margin:6px 0 0;padding:8px;border:1px solid var(--line)}
  .topic-grid{grid-template-columns:1fr}
} (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal,.btn{transition:none}
}
.dropdown:hover .dropdown-menu{max-height:420px;opacity:1;pointer-events:auto;transform:translateY(0)
  .dropdown{margin:0}
}
.icon{display:inline-flex;align-items:center;justify-content:center;color:var(--accent)}
.icon svg{width:18px;height:18px;display:block}

/* Disable hover-open on touch devices; open only via .is-open toggled by click */
@media (hover: none), (pointer: coarse){
  .dropdown:hover .dropdown-menu{max-height:0;opacity:0;pointer-events:none;transform:none}
  .dropdown-menu.is-open{max-height:520px;opacity:1;pointer-events:auto;transform:none}
}


.topic-grid .topic-card:nth-child(2){background:linear-gradient(135deg, var(--pastel-2), rgba(255,255,255,.70))}
.topic-grid .topic-card:nth-child(3){background:linear-gradient(135deg, var(--pastel-3), rgba(255,255,255,.70))}
.topic-grid .topic-card:nth-child(4){background:linear-gradient(135deg, var(--pastel-4), rgba(255,255,255,.70))}
.topic-grid .topic-card:nth-child(5){background:linear-gradient(135deg, var(--pastel-5), rgba(255,255,255,.70))}
.topic-grid .topic-card:nth-child(6){background:linear-gradient(135deg, var(--pastel-6), rgba(255,255,255,.70))}

/* Red blurred background icons (mask so colour is controllable) */


/* different icons per card */
.topic-grid .topic-card:nth-child(1)::after{
  mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/target.svg");
  -webkit-mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/target.svg");
}
.topic-grid .topic-card:nth-child(2)::after{
  mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/pill.svg");
  -webkit-mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/pill.svg");
}
.topic-grid .topic-card:nth-child(3)::after{
  mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/alert-triangle.svg");
  -webkit-mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/alert-triangle.svg");
}
.topic-grid .topic-card:nth-child(4)::after{
  mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/users.svg");
  -webkit-mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/users.svg");
}
.topic-grid .topic-card:nth-child(5)::after{
  mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/heart.svg");
  -webkit-mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/heart.svg");
}
.topic-grid .topic-card:nth-child(6)::after{
  mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/compass.svg");
  -webkit-mask-image:url("https://cdn.jsdelivr.net/npm/lucide-static/icons/compass.svg");
}


/* Inline heading icons (solid accent) */
.hicon{
  display:inline-flex;
  width:18px;
  height:18px;
  margin-right:10px;
  color:var(--accent);
  vertical-align:-3px;
  flex:0 0 auto;
}
.hicon svg{width:18px;height:18px;display:block}
.topic-card h3{display:flex;align-items:flex-start}
.feature strong{display:flex;align-items:flex-start}

/* Brand styling */
.brand-exposed{
  color:#B11A2A;
  font-weight:700;
  margin-left:6px;
}

/* Topic card background images */
.topic-card{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
  overflow:hidden;
}


.topic-card > *{
  position:relative;
  z-index:2;
}

/* Individual topic backgrounds */
.topic-grid .topic-card:nth-child(1){
  background-image:url("images/bullying.jpg");
}
.topic-grid .topic-card:nth-child(2){
  background-image:url("images/drug_abuse.jpg");
}
.topic-grid .topic-card:nth-child(3){
  background-image:url("images/anti-social.jpg");
}
.topic-grid .topic-card:nth-child(4){
  background-image:url("images/gang_culture.jpg");
}
.topic-grid .topic-card:nth-child(5){
  background-image:url("images/teenage_pregnancies.jpg");
}
.topic-grid .topic-card:nth-child(6){
  background-image:url("images/post-16_pathways.jpg");
}

/* Topic card hover zoom */
.topic-card{
  transition: transform .25s ease, box-shadow .25s ease;
}
.topic-card:hover{
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
.topic-card:hover::before{
  background: rgba(255,255,255,0.78);
}

/* Topic cards: image should fit inside box without stretching */
.topic-card{
  background-color:#fff;
  background-size: cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

/* Overlay for resource card images: clear by default, readable on hover */
.topic-card{
  position:relative;
  overflow:hidden;
}

.topic-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0);
  transition:background .25s ease;
  z-index:1;
}

.topic-card > *{
  position:relative;
  z-index:2;
}

/* Add readable white overlay on hover */
.topic-card:hover::before{
  background:rgba(255,255,255,0.28);
}

/* Extra image depth for parallax sections so no white gap appears while scrolling */

.hero.parallax{
  background-size:150% auto;
}


.bg-segment.parallax{
  background-size:220% auto;
}


/* Slightly taller inner spacing for parallax sections */
.bg-segment .content{
  min-height: 92px;
}

/* White CTA buttons on parallax areas */
.hero-badges .badge{
  background:#ffffff;
  border:1px solid rgba(0,0,0,.14);
}
.hero-badges .badge__text{
  color:#333;
}
.bg-segment .btn-ghost{
  background:#ffffff;
  color:#333;
  border:1px solid rgba(0,0,0,.14);
}
.bg-segment .btn-ghost:hover{
  background:#ffffff;
  filter:brightness(.97);
}

.hero-badges .badge{
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.hero-badges .badge:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(0,0,0,.08);
}

/* Resource card heading icons should be white for contrast */
.topic-card .hicon{
  color:#ffffff;
}


/* Only the 2nd and 3rd parallax image sections get extra zoom */
.parallax-mid{
  min-height:680px;
  background-size:220% auto;
  background-position:center top;
}


/* CTA badge icons for hero links */
.hero-badges .badge .icon{
  color:#B11A2A;
}

/* Topic bullet lists */
.topic-bullets{
  margin-top:10px;
  padding-left:18px;
  color:#333;
}
.topic-bullets li{
  margin:4px 0;
  font-size:14px;
}

.bg-segment .topic-bullets{
  margin:10px 0 0 0;
  padding-left:18px;
  color:#333;
}
.bg-segment .topic-bullets li{
  margin:4px 0;
  font-size:14px;
}

/* Section-specific correction: Alternative Provision image sits lower than the others,
   so start it higher and give it a bit more zoom. */
.bg-alt.parallax-mid{
  background-size: 240% auto;
  background-position: center -120px !important;
}

/* GPU parallax image layers */
.parallax-media{
  position:absolute;
  inset:auto 0 auto 0;
  width:100%;
  height:140%;
  object-fit:cover;
  object-position:center top;
  top:-20%;
  transform:translate3d(0,0,0) scale(1.12);
  will-change:transform;
  z-index:0;
  pointer-events:none;
}

.media-hero{
  height:125%;
  top:-8%;
  transform:translate3d(0,0,0) scale(1.10);
}

.media-learning{
  height:175%;
  top:-36%;
  transform:translate3d(0,0,0) scale(1.22);
}

.media-alt{
  height:220%;
  top:-54%;
  transform:translate3d(0,0,0) scale(1.32);
}

.media-edu{
  height:185%;
  top:-40%;
  transform:translate3d(0,0,0) scale(1.24);
}

.hero::before{z-index:1;}
.bg-segment::before{z-index:1;}
.hero-content, .scroll-hint{position:relative; z-index:2;}
.bg-segment .content{position:relative; z-index:2;}


/* Mobile parallax optimisation */
@media (max-width: 820px){
  .media-hero{
    height:118%;
    top:-4%;
    transform:translate3d(0,0,0) scale(1.05);
  }

  .media-learning,
  .media-edu{
    height:145%;
    top:-18%;
    transform:translate3d(0,0,0) scale(1.10);
  }

  .media-alt{
    height:165%;
    top:-26%;
    transform:translate3d(0,0,0) scale(1.14);
  }
}


.brand__stamp{
  display:block;
  width:83px;
  height:21px;
  object-fit:contain;
  object-position:center;
  flex:0 0 auto;
}


.footer-stamp{
  height:16px;
  width:auto;
  vertical-align:middle;
  margin-left:6px;
  opacity:.9;
}


/* Clayton portrait in hero */
.hero{
  position:relative;
}

.hero-content{
  position:relative;
  z-index:2;
  padding-right:min(34vw, 420px);
}

.hero-clayton,
.hero-clayton-wrap{
  position:absolute;
  right:14px;
  bottom:0;
  width:auto;
  height:auto;
  max-width:36%;
  max-height:calc(100% - 66px);
  object-fit:contain;
  object-position:bottom right;
  z-index:2;
  pointer-events:none;
}

.hero-clayton-wrap{
  aspect-ratio: 3 / 4;
  width:min(100%, 420px);
  perspective:1200px;
  transform-style:preserve-3d;
}

.hero-clayton-wrap .hero-clayton{
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  position:absolute;
  object-fit:contain;
  object-position:bottom right;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform-style:preserve-3d;
  transition:transform .7s ease;
}

.hero-clayton--front{
  transform:rotateY(0deg);
}

.hero-clayton--back{
  transform:rotateY(180deg);
}

.hero-clayton-wrap.is-judge .hero-clayton--front{
  transform:rotateY(-180deg);
}

.hero-clayton-wrap.is-judge .hero-clayton--back{
  transform:rotateY(0deg);
}

.hero-clayton-wrap.is-shaking{
  animation:heroClaytonShake .36s ease-in-out 1;
}

@keyframes heroClaytonShake{
  0%, 100%{ transform:translateX(0); }
  20%{ transform:translateX(-5px); }
  40%{ transform:translateX(4px); }
  60%{ transform:translateX(-3px); }
  80%{ transform:translateX(2px); }
}

.hero-actions,
.hero-badges{
  position:relative;
  z-index:3;
}

/* Tablet: keep headings/text clear, buttons may overlap portrait */
@media (max-width: 980px){
  .hero-content{
    padding-right:min(26vw, 240px);
  }
  .hero-clayton,
  .hero-clayton-wrap{
    max-width:32%;
    right:10px;
  }
}

/* Smaller screens: headings/text should not sit under portrait */
@media (max-width: 820px){
  .hero-content{
    padding-right:0;
  }
  .hero h1,
  .hero .lede,
  .hero .kicker{
    max-width:60%;
  }
  .hero-clayton,
  .hero-clayton-wrap{
    max-width:42%;
    max-height:58%;
    right:8px;
    bottom:0;
    opacity:.98;
  }
  .hero-actions,
  .hero-badges{
    max-width:100%;
  }
}

@media (max-width: 620px){
  .hero h1,
  .hero .lede,
  .hero .kicker{
    max-width:56%;
  }
  .hero-clayton,
  .hero-clayton-wrap{
    max-width:46%;
    max-height:54%;
    right:6px;
  }
}

@media (max-width: 520px){
  .hero-clayton-wrap{
    display:none;
  }
  .hero h1,
  .hero .lede,
  .hero .kicker{
    max-width:100%;
  }
}


/* Added logo styles */
.brand__logo{
  height:28px;
  width:auto;
  object-fit:contain;
  display:block;
}

.contact-clay-logo{
  height:56px;
  width:auto;
  margin:8px 0 14px 0;
  opacity:0.85;
}

/* Featured news layout */
.news-featured{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(177,26,42,.05), rgba(255,255,255,.95));
  overflow:hidden;
}

.news-featured__content{
  padding:24px;
  max-width:900px;
}

.news-kicker{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(177,26,42,.10);
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.news-featured h3{
  margin:0 0 8px;
  font-size:clamp(24px, 3vw, 36px);
  line-height:1.08;
  font-weight:700;
}

.news-date{
  margin:0 0 16px;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

.news-featured p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.7;
}

.news-contact a{
  color:var(--accent);
  font-weight:600;
}

.articles--secondary{
  margin-top:18px;
}

@media (max-width:820px){
  .news-featured__content{
    padding:18px;
  }
}


.brand__stamp{
  height:24px;
  width:auto;
  object-fit:contain;
  margin-left:6px;
}


/* Header brand refinements */
.brand__mark{
  gap:4px;
  align-items:flex-start;
}

.brand__logo{
  height:34px;
}

.brand__stamp{
  height:34px;
  width:auto;
  object-fit:contain;
  margin-left:2px;
  margin-top:6px;
  display:block;
  transition:filter .2s ease, transform .2s ease;
}

.brand__mark:hover .brand__stamp{
  filter:drop-shadow(0 0 6px rgba(177,26,42,.28)) drop-shadow(0 0 14px rgba(177,26,42,.14));
  transform:translateY(1px);
}

/* Sponsored logo placement below contact chips */
.contact-clay-logo{
  height:56px;
  width:auto;
  margin:18px 0 0 0;
  opacity:0.85;
  display:block;
}

@media (max-width:820px){
  .brand__logo{
    height:30px;
  }
  .brand__stamp{
    height:30px;
    margin-top:5px;
  }
}


/* Refined Anger Management feature section */
.anger-section{
  min-height:680px;
}

.anger-section .content.anger-content{
  width:min(var(--wrap), calc(100% - 40px));
  margin:0 auto;
  background:transparent;
  border:0;
  padding:0;
  box-shadow:none;
}

.anger-wrap{
  width:100%;
}

.anger-title{
  margin:0 0 22px;
  font-size:clamp(28px, 3vw, 44px);
  font-weight:700;
  color:#0b0f14;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}

.anger-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  width:100%;
}

.anger-card{
  min-height:560px;
  border-radius:36px;
  padding:22px 18px 28px;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 16px 38px rgba(0,0,0,.10);
  backdrop-filter:blur(1px);
}

.anger-card h4{
  margin:0 0 24px;
  font-size:clamp(26px, 2.3vw, 38px);
  line-height:1.05;
  font-weight:700;
  text-align:center;
}

.anger-card ul{
  list-style:none;
  margin:0;
  padding:0;
  min-height:calc(100% - 70px);
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
  gap:18px;
}

.anger-card li{
  font-size:clamp(18px, 1.45vw, 24px);
  line-height:1.2;
  text-align:center;
  font-weight:500;
}

.anger-card--profile{ background:rgba(181, 31, 155, .85); }
.anger-card--strategy{ background:rgba(245, 153, 38, .85); }
.anger-card--intervention{ background:rgba(192, 213, 40, .85); }
.anger-card--pastoral{ background:rgba(35, 16, 153, .85); }

/* Show more of the background for this section only */
.media-alt-anger{
  height:145%;
  top:-12%;
  transform:translate3d(0,0,0) scale(1.04);
}

/* staggered fade on scroll */
.anger-grid .anger-card:nth-child(1){ transition-delay:.06s; }
.anger-grid .anger-card:nth-child(2){ transition-delay:.20s; }
.anger-grid .anger-card:nth-child(3){ transition-delay:.34s; }
.anger-grid .anger-card:nth-child(4){ transition-delay:.48s; }

@media (max-width:1200px){
  .anger-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .anger-card{
    min-height:430px;
  }
}

@media (max-width:820px){
  .anger-section{
    min-height:auto;
  }

  .anger-title{
    margin-bottom:18px;
  }

  .anger-grid{
    grid-template-columns:1fr;
  }

  .anger-card{
    min-height:auto;
    border-radius:28px;
    padding:20px 18px 24px;
  }

  .anger-card h4{
    margin-bottom:18px;
  }

  .anger-card ul{
    min-height:auto;
    gap:14px;
  }

  .media-alt-anger{
    height:128%;
    top:-6%;
    transform:translate3d(0,0,0) scale(1.01);
  }
}


/* Anger Management section placement and heading refinement */
.anger-section{
  padding:76px 0;
}

.anger-title{
  font-weight:600;
  font-size:28px;
  margin:0 0 18px;
  text-shadow:none;
}


/* Final Anger Management heading match */
.anger-title{
  font-weight:600 !important;
  font-size:28px !important;
  line-height:1.2 !important;
  margin:0 0 18px !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
}

/* Merged Learning Centres section */
.learning-centres-feature{
  min-height:unset;
}

.learning-centres-feature .content.learning-centres-content{
  width:min(var(--wrap), calc(100% - 40px));
  background:var(--panel);
  border:1px solid rgba(11,15,20,.10);
  border-radius:var(--radius);
  padding:18px 20px;
  display:block;
}

.learning-centres-wrap{
  width:100%;
}

.learning-centres-head{
  margin-bottom:18px;
}

.learning-centres-head h2{
  margin:0 0 18px;
}

.learning-centres-feature .grid-2{
  align-items:start;
}

.learning-centres-feature .card,
.learning-centres-feature .quote{
  background:rgba(255,255,255,.72);
}

.learning-centres-feature .quote{
  margin-top:18px;
}

@media (max-width:820px){
  .learning-centres-feature .content.learning-centres-content{
    padding:18px;
  }
}


/* Mentoring content relocated into parallax section */
.mentoring-parallax{
  min-height:760px;
}

.mentoring-parallax .content.mentoring-parallax-content{
  width:min(var(--wrap), calc(100% - 40px));
  margin:0 auto;
  display:block;
  background:var(--panel);
  border:1px solid rgba(11,15,20,.10);
  border-radius:var(--radius);
  padding:22px 24px;
}

.mentoring-parallax .section-head{
  margin-bottom:18px;
}

.mentoring-parallax .section-head h2{
  margin:0 0 18px;
}

.mentoring-parallax .grid-2{
  align-items:start;
}

.mentoring-parallax .card,
.mentoring-parallax .feature{
  background:rgba(255,255,255,.76);
}

.mentoring-parallax .feature-row{
  margin-top:18px;
}

@media (max-width:820px){
  .mentoring-parallax .content.mentoring-parallax-content{
    padding:18px;
  }
}


/* Anger section copy and diagram */
.anger-title{
  font-weight:600 !important;
  font-size:28px !important;
  line-height:1.2 !important;
  margin:0 0 18px !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
}

.anger-intro{
  margin:0 0 16px;
  max-width:78ch;
  color:var(--text);
  line-height:1.65;
}

.anger-quote{
  margin:0 0 20px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(11,15,20,.12);
  background:rgba(255,255,255,.72);
  max-width:78ch;
}

.anger-quote strong{
  display:block;
  margin-bottom:6px;
}

.anger-quote p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.anger-diagram{
  margin:0 0 22px;
}

.anger-diagram__image{
  display:block;
  width:100%;
  max-width:1280px;
  height:auto;
  border-radius:18px;
  border:1px solid rgba(11,15,20,.08);
  background:rgba(255,255,255,.68);
}

/* Refined anger cards sizing/stacking */
.anger-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  width:100%;
}

.anger-card{
  min-height:420px;
  border-radius:28px;
  padding:18px 16px 22px;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 16px 38px rgba(0,0,0,.10);
  backdrop-filter:blur(1px);
}

.anger-card h4{
  margin:0 0 18px;
  font-size:clamp(22px, 1.8vw, 30px);
  line-height:1.08;
  font-weight:700;
  text-align:center;
}

.anger-card ul{
  list-style:none;
  margin:0;
  padding:0;
  min-height:calc(100% - 56px);
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
  gap:14px;
}

.anger-card li{
  font-size:clamp(16px, 1.15vw, 20px);
  line-height:1.2;
  text-align:center;
  font-weight:500;
}

.anger-card--profile{ background:rgba(181, 31, 155, .85); }
.anger-card--strategy{ background:rgba(245, 153, 38, .85); }
.anger-card--intervention{ background:rgba(192, 213, 40, .85); }
.anger-card--pastoral{ background:rgba(35, 16, 153, .85); }

@media (max-width:1200px){
  .anger-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .anger-card{
    min-height:360px;
  }
}

@media (max-width:820px){
  .anger-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .anger-diagram{
    overflow-x:auto;
  }
  .anger-diagram__image{
    min-width:780px;
  }
}

@media (max-width:560px){
  .anger-grid{
    grid-template-columns:1fr;
  }
  .anger-card{
    min-height:auto;
  }
  .anger-card ul{
    min-height:auto;
  }
}


/* Remove white box around diagram */
.anger-diagram__image{
  background:transparent !important;
  border:none !important;
}

/* Add spacing for quote */
.anger-quote{
  margin:30px 0 30px;
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(2px);
}


/* Layered diagram feel */
.anger-diagram{
  margin:0 0 36px;
}

.anger-diagram-layered{
  will-change:transform, opacity;
  transition:transform .25s ease-out, opacity .7s ease;
}

.anger-diagram__image{
  display:block;
  width:100%;
  max-width:1280px;
  height:auto;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

/* More centred, roomier quote */
.anger-quote{
  margin:42px auto 42px !important;
  padding:22px 24px !important;
  max-width:860px;
  text-align:center;
  background:rgba(255,255,255,.50);
  backdrop-filter:blur(2px);
}

.anger-quote strong{
  margin-bottom:10px;
}

.anger-grid{
  margin-top:10px;
}

/* Improved spacing under intro */
.anger-intro{
  margin:0 0 36px !important;
}

/* Slight lift for diagram spacing */
.anger-diagram{
  margin:0 0 40px !important;
}

/* Menu highlight */
.menu-highlight{
  font-weight:600;
}


/* Active scroll highlight for Anger Management menu item */
.menu-highlight-anger.is-active{
  color:var(--text);
  background:rgba(177, 26, 42, .10);
  box-shadow:inset 0 0 0 1px rgba(177, 26, 42, .18);
}


/* Mobile fix: keep anger chart fully within viewport */
.anger-diagram{
  width:100%;
  overflow:visible;
}

.anger-diagram__image{
  width:100%;
  max-width:100%;
  height:auto;
}

@media (max-width:820px){
  .anger-diagram{
    overflow:visible !important;
  }

  .anger-diagram__image{
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
  }
}


/* Mobile menu: keep dropdown sections expanded to avoid buggy tapping */
@media (max-width:820px){
  .site-nav .dropdown{
    display:block;
  }

  .site-nav .dropdown .dropbtn{
    pointer-events:none;
    cursor:default;
    color:var(--text);
    font-weight:600;
    padding-bottom:6px;
  }

  .site-nav .dropdown .dropbtn span[aria-hidden="true"]{
    display:none;
  }

  .site-nav .dropdown-menu{
    position:static !important;
    display:block !important;
    max-height:none !important;
    opacity:1 !important;
    overflow:visible !important;
    pointer-events:auto !important;
    transform:none !important;
    margin:0 0 8px 0 !important;
    padding:0 0 0 10px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    min-width:0 !important;
  }

  .site-nav .dropdown-menu a{
    padding:8px 12px;
    border-radius:10px;
  }
}


/* Mobile nav: remove dropdown behaviour entirely and show submenus openly */
@media (max-width:820px){
  .site-nav .dropdown{
    display:block;
    margin:0;
  }

  .site-nav .dropdown::after{
    display:none !important;
  }

  .site-nav .dropdown .dropbtn{
    display:none !important;
  }

  .site-nav .dropdown:nth-of-type(1) .dropdown-menu::before{
    content:"Resources";
    display:block;
    padding:10px 12px 6px;
    font-size:14px;
    font-weight:600;
    color:var(--text);
  }

  .site-nav .dropdown:nth-of-type(2) .dropdown-menu::before{
    content:"Mentoring";
    display:block;
    padding:10px 12px 6px;
    font-size:14px;
    font-weight:600;
    color:var(--text);
  }

  .site-nav .dropdown-menu{
    position:static !important;
    display:block !important;
    max-height:none !important;
    opacity:1 !important;
    overflow:visible !important;
    pointer-events:auto !important;
    transform:none !important;
    margin:0 0 8px 0 !important;
    padding:0 0 2px 10px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    min-width:0 !important;
  }

  .site-nav .dropdown-menu a{
    display:block;
    padding:8px 12px;
    border-radius:10px;
  }
}

/* iPhone-safe anger chart sizing */
.anger-diagram{
  width:100%;
  max-width:100%;
  overflow:hidden !important;
}

.anger-diagram__image{
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  margin:0 auto;
}

@media (max-width:820px){
  .anger-wrap{
    max-width:100%;
    overflow:hidden;
  }

  .anger-diagram{
    width:100%;
    max-width:100%;
    overflow:hidden !important;
  }

  .anger-diagram__image{
    width:100% !important;
    max-width:calc(100vw - 40px) !important;
    min-width:0 !important;
    height:auto !important;
    object-fit:contain;
  }
}

@supports (width: 100dvw){
  @media (max-width:820px){
    .anger-diagram__image{
      max-width:calc(100dvw - 40px) !important;
    }
  }
}

/* Video thumbnail */
.video-thumb{
  position:absolute;
  bottom:16px;
  right:16px;
  width:54px;
  height:54px;
  border-radius:50%;
  background:rgba(0,0,0,.65);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
  z-index:5;
  animation:wiggle 2.5s infinite;
}

@keyframes wiggle{
  0%,100%{ transform:rotate(0deg);}
  20%{ transform:rotate(-8deg);}
  40%{ transform:rotate(8deg);}
  60%{ transform:rotate(-6deg);}
  80%{ transform:rotate(6deg);}
}

/* Modal */
.video-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.video-modal.is-open{
  display:flex;
}

.video-modal video{
  width:90%;
  max-width:1000px;
  height:auto;
}

.video-close{
  position:absolute;
  top:20px;
  right:20px;
  font-size:28px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
}


/* --- Video thumbnail + modal refined --- */
.video-thumb{
  position:absolute;
  right:18px;
  bottom:18px;
  width:92px;
  height:124px;
  padding:0;
  border:2px solid rgba(255,255,255,.78);
  border-radius:16px;
  overflow:hidden;
  background:rgba(11,15,20,.28);
  box-shadow:0 12px 28px rgba(0,0,0,.24);
  cursor:pointer;
  z-index:6;
  display:block;
  animation:videoThumbWiggle 2.6s ease-in-out infinite;
  transform-origin:bottom right;
}

.video-thumb__preview{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  background:#111;
}

.video-thumb__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(to top, rgba(0,0,0,.34), rgba(0,0,0,.10));
  pointer-events:none;
}

.video-thumb__play{
  width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.88);
  color:#111;
  font-size:16px;
  box-shadow:0 6px 14px rgba(0,0,0,.22);
  padding-left:2px;
}

@keyframes videoThumbWiggle{
  0%, 100% { transform:rotate(0deg) translateY(0); }
  8% { transform:rotate(-4deg) translateY(-1px); }
  16% { transform:rotate(4deg) translateY(0); }
  24% { transform:rotate(-3deg) translateY(-1px); }
  32% { transform:rotate(3deg) translateY(0); }
  40%, 92% { transform:rotate(0deg) translateY(0); }
}

.video-thumb:hover{
  animation-play-state:paused;
  transform:translateY(-2px);
}

.video-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.92);
  z-index:9999;
}

.video-modal.is-open{
  display:flex;
}

.video-modal__inner{
  position:relative;
  width:min(1100px, 100%);
}

.video-modal video{
  display:block;
  width:100%;
  max-height:88vh;
  margin:0 auto;
  border-radius:18px;
  background:#000;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}

.video-close{
  position:absolute;
  top:-12px;
  right:-12px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:0;
  background:#fff;
  color:#111;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}

@media (max-width:820px){
  .video-thumb{
    width:72px;
    height:98px;
    right:12px;
    bottom:12px;
    border-radius:14px;
  }

  .video-thumb__play{
    width:32px;
    height:32px;
    font-size:14px;
  }

  .video-modal{
    padding:16px;
  }

  .video-close{
    top:-10px;
    right:-4px;
  }
}


/* Gold master fixes */
.brand__stamp{
  display:none !important;
}

/* Header video between logo and menu, slightly higher */
.header-video-thumb{
  flex:0 0 auto;
  width:52px;
  height:70px;
  padding:0;
  border:2px solid rgba(255,255,255,.82);
  border-radius:12px;
  overflow:hidden;
  background:#111;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  cursor:pointer;
  display:block;
  margin-left:10px;
  margin-right:auto;
  transform:translateY(2px);
  animation:headerVideoWiggle 2.6s ease-in-out infinite;
}

.header-video-thumb__preview{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#111;
  pointer-events:none;
}

.header-video-thumb__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(to top, rgba(0,0,0,.34), rgba(0,0,0,.10));
  pointer-events:none;
}

.header-video-thumb__play{
  width:24px;
  height:24px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.9);
  color:#111;
  font-size:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  padding-left:2px;
}

@keyframes headerVideoWiggle{
  0%, 100% { transform:translateY(2px) rotate(0deg); }
  10% { transform:translateY(2px) rotate(-4deg); }
  20% { transform:translateY(2px) rotate(4deg); }
  30% { transform:translateY(2px) rotate(-3deg); }
  40% { transform:translateY(2px) rotate(3deg); }
  50%, 92% { transform:translateY(2px) rotate(0deg); }
}

.header-video-thumb:hover{
  animation-play-state:paused;
}

/* Sponsor logo below contact chips */
.contact-clay-logo{
  height:56px;
  width:auto;
  margin:18px 0 0 0;
  opacity:0.85;
  display:block;
}

@media (max-width:980px){
  .header-video-thumb{
    width:46px;
    height:62px;
    transform:translateY(0);
  }
}

@media (max-width:820px){
  .header-video-thumb{
    width:48px !important;
    height:64px !important;
    left:calc(100% + 6px) !important;
    top:0 !important;
    transform:translateY(-6px) !important;
  }
}
}


/* GOLD MASTER v2: scale Clayton image down slightly */
.hero-clayton-wrap{
  transform: scale(0.88);
  transform-origin: bottom center;
}


/* GOLD MASTER v3: GIF thumbnail instead of video */
.header-video-thumb__preview{
  object-fit:cover;
}


/* GOLD MASTER v4: ensure burger stays right of video */
.header-inner{
  display:flex;
  align-items:center;
}

.nav-toggle{
  order:3;
  margin-left:12px;
}

.header-video-thumb{
  order:2;
}

/* shimmer loading effect */
.video-loading{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size:200% 100%;
  animation:shimmer 1.2s infinite;
  display:none;
  z-index:2;
  border-radius:12px;
}

@keyframes shimmer{
  0%{background-position:200% 0;}
  100%{background-position:-200% 0;}
}


/* GOLD MASTER v5: center header video in available desktop space */
@media (min-width:821px){
  .brand{
    flex:0 0 auto;
  }

  .header-video-thumb{
    order:2;
    margin-left:auto !important;
    margin-right:auto !important;
    transform:translateY(2px);
  }

  #site-nav{
    order:3;
    flex:0 0 auto;
    margin-left:0;
  }

  .nav-toggle{
    order:4;
    margin-left:12px;
  }
}

/* Keep mobile layout with video left of burger */
@media (max-width:820px){
  .header-video-thumb{
    width:48px !important;
    height:64px !important;
    left:calc(100% + 6px) !important;
    top:0 !important;
    transform:translateY(-6px) !important;
  }
}

  .nav-toggle{
    order:3;
    margin-left:12px;
  }
}


/* GOLD MASTER v6: overlay header video so menu bar stays slim */
.site-header{
  overflow:visible;
}

.header-inner{
  position:relative;
  align-items:center;
}

@media (min-width:821px){
  .header-inner{
    min-height:auto;
  }

  .header-video-thumb{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -18%);
    margin:0 !important;
    width:50px;
    height:68px;
    z-index:5;
  }

  @keyframes headerVideoWiggle{
    0%, 100% { transform:translate(-50%, -18%) rotate(0deg); }
    10% { transform:translate(-50%, -18%) rotate(-4deg); }
    20% { transform:translate(-50%, -18%) rotate(4deg); }
    30% { transform:translate(-50%, -18%) rotate(-3deg); }
    40% { transform:translate(-50%, -18%) rotate(3deg); }
    50%, 92% { transform:translate(-50%, -18%) rotate(0deg); }
  }

  #site-nav{
    margin-left:auto;
  }
}

/* Mobile: smaller video thumbnail, still beside burger */
@media (max-width:820px){
  .header-video-thumb{
    width:48px !important;
    height:64px !important;
    left:calc(100% + 6px) !important;
    top:0 !important;
    transform:translateY(-6px) !important;
  }
}
}

/* Mobile anger diagram fix: always fit viewport */
.anger-wrap,
.anger-diagram{
  max-width:100%;
  overflow:hidden !important;
}

.anger-diagram__image{
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:auto !important;
  object-fit:contain;
  margin:0 auto;
}

@media (max-width:820px){
  .anger-diagram{
    width:100%;
    overflow:hidden !important;
  }

  .anger-diagram__image{
    width:100% !important;
    max-width:calc(100vw - 40px) !important;
    min-width:0 !important;
    height:auto !important;
  }
}

@supports (width: 100dvw){
  @media (max-width:820px){
    .anger-diagram__image{
      max-width:calc(100dvw - 40px) !important;
    }
  }
}


/* GOLD MASTER v7: anchor video to right of logo and protect menu/burger */
.site-header{
  overflow:visible;
}

.header-inner{
  position:relative;
}

/* Desktop: anchor thumbnail to logo block so it never obscures menu */
@media (min-width:821px){
  .brand{
    position:relative;
    flex:0 0 auto;
    padding-right:72px; /* reserve room for overhanging thumbnail */
  }

  .header-video-thumb{
    position:absolute;
    left:100%;
    top:50%;
    margin-left:10px !important;
    width:50px;
    height:68px;
    z-index:4;
  }

  @keyframes headerVideoWiggle{
    0%, 100% { transform:translateY(-38%) rotate(0deg); }
    10% { transform:translateY(-38%) rotate(-4deg); }
    20% { transform:translateY(-38%) rotate(4deg); }
    30% { transform:translateY(-38%) rotate(-3deg); }
    40% { transform:translateY(-38%) rotate(3deg); }
    50%, 92% { transform:translateY(-38%) rotate(0deg); }
  }

  #site-nav{
    margin-left:auto;
  }

  .nav-toggle{
    margin-left:12px;
  }
}

/* Mobile: keep header slim, float thumbnail above top edge and leave burger visible */
@media (max-width:820px){
  .brand{
    position:relative;
    flex:1 1 auto;
    min-width:0;
    padding-right:0;
  }

  .header-video-thumb{
    position:absolute;
    left:100%;
    top:2px;
    margin-left:6px !important;
    width:28px !important;
    height:38px !important;
    z-index:3;
    transform:translateY(-26%) !important;
  }

  .header-video-thumb__play{
    width:18px !important;
    height:18px !important;
    font-size:10px !important;
  }

  .nav-toggle{
    position:relative;
    z-index:6; /* ensure burger stays above thumbnail */
    margin-left:44px; /* creates space so burger is never covered */
  }
}


/* GOLD MASTER v8: correctly anchor video beside logo (not entire header) */

/* Ensure brand acts as anchor container */
.brand{
  position:relative;
  display:flex;
  align-items:center;
}

/* Desktop fix */
@media (min-width:821px){
  .header-video-thumb{
    position:absolute;
    left:calc(100% + 8px); /* always just right of logo */
    top:50%;
    transform:translateY(-40%);
    width:48px;
    height:64px;
    z-index:5;
  }

  @keyframes headerVideoWiggle{
    0%,100%{ transform:translateY(-40%) rotate(0deg); }
    10%{ transform:translateY(-40%) rotate(-4deg); }
    20%{ transform:translateY(-40%) rotate(4deg); }
    30%{ transform:translateY(-40%) rotate(-3deg); }
    40%{ transform:translateY(-40%) rotate(3deg); }
    50%,92%{ transform:translateY(-40%) rotate(0deg); }
  }
}

/* Mobile fix */
@media (max-width:820px){
  .header-video-thumb{
    width:48px !important;
    height:64px !important;
    left:calc(100% + 6px) !important;
    top:0 !important;
    transform:translateY(-6px) !important;
  }
}

  .nav-toggle{
    position:relative;
    z-index:6; /* always above */
    margin-left:12px;
  }
}


/* GOLD MASTER v9: anchor thumbnail to Done logo itself */
.brand{
  position:relative;
  flex-direction:column;
  align-items:flex-start;
}

.brand__mark{
  position:relative;
  display:inline-flex;
  align-items:flex-start;
  gap:0;
  overflow:visible;
}

.brand__logo{
  display:block;
}

/* Hide any old experience stamp styling if legacy markup remains */
.brand__stamp{
  display:none !important;
}

.header-video-thumb{
  position:absolute !important;
  left:calc(100% + 8px) !important;
  top:2px !important;
  width:48px !important;
  height:64px !important;
  margin:0 !important;
  padding:0 !important;
  border:2px solid rgba(255,255,255,.82) !important;
  border-radius:12px !important;
  overflow:hidden !important;
  background:#111 !important;
  box-shadow:0 10px 24px rgba(0,0,0,.18) !important;
  cursor:pointer !important;
  z-index:5 !important;
  transform:translateY(6px) !important;
  animation:headerVideoWiggleV9 2.6s ease-in-out infinite !important;
}

.header-video-thumb__preview{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#111;
}

.header-video-thumb__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(to top, rgba(0,0,0,.34), rgba(0,0,0,.10));
  pointer-events:none;
}

.header-video-thumb__play{
  width:24px;
  height:24px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.9);
  color:#111;
  font-size:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  padding-left:2px;
}

@keyframes headerVideoWiggleV9{
  0%,100%{ transform:translateY(6px) rotate(0deg); }
  10%{ transform:translateY(6px) rotate(-4deg); }
  20%{ transform:translateY(6px) rotate(4deg); }
  30%{ transform:translateY(6px) rotate(-3deg); }
  40%{ transform:translateY(6px) rotate(3deg); }
  50%,92%{ transform:translateY(6px) rotate(0deg); }
}

/* Keep the logo visually centred on the left */
@media (min-width:821px){
  .header-inner{
    align-items:center;
  }
  .brand{
    flex:0 0 auto;
    margin-right:auto;
  }
  #site-nav{
    margin-left:0;
  }
}

/* Mobile: keep thumb small and clear of burger */
@media (max-width:820px){
  .header-video-thumb{
    width:48px !important;
    height:64px !important;
    left:calc(100% + 6px) !important;
    top:0 !important;
    transform:translateY(-6px) !important;
  }
}

  .header-video-thumb__play{
    width:16px;
    height:16px;
    font-size:9px;
  }

  @keyframes headerVideoWiggleV9Mobile{
    0%,100%{ transform:translateY(-2px) rotate(0deg); }
    10%{ transform:translateY(-2px) rotate(-4deg); }
    20%{ transform:translateY(-2px) rotate(4deg); }
    30%{ transform:translateY(-2px) rotate(-3deg); }
    40%{ transform:translateY(-2px) rotate(3deg); }
    50%,92%{ transform:translateY(-2px) rotate(0deg); }
  }

  .nav-toggle{
    position:relative;
    z-index:6;
    margin-left:16px;
  }
}


/* GOLD MASTER v12: larger overhanging video thumbnail + align brand left */
.header-inner{
  align-items:flex-start !important;
}

.brand{
  align-items:flex-start !important;
  justify-content:flex-start !important;
  text-align:left !important;
  margin-right:auto !important;
}

.brand__mark{
  justify-content:flex-start !important;
  align-items:flex-start !important;
  text-align:left !important;
}

.brand__logo{
  margin-left:0 !important;
}

.brand__tag{
  display:block;
  text-align:left !important;
  margin-left:0 !important;
  line-height:1.2;
}

/* Make the thumbnail larger so it leads off the menu into the page below */
.header-video-thumb{
  width:58px !important;
  height:78px !important;
  left:calc(100% + 10px) !important;
  top:0 !important;
  transform:translateY(10px) !important;
  z-index:5 !important;
}

@keyframes headerVideoWiggleV9{
  0%,100%{ transform:translateY(10px) rotate(0deg); }
  10%{ transform:translateY(10px) rotate(-4deg); }
  20%{ transform:translateY(10px) rotate(4deg); }
  30%{ transform:translateY(10px) rotate(-3deg); }
  40%{ transform:translateY(10px) rotate(3deg); }
  50%,92%{ transform:translateY(10px) rotate(0deg); }
}

@media (max-width:820px){
  .header-inner{
    align-items:flex-start !important;
  }

  .brand{
    align-items:flex-start !important;
    text-align:left !important;
  }

  .brand__tag{
    text-align:left !important;
  }

  .header-video-thumb{
    width:58px !important;
    height:78px !important;
    left:calc(100% + 8px) !important;
    top:0 !important;
    transform:translateY(6px) !important;
  }

  @keyframes headerVideoWiggleV9Mobile{
    0%,100%{ transform:translateY(6px) rotate(0deg); }
    10%{ transform:translateY(6px) rotate(-4deg); }
    20%{ transform:translateY(6px) rotate(4deg); }
    30%{ transform:translateY(6px) rotate(-3deg); }
    40%{ transform:translateY(6px) rotate(3deg); }
    50%,92%{ transform:translateY(6px) rotate(0deg); }
  }
}


/* GOLD MASTER v16: improve Clayton placement on mobile hero */
@media (max-width:520px){
  .hero{
    min-height:auto;
  }

  .hero-content{
    padding-bottom:28px !important;
  }

  .hero-clayton-wrap{
    display:block !important;
    right:8px !important;
    bottom:22px !important;
    max-width:42% !important;
    max-height:42% !important;
    transform:scale(.98) !important;
    transform-origin:bottom right !important;
    opacity:1 !important;
  }

  .hero h1,
  .hero .lede,
  .hero .kicker{
    max-width:68% !important;
  }

  .hero-actions,
  .hero-badges{
    max-width:68% !important;
  }

  .scroll-hint{
    margin:8px 0 12px !important;
  }
}

@media (max-width:420px){
  .hero-content{
    padding-bottom:20px !important;
  }

  .hero-clayton-wrap{
    right:6px !important;
    bottom:18px !important;
    max-width:44% !important;
    max-height:44% !important;
    transform:scale(1) !important;
  }

  .hero h1,
  .hero .lede,
  .hero .kicker,
  .hero-actions,
  .hero-badges{
    max-width:66% !important;
  }
}


/* GOLD MASTER v17: full-width heading + slightly smaller on mobile */
@media (max-width:520px){
  .hero h1{
    max-width:100% !important;
    font-size:clamp(26px, 7.2vw, 34px) !important;
    line-height:1.08 !important;
  }
}

@media (max-width:420px){
  .hero h1{
    font-size:clamp(24px, 7vw, 32px) !important;
  }
}


/* === GOLD MASTER v21 FORCE VIDEO BACK (desktop only) === */
@media (min-width:821px){
  .header-video-thumb{
    width:77px !important;
    height:104px !important;
    left:calc(100% + 105px) !important;
    top:-14px !important;
  }
}

/* Keep previous mobile tweaks */
@media (max-width:820px){

  .hero .lede{
    font-size:0.9rem;
    line-height:1.4;
  }

  .hero-clayton-wrap{
    width:120%;
    max-width:none;
    right:-10px;
  }

  .hero-content{
    padding-top:10px !important;
  }

  .hero .kicker{
    width:100%;
    max-width:none;
  }
}


/* GOLD MASTER desktop-only strapline fix */
@media (min-width:821px){
  .brand__tag{
    white-space:nowrap !important;
    display:block !important;
  }

  .brand__tag br{
    display:none !important;
  }
}


/* Desktop-only thumbnail offset now handled above so mobile keeps its own positioning */



/* DONE WITH IT JUSTICE video news card */
.article-card--video{
  cursor:pointer;
}

.article-card--video .thumb{
  position:relative;
}

.article-video-badge{
  position:absolute;
  left:14px;
  bottom:14px;
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#fff;
  font-size:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.22);
  padding-left:2px;
}

.article-cta-badge{
  position:absolute;
  left:14px;
  bottom:14px;
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#fff;
  font-size:20px;
  box-shadow:0 8px 20px rgba(0,0,0,.22);
}

.article-card--cta .thumb-link:focus-visible{
  outline:2px solid rgba(177, 26, 42, .55);
  outline-offset:3px;
}

.article-video-label,
.article-cta-label{
  position:absolute;
  right:14px;
  bottom:14px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  color:var(--accent);
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:600;
}

.article-card--video:focus-visible{
  outline:2px solid rgba(177, 26, 42, .55);
  outline-offset:3px;
}


/* Back to top arrow */
.scroll-top{
  display:grid;
  place-items:center;
  margin:0 auto 18px;
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(11,15,20,.03);
  text-decoration:none;
  transition:transform .15s ease, background .15s ease;
}

.scroll-top:hover{
  transform:translateY(-2px);
  background:rgba(11,15,20,.06);
}


@media (prefers-reduced-motion: reduce){
  .hero-clayton-wrap .hero-clayton{
    transition:none;
  }

  .hero-clayton-wrap.is-shaking{
    animation:none;
  }
}


/* Copy protection deterrents */
img,
.anger-diagram__image,
.parallax-media,
.hero-clayton,
.header-video-thumb__preview{
  -webkit-user-drag:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
}

