/* ═══════════════════════════════════════════════════
   DREST — Nordic Editorial Precision  v2.1 (mobile-fixed)
   Fonts: Fraunces (display) + Outfit (body)
   Palette: Warm Cream · Forest Green · Charcoal
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100;0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,100;1,9..144,400;1,9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --cream:        #f5f0e8;
  --cream-d:      #ede7da;
  --white:        #ffffff;
  --forest:       #0e2a1a;
  --forest-m:     #163d27;
  --forest-l:     #1e5236;
  --green:        #2a7a4f;
  --lime:         #8bcf6e;
  --charcoal:     #1c1c1c;
  --ink:          #2d2d2d;
  --muted:        #7a7a72;
  --border:       #ddd8ce;
  --border-d:     #c8c2b8;
  --forest-border:rgba(255,255,255,0.12);
  --r:            10px;
  --r-lg:         18px;
  --trans:        0.32s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --shadow:       0 8px 40px rgba(14,42,26,0.12);
  --shadow-sm:    0 2px 16px rgba(14,42,26,0.08);
}

/* ── Overflow safety ──────────────────────────── */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Every direct child of body must not exceed viewport */
body > * {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--trans); }
ul { list-style: none; padding: 0; }
::selection { background: var(--forest); color: var(--cream); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border-d); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ── Typography ─────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--charcoal); }
h1  { font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 300; }
h2  { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h3  { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4  { font-size: 1.1rem; font-weight: 500; }
p   { font-size: 1rem; color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}
.eyebrow-inv { color: var(--lime); }
.eyebrow-inv::before { background: var(--lime); }

/* ── Buttons ────────────────────────────────────── */
.btn-forest {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--forest); color: var(--cream);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.9rem 2rem; border: none; border-radius: 4px; cursor: pointer;
  transition: var(--trans);
}
.btn-forest:hover { background: var(--forest-l); color: var(--cream); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,42,26,0.25); }

.btn-outline-forest {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: transparent; color: var(--forest);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.88rem 1.8rem; border: 2px solid var(--forest); border-radius: 4px; cursor: pointer;
  transition: var(--trans);
}
.btn-outline-forest:hover { background: var(--forest); color: var(--cream); transform: translateY(-2px); }

.btn-cream {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--cream); color: var(--forest);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.9rem 2rem; border: none; border-radius: 4px; cursor: pointer;
  transition: var(--trans);
}
.btn-cream:hover { background: var(--white); color: var(--forest); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

.btn-outline-cream {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: transparent; color: var(--cream);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.88rem 1.8rem; border: 1.5px solid rgba(245,240,232,0.5); border-radius: 4px; cursor: pointer;
  transition: var(--trans);
}
.btn-outline-cream:hover { background: rgba(245,240,232,0.1); border-color: var(--cream); color: var(--cream); }

/* ════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════ */
.d-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--trans);
}
.d-nav.scrolled {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}
.d-nav.dark-nav { background: transparent; }
.d-nav.dark-nav.scrolled { background: var(--forest); border-bottom: 1px solid var(--forest-border); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo .dot { color: var(--green); }
.d-nav.dark-nav .nav-logo,
.d-nav.dark-nav.scrolled .nav-logo { color: var(--cream); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-menu a {
  font-size: 0.83rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: var(--green); transition: width var(--trans);
}
.nav-menu a:hover { color: var(--charcoal); }
.nav-menu a:hover::after { width: 100%; }
.d-nav.dark-nav .nav-menu a,
.d-nav.dark-nav.scrolled .nav-menu a { color: rgba(245,240,232,0.65); }
.d-nav.dark-nav .nav-menu a:hover,
.d-nav.dark-nav.scrolled .nav-menu a:hover { color: var(--cream); }
.d-nav.dark-nav .nav-menu a::after,
.d-nav.dark-nav.scrolled .nav-menu a::after { background: var(--lime); }

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin: -8px;
  z-index: 1002;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px; transition: var(--trans);
}
.d-nav.dark-nav .nav-burger span,
.d-nav.dark-nav.scrolled .nav-burger span { background: var(--cream); }
/* burger open state */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile fullscreen overlay — z-index above nav */
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--forest);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  font-weight: 300;
  color: var(--cream);
  text-align: center;
  padding: 0.3rem 0;
}
.mob-nav a:hover { color: var(--lime); }

.mob-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: none;
  color: rgba(245,240,232,0.7);
  font-size: 1.6rem; cursor: pointer;
  z-index: 1002;
  padding: 8px;
}
.mob-close:hover { color: var(--lime); }

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

