/* =====================================================================
   ANDERSEN — Bookkeeping for growing New Zealand businesses
   Design system: warm editorial paper + deep evergreen + gold,
   serif display (Fraunces) over neutral sans (Inter) with mono labels.
   ===================================================================== */

:root {
  /* Palette */
  --paper:      #FBF9F4;
  --cream:      #F2EEE4;
  --sand:       #E6DCC9;
  --sand-deep:  #D8CAB0;
  --ink:        #16160F;
  --ink-soft:   #54514A;
  --ink-faint:  #8B877C;
  --evergreen:  #133127;
  --evergreen-2:#1C4738;
  --moss:       #2C6B4F;
  --moss-bright:#3E9469;
  --sage:       #A9BFAD;
  --gold:       #BE9A5C;
  --gold-soft:  #D8BE89;
  --line:       rgba(22,22,15,0.12);
  --line-soft:  rgba(22,22,15,0.07);

  /* Type */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 30px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; } /* smooth scrolling handled in JS for predictable positioning */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) — avoids turning <body> into a scroll container that caps scrollTop */
}
html { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--evergreen); color: var(--paper); }

/* --------------------------- Typography ---------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 380; line-height: 1.02; letter-spacing: -0.018em; }
.display {
  font-size: clamp(3rem, 9vw, 8.2rem);
  font-weight: 340;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.h-xl { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3.2rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.italic { font-style: italic; }
em, .italic { font-style: italic; }
.serif { font-family: var(--serif); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* ---------------------------- Layout ------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; }
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section-sm { padding-block: clamp(48px, 7vw, 90px); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--evergreen); color: var(--paper); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(19,49,39,0.55); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 0.8em; }

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251,249,244,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 12px 0;
  border-color: var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.38rem; letter-spacing: -0.02em; line-height: 1; }
.brand .mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand br { display: none; }
.brand small { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--moss); margin-top: 5px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.93rem; font-weight: 450; color: var(--ink-soft); transition: color .25s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-5px; width:0; height:1.5px; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Cleaner ampersand — keeps the page in Fraunces but swaps the ornate & glyph
   for a simpler one set in the sans face. */
.amp { font-family: var(--sans); font-weight: 400; font-style: italic; font-size: 0.92em; padding: 0 0.02em; }

/* Nav dropdown */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item > a .chev { width: 8px; height: 8px; opacity: .6; transition: transform .3s var(--ease); }
.nav-item:hover > a .chev { transform: rotate(180deg); }
.nav-item::after { content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 16px; } /* hover bridge */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 250px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; box-shadow: 0 26px 54px -22px rgba(19,49,39,.4);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  z-index: 120;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 11px; font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
.dropdown a small { font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; color: var(--ink-faint); font-weight: 400; }
.dropdown a::after { display: none !important; }
.dropdown a:hover { background: var(--cream); color: var(--moss); }
.dropdown a:hover small { color: var(--moss); }
@media (max-width: 940px) {
  .nav-item { display: block; width: auto; }
  .nav-item > a .chev { display: none; }
  /* inherit visibility from the overlay so dropdown items only show when the menu is open */
  .dropdown { position: static; transform: none; opacity: 1; visibility: inherit; box-shadow: none; border: none; background: transparent; min-width: 0; padding: 6px 0 2px; }
  .dropdown a { padding: 4px 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft); }
  .dropdown a small { display: none; }
}
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-toggle span { width: 16px; height: 1.6px; background: var(--ink); position: relative; transition: .3s; }
.menu-toggle span::before, .menu-toggle span::after { content:""; position:absolute; left:0; width:16px; height:1.6px; background: var(--ink); transition:.3s; }
.menu-toggle span::before { top:-5px; } .menu-toggle span::after { top:5px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top:0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top:0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 8px; background: var(--paper); padding: var(--gutter); z-index: 95;
    transform: translateY(-18px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
  }
  body.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { font-family: var(--serif); font-size: 2rem; color: var(--ink); }
  .nav-cta .btn-ghost { display: none; }
}

