/* ==========================================================================
   SurveyLifeCR — styles.css
   Palette: deep rainforest green, warm sand, ocean blue, charcoal ink, gold.
   Type: Archivo (display) · Source Serif 4 (body) · IBM Plex Mono (data).
   ========================================================================== */

:root {
  /* Color tokens */
  --forest-deep: #0e271f;   /* hero / footer ground */
  --forest: #16382c;        /* dark section surfaces */
  --forest-soft: #1e4437;   /* raised dark surfaces */
  --ink: #22302a;           /* body text on light */
  --ink-soft: #51605a;      /* secondary text on light */
  --sand: #f2ece1;          /* warm section background */
  --sand-deep: #e5dcc9;     /* placeholder / borders on sand */
  --paper: #fbf9f4;         /* light background */
  --ocean: #2f6f8f;         /* links, accents */
  --ocean-deep: #24586f;
  --gold: #b9924f;          /* hairlines, labels */
  --cream-on-dark: #ede6d6; /* body text on dark */
  --mist-on-dark: #a9b5ac;  /* secondary text on dark */
  --line-light: rgba(34, 48, 42, 0.14);
  --line-dark: rgba(237, 230, 214, 0.16);

  /* Type tokens */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --container: 1160px;
  --radius: 8px;      /* controls, buttons, inputs */
  --radius-lg: 18px;  /* cards, images, panels */
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 84px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; } /* width/height attrs give the ratio; CSS controls size */

a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ocean-deep); }

:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--forest-deep); color: var(--cream-on-dark);
  padding: 0.5rem 1rem; font-family: var(--font-display); font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

.h2, .h3, .hero-title, .value-title, .footer-logo, .brand-name {
  font-family: var(--font-display);
  color: inherit;
}

.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 640;
  font-stretch: 106%;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.75rem 0 1.25rem;
}

.h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: clamp(1.2rem, 2vw, 1.4375rem);
  line-height: 1.6;
  font-weight: 380;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow-light { color: var(--gold); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}
