/*
Theme Name: Helix Growth
Theme URI: https://helix-growth.com
Author: Helix Growth
Description: Custom theme for Helix Growth. Cream and ink palette, Plus Jakarta Sans, flat cards, no drop shadows. Page templates for the homepage, service pages, case studies and about.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: helix
*/

/* ==========================================================================
   All design system CSS lives here. Tokens are declared once in :root and
   every component reads from them, so a palette change is a one line edit.
   ========================================================================== */





:root{
  --cream:#F6F5EC;
  --cream-deep:#EFEDDF;
  --white:#FFFFFF;
  --ink:#15161A;
  --ink-soft:#54565f;
  --ink-faint:#8a8c93;
  --blue:#1A36B4;
  --blue-deep:#0E2072;
  --sky:#AED9E0;
  --lavender:#BCAFD5;
  --peach:#FFCBB0;
  --yellow:#F2DB55;
  --sage:#DCE2D4;
  --orange:#FF904D;
  --rust:#DF591F;
  --lime:#B0D94C;
  --font-sans:'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --sec-y: 80px;   /* single vertical rhythm for every section */
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-sans);
  background:var(--cream);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
a:focus-visible, button:focus-visible{outline:2px solid var(--blue); outline-offset:3px;}
button{font-family:inherit; cursor:pointer;}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 32px;}
.eyebrow{
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  border-bottom:2px solid var(--blue);
  padding-bottom:8px;
}
.eyebrow.on-dark{color:var(--yellow); border-bottom-color:var(--yellow);}

h1,h2,h3{font-weight:800; letter-spacing:-0.02em; line-height:1.05;}
p{color:var(--ink-soft);}

/* reveal on scroll */
.reveal{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  .quote-slide{transition:none;}
  .quote-dot{transition:none;}
  .reveal{opacity:1; transform:none; transition:none;}
}

/* ===== NAV ===== */
header.site-nav{
  position:sticky; top:0; z-index:100;
  background:rgba(246,245,236,0.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(21,22,26,0.08);
}
.nav-inner{
  max-width:var(--wrap); margin:0 auto; padding:16px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.05rem;}
.logo svg{width:26px; height:26px;}
.nav-list{display:flex; align-items:center; gap:34px; list-style:none; margin:0; padding:0;}
.nav-list li{margin:0;}
.nav-links{display:flex; align-items:center; gap:34px;}
.nav-links a{font-size:0.92rem; font-weight:600; color:var(--ink-soft); transition:color .2s;}
.nav-links a:hover{color:var(--blue);}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:100px;
  font-weight:700; font-size:0.9rem;
  border:none; transition:transform .2s ease, box-shadow .2s ease;
  white-space:nowrap;
}
.btn-primary{background:var(--blue); color:var(--cream);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(26,54,180,0.28);}
.btn-ghost{background:transparent; color:var(--ink); border:1.5px solid rgba(21,22,26,0.18);}
.btn-ghost:hover{border-color:var(--ink);}
.nav-cta{display:flex; align-items:center; gap:16px;}
.burger{display:none; background:none; border:none; width:28px; height:20px; position:relative;}
.burger span{position:absolute; left:0; width:100%; height:2px; background:var(--ink); border-radius:2px; transition:.25s;}
.burger span:nth-child(1){top:0;} .burger span:nth-child(2){top:9px;} .burger span:nth-child(3){top:18px;}

/* ===== HERO ===== */
.hero{padding:100px 0 var(--sec-y); position:relative; overflow:hidden;}
.hero-shapes{position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none;}
.constellation-svg{position:absolute; inset:0; width:100%; height:100%;}
.orbit{transform-box:view-box; will-change:transform;}
.hero-center{
  max-width:900px; margin:0 auto; text-align:center;
  display:flex; flex-direction:column; align-items:center;
  position:relative; z-index:1;
}
.hero-center .eyebrow{justify-content:center;}
.hero h1{font-size:clamp(2.1rem, 3.6vw, 3.2rem); margin:18px 0 26px;}
.hero h1 em{font-style:normal; color:var(--blue);}
.hero-rotator{position:relative; min-height:1.2em; width:100%;}
.hero-rotator span{opacity:0; transition:opacity .5s ease; position:absolute; inset:0; display:block;}
.hero-rotator span.active{opacity:1; position:relative;}
.hero p.lede{font-size:1.16rem; max-width:700px; margin-bottom:40px;}
.hero-ctas{display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; margin-bottom:28px;}
.hero-proof{font-size:0.85rem; color:var(--ink-faint); font-weight:600; letter-spacing:.04em;}

.hero-visual{position:relative; aspect-ratio:1/1; max-width:420px; margin:48px auto 0;}
.hero-visual svg{width:100%; height:100%; position:absolute; inset:0;}

