/* ---- HZ brand graphics as subtle backgrounds through the homepage ---- */
#reviews,#services,#work,#process{position:relative;overflow:hidden}
.statement > .wrap,#reviews > .wrap,#services > .wrap,#work > .wrap,#results > .wrap,#process > .wrap{position:relative;z-index:1}
.statement::after{content:"";position:absolute;left:-5vw;top:4%;width:52vw;aspect-ratio:1605/923;background:url("/assets/images/hz-outline-green.png") center/contain no-repeat;opacity:.14;pointer-events:none;z-index:0}
#reviews::after{content:"";position:absolute;right:-6vw;top:6%;width:50vw;aspect-ratio:1605/923;background:url("/assets/images/hz-outline-green.png") center/contain no-repeat;opacity:.11;pointer-events:none;z-index:0}
#services::after{content:"";position:absolute;left:-6vw;bottom:-4%;width:52vw;aspect-ratio:1605/923;background:url("/assets/images/hz-outline-green.png") center/contain no-repeat;opacity:.13;pointer-events:none;z-index:0}
#work::after{content:"";position:absolute;right:-5vw;top:5%;width:50vw;aspect-ratio:1605/923;background:url("/assets/images/hz-outline-green.png") center/contain no-repeat;opacity:.13;pointer-events:none;z-index:0}
#results::after{content:"";position:absolute;right:-4vw;bottom:-8%;width:56vw;aspect-ratio:3000/1012;background:url("/assets/images/hz-yellow.png") center/contain no-repeat;opacity:.45;pointer-events:none;z-index:0}
#process::after{content:"";position:absolute;right:-8vw;top:10%;width:72vw;aspect-ratio:3000/1012;background:url("/assets/images/hz-yellow.png") center/contain no-repeat;opacity:1;mix-blend-mode:multiply;filter:saturate(1.35);pointer-events:none;z-index:0}

/* ============================================================
   1–5. HERO, mini headline, problem, solution, image, CTA
   ============================================================ */
/* green pattern panel, rounded bottom, yellow HZ accent, cut-out photo, mock style */
.hero{
  position:relative;
  background:
    url("/assets/images/hz-yellow.png") right -30px center / clamp(900px,95vw,1400px) auto no-repeat,
    url("/assets/images/website-flat.jpg") center/cover var(--green);
  border-radius:0 0 36px 36px;
  /* The bottom pad is not decoration. align-items:center centres the column in
     (height minus padding), and on a tall monitor the column is long enough to
     reach the bottom curve, which put the supporting line a few px off the
     white. The photo is absolute at bottom:0 so this moves the copy only. */
  padding:150px 0 clamp(52px,7vh,96px);
  overflow:hidden;
  min-height:100vh;min-height:100svh;
  display:flex;align-items:center;
}
.hero .wrap{width:100%;max-width:1320px;padding-inline:clamp(24px,4vw,80px)}
.hero-grid{max-width:640px}
.hero-rest{padding-bottom:80px}
/* Hero CTA. The note is capped narrower than .hero-grid so it does not run
   under the cut-out photo on desktop, and it is the first thing dropped on a
   phone, where getting the button above the fold matters more than the copy. */
