/*
Theme Name: Latent Fintech
Theme URI: https://fintech.alphaobs.com/
Author: Latent
Description: Institution design for Latent's fintech site. Navy, warm white and gold; Libre Franklin with Source Serif 4; architectural photography; SVG infographics; Insights blog.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: latent-fintech
*/

/* ============ The Institution: tokens ============ */
:root {
  --navy: #0c203a;
  --navy-2: #091830;
  --bg: #fcfbf8;
  --bg-2: #f3f1ec;
  --txt: #1a2433;
  --muted: #5b6675;
  --gold: #96762e;
  --line: rgba(12, 32, 58, 0.14);
  --line-strong: rgba(12, 32, 58, 0.4);
  --muted-onnavy: #b7c2d2;
  --line-onnavy: rgba(255, 255, 255, 0.25);
  --navy-hover: #16355c;
  --light-hover: #e8ecf2;
  --line-gold: rgba(150, 118, 46, 0.45);
  --txt-longform: #333d4d;   /* softer body for long-form posts */
  /* type scale: 7 steps + display clamps */
  --fs-label: 0.75rem;
  --fs-cta: 0.85rem;
  --fs-body-s: 0.95rem;
  --fs-body: 1rem;
  --fs-lede: 1.05rem;
  --fs-h3: 1.1rem;
  --fs-h3-lg: 1.35rem;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--sans); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.18; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

.eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}

/* ============ Reveal ============ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-size: var(--fs-cta);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light-hover); }
.btn-lg { padding: 16px 36px; }

.text-link {
  font-size: var(--fs-cta);
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: center;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--gold); }

/* ============ Utility bar ============ */
.utility {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: var(--navy);
  color: var(--muted-onnavy);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  padding: 7px 24px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 248, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { margin-right: auto; display: flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--fs-cta);
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 13px;
}
.nav-links a:hover { color: var(--navy); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--navy); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 24px; }
}