.chaos-el{transform-origin:center; animation:chaosOut 1.4s ease forwards; animation-delay:1.1s;}
.logo-img{width:26px; height:26px; object-fit:contain;}
.hero-logo-wrap{position:absolute; left:50%; top:50%; width:48%; aspect-ratio:1/1;}
.logo-recolor{
  width:100%; height:100%; background-color:var(--blue);
  -webkit-mask:url("assets/img/logo.png") center / contain no-repeat;
  mask:url("assets/img/logo.png") center / contain no-repeat;
}
.helix-el{opacity:0; transform:translate(-50%,-50%) scale(.82); transform-origin:center; animation:helixIn 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay:1.25s;}
.dot-el{opacity:0; transform:scale(0); transform-origin:center; animation:dotIn .55s cubic-bezier(.34,1.56,.64,1) forwards;}
@keyframes chaosOut{ to{opacity:0; transform:scale(.9) translateY(-6px);} }
@keyframes helixIn{ to{opacity:1; transform:translate(-50%,-50%) scale(1);} }
@keyframes dotIn{ to{opacity:1; transform:scale(1);} }
@media (prefers-reduced-motion: reduce){
  .orbit{animation:none;}
  .chaos-el{animation:none; opacity:0;}
  .helix-el, .dot-el{animation:none; opacity:1; transform:none;}
}

/* ===== SHIFT SECTION ===== */
.belief{padding:76px 0;}
.belief-head{max-width:640px; margin:0 auto 36px; text-align:center;}
.belief-head .eyebrow{justify-content:center;}
.belief-head h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-top:14px;}
.belief-body{max-width:700px; margin:0 auto;}
.belief-statement{
  font-size:clamp(1.25rem,2vw,1.5rem); font-weight:700; color:var(--ink);
  line-height:1.4; margin-bottom:20px; text-align:center;
}
.belief-body p{font-size:1.05rem; margin-bottom:18px; text-align:center;}
.belief-turn{
  font-weight:700; color:var(--ink); font-size:1.15rem;
  text-align:center; margin:32px 0 8px;
}
.belief-outcomes{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:28px;}
.outcome-item{
  display:flex; align-items:flex-start; gap:10px; background:var(--white);
  border-radius:14px; padding:14px 16px; font-weight:600; font-size:0.92rem; color:var(--ink);
}
.outcome-item svg{flex-shrink:0; margin-top:2px;}

/* ===== HOW WE WORK ===== */
.hww{padding:var(--sec-y) 0;}
.hww-head{max-width:640px; margin:0 auto 48px; text-align:center;}
.hww-head .eyebrow{justify-content:center;}
.hww-head h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-top:14px;}
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.step-card{
  background:var(--white); border-radius:20px; padding:30px 24px;
  position:relative; overflow:hidden;
}
.step-card .bar{position:absolute; top:0; left:0; right:0; height:6px;}
.step-card:nth-child(1) .bar{background:var(--sky);}
.step-card:nth-child(2) .bar{background:var(--peach);}
.step-card:nth-child(3) .bar{background:var(--sage);}
.step-card:nth-child(4) .bar{background:var(--lavender);}
.step-num{font-size:0.8rem; color:var(--ink-faint); font-weight:700; letter-spacing:.1em;}
.step-icon{width:44px; height:44px; margin:18px 0 20px;}
.step-icon path,.step-icon circle{
  stroke:var(--ink); stroke-width:1.6; fill:none;
  stroke-dasharray:140; stroke-dashoffset:140;
  transition:stroke-dashoffset 1.1s ease;
}
.step-card.in .step-icon path, .step-card.in .step-icon circle{stroke-dashoffset:0;}
.step-card h3{font-size:1.2rem; margin-bottom:10px;}
.step-card p{font-size:0.95rem;}