.hero-cta{margin-top:clamp(20px,3vh,30px)}
.hero-cta .btn{margin-bottom:14px}
.hero-cta-note{max-width:46ch;font-size:.95rem;line-height:1.55;color:var(--slate)}
.hero .eyebrow{color:var(--purple);font-size:.95rem;margin-bottom:14px}
.hero .eyebrow::before{display:none}
.hero h1{
  font-size:clamp(1.9rem,4.8vw,4.2rem);letter-spacing:-.01em;line-height:1.75;
  color:var(--purple);text-transform:uppercase;padding-right:clamp(1rem,6vw,4rem);
}
.hero h1 .hl-mark{background:none;padding:0;display:block;margin-top:.65em}
/* white statement band under the green hero panel */
.statement{background:var(--bg);padding:64px 0 8px;text-align:center;position:relative;isolation:isolate}
.statement h2{
  font-size:clamp(1.7rem,3vw,2.7rem);line-height:1.2;
  color:var(--purple);margin:0 auto;
}
/* Temporary "In the news" line above the statement (see the comment in index.html) */
.statement-news{max-width:760px;margin:0 auto 28px;font-size:.98rem;line-height:1.6;color:var(--purple)}
.statement-news .eyebrow{margin-right:12px;vertical-align:1px}
.statement-news a{font-weight:800;color:var(--purple);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.statement-news a:hover{color:var(--green-deep)}
.statement p.sub{
  font-size:1.15rem;color:var(--purple);
  margin:clamp(1.4rem,2.5vw,2rem) auto 0;
}
/* cut-out photo, big, anchored to the panel bottom-right, above the yellow HZ.
   On wide screens it hugs the content zone instead of drifting to the far edge. */
.hero-photo{
  position:absolute;bottom:0;z-index:1;
  /* 1320, matching .hero .wrap. It said 1520 and the wrap was narrowed to 1320
     on 21 Aug: the photo carried on hugging the OLD edge, which is what opened
     the gap between the headline and the figure on a laptop. */
  right:max(16px,calc((100vw - 1320px)/2));
  /* Portrait cut-out (0.82) where the old two-person shot was landscape (1.50),
     so the slot is narrower or the figure is 1,234px tall and hits the nav. */
  width:min(31vw,560px);
}
.hero-photo img{width:100%;max-width:none;height:auto;display:block}

/* ============================================================
   6. CLIENT LOGOS
   ============================================================ */
.clients{padding:46px 0 14px}
.clients .cap{text-align:center;color:var(--slate);font-weight:600;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:26px}
/* ---------- scrolling marquees (logos + reviews) ---------- */
.marquee{
  overflow:hidden;width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.marquee-track{
  display:flex;align-items:stretch;width:max-content;
  animation:marquee var(--mq,34s) linear infinite;
}
/* Only pause on real pointers: on touch, :hover sticks after a tap and freezes the strip. */
@media (hover:hover){.marquee:hover .marquee-track{animation-play-state:paused}}
@keyframes marquee{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.marquee-track{animation:none}}

.logos-marquee{--mq:59.5s;padding:8px 0}  /* 14 logos: 1.75x the 34s default keeps the 8-logo speed */
/* Each logo links to the client's own site (Skipton Starts Here stays a bare image
   until its site launches), so the spacing sits on the strip's children, not the img. */
.logos-marquee .marquee-track > *{flex:0 0 auto;align-self:center;margin-right:110px}
/* position:relative keeps each link's hidden "(opens in a new tab)" inside the strip's
   clip. Without it, whenever the strip is not transformed (reduced motion, keyboard
   focus) those spans escaped to the page and widened it to about 3,800px. */
.logos-marquee a{display:block;position:relative;border-radius:10px}
.logos-marquee img{
  display:block;height:120px;width:auto;object-fit:contain;
  opacity:.68;filter:grayscale(1);transition:.3s;
}
.logos-marquee img:hover,.logos-marquee a:focus-visible img{opacity:1;filter:grayscale(0)}
.logos-marquee a:focus-visible{outline:3px solid var(--purple);outline-offset:2px}
/* Keyboard users: hold the strip still while one of its links has focus, and for
   keyboard focus park it at the start, so Tab can scroll every logo into view (a logo
   the animation has moved off to the left could not be reached). Mouse and touch
   focus never matches :focus-visible, so a click never jolts the strip. */
.marquee:focus-within .marquee-track{animation-play-state:paused}
.marquee:has(a:focus-visible) .marquee-track{animation:none}
/* Scrollable strips. The homepage script adds .is-scroll: each strip becomes a real
   horizontal scroller that the script drifts along, so people can also swipe, drag or
   trackpad through it. Without the script the CSS drift above still runs. */
.marquee.is-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab}
.marquee.is-scroll::-webkit-scrollbar{display:none}
.marquee.is-scroll .marquee-track{animation:none}
.marquee.is-dragging,.marquee.is-dragging a{cursor:grabbing;user-select:none}
.reviews-marquee:focus-visible{outline:3px solid var(--purple);outline-offset:-3px}

.reviews-marquee{--mq:128.3s;padding:4px 0 8px}  /* 11 reviews: 11/6 of the 70s that 6 ran at keeps the same speed */
/* width: MUST match the flex basis. On a width:max-content track a flex
   basis alone leaves the box sized to the cards' unwrapped text (~1286px
   each), so translateX(-50%) overshoots the content and the strip scrolls
   to blank for half the cycle. */
.reviews-marquee .quote{flex:0 0 400px;width:400px;margin-right:22px}

/* ============================================================
   7. TESTIMONIALS
   ============================================================ */
.quote{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:16px;
  box-shadow:var(--shadow-sm);transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.quote:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
.quote p{color:var(--slate);font-size:1rem;flex:1}
.quote p b{color:var(--ink)}
.quote .who{display:flex;align-items:center;gap:12px}
.quote .who img,.quote .who .ava{
  width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 auto;
  border:2px solid rgba(32,206,136,.6);
}
.quote .who .ava{display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800;font-size:1.05rem;border:0}
.quote .who b{display:block;font-size:.98rem}
.quote .who span{font-size:.82rem;color:var(--slate)}
.proof-stats{
  display:flex;justify-content:center;gap:56px;flex-wrap:wrap;
  margin-top:58px;padding-top:44px;border-top:1px solid var(--line);text-align:center;
}
.proof-stats .num{font-size:2.4rem;font-weight:800;color:var(--purple);line-height:1}
.proof-stats .num .hl{color:var(--green-deep)}
.proof-stats .lab{font-size:.9rem;color:var(--slate);margin-top:8px;max-width:18ch}

/* ============================================================
   8. PROBLEM, detailed  (dark)
   ============================================================ */
.problem{background:linear-gradient(160deg,var(--purple) 0%,var(--purple-deep) 100%);color:#fff;position:relative;overflow:hidden}
.problem::before{
  content:"";position:absolute;left:-140px;bottom:-160px;width:560px;height:560px;
  background:url("/assets/images/monogram.webp") center/contain no-repeat;opacity:.05;
}
.problem .section-head{position:relative;z-index:1}
.problem h2{color:#fff}
.problem .lead{color:rgba(255,255,255,.82)}
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;position:relative;z-index:1}
.pillar{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);padding:32px 28px;backdrop-filter:blur(4px);
  transition:transform .3s var(--ease),background .3s;
}
.pillar:hover{transform:translateY(-5px);background:rgba(255,255,255,.1)}
.pillar .no{
  width:52px;height:52px;border-radius:50%;border:2px solid var(--green);
  display:grid;place-items:center;font-size:1.2rem;font-weight:800;color:var(--green);
  background:rgba(32,206,136,.1);margin-bottom:20px;
}
.pillar h3{font-size:1.3rem;margin-bottom:10px}
.pillar p{color:rgba(255,255,255,.78);font-size:.98rem}
.problem-note{
  position:relative;z-index:1;text-align:center;margin-top:52px;
  font-size:1.15rem;color:rgba(255,255,255,.85);
}
.problem-note b{color:var(--green)}

/* ============================================================
   9. AUTHORITY
   ============================================================ */
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.auth-list{display:grid;gap:16px;margin-top:28px}
.auth-item{display:flex;gap:14px;align-items:flex-start}
.auth-item .chk{flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:rgba(32,206,136,.15);color:var(--green-deep);display:grid;place-items:center;margin-top:2px}
.auth-item .chk svg{width:16px;height:16px}
.auth-item b{display:block;font-size:1.03rem}
.auth-item span{color:var(--slate);font-size:.96rem}
.auth-photo{position:relative}
.auth-photo .main{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}
.auth-photo .main img{width:100%;height:540px;object-fit:cover}
.auth-photo .tag{
  position:absolute;right:-18px;top:34px;background:var(--purple);color:#fff;
  padding:20px 24px;border-radius:16px;box-shadow:var(--shadow-md);max-width:260px;
}
.auth-photo .tag b{font-size:1.6rem;color:var(--green);display:block}
.auth-photo .tag span{font-size:1.05rem;font-weight:700;line-height:1.35;color:#fff}

/* ============================================================
   10. STEP-BY-STEP
   ============================================================ */
.step{
  display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;
  padding:48px 0;position:relative;
}
.step + .step{border-top:1px solid var(--line)}
.step:nth-child(even) .step-media{order:-1}
.step-body .step-no{
  font-size:.85rem;font-weight:800;letter-spacing:.2em;color:var(--green-deep);
  display:flex;align-items:center;gap:12px;margin-bottom:14px;text-transform:uppercase;
}
.step-body .step-no .ring{
  width:54px;height:54px;border-radius:50%;border:2px solid var(--green);
  display:grid;place-items:center;font-size:1.3rem;color:var(--purple);background:rgba(32,206,136,.08);
}
.step-body h3{font-size:clamp(1.7rem,3.2vw,2.4rem);margin-bottom:14px}
.step-body p{color:var(--slate);margin-bottom:22px;max-width:48ch}
.step-tags{display:flex;flex-wrap:wrap;gap:10px}
.step-tags li{
  font-size:.9rem;font-weight:600;color:var(--purple);
  background:#fff;border:1px solid var(--line);border-radius:999px;padding:.5rem .95rem;
  display:flex;align-items:center;gap:.5rem;box-shadow:var(--shadow-sm);
}
.step-tags li svg{width:15px;height:15px;color:var(--green-deep)}
.step-media{position:relative;isolation:isolate}
.step-media .shot{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md)}
.step-media .shot img{width:100%;height:420px;object-fit:cover;transition:transform .6s var(--ease)}
.step-media:hover .shot img{transform:scale(1.05)}
.step-media .ghost-no{
  position:absolute;font-size:11rem;font-weight:800;line-height:1;
  color:var(--green);opacity:.16;z-index:-1;letter-spacing:-.05em;
}
.step:nth-child(odd) .ghost-no{right:-10px;top:-112px}
.step:nth-child(even) .ghost-no{left:-10px;top:-112px}
/* Two buttons plus a note, so flex rather than text-align: the note takes the
   full row (flex-basis:100%) and drops under the pair instead of sitting
   alongside them. .btn is white-space:nowrap, which is why "Score your
   marketing" carries the label and the detail lives in the note underneath,
   rather than in a button long enough to run off a 390px phone. */
.process-cta{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin-top:56px}
.process-cta-note{flex:0 0 100%;text-align:center;margin:4px 0 0;font-size:.95rem;color:var(--purple);opacity:.7}

/* ============================================================
   11. SERVICES
   ============================================================ */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.svc{
  position:relative;border-radius:var(--radius);overflow:hidden;background:#fff;
  box-shadow:var(--shadow-sm);border:1px solid var(--line);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
  display:flex;flex-direction:column;
}
.svc:hover{transform:translateY(-6px);box-shadow:var(--shadow-md)}
.svc .ph{aspect-ratio:16/10;overflow:hidden;background:var(--bg-alt)}
.svc .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.svc:hover .ph img{transform:scale(1.06)}
.svc .body{padding:22px 24px 26px;flex:1;display:flex;flex-direction:column;gap:8px}
.svc .body h3{font-size:1.18rem}
.svc .body p{color:var(--slate);font-size:.95rem;flex:1}

/* ============================================================
   12. CASE STUDIES
   ============================================================ */
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.case{
  position:relative;border-radius:var(--radius);overflow:hidden;background:#fff;
  box-shadow:var(--shadow-sm);border:1px solid var(--line);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);
  display:flex;flex-direction:column;
}
.case:hover{transform:translateY(-6px);box-shadow:var(--shadow-md)}
.case .ph{aspect-ratio:16/11;overflow:hidden;background:var(--bg-alt)}
.case .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.case:hover .ph img{transform:scale(1.06)}
.case .body{padding:20px 22px 24px;flex:1;display:flex;flex-direction:column;gap:6px}
.case .body .kicker{font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--green-deep)}
/* The result leads the card now, so it needs the weight the client name used
   to have. The name still sits under it, because people recognise the name. */
