/* =============================================================================
   ECOSERRA — Editorial energy system
   Primary: #F5A31D (warm gold). Pair: deep slate-graphite. Neutrals: paper cream.
   ============================================================================= */

:root {
  /* Brand — gold scale built around #F5A31D */
  --brand-50:  #FFF8EA;
  --brand-100: #FDEDC7;
  --brand-200: #FBDB94;
  --brand-300: #F8C355;
  --brand-400: #F5A31D;   /* PRIMARY */
  --brand-500: #DD8B0A;
  --brand-600: #B66E04;
  --brand-700: #8B5202;
  --brand-800: #5F3700;
  --brand-900: #3A2100;

  /* Legacy aliases — keep code paths in JS/inline styles working unchanged */
  --gold-50:  var(--brand-50);
  --gold-200: var(--brand-200);
  --gold-400: var(--brand-300);
  --gold-500: var(--brand-400);
  --gold-600: var(--brand-400);
  --gold-700: var(--brand-500);
  --gold-800: var(--brand-700);
  --gold-900: var(--brand-900);

  /* Ink — deep neutral graphite, less teal, more contrast */
  --ink-900: #0E0F12;
  --ink-800: #1A1C22;
  --ink-700: #2C2F38;
  --ink-600: #4A4E5A;
  --ink-500: #6B7080;
  --ink-400: #9599A8;
  --ink-300: #C4C7D1;
  --ink-200: #E2E4EA;
  --ink-100: #F1F2F5;

  --ink: var(--ink-900);

  /* Paper — warm whites */
  --paper:     #FFFFFF;
  --paper-2:   #FBF9F4;   /* warm cream */
  --paper-3:   #F5F1E8;   /* deeper cream */
  --line:      #ECE7DA;
  --line-2:    #E0DBCC;
  --line-soft: rgba(14,15,18,.06);

  /* Compat aliases */
  --bg:        var(--paper);
  --bg-soft:   var(--paper-2);
  --bg-warm:   var(--paper-3);
  --bg-dark:   var(--ink-900);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows — softer, less halo */
  --shadow-xs: 0 1px 2px rgba(14,15,18,.04);
  --shadow-sm: 0 2px 6px rgba(14,15,18,.05), 0 1px 2px rgba(14,15,18,.04);
  --shadow-md: 0 12px 28px -10px rgba(14,15,18,.10), 0 4px 10px -4px rgba(14,15,18,.06);
  --shadow-lg: 0 32px 64px -20px rgba(14,15,18,.18), 0 12px 24px -12px rgba(14,15,18,.10);
  --shadow-brand: 0 12px 30px -8px rgba(245,163,29,.45);

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-snap: cubic-bezier(.5,0,.1,1);
}

/* =============================================================================
   RESET / BASE
   ============================================================================= */
* { box-sizing: border-box; }
*::selection { background: var(--brand-200); color: var(--ink-900); }
html, body { margin: 0; padding: 0; max-width: 100vw; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "ss01" on, "cv11" on;
  color: var(--ink-800);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
small { font-size: .78rem; }

/* =============================================================================
   TYPE SYSTEM
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  line-height: 1.04;
  text-wrap: balance;
  font-variation-settings: "opsz" 80, "SOFT" 30;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-family: 'Inter Tight', sans-serif; font-weight: 600; letter-spacing: -0.005em; }

p { color: var(--ink-600); margin: 0 0 1em; text-wrap: pretty; }
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-600); max-width: 58ch;
  line-height: 1.55;
}

/* =============================================================================
   LAYOUT PRIMITIVES
   ============================================================================= */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =============================================================================
   EYEBROW — small caps label
   ============================================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand-600);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; opacity: .9;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: 'Inter Tight', sans-serif;
  font-size: .94rem; font-weight: 500; letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--ink-900); color: var(--paper);
  box-shadow: 0 6px 16px -6px rgba(14,15,18,.4);
}
.btn-primary:hover {
  background: var(--brand-400); color: var(--ink-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-primary .arrow { background: rgba(255,255,255,.14); }
.btn-primary:hover .arrow { background: rgba(14,15,18,.16); }

.btn-ghost {
  background: transparent; color: var(--ink-900);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink-900); background: var(--ink-900); color: var(--paper); }
.btn-ghost:hover .arrow { background: rgba(255,255,255,.16); }

.btn-light { background: var(--paper); color: var(--ink-900); border-color: var(--line); }
.btn-light:hover { background: var(--brand-400); border-color: var(--brand-400); color: var(--ink-900); }

.btn-dark { background: var(--ink-900); color: var(--paper); }
.btn-dark:hover { background: var(--brand-400); color: var(--ink-900); transform: translateY(-1px); }

.btn .arrow {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--ink-100); color: currentColor;
  transition: transform .3s var(--ease), background .25s var(--ease);
}
.btn-ghost .arrow { background: var(--brand-50); color: var(--brand-700); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

/* button shimmer disabled — too noisy */
.btn::before { content: none; }

/* =============================================================================
   TOPBAR
   ============================================================================= */
.topbar {
  background: var(--ink-900); color: rgba(255,255,255,.78);
  font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; gap: 20px; flex-wrap: wrap;
}
.topbar a {
  color: rgba(255,255,255,.78);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s var(--ease);
}
.topbar a:hover { color: var(--brand-300); }
.topbar .topmeta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar .topsocial { display: flex; gap: 14px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.1); }
.topbar .topsocial a:hover { color: var(--brand-400); }
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400); display: inline-block;
  box-shadow: 0 0 0 0 rgba(245,163,29,.6);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,163,29,.6); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px rgba(245,163,29,0); transform: scale(1.1); }
}