/* ===== PILLARS ===== */
.pillars{padding:30px 0 70px;}
.pillars-head{max-width:660px; margin:0 auto 44px; text-align:center;}
.pillars-head .eyebrow{justify-content:center;}
.pillars-head h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-top:14px;}
.pillar-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
.pillar-card{
  background:var(--white); border-radius:20px; padding:38px 34px 34px;
  position:relative; overflow:hidden; display:flex; flex-direction:column;
}
.pillar-card .bar{position:absolute; top:0; left:0; right:0; height:6px;}
.pillar-card:nth-child(1) .bar{background:var(--sky);}
.pillar-card:nth-child(2) .bar{background:var(--lavender);}
.pillar-deco{position:absolute; top:-40px; right:-40px; width:210px; height:210px; pointer-events:none;}
.pillar-card > *:not(.bar):not(.pillar-deco){position:relative; z-index:1;}
.pillar-icon{width:42px; height:42px; margin-bottom:22px;}
.pillar-icon path, .pillar-icon circle{
  stroke:var(--ink); stroke-width:1.6; fill:none;
  stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:160; stroke-dashoffset:160;
  transition:stroke-dashoffset 1.1s ease;
}
.pillar-card.in .pillar-icon path, .pillar-card.in .pillar-icon circle{stroke-dashoffset:0;}
.pillar-card h3{font-size:1.4rem; margin-bottom:12px;}
.pillar-lede{font-size:1.02rem; font-weight:600; margin-bottom:24px;}
.pillar-list{list-style:none; display:grid; gap:12px; margin-bottom:30px;}
.pillar-list li{font-size:0.95rem; padding-left:22px; position:relative;}
.pillar-list li::before{
  content:""; position:absolute; left:0; top:0.45em;
  width:9px; height:9px; border-radius:50%;
  border:2px solid var(--blue);
}
.pillar-link{
  margin-top:auto; align-self:flex-start;
  font-size:0.78rem; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; color:var(--blue);
  border-bottom:2px solid var(--blue); padding-bottom:4px;
}
/* ===== CASE STUDY ===== */
.case{padding:80px 0;}
.case-inner{background:var(--white); border-radius:28px; padding:56px; position:relative;}
.case-tag{display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; flex-wrap:wrap; gap:16px;}
.case-meta{display:flex; gap:22px; font-size:0.78rem; font-weight:600; letter-spacing:.04em; color:var(--ink-faint); flex-wrap:wrap;}
.case-meta span b{color:var(--ink); font-weight:600;}
.case h2{font-size:clamp(1.7rem,3vw,2.35rem); max-width:780px; margin-bottom:20px;}
.case-body{display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 0.8fr); gap:48px; align-items:start;}
.case-body p{font-size:1.05rem; margin-bottom:18px;}
.pull{
  background:var(--cream); border-radius:18px; padding:26px 24px;
  transform:rotate(-2.2deg); font-weight:600; font-size:1.05rem;
  border-left:4px solid var(--blue);
}
.stat-grid{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; margin-top:6px; grid-auto-rows:1fr;}
.stat-card{background:var(--cream); border-radius:16px; padding:18px 20px; min-height:124px;}
.stat-label{font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--ink-faint);}
.stat-num{
  font-size:1.35rem; font-weight:800; line-height:1.25; margin-top:5px;
  overflow-wrap:break-word; word-break:break-word; hyphens:auto;
}
.stat-delta{font-size:0.78rem; margin-top:2px; font-weight:600; letter-spacing:.02em;}
.stat-delta.up{color:#1f7a3d;}

/* ===== INNOVATION BAND ===== */
.innovation{
  background:linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 65%, var(--ink) 100%);
  color:var(--cream); padding:var(--sec-y) 0;
}
.innovation .wrap{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;}
.innovation h2{color:var(--cream); font-size:clamp(1.8rem,3vw,2.5rem); margin:14px 0 18px;}
.innovation p:not(.eyebrow){color:rgba(246,245,236,0.78); font-size:1.05rem;}
.innovation .badge{
  display:inline-block; background:rgba(246,245,236,0.12); border:1px solid rgba(246,245,236,0.3);
  border-radius:100px; padding:8px 18px; font-size:0.8rem; font-weight:600; letter-spacing:.02em; margin-top:22px;
}

/* ===== CTA / FORM ===== */
.cta-section{padding:var(--sec-y) 0;}
.cta-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
.cta-copy h2{font-size:clamp(2rem,3.4vw,2.7rem); margin-top:14px;}
.cta-copy p:not(.eyebrow){font-size:1.08rem; max-width:460px; margin-top:16px;}
.cta-direct{margin-top:30px; font-size:0.95rem;}
.cta-direct a{font-weight:700; color:var(--blue);}
.form-card{
  background:var(--white); border-radius:24px; padding:36px; position:relative;
}
.form-card::before{
  content:""; position:absolute; top:-14px; right:36px; width:56px; height:56px;
  background:var(--yellow); border-radius:16px; transform:rotate(14deg); z-index:-1;
}
.field{margin-bottom:18px;}
.field label{display:block; font-size:0.82rem; font-weight:700; margin-bottom:6px;}
.field input, .field textarea{
  width:100%; border:1.5px solid rgba(21,22,26,0.14); border-radius:12px;
  padding:12px 14px; font-family:inherit; font-size:0.95rem; background:var(--cream);
  transition:border-color .2s;
}
.field input:focus, .field textarea:focus{outline:none; border-color:var(--blue);}
.field textarea{resize:vertical; min-height:90px;}
.form-card .btn{width:100%; padding:14px; font-size:0.98rem;}
.form-success{display:none; text-align:center; padding:30px 0;}
.form-success.show{display:block;}
.form-success h3{font-size:1.3rem; margin-bottom:8px;}
.form-fields.hide{display:none;}

/* audit band: the one dark surface on the page, so the offer has a focal point */
.btn-secondary{background:var(--yellow); color:var(--ink);}
.btn-secondary:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(21,22,26,0.22);}
.audit-copy{text-align:center;}
.audit-copy p:not(.eyebrow){margin-left:auto; margin-right:auto;}
.audit-btn{margin-top:28px;}
.audit-label{
  font-size:0.72rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:rgba(246,245,236,0.55); margin-bottom:16px; text-align:center;
}
.audit-list{display:grid; gap:11px;}
.audit-item{
  display:flex; gap:13px; align-items:flex-start;
  background:rgba(246,245,236,0.08); border-radius:14px; padding:14px 18px;
  font-size:0.94rem; color:var(--cream);
}
.audit-item svg{flex-shrink:0; margin-top:2px;}

