/* ============================================================
   CAPEG — Contabilidade e Consultoria
   Dark editorial · verde garrafa + laranja âmbar
   ============================================================ */

:root {
  --c-bg-deep: #07211a;
  --c-bg: #0c2b22;
  --c-green: #133d32;
  --c-green-light: #1b5044;
  --c-green-line: rgba(255, 255, 255, 0.1);
  --c-orange: #eb8b47;
  --c-orange-light: #f3a877;
  --c-cream: #f3eee4;
  --c-cream-dim: #e9e2d4;
  --c-ink: #102620;
  --c-ink-soft: rgba(16, 38, 32, 0.66);
  --c-white: #ffffff;
  --c-muted: rgba(255, 255, 255, 0.62);
  --c-faint: rgba(255, 255, 255, 0.38);

  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-script: "Ms Madi", cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(5rem, 12vw, 10rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-white);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--c-orange); color: var(--c-bg-deep); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--c-orange);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  display: inline-block;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.eyebrow-row::after {
  content: "";
  height: 1px;
  width: clamp(3rem, 8vw, 7rem);
  background: var(--c-orange);
  opacity: 0.7;
}

.section-title {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.section-title em {
  font-style: normal;
  color: var(--c-orange);
}

.section-lead {
  max-width: 36rem;
  color: var(--c-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-top: 1.25rem;
}

[data-theme="cream"] {
  background: var(--c-cream);
  color: var(--c-ink);
}
[data-theme="cream"] .section-lead { color: var(--c-ink-soft); }
[data-theme="cream"] ::selection { background: var(--c-green); color: var(--c-cream); }

/* split-text masks */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- Noise overlay ---------- */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: noise-shift 0.6s steps(3) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1.5%, 1%); }
  66% { transform: translate(1%, -1.5%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--c-orange);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(235, 139, 71, 0.55);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursor-ring .cursor-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-bg-deep);
  opacity: 0;
  transition: opacity 0.25s;
}
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  background: rgba(235, 139, 71, 0.18);
  border-color: var(--c-orange);
}
body.cursor-view .cursor-ring {
  width: 84px; height: 84px;
  background: var(--c-orange);
  border-color: var(--c-orange);
}
body.cursor-view .cursor-ring .cursor-label { opacity: 1; }
body.cursor-view .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--c-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-logo {
  width: clamp(180px, 30vw, 300px);
  color: var(--c-white);
  margin-inline: auto;
  overflow: hidden;
}
.preloader-logo svg { width: 100%; height: auto; transform: translateY(110%); }
.preloader-count {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--c-orange);
  font-variant-numeric: tabular-nums;
}
.preloader-bar {
  margin: 1rem auto 0;
  width: clamp(140px, 22vw, 220px);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-orange);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}
.nav.is-hidden { transform: translateY(-100%); }
body.menu-open .nav { z-index: 1102; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-solid {
  background: rgba(7, 33, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.nav-logo {
  width: clamp(110px, 12vw, 138px);
  color: var(--c-orange);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--c-orange); }
.nav-logo svg { width: 100%; height: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.4rem);
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-muted);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.6rem 0.2rem;
  z-index: 1102;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--c-white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--c-bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s 0.7s;
}
body.menu-open .mobile-menu {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu-link {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(28px);
  transition: color 0.3s;
}
.mobile-menu-link:hover { color: var(--c-orange); }
.mobile-menu-link sup {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-orange);
}
.mobile-menu-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--c-muted);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu-footer a:hover { color: var(--c-orange); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s;
  white-space: nowrap;
}
.btn .btn-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-expo);
}
.btn:hover .btn-fill { transform: scaleY(1); transform-origin: top; }
.btn .btn-arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-primary { background: var(--c-orange); color: var(--c-bg-deep); }
.btn-primary .btn-fill { background: var(--c-white); }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.32); color: var(--c-white); }
.btn-ghost .btn-fill { background: var(--c-orange); }
.btn-ghost:hover { color: var(--c-bg-deep); border-color: var(--c-orange); }