/* =============================================================================
   HEADER / NAV
   ============================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.solid {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo-svg { height: 42px; }
.brand:hover .logo-svg { transform: none; }

.primary-nav { display: flex; gap: 2px; align-items: center; }
.primary-nav a {
  padding: 10px 16px; border-radius: 999px;
  font-size: .94rem; font-weight: 500;
  color: var(--ink-700);
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.primary-nav a:hover { color: var(--ink-900); background: var(--ink-100); }
.primary-nav a.active { background: var(--ink-900); color: var(--paper); }
.primary-nav a:not(.active)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--brand-400); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:not(.active):hover::after { transform: scaleX(1); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.hamburger {
  display: none; background: transparent; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px; cursor: pointer; color: var(--ink-900);
}
.hamburger:hover { background: var(--ink-100); }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .hamburger { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw);
  background: var(--paper); z-index: 60; padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 20px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .close {
  align-self: flex-end; border: 1px solid var(--line);
  background: transparent; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; color: var(--ink-700);
}
.mobile-drawer .close:hover { background: var(--ink-100); color: var(--ink-900); }
.mobile-drawer a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem; color: var(--ink-900); font-weight: 500;
}
.mobile-drawer a:hover { color: var(--brand-600); }
.scrim {
  position: fixed; inset: 0; background: rgba(14,15,18,.5);
  z-index: 55; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  backdrop-filter: blur(4px);
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* logo svg fill control */
.logo-svg { display: block; height: 40px; width: auto; }
.logo-svg .st0 { fill: var(--ink-900); }
.site-footer .logo-svg,
.site-footer .logo-svg .st0,
.logo-svg.logo-white,
.logo-svg.logo-white .st0 { fill: var(--paper) !important; }
/* If footer logo is rendered as <img>, swap with white CSS mask */
.site-footer .footer-brand img.logo-svg,
.site-footer img.logo-svg {
  filter: brightness(0) invert(1);
}

/* =============================================================================
   HERO — editorial split with marker grid backdrop
   ============================================================================= */