/* ===== FOOTER ===== */
footer{background:var(--ink); color:var(--cream); padding:56px 0 28px;}
.footer-top{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:40px; border-bottom:1px solid rgba(246,245,236,0.14);}
.footer-brand .logo{color:var(--cream); margin-bottom:14px;}
.footer-brand .logo svg path{fill:var(--cream);}
/* the mark is a dark PNG, so it is inverted to white for the dark footer */
.footer-brand .logo-img{filter:brightness(0) invert(1);}
.footer-tagline{color:rgba(246,245,236,0.6); max-width:280px; font-size:0.95rem;}
.footer-cols{display:flex; gap:64px; flex-wrap:wrap;}
.footer-col-title{font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.11em; color:rgba(246,245,236,0.5); margin-bottom:14px;}
.footer-col a, .footer-col p{display:block; color:rgba(246,245,236,0.85); font-size:0.92rem; margin-bottom:10px;}
.footer-col a:hover{color:var(--yellow);}
.footer-bottom{display:flex; justify-content:space-between; padding-top:24px; font-size:0.82rem; color:rgba(246,245,236,0.45); flex-wrap:wrap; gap:10px;}

/* ===== RESPONSIVE ===== */
@media (max-width: 1040px){
  .steps{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 860px){
  /* the panel covers the whole viewport below the bar, fully opaque, with the
     bar itself turned solid while it is open so nothing shows through */
  header.site-nav .nav-links{
    position:fixed; inset:0; z-index:120;
    background:var(--cream); opacity:1; backdrop-filter:none;
    display:flex; flex-direction:column; justify-content:flex-start;
    padding:96px 32px 40px; gap:0;
    transform:translateX(100%); transition:transform .3s ease;
    overflow-y:auto; overscroll-behavior:contain;
  }
  header.site-nav .nav-links.open{transform:translateX(0);}
  header.site-nav .nav-links .nav-list{
    flex-direction:column; align-items:stretch; gap:0; width:100%;
  }
  header.site-nav .nav-links .nav-list li{
    border-bottom:1px solid rgba(21,22,26,0.10);
  }
  header.site-nav .nav-links a{
    display:block; font-size:1.22rem; font-weight:700; color:var(--ink);
    padding:20px 2px;
  }
  header.site-nav .nav-links a:hover{color:var(--blue);}
  /* the burger has to sit above the panel to close it again */
  .nav-cta{position:relative; z-index:130;}
  body.helix-nav-open header.site-nav{background:var(--cream); backdrop-filter:none;}
  body.helix-nav-open{overflow:hidden;}
  .burger{display:block;}
  .belief-outcomes, .steps, .pillar-grid, .case-body, .innovation .wrap, .cta-grid{grid-template-columns:1fr;}
  .hero-visual{margin-top:20px; max-width:320px;}
  .case-inner{padding:32px 24px;}
  .footer-top{flex-direction:column;}
}

/* ===== SERVICE PAGE ===== */
.nav-links a.current,
.nav-links li.current-menu-item > a,
.nav-links li.current-page-ancestor > a{color:var(--blue); font-weight:700;}
.page-pill{
  display:inline-block; background:var(--sky); color:var(--ink);
  border-radius:100px; padding:8px 20px; font-size:0.78rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
}
.page-hero{padding-bottom:calc(var(--sec-y) + 20px);}
.page-hero h1{margin:0 0 26px; max-width:900px;}
.page-hero .page-pill{margin-bottom:26px;}
.page-hero .hero-ctas{margin-bottom:0;}
.hero-secondary{font-weight:700; font-size:0.95rem; color:var(--blue); border-bottom:2px solid var(--blue); padding-bottom:3px;}

/* flow diagram */
.flow-section{padding:var(--sec-y) 0;}
.flow-panel{background:var(--white); border-radius:24px; padding:44px 40px;}
.flow-grid{display:grid; grid-template-columns:1fr auto 1fr; gap:32px; align-items:center;}
.flow-label{
  font-size:0.72rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:16px;
}
.flow-stack{display:grid; gap:12px;}
.flow-item{background:var(--cream); border-radius:14px; padding:15px 20px; font-weight:600; font-size:0.95rem;}
.flow-out .flow-item{background:var(--sky);}
.flow-hub{text-align:center; min-width:150px;}
.flow-hub .logo-recolor{width:52px; height:52px; margin:0 auto 14px;}
.flow-hub p{font-size:0.88rem; font-weight:700; max-width:150px; margin:0 auto;}
.flow-rule{height:2px; background:var(--ink); opacity:.18; margin:16px 0;}

/* two column icon lists */
.sec{padding:var(--sec-y) 0;}
.sec-head{max-width:660px; margin:0 auto 46px; text-align:center;}
.sec-head .eyebrow{justify-content:center;}
.sec-head h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-top:14px;}
.sec-head p:not(.eyebrow){margin-top:14px; color:var(--ink-soft);}

