/* ==========================================================================
   Ekoya — Elevation layer (bolder editorial)
   Loaded LAST. Layers a more confident, magazine-grade typographic and
   spatial treatment over the base system, plus mobile/tablet hardening and
   a refined icon language.
   ========================================================================== */

:root {
  --ek-fs-900: clamp(2.9rem, 1.5rem + 5.6vw, 5.4rem);
  --ek-fs-800: clamp(2.2rem, 1.5rem + 3.0vw, 3.7rem);
  --ek-fs-700: clamp(1.85rem, 1.35rem + 2.1vw, 2.9rem);
  --ek-fs-600: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --ek-lh-tight: 1.02;
  --ek-lh-snug: 1.14;
  --ek-section-y: clamp(3.5rem, 2.5rem + 3.2vw, 6.25rem);
}

h1, h2 { letter-spacing: -0.025em; }
h1 { font-weight: 600; }
h2 { font-weight: 580; }
h3 { letter-spacing: -0.012em; }

.lead { font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem); line-height: 1.5; }
.section-head { margin-bottom: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem); }

.eyebrow, .hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; font-weight: 650; }

/* HERO */
.hero-photo { min-height: min(94vh, 880px); }
.hero-photo__bg::after { background: linear-gradient(115deg, rgba(4,28,31,0.94) 0%, rgba(5,40,44,0.86) 40%, rgba(6,47,51,0.40) 100%); }
.hero-photo h1 { text-shadow: 0 2px 30px rgba(0,0,0,0.28); }
.hero-photo__inner { max-width: 56rem; }
.hero-photo .lead { max-width: 44ch; color: #EAF3F1; }

.hero-cred { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem clamp(1.25rem, 0.5rem + 2.5vw, 2.75rem); margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(127,214,206,0.22); }
.hero-cred__item { display: inline-flex; flex-direction: column; line-height: 1.15; }
.hero-cred__item b { color: #fff; font-family: var(--ek-font-serif); font-size: 1.15rem; font-weight: 560; }
.hero-cred__item span { color: var(--ek-on-dark-2); font-size: 0.75rem; letter-spacing: 0.04em; }
.hero-cred__rule { width: 1px; height: 2.2rem; background: rgba(127,214,206,0.24); }
@media (max-width: 600px) { .hero-cred__rule { display: none; } .hero-cred { gap: 1rem 1.6rem; } }

.section-head .lead { margin-top: 0.4rem; }

/* Atlas section has a dark bg but is NOT .section--dark, so its headings
   inherit dark ink and render invisible — force light. */
.cmap-section .section-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.cmap-section h2, .cmap-section h3:not(.sr-only) { color: #fff; }
.cmap-section .section-head .lead { color: var(--ek-on-dark); }

/* CARDS & HOVERS */
.outcome-card, .lens-card, .res-card, .cap-card, .card, .proj-card { border-color: color-mix(in srgb, var(--ek-line) 72%, transparent); }
.outcome-card { border-radius: 18px; }
.outcome-card:hover, .card:hover, .proj-card:hover { box-shadow: 0 18px 44px rgba(6,47,51,0.12), 0 4px 12px rgba(6,47,51,0.06); transform: translateY(-3px); border-color: var(--ek-line-2); transition: transform var(--ek-dur) var(--ek-ease), box-shadow var(--ek-dur) var(--ek-ease), border-color var(--ek-dur) var(--ek-ease); }
@media (prefers-reduced-motion: reduce) { .outcome-card:hover, .card:hover, .proj-card:hover { transform: none; } }

.lens-card { position: relative; padding-right: 2.4rem; transition: transform var(--ek-dur) var(--ek-ease), border-color var(--ek-dur) var(--ek-ease), background var(--ek-dur) var(--ek-ease); }
.lens-card::after { content: "\2192"; position: absolute; right: 1.15rem; top: 1.15rem; color: var(--ek-moss-600); font-size: 1.1rem; opacity: 0; transform: translateX(-4px); transition: opacity var(--ek-dur) var(--ek-ease), transform var(--ek-dur) var(--ek-ease); }
.lens-card:hover { transform: translateY(-3px); border-color: var(--ek-moss); }
.lens-card:hover::after { opacity: 1; transform: none; }

.btn { letter-spacing: 0.005em; }
.btn--primary:hover, .btn--clay:hover { box-shadow: 0 10px 24px rgba(6,47,51,0.18); }

/* ICON TILES */
.outcome-card__icon { width: 64px; height: 64px; padding: 13px; border-radius: 18px; background: linear-gradient(150deg, #ecf6f3 0%, #e2f0ec 100%); box-shadow: inset 0 0 0 1px rgba(18,133,126,0.16); }
.outcome-card:hover .outcome-card__icon { box-shadow: inset 0 0 0 1px rgba(18,133,126,0.30), 0 8px 18px rgba(18,133,126,0.16); }
.founder-expertise li svg { color: var(--ek-moss-600); }

.footer__tagline { font-size: 1.15rem; }

/* MOBILE & TABLET HARDENING */
@media (max-width: 1024px) { .hero-photo { min-height: min(88vh, 720px); } }

@media (max-width: 940px) {
  .split, .founder-v2, .contact-split, .cmap-grid, .sol-detail-grid { gap: clamp(1.75rem, 1rem + 4vw, 3rem); }
  .split__media, .founder-frame { margin-top: 0.5rem; }
  .cmap-panel { margin-top: 0.5rem; }
}

@media (max-width: 640px) {
  .hero-photo { min-height: auto; padding-top: 2rem; }
  .hero-photo__inner { padding-block: 3rem 2rem; }
  .hero-photo h1 { line-height: 1.05; }
  .hero-photo .lead { font-size: 1.08rem; }
  body { font-size: 1.02rem; }
  .btn-row .btn { flex: 1 1 auto; min-width: 0; }
  .section { padding-block: clamp(2.75rem, 2rem + 4vw, 3.5rem); }
}

@media (max-width: 640px) {
  .container, .container--wide, .container--narrow { overflow-x: clip; }
  img, svg, video, table { max-width: 100%; }
}

@media (hover: none) and (pointer: coarse) {
  .nav__link { min-height: 46px; }
  .filter-chip, .lls-chip, .cmap-rail button { min-height: 44px; }
  .link-arrow, .footer__list a { display: inline-flex; min-height: 34px; align-items: center; }
}

@media (max-width: 400px) {
  .hero-cred__item b { font-size: 1.05rem; }
  .outcome-card { padding: 1.4rem 1.25rem; }
}

@media (max-width: 640px) {
  .site-header { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .hero-tile { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6,47,51,0.82); }
}