/* ============ Hero ============ */
.hero { padding: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 620px;
}
.hero-copy {
  padding: 92px 56px 72px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .lede { color: var(--muted); max-width: 560px; margin: 26px 0 34px; font-size: var(--fs-lede); }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-photo {
  position: relative;
  background: var(--navy);
  min-height: 400px;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trusted { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 20px; }
.trusted p {
  color: var(--muted);
  margin-bottom: 10px;
}
.trusted ul { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; }
.trusted li { font-size: var(--fs-body-s); font-weight: 600; color: var(--navy); opacity: 0.75; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 24px 56px; }
  .hero-photo { order: -1; min-height: 240px; }
}

/* ============ Figures band ============ */
.figures { background: var(--navy); color: #fff; padding: 56px 0; }
.figures-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.figures-inner > div > strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.figures span { color: var(--muted-onnavy); font-size: var(--fs-body-s); max-width: 260px; display: block; margin-top: 6px; }
@media (max-width: 720px) { .figures-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ============ Mission band ============ */
.mission {
  background:
    linear-gradient(rgba(9, 24, 48, 0.88), rgba(9, 24, 48, 0.88)),
    url("assets/img/skyline.jpg") center / cover no-repeat;
  color: #fff;
  padding: 108px 0;
}
.mission-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
.mission figure { margin: 0; }
.mission blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
}
.mission figure:last-child blockquote { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted-onnavy); }
.mission figcaption {
  margin-top: 18px;
  color: var(--gold);
}
@media (max-width: 880px) { .mission-inner { grid-template-columns: 1fr; gap: 44px; } }

/* ============ Services ============ */
.services { background: var(--bg-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 48px;
  margin-top: 52px;
}
.svc { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.svc h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: var(--fs-body-s); }
.svc p.svc-tag {
  font-size: var(--fs-label);
  color: var(--gold);
  margin: 0;
}

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin-top: 44px; border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-size: var(--fs-h3);
  font-weight: 600;
  padding: 20px 40px 20px 0;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 640px; }

/* ============ Contact ============ */
.contact { background: var(--navy); color: #fff; padding: 96px 0; }
.contact-inner { max-width: 660px; text-align: center; margin: 0 auto; }
.contact-logo { height: 52px; width: auto; margin-bottom: 28px; }
.contact h2 { color: #fff; }
.contact p { color: var(--muted-onnavy); margin: 14px 0 36px; }
.contact-rows { margin: 0 0 36px; border-top: 1px solid var(--line-onnavy); text-align: left; }
.contact-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-rows dt {
  color: var(--muted-onnavy);
}
.contact-rows dd { margin: 0; font-size: var(--fs-body-s); }
.contact-rows a:hover { color: var(--gold); }

/* ============ Focus ============ */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============ Delivery infographic ============ */
.delivery { background: var(--bg-2); }
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 28px 18px;
  margin-top: 52px;
  box-shadow: 0 1px 2px rgba(12, 32, 58, 0.05);
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.chart-title { font-weight: 600; font-size: var(--fs-h3); }
.chart-sub { color: var(--muted); font-size: var(--fs-cta); }
.chart-badge {
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .grid-line { stroke: rgba(12, 32, 58, 0.1); }
.chart-card .grid-base { stroke: rgba(12, 32, 58, 0.35); }
.chart-card .curve-line { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.chart-card .curve-area { fill: rgba(12, 32, 58, 0.07); }
.chart-card .curve-dot { fill: var(--navy); }
.chart-card .curve-dot.gold { fill: var(--gold); }
.chart-card .axis-txt, .chart-card .phase-tick { font: 600 12px var(--sans); fill: var(--muted); letter-spacing: 0.04em; }
.chart-card .phase-tick.active { fill: var(--gold); }
.chart-card .phase-lbl { font: 600 13px var(--sans); fill: var(--navy); }
.chart-card .curve-note { font: italic 13px var(--serif); fill: var(--muted); }

/* ============ Case studies (image-led) ============ */
.cases { background: var(--bg-2); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 52px;
}
.case-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.case-card:hover { box-shadow: 0 10px 28px rgba(12, 32, 58, 0.12); transform: translateY(-3px); }
.case-media {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}
.case-media img { max-height: 100%; width: auto; max-width: 70%; object-fit: contain; }
.case-media.case-media-photo { padding: 0; }
.case-media.case-media-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-sector {
  color: var(--gold);
  margin: 0;
}
.case-card h3 { font-size: var(--fs-h3); font-weight: 600; }
.case-card .case-desc { color: var(--muted); font-size: var(--fs-body-s); margin: 0; flex: 1; }
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.case-chips span {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ============ Figures mini-viz ============ */
.figures .fig-viz { margin-top: 14px; }
.figures .fig-viz svg { display: block; width: 130px; height: 26px; }
.fig-bar { fill: rgba(255, 255, 255, 0.28); }
.fig-bar.hi { fill: var(--gold); }

/* ============ Insights (blog) ============ */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0 64px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); color: #fff; }
.page-hero p { color: var(--muted-onnavy); max-width: 640px; margin: 18px 0 0; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  padding: 72px 0 88px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: 0 10px 28px rgba(12, 32, 58, 0.12); transform: translateY(-3px); }
.post-card img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; display: block; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-date { color: var(--gold); }
.post-card h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: var(--fs-body-s); margin: 0; }

/* single post */
.post-hero { padding: 64px 0 8px; }
.post-hero .post-date { display: block; margin-bottom: 14px; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 820px; }
.post-hero .post-byline { color: var(--muted); font-size: var(--fs-body-s); margin-top: 16px; }
.post-content { max-width: 760px; padding: 32px 0 88px; }
.post-content h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.post-content h3 { font-size: var(--fs-h3); margin: 28px 0 10px; }
.post-content p, .post-content li { color: var(--txt-longform); font-size: var(--fs-body); line-height: 1.75; }
.post-content ul { padding-left: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--txt); }
.post-back { display: inline-block; margin: 0 0 28px; font-weight: 600; font-size: var(--fs-cta); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.post-back:hover { color: var(--gold); }

/* ============ Infographic animation ============
   Plays when the ancestor [data-reveal] gains .in (see assets/js/main.js).
   Elements start hidden only once .in applies; before that the whole card is
   already hidden by the reveal itself. */
.in .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: lft-draw 2.8s cubic-bezier(0.4, 0, 0.2, 1) var(--d, 0s) forwards;
}
.in .draw-quick {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: lft-draw 0.8s ease-out var(--d, 0s) forwards;
}
@keyframes lft-draw { to { stroke-dashoffset: 0; } }

.in .pop {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: lft-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s) forwards;
}
@keyframes lft-pop { to { transform: scale(1); } }

.in .rise {
  opacity: 0;
  transform: translateY(8px);
  animation: lft-rise 1s ease-out var(--d, 0s) forwards;
}
@keyframes lft-rise { to { opacity: 1; transform: translateY(0); } }

.in .fade {
  opacity: 0;
  animation: lft-fade 1.4s ease-out var(--d, 0s) forwards;
}
@keyframes lft-fade { to { opacity: 1; } }

/* figures band: bars grow, region dots pop */
.in .fig-viz rect, .in .fig-viz circle {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: lft-grow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.in .fig-viz circle { transform: scale(0); transform-origin: center; animation-name: lft-pop; }
.in .fig-viz rect:nth-child(1), .in .fig-viz circle:nth-child(1) { animation-delay: 0.3s; }
.in .fig-viz rect:nth-child(2), .in .fig-viz circle:nth-child(2) { animation-delay: 0.55s; }
.in .fig-viz rect:nth-child(3), .in .fig-viz circle:nth-child(3) { animation-delay: 0.8s; }
.in .fig-viz rect:nth-child(4) { animation-delay: 1.05s; }
.in .fig-viz rect:nth-child(5) { animation-delay: 1.3s; }
@keyframes lft-grow { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .in .draw, .in .draw-quick, .in .pop, .in .rise, .in .fade,
  .in .fig-viz rect, .in .fig-viz circle {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* ============ Nav dropdown (What we build) ============ */
.nav-drop { position: relative; }
.nav-drop-btn {
  font-family: var(--sans);
  font-size: var(--fs-cta);
  font-weight: 500;
  line-height: 1.65;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 8px 13px;
  cursor: pointer;
}
@media (min-width: 881px) { .nav-links { align-items: center; } }
.nav-drop-btn:hover { color: var(--navy); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(12, 32, 58, 0.14);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  z-index: 60;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: block; }
/* invisible bridge over the 10px gap so the menu survives the pointer's travel */
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop-menu a { display: block; padding: 9px 18px !important; }
.nav-drop-menu a:hover { background: var(--bg-2); color: var(--navy); }
@media (max-width: 880px) {
  .nav-drop-menu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 6px 14px;
  }
  .nav-drop:hover .nav-drop-menu { display: none; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop-btn { display: block; padding: 14px 24px 6px; width: 100%; text-align: left; }
}

/* ============ Footer grid ============ */
.footer { border-top: 1px solid var(--line); padding: 52px 0 26px; background: var(--bg-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.6fr 1.1fr; /* wide middle col: full service names on one line */
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.footer-title { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: var(--fs-body-s); }
.footer-regions { font-weight: 600; color: var(--gold); letter-spacing: 0.06em; }
.footer-head {
  color: var(--gold);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: var(--fs-body-s); color: var(--muted); padding: 4px 0; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--navy); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ Service pages / shared blocks ============ */
/* .svc-block inherits the section default (80px) */
.svc-block.alt { background: var(--bg-2); }
.section-lede { color: var(--muted); max-width: 620px; }
.page-hero .hero-cta { margin-top: 28px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; max-width: 820px; }
.steps li {
  display: flex;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step-num {
  font-weight: 700;
  font-size: var(--fs-h3-lg);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex: none;
  width: 46px;
}
.steps h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: var(--fs-body-s); margin: 0; }

.audience-list { margin-top: 44px; border-top: 1px solid var(--line-strong); max-width: 860px; }
.audience-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.audience-row h3 { font-size: var(--fs-h3); font-weight: 600; }
.audience-row p { margin: 0; color: var(--muted); font-size: var(--fs-body-s); }
@media (max-width: 720px) { .audience-row { grid-template-columns: 1fr; gap: 6px; } }

/* ============ Case detail ============ */
.case-detail { padding: 72px 0 8px; }
.case-detail-media { margin: 0 0 40px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.case-detail-media img { display: block; width: 100%; max-height: 480px; object-fit: cover; object-position: top; }
.case-detail-media.contain { padding: 56px; }
.case-detail-media.contain img { object-fit: contain; max-height: 150px; width: auto; max-width: 420px; margin: 0 auto; }
.case-lede { font-family: var(--serif); font-size: var(--fs-h3-lg); line-height: 1.5; max-width: 780px; }
.case-built { margin: 28px 0 8px; }
.case-section { max-width: 760px; margin-top: 36px; }
.case-section h2 { font-size: var(--fs-h3-lg); margin-bottom: 10px; }
.case-section p { color: var(--muted); }
.case-links { margin: 44px 0 72px; }


/* ============ Restructure additions ============ */
.figures-title { color: #fff; max-width: 720px; }
.figures-lede { color: var(--muted-onnavy); max-width: 760px; margin: 16px 0 40px; }
.figures-lede strong { color: #fff; }
.svc-link { text-decoration: none; display: block; transition: transform 0.2s ease; }
.svc-link:hover { transform: translateY(-3px); }
.svc-link:hover h3 { color: var(--gold); }
.hww-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-top: 12px; }
.hww-grid .steps { margin-top: 20px; }
.hww-grid .chart-card { margin-top: 20px; }
@media (max-width: 980px) { .hww-grid { grid-template-columns: 1fr; } }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 720px) { .contact-page-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-page-grid h2 { font-size: var(--fs-h3-lg); margin-bottom: 18px; }
.contact-rows-light { border-top-color: var(--line-strong); margin-bottom: 30px; }
.contact-rows-light > div { border-bottom-color: var(--line); }
.contact-rows-light dt { color: var(--gold); }
.contact-rows-light dd { color: var(--txt); text-align: right; }
.contact-rows-light a:hover { color: var(--gold); }
.faq { background: var(--bg-2); }

/* ============ Client logo strip (trust band) ============ */
.client-strip { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 48px; list-style: none; padding: 0; }
.client-strip li {
  background: #fff;
  border-radius: 4px;
  height: 66px;
  min-width: 170px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-strip img { max-height: 38px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.client-tile-parrot { background: #d2fd5c; padding: 0; overflow: hidden; }
.client-tile-parrot img { max-height: none; max-width: none; height: 66px; width: auto; }

/* ============ Design-review fixes ============ */
.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: 16px; top: -48px;
  z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 4px 4px;
  text-decoration: none; font-weight: 600; font-size: var(--fs-cta);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.nav-links a[aria-current="page"], .nav-drop-btn.current { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }

.nav-mobile-cta { display: none; }
@media (max-width: 880px) {
  .nav-mobile-cta { display: block; }
  .nav-mobile-cta a { color: var(--navy) !important; font-weight: 600; }
}

/* comfortable touch targets on touch devices */
@media (hover: none) {
  .nav-links a, .nav-drop-btn { padding-top: 12px; padding-bottom: 12px; }
  .footer-col li { padding: 10px 0; }
  .text-link, .arrow-link, .post-back { padding: 10px 0; display: inline-block; }
}

/* reading measure */
.post-content { max-width: 640px; }

/* ============ Unified micro-label system ============
   All uppercase gold/muted micro-labels share one base; per-context rules
   above only set color where they differ. */
.eyebrow, .svc-tag, .trusted p, .mission figcaption, .chart-badge,
.case-sector, .post-date, .footer-head, .contact-rows dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============ Photo page heroes ============ */
.page-hero.has-photo { padding: 0; overflow: hidden; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.page-hero-grid > div:first-child { padding: 72px 0 64px; }
.page-hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 340px;
  margin-right: -24px; /* bleed to container edge */
}
.page-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-photo::after {
  /* keeps bright photos sitting comfortably on the navy band */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 48, 0.18);
}
.page-hero .hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-link.onnavy { color: #fff; }
.text-link.onnavy:hover { color: var(--gold); }
@media (max-width: 880px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .page-hero-grid > div:first-child { padding: 56px 0 48px; }
  .page-hero-photo { min-height: 220px; margin: 0 -24px; }
}

/* ============ System flow diagram ============ */
.chart-flow { max-width: 780px; }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-box rect { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1; }
.flow-box.out rect { stroke: var(--gold); }
.flow-box text { font-size: 13px; font-weight: 600; fill: var(--navy); }
.flow-hub rect { fill: var(--navy); }
.flow-hub text { font-size: 13.5px; font-weight: 600; fill: #fff; letter-spacing: 0.02em; }
.flow-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow-line.gold { stroke: var(--gold); }

/* ============ Mission band body copy ============ */
.mission-body { color: var(--muted-onnavy); margin: 18px 0 0; font-size: var(--fs-body-s); max-width: 46ch; }
.mission-body + figcaption { margin-top: 18px; }

/* single post featured image */
.post-feature { margin: 36px 0 0; max-width: 820px; }
.post-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* what-we-do card icons */
.svc-icon { display: block; margin-bottom: 14px; }
.svc-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-icon .accent { stroke: var(--gold); }

/* contact form */
.contact-form { max-width: 560px; margin-top: 8px; }
.contact-form label { display: block; font-size: var(--fs-cta); font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  font: inherit;
  font-size: var(--fs-body-s);
  color: var(--txt);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 540px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form button { margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { padding: 12px 16px; border-radius: 3px; max-width: 560px; }
.form-note-ok { background: #e8f2e8; border: 1px solid #9dbf9d; color: #1e4620; }
.form-note-err { background: #f7ecec; border: 1px solid #cf9f9f; color: #5c1f1f; }
.contact-book { margin-top: 40px; }
.contact-page-grid > div > h2 { margin-bottom: 18px; }

/* why-latent: 2x2 so the fourth card never sits alone (Chinmay Loom note) */
.why-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

/* required markers + phone country-code selector */
.req { color: var(--gold); }
.phone-field { position: relative; margin-bottom: 16px; }
.phone-field > label { display: block; font-size: var(--fs-cta); font-weight: 600; color: var(--navy); margin-bottom: 0; }
.phone-row { display: flex; align-items: stretch; margin-top: 6px; }
.phone-row .dial-btn { margin-top: 0; } /* cancel the submit-button margin rule */
.dial-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: var(--fs-body-s);
  color: var(--txt);
  padding: 11px 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  cursor: pointer;
  white-space: nowrap;
}
.dial-btn:hover { background: var(--light-hover); }
#dial-flag { font-size: 1.15em; line-height: 1; }
.phone-row input[type="tel"] { margin-top: 0; border-radius: 0 3px 3px 0; }
.dial-pop {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  width: min(320px, 100%);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(12, 32, 58, 0.15);
  display: block;
}
.dial-pop[hidden] { display: none; }
.dial-pop input { border: 0; border-bottom: 1px solid var(--line); border-radius: 3px 3px 0 0; margin: 0; padding: 10px 12px; width: 100%; font: inherit; font-size: var(--fs-body-s); }
.contact-form .dial-pop input:focus { outline: none; border: 0; border-bottom: 2px solid var(--gold); padding-bottom: 9px; box-shadow: none; }
.dial-pop ul { list-style: none; margin: 0; padding: 4px 0; max-height: 240px; overflow-y: auto; }
.dial-pop li { padding: 7px 12px; font-size: var(--fs-body-s); cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.dial-pop li:hover, .dial-pop li:focus { background: var(--bg-2); outline: none; }
.dial-pop li em { font-style: normal; color: var(--muted); margin-left: auto; }
.field-err { display: block; color: #8a2626; font-size: var(--fs-cta); margin-top: 6px; }
.field-err[hidden] { display: none; }

/* flag images in the dial selector */
#dial-flag img, .dial-pop li img { display: inline-block; vertical-align: -2px; border: 1px solid var(--line); max-width: none; width: 20px; height: 15px; }
.dial-btn > span { flex: none; }
.dial-pop li span { line-height: 1; }