/* the challenge: a diagnosis, so it reads as ruled rows on the page
   rather than as premium product cards */
.diag-head{max-width:680px; margin:0 auto 46px; text-align:center;}
.diag-head h2{font-size:clamp(1.9rem,3vw,2.6rem); margin-top:14px;}
.diag-head p:not(.eyebrow){margin-top:14px; color:var(--ink-soft);}
.diag{display:grid; grid-template-columns:1fr 1fr; gap:0 56px;}
.diag-item{
  display:flex; gap:14px; align-items:flex-start;
  padding:22px 0; border-top:1px solid rgba(21,22,26,0.14);
}
.diag-item h3{font-size:1.05rem; margin-bottom:5px;}
.diag-item p{font-size:0.94rem; color:var(--ink-soft);}
.diag-item .snag{flex-shrink:0; margin-top:3px;}

/* what changes: the payoff, so it gets colour and no boxes at all */
.shift-band{background:var(--sage); padding:var(--sec-y) 0;}
.shift{display:grid; grid-template-columns:1fr 1fr; gap:30px 56px;}
.shift-item{display:flex; gap:14px; align-items:flex-start;}
.shift-item .tick{flex-shrink:0; margin-top:3px;}
.shift-item h3{font-size:1.05rem; margin-bottom:5px;}
.shift-item p{font-size:0.94rem; color:rgba(21,22,26,0.68);}

/* fit list: plain ruled rows, the lightest section on the page */
.fit-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 56px;}
.fit-item{
  display:flex; gap:13px; align-items:flex-start; font-size:0.96rem;
  padding:26px 0; border-top:1px solid rgba(21,22,26,0.14);
}

/* what we build: three stages, colour carries the stage rather than decorating a card */
.phase-stack{display:grid; gap:20px; grid-auto-rows:1fr;}
.phase{
  background:var(--white); border-radius:22px; padding:34px 36px;
  display:grid; grid-template-columns:250px 1fr 1fr; gap:36px;
  align-content:start; position:relative; overflow:hidden;
}
.phase::before{content:""; position:absolute; left:0; top:0; bottom:0; width:8px;}
.phase-1::before{background:var(--sky);}
.phase-2::before{background:var(--lavender);}
.phase-3::before{background:var(--lime);}
.phase-label{padding-left:6px;}

.phase-step{
  font-size:0.72rem; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-faint); margin-bottom:10px;
}
.phase-label h3{font-size:1.4rem; letter-spacing:-0.01em;}
.phase-item h4{font-size:1.02rem; margin-bottom:7px;}
.phase-item p{font-size:0.93rem; color:var(--ink-soft);}

/* fit list */
.fit-item .tick{flex-shrink:0; margin-top:2px;}

/* quote */
.quote-panel blockquote{font-size:clamp(1.15rem,1.8vw,1.45rem); font-weight:600; line-height:1.45;}
.quote-attr{margin-top:24px; font-size:0.9rem; color:var(--ink-faint); font-weight:600;}

/* offer, now merged into the single conversion block */

/* content blocks: separation comes from the white cards, not from band colours */
.quote-panel{
  margin:0 auto; text-align:center;
  background:var(--white); border-radius:24px; padding:56px 40px 44px;
}
/* arrows sit in the outer columns, so the extra width is doing a job */
.quote-frame{display:grid; grid-template-columns:44px 1fr 44px; gap:24px; align-items:center;}
.quote-frame blockquote{max-width:920px; margin:0 auto;}
/* slides share one grid cell, so the panel height is set by the longest
   quote and never jumps as you move between them */
.quote-track{display:grid;}
.quote-slide{grid-area:1 / 1; opacity:0; visibility:hidden; transition:opacity .45s ease;}
.quote-slide.active{opacity:1; visibility:visible;}
.quote-controls{display:flex; align-items:center; justify-content:center; gap:18px; margin-top:34px;}
.quote-arrow{
  width:44px; height:44px; border-radius:50%; background:transparent;
  border:1.5px solid var(--blue); display:grid; place-items:center;
  transition:background .2s ease, border-color .2s ease;
}
.quote-arrow:hover{background:var(--blue);}
.quote-arrow:hover svg path{stroke:var(--cream);}
.quote-arrow:focus-visible{outline:2px solid var(--blue); outline-offset:3px;}
.quote-arrow svg{width:16px; height:16px;}
.quote-arrow svg path{stroke:var(--blue); stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; transition:stroke .2s ease;}
.quote-dots{display:flex; gap:9px;}
.quote-dot{
  width:9px; height:9px; border-radius:50%; padding:0;
  background:rgba(21,22,26,0.2); transition:background .25s ease, transform .25s ease;
}
.quote-dot.active{background:var(--blue); transform:scale(1.3);}
.quote-dot:focus-visible{outline:2px solid var(--blue); outline-offset:3px;}
.quote-single .quote-controls{display:none;}