.hero {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0 clamp(72px, 9vw, 130px);
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,15,18,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,15,18,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute;
  top: -10%; right: -8%; width: 55%; height: 80%;
  background: radial-gradient(closest-side, rgba(245,163,29,.18), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 { margin-top: 24px !important; font-size: clamp(2.8rem, 6.5vw, 5rem); }
.hero h1 span.accent {
  font-style: italic; font-family: 'Fraunces', serif; font-weight: 400;
  color: var(--brand-500);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  position: relative;
  display: inline-block;
}
.hero h1 span.accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.05em; height: .14em;
  background: var(--brand-300); opacity: .5;
  border-radius: 4px;
  z-index: -1;
}
.hero .lede { margin: 28px 0 36px; font-size: clamp(1.05rem, 1.45vw, 1.2rem); color: var(--ink-600); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px; margin-top: 64px;
  padding-top: 32px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats .stat .num {
  font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 400;
  color: var(--ink-900); letter-spacing: -.03em; display: block; line-height: 1;
}
.hero-stats .stat .lbl {
  font-size: .72rem; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
  margin-top: 8px; display: block;
}

.hero-visual {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,15,18,.18));
  pointer-events: none;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Hero slider */
.hero-visual .slides { position: absolute; inset: 0; }
.hero-visual .slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease);
  pointer-events: none;
}
.hero-visual .slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero-visual .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .slide-caption {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  color: var(--ink-900);
  font-size: .78rem; font-weight: 500; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(14,15,18,.06);
  font-family: 'Inter Tight', sans-serif;
  max-width: calc(100% - 44px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-visual .slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink-900);
  border: 1px solid rgba(14,15,18,.08);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0;
  transition: opacity .25s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.hero-visual:hover .slide-nav { opacity: 1; }
.hero-visual .slide-nav:hover { background: var(--brand-400); }
.hero-visual .slide-nav.prev { left: 14px; }
.hero-visual .slide-nav.next { right: 14px; }
.hero-visual .slide-dots {
  position: absolute; left: 0; right: 0; bottom: 96px;
  display: flex; gap: 8px; justify-content: center;
  z-index: 3;
}
.hero-visual .slide-dots button {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0;
  transition: background .25s var(--ease), width .3s var(--ease);
}
.hero-visual .slide-dots button[aria-selected="true"] {
  background: var(--brand-400); width: 36px;
}
.hero-visual .slide-dots button:hover { background: rgba(255,255,255,.85); }
@media (max-width: 720px) {
  .hero-visual .slide-dots { bottom: 76px; }
  .hero-visual .slide-nav { width: 36px; height: 36px; opacity: 1; }
  .hero-visual .slide-caption { font-size: .72rem; left: 14px; top: 14px; }
}
.hero-visual .badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; gap: 14px; align-items: center;
  border: 1px solid rgba(14,15,18,.06);
  z-index: 1;
}
.hero-visual .badge .icn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-400); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .badge p { margin: 0; font-size: .82rem; color: var(--ink-500); }
.hero-visual .badge strong { display: block; font-size: .94rem; color: var(--ink-900); font-weight: 600; }
.hero-visual .tag-float {
  position: absolute; top: 22px; right: 22px;
  background: rgba(14,15,18,.88); backdrop-filter: blur(10px); color: #fff;
  border-radius: 999px; padding: 8px 14px;
  font-size: .76rem; display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: .04em; font-weight: 500;
  z-index: 1;
}
.hero-visual .tag-float .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-400); animation: dotPulse 1.8s infinite;
}

/* =============================================================================
   FEATURE CARDS — sharp & editorial
   ============================================================================= */
.feature {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  isolation: isolate;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: var(--brand-400); border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ink-200); }
.feature:hover::before { transform: scaleX(1); }
.feature .icn {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.feature:hover .icn { background: var(--ink-900); color: var(--brand-400); transform: rotate(-4deg) scale(1.04); }
.feature h3 {
  font-size: 1.3rem; margin-bottom: 10px;
  font-family: 'Fraunces', serif; font-weight: 400;
  letter-spacing: -.02em; color: var(--ink-900);
}
.feature p { font-size: .94rem; margin: 0; color: var(--ink-500); line-height: 1.6; }

.feature .num-chip,
.feature span.num-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent; color: var(--brand-500);
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 400;
  border: 1px solid var(--brand-200);
  margin-bottom: 18px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover .num-chip {
  background: var(--brand-400); color: var(--ink-900);
  border-color: var(--brand-400);
  transform: rotate(-6deg);
}

/* feature with embedded photo (homepage value props) */
.feature img {
  width: 64px !important; height: 64px !important;
  border-radius: 14px !important; object-fit: cover;
  margin-bottom: 18px !important;
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease);
}
.feature:hover img { transform: scale(1.05) rotate(-2deg); }

/* =============================================================================
   SERVICES HEADER + CARDS
   ============================================================================= */
.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 56px; flex-wrap: wrap;
}
.services-header h2 { max-width: 18ch; margin: 14px 0 0; }

.service-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  isolation: isolate;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card .thumb {
  aspect-ratio: 16/11; overflow: hidden; background: var(--paper-3);
  position: relative;
}
.service-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,15,18,0) 50%, rgba(14,15,18,.45));
  opacity: .35;
  transition: opacity .4s var(--ease);
}
.service-card:hover .thumb::after { opacity: .9; }