.btn-dark { background: var(--c-green); color: var(--c-white); }
.btn-dark .btn-fill { background: var(--c-orange); }
.btn-dark:hover { color: var(--c-bg-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7rem;
  overflow: hidden;
  background:
    radial-gradient(60rem 38rem at 82% -10%, rgba(27, 80, 68, 0.55), transparent 60%),
    radial-gradient(46rem 30rem at -12% 110%, rgba(235, 139, 71, 0.12), transparent 62%),
    var(--c-bg-deep);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
.hero-orb--green {
  width: 44rem; height: 44rem;
  top: -16rem; right: -10rem;
  background: radial-gradient(circle, rgba(33, 99, 83, 0.5), transparent 65%);
}
.hero-orb--orange {
  width: 30rem; height: 30rem;
  bottom: -12rem; left: -8rem;
  background: radial-gradient(circle, rgba(235, 139, 71, 0.16), transparent 65%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-evenly;
  opacity: 0.5;
}
.hero-grid-lines i { width: 1px; background: rgba(255, 255, 255, 0.045); }

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.hero-eyebrow .script { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.hero-title {
  font-size: clamp(2.9rem, 8.6vw, 7.6rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.045em;
  max-width: 18ch;
}
.hero-title em { font-style: normal; color: var(--c-orange); }
.hero-sub {
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  max-width: 34rem;
  color: var(--c-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}
.hero-actions {
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  border-top: 1px solid var(--c-green-line);
}
.hero-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
  font-size: 0.85rem;
  color: var(--c-faint);
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}
.hero-scroll svg { animation: scroll-bob 2s var(--ease-out) infinite; }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--c-green-line);
  background: var(--c-bg-deep);
  padding-block: 1.1rem;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-faint);
  white-space: nowrap;
}
.marquee-item i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-orange);
  flex: none;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); position: relative; }

/* About / manifesto */
.about { background: var(--c-bg); }
.manifesto {
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.manifesto .w { opacity: 0.16; transition: none; }
.manifesto .w.script-w {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--c-orange);
  font-size: 1.18em;
}
.about-grid {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  justify-self: 20%;
  margin-right: auto;
}
.section-title--sm {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
}
.about-media img {
  width: 100%; height: 118%;
  object-fit: cover;
  object-position: 30% center;
  will-change: transform;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(7, 33, 26, 0.55));
}
.about-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  background: rgba(7, 33, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.about-badge .script { font-size: 1.5rem; }
.about-badge small { color: var(--c-muted); font-size: 0.8rem; max-width: 13rem; }

.about-body p {
  color: var(--c-muted);
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  max-width: 33rem;
}
.about-body p + p { margin-top: 1.2rem; }
.about-pillars { margin-top: 2.4rem; border-top: 1px solid var(--c-green-line); }
.pillar {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--c-green-line);
}
.pillar-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-orange);
  letter-spacing: 0.1em;
  flex: none;
}
.pillar h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.pillar p { font-size: 0.92rem; color: var(--c-faint); margin-top: 0.25rem; max-width: 26rem; }

/* ---------- About stats / case numbers ---------- */
.about-stats {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--c-green-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-orange);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.9rem;
  font-size: clamp(0.86rem, 1.1vw, 0.96rem);
  color: var(--c-muted);
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.45;
}