.btn-solid:hover { background: #c9a465; border-color: #c9a465; color: var(--forest-deep); }

.btn-outline {
  background: transparent;
  color: var(--cream-on-dark);
  border-color: rgba(237, 230, 214, 0.45);
}
.btn-outline:hover { border-color: var(--cream-on-dark); color: #fff; }

.btn-small { padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

.btn-whatsapp,
.btn-forest {
  background: var(--forest);
  color: var(--cream-on-dark);
  border-color: var(--forest);
}
.btn-whatsapp { margin-top: 1.75rem; }
.btn-forest { margin-top: 0.75rem; }
.btn-whatsapp:hover, .btn-forest:hover { background: var(--forest-soft); border-color: var(--forest-soft); color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(14, 39, 31, 0);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 39, 31, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(237, 230, 214, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-on-dark);
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; color: var(--gold); }
.brand-name {
  font-size: 1.1875rem;
  font-weight: 680;
  font-stretch: 108%;
  letter-spacing: 0.01em;
}
.brand-cr { color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a:not(.btn) {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-on-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 0.2rem;
}
/* Slide-in underline on hover; stays on for the section in view */
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.nav-menu a:not(.btn):hover { color: var(--gold); }
.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn).is-active::after { transform: scaleX(1); }
.nav-menu a:not(.btn).is-active { color: var(--gold); }

/* Language switch (EN ↔ ES) */
.nav-menu a.lang-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(185, 146, 79, 0.55);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-menu a.lang-link::after { content: none; } /* no underline animation on the pill */
.nav-menu a.lang-link:hover {
  background: var(--gold);
  color: var(--forest-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream-on-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--forest-deep);
  color: var(--cream-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1); /* smooth mouse parallax */
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: kenburns 22s ease-out forwards; }
  @keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
  }
}
/* Green-tinted overlay keeps text readable and on-brand */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 39, 31, 0.88) 0%, rgba(14, 39, 31, 0.62) 48%, rgba(14, 39, 31, 0.35) 100%),
    linear-gradient(to top, rgba(10, 30, 23, 0.75) 0%, rgba(10, 30, 23, 0) 35%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contour {
  fill: none;
  stroke: rgba(237, 230, 214, 0.16);
  stroke-width: 1.2;
}

@media (prefers-reduced-motion: no-preference) {
  .contour {
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: draw 3.2s ease-out forwards;
  }
  .contour.c2 { animation-delay: 0.25s; }
  .contour.c3 { animation-delay: 0.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Plan-sheet frame: thin border with survey tick marks + corner coordinates */
.sheet-frame {
  position: absolute;
  inset: clamp(14px, 2.2vw, 26px);
  border: 1px solid rgba(237, 230, 214, 0.22);
  pointer-events: none;
  z-index: 2;
}
.sheet-frame::before,
.sheet-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 7px;
  background-image: repeating-linear-gradient(90deg,
    rgba(237, 230, 214, 0.35) 0 1px, transparent 1px 72px);
}
.sheet-frame::before { top: 0; }
.sheet-frame::after { bottom: 0; }

.sheet-coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(237, 230, 214, 0.6);
  white-space: nowrap;
}
/* Latitude/longitude run vertically along the sheet edges (clear of the header).
   Shown only when the viewport leaves margin room beside the content column. */
.coord-tl,
.coord-tr {
  display: none;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
@media (min-width: 1260px) {
  .coord-tl, .coord-tr { display: block; }
}
.coord-tl { left: 9px; transform: translateY(-50%) rotate(180deg); }
.coord-tr { right: 9px; }
.coord-bl { bottom: 10px; left: 24px; }
.coord-br { bottom: 10px; right: 24px; }

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 9rem 0 7rem;
}

.hero-eyebrow { margin-bottom: 1.5rem; }

.hero-title {
  font-size: clamp(2.35rem, 5.6vw, 4.1rem);
  font-weight: 680;
  font-stretch: 108%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: #f7f3ea;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.3125rem);
  line-height: 1.65;
  color: var(--cream-on-dark);
  max-width: 620px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(237, 230, 214, 0.75);
  max-width: 560px;
  margin: 0;
}

/* Load-in sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-trust {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.85s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
  }
  .hero-title { animation-delay: 0.12s; }
  .hero-sub { animation-delay: 0.26s; }
  .hero-actions { animation-delay: 0.4s; }
  .hero-trust { animation-delay: 0.54s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(26px, 4vw, 44px);
  transform: translateX(-50%);
  padding: 0.5rem;
}
.hero-scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(237, 230, 214, 0.7));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll-line { animation: driftDown 2.4s ease-in-out infinite; }
  @keyframes driftDown {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
  }
}

/* ---------- Sections (shared) ---------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro { color: var(--ink-soft); font-size: 1.0625rem; }

/* Scroll reveal */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Credibility ---------- */

.section-credibility { background: var(--paper); }
.credibility-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.credibility-lead .h2 { margin-bottom: 0; }
.credibility-text { border-left: 1px solid var(--gold); padding-left: clamp(1.25rem, 3vw, 2.5rem); }

/* ---------- Services explorer ---------- */

.section-services { background: var(--sand); }

.svc-explorer {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

.svc-tabs {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-light);
}
.svc-tab {
  appearance: none;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  margin-left: -1px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0313rem;
  font-weight: 560;
  font-stretch: 104%;
  color: var(--ink-soft);
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.svc-tab:hover { color: var(--ink); background: rgba(251, 249, 244, 0.7); }
.svc-tab.is-active {
  color: var(--forest);
  border-left-color: var(--gold);
  background: var(--paper);
}

.svc-stage { position: relative; min-height: 460px; }

.svc-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.svc-panel.is-active { opacity: 1; pointer-events: auto; }
.svc-panel[hidden] { display: block; } /* keep in flow for crossfade; visibility via opacity */

.svc-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
/* Portrait aerials: crop toward the terrain, not the sky */
.pos-low { object-position: center 78% !important; }

.svc-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(14, 39, 31, 0.92) 0%, rgba(14, 39, 31, 0.55) 65%, rgba(14, 39, 31, 0) 100%);
  color: #f4efe4;
}
.svc-caption .h3 { color: #fff; margin-bottom: 0.35rem; }
.svc-caption p { max-width: 560px; font-size: 1rem; color: var(--cream-on-dark); margin-bottom: 0.6rem; }

.svc-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.svc-link:hover { color: #d3ad6c; }

/* ---------- Why it matters (photo band) ---------- */

.section-why {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  color: var(--cream-on-dark);
  overflow: hidden;
  background: var(--forest-deep);
}
.why-media { position: absolute; inset: 0; z-index: 0; }
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.why-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 39, 31, 0.95) 0%, rgba(14, 39, 31, 0.88) 55%, rgba(14, 39, 31, 0.76) 100%);
}