/* numeric badge + "read more" arrow corner */
.service-card .thumb::before {
  content: ""; position: absolute; bottom: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-400); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230E0F12' stroke-width='2' stroke-linecap='round'><path d='M7 17L17 7M9 7h8v8'/></svg>");
  background-repeat: no-repeat; background-position: center;
  transform: scale(.6) rotate(-30deg); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  z-index: 2;
}
.service-card:hover .thumb::before { transform: scale(1) rotate(0); opacity: 1; }

.service-card .thumb .num {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.96); color: var(--ink-900);
  font-family: 'Fraunces', serif;
  padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 500; letter-spacing: -.01em;
  z-index: 1;
}
.service-card .body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card h3 {
  font-size: 1.35rem; margin: 0;
  font-family: 'Fraunces', serif; font-weight: 400;
  color: var(--ink-900); letter-spacing: -.02em;
  line-height: 1.15;
}
.service-card p { margin: 0; font-size: .94rem; flex: 1; color: var(--ink-500); }
.service-card .more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin-top: 10px;
  align-self: flex-start;
}
.service-card .more::after {
  content: "→"; transition: transform .3s var(--ease);
  display: inline-block;
}
.service-card:hover .more { color: var(--brand-600); }
.service-card:hover .more::after { transform: translateX(6px); }

/* =============================================================================
   ABOUT / SPLIT SECTION
   ============================================================================= */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.split-visual { position: relative; }
.split-visual .main {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.split-visual .main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-visual:hover .main img { transform: scale(1.04); }
.split-visual .main::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.08); border-radius: inherit;
  z-index: 1; pointer-events: none;
}

/* corner accent */
.split-visual::before {
  content: ""; position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  border-top: 1px solid var(--brand-400);
  border-left: 1px solid var(--brand-400);
  z-index: 1;
}
.split-visual::after {
  content: ""; position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  border-bottom: 1px solid var(--brand-400);
  border-right: 1px solid var(--brand-400);
  z-index: 1;
}

.split-visual .accent-card {
  position: absolute; bottom: -30px; right: -28px;
  background: var(--ink-900); color: var(--paper); padding: 26px 28px;
  border-radius: var(--radius); max-width: 240px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 1px solid rgba(255,255,255,.08);
}
.split-visual .accent-card .num {
  font-family: 'Fraunces', serif; font-size: 2.8rem; font-weight: 400;
  display: block; line-height: 1; color: var(--brand-400);
  letter-spacing: -.02em;
}
.split-visual .accent-card p {
  color: rgba(255,255,255,.7); margin: 10px 0 0;
  font-size: .85rem;
}
@media (max-width: 640px) {
  .split-visual::before, .split-visual::after { display: none; }
  .split-visual .accent-card { position: static; margin-top: 24px; max-width: 100%; }
}

/* check list (used inside spec-block) */
.check-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--ink-700); font-size: .96rem;
  line-height: 1.5;
}
.check-list li::before {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-400);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E0F12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
  margin-top: 3px;
  transition: transform .3s var(--ease);
}
.check-list li:hover::before { transform: rotate(-8deg) scale(1.1); }

/* =============================================================================
   SPEC GRID — service detail pages
   ============================================================================= */
.spec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; gap: 20px; } }

.spec-block {
  padding: 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.spec-block:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.spec-block h3 {
  font-size: 1.2rem; margin: 0;
  font-family: 'Fraunces', serif; font-weight: 400;
  color: var(--ink-900); letter-spacing: -.02em;
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.spec-block h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 36px; height: 2px; background: var(--brand-400);
}

.prose { color: var(--ink-600); line-height: 1.75; }
.prose p { font-size: 1.02rem; }
.prose p + p { margin-top: 1em; }

/* =============================================================================
   PAGE HERO (inner pages)
   ============================================================================= */
.page-hero {
  background: var(--paper-2);
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 6vw, 88px);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,15,18,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,15,18,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000, transparent 70%);
  z-index: -1;
}
.page-hero::after {
  content: ""; position: absolute;
  right: -120px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,163,29,.18), transparent 70%);
  pointer-events: none; z-index: -1;
}
.page-hero .crumbs {
  display: flex; gap: 10px; font-size: .82rem; color: var(--ink-400);
  margin-bottom: 20px; align-items: center;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
  position: relative; z-index: 1;
}
.page-hero .crumbs a { color: var(--ink-500); transition: color .2s var(--ease); }
.page-hero .crumbs a:hover { color: var(--brand-600); }
.page-hero .crumbs span { color: var(--ink-300); }
.page-hero .eyebrow { margin-bottom: 18px; position: relative; z-index: 1; }
.page-hero h1 {
  max-width: 22ch; margin: 0 0 16px; position: relative; z-index: 1;
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.page-hero p {
  max-width: 60ch; font-size: 1.1rem; position: relative; z-index: 1;
  color: var(--ink-600);
}

/* =============================================================================
   CTA BLOCK
   ============================================================================= */
.cta-block {
  background: var(--ink-900); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px;
  align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--ink-800);
  isolation: isolate;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 90% 0%, rgba(245,163,29,.28), transparent 50%),
    radial-gradient(ellipse at 10% 100%, rgba(245,163,29,.12), transparent 50%);
  z-index: -1;
}
.cta-block::after {
  content: ""; position: absolute;
  right: -120px; bottom: -120px; width: 280px; height: 280px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
  pointer-events: none;
}
@media (max-width: 800px) { .cta-block { grid-template-columns: 1fr; } }