/* ---------- Services ---------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.services-list { border-top: 1px solid rgba(16, 38, 32, 0.16); }
.service-row {
  position: relative;
  border-bottom: 1px solid rgba(16, 38, 32, 0.16);
  overflow: hidden;
}
.service-row-inner {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3.4vw, 2.6rem);
  position: relative;
  z-index: 2;
  transition: transform 0.45s var(--ease-out);
}
.service-num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-ink-soft);
  transition: color 0.4s;
}
.service-name {
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 0.4s;
}
.service-desc {
  grid-column: 2;
  max-width: 38rem;
  color: var(--c-ink-soft);
  font-size: 0.97rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-expo), opacity 0.45s, margin-top 0.55s var(--ease-expo), color 0.4s;
}
.service-arrow {
  width: 3.2rem; height: 3.2rem;
  border: 1px solid rgba(16, 38, 32, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out), color 0.4s;
  color: var(--c-ink);
  flex: none;
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-expo);
  z-index: 1;
}
@media (hover: hover) {
  .service-row:hover::before { transform: scaleY(1); transform-origin: bottom; }
  .service-row:hover .service-name { color: var(--c-white); }
  .service-row:hover .service-num { color: var(--c-orange); }
  .service-row:hover .service-desc { max-height: 9rem; opacity: 1; margin-top: 0.7rem; color: rgba(255, 255, 255, 0.72); }
  .service-row:hover .service-arrow {
    background: var(--c-orange);
    border-color: var(--c-orange);
    color: var(--c-bg-deep);
    transform: rotate(-45deg);
  }
  .service-row:hover .service-row-inner { transform: translateX(0.6rem); }
}
@media (hover: none) {
  .service-desc { max-height: none; opacity: 1; margin-top: 0.7rem; }
  .service-arrow { display: none; }
}

/* ---------- Team ---------- */
.team { background: var(--c-green); }
.team-grid {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  max-width: 46rem;
}
.team-card { position: relative; }
.team-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 3.8;
  background: var(--c-bg-deep);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(28%);
  transition: transform 0.8s var(--ease-out), filter 0.6s;
  will-change: transform;
}
.team-card:hover .team-photo img { transform: scale(1.06); filter: grayscale(0%); }
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 33, 26, 0.78) 0%, transparent 45%);
}
.team-overlay {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  z-index: 2;
}
.team-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.team-role {
  font-size: 0.84rem;
  color: var(--c-orange);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.team-bio {
  margin-top: 1rem;
  font-size: 0.93rem;
  color: var(--c-muted);
  max-width: 24rem;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--c-bg-deep); overflow: hidden; }
.testimonials-quote-mark {
  font-family: var(--font-script);
  font-size: clamp(6rem, 13vw, 11rem);
  color: var(--c-orange);
  line-height: 0.4;
  display: block;
  margin-bottom: 2rem;
  user-select: none;
}
.testimonial-stage { position: relative; min-height: clamp(16rem, 30vw, 19rem); }
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.testimonial.is-active { opacity: 1; visibility: visible; }
.testimonial-text {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.testimonial-meta {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-stars { display: flex; gap: 0.25rem; color: var(--c-orange); }
.testimonial-author { color: var(--c-muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.1rem; }
.testimonial-author strong { color: var(--c-white); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.testimonial-author small { color: var(--c-muted); font-size: 0.85rem; }
.testimonial-nav {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.testimonial-dots { display: flex; gap: 0.6rem; }
.testimonial-dot {
  width: 2.6rem; height: 2px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
.testimonial-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left;
}
.testimonial-dot.is-active::after {
  transform: scaleX(1);
  transition: transform 6s linear;
}

/* ---------- Blog ---------- */
.blog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-white);
  box-shadow: 0 1px 0 rgba(16, 38, 32, 0.08);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(16, 38, 32, 0.35);
}
.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-green);
}
.blog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.blog-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-orange);
}
.blog-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-green);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.blog-card-link svg { transition: transform 0.35s var(--ease-out); }
.blog-card:hover .blog-card-link svg { transform: translateX(4px); }

.blog-skeleton {
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(16,38,32,0.06) 30%, rgba(16,38,32,0.12) 50%, rgba(16,38,32,0.06) 70%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  aspect-ratio: 16 / 14;
}
@keyframes skeleton { to { background-position: -200% 0; } }