/* ════════════════════════════════════════════
   SECTION SPACING
════════════════════════════════════════════ */
.sec    { padding: 6rem 0; max-width: 100%; }
.sec-sm { padding: 4rem 0; }
.sec-lg { padding: 8rem 0; }
.bg-cream   { background: var(--cream); }
.bg-cream-d { background: var(--cream-d); }
.bg-white   { background: var(--white); }
.bg-forest  { background: var(--forest); }

/* ════════════════════════════════════════════
   HERO — Split Layout
════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.hero-left {
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 4rem 5rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-width: 0;
}
.hero-left::after {
  content: '';
  position: absolute; top: 0; right: -1px;
  width: 60px; height: 100%;
  background: var(--forest);
  clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
  z-index: 3;
}

.hero-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 14vw, 18rem);
  font-weight: 900; line-height: 1;
  color: rgba(255,255,255,0.04);
  position: absolute; top: 3rem; right: 3rem;
  user-select: none; pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--cream); margin-bottom: 1.6rem;
}
.hero-title em { font-style: italic; color: var(--lime); }

.hero-sub {
  font-size: 1rem; color: rgba(245,240,232,0.65);
  max-width: 420px; line-height: 1.8; margin-bottom: 2.5rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-right { position: relative; overflow: hidden; min-width: 0; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-right-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,42,26,0.15) 0%, transparent 50%);
}

.hero-badge-float {
  position: absolute; bottom: 2.5rem; right: 2rem;
  background: var(--cream); border-radius: 8px;
  padding: 1rem 1.5rem; box-shadow: var(--shadow); z-index: 5;
}
.hero-badge-float .num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--forest); line-height: 1;
}
.hero-badge-float .lbl { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; font-weight: 500; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 4rem;
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(245,240,232,0.4); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-scroll-line { width: 36px; height: 1px; background: rgba(245,240,232,0.3); }

/* Hero tablet: switch to stacked at 991px */
@media (max-width: 991px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 45vh;
    min-height: unset;
    width: 100%;
  }
  .hero-left {
    padding: 7rem 1.5rem 3rem;
    min-height: 60vh;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-left::after { display: none; }
  .hero-number {
    font-size: 6rem;
    top: 1rem;
    right: 0.5rem;
    max-width: 50%;
    overflow: hidden;
    white-space: nowrap;
  }
  .hero-scroll { display: none; }
  .hero-badge-float { bottom: 1rem; right: 1rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-sub   { font-size: 0.95rem; }
  .hero-cta   { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn-cream,
  .hero-cta .btn-outline-cream { width: 100%; justify-content: center; }
  .hero-left { padding: 6.5rem 1.2rem 2.5rem; }
}

/* ════════════════════════════════════════════
   MANIFESTO
════════════════════════════════════════════ */
.manifesto {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  overflow: hidden;
}
.manifesto-inner { position: relative; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 300; line-height: 1.45;
  color: var(--charcoal);
  max-width: 860px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.manifesto-quote strong { font-weight: 700; font-style: italic; color: var(--forest); }
.manifesto-number {
  font-family: var(--font-display);
  font-size: 13rem; font-weight: 900;
  color: var(--cream-d);
  position: absolute; left: -2rem; top: 50%; transform: translateY(-50%);
  line-height: 1; user-select: none; pointer-events: none; z-index: 0;
  max-width: 100%; overflow: hidden;
}
@media (max-width: 576px) {
  .manifesto { padding: 3.5rem 0; }
  .manifesto-number { display: none; }
}

/* ════════════════════════════════════════════
   SERVICES — Numbered list
════════════════════════════════════════════ */
.services { background: var(--cream); }

.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 52px;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
  border-radius: 0;
  transition: background var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: default;
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row:hover {
  background: var(--white);
  border-radius: var(--r);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-num {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 300;
  color: var(--border-d); line-height: 1;
  transition: color var(--trans);
}
.service-row:hover .service-num { color: var(--green); }
.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  color: var(--charcoal); margin-bottom: 0.5rem;
}
.service-text { font-size: 0.93rem; color: var(--muted); line-height: 1.75; }
.service-icon {
  width: 52px; height: 52px;
  background: var(--cream-d); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--forest); flex-shrink: 0; transition: var(--trans);
}
.service-row:hover .service-icon { background: var(--forest); color: var(--lime); }

@media (max-width: 767px) {
  .service-row { grid-template-columns: 50px 1fr; padding: 1.8rem 0; }
  .service-icon { display: none; }
  .service-row:hover { border-radius: 0; box-shadow: none; background: transparent; border-color: var(--border); }
  .service-num { font-size: 2rem; }
  .service-title { font-size: 1.25rem; }
}

/* ════════════════════════════════════════════
   PROCESS — Alternating Timeline
════════════════════════════════════════════ */
.process { background: var(--cream-d); }

.process-timeline { position: relative; }

/* Desktop: 3-column grid [card | dot | empty] or [empty | dot | card] */
.process-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0 2rem;
  align-items: flex-start;
}

.process-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: 2;
}
.process-dot {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--cream);
  z-index: 2;
}
.process-line {
  width: 2px; flex: 1; min-height: 60px;
  background: var(--border-d);
}
.process-item:last-child .process-line { display: none; }