.why-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.why-lead .h2 { color: #f7f3ea; }
.why-quote {
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--cream-on-dark);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0 0;
}

.why-chips-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-on-dark);
  margin-bottom: 1rem;
  width: 100%;
}
.why-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: start;
}
.chip { display: contents; }
.chip-btn {
  appearance: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--cream-on-dark);
  background: rgba(237, 230, 214, 0.08);
  border: 1px solid rgba(237, 230, 214, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip-btn:hover { border-color: var(--gold); color: #fff; }
.chip-btn[aria-expanded="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
}
.chip-detail {
  order: 100;               /* expanded detail always renders below the chip row */
  width: 100%;
  font-size: 1.0625rem;
  font-style: italic;
  color: #f4efe4;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 0.9rem 0 0.2rem;
}

/* ---------- Field gallery ---------- */

.section-field { background: var(--paper); padding-bottom: clamp(4rem, 8vw, 6.5rem); }

.gallery {
  cursor: grab;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 1.25rem 1.25rem; /* fallback for engines without max(calc()) */
  padding: 0.25rem max(calc((100% - var(--container)) / 2), 1.25rem) 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--sand-deep) transparent;
}
.gallery-item {
  flex: 0 0 auto;
  width: min(420px, 78vw);
  margin: 0;
  scroll-snap-align: start;
}
.gallery-zoom {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-zoom img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-zoom:hover img { transform: scale(1.045); }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery.is-dragging .gallery-zoom { cursor: grabbing; }

.gallery-item figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- Mission + Values ---------- */

.section-mission {
  position: relative;
  background: linear-gradient(165deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream-on-dark);
  overflow: hidden;
}

.mission-bg { position: absolute; inset: 0; pointer-events: none; }
.mission-contours { width: 100%; height: 100%; }
.contour-static {
  fill: none;
  stroke: rgba(237, 230, 214, 0.07);
  stroke-width: 1.2;
}

.mission-block {
  position: relative;
  max-width: 880px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mission-statement {
  font-size: clamp(1.35rem, 2.6vw, 1.875rem);
  line-height: 1.5;
  font-weight: 340;
  color: #f4efe4;
  margin: 1.5rem 0 0;
}

.values-block { position: relative; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.value-title {
  font-size: 1.125rem;
  font-weight: 640;
  font-stretch: 106%;
  margin: 0 0 0.6rem;
  color: var(--gold);
}
.value p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mist-on-dark);
}

/* ---------- Work (three stages, details in lightbox) ---------- */

.section-work { background: var(--sand); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.pillar {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  display: block;
}

.pillar-media {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(14, 39, 31, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pillar-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.pillar:hover .pillar-media {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(14, 39, 31, 0.45);
}
.pillar:hover .pillar-media img { transform: scale(1.05); }

.pillar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.pillar-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 640;
  font-stretch: 106%;
  color: var(--ink);
  margin-bottom: 0.45rem;
  transition: color 0.2s ease;
}
.pillar:hover .pillar-title { color: var(--ocean-deep); }
.pillar-text {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9840rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Process ---------- */

.section-process { background: var(--paper); }

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.1rem;
  transition: border-color 0.25s ease;
}
.step:hover { border-top-color: var(--gold); }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}
.step .h3 { font-size: 1.0625rem; }
.step p { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- About ---------- */

.section-about { background: var(--sand); }

.about-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
}
.about-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ---------- Contact ---------- */

.section-contact { background: var(--paper); }

.contact-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-details { margin: 2rem 0 0; }
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-light);
}
.contact-row dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.25rem;
}
.contact-row dd { margin: 0; font-size: 0.9840rem; }