/* ------------------------------ Hero ------------------------------- */
.hero { position: relative; padding-top: clamp(94px, 10vh, 128px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin: clamp(34px, 4vw, 54px) 0 0.45em; }
.hero .lead { margin-bottom: 2.2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 2.6em; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-trust .t-item { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-visual { position: relative; aspect-ratio: 1/1; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
}

/* Reusable "card" surfaces */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(19,49,39,0.4); border-color: var(--sand-deep); }
.card.dark { background: var(--evergreen); color: var(--cream); border-color: transparent; }
.card.dark .muted { color: var(--sage); }
.card.cream { background: var(--cream); border-color: transparent; }

/* Service list rows (editorial, expanding) */
.svc-row {
  display: grid; grid-template-columns: 64px 1.1fr 1.4fr auto; gap: 28px; align-items: center;
  padding: clamp(26px, 3.4vw, 42px) 8px;
  border-top: 1px solid var(--line);
  transition: padding-inline .5s var(--ease), background .5s;
  position: relative;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:hover { background: var(--cream); padding-inline: 28px; }
.svc-row .num { font-family: var(--mono); font-size: 0.8rem; color: var(--moss); }
.svc-row h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.svc-row p { color: var(--ink-soft); font-size: 0.97rem; max-width: 46ch; }
.svc-row .go { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: .4s var(--ease); flex-shrink: 0; }
.svc-row:hover .go { background: var(--evergreen); color: var(--paper); border-color: var(--evergreen); transform: rotate(-45deg); }
@media (max-width: 820px) {
  .svc-row { grid-template-columns: 40px 1fr; gap: 6px 18px; }
  .svc-row p { grid-column: 2; }
  .svc-row .go { grid-row: 1; grid-column: 2; justify-self: end; }
}

/* Stat blocks */
.stat { padding-block: 8px; }
.stat .n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 2px; }
.stat .n .suf { font-size: 0.5em; color: var(--gold); }
.stat .l { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: "✳"; color: var(--gold); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.on-dark { border-color: rgba(255,255,255,0.15); }
.marquee.on-dark span { color: var(--cream); }
.marquee.on-dark span::after { color: var(--gold-soft); }

/* Feature / value cards */
.value { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px,3vw,34px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: .5s var(--ease); }
.value:hover { background: var(--cream); transform: translateY(-5px); }
.value .ic { width: 52px; height: 52px; }
.value h3 { font-size: 1.35rem; }
.value p { color: var(--ink-soft); font-size: 0.97rem; }

/* Process / steps */
.step { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); }
.step .idx { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; }
.step h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 10px; }
.step p { color: var(--ink-soft); max-width: 60ch; }

/* Testimonial */
.quote-block { max-width: 26ch; }
.testimonial blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 360; }
.testimonial .who { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.testimonial .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--moss); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; }
.testimonial .who .nm { font-weight: 600; font-size: 0.95rem; }
.testimonial .who .rl { font-size: 0.85rem; color: var(--ink-soft); }

/* Dark band */
.band-dark { background: var(--evergreen); color: var(--cream); }
.band-dark .kicker { color: var(--sage); }
.band-dark .kicker::before { background: var(--gold); }
.band-dark .muted, .band-dark .lead { color: var(--sage); }
.band-dark .svc-row, .band-dark .step { border-color: rgba(255,255,255,0.13); }
.band-cream { background: var(--cream); }