.cta-block h2 { color: var(--paper); margin: 8px 0 0; max-width: 20ch; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-block p, .cta-block .lede { color: rgba(255,255,255,.72); }
.cta-block .actions {
  display: flex; gap: 12px; justify-content: flex-end;
  flex-wrap: wrap; position: relative; z-index: 1;
}
@media (max-width: 800px) { .cta-block .actions { justify-content: flex-start; } }

.cta-block .btn-primary {
  background: var(--brand-400); color: var(--ink-900);
  box-shadow: var(--shadow-brand);
}
.cta-block .btn-primary:hover {
  background: var(--paper); color: var(--ink-900);
  box-shadow: 0 14px 36px -10px rgba(255,255,255,.3);
}
.cta-block .btn-ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(255,255,255,.2);
}
.cta-block .btn-ghost:hover {
  background: var(--paper); color: var(--ink-900); border-color: var(--paper);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: var(--ink-900); color: rgba(255,255,255,.6);
  padding: 96px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-400), transparent);
}
/* large wordmark wash at the bottom */
.site-footer::after {
  content: "ECOSERRA";
  position: absolute; left: 50%; bottom: -.18em; transform: translateX(-50%);
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(8rem, 22vw, 22rem);
  letter-spacing: -.04em; line-height: .8;
  color: rgba(255,255,255,.025);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}
.site-footer > .container { position: relative; z-index: 1; }

