/* ═══════════════════════════════════════════════════════════════════════
   home.css — homepage only (index.html): hero, who we help, approach, services, deadlines, why, process, CTA
   ═══════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════
   6. HERO — video → scrim → waveform → content
   ═══════════════════════════════════════════════════════════════════════ */
.hero{
  position:relative; isolation:isolate;
  min-height:min(96svh,980px);
  display:flex; align-items:flex-end;
  padding-top:150px; background:var(--ink); color:#fff; overflow:hidden;
}
.hero__stage{ position:absolute; inset:0; z-index:0; }

/* Layer 1 — footage (or the generated atmosphere when no footage is set) */
.hero__atmos, .hero__video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hero__video{
  opacity:0; transform:scale(1.06);
  filter:blur(2.5px) saturate(.82) brightness(.62) contrast(1.04);
  transition:opacity 1.1s var(--ease);
}
.hero__video.is-ready{ opacity:1; }

/* Layer 2 — tone control so type always clears WCAG AA */
.hero__scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(102deg, rgba(8,26,49,.95) 0%, rgba(8,26,49,.86) 40%, rgba(8,26,49,.52) 76%, rgba(10,32,60,.72) 100%),
    linear-gradient(to top, rgba(8,26,49,.97) 0%, rgba(8,26,49,0) 52%);
}

/* Layer 3 — the Tax Beat pulse, the brand device, sitting over the footage */
.hero__wave{
  position:absolute; inset:0; z-index:2; width:100%; height:100%;
  pointer-events:none; mix-blend-mode:screen;
}

.hero__inner{ position:relative; z-index:3; width:100%; padding-bottom:clamp(48px,7vw,86px); }
/* The old `max-width:15ch` sat on a wrapper whose font-size was the 17px body
   size, so `ch` resolved to ~150px and every word wrapped onto its own line.
   Width is now set on the heading itself, in its own em, with a deliberate
   break after the comma that holds at every viewport. */
.hero__content{ max-width:none; }
.hero h1{
  color:#fff;
  font-size:clamp(2.05rem, 9.2vw, 5.25rem);
  line-height:1.04; letter-spacing:-.035em;
  max-width:11em;
}
.hero h1 .line{ display:block; overflow:hidden; padding-bottom:.1em; margin-bottom:-.1em; text-wrap:balance; }
.hero h1 .line > span{ display:block; }
.hero h1 .line--accent > span{ color:var(--pulse); }