@media (max-width: 1040px){
  .phase{grid-template-columns:200px 1fr 1fr; gap:26px;}
}
@media (max-width: 860px){
  .flow-grid, .diag, .shift, .fit-grid{grid-template-columns:1fr;}
  .phase{grid-template-columns:1fr; gap:22px; padding:30px 26px 30px 30px;}
  .phase-stack{grid-auto-rows:auto;}
  .flow-panel{padding:32px 24px;}
  .quote-panel{padding:36px 24px 30px;}
  .quote-frame{grid-template-columns:1fr;}
  .quote-frame .quote-arrow{display:none;}
  .flow-rule{display:none;}
}

/* homepage case carousel */
/* each slide's pull quote sits at its own angle, so moving through the
   carousel does not look like the same card reprinted six times */
.case-slide:nth-child(1) .pull{transform:rotate(-2.2deg);}
.case-slide:nth-child(2) .pull{transform:rotate(1.6deg);}
.case-slide:nth-child(3) .pull{transform:rotate(-1.1deg);}
.case-slide:nth-child(4) .pull{transform:rotate(2.4deg);}
.case-slide:nth-child(5) .pull{transform:rotate(-1.7deg);}
.case-slide:nth-child(6) .pull{transform:rotate(1.2deg);}

.case-track{display:grid;}
.case-slide{grid-area:1 / 1; opacity:0; visibility:hidden; transition:opacity .45s ease;}
.case-slide.active{opacity:1; visibility:visible;}
.case-slide h2{font-size:clamp(1.6rem,2.7vw,2.2rem); max-width:760px; margin-bottom:22px;}
.case-controls{display:flex; align-items:center; justify-content:center; gap:18px; margin-top:38px; padding-top:30px; border-top:1px solid rgba(21,22,26,0.1);}
.case-more{text-align:center; margin-top:30px;}
@media (prefers-reduced-motion: reduce){ .case-slide{transition:none;} }

/* work page filters */
.cs-filters{display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-bottom:14px;}
.cs-filter{
  background:transparent; border:1.5px solid rgba(21,22,26,0.18); border-radius:100px;
  padding:11px 22px; font-size:0.92rem; font-weight:700; color:var(--ink);
  display:inline-flex; align-items:center; gap:9px;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.cs-filter span{
  font-size:0.74rem; font-weight:700; color:var(--ink-faint);
  background:var(--white); border-radius:100px; padding:2px 8px;
}
.cs-filter:hover{border-color:var(--ink);}
.cs-filter.active{background:var(--blue); border-color:var(--blue); color:var(--cream);}
.cs-filter.active span{background:rgba(246,245,236,0.22); color:var(--cream);}
.cs-filter:focus-visible{outline:2px solid var(--blue); outline-offset:3px;}
.cs-count{text-align:center; font-size:0.88rem; color:var(--ink-faint); margin-bottom:34px;}
.cs.cs-hidden{display:none;}

/* ===== CASE STUDIES PAGE ===== */
.cs-list{display:grid; gap:28px;}
.cs .case-inner{padding:52px 48px;}
.cs .case-tag{align-items:flex-start;}
.cs h2{font-size:clamp(1.6rem,2.7vw,2.2rem); max-width:760px; margin-bottom:22px;}
.cs .case-body p:last-of-type{margin-bottom:26px;}
.cs-note{
  margin-top:26px; padding:16px 18px; border-radius:12px;
  background:rgba(223,89,31,0.08); border-left:3px solid var(--rust);
  font-size:0.88rem; font-weight:600; color:var(--ink-soft);
}

/* variant A: as the homepage, stats two up on the right */
.cs--a .pull{border-left-color:var(--blue); transform:rotate(-2deg);}

/* variant B: story and stats swap sides, stats stack */
.cs--b .case-body{grid-template-columns:minmax(0, 0.9fr) minmax(0, 1.1fr);}
.cs--b .cs-story{order:2;}
.cs--b .stat-grid{order:1;}
.cs--b .pull{border-left-color:var(--lime); transform:rotate(1.6deg);}

/* variant C: single column, stats as a full width strip */
.cs--c .case-body{grid-template-columns:1fr;}
.cs--c .cs-story{max-width:820px;}
.cs--c .stat-grid{margin-top:10px; max-width:520px;}
.cs--c .pull{border-left-color:var(--peach); transform:none;}

/* variant D: tinted card rather than white, stats two up */
.cs--d .case-inner{background:var(--sage);}
.cs--d .stat-card, .cs--d .pull{background:var(--white);}
.cs--d .pull{border-left-color:var(--blue); transform:rotate(-1.4deg);}

@media (max-width: 860px){
  .cs .case-inner{padding:32px 24px;}
  .cs--b .case-body{grid-template-columns:1fr;}
  .stat-grid{grid-auto-rows:auto;}
  .stat-card{min-height:0;}
  .cs--b .cs-story{order:1;}
  .cs--b .stat-grid{order:2;}
}

/* ===== ABOUT ===== */
/* ideal client profile */
.icp-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:22px;}
.icp-card{background:var(--white); border-radius:20px; padding:34px 30px; position:relative; overflow:hidden;}
.icp-card .bar{position:absolute; top:0; left:0; right:0; height:6px;}
.icp-card:nth-child(1) .bar{background:var(--sky);}
.icp-card:nth-child(2) .bar{background:var(--peach);}
.icp-card:nth-child(3) .bar{background:var(--lime);}
.icp-card h3{font-size:1.2rem; margin-bottom:12px;}
.icp-card p{font-size:0.95rem; color:var(--ink-soft);}
.icp-fit{max-width:820px; margin:26px auto 0; text-align:center; font-size:0.98rem; color:var(--ink-soft);}
.icp-fit b{color:var(--ink);}

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