/* Default: card on LEFT (grid-column: 1), empty on RIGHT */
.process-item .process-card-slot { grid-column: 1; }
.process-item .process-empty     { grid-column: 3; }

/* Modifier: card on RIGHT */
.process-item--right .process-empty     { grid-column: 1; }
.process-item--right .process-card-slot { grid-column: 3; }

.process-content {
  background: var(--white); border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--trans);
}
.process-content:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.process-content h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.process-content p  { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ── Mobile: single column left-border timeline ── */
@media (max-width: 767px) {
  .process-item,
  .process-item--right {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .process-empty     { display: none; }
  .process-connector { flex-shrink: 0; order: 0; }
  .process-card-slot { flex: 1; order: 1; }

  .process-dot  { width: 38px; height: 38px; font-size: 0.82rem; }
  .process-line { min-height: 32px; }
  .process-content { padding: 1.2rem 1.4rem; }
}

/* ════════════════════════════════════════════
   TECHNOLOGY — Dark Forest
════════════════════════════════════════════ */
.tech { background: var(--forest); }

.tech-headline { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.5rem); font-weight: 300; color: var(--cream); line-height: 1.2; }
.tech-headline em { font-style: italic; color: var(--lime); }

.tech-feature-list { margin-top: 2rem; }
.tech-feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tech-feature-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.tech-feature-item i { color: var(--lime); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.tech-feature-item div h5 { font-size: 0.93rem; font-weight: 600; color: var(--cream); margin-bottom: 0.15rem; }
.tech-feature-item div p  { font-size: 0.86rem; color: rgba(245,240,232,0.5); margin: 0; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tech-cell {
  background: var(--forest); padding: 2rem 2.2rem;
  transition: var(--trans); position: relative; overflow: hidden;
}
.tech-cell:hover { background: var(--forest-l); }
.tech-cell::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--lime); transition: height var(--trans);
}
.tech-cell:hover::before { height: 100%; }
.tech-cell-icon { font-size: 1.6rem; color: var(--lime); margin-bottom: 0.9rem; opacity: 0.85; }
.tech-cell h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--cream); margin-bottom: 0.4rem; }
.tech-cell p  { font-size: 0.88rem; color: rgba(245,240,232,0.55); line-height: 1.7; margin: 0; }

@media (max-width: 576px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-cell { padding: 1.6rem 1.8rem; }
}

/* ════════════════════════════════════════════
   SCENARIOS — Tabs
════════════════════════════════════════════ */
.scenarios { background: var(--white); }

.sc-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sc-tabs::-webkit-scrollbar { display: none; }

.sc-tab {
  flex-shrink: 0;
  background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: var(--trans);
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.5rem;
}
.sc-tab.active, .sc-tab:hover { color: var(--forest); border-bottom-color: var(--green); }

.sc-panel { display: none; padding: 2.5rem 0 1rem; }
.sc-panel.active { display: block; }

.sc-panel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}

.sc-title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 400; color: var(--charcoal); margin-bottom: 0.75rem; }
.sc-desc  { font-size: 0.93rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.8rem; }

.sc-list { display: flex; flex-direction: column; gap: 0.65rem; }
.sc-list-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: var(--cream); border-radius: 8px;
  border-left: 3px solid var(--green);
  font-size: 0.92rem; color: var(--ink); transition: var(--trans);
}
.sc-list-item:hover { background: var(--cream-d); transform: translateX(4px); }
.sc-list-item i { color: var(--green); flex-shrink: 0; }