.contact-form {
  background: var(--sand);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}
.label-note { font-weight: 400; color: var(--ink-soft); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9840rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(47, 111, 143, 0.14);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input[type="file"] {
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.field-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
  font-style: italic;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--forest);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--mist-on-dark);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-logo {
  font-size: 1.375rem;
  font-weight: 680;
  font-stretch: 108%;
  color: var(--cream-on-dark);
  margin: 0 0 0.6rem;
}
.footer-tagline { font-size: 0.9375rem; font-style: italic; }

.footer-social {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-on-dark);
  text-decoration: none;
}
.footer-social a:hover { color: var(--gold); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-col a {
  color: var(--mist-on-dark);
  text-decoration: none;
}
.footer-col a:hover { color: var(--cream-on-dark); }

.footer-bottom { padding-top: 2rem; }
.footer-disclaimer {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(169, 181, 172, 0.75);
  max-width: 820px;
  margin-bottom: 1.25rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(169, 181, 172, 0.6);
  margin: 0;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 19, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.lightbox-body {
  position: relative;
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--forest-deep);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox-body { animation: lbIn 0.3s cubic-bezier(0.22, 0.8, 0.3, 1); }
  @keyframes lbIn {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: none; }
  }
}

.lightbox-img {
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  background: #0a1e17;
}

.lightbox-caption {
  padding: 1.1rem 1.5rem 1.35rem;
  color: var(--cream-on-dark);
}
.lightbox-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.lightbox-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 620;
  font-stretch: 104%;
  color: #f7f3ea;
  margin-bottom: 0.35rem;
}
.lightbox-desc { display: block; font-size: 0.9375rem; line-height: 1.6; }
.lightbox-desc:empty, .lightbox-title:empty { display: none; }

.lightbox-close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  z-index: 2;
  appearance: none;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(14, 39, 31, 0.8);
  color: var(--cream-on-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover { background: var(--forest-soft); }

body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .credibility-inner,
  .why-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; max-width: 520px; }
  .about-media { max-width: 460px; }

  /* Services explorer stacks: tabs become a scrollable pill row */
  .svc-explorer { grid-template-columns: 1fr; }
  .svc-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
    gap: 0.25rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin: 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
  .svc-tab.is-active { border-bottom-color: var(--gold); background: none; }
  .svc-stage { min-height: 0; aspect-ratio: 4 / 3.4; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-deep);
    border-top: 1px solid var(--line-dark);
    padding: 0.75rem 1.25rem 1.5rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .site-header:has(.nav-menu.is-open) { background: var(--forest-deep); }
  .nav-menu li { border-bottom: 1px solid rgba(237, 230, 214, 0.08); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a:not(.btn) { display: block; padding: 0.9rem 0.25rem; font-size: 1rem; }
  .nav-menu a.lang-link {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    margin: 0.9rem 0.25rem;
    font-size: 0.72rem;
  }
  .nav-cta-item { padding-top: 1rem; }
  .nav-cta-item .btn { width: 100%; }
}

@media (max-width: 560px) {
  .values-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .hero-inner { padding-top: 7.5rem; }
  .hero-actions .btn { width: 100%; }
  .sheet-coord { display: none; }
  .svc-stage { aspect-ratio: 3 / 3.2; }
}