/* FAQ accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; padding: 30px 4px; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.6rem); color: var(--ink); transition: color .3s; }
.acc-q:hover { color: var(--moss); }
.acc-q .pm { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc-q .pm::before, .acc-q .pm::after { content:""; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); background: var(--moss); }
.acc-q .pm::before { width: 16px; height: 1.6px; }
.acc-q .pm::after { width: 1.6px; height: 16px; transition: transform .4s var(--ease); }
.acc-item.open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.acc-a-inner { padding: 0 4px 30px; color: var(--ink-soft); max-width: 70ch; }
.acc-a-inner p + p { margin-top: 14px; }

/* CTA panel */
.cta-panel { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--evergreen); color: var(--cream); padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 90px); }
.cta-panel h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; }
.cta-panel .lead { color: var(--sage); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding-top: clamp(60px, 8vw, 100px); }
.site-footer a { color: var(--sage); transition: color .25s; }
.site-footer a:hover { color: var(--paper); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-col h4 { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; font-size: 0.93rem; }
.footer-brand .display-mini { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 30px; font-size: 0.82rem; color: var(--ink-faint); font-family: var(--mono); letter-spacing: 0.04em; }
.footer-giant { font-family: var(--serif); font-weight: 330; font-size: clamp(4rem, 22vw, 19rem); line-height: 0.8; letter-spacing: -0.04em; text-align: center; color: var(--cream); opacity: 0.96; padding-block: 20px 30px; overflow: hidden; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ----------------------- Scroll animations ------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
.clip-up { clip-path: inset(0 0 100% 0); transform: translateY(20px); opacity: 0; transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease), opacity .6s; }
.clip-up.in { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }

/* line-by-line headline reveal */
.line-mask { overflow: hidden; display: block; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.line-mask.in > span { transform: none; }

/* Animated SVG draw */
.draw-path { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.draw-path.in { transition: stroke-dashoffset 2.2s var(--ease); stroke-dashoffset: 0; }

/* floaty */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-y2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100% { opacity: 1; r: 5; } 50% { opacity: .4; r: 7; } }
.float { animation: float-y 6s var(--ease-soft) infinite; }
.float-2 { animation: float-y2 7s var(--ease-soft) infinite; }
.spin-slow { animation: spin-slow 38s linear infinite; transform-origin: center; }

/* Grain overlay */
.grain::after {
  content:""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold); width: 0; z-index: 200; transition: width .1s linear; }

/* Tag / pill */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 100px; border: 1px solid var(--line); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.pill.solid { background: var(--evergreen); color: var(--cream); border-color: transparent; }

/* Checklist */
.checklist li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); align-items: flex-start; }
.checklist li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--moss); margin-top: 1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-11'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-11'/%3E%3C/svg%3E") center/14px no-repeat;
  background: var(--moss);
}
.checklist li strong { color: var(--ink); font-weight: 600; }

/* Article / prose */
.prose { max-width: 72ch; font-size: 1.12rem; line-height: 1.78; color: #2A281F; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 2em; letter-spacing: -0.02em; }
.prose h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 1.6em; }
.prose p { color: #34322A; }
.prose a { color: var(--moss); border-bottom: 1px solid var(--sage); }
.prose a:hover { border-color: var(--moss); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; padding-left: 0.3em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content:"—"; position: absolute; left: -1.3em; color: var(--gold); }
.prose ol { list-style: decimal; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 24px; font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--evergreen); }
.prose strong { color: var(--ink); }
.prose figure { margin-block: 2em; }
.prose figcaption { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); margin-top: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.prose .callout { background: var(--cream); border-radius: var(--radius); padding: 26px 30px; border-left: 3px solid var(--moss); }
.prose .callout p { color: var(--ink); }

/* Blog cards */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); transition: .5s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(19,49,39,0.4); }
.post-card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.post-card .thumb svg { width: 100%; height: 100%; }
.post-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card .meta { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); display: flex; gap: 14px; }
.post-card h3 { font-size: 1.4rem; line-height: 1.12; }
.post-card p { font-size: 0.94rem; color: var(--ink-soft); flex: 1; }

