/* =========================================================
   TOLLMAN — project overrides on top of the Crestcom-derived system
   Green palette · text wordmark · content-specific components
   ========================================================= */

/* ---------- brand: aperture monogram + wordmark ---------- */
.brand { gap: 12px; text-decoration: none; }
.brand__mark {
  position: relative; display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 30%;
  background: linear-gradient(140deg, #1f5c3d 0%, #0b2417 52%, #030a06 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.5),
              0 8px 22px -12px rgba(3, 12, 8, .9), 0 0 0 1px rgba(156,201,169,.16);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  isolation: isolate;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 22% 12%, rgba(255,255,255,.18), transparent 55%);
}
.brand__svg { width: 62%; height: 62%; display: block; overflow: visible; }
.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 30px -14px rgba(3,12,8,.95), 0 0 0 1px rgba(156,201,169,.34);
}
.brand:hover .brand__svg path:last-child { opacity: 1; }
.brand__name {
  display: grid; gap: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  line-height: 1; letter-spacing: -.012em; color: #fff; white-space: nowrap;
}
.brand__name span {
  font-family: var(--font-body); font-weight: 500; font-size: .63rem;
  letter-spacing: .17em; text-transform: uppercase; color: rgba(255, 255, 255, .52);
}
.brand--foot .brand__mark { width: 50px; height: 50px; }
.brand--foot .brand__name { font-size: 1.15rem; }
@media (max-width: 560px) {
  .brand__name span { display: none; }
  .brand__name { font-size: .95rem; }
  .brand__mark { width: 36px; height: 36px; }
}