.case .body .case-figure{
  font-size:clamp(1.35rem,2.1vw,1.7rem);font-weight:800;letter-spacing:-.02em;
  line-height:1.15;color:var(--purple);
}
.case .body h3{
  font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--green-deep);margin-top:2px;
}
.case .body p{color:var(--slate);font-size:.94rem;flex:1}
.case .result{
  display:inline-flex;align-items:flex-start;gap:.5rem;margin-top:10px;
  font-size:.88rem;font-weight:700;color:var(--purple);line-height:1.4;
}
.case .result svg{width:16px;height:16px;margin-top:.2em;color:var(--green-deep);flex:0 0 auto}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band{padding:90px 0}
.cta-card{
  background:var(--purple-deep);
  border-radius:var(--radius-lg);color:#fff;padding:64px 56px;position:relative;overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.cta-card::after{
  content:"";position:absolute;right:-80px;top:-80px;width:360px;height:360px;
  background:url("/assets/images/monogram.webp") center/contain no-repeat;opacity:.08;
}
.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:40px;flex-wrap:wrap;position:relative;z-index:1}
.cta-inner h2{font-size:clamp(1.9rem,3.6vw,2.8rem);max-width:18ch}
.cta-inner p{color:rgba(255,255,255,.85);margin-top:12px;max-width:42ch}
.cta-ticks{display:flex;gap:22px;flex-wrap:wrap;margin-top:20px;font-size:.95rem;font-weight:600;color:rgba(255,255,255,.92)}
.cta-ticks span{display:flex;align-items:center;gap:8px}
.cta-ticks svg{width:16px;height:16px;color:var(--green);flex:0 0 auto}
.cta-actions{display:flex;gap:14px;flex-wrap:wrap}
/* The softer third option. Deliberately a sentence and not a third button:
   .cta-card already has a green primary and a ghost, and a third pill would
   leave no obviously-primary action. It sits OUTSIDE .cta-inner, not inside
   .cta-actions: a 60-character sentence in that flex item raises the column's
   min-content width enough to wrap .cta-inner, which stacked the heading above
   the buttons and left the right half of the card empty. */