.helix-about .page-pill{background:var(--peach);}
.about-statement{max-width:820px; margin:0 auto; text-align:center;}
.about-statement .lead{font-size:clamp(1.15rem,1.9vw,1.4rem); font-weight:600; line-height:1.45; margin-bottom:22px;}
.about-statement p{font-size:1.05rem; margin-bottom:18px;}
.about-statement p:last-child{margin-bottom:0;}
.team-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:900px; margin:0 auto;}
.team-card{background:var(--white); border-radius:20px; padding:34px 32px; position:relative; overflow:hidden;}
.team-card .bar{position:absolute; top:0; left:0; right:0; height:6px;}
.team-card:nth-child(1) .bar{background:var(--peach);}
.team-card:nth-child(2) .bar{background:var(--sky);}
.team-card h3{font-size:1.25rem; margin-bottom:6px;}
.team-role{font-size:0.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); margin-bottom:14px;}
.team-card p{font-size:0.95rem; color:var(--ink-soft);}
.about-where{max-width:660px; margin:36px auto 0; text-align:center; font-size:1.02rem; color:var(--ink-soft);}
@media (max-width: 860px){
  .team-grid{grid-template-columns:1fr;}
}


/* the homepage hero keeps its original scale; the service heroes are larger */
.hero:not(.page-hero){padding:88px 0 var(--sec-y);}
.hero:not(.page-hero) .hero-center{max-width:800px;}
.hero:not(.page-hero) h1{font-size:clamp(2rem, 3.4vw, 3rem); margin:18px 0 22px;}
.hero:not(.page-hero) p.lede{font-size:1.125rem; max-width:680px; margin-bottom:32px;}

/* each service page takes its accent from its pillar colour on the homepage */
.helix-marketing .page-pill{background:var(--sky);}
.helix-marketing .flow-out .flow-item{background:var(--sky);}
.helix-operations .page-pill{background:var(--lavender);}
.helix-cases .page-pill{background:var(--yellow);}
.helix-operations .flow-out .flow-item{background:var(--lavender);}

/* WordPress nav markup: the menu is a list inside the nav element */
.helix-hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}
@media (max-width: 860px){
  .nav-list{flex-direction:column; align-items:flex-start; gap:26px;}
}

/* cross links between the service pages and the work */
.cross-link{padding-top:0;}
.cs-services{text-align:center; margin-top:44px; font-size:1rem; color:var(--ink-soft);}
.cs-services a{font-weight:700; color:var(--blue); border-bottom:2px solid var(--blue); padding-bottom:1px;}

/* ===== LEGAL PAGES ===== */
/* ---------- the document ---------- */
.legal-doc,
.legal-doc .entry-content {
  max-width: 760px;
}

.legal-doc > *:first-child { margin-top: 0; }
.legal-doc > *:last-child  { margin-bottom: 0; }

/* ---------- headings ---------- */
.legal-doc h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #15161A);
  margin: 56px 0 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(21, 22, 26, 0.14);
  scroll-margin-top: 110px;
}

.legal-doc h2:first-child,
.legal-doc > h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-doc h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #15161A);
  margin: 34px 0 12px;
}

.legal-doc h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #15161A);
  margin: 26px 0 10px;
}

/* ---------- body copy ---------- */
.legal-doc p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft, #54565f);
  margin: 0 0 20px;
}

.legal-doc strong,
.legal-doc b {
  color: var(--ink, #15161A);
  font-weight: 700;
}

.legal-doc a {
  color: var(--blue, #1A36B4);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--blue, #1A36B4);
  padding-bottom: 1px;
}

.legal-doc a:hover { opacity: 0.75; }

/* ---------- unordered lists: blue ring markers, no class needed ---------- */
.legal-doc ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.legal-doc ul li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft, #54565f);
}

.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--blue, #1A36B4);
}

/* nested lists step in and use a filled dot */
.legal-doc ul ul {
  margin: 12px 0 0;
  gap: 9px;
}