.site-footer h5 {
  color: var(--paper); font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 22px;
}
.site-footer a {
  color: rgba(255,255,255,.6); display: block;
  padding: 5px 0; font-size: .94rem;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.site-footer a:hover { color: var(--brand-400); padding-left: 4px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo-svg { height: 52px; margin-bottom: 22px; }
.footer-brand p { color: rgba(255,255,255,.55); max-width: 32ch; line-height: 1.6; }

.footer-bottom {
  margin-top: 72px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { display: inline !important; padding: 0 !important; color: rgba(255,255,255,.55); }
.footer-bottom a:hover { padding-left: 0 !important; color: var(--brand-400); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; padding: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  transition: all .25s var(--ease);
}
.footer-social a:hover {
  background: var(--brand-400); border-color: var(--brand-400);
  color: var(--ink-900); padding-left: 0 !important;
  transform: translateY(-2px);
}

.newsletter {
  display: flex; gap: 8px;
  background: rgba(255,255,255,.04); padding: 5px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  transition: border-color .25s var(--ease);
}
.newsletter:focus-within { border-color: var(--brand-400); }
.newsletter input {
  background: transparent; border: none; outline: none;
  color: var(--paper); padding: 11px 16px; flex: 1; font-size: .9rem;
  font-family: inherit;
}
.newsletter input::placeholder { color: rgba(255,255,255,.36); }
.newsletter button {
  background: var(--brand-400); color: var(--ink-900); border: none;
  border-radius: 999px; padding: 10px 18px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  font-size: .88rem;
  transition: background .25s var(--ease);
}
.newsletter button:hover { background: var(--paper); }

/* =============================================================================
   CONTACT PAGE
   ============================================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: stretch;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.contact-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-card .icn {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.contact-card:hover .icn { background: var(--ink-900); color: var(--brand-400); }
.contact-card h4 { margin: 0 0 6px; font-family: 'Inter Tight', sans-serif; font-weight: 600; color: var(--ink-900); }
.contact-card p, .contact-card a { margin: 0; font-size: .95rem; color: var(--ink-600); }
.contact-card a:hover { color: var(--brand-700); }

/* contact-list (legacy used on contact.html) — turn into clean info stack */
.contact-list h4 {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: 'Inter Tight', sans-serif; font-weight: 600;
  color: var(--ink-500); margin: 0 0 16px;
}
.contact-list p { color: var(--ink-700); margin: 0 0 18px; }
.contact-list p strong { display: block; color: var(--ink-900); font-weight: 600; margin-bottom: 4px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.contact-list a { color: var(--ink-900); font-weight: 500; transition: color .2s var(--ease); }
.contact-list a:hover { color: var(--brand-600); }

.contact-form {
  background: var(--paper); padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid; gap: 18px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .contact-form .row { grid-template-columns: 1fr; } }

.contact-form label,
.modal-form label {
  font-size: .76rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 8px; display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select,
.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%; padding: 14px 16px;
  font-family: inherit; font-size: .98rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink-900);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: var(--ink-400); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  outline: none; border-color: var(--brand-400); background: var(--paper);
  box-shadow: 0 0 0 4px rgba(245,163,29,.18);
}
.contact-form textarea, .modal-form textarea { min-height: 140px; resize: vertical; }

/* =============================================================================
   VALUES (legacy)
   ============================================================================= */
.value-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .value-list { grid-template-columns: 1fr; } }
.value { background: var(--paper); padding: 36px 32px; transition: background .3s var(--ease); }
.value:hover { background: var(--paper-2); }
.value h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.2rem; margin-bottom: 10px; }
.value .icn { color: var(--brand-600); margin-bottom: 14px; }
.value p { margin: 0; font-size: .94rem; }

/* =============================================================================
   IMPACT STRIP / MARQUEE / PROCESS / QUOTE — legacy, preserved
   ============================================================================= */
.impact {
  background: var(--ink-900); color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(245,163,29,.22), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245,163,29,.16), transparent 50%);
  background-size: cover; background-position: center;
  position: relative;
}
.impact h2 { color: var(--paper); }
.impact .lede { color: rgba(255,255,255,.7); }
.impact .eyebrow { color: var(--brand-300); }
.impact-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
@media (max-width: 960px) { .impact-stats { grid-template-columns: repeat(2, 1fr); } }
.impact-stat {
  padding: 32px 28px; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.impact-stat .num { font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; color: var(--paper); letter-spacing: -.03em; }
.impact-stat .num sup { font-size: .45em; color: var(--brand-300); }
.impact-stat .lbl { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 8px; letter-spacing: .04em; }

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; overflow: hidden; background: var(--paper-3);
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper-3), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper-3), transparent); }
.marquee-track {
  display: flex; gap: 56px; align-items: center;
  animation: scroll 40s linear infinite; white-space: nowrap;
}
.marquee-track span { color: var(--ink-700); font-size: 1rem; font-family: 'Fraunces', serif; letter-spacing: -.01em; }
.marquee-track .sep { color: var(--brand-400); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative; counter-reset: step;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.step {
  padding: 32px 28px; border-radius: var(--radius); background: var(--paper-2);
  counter-increment: step; position: relative; border: 1px solid var(--line-2);
}
.step::before {
  content: "0" counter(step); font-family: 'Fraunces', serif;
  font-size: 1.1rem; color: var(--brand-600); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; font-family: 'Fraunces', serif; font-weight: 400; margin-bottom: 8px; }
.step p { margin: 0; font-size: .92rem; }

.quote-card {
  background: var(--ink-900); color: var(--paper);
  padding: clamp(40px, 5vw, 72px); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 90% 10%, rgba(245,163,29,.28), transparent 40%);
}
.quote-card::before {
  content: "\201C"; position: absolute; top: -20px; right: 40px;
  font-family: 'Fraunces', serif;
  font-size: 12rem; color: rgba(245,163,29,.16); line-height: 1;
}
.quote-card blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 400;
  line-height: 1.35; margin: 0; max-width: 40ch;
  letter-spacing: -.015em; color: var(--paper);
}
.quote-card cite { display: block; margin-top: 32px; font-style: normal; font-size: .9rem; color: rgba(255,255,255,.7); }
.quote-card cite strong { color: var(--brand-300); display: block; margin-bottom: 4px; }

/* =============================================================================
   MISC
   ============================================================================= */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.tag {
  display: inline-block; padding: 4px 12px;
  font-size: .76rem; background: var(--brand-50); color: var(--brand-700);
  border-radius: 999px; font-weight: 500; letter-spacing: .04em;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }
.reveal-stagger.in > *:nth-child(n+7) { transition-delay: .65s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* Hero entrance */
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero-cta,
.hero-stats,
.hero-visual {
  opacity: 0; transform: translateY(14px);
  animation: heroRise .9s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .lede { animation-delay: .28s; }
.hero-cta { animation-delay: .38s; }
.hero-stats { animation-delay: .48s; }
.hero-visual { animation-delay: .2s; animation-duration: 1.1s; transform: translateY(20px) scale(.985); }
.hero-visual .badge { opacity: 0; transform: translateY(10px); animation: heroRise .7s var(--ease) forwards; animation-delay: .9s; }
.hero-visual .tag-float { opacity: 0; transform: translateY(-8px); animation: heroRise .6s var(--ease) forwards; animation-delay: 1.05s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }

body { animation: pageIn .45s var(--ease); }
body.leaving { opacity: 0; transition: opacity .28s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  width: 0%; z-index: 100; pointer-events: none;
  transition: width .08s linear;
}

/* =============================================================================
   QUOTE MODAL
   ============================================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; animation: modalFadeIn .25s var(--ease); }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-scrim {
  position: absolute; inset: 0;
  background: rgba(14,15,18,.6);
  backdrop-filter: blur(8px);
}
.modal-shell {
  position: relative; z-index: 1;
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.5);
  animation: modalPop .35s var(--ease);
  display: flex; flex-direction: column;
}
@keyframes modalPop { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink-900);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--brand-400); transform: rotate(90deg); }
.modal-grid { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 0; overflow: hidden; }
.modal-side {
  background: var(--ink-900); color: var(--paper);
  padding: 44px 36px;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(245,163,29,.22), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(245,163,29,.12), transparent 60%);
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
.modal-side .eyebrow { color: var(--brand-300) !important; }
.modal-perks {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 12px;
}
.modal-perks li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .94rem; color: rgba(255,255,255,.85);
}
.modal-perks li span {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-400); color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; margin-top: 2px;
}
.modal-contact {
  margin-top: auto; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid; gap: 10px;
}
.modal-contact a { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); font-size: .9rem; }
.modal-contact a:hover { color: var(--brand-400); }
.modal-form {
  padding: 44px 40px; overflow-y: auto;
  background: var(--paper);
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: grid; gap: 16px; align-content: start;
}
.modal-form .form-head { margin-bottom: 4px; }
.modal-form .form-head h3 {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.4rem;
  color: var(--ink-900); margin: 0;
}
.form-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 12px; flex-wrap: wrap;
}
.form-note { margin: 0; font-size: .8rem; color: var(--ink-400); max-width: 30ch; }
.form-status { font-size: .88rem; min-height: 1.2em; margin-top: 4px; }
.form-status.sending { color: var(--ink-500); }
.form-status.ok { color: var(--brand-700); }
.form-status.err { color: #c0392b; }
.mailto-fallback { color: var(--brand-700); font-weight: 500; }

.form-done {
  padding: 48px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.form-done .check {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand-400); color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; margin-bottom: 6px;
}
.form-done h3 { margin: 0; font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.5rem; }
.form-done p { margin: 0; max-width: 42ch; }

@media (max-width: 860px) {
  .modal-shell { max-height: calc(100vh - 32px); }
  .modal-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-side { padding: 30px 26px; }
  .modal-side h2 { font-size: 1.6rem; }
  .modal-form { padding: 30px 26px; }
}
@media (max-width: 480px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-shell { border-radius: 0; max-height: 100vh; height: 100vh; width: 100vw; }
  .modal-close { top: 10px; right: 10px; }
  .modal-side { padding: 64px 22px 26px; }
  .modal-perks li { font-size: .88rem; }
  .modal-form { padding: 26px 22px; }
  .form-footer .btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   RESPONSIVE POLISH
   ============================================================================= */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .lede { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .container { padding: 0 22px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
  h3 { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 36px 0; }
}

@media (max-width: 860px) {
  .topbar .topsocial { display: none; }
}
@media (max-width: 720px) {
  .topbar { font-size: .76rem; }
  .topbar-inner { justify-content: center; }
  .topbar .topmeta:first-child { display: none; }
  .topbar .topmeta { gap: 16px; }
}
@media (max-width: 480px) {
  .topbar .topmeta a:not([href^="tel"]) { display: none; }
}

@media (max-width: 960px) {
  .nav-row { padding: 12px 0; gap: 12px; }
  .brand .logo-svg { height: 36px; }
}
@media (max-width: 480px) {
  .brand .logo-svg { height: 32px; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: .85rem; }
  .nav-cta .btn-primary .arrow { display: none; }
  .hamburger { padding: 8px; }
}

@media (max-width: 480px) {
  .btn { padding: 13px 18px; font-size: .92rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .cta-block .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-block .actions .btn { justify-content: center; width: 100%; }
}

@media (max-width: 960px) {
  .hero { padding: 56px 0 80px; }
  .hero-visual { aspect-ratio: 4/3; max-height: 540px; }
  .hero-stats { gap: 32px; margin-top: 44px; padding-top: 24px; }
}
@media (max-width: 720px) {
  .hero-visual { aspect-ratio: 5/4; border-radius: 18px; }
  .hero-visual .badge { left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; gap: 10px; }
  .hero-visual .badge .icn { width: 36px; height: 36px; }
  .hero-visual .badge p { font-size: .78rem; }
  .hero-visual .tag-float { top: 14px; right: 14px; padding: 6px 12px; font-size: .72rem; }
  .hero-stats { gap: 24px 32px; }
  .hero-stats .stat .num { font-size: 1.6rem; }
  .hero-stats .stat .lbl { font-size: .68rem; }
}

@media (max-width: 720px) {
  .marquee { padding: 18px 0; }
  .marquee-track { gap: 36px; }
  .marquee-track span { font-size: .9rem; }
}

@media (max-width: 720px) {
  .services-header { margin-bottom: 36px; }
  .services-header h2 { max-width: 100%; }
  .service-card .body { padding: 22px; }
  .service-card h3 { font-size: 1.2rem; }
  .service-card .thumb::before { width: 38px; height: 38px; bottom: 10px; right: 10px; }
}

@media (max-width: 960px) {
  .split-visual .main { aspect-ratio: 4/3; }
  .split-visual .accent-card { right: 0; bottom: -22px; padding: 22px 24px; max-width: 220px; }
}
@media (max-width: 480px) {
  .split-visual .main { aspect-ratio: 5/4; border-radius: 16px; }
  .split-visual .accent-card { padding: 20px 22px; }
  .split-visual .accent-card .num { font-size: 2.2rem; }
}

@media (max-width: 720px) {
  .impact-stats { gap: 14px; margin-top: 36px; }
  .impact-stat { padding: 22px 20px; }
  .impact-stat .num { font-size: 2rem; }
  .impact-stat .lbl { font-size: .76rem; }
}

@media (max-width: 480px) {
  .step, .feature, .spec-block { padding: 24px 22px; }
}

@media (max-width: 720px) {
  .quote-card { padding: 36px 26px; border-radius: 18px; }
  .quote-card::before { font-size: 8rem; top: -10px; right: 20px; }
  .quote-card blockquote { font-size: 1.18rem; }
}

@media (max-width: 720px) {
  .cta-block { padding: 36px 28px; border-radius: 18px; text-align: left; }
  .cta-block h2 { max-width: 100%; }
}

@media (max-width: 720px) {
  .site-footer { padding: 64px 0 28px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { margin-top: 48px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .newsletter { flex-wrap: wrap; }
  .newsletter input { min-width: 0; flex: 1 1 60%; }
}
@media (max-width: 480px) {
  .footer-brand .logo-svg { height: 44px; }
}

@media (max-width: 720px) {
  .page-hero { padding: 48px 0 36px; }
  .page-hero::after { width: 280px; height: 280px; right: -140px; opacity: .7; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .page-hero p { font-size: 1rem; }
}

@media (max-width: 720px) {
  .contact-card { padding: 22px; gap: 14px; }
  .contact-card .icn { width: 42px; height: 42px; }
  .contact-form { padding: 26px 22px; border-radius: 18px; }
  .contact-form input, .contact-form textarea, .contact-form select,
  .modal-form input, .modal-form textarea, .modal-form select { padding: 13px 14px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .mobile-drawer { width: min(92vw, 380px); padding: 22px; }
  .mobile-drawer a { font-size: 1rem; padding: 14px 0; }
}

@media (max-width: 720px) {
  .section-tight iframe { aspect-ratio: 4/3 !important; }
  .section-tight > .container > div[style*="aspect-ratio"] { aspect-ratio: 4/3 !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .marquee-track { animation: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero-cta, .hero-stats, .hero-visual,
  .hero-visual .badge, .hero-visual .tag-float {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