.sc-visual {
  background: var(--cream-d); border-radius: var(--r-lg);
  padding: 2.2rem; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.sc-visual::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(42,122,79,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.sc-visual-icon { font-size: 2.6rem; color: var(--forest); margin-bottom: 1rem; opacity: 0.7; }
.sc-visual h4  { font-family: var(--font-display); font-size: 1.3rem; color: var(--charcoal); margin-bottom: 0.5rem; }
.sc-visual p   { font-size: 0.91rem; color: var(--muted); line-height: 1.75; }

@media (max-width: 767px) {
  .sc-panel-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sc-tab { padding: 0.8rem 1.1rem; font-size: 0.8rem; }
}

/* ════════════════════════════════════════════
   STATS STRIP
════════════════════════════════════════════ */
.stats-strip { background: var(--forest); }
.stats-strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; overflow: hidden;
}
.stat-cell {
  padding: 3.5rem 2rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background var(--trans);
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--forest-l); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300;
  color: var(--lime); line-height: 1; display: block; margin-bottom: 0.5rem;
}
.stat-lbl {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,240,232,0.45);
}

@media (max-width: 767px) {
  .stats-strip-inner { grid-template-columns: 1fr 1fr; }
  .stat-cell {
    padding: 2.2rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .stat-cell:nth-child(2n)      { border-right: none; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 360px) {
  .stat-num { font-size: 2rem; }
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about { background: var(--cream); }

.about-text p { font-size: 0.97rem; color: var(--muted); line-height: 1.85; margin-bottom: 1.2rem; }

.about-values { display: flex; flex-direction: column; }
.about-val {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--border);
}
.about-val:first-child { border-top: 1px solid var(--border); }
.about-val i    { color: var(--green); width: 18px; flex-shrink: 0; }
.about-val span { font-size: 0.93rem; font-weight: 500; color: var(--ink); }

/* ════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════ */
.testimonials { background: var(--cream-d); }

.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testi-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2rem; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem;
  transition: var(--trans);
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi-stars { color: var(--green); font-size: 0.82rem; }
.testi-mark  { font-family: Georgia, serif; font-size: 3rem; color: var(--cream-d); line-height: 0.8; user-select: none; }
.testi-text  { font-size: 0.95rem; color: var(--ink); line-height: 1.8; font-style: italic; flex: 1; }
.testi-footer { display: flex; align-items: center; gap: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--cream-d); flex-shrink: 0; }
.testi-name  { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.testi-city  { font-size: 0.76rem; color: var(--muted); }

@media (max-width: 991px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px)  { .testi-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact-sec { background: var(--white); }

.contact-layout {
  display: grid; grid-template-columns: 2fr 3fr; gap: 4rem; align-items: start;
}
.ci-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.ci-icon {
  width: 40px; height: 40px; background: var(--cream-d); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.92rem; color: var(--forest); flex-shrink: 0;
}
.ci-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.2rem; }
.ci-value { font-size: 0.95rem; color: var(--ink); line-height: 1.55; }
.ci-value a:hover { color: var(--green); }

.contact-form-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.5rem;
}

@media (max-width: 991px) { .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 480px)  { .contact-form-card { padding: 1.5rem; } }

/* ════════════════════════════════════════════
   FORMS
════════════════════════════════════════════ */
.d-form .form-control,
.d-form .form-select {
  background: var(--white); border: 1.5px solid var(--border-d); border-radius: 8px;
  color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.85rem 1rem; box-shadow: none; transition: border-color var(--trans);
}
.d-form .form-control:focus,
.d-form .form-select:focus {
  background: var(--white); color: var(--charcoal);
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(42,122,79,0.1);
}
.d-form .form-control::placeholder { color: var(--muted); }
.d-form label {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; display: block;
}
.d-form textarea.form-control { resize: vertical; min-height: 120px; }

/* ════════════════════════════════════════════
   COOKIE BANNER
════════════════════════════════════════════ */
#cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990;
  background: var(--forest); border-top: 3px solid var(--lime);
  padding: 1.2rem 0; transition: transform 0.4s ease;
}
#cookie-bar.hidden { transform: translateY(110%); pointer-events: none; }