/* Breadcrumb */
.crumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 10px; align-items: center; }
.crumb a:hover { color: var(--moss); }
.crumb .sep { color: var(--sand-deep); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tab { padding: 12px 20px; border-radius: 100px 100px 0 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-faint); transition: .3s; position: relative; }
.tab.active { color: var(--ink); }
.tab.active::after { content:""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--evergreen); }
.tab-panel { display: none; padding-top: 36px; }
.tab-panel.active { display: block; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Pricing-ish comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare > div { padding: clamp(28px, 4vw, 48px); }
.compare .a { background: var(--cream); }
.compare .b { background: var(--evergreen); color: var(--cream); }
.compare h4 { font-size: 1.4rem; margin-bottom: 18px; }
.compare ul li { padding: 9px 0; font-size: 0.95rem; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* Form */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(44,107,79,0.1); }

/* Map embed frame */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ---------------- Photos / media ---------------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.ratio-43 { aspect-ratio: 4/3; }
.media.ratio-11 { aspect-ratio: 1/1; }
.media.ratio-169 { aspect-ratio: 16/9; }
.media.ratio-34 { aspect-ratio: 3/4; }
.media .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,40,32,0) 30%, rgba(11,30,24,0.78) 100%); }
.media .overlay-ever { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,49,39,0.15), rgba(19,49,39,0.55)); }
.duotone img { filter: grayscale(0.4) sepia(0.18) saturate(0.9) brightness(0.96); }

/* Service-line cards (compact grid replacing the tall rows) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); min-height: 230px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s, border-color .5s;
  overflow: hidden;
}
.svc-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(19,49,39,0.42); border-color: var(--sand-deep); }
.svc-tile .ix { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--moss); }
.svc-tile h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.05; }
.svc-tile p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.svc-tile .go-sm { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem; color: var(--ink); margin-top: 4px; }
.svc-tile .go-sm span { transition: transform .35s var(--ease); }
.svc-tile:hover .go-sm span { transform: translateX(5px); }
.svc-tile.feature { background: var(--evergreen); color: var(--cream); border-color: transparent; grid-column: span 1; }
.svc-tile.feature .ix { color: var(--gold-soft); }
.svc-tile.feature p { color: var(--sage); }
.svc-tile.feature .go-sm { color: var(--cream); }
.svc-tile .ic-corner { position: absolute; right: 22px; top: 22px; width: 40px; height: 40px; opacity: 0.85; }

/* Industry photo cards */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }
.ind-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; transition: transform .55s var(--ease); }
.ind-card:hover { transform: translateY(-6px); }
.ind-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ind-card:hover img { transform: scale(1.06); }
.ind-card .cap { position: absolute; inset: auto 0 0 0; padding: 22px; color: var(--paper); z-index: 2; }
.ind-card .cap h3 { font-size: 1.4rem; }
.ind-card .cap p { font-size: 0.82rem; color: rgba(246,242,234,0.82); margin-top: 4px; }

/* Photo band (skyline) */
.photo-band { position: relative; overflow: hidden; }
.photo-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,40,32,0.92) 0%, rgba(15,40,32,0.72) 45%, rgba(15,40,32,0.4) 100%); }
.photo-band .inner { position: relative; z-index: 2; }