.legal-doc ul ul li::before {
  width: 6px;
  height: 6px;
  background: var(--blue, #1A36B4);
  border: none;
  top: 0.62em;
}

/* ---------- ordered lists: blue numerals ---------- */
.legal-doc ol {
  list-style: none;
  counter-reset: helixlegal;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.legal-doc ol li {
  counter-increment: helixlegal;
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft, #54565f);
}

.legal-doc ol li::before {
  content: counter(helixlegal);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue, #1A36B4);
  line-height: 1.9;
}

/* ---------- tables ---------- */
.legal-doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white, #fff);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.93rem;
  margin: 0 0 26px;
}

.legal-doc th {
  text-align: left;
  padding: 14px 18px;
  background: var(--sage, #DCE2D4);
  color: var(--ink, #15161A);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-doc td {
  padding: 14px 18px;
  vertical-align: top;
  color: var(--ink-soft, #54565f);
  line-height: 1.5;
  border-top: 1px solid rgba(21, 22, 26, 0.09);
}

.legal-doc tbody tr:first-child td { border-top: none; }
.legal-doc td:first-child { color: var(--ink, #15161A); font-weight: 600; }

/* ---------- quotes and callouts ---------- */
.legal-doc blockquote {
  background: var(--white, #fff);
  border-left: 4px solid var(--blue, #1A36B4);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.legal-doc blockquote p {
  margin: 0;
  color: var(--ink, #15161A);
  font-weight: 600;
}

/* ---------- horizontal rules become section breaks ---------- */
.legal-doc hr {
  border: none;
  border-top: 1px solid rgba(21, 22, 26, 0.14);
  margin: 48px 0;
}

/* ---------- Gutenberg wrappers, in case blocks are used ---------- */
.legal-doc .wp-block-group,
.legal-doc .wp-block-columns { margin-bottom: 24px; }
.legal-doc figure.wp-block-table { margin: 0 0 26px; }
.legal-doc figure.wp-block-table table { margin: 0; }

/* ==========================================================================
   The structured version the theme seeds adds these. They layer on top of the
   element styles above rather than replacing them, so both render correctly.
   ========================================================================== */

.legal-doc .legal-section {
  padding-top: 52px;
  margin-top: 52px;
  border-top: 1px solid rgba(21, 22, 26, 0.14);
}

.legal-doc .legal-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* inside a section wrapper the heading owns no rule of its own */
.legal-doc .legal-section > h2 {
  margin: 0 0 22px;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
}

.legal-doc .legal-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue, #1A36B4);
  background: var(--white, #fff);
  border-radius: 100px;
  padding: 5px 11px;
  align-self: start;
  margin-top: 5px;
}

.legal-doc .legal-summary {
  background: var(--sage, #DCE2D4);
  border-radius: 20px;
  padding: 32px 34px;
  margin-bottom: 56px;
}

.legal-doc .legal-summary h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  display: block;
}

.legal-doc .legal-summary li { color: var(--ink, #15161A); }

.legal-doc .legal-note {
  background: var(--white, #fff);
  border-left: 4px solid var(--blue, #1A36B4);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.legal-doc .legal-note p { margin: 0; color: var(--ink, #15161A); font-weight: 600; }

.legal-doc .legal-list.tight { gap: 9px; }
.legal-doc .legal-list.tight li { padding-left: 22px; }
.legal-doc .legal-list.tight li::before { width: 7px; height: 7px; top: 0.55em; }

.legal-doc .legal-table-wrap { overflow-x: auto; margin: 0 0 26px; }
.legal-doc .legal-table-wrap table { min-width: 520px; margin: 0; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(21, 22, 26, 0.14);
}

.legal-meta span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint, #8a8c93);
}

.legal-meta b { color: var(--ink, #15161A); font-weight: 700; }

/* ==========================================================================
   Layout and contents column
   ========================================================================== */

.legal-hero { padding-bottom: var(--sec-y, 80px); }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

/* with no contents nav present, the document centres instead */
.legal-layout > .legal-doc:only-child {
  grid-column: 1 / -1;
  margin: 0 auto;
}

.legal-nav { position: sticky; top: 96px; }

.legal-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint, #8a8c93);
  margin-bottom: 16px;
}

.legal-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: none;
}

.legal-nav ol li { padding: 0; margin: 0; }
.legal-nav ol li::before { content: none; }

.legal-nav a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft, #54565f);
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.35;
  border-bottom: none;
}

.legal-nav a:hover { background: var(--white, #fff); color: var(--ink, #15161A); opacity: 1; }
.legal-nav a.active { background: var(--white, #fff); color: var(--blue, #1A36B4); }

.legal-nav .n {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-faint, #8a8c93);
  min-width: 16px;
  flex-shrink: 0;
}

.legal-nav a.active .n { color: var(--blue, #1A36B4); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-nav { position: static; }
  .legal-nav ol { grid-template-columns: 1fr 1fr; gap: 2px 20px; }
  .legal-doc { max-width: none; }
}

@media (max-width: 640px) {
  .legal-nav ol { grid-template-columns: 1fr; }
  .legal-doc h2 { font-size: 1.28rem; margin: 44px 0 18px; }
  .legal-doc .legal-section { padding-top: 40px; margin-top: 40px; }
  .legal-doc .legal-summary { padding: 26px 22px; }
  .legal-doc table { font-size: 0.88rem; }
  .legal-doc th,
  .legal-doc td { padding: 12px 13px; }
}
