/* =========================================================
   AMBAR · prospect-facing read
   Brand tokens only. Navy canvas, amber accent, teal support.
   ========================================================= */

:root {
  --navy: #081C2D;
  --navy-2: #0F2A3F;
  --navy-3: #17364F;
  --amber: #D6B116;
  --amber-ink: #8C7200;
  --teal: #7EBEC5;
  --teal-2: #E7F2F3;
  --ink: #2D3940;
  --ink-2: #4A5760;
  --paper: #FFFFFF;
  --paper-2: #F6F5F1;
  --paper-3: #ECEAE3;
  --rule: #D7D4CA;
  --rule-dark: rgba(255, 255, 255, 0.12);

  --f-display: 'Changa', 'Aldrich', Helvetica, Arial, sans-serif;
  --f-body: 'Heebo', 'Open Sans', Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(8, 28, 45, 0.08);
  --shadow-md: 0 6px 20px rgba(8, 28, 45, 0.12);

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Top strip: ISO + language ===== */
.topstrip {
  background: var(--navy);
  color: #E8EEF3;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(214, 177, 22, 0.25);
}
.topstrip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.iso {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.iso-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  color: rgba(232, 238, 243, 0.65);
}
.iso-badges { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.iso-chip {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(214, 177, 22, 0.55);
  color: var(--amber);
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 11px;
  border-radius: var(--r-sm);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.lang-toggle a {
  color: rgba(232, 238, 243, 0.6);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  transition: color 120ms ease;
}
.lang-toggle a:hover { color: var(--amber); }
.lang-toggle a.is-active { color: var(--amber); }
.lang-sep { color: rgba(232, 238, 243, 0.35); }

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 32px;
  border-bottom: 3px solid var(--amber);
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: inline-block; }
.brand img {
  height: 44px;
  width: auto;
}
.booth-meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-family: var(--f-display);
  font-weight: 500;
  text-align: right;
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 96px
    );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}
.hero-body { min-width: 0; }
.eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
  color: #fff;
}
.accent {
  color: var(--amber);
  position: relative;
  white-space: nowrap;
}
.accent .dot {
  display: inline-block;
  color: var(--amber);
  transform: translateY(-0.08em);
}
.subhead {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 34px;
  max-width: 56ch;
}
.hero-meta {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.meta-label {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.meta-value {
  color: #fff;
  font-weight: 400;
}

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  position: relative;
  backdrop-filter: blur(2px);
}
.tile-accent {
  border-color: rgba(214, 177, 22, 0.45);
  background: rgba(214, 177, 22, 0.06);
}
.tile-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--amber);
}
.tile-label {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}
.tile-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.tile-value-sm {
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--amber);
  font-feature-settings: "tnum" 1;
}
.tile-value-clients {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
}
.tile-unit {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--amber);
  margin-left: 3px;
  vertical-align: 0.35em;
}
.tile-foot {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

/* ===== Sections (light) ===== */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.section-opening { background: var(--paper); }
.section-frame { background: var(--paper-2); }
.section-case { background: var(--paper); }
.section-methods { background: var(--paper-2); }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.section-heading h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.005em;
}
.section-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--amber-ink);
  text-transform: uppercase;
}
.section-heading-dark h2 { color: #fff; }
.section-heading-dark { border-bottom-color: rgba(255, 255, 255, 0.15); }
.section-heading-dark .section-num { color: var(--amber); }

.prose {
  max-width: 76ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.prose-lead { font-size: 18.5px; line-height: 1.65; color: var(--navy); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Layer stack */
.layer-stack {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.layer {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  padding: 22px 22px 24px;
  border-radius: var(--r-md);
}
.layer-accent { border-top-color: var(--amber); background: #fff; }
.layer-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.layer-pct {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.layer-accent .layer-pct { color: var(--amber-ink); }
.layer-tag {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--ink-2);
}
.layer-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.frame-takeaway {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--amber);
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.005em;
  line-height: 1.45;
  max-width: 68ch;
}

/* Case study card */
.case {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 40px 34px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.case::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 4px;
  background: var(--amber);
  border-top-left-radius: var(--r-lg);
}
.case-head { margin-bottom: 22px; }
.case-kicker {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 8px;
}
.case-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.005em;
}
.case-metrics {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.case-metrics li {
  padding: 18px 16px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-metrics li:first-child { padding-left: 0; }
.case-metrics li:last-child { border-right: none; padding-right: 0; }
.metric-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.005em;
  font-feature-settings: "tnum" 1;
}
.metric-label {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.case-prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 72ch;
  margin: 0 0 22px;
}
.case-kpmg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 16px 18px;
  background: var(--teal-2);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-sm);
  line-height: 1.55;
}
.kpmg-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 8px;
  flex: 0 0 auto;
}

/* Methods */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.method {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px 28px 26px;
}
.method-kicker {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 8px;
}
.method-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: 0.005em;
}
.method p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 14px;
}
.method-link {
  margin: 8px 0 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
}
.method-link a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
  transition: color 120ms ease;
}
.method-link a:hover { color: var(--amber-ink); }

/* ===== CTA ===== */
.section-cta {
  background: var(--navy);
  color: #fff;
  padding: 88px 0 96px;
  border-bottom: none;
  position: relative;
}
.section-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 4px;
  background: var(--amber);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.cta-lead {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: 0.005em;
  max-width: 48ch;
}
.cta-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-facts > div { display: flex; flex-direction: column; gap: 4px; }
.cta-facts dt {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--amber);
  margin: 0;
}
.cta-facts dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.cta-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px 32px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  border-top: 4px solid var(--amber);
}
.cta-card-kicker {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 16px;
}
.cta-card-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.005em;
}
.cta-card-role {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.cta-button {
  display: block;
  width: 100%;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: var(--r-md);
  transition: background 140ms ease, transform 140ms ease;
  border: 2px solid var(--amber);
}
.cta-button:hover {
  background: #E9C62A;
  border-color: #E9C62A;
}
.cta-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.cta-card-foot {
  margin: 14px 0 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 22px 0 26px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-iso {
  font-family: var(--f-display);
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.footer-sep { color: rgba(255, 255, 255, 0.3); }
.footer-addr { color: rgba(255, 255, 255, 0.6); }
.footer-right a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 177, 22, 0.4);
}
.footer-right a:hover { border-bottom-color: var(--amber); }

/* ===== Language toggling ===== */
html[lang="es"] .only-en { display: none !important; }
html[lang="en"] .only-es { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .layer-stack { grid-template-columns: 1fr; }
  .methods-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-metrics { grid-template-columns: 1fr; }
  .case-metrics li {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 14px 0;
  }
  .case-metrics li:first-child { padding-top: 0; }
  .case-metrics li:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .topstrip-inner { padding: 10px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .booth-meta { text-align: left; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 56px 0; }
  .section-cta { padding: 64px 0 72px; }
  .case { padding: 28px 22px; }
  .method { padding: 24px 22px; }
  .cta-card { padding: 28px 24px 26px; }
  .cta-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta { gap: 24px; }
  .tiles { grid-template-columns: 1fr; }
  .topstrip-inner .iso-label { display: none; }
}

@media (max-width: 400px) {
  .headline { font-size: 28px; }
  .subhead { font-size: 15.5px; }
  .tile-value { font-size: 36px; }
  .frame-takeaway { font-size: 15.5px; padding: 18px 20px; }
  .cta-lead { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