.cookie-inner {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-txt {
  flex: 1; min-width: 200px;
  font-size: 0.86rem; color: rgba(245,240,232,0.75); line-height: 1.55;
}
.cookie-txt a { color: var(--lime); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.65rem; flex-shrink: 0; }
.c-btn-yes {
  background: var(--lime); color: var(--forest); border: none; border-radius: 4px;
  padding: 0.6rem 1.3rem; font-family: var(--font-body); font-size: 0.83rem;
  font-weight: 700; cursor: pointer; transition: var(--trans);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.c-btn-yes:hover { background: #a0e07a; }
.c-btn-no {
  background: transparent; color: rgba(245,240,232,0.55);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 4px;
  padding: 0.6rem 1.1rem; font-family: var(--font-body); font-size: 0.83rem;
  font-weight: 600; cursor: pointer; transition: var(--trans);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.c-btn-no:hover { color: var(--cream); border-color: rgba(255,255,255,0.4); }

@media (max-width: 480px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-btns  { width: 100%; }
  .c-btn-yes, .c-btn-no { flex: 1; text-align: center; justify-content: center; }
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.d-footer { background: var(--charcoal); }
.footer-top { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--cream); margin-bottom: 0.6rem; }
.footer-logo .dot { color: var(--lime); }
.footer-tagline { font-size: 0.88rem; color: rgba(245,240,232,0.45); max-width: 260px; line-height: 1.65; }
.footer-col-title { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.35); margin-bottom: 1.2rem; }
.footer-links li { margin-bottom: 0.6rem; word-break: break-word; }
.footer-links a  { font-size: 0.9rem; color: rgba(245,240,232,0.55); }
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  padding: 1.3rem 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.79rem; color: rgba(245,240,232,0.3); margin: 0; }
.footer-bottom a { color: rgba(245,240,232,0.3); }
.footer-bottom a:hover { color: var(--lime); }

@media (max-width: 576px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.3rem; }
}

/* ════════════════════════════════════════════
   PAGE HEADER (inner pages)
════════════════════════════════════════════ */
.pg-header {
  padding: 8rem 0 3.5rem;
  background: var(--forest); position: relative; overflow: hidden;
}
.pg-header::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pg-header h1 { font-size: clamp(2rem, 5vw, 3.6rem); color: var(--cream); font-weight: 300; }
.pg-header p  { color: rgba(245,240,232,0.55); margin-top: 0.7rem; font-size: 0.97rem; }
.pg-header .breadcrumb-item { font-size: 0.82rem; }
.pg-header .breadcrumb-item a                     { color: rgba(245,240,232,0.5); }
.pg-header .breadcrumb-item a:hover               { color: var(--lime); }
.pg-header .breadcrumb-item.active                { color: var(--lime); }
.pg-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════════
   POLICY PAGES
════════════════════════════════════════════ */
.policy-body { padding: 4.5rem 0; background: var(--white); }
.policy-body h2 { font-size: 1.65rem; margin: 2.2rem 0 0.75rem; color: var(--forest); }
.policy-body h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; color: var(--charcoal); }
.policy-body p  { font-size: 0.96rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }
.policy-body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-body ul li { font-size: 0.96rem; color: var(--muted); margin-bottom: 0.35rem; line-height: 1.75; }
.policy-body a  { color: var(--green); }
.policy-body a:hover { color: var(--forest); }
.policy-date { font-size: 0.8rem; color: var(--border-d); margin-top: 2.5rem; }

/* ════════════════════════════════════════════
   THANK YOU PAGE
════════════════════════════════════════════ */
.ty-page {
  min-height: 100vh; background: var(--cream);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 5rem 1rem;
}
.ty-check {
  width: 68px; height: 68px; background: var(--forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--lime); margin: 0 auto 1.4rem;
}
.ty-page h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); color: var(--charcoal); margin-bottom: 1rem; }
.ty-page p  { font-size: 1rem; color: var(--muted); max-width: 460px; margin: 0 auto 2rem; line-height: 1.8; }

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════ */
.text-green   { color: var(--green)  !important; }
.text-lime    { color: var(--lime)   !important; }
.text-cream   { color: var(--cream)  !important; }
.text-muted-c { color: var(--muted)  !important; }
hr.divider    { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ── Global small mobile ────────────────────── */
@media (max-width: 575px) {
  html  { font-size: 16px; }
  .sec  { padding: 4rem 0; }
  .sec-lg { padding: 5rem 0; }
  .manifesto { padding: 3rem 0; }
}

/* ── Global overflow safety ──────────────────── */
section, .manifesto, .stats-strip,
.services, .process, .tech,
.scenarios, .about, .testimonials,
.contact-sec, .d-footer {
  max-width: 100%;
  overflow-x: hidden;
}


/* ── Site wrapper containment ─────────────────── */
.site-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* hero full-width guarantee */
.hero, .manifesto, .stats-strip,
.d-footer, #cookie-bar {
  width: 100%;
}