/* ---------- proof strip: organisation names instead of logos ---------- */
.proof__org {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  letter-spacing: -.015em; white-space: nowrap; color: rgba(255, 255, 255, .5);
  transition: color .3s;
}
.proof__org:hover { color: #fff; }
.proof__marquee { --dur: 44s; }
.proof__pill { font-size: .92rem; }
.proof__pill .ic { color: var(--sage, #9cc9a9); }

/* ---------- hero: make sure the section still reads if WebGL is off ---------- */
.hero__canvas { opacity: .78; filter: hue-rotate(-42deg) saturate(.75) brightness(1.04); }
.hero__lines { opacity: .5; }

/* ---------- credentials seals (replacing award badge artwork) ---------- */
.awards__seal {
  position: absolute; left: 0; top: 0; width: 210px; margin: 0; padding: 20px 20px 16px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow-2);
  display: grid; gap: 10px; justify-items: center; text-align: center;
}
.awards__seal > svg { width: 100%; height: auto; animation: sealSpin 34s linear infinite; }
.awards__seal > svg text {
  font-family: var(--font-display); font-size: 11.4px; font-weight: 700;
  letter-spacing: .21em; fill: var(--navy, #0a2318);
}
.awards__seal figcaption { display: grid; gap: 3px; }
.awards__seal figcaption strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em; }
.awards__seal figcaption span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.awards__seal--2 { left: auto; right: 0; top: 96px; width: 250px; }
.awards__seal--2 > svg text { font-size: 10px; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .awards__seal > svg { animation: none; } }

/* ---------- services deck: 5 strips ---------- */
.svc__strip img { filter: saturate(.92) brightness(.82); }
.svc__label { font-size: clamp(.82rem, 1vw, .95rem); }

/* ---------- misc copy refinements ---------- */
.problem__quote p { font-family: var(--font-body); }
.local__seal > svg text {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; fill: rgba(255, 255, 255, .78);
}
.res__card .res__meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.foot__word { font-size: clamp(2.6rem, 12.4vw, 13rem); letter-spacing: -.045em; white-space: nowrap; }
.voices .slider__slide .quote { font-size: clamp(1.16rem, 1.75vw, 1.6rem); }
.voices .voice figcaption strong { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* ---------- type-specific warmth: sand accents ---------- */
.chip--amber, .chip--brand { --chip-bg: var(--sand, #e8ddc9); }

/* ---------- section rhythm: keep the light/dark alternation crisp ---------- */
.section--paper { background-image: radial-gradient(120% 80% at 12% 0%, rgba(47, 122, 80, .07) 0%, transparent 60%); }
.section--sand { background: linear-gradient(180deg, #f3f0e6 0%, #ece7d8 100%); }

/* ---------- nav: five service links need a beat more room ---------- */
.mega__link strong { font-size: .95rem; }
@media (max-width: 1180px) { .nav__links .nav__link { padding: 11px 11px; font-size: .89rem; } }

/* ---------- print ---------- */
@media print {
  .site-header, .drawer, .cursor-glow, .scroll-progress, .foot__cta { display: none !important; }
  body { background: #fff; }
}

/* ---------- eyebrows and kickers on dark surfaces ---------- */
.section--navy .eyebrow, .section--ink .eyebrow, .section--blue .eyebrow,
.section--brand .eyebrow, .section--midnight .eyebrow, .sband .eyebrow,
.phero .eyebrow, .method .eyebrow, .roi .eyebrow, .voices .eyebrow,
.comps .eyebrow, .local .eyebrow, .hscroll .eyebrow { color: var(--ice, #dcebdf); }
.section--navy .eyebrow::before, .section--ink .eyebrow::before,
.section--blue .eyebrow::before, .section--brand .eyebrow::before,
.section--midnight .eyebrow::before, .sband .eyebrow::before,
.phero .eyebrow::before, .method .eyebrow::before, .roi .eyebrow::before,
.voices .eyebrow::before, .comps .eyebrow::before, .local .eyebrow::before,
.hscroll .eyebrow::before { background: #fff; }
.section--navy .kicker, .section--ink .kicker, .section--blue .kicker { color: var(--sage, #9cc9a9); }

/* ---------- page hero badges: readable glass over photography ---------- */
.phero__badge {
  max-width: 300px;
  background: linear-gradient(140deg, rgba(4, 18, 11, .88) 0%, rgba(10, 35, 24, .78) 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.phero__badge span:last-child { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.phero__badge strong { color: #fff; }
.hero__chip.glass {
  background: linear-gradient(140deg, rgba(4, 18, 11, .9) 0%, rgba(10, 35, 24, .8) 100%);
  border: 1px solid rgba(255, 255, 255, .16);
}

/* ---------- contact form card: dark text on the white card ---------- */
.cform__card, .cform__card h2, .cform__card h3, .cform__card p, .cform__card label,
.cform__card .check { color: var(--text); }
.cform__card .cform__head h2 { color: var(--navy); }
.cform__card .cform__head p { color: var(--muted); }
.cform__card .eyebrow { color: var(--blue-deep); }
.cform__card .eyebrow::before { background: var(--blue); }
.cform__card .fsteps li { color: var(--muted-2); }
.cform__card .fsteps li.is-active { color: var(--navy); }
.cform__card .form-note { color: var(--muted); }
.cform__card .check input { accent-color: var(--blue); }

/* ---------- small screens: keep the 3D hero from sitting on the copy ---------- */
@media (max-width: 960px) {
  .hero__canvas { opacity: .42; }
  .phero__canvas { opacity: .34; }
  .hero__grid, .phero__grid { position: relative; }
  .hero__copy, .phero__copy { position: relative; z-index: 2; }
  .hero__meta { flex-wrap: wrap; row-gap: 8px; }
  .hero__meta li { font-size: .78rem; }
}
@media (max-width: 560px) {
  .hero__canvas { opacity: .3; }
  .phero__canvas { opacity: .26; }
  .proof__stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .pstat__num { font-size: 2.1rem; }
}

/* ---------- performance: cheap paint on small screens and low-power devices ---------- */
@media (max-width: 960px), (prefers-reduced-motion: reduce) {
  .glass, .glass--dark, .glass--light, .hero__chip, .phero__badge, .leader__tag,
  .problem__quote, .feat__float, .mega__panel, .drawer__inner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero__canvas, .phero__canvas { display: none !important; }
  .hero__glow, .phero__glow { filter: blur(70px); }
  .cursor-glow { display: none; }
  .hero__lines { opacity: .35; }
}

/* =========================================================
   4 · PALETTE — green, deep dark, true black and white
   Creams and beiges are removed: the neutrals are now paper-white,
   light grey and near-black, so the green reads as the only colour.
   ========================================================= */
:root {
  --ink: #030806;
  --navy: #06190F;
  --navy-2: #0A2618;
  --navy-3: #123A26;
  --blue: #2F7A50;
  --blue-deep: #245F3D;
  --blue-2: #9CC9A9;
  --sage: #9CC9A9;
  --ice: #E2EAE3;
  --paper: #FFFFFF;
  --paper-2: #F1F3F0;
  --sand: #FAFBF9;
  --sand-2: #E7EAE6;
  --text: #0A120D;
  --muted: #4C564F;
  --line: rgba(6, 20, 13, .13);
  --black: #000000;
  --white: #FFFFFF;
}

/* dark bands go properly black-neutral instead of murky green */
.hero--home,
.band--ink,
.cta,
.foot { background-color: var(--ink); }

/* =========================================================
   5 · HERO — real depth: staged perspective, plates, layered parallax
   ========================================================= */
.hero--home {
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(35, 122, 78, .34) 0%, rgba(6, 25, 15, .18) 42%, transparent 68%),
    radial-gradient(90% 70% at 8% 90%, rgba(20, 74, 48, .28) 0%, transparent 62%),
    linear-gradient(168deg, #071A11 0%, #04100A 46%, #000000 100%);
}
.hero--home::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(58% 46% at 50% 108%, rgba(156, 201, 169, .16), transparent 70%);
}

@media (min-width: 961px) {
  .hero__grid { perspective: 1500px; perspective-origin: 68% 46%; }
  .hero__stage {
    transform-style: preserve-3d;
    transform: rotateX(var(--hx, 0deg)) rotateY(var(--hy, 0deg));
    transition: transform .22s var(--ease-out);
    will-change: transform;
  }
  .hero__card-3d {
    position: relative; transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(6.5deg) rotateZ(-1.4deg);
    animation: cardHover 11s ease-in-out infinite;
  }
  .hero__card {
    transform: translateZ(52px);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 70px 110px -56px rgba(0, 0, 0, .98), 0 34px 54px -44px rgba(0, 0, 0, .9),
                0 0 0 1px rgba(255, 255, 255, .10);
  }
  /* two stacked plates behind the photo = the deck the card sits on */
  .hero__card-3d::before,
  .hero__card-3d::after {
    content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
    background: linear-gradient(150deg, rgba(156, 201, 169, .20), rgba(156, 201, 169, .02) 60%, transparent);
    border: 1px solid rgba(156, 201, 169, .16);
    transform: translate3d(20px, 30px, -46px) rotateY(3deg);
    box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .9);
  }
  .hero__card-3d::after {
    transform: translate3d(40px, 58px, -104px) rotateY(6deg) scale(.985);
    opacity: .55;
  }
  .hero__chip { transform-style: preserve-3d; will-change: transform; }
  .hero__chip.glass {
    background: linear-gradient(150deg, rgba(9, 30, 19, .84), rgba(3, 10, 7, .72));
    border: 1px solid rgba(156, 201, 169, .22);
    box-shadow: 0 44px 70px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  /* deck the floor with a receding grid — the strongest depth cue on the page */
  .hero__lines {
    opacity: .5;
    transform: perspective(680px) rotateX(64deg) scale(1.6);
    transform-origin: 50% 100%;
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 34%, transparent 62%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 34%, transparent 62%);
  }
  .hero--home .h-display { text-shadow: 0 22px 60px rgba(0, 0, 0, .55); }
}

@keyframes cardHover {
  0%, 100% { transform: rotateY(-12deg) rotateX(6.5deg) rotateZ(-1.4deg) translate3d(0, 0, 0); }
  50%      { transform: rotateY(-9.5deg) rotateX(4.5deg) rotateZ(-.6deg) translate3d(0, -14px, 18px); }
}

/* =========================================================
   6 · TEXT IN MOTION — word masks everywhere, gradient that travels,
       a headline that lifts on hover
   ========================================================= */
.split .grad--sky .wi {
  background-size: 240% 100% !important;
  background-position: 0% 50%;
  animation: gradTravel 9s linear infinite;
}
.split .grad .wi {
  background-size: 240% 100% !important;
  background-position: 100% 50%;
  animation: gradTravel 11s linear infinite reverse;
}
@keyframes gradTravel {
  from { background-position: 0% 50%; }
  to   { background-position: 240% 50%; }
}

/* slower, longer rise for section headings so the page reads as it scrolls */
.sec-head .h2.split .wi,
.phero__title.split .wi,
.h1.split .wi { transition-duration: 1.15s; transition-delay: calc(var(--i, 0) * 26ms + var(--d, 0s)); }

/* headline lifts as a block on hover, letter-spacing eases open */
.hero--home .h-display { transition: transform .8s var(--ease-out), letter-spacing .8s var(--ease-out); }
.hero--home .h-display:hover { transform: translateY(-4px); letter-spacing: -.037em; }

/* eyebrow: a light sweeps along the rule then the words settle in */
.eyebrow { position: relative; }
.eyebrow::after {
  content: ""; position: absolute; inset: -8px -14px; pointer-events: none; border-radius: 999px;
  background: linear-gradient(100deg, transparent 20%, rgba(156, 201, 169, .16) 48%, transparent 72%);
  background-size: 260% 100%; animation: eyebrowSweep 7s ease-in-out infinite;
  opacity: 0;
}
.js .eyebrow.is-in::after, .js .hero .eyebrow::after { opacity: 1; }
@keyframes eyebrowSweep {
  0%   { background-position: 180% 0; }
  55%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .split .grad .wi, .split .grad--sky .wi, .eyebrow::after, .hero__card-3d { animation: none !important; }
}

/* hero stage: keep the floating chips clear of the tilted photo */
@media (min-width: 961px) {
  .hero__card { transform: translateZ(26px); }
  .hero__card-3d { transform: rotateY(-9deg) rotateX(4.5deg) rotateZ(-1deg); animation: cardHover 11s ease-in-out infinite; }
  .hero__chip--1 { left: -14%; top: 3%; }
  .hero__chip--2 { right: -11%; top: 46%; }
  .hero__chip--3 { left: -12%; bottom: -6%; }
  .hero__chip { box-shadow: 0 40px 60px -34px rgba(0,0,0,.9); }
}
@keyframes cardHover {
  0%, 100% { transform: rotateY(-9deg) rotateX(4.5deg) rotateZ(-1deg) translate3d(0, 0, 0); }
  50%      { transform: rotateY(-7deg) rotateX(3deg) rotateZ(-.4deg) translate3d(0, -12px, 16px); }
}

/* more air around the tilted photo: the deck is inset, the chips live in the gutter */
@media (min-width: 961px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
  .hero__card-3d { padding: 0 30px 0 0; }
  .hero__card { transform: translateZ(6px); }
  .hero__chip--1 { left: -13%; top: 2%; }
  .hero__chip--2 { right: -9%; top: 45%; }
  .hero__chip--3 { left: -11%; bottom: -5%; }
  .hero__chip { max-width: 250px; }
}

/* hero geometry, final: original gutters restored, chips float clear on z */
@media (min-width: 961px) {
  .hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
  .hero__card-3d { padding: 0; }
  .hero__chip--1 { left: -10%; top: 4%; }
  .hero__chip--2 { right: -7%; top: 44%; }
  .hero__chip--3 { left: -8%; bottom: -6%; }
  .hero__chip { max-width: 258px; }
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { white-space: nowrap; }
}

@media (min-width: 961px) {
  /* keep the first chip clear of the last word of the headline */
  .hero__chip--1 { left: -6%; top: 3%; }
  .hero__chip--3 { left: -5%; bottom: -6%; }
  /* the deck plates read as glass shelves, not ghosts */
  .hero__card-3d::before { background: linear-gradient(150deg, rgba(156,201,169,.26), rgba(156,201,169,.04) 55%, transparent); border-color: rgba(156,201,169,.24); }
  .hero__card-3d::after  { background: linear-gradient(150deg, rgba(156,201,169,.16), transparent 70%); border-color: rgba(156,201,169,.16); }
}

/* gradient words: a light that travels through them, instead of shifting the
   whole gradient (which pushed the text into muddy mid-greens) */
.split .grad .wi,
.split .grad--sky .wi {
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 62%),
    var(--grad-text) !important;
  background-size: 240% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: 200% 0, 0 0;
  animation: textShine 8s ease-in-out infinite;
}
.split .grad--sky .wi {
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 62%),
    var(--grad-text-2) !important;
}
@keyframes textShine {
  0%   { background-position: 210% 0, 0 0; }
  52%  { background-position: -130% 0, 0 0; }
  100% { background-position: -130% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .split .grad .wi, .split .grad--sky .wi { animation: none !important; }
}

/* brighter accent gradient wherever the surface is dark */
.hero--home, .hero, .phero, .section--navy, .section--ink, .band--ink,
.cta, .foot, .proof, .drawer { --grad-text-2: linear-gradient(115deg, #ffffff 0%, #e9f3eb 46%, #bde2c7 100%); }
@media (max-width: 960px) {
  .hero--home, .hero, .phero, .section--navy, .section--ink, .band--ink, .cta, .foot, .proof {
    --grad-text-2: linear-gradient(115deg, #ffffff 0%, #eaf4ec 50%, #c3e5cc 100%);
  }
}

/* the eyebrow sweep read as a smudge on the hero — drop it, keep the rule */
.eyebrow::after { display: none !important; }

@media (min-width: 961px) {
  /* deeper deck: the plates step back and to the right like stacked glass */
  .hero__card-3d::before { transform: translate3d(26px, 34px, -52px) rotateY(3deg); background: linear-gradient(150deg, rgba(156,201,169,.30), rgba(156,201,169,.05) 52%, transparent); }
  .hero__card-3d::after  { transform: translate3d(54px, 70px, -118px) rotateY(7deg) scale(.98); opacity: .7; }
  .hero__card { transform: translateZ(18px); }
  .hero__card-3d { transform: rotateY(-11deg) rotateX(5deg) rotateZ(-1deg); }
}
@keyframes cardHover {
  0%, 100% { transform: rotateY(-11deg) rotateX(5deg) rotateZ(-1deg) translate3d(0, 0, 0); }
  50%      { transform: rotateY(-8.5deg) rotateX(3.4deg) rotateZ(-.4deg) translate3d(0, -14px, 20px); }
}

/* chips sit in front of the photo even before the pointer moves */
@media (min-width: 961px) {
  .hero__chip--1 { transform: translate3d(0, 0, 118px) rotate(-5deg); }
  .hero__chip--2 { transform: translate3d(0, 0, 122px) rotate(4deg); }
  .hero__chip--3 { transform: translate3d(0, 0, 114px) rotate(-2deg); }
}

@media (min-width: 961px) {
  .hero__chip--1 { left: -2%; top: 4%; transform: translate3d(0,0,86px) rotate(-5deg); }
  .hero__chip--2 { right: -3%; top: 44%; transform: translate3d(0,0,90px) rotate(4deg); }
  .hero__chip--3 { left: -1%; bottom: -7%; transform: translate3d(0,0,84px) rotate(-2deg); }
}