/* Hero photo frame */
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .float-card {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(251,249,244,0.86); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
}
.hero-photo .float-card .tick { width: 40px; height: 40px; border-radius: 12px; background: var(--moss); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-photo .badge-top { position: absolute; right: 16px; top: 16px; }

/* ---------------- Flashy hero stage (homepage) ---------------- */
.hero-stage { position: relative; aspect-ratio: 1/1; }
.hero-glow {
  position: absolute; inset: -14%; z-index: 0; filter: blur(46px); opacity: .9; pointer-events: none;
  background:
    radial-gradient(42% 42% at 68% 28%, rgba(62,148,105,.62), transparent 70%),
    radial-gradient(38% 38% at 28% 72%, rgba(190,154,92,.5), transparent 70%),
    radial-gradient(55% 55% at 50% 50%, rgba(44,107,79,.32), transparent 72%);
  animation: glowShift 9s var(--ease-soft) infinite alternate;
}
@keyframes glowShift { from { transform: translate(-2%,-2%) scale(1); } to { transform: translate(3%,2%) scale(1.09); } }

.hero-dash {
  position: absolute; z-index: 2; inset: 11% 9% 13% 11%;
  display: flex; flex-direction: column;
  border-radius: 26px; padding: clamp(20px,2.4vw,30px); color: var(--cream); overflow: hidden;
  background: linear-gradient(158deg, #1A4234, #0D2620);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 44px 84px -30px rgba(8,26,21,.72), inset 0 1px 0 rgba(255,255,255,.07);
}
.hero-dash::before {
  content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px; -webkit-mask-image: radial-gradient(80% 80% at 50% 25%, #000, transparent); mask-image: radial-gradient(80% 80% at 50% 25%, #000, transparent);
}
.dash-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.dash-brand { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.dash-sync { font-family: var(--mono); font-size: .6rem; color: #7FD4A6; display: flex; align-items: center; gap: 7px; }
.dash-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3E9469; animation: pulseDot 2.2s infinite; }
@keyframes pulseDot { 0%{box-shadow:0 0 0 0 rgba(62,148,105,.55);} 70%{box-shadow:0 0 0 9px rgba(62,148,105,0);} 100%{box-shadow:0 0 0 0 rgba(62,148,105,0);} }
.dash-metric { margin-top: clamp(14px,2vw,22px); position: relative; z-index: 1; }
.dash-label { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; color: var(--sage); text-transform: uppercase; }
.dash-big { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.3rem); margin-top: 5px; display: flex; align-items: center; gap: 10px; line-height: 1; }
.dash-big .up { color: #7FD4A6; font-size: .62em; display: inline-flex; align-items: center; gap: 4px; }
.dash-chart { flex: 1; min-height: 0; margin: clamp(10px,1.6vw,18px) 0; position: relative; z-index: 1; }
.dash-chart svg { width: 100%; height: 100%; display: block; }
.dash-rows { display: grid; gap: 2px; position: relative; z-index: 1; }
.dash-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: .8rem; color: var(--sage); }
.dash-row b { color: #7FD4A6; font-family: var(--mono); font-size: .72rem; display: flex; align-items: center; gap: 6px; font-weight: 400; }

.hero-chip {
  position: absolute; z-index: 4; background: rgba(251,249,244,.85);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.65); border-radius: 15px; padding: 11px 15px;
  box-shadow: 0 20px 44px -18px rgba(8,26,21,.55);
  font-size: .82rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hero-chip .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--moss); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-chip .ic.gold { background: var(--gold); }
.hero-chip span small { display: block; font-family: var(--mono); font-weight: 400; font-size: .6rem; color: var(--ink-soft); margin-top: 1px; text-transform: none; letter-spacing: 0; }
.hero-chip.chip-1 { top: 3%; right: -3%; }
.hero-chip.chip-2 { bottom: 23%; left: -7%; }
.hero-chip.chip-3 { bottom: 1%; right: 4%; }
@media (max-width: 480px) {
  .hero-chip { font-size: .74rem; padding: 9px 12px; }
  .hero-chip.chip-1 { right: 0; } .hero-chip.chip-2 { left: 0; }
}

/* ---------------- Trusted-by logo wall ---------------- */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.logo-track { display: flex; align-items: center; gap: clamp(38px,5vw,70px); width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.client-logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--sage); opacity: .8; transition: opacity .3s, color .3s; }
.client-logo:hover { opacity: 1; color: var(--cream); }
.client-logo .lm { width: 26px; height: 26px; flex-shrink: 0; }
.client-logo .lt { font-size: 1.18rem; white-space: nowrap; letter-spacing: .01em; line-height: 1; color: inherit; }

/* Utility */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 56px; }
.mb-m { margin-bottom: 28px; } .mb-l { margin-bottom: 56px; }
.divider { height: 1px; background: var(--line); border: 0; }
.flex { display: flex; } .gap-s { gap: 12px; } .gap-m { gap: 24px; }
.wrap-tag { flex-wrap: wrap; } .items-center { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
