/* =========================================================
   LeadData — Base system (shared across all 3 directions)
   Primary brand color = petrol #066E87 (the "Data" in logo)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }

/* ---------- Brand tokens ---------- */
:root {
  --petrol:      #066E87;
  --petrol-700:  #045063;
  --petrol-600:  #055d73;
  --petrol-400:  #2a8ba3;
  --petrol-300:  #5fb0c2;
  --petrol-200:  #a9d6e0;
  --petrol-050:  #eef6f8;

  --gray-900: #15191b;
  --gray-800: #232a2d;
  --gray-700: #3a4448;
  --gray-600: #56636a;
  --gray-500: #748086;
  --gray-400: #98a3a8;
  --gray-300: #c3ccd0;
  --gray-200: #e1e7e9;
  --gray-100: #eef2f3;
  --gray-050: #f6f8f9;

  /* themable — defaults = Direction A (Éditorial) */
  --bg:        #ffffff;
  --bg-soft:   #f6f8f9;
  --bg-band:   #f0f5f6;
  --surface:   #ffffff;
  --ink:       #16201f;
  --ink-soft:  #4a565a;
  --ink-faint: #7b878c;
  --line:      #e4eaec;
  --line-strong:#cfd9dc;
  --accent:    #066E87;      /* secondary accent, changes per direction */
  --accent-ink:#066E87;
  --brand-on:  #066E87;      /* color for "Data" wordmark on light bg */

  --radius:   14px;
  --radius-lg:22px;
  --radius-sm: 9px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --shadow-sm: 0 1px 2px rgba(12,28,33,.05), 0 2px 8px rgba(12,28,33,.04);
  --shadow-md: 0 6px 24px rgba(8,40,49,.08), 0 2px 6px rgba(8,40,49,.05);
  --shadow-lg: 0 24px 60px rgba(6,40,49,.14), 0 6px 18px rgba(6,40,49,.08);

  --ease: cubic-bezier(.22,.61,.36,1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vh, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vh, 84px); }
.band { background: var(--bg-band); transition: background .5s var(--ease); }
.soft { background: var(--bg-soft); transition: background .5s var(--ease); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--petrol); opacity: .55;
}
.eyebrow--center::before { display: none; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.04; margin: 0; color: var(--ink); }
.h-xl { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.1; }
.lede { font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); font-weight: 400; letter-spacing: -.01em; max-width: 40ch; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.measure { max-width: 62ch; }

.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section-head.is-center { margin-inline: auto; align-items: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: 15.5px; letter-spacing: -.01em; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--petrol); color: #fff; box-shadow: 0 8px 20px -8px rgba(6,110,135,.65); }
.btn--primary:hover { background: var(--petrol-600); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(6,110,135,.6); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--petrol); color: var(--petrol); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--petrol); font-size: 15.5px; }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .35s var(--ease), box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.brand .lead { color: var(--ink); }
.brand .data { color: var(--brand-on); }
.brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 7px; align-self: center; transform: translateY(1px); }
.brand--logo { align-items: center; line-height: 1; min-width: 142px; }
.brand-logo { display: block; width: auto; height: 56px; max-width: 150px; object-fit: contain; }
.brand-logo--on-light { display: none; }
.site-header.is-scrolled .brand-logo--on-dark { display: none; }
.site-header.is-scrolled .brand-logo--on-light { display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: -.01em; position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content:""; position:absolute; left:0; right:100%; bottom: -2px; height: 1.5px; background: var(--petrol); transition: right .28s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* segmented controls (direction + lang) */
.seg { display: inline-flex; align-items: center; padding: 3px; gap: 2px; background: var(--gray-100); border: 1px solid var(--line); border-radius: 999px; }
.seg button { padding: 6px 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; border-radius: 999px; color: var(--ink-faint); background: transparent; transition: color .2s, background .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { color: var(--petrol); background: var(--surface); box-shadow: var(--shadow-sm); }
.seg--lang button { font-family: var(--ff-mono); font-size: 11.5px; padding: 6px 9px; }
.lang-globe { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-faint); padding-left: 7px; padding-right: 1px; }
.lang-globe svg { display: block; }
.nav-toggle { display: none; }

/* ---------- Generic card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---------- Reveal on scroll (transform-only; NEVER touches opacity → content always visible) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: ld-rise .7s var(--ease); }
}
@keyframes ld-rise {
  from { transform: translateY(16px); }
  to   { transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer { background: linear-gradient(165deg, #07313d 0%, #052730 70%, #04202a 100%); color: #c4dde3; padding-block: 72px 40px; position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 80% at 88% 0%, rgba(33,201,221,.1), transparent 55%); pointer-events:none; }
.footer .container { position: relative; z-index: 1; }
.footer a { color: #c4dde3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand .lead { color: #fff; }
.footer .brand .data { color: var(--petrol-300); }
.footer .brand-logo { height: 58px; max-width: 156px; }
.footer h4 { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #6f9aa6; margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul li { font-size: 15px; color: #9fc1c9; }
.footer ul a { color: #9fc1c9; font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: #6f9aa6; flex-wrap: wrap; }

/* ---------- Striped image placeholder ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--gray-100) 0 11px, var(--gray-050) 11px 22px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph span { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); background: var(--surface); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-right .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand--logo { min-width: 132px; }
  .brand-logo { height: 52px; max-width: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
}