.hero__sub{
  margin-top:26px; max-width:56ch;
  font-size:clamp(1.05rem,1.2vw,1.22rem); line-height:1.58; color:rgba(230,240,252,.85);
}
.hero__sub b{ color:#fff; font-weight:600; }

.hero__cta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:34px; }
.hero__call{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.95rem; color:rgba(230,240,252,.78); text-decoration:none;
  font-variant-numeric:tabular-nums;
}
.hero__call b{ color:#fff; font-weight:600; border-bottom:1px solid rgba(53,224,180,.5); }
.hero__call:hover b{ border-bottom-color:var(--pulse); color:var(--pulse); }

.hero__foot{
  margin-top:clamp(44px,6vw,72px); padding-top:22px;
  border-top:1px solid rgba(255,255,255,.16);
  font-size:.88rem; color:rgba(230,240,252,.66); max-width:58ch;
}

/* One orchestrated load sequence */
.hero h1 .line > span,.hero__sub,.hero__cta,.hero__foot{
  opacity:0; transform:translateY(16px); animation:rise .9s var(--ease) forwards;
}
.hero h1 .line:nth-of-type(1) > span{ animation-delay:.12s; }
.hero h1 .line:nth-of-type(2) > span{ animation-delay:.24s; }
.hero__sub{ animation-delay:.42s; }
.hero__cta{ animation-delay:.52s; }
.hero__foot{ animation-delay:.64s; }
@keyframes rise{ to{ opacity:1; transform:none; } }

/* Short laptop screens (e.g. 1366×768): keep headline, copy and CTA above the fold */
@media (min-width:761px) and (max-height:800px){
  .hero{ padding-top:112px; }
  .hero h1{ font-size:clamp(2.6rem, 7vw, 4.4rem); }
  .hero__sub{ margin-top:20px; }
  .hero__cta{ margin-top:26px; }
  .hero__foot{ margin-top:34px; padding-top:18px; }
}

@media (max-width:760px){
  .hero{ min-height:auto; padding-top:118px; }
  .hero__cta{ margin-top:28px; }
  .hero__cta .btn{ flex:1 1 100%; }
  .hero__call{ width:100%; justify-content:center; padding-top:4px; }
  .hero__video{ filter:blur(2px) saturate(.8) brightness(.55); }
}

/* ═══════════════════════════════════════════════════════════════════════
   7. SECTION FURNITURE
   ═══════════════════════════════════════════════════════════════════════ */
/* Section rhythm (homepage only). A section that follows another light section starts at 0, so the
   space between them is ONE padding (--sec) instead of two paddings stacked together (was ~208px at 1440). */
:root{ --sec: clamp(60px, 6.8vw, 104px); }
.band{ padding-block:var(--sec); }
.band--tight{ padding-block:var(--sec); }
.band:not(.band--dark) + .band:not(.band--dark){ padding-top:0; }
#get-started.band{ padding-bottom:clamp(44px,5vw,72px); }
.band--dark{ background:var(--ink); color:#fff; }
.band--dark h2,.band--dark h3{ color:#fff; }
.band--dark .lede{ color:rgba(230,240,252,.76); }

.section-head{ max-width:62ch; }
.section-head h2 + p{ margin-top:18px; }
.head-gap{ margin-bottom:clamp(32px,4vw,52px); }

.rule{
  display:flex; align-items:baseline; gap:16px;
  padding-bottom:16px; margin-bottom:clamp(30px,3.6vw,48px);
  border-bottom:1px solid var(--border);
}
.rule__n{
  font-family:var(--ff-display); font-weight:600; font-size:.82rem;
  color:var(--accent); letter-spacing:.06em; flex:none; font-variant-numeric:tabular-nums;
}
.rule__t{ font-size:.92rem; font-weight:500; color:var(--fg-muted); }
.band--dark .rule{ border-bottom-color:rgba(255,255,255,.16); }
.band--dark .rule__n{ color:var(--pulse); }
.band--dark .rule__t{ color:rgba(230,240,252,.68); }

/* ═══════════════════════════════════════════════════════════════════════
   8. WHO WE HELP — six client groups, one balanced grid
   ═══════════════════════════════════════════════════════════════════════ */
.groups{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,1.5vw,20px); }
.group{
  display:flex; flex-direction:column; gap:16px;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:clamp(22px,2.2vw,30px);
  transition:border-color .22s var(--ease), box-shadow .22s var(--ease);
  scroll-margin-top:110px;
}
.group:hover{ border-color:var(--accent); }
.group:target{ border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.group__icon{
  width:42px; height:42px; flex:none; border-radius:12px; display:grid; place-items:center;
  background:color-mix(in srgb, var(--accent) 10%, transparent); color:var(--accent);
}
.group__icon svg{ width:21px; height:21px; }
.group h3{ font-size:1.2rem; }
.group p{ margin-top:8px; color:var(--fg-muted); font-size:.95rem; line-height:1.56; }
@media (max-width:900px){ .groups{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){
  .groups{ grid-template-columns:1fr; gap:12px; }
  .group{ flex-direction:row; align-items:flex-start; gap:16px; padding:20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   9. CREDIBILITY — qualified people, modern tools
   ═══════════════════════════════════════════════════════════════════════ */
.cred{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(24px,3vw,56px); align-items:stretch;
}
.cred__acca{
  background:var(--ink); color:#fff; border-radius:var(--r-lg);
  padding:clamp(26px,2.6vw,36px); position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center;
}
.cred__acca::after{
  content:""; position:absolute; right:-28%; bottom:-56%;
  width:72%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle, rgba(53,224,180,.18), transparent 68%);
}
.cred__badge{
  display:inline-flex; align-items:baseline; gap:10px; margin-bottom:18px;
  font-family:var(--ff-display); font-weight:800; font-size:1.7rem;
  letter-spacing:-.03em; color:var(--pulse);
}
.cred__badge small{
  font-family:var(--ff-text); font-size:.78rem; font-weight:600;
  letter-spacing:.14em; color:rgba(230,240,252,.7); text-transform:uppercase;
}
.cred__acca .cred__badge{ font-size:1.7rem; color:var(--pulse); margin:0 0 18px; max-width:none; line-height:1; position:relative; z-index:1; }
.cred__acca h3{ color:#fff; font-size:clamp(1.25rem,1.7vw,1.5rem); position:relative; z-index:1; }
.cred__acca p{ margin-top:13px; color:rgba(230,240,252,.8); font-size:.97rem; line-height:1.58; max-width:42ch; position:relative; z-index:1; }

.cred__tools h3{ font-size:clamp(1.25rem,1.7vw,1.5rem); }
.cred__tools > p{ margin-top:13px; color:var(--fg-muted); font-size:.97rem; line-height:1.58; max-width:46ch; }

/* [EDIT:SOFTWARE] — swap each .sw__name for an <img>/<svg> official logo */
.sw{
  margin-top:26px; display:grid; grid-template-columns:repeat(4,1fr);
  border:1px solid var(--border); border-radius:var(--r-md);
  background:var(--card); overflow:hidden;
}
.sw li{ border-right:1px solid var(--border); }
.sw li:last-child{ border-right:0; }
.sw__name{
  display:grid; place-items:center; height:74px; padding:0 10px;
  font-family:var(--ff-display); font-weight:700; font-size:1.05rem;
  letter-spacing:-.02em; color:var(--fg); opacity:.74;
  transition:opacity .22s var(--ease), color .22s var(--ease);
}
.sw li:hover .sw__name{ opacity:1; color:var(--accent); }
/* Ready for official files once you hold permission: <li><img class="sw__logo" src="…" alt="Xero"></li> */
.sw__logo{ display:block; margin:auto; height:26px; width:auto; max-width:80%; filter:grayscale(1); opacity:.6; transition:filter .22s var(--ease), opacity .22s var(--ease); }
.sw li:hover .sw__logo{ filter:none; opacity:1; }
.sw__note{ margin-top:16px; font-size:.84rem; color:var(--fg-muted); max-width:56ch; }
@media (max-width:900px){ .cred{ grid-template-columns:1fr; } }
@media (max-width:460px){
  .sw{ grid-template-columns:1fr 1fr; }
  .sw li:nth-child(2){ border-right:0; }
  .sw li:nth-child(1),.sw li:nth-child(2){ border-bottom:1px solid var(--border); }
}

/* ═══════════════════════════════════════════════════════════════════════
   10. SERVICES — three pillars, expandable rows
   ═══════════════════════════════════════════════════════════════════════ */
.pillars{ display:grid; gap:clamp(16px,1.6vw,22px); grid-template-columns:repeat(3,1fr); align-items:start; }
.pillar{ background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); padding:clamp(24px,2.3vw,32px); }
.pillar__icon{
  width:42px; height:42px; border-radius:12px; display:grid; place-items:center;
  background:color-mix(in srgb, var(--accent) 11%, transparent); color:var(--accent); margin-bottom:20px;
}
.pillar__icon svg{ width:21px; height:21px; }
.pillar > p{ margin-top:12px; color:var(--fg-muted); font-size:.95rem; line-height:1.55; }
.pillar__list{ margin-top:22px; border-top:1px solid var(--border-soft); }

.svc{ border-bottom:1px solid var(--border-soft); }
.svc summary{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:15px 2px; cursor:pointer; list-style:none;
  font-weight:600; font-size:1rem; letter-spacing:-.01em; transition:color .18s var(--ease);
}
.svc summary::-webkit-details-marker{ display:none; }
.svc summary:hover{ color:var(--accent); }
.svc__plus{ flex:none; width:18px; height:18px; color:var(--fg-muted); transition:transform .28s var(--ease), color .2s var(--ease); }
.svc[open] .svc__plus{ transform:rotate(45deg); color:var(--accent); }
.svc__body{ padding:0 2px 17px; font-size:.93rem; line-height:1.58; color:var(--fg-muted); max-width:44ch; }
.svc[open] .svc__body{ animation:unfold .3s var(--ease); }
@keyframes unfold{ from{ opacity:0; transform:translateY(-5px); } to{ opacity:1; transform:none; } }
@media (max-width:980px){ .pillars{ grid-template-columns:1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   11. DEADLINES
   ═══════════════════════════════════════════════════════════════════════ */
.rhythm__top{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(28px,4vw,64px); align-items:end; margin-bottom:clamp(34px,4vw,54px);
}
.pulse-line{ width:100%; height:64px; overflow:visible; }
.pulse-line path{
  fill:none; stroke:var(--wheat); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:var(--len,900); stroke-dashoffset:var(--len,900);
}
.pulse-line.is-drawn path{ animation:draw 2.1s var(--ease) forwards; }
@keyframes draw{ to{ stroke-dashoffset:0; } }

.dates{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-md); overflow:hidden;
}
.date{ background:var(--ink); padding:24px 22px; }
.date dt{ font-family:var(--ff-display); font-weight:700; font-size:1.22rem; color:var(--wheat); letter-spacing:-.018em; }
.date dd{ margin:9px 0 0; font-size:.9rem; line-height:1.5; color:rgba(230,240,252,.76); }
.dates__note{ margin-top:20px; font-size:.84rem; color:rgba(230,240,252,.54); max-width:74ch; }
@media (max-width:900px){ .dates{ grid-template-columns:1fr 1fr; } }
@media (max-width:860px){ .rhythm__top{ grid-template-columns:1fr; align-items:start; } }
@media (max-width:520px){ .dates{ grid-template-columns:1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   12. WHY
   ═══════════════════════════════════════════════════════════════════════ */
.why{ display:grid; grid-template-columns:repeat(6,1fr); gap:clamp(16px,1.6vw,22px); }
.why__item{ grid-column:span 2; background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); padding:clamp(24px,2.2vw,30px); }
.why__item--lead{ grid-column:span 3; background:var(--ink); border-color:var(--ink); color:#fff; }
.why__item--wide{ grid-column:span 3; }
.why__item h3{ font-size:1.14rem; }
.why__item--lead h3{ color:#fff; font-size:clamp(1.3rem,1.8vw,1.6rem); }
.why__item p{ margin-top:11px; color:var(--fg-muted); font-size:.96rem; line-height:1.58; }
.why__item--lead p{ color:rgba(230,240,252,.82); max-width:44ch; }
.why__tag{ display:inline-block; font-size:.78rem; font-weight:600; color:var(--accent); margin-bottom:13px; letter-spacing:.02em; }
.why__item--lead .why__tag{ color:var(--pulse); }
@media (max-width:900px){
  .why{ grid-template-columns:1fr 1fr; }
  .why__item,.why__item--lead,.why__item--wide{ grid-column:span 1; }
  .why__item--lead{ grid-column:span 2; }
}
@media (max-width:600px){ .why{ grid-template-columns:1fr; } .why__item--lead{ grid-column:span 1; } }

/* ═══════════════════════════════════════════════════════════════════════
   13. PROCESS
   ═══════════════════════════════════════════════════════════════════════ */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(18px,2vw,28px); }
.step{ position:relative; padding-top:30px; border-top:2px solid var(--border); }
.step::before{
  content:""; position:absolute; top:-2px; left:0; height:2px; width:0;
  background:var(--accent); transition:width .7s var(--ease);
}
.steps.is-live .step::before{ width:100%; }
.steps.is-live .step:nth-child(2)::before{ transition-delay:.12s; }
.steps.is-live .step:nth-child(3)::before{ transition-delay:.24s; }
.steps.is-live .step:nth-child(4)::before{ transition-delay:.36s; }
.step__n{ font-family:var(--ff-display); font-weight:700; font-size:.82rem; color:var(--accent); display:block; margin-bottom:12px; }
.step p{ margin-top:11px; color:var(--fg-muted); font-size:.95rem; line-height:1.56; }
@media (max-width:880px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .steps{ grid-template-columns:1fr; gap:26px; } }

/* ═══════════════════════════════════════════════════════════════════════
   14. FINAL CTA
   ═══════════════════════════════════════════════════════════════════════ */
.cta-panel{
  background:linear-gradient(150deg,var(--ink) 0%,#0C2547 56%,#143A6B 100%);
  border-radius:clamp(20px,2.4vw,32px); padding:clamp(34px,5vw,74px); color:#fff;
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(28px,4vw,60px); align-items:center; position:relative; overflow:hidden;
}
.cta-panel::after{
  content:""; position:absolute; right:-14%; top:-42%; width:58%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle, rgba(53,224,180,.2), transparent 66%); pointer-events:none;
}
.cta-panel h2{ color:#fff; max-width:17ch; }
.cta-panel > div{ position:relative; z-index:1; }
.cta-panel p{ margin-top:18px; color:rgba(230,240,252,.84); max-width:46ch; }
.cta-panel .hero__cta{ margin-top:32px; animation:none; opacity:1; transform:none; }
.cta-facts{ position:relative; z-index:1; display:grid; gap:2px; }
.cta-fact{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); padding:18px 22px; }
.cta-fact:first-child{ border-radius:var(--r-md) var(--r-md) 0 0; }
.cta-fact:last-child{ border-radius:0 0 var(--r-md) var(--r-md); }
.cta-fact dt{ font-size:.78rem; color:rgba(230,240,252,.62); }
.cta-fact dd{ margin:5px 0 0; font-weight:600; font-size:1.04rem; letter-spacing:-.01em; }
.cta-fact a{ color:var(--pulse); text-decoration:none; border-bottom:1px solid rgba(53,224,180,.4); }
.cta-fact a:hover{ border-bottom-color:var(--pulse); }
@media (max-width:900px){ .cta-panel{ grid-template-columns:1fr; } }
@media (max-width:520px){ .cta-panel .hero__cta .btn{ flex:1 1 100%; } }

/* ═══════════════════════════════════════════════════════════════════════
   16. REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .hero h1 .line > span,.hero__sub,.hero__cta,.hero__foot{ opacity:1; transform:none; }
  .pulse-line path{ stroke-dashoffset:0; }
  .steps .step::before{ width:100%; }
  .hero__video{ display:none; }
}
