/* =========================================================
   ELEVATION LAYER — editorial detailing & photography
   (appended; overrides earlier rules where needed)
   ========================================================= */

/* ---- Photographic media w/ navy duotone for brand cohesion ---- */
.media {
  position: relative;
  overflow: hidden;
  background: #0b2459;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
/* duotone-ish navy wash so every photo reads on-brand */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,58,.18), rgba(8,26,58,.52)),
    radial-gradient(120% 90% at 30% 0%, rgba(63,127,212,.20), transparent 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media--soft::after { background: linear-gradient(180deg, rgba(8,26,58,.05), rgba(8,26,58,.30)); }
.media--strong::after { background: linear-gradient(180deg, rgba(8,26,58,.45), rgba(7,20,44,.78)); }
.media--fill { position: absolute; inset: 0; }

/* ---- Editorial section header (left-aligned, with index) ---- */
.shead {
  position: relative;
  margin-bottom: clamp(38px, 5vw, 60px);
  max-width: 100%;
}
.shead--center { margin-inline: auto; text-align: center; max-width: 100%; }
.shead__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(120deg, #0d1b32 0%, #1e4fa0 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.10em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.shead--center .shead__kicker { justify-content: center; }
.shead__kicker::before { display: none; }
.shead__kicker .sq { display: none; }
.shead--on-dark .shead__kicker { background: var(--gold, #f5b400); color: #0a2350; }
.shead__title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.shead__title .accent { color: var(--blue-600); }
.shead--on-dark .shead__title { color: #fff; }
.shead--on-dark .shead__title .accent { color: var(--hl-teal-b); }
.shead__pre {
  display: block;
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.shead--on-dark .shead__pre { color: rgba(255,255,255,.72); }
.shead__lead {
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 2;
  color: var(--ink-500);
  max-width: 46em;
}
.shead--center .shead__lead { margin-inline: auto; }
.shead--on-dark .shead__lead { color: rgba(255,255,255,.78); }

/* giant ghost numeral / glyph behind a section */
.ghost-num {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -0.04em;
  font-size: clamp(8rem, 20vw, 16rem);
  color: var(--blue-600);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.ghost-num--dark { color: #fff; opacity: 0.045; }
.section { position: relative; }
.section > .wrap { position: relative; z-index: 1; }

/* ============== HERO — editorial rework ============== */
.hero { padding-bottom: 0; }
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, #0b2459 0%, rgba(11,36,89,.92) 46%, rgba(11,36,89,.55) 100%),
    radial-gradient(900px 520px at 82% 22%, rgba(86,150,235,.40), transparent 58%);
}
.hero .hero__bg-grid { z-index: 1; }
.hero__inner { z-index: 2; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__kicker::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero__title { letter-spacing: 0.005em; font-weight: 900; }
/* floating KPI chip overlapping the diagram */
.cycle__chip {
  position: absolute;
  z-index: 5;
  background: rgba(255,255,255,.97);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(5,15,40,.42);
  display: flex;
  align-items: center;
  gap: 13px;
  backdrop-filter: blur(4px);
}
.cycle__chip .ic {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cycle__chip .ic svg { width: 20px; height: 20px; }
.cycle__chip b { display: block; font-size: 1.25rem; font-weight: 900; color: var(--navy-700); line-height: 1.1; font-family: var(--font-mono); }
.cycle__chip span { font-size: .72rem; color: var(--ink-500); }
.cycle__chip--a { top: -6%; right: -10%; }
.cycle__chip--b { bottom: -4%; left: -12%; }

/* scroll cue + bottom fade into next section */
.hero__inner { padding-bottom: clamp(70px, 9vw, 120px); }
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .7rem; letter-spacing: .2em; font-weight: 700;
}
.scroll-cue .line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4; } 50% { transform: scaleY(1); opacity:1; } }

/* ============== PROBLEM — asymmetric, photographic ============== */
.problem-card { position: relative; }
.problem-card__media { aspect-ratio: 16 / 9; }
.problem-card__media .badge-no {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(5,15,40,.25);
}
.problem-card:hover .media img { transform: scale(1.05); }

/* pull-quote treatment for the bridging note */
.problem-note {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: 14px 20px 0;
}
.problem-note::before {
  content: "“";
  position: absolute;
  top: -38px; left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--blue-500);
  opacity: .16;
}

/* ============== WHY — refined cards ============== */
.why-card { position: relative; transition: transform .25s ease, background .25s ease; }
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.why-card__no {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: rgba(255,255,255,.30);
}

/* ============== SERVICES — accent corner + hover ============== */
.svc-card { position: relative; overflow: hidden; }
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--hl-teal-b));
  transition: width .3s ease;
}
.svc-card:hover::before { width: 100%; }
.svc-card__num { position: relative; }

/* ============== RESULTS — asymmetric masonry feel ============== */
.result-grid {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}
.result-card { grid-column: span 4; }
/* feature the 1st & 6th as wide tiles for rhythm */
.result-card--wide { grid-column: span 6; }
.result-card { position: relative; }
.result-card__media { aspect-ratio: 4 / 3; }
.result-card--wide .result-card__media { aspect-ratio: 16 / 7; }
.result-card .num-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 500;
  color: #fff;
  background: rgba(11,36,89,.6);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 4px 11px;
  backdrop-filter: blur(3px);
}
.result-card:hover .media img { transform: scale(1.06); }

/* ============== CASES — overlay caption style ============== */
.case-card { position: relative; }
.case-card__media { aspect-ratio: 4 / 3; }
.case-card:hover .media img { transform: none; }
.case-metric b { line-height: 1; }

/* ============== STATEMENT band flourish ============== */
.statement { position: relative; overflow: hidden; }
.statement__ghost {
  position: absolute;
  right: -10px; bottom: -40px;
  font-size: 6rem; line-height: 1;
  color: rgba(255,255,255,.06);
  font-weight: 700;
  pointer-events: none;
}

/* ============== FINAL — accent ring ============== */
.final { position: relative; }

/* reveal: gentle stagger via translate already handled */

/* ============== RESPONSIVE additions ============== */
@media (max-width: 1000px) {
  .result-grid { grid-template-columns: repeat(6, 1fr); }
  .result-card { grid-column: span 3; }
  .result-card--wide { grid-column: span 6; }
}
@media (max-width: 720px) {
  .shead { text-align: left; }
  .ghost-num { font-size: clamp(6rem, 30vw, 9rem); }
  .cycle__chip--a { top: -2%; right: -4%; padding: 10px 13px; }
  .cycle__chip--b { bottom: -2%; left: -4%; padding: 10px 13px; }
  .cycle__chip b { font-size: 1.05rem; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card, .result-card--wide { grid-column: span 1; }
  .result-card--wide .result-card__media { aspect-ratio: 4 / 3; }
  .scroll-cue { display: none; }
  .statement__ghost { font-size: 7rem; bottom: -20px; }
}
@media (max-width: 420px) {
  .result-grid { grid-template-columns: 1fr; }
}