/* ---------- Contact ---------- */
.contact { background: var(--c-bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact-info-list { margin-top: 2.4rem; display: flex; flex-direction: column; }
.contact-info-item {
  padding-block: 1.3rem;
  border-top: 1px solid var(--c-green-line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.contact-info-item:last-child { border-bottom: 1px solid var(--c-green-line); }
.contact-info-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-orange);
}
.contact-info-value { font-size: 1.08rem; font-weight: 500; color: var(--c-white); line-height: 1.5; }
.contact-info-value a { transition: color 0.3s; }
.contact-info-value a:hover { color: var(--c-orange); }
.contact-info-value small { display: block; color: var(--c-muted); font-size: 0.9rem; font-weight: 400; }

.contact-form {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--c-white);
  background: rgba(7, 33, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
  width: 100%;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { color: var(--c-ink); background: var(--c-white); }
.form-field textarea { resize: vertical; min-height: 7.5rem; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--c-orange);
  background: rgba(7, 33, 26, 0.8);
}
.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.form-status { font-size: 0.92rem; }
.form-status.is-ok { color: #8fd6ad; }
.form-status.is-error { color: #f1a08a; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-green-line);
  overflow: hidden;
}
.footer-cta {
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: left;
}
.footer-cta .script { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.footer-cta-title {
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-top: 0.6rem;
  display: inline-block;
  position: relative;
}
.footer-cta-title .cta-line {
  display: block;
  overflow: hidden;
}
.footer-cta-title a {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  transition: color 0.4s;
}
.footer-cta-title a:hover { color: var(--c-orange); }
.footer-cta-title .cta-circle {
  width: clamp(3.6rem, 8vw, 6.4rem);
  height: clamp(3.6rem, 8vw, 6.4rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
}
.footer-cta-title a:hover .cta-circle {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-bg-deep);
  transform: rotate(-45deg);
}
.footer-main {
  border-top: 1px solid var(--c-green-line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.footer-brand-logo { display: block; width: 170px; color: var(--c-white); }
.footer-brand-logo svg { width: 100%; height: auto; }
.footer-brand p { margin-top: 1rem; color: var(--c-faint); font-size: 0.9rem; max-width: 20rem; }
.footer-col-title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a, .footer-col li { color: var(--c-muted); font-size: 0.94rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--c-white); }
.footer-bottom {
  border-top: 1px solid var(--c-green-line);
  padding-block: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--c-faint);
}
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--c-orange); }
.footer-legal { display: flex; gap: 1.4rem; }

/* ---------- Subpage hero ---------- */
.page-hero {
  padding-top: clamp(8rem, 18vh, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(50rem 30rem at 85% -20%, rgba(27, 80, 68, 0.5), transparent 60%),
    var(--c-bg-deep);
}
.page-hero .section-title { max-width: 20ch; }

/* ---------- Blog listing page ---------- */
.blog-page { background: var(--c-cream); color: var(--c-ink); }
.blog-page .blog-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Post page ---------- */
.post-hero {
  padding-top: clamp(8rem, 16vh, 10rem);
  background: var(--c-bg-deep);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.post-hero .blog-card-date { font-size: 0.85rem; }
.post-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 24ch;
  margin-top: 1rem;
}
.post-cover {
  border-radius: 20px;
  overflow: hidden;
  margin-top: clamp(-2rem, -4vw, -3rem);
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 8;
  background: var(--c-green);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body-section { background: var(--c-cream); color: var(--c-ink); padding-block: clamp(3rem, 7vw, 5.5rem); }
.post-cover-wrap { background: linear-gradient(to bottom, var(--c-bg-deep) 50%, var(--c-cream) 50%); }

.prose {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(16, 38, 32, 0.85);
}
.prose h2, .prose h3, .prose h4 {
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.2rem 0 0.9rem;
}
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--c-ink); }
.prose a { color: var(--c-orange); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin-block: 1.5rem; }
.prose blockquote {
  border-left: 3px solid var(--c-orange);
  padding-left: 1.2rem;
  font-style: italic;
  margin-block: 1.5rem;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-muted);
  transition: color 0.3s;
  margin-bottom: 1.5rem;
}
.post-back:hover { color: var(--c-orange); }

/* ---------- Legal pages ---------- */
.legal-body { background: var(--c-cream); color: var(--c-ink); padding-block: clamp(3rem, 7vw, 5rem); }
.legal-body .prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }

/* ---------- Reveal helpers (JS sets initial state) ---------- */
[data-reveal], [data-img-reveal] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 34rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .blog-grid, .blog-page .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 26rem; }
  .service-row-inner { grid-template-columns: 2.6rem 1fr auto; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.5rem; }
}
@media (max-width: 600px) {
  .blog-grid, .blog-page .blog-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .services-head, .blog-head { flex-direction: column; align-items: flex-start; }
  .hero-foot-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .noise { display: none; }
}