.cta-alt{position:relative;z-index:1;margin:30px 0 0;font-size:.95rem;color:rgba(255,255,255,.8)}
.cta-alt a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--green);text-decoration-thickness:2px}
.cta-alt a:hover{color:var(--green)}
.cta-actions .btn-primary,.cta-actions .btn-primary:hover{box-shadow:none}

/* ============================================================
   EVERYTHING WORKS TOGETHER  (four elements)
   ============================================================ */
.together-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:8px}
.tcard{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:30px 26px;box-shadow:var(--shadow-sm);position:relative;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.tcard:hover{transform:translateY(-6px);box-shadow:var(--shadow-md)}
.tcard .ic{width:54px;height:54px;border-radius:14px;background:rgba(32,206,136,.14);color:var(--green-deep);display:grid;place-items:center;margin-bottom:18px}
.tcard .ic svg{width:26px;height:26px}
.tcard .step-dot{position:absolute;top:26px;right:26px;font-size:.8rem;font-weight:800;color:var(--line)}
.tcard h3{font-size:1.16rem;margin-bottom:8px}
.tcard p{color:var(--slate);font-size:.95rem}
.together-foot{text-align:center;margin-top:44px;font-size:1.25rem;font-weight:700;color:var(--purple)}
.together-foot .hl{color:var(--green-deep)}

/* ============================================================
   THE METRICS THAT MATTER  (dark results band)
   ============================================================ */
.results{background:linear-gradient(160deg,var(--purple) 0%,var(--purple-deep) 100%);color:#fff;position:relative;overflow:hidden}
.results::before{content:"";position:absolute;right:-160px;top:-140px;width:520px;height:520px;background:url("/assets/images/monogram.webp") center/contain no-repeat;opacity:.05}
.results .section-head{position:relative;z-index:1}
.results h2{color:#fff}
.results .lead{color:rgba(255,255,255,.82)}
/* Three across, not five. Five was right when each card was five words; with a
   paragraph inside, a 212px column turns the copy into a thin ribbon. At 1180
   this gives roughly 370px per card, which is a readable measure. */
.results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;position:relative;z-index:1;margin-top:8px}
/* White cards, not the 6% white wash they were. On the purple band a barely
   lighter purple reads as unlit rather than as a card, and the copy inside is
   now a paragraph rather than four words, so it needs a real reading surface. */
.metric{
  background:var(--white);border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius);padding:22px 20px;text-align:center;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.metric:hover{transform:translateY(-5px)}
.metric .plus{
  width:34px;height:34px;margin:0 auto 14px;border-radius:50%;
  border:2px solid var(--green);display:grid;place-items:center;
  font-size:1.15rem;font-weight:800;color:var(--green-deep);background:rgba(32,206,136,.14);
}
.metric b{display:block;font-size:1rem;color:var(--purple);line-height:1.3}
.results-foot{text-align:center;margin-top:48px;position:relative;z-index:1;font-size:1.15rem;color:rgba(255,255,255,.85)}
.results-foot + .results-foot{margin-top:10px;color:var(--green)}
.results-foot b{color:var(--green)}

/* services, extra list under the grid */
.svc-more{text-align:center;margin-top:34px;font-size:1.02rem;color:var(--slate)}
.svc-more b{color:var(--purple)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px){
  .auth-grid,.step,.cta-inner{grid-template-columns:1fr}
  .step:nth-child(even) .step-media{order:0}
  .pillars,.svc-grid,.case-grid,.together-grid{grid-template-columns:repeat(2,1fr)}
  .results-grid{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:1fr}
  .foot-cols{grid-template-columns:1fr 1fr}
  .foot-form{margin-top:-60px}
  .auth-photo .main img{height:400px}
  .hero{flex-direction:column;align-items:stretch;padding-top:120px}
  .hero .wrap{display:flex;flex-direction:column;flex:1}
  .hero-grid{display:flex;flex-direction:column;flex:1;max-width:none}
  .hero-lead{margin-top:auto}
  .hero-rest{display:flex;flex-direction:column;flex:1;padding-bottom:0}
  .hero-photo{position:static;width:auto;display:flex;justify-content:center;margin-top:auto;padding-top:24px}
  .hero-photo img{width:min(330px,60%)}
  .proof-stats{gap:36px}
}
/* 1280, not 1200: with Insights and Community added the row squashes the
   logo and wraps the CTA between about 1200 and 1250. Collapse earlier. */
@media (max-width:1439px){
  .nav-links{display:none}
  /* 3 columns, not 2. With .nav-links hidden the row is brand | Get in touch |
     hamburger. At 2 columns the hamburger was pushed onto a second row, which
     it has been doing on the live site at every width from 721 to 1200. */
  .nav{grid-template-columns:auto 1fr auto}
  .oc-btn{grid-column:3}
}
@media (max-width:720px){
  body{font-size:16px}
  .oc-btn{width:44px;height:44px}
  .section{padding:68px 0}
  /* The bottom value is not 0. This is the shorthand, so writing "112px 0 0"
     silently wiped the clamp() the base rule sets, and the supporting line
     ended up flush against the white curve with no green under it at all. */
  .hero{padding:112px 0 clamp(40px,6vh,72px);border-radius:0 0 22px 22px}
  .hero h1{font-size:clamp(2.3rem,9.5vw,3rem);line-height:1.5}
  .hero-photo img{width:70vw;max-width:none}
  .statement{padding:52px 0 4px}
  .statement p.sub{font-size:1.05rem}
  .nav-git{display:none}
  .cta-ticks{flex-direction:column;gap:10px}
  .results-grid{grid-template-columns:1fr}
  .foot-cols{grid-template-columns:1fr}
  .foot-form{margin-top:-104px}
  .foot-tagline{font-size:2.5rem}
  .cta-card{padding:42px 26px}
  .cta-actions{width:100%;flex-direction:column}
  .cta-actions .btn{width:100%;justify-content:center;white-space:normal;text-align:center;font-size:.95rem}
  .logos-marquee img{height:108px}
  .logos-marquee .marquee-track > *{margin-right:60px}
  .logos-marquee .marquee-track{--mq:42s}
  .reviews-marquee .quote{flex:0 0 320px;width:320px;margin-right:16px;padding:22px}
  .ghost-no{display:none}
  .auth-photo .tag{right:8px}

  /* ---- mobile carousels: pillars / together / steps swipe instead of stack ---- */
  .mcar{position:relative;z-index:1}
  .mcar-track{
    display:flex;flex-wrap:nowrap;gap:16px;
    overflow-x:auto;scroll-snap-type:x mandatory;
    scroll-behavior:smooth;-webkit-overflow-scrolling:touch;
    margin-inline:-24px;padding:6px 24px 10px;
    scrollbar-width:none;
  }
  .mcar-track::-webkit-scrollbar{display:none}
  .mcar-track.pillars > *,.mcar-track.together-grid > *,.mcar-track.svc-grid > *,.mcar-track.case-grid > *,.mcar-track.results-grid > *{flex:0 0 82%}
  .mcar-track > *{scroll-snap-align:center}

  .mcar-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:26px}
  .mcar-arrow{
    width:56px;height:56px;border-radius:50%;border:2px solid var(--purple);
    background:#fff;color:var(--purple);display:grid;place-items:center;
    cursor:pointer;flex:0 0 auto;padding:0;transition:background .2s,color .2s;
    -webkit-tap-highlight-color:transparent;
  }
  .mcar-arrow svg{width:24px;height:24px}
  .mcar-arrow:active{background:var(--purple);color:#fff}
  .mcar-dots{display:flex;gap:2px}
  .mcar-dot{
    width:32px;height:32px;padding:0;border:0;background:transparent;
    display:grid;place-items:center;cursor:pointer;flex:0 0 auto;
    -webkit-tap-highlight-color:transparent;
  }
  .mcar-dot::before{
    content:"";width:9px;height:9px;border-radius:50%;background:var(--line);
    transition:background .2s,transform .2s;
  }
  .mcar-dot.active::before{background:var(--purple);transform:scale(1.35)}
  /* light-on-dark variant for the #why section */
  .problem .mcar-arrow{border-color:var(--green);color:#fff;background:transparent}
  .problem .mcar-arrow:active{background:var(--green);color:#fff}
  .problem .mcar-dot::before{background:rgba(255,255,255,.28)}
  .problem .mcar-dot.active::before{background:var(--green)}
}
@media (min-width:721px){
  .mcar-nav{display:none}
}

/* The plain statement of what the business is, under the slogan. Deliberately
   quieter than the H1: the slogan still leads, this just makes sure the page
   says "marketing agency in Halifax" somewhere a reader and a crawler can see. */
.hero-what{
  margin:clamp(18px,2.6vh,30px) 0 0;
  max-width:46ch;
  font-size:clamp(1rem,1.5vw,1.18rem);line-height:1.5;font-weight:600;
  color:var(--purple);
}
.hero-what b{font-weight:800}
@media (max-width:720px){
  .hero-what{font-size:1rem;max-width:none}
}

/* ---- the process CTA now has ONE primary action ----
   It used to sit next to an equally weighted outline button, which is two
   primaries and therefore no primary. The chat is a text link under the note. */
.process-cta-note b{color:var(--purple)}
.process-cta-alt{margin:14px 0 0;font-size:.95rem;color:var(--slate)}
.process-cta-alt a{color:var(--purple);font-weight:700;text-decoration:underline}

/* ---- brand mark as texture on the reviews band ---- */
#reviews{position:relative;overflow:hidden}
#reviews::before{
  content:"";position:absolute;left:-220px;top:-140px;width:520px;height:520px;
  background:url("/assets/images/monogram.webp") center/contain no-repeat;opacity:.035;
  pointer-events:none;
}
#reviews .wrap{position:relative;z-index:1}


/* ---- the closing CTA, two thirds and one third ----
   The dark card keeps the width it needs to breathe; the remaining third is
   where About and Community get linked, at the point somebody is deciding what
   to do next rather than in a line of text near the top of the page.
   align-items:stretch so the two boxes together match the card's height. */
.cta-layout{display:grid;grid-template-columns:2fr 1fr;gap:22px;align-items:stretch}
.cta-side{display:grid;grid-template-rows:1fr 1fr;gap:22px;min-width:0}
.cta-box{
  display:flex;flex-direction:column;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;text-decoration:none;
  box-shadow:var(--shadow-sm);transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
/* A band rather than a card-topping photo: the two boxes have to add up to the
   height of the dark card beside them, so the image takes what it can spare
   and the copy gets the rest. */
.cta-box .ph{display:block;height:clamp(96px,11vw,132px);overflow:hidden;background:var(--bg-alt);flex:0 0 auto}
.cta-box .ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s var(--ease)}
.cta-box:hover .ph img{transform:scale(1.06)}
/* PADDING, not margin, and :not(.ph) rather than naming each child.
   .cta-box h3 and .cta-box p are declared further down with margin:0, which is
   the shorthand, so it wipes any side MARGIN set here no matter what order the
   rules are in. Padding does not collide with it. The :not() also means the
   photo keeps bleeding to the card edge while everything else is inset. */
.cta-box > *:not(.ph){padding-inline:26px}
.cta-box > .k{margin-top:20px}
.cta-box > h3{margin-top:6px}
.cta-box > p{margin-top:8px}
.cta-box > .go{margin-top:12px;margin-bottom:22px}
.cta-box:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.cta-box .k{font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--green-deep)}
.cta-box h3{font-size:1.18rem;color:var(--purple);margin:0}
.cta-box p{color:var(--slate);font-size:.93rem;line-height:1.55;flex:1;margin:0}
.cta-box .go{display:flex;align-items:center;gap:8px;font-weight:800;font-size:.9rem;color:var(--purple)}
.cta-box .go svg{width:16px;height:16px;transition:transform .3s var(--ease)}
.cta-box:hover .go svg{transform:translateX(4px)}

/* The card is narrower now, so its heading and its buttons stop sitting side
   by side and stack instead, which is what they were already doing on tablet. */
@media (min-width:901px){
  .cta-inner{flex-direction:column;align-items:flex-start;gap:26px}
  .cta-inner h2{max-width:22ch}
}
@media (max-width:900px){
  .cta-layout{grid-template-columns:1fr}
  .cta-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}
}
@media (max-width:620px){
  .cta-side{grid-template-columns:1fr}
}

/* ---- the logo triangle as an accent ----
   Inline SVG so the colour is a CSS decision. Sized in em so it tracks the
   headline's clamp instead of needing its own breakpoints. */
.hero-h1 .hl-line{display:flex;align-items:center;gap:.34em}
.hero-h1 .tri-w,.hero-h1 .tri-p{display:block;flex:0 0 auto;line-height:0}
.hero-h1 .tri-w svg,.hero-h1 .tri-p svg{width:.5em;height:.42em;display:block}
.hero-h1 .tri-w svg{fill:#fff}
.hero-h1 .tri-p svg{fill:var(--purple)}
@media (max-width:560px){
  .hero-h1 .hl-line{gap:.26em}
  .hero-h1 .tri-w svg,.hero-h1 .tri-p svg{width:.4em;height:.34em}
}

/* ---- laptop proportions ----
   A 1440x900 laptop is the common case and the hero was demanding all 900 of it
   plus a 150px top pad, so the headline sat low and 80px of green hung below
   the last line of copy. Height keyed off the VIEWPORT rather than the width,
   because this is a height problem: a 1440x900 laptop and a 1440x1200 monitor
   are the same width and want different heroes. */
@media (max-height:940px) and (min-width:901px){
  .hero{padding-top:118px;min-height:auto}
  .hero-rest{padding-bottom:0}
}
@media (max-height:820px) and (min-width:901px){
  .hero{padding-top:104px}
  .hero h1{font-size:clamp(1.9rem,4vw,3.4rem)}
}
/* 901 to 980 is the column layout, where the figure sits in the flow between
   the copy and the button, so on a short screen its height is what pushes the
   button under the fold. Scale him like the phone rules do rather than crop. */
@media (min-width:901px) and (max-width:980px) and (max-height:940px){
  .hero-photo img{width:auto;max-width:100%;height:min(30vh,260px);object-fit:contain}
}

/* ---- the figure is sized by the hero's height, like the scorecard ----
   The scorecard hero shows David at four fifths of its height. Here he was
   sized by width alone, min(31vw,560px), and the laptop rules above then
   stepped that down to 27vw and 24vw, so on a 1440x900 laptop he was 389px
   wide in an 861px hero and read as a small figure in a corner. The slot now
   takes 80% of the hero's height and the image fills it, anchored bottom
   right. Two caps keep it honest: 560px, so a tall monitor gets the figure it
   had before, and 100vw minus 760px, which is the 640px text column plus its
   gutter and the slot's own right offset, so he never runs into the headline
   on a narrow desktop. When a cap bites, object-fit scales the whole figure
   down rather than cropping it. 981 up, because below that the phone rules
   lay the hero out as a column and size him themselves. */
@media (min-width:981px){
  .hero-photo{
    width:min(560px,calc(100vw - 760px));
    height:80%;
    display:flex;align-items:flex-end;justify-content:flex-end;
  }
  .hero-photo img{
    width:auto;height:100%;max-width:100%;
    object-fit:contain;object-position:right bottom;
  }
}

/* ---- very small phones ----
   Measured across 13 viewports: the CTA clears the fold everywhere except
   320x568, where it landed at 645 against a 568 fold. That is an iPhone SE
   first generation, so this is scoped by HEIGHT as well as width and cannot
   touch the common 390 and 430 phones, which have 290px of room to spare. */
@media (max-width:480px) and (max-height:680px){
  .hero{padding-top:92px}
  .hero h1{font-size:1.62rem}
  .hero .eyebrow{font-size:.82rem;margin-bottom:10px}
  .hero-what{font-size:.9rem;line-height:1.5}
  .hero-cta{margin-top:0}
}

/* ---- the About / Community boxes on a phone ----
   The 96px band exists so the two boxes together match the dark card's height
   in the desktop 2fr/1fr layout. Below 900px the layout is one column and that
   constraint is gone, so a 96px strip out of a 3:2 photo is a 3.5:1 letterbox
   that cut the heads off. Measured before the fix: 136% and 166% crop.
   A real aspect ratio instead. */
@media (max-width:900px){
  .cta-box .ph{height:auto;aspect-ratio:16/9}
}
/* The faces in david-content-club sit above centre, so a centred cover crop
   takes the tops of their heads. */
.cta-box .ph img[src*="david-content-club"]{object-position:50% 28%}

/* ---- the hero on a phone ----
   The CTA is a SIBLING of the photo in the markup now, not inside the text
   block, so on a phone David sits above the button rather than crowding it
   from underneath. On desktop the photo is absolute, so nothing moves. */
@media (max-width:900px){
  .hero-rest{margin-top:clamp(18px,3vh,28px)}
  /* Zero, deliberately. David stands ON the button rather than floating above
     it, so his bottom edge meets its top edge. The cut-out has no transparent
     padding at all (checked: opaque bbox is the full 1400x1711), so nothing
     else is adding space and this genuinely closes it. */
  .hero-cta{margin-top:0}
  .hero-photo{margin-bottom:0;line-height:0}
  /* SCALE the figure, do not crop it. He is a cut-out with no background, so a
     hard max-height + overflow:hidden put a straight edge through his forearms
     with green above and below it, which reads as a broken image rather than a
     photo. Constraining the IMG's height instead keeps the whole figure and
     just makes him smaller, which is what the layout actually needed. */
  .hero-photo{display:flex;justify-content:center}
  .hero-photo img{width:auto;max-width:100%;height:min(28vh,236px);object-fit:contain}
}

/* ---- the results metrics, now openable ----
   <details> so it needs no JavaScript and stays keyboard and screen-reader
   native. The card was centred when it was five words; with a paragraph under
   it, left-aligned reads better, and the plus moves beside the label rather
   than sitting above it. */
.metric{text-align:left;cursor:pointer}
.metric summary{
  display:flex;align-items:center;gap:14px;list-style:none;
  padding:0;margin:0;
}
.metric summary::-webkit-details-marker{display:none}
.metric .plus{
  width:34px;height:34px;margin:0;flex:0 0 auto;font-size:1.15rem;
  transition:transform .3s var(--ease),background .3s var(--ease);
}
.metric[open] .plus{transform:rotate(45deg);background:var(--green);color:var(--purple)}
.metric b{font-size:.98rem}
.metric > p{
  margin:14px 0 0;padding-left:48px;
  /* --slate is #300061, the same purple as the bold label, so using it here
     left no hierarchy at all between the two. A softer ink instead. */
  font-size:.92rem;line-height:1.6;color:#4a3a63;
}
.metric:hover{transform:none;box-shadow:var(--shadow-md)}
.metric[open]{box-shadow:var(--shadow-md)}
/* the grid stops forcing equal-height columns, or an open card stretches the
   other four to match it */
.results-grid{align-items:start}
@media (prefers-reduced-motion:reduce){ .metric .plus{transition:none} }

/* The closing CTA's label is long and uppercase, so on a phone it broke to two
   lines with the arrow stranded on its own. Same treatment the local sites use:
   drop the size and the tracking rather than shorten David's copy. */
/* "Make your business the obvious choice" is 37 uppercase characters. On a
   342px button that cannot fit on one line at a size anyone would want to read,
   so it wraps, and the flex arrow was being stranded to the right of the whole
   two-line block. Let it wrap to two CENTRED lines and drop the arrow, rather
   than shrink the type to nothing or rewrite David's copy. */
@media (max-width:560px){
  .cta-actions .btn-primary{
    font-size:.84rem;letter-spacing:.05em;padding-inline:1.2rem;
    text-align:center;line-height:1.35;
  }
  .cta-actions .btn-primary svg{display:none}
}

/* ---- short phones ----
   Below about 860 tall you cannot fit the eyebrow, a three-line headline, a
   five-line paragraph, the figure AND the button above the fold. The brief said
   shrink the supporting line if needed, so that is what gives: smaller type and
   tighter leading takes it from five lines to four, and the figure scales with
   the viewport rather than a fixed cap. Measured across six real phone sizes. */
@media (max-width:560px) and (max-height:870px){
  .hero-what{font-size:.94rem;line-height:1.48}
  .hero-photo img{height:min(22vh,190px)}
  .hero-rest{margin-top:12px}
  .hero-cta{margin-top:0}
  .hero h1{line-height:1.5}
}

/* The 320x568 case gets the figure too, or the rule above it that already
   trimmed the type is undone by 136px of photo it did not have to budget for. */
@media (max-width:480px) and (max-height:680px){
  .hero-photo img{height:min(16vh,96px)}
  .hero-rest{margin-top:10px}
  .hero-cta{margin-top:0}
}

/* the button under the reviews strip, to /about/reviews/ (11 Nov 2026) */
.reviews-all{margin:20px 0 0;text-align:center}

/* ---- the two primary services (David's first-round brief, 12 Nov 2026) ----
   The case-study card language (white, --radius, --line border, small shadow),
   with no hover lift: the cards are not links until their pages exist. */
.roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1040px;margin:0 auto}
.role{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:clamp(26px,3vw,38px)}
.role h3{font-size:clamp(1.4rem,2.4vw,1.85rem);letter-spacing:-.02em;color:var(--purple);margin-bottom:10px}
.role .role-line{font-weight:800;color:var(--purple);font-size:1.08rem;line-height:1.45;margin-bottom:10px}
.role p{color:var(--slate);line-height:1.6}
.roles-alt{text-align:center;margin:30px auto 0;max-width:68ch;font-size:1.02rem;line-height:1.6;color:var(--slate)}
.roles-alt a,.hero-cta-note a{font-weight:800;color:var(--purple);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.roles-alt a:hover,.hero-cta-note a:hover{color:var(--green-deep)}
@media (max-width:760px){.roles{grid-template-columns:1fr}}

/* proof under each service: a client's own words, from the reviews on this page */
.role .role-proof{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.role .role-proof p{font-weight:700;color:var(--purple);font-size:.98rem;line-height:1.5}
.role .role-proof footer{margin-top:6px;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green-deep)}

/* ---- long button labels on a phone (12 Nov 2026) ----
   .btn is nowrap site-wide. "Let's talk about your marketing" measured 451px against a 342px
   column at 390 wide, and the hero's overflow:hidden cut it to "...YOUR MARKETI"; "Read all our
   Google reviews" ran 17px off a 360 screen. Let these two wrap instead of overflowing. */
@media (max-width:600px){
  .hero-cta .btn,.reviews-all .btn{white-space:normal;max-width:100%;line-height:1.3}
  .hero-cta .btn{text-align:left}
  .reviews-all .btn{text-align:center;justify-content:center}
  .hero-cta .btn svg,.reviews-all .btn svg{flex:0 0 auto}
}
