/* =============================================================================
   MERIDIAN — Oracle Licensing Advisory
   Design System  ·  v1
   -----------------------------------------------------------------------------
   A reference stylesheet. Tokens first, then primitives, then components.
   Type:  Newsreader (display serif) · Hanken Grotesk (body) · IBM Plex Mono (data)
   Color: deep navy ink · warm paper · restrained brass accent
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* --- Ink / navy scale (the brand spine) --- */
  --ink-950: oklch(0.15 0.038 256);
  --ink-900: oklch(0.18 0.040 256);
  --ink-850: oklch(0.21 0.040 256);
  --ink-800: oklch(0.25 0.038 256);
  --ink-700: oklch(0.34 0.034 256);
  --ink-600: oklch(0.46 0.030 256);
  --ink-500: oklch(0.56 0.024 256);
  --ink-400: oklch(0.66 0.020 256);

  /* --- Paper / neutrals --- */
  --paper:    oklch(0.976 0.006 90);
  --paper-2:  oklch(0.948 0.008 88);
  --paper-3:  oklch(0.918 0.009 86);
  --white:    oklch(0.995 0.003 95);
  --line:     oklch(0.882 0.008 88);
  --line-2:   oklch(0.835 0.009 86);
  --line-dark: oklch(0.40 0.030 256 / 0.45);
  --line-dark-2: oklch(0.50 0.030 256 / 0.30);

  /* --- Accent: brass (value / premium, used sparingly) --- */
  --brass:      oklch(0.75 0.105 76);
  --brass-deep: oklch(0.66 0.112 70);
  --brass-soft: oklch(0.86 0.060 80);

  /* --- Semantic --- */
  --bg:        var(--paper);
  --fg:        var(--ink-900);
  --fg-muted:  var(--ink-600);
  --fg-subtle: var(--ink-500);
  --accent:    var(--brass-deep);

  /* on-dark */
  --on-dark:        oklch(0.93 0.010 90);
  --on-dark-muted:  oklch(0.74 0.018 256);
  --on-dark-subtle: oklch(0.62 0.022 256);

  /* --- Type families --- */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* --- Fluid type scale --- */
  --t-mono:  0.74rem;                                   /* eyebrows / labels */
  --t-sm:    clamp(0.84rem, 0.80rem + 0.2vw, 0.92rem);
  --t-base:  clamp(1.0rem, 0.95rem + 0.25vw, 1.12rem);
  --t-lead:  clamp(1.18rem, 1.05rem + 0.55vw, 1.42rem);
  --t-h4:    clamp(1.25rem, 1.10rem + 0.7vw, 1.6rem);
  --t-h3:    clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --t-h2:    clamp(2.1rem, 1.65rem + 2.0vw, 3.5rem);
  --t-h1:    clamp(2.9rem, 2.1rem + 3.6vw, 5.6rem);
  --t-mega:  clamp(4rem, 2.2rem + 8vw, 9rem);

  /* --- Spacing / layout --- */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.18 0.04 256 / 0.06), 0 2px 8px oklch(0.18 0.04 256 / 0.05);
  --shadow-md: 0 4px 12px oklch(0.18 0.04 256 / 0.08), 0 18px 40px oklch(0.18 0.04 256 / 0.08);
  --shadow-lg: 0 12px 30px oklch(0.18 0.04 256 / 0.12), 0 40px 80px oklch(0.18 0.04 256 / 0.12);
}

/* ----------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brass-soft); color: var(--ink-950); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 420;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
p  { text-wrap: pretty; }

/* ----------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1440px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.ink-section {
  background: var(--ink-900);
  color: var(--on-dark);
}
.ink-section h1, .ink-section h2, .ink-section h3, .ink-section h4 { color: var(--white); }

/* Editorial eyebrow: 01 — LABEL */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.8em;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.ink-section .eyebrow { color: var(--brass); }
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--fg-muted);
  font-weight: 380;
  max-width: 40ch;
}
.ink-section .lead { color: var(--on-dark-muted); }

.measure { max-width: 62ch; }

/* hairline rule */
.rule { height: 1px; background: var(--line); border: 0; }
.ink-section .rule { background: var(--line-dark); }

/* ----------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --bg: var(--ink-900);
  --col: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--col);
  background: var(--bg);
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease), color 0.3s;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { box-shadow: var(--shadow-md); }

.btn-primary { --bg: var(--brass-deep); --col: var(--ink-950); border-color: var(--brass-deep); }
.btn-primary:hover { --bg: var(--brass); }

.btn-dark { --bg: var(--ink-900); --col: var(--white); }
.btn-dark:hover { --bg: var(--ink-800); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--ink-900);
}
.btn-ghost:hover { background: var(--ink-900); color: var(--white); box-shadow: none; }
.ink-section .btn-ghost { color: var(--white); border-color: var(--line-dark-2); }
.ink-section .btn-ghost:hover { background: var(--white); color: var(--ink-950); border-color: var(--white); }

/* text link with animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--fg);
  position: relative;
  padding-block: 0.2em;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link .arrow { transition: transform 0.4s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.ink-section .link { color: var(--white); }

/* ----------------------------------------------------------------------------
   5. NAV
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.976 0.006 90 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 oklch(0.18 0.04 256 / 0.04), var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.brand .mark {
  width: 26px; height: 26px;
  flex: none;
}
.brand b { font-weight: 500; }
.brand .sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: block;
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.5rem + 1.4vw, 2.2rem);
}
.nav-links a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    padding: 8px; margin-right: -8px;
  }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: 0.3s var(--ease); }
  body[data-menu="open"] .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body[data-menu="open"] .nav-toggle span:nth-child(2) { opacity: 0; }
  body[data-menu="open"] .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed;
  inset: 74px 0 0 0;
  z-index: 99;
  background: var(--paper);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
body[data-menu="open"] .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.8rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a .n { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-subtle); }
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }

/* ----------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  background: var(--ink-900);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(4rem, 3rem + 5vw, 7rem);
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 3rem; } }

.hero h1 {
  font-weight: 380;
  margin-top: 1.6rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass);
}
.hero-sub {
  margin-top: 1.8rem;
  font-size: var(--t-lead);
  color: var(--on-dark-muted);
  font-weight: 380;
  max-width: 46ch;
}
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Hero data motif: entitlement vs deployment gap */
.gapcard {
  background: oklch(0.21 0.04 256 / 0.6);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  backdrop-filter: blur(4px);
}
.gapcard .gc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-subtle);
  padding-bottom: 1.2rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-dark);
}
.bar-row { margin-bottom: 1.5rem; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: var(--t-sm); margin-bottom: 0.6rem; color: var(--on-dark-muted);
}
.bar-label .v { font-family: var(--mono); color: var(--white); font-size: 0.95rem; }
.bar-track {
  height: 12px; border-radius: 2px;
  background: oklch(0.30 0.03 256);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: var(--w, 50%);
  border-radius: 2px;
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}
.bar-fill.deploy { background: linear-gradient(90deg, var(--brass-deep), var(--brass)); }
.bar-fill.entitle { background: oklch(0.55 0.03 256); }
.gc-foot {
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.gc-foot .gap-num { font-family: var(--serif); font-size: 2rem; color: var(--brass); line-height: 1; }
.gc-foot .gap-lbl { font-size: var(--t-sm); color: var(--on-dark-muted); max-width: 18ch; text-align: right; }

/* trust strip */
.trust-strip {
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.trust-inner {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  padding-block: 1.6rem;
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-subtle);
}
.trust-inner .tlabel { color: var(--on-dark-muted); }
.trust-logos { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); flex-wrap: wrap; }
.trust-logos .lg {
  font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0;
  text-transform: none; color: var(--on-dark-muted); opacity: 0.85;
}

/* ----------------------------------------------------------------------------
   7. SECTION HEADER
   ------------------------------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.sec-head .sh-title { margin-top: 1.4rem; }
.sec-head .sh-aside { padding-bottom: 0.4rem; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------------
   8. STAKES (problem framing)
   ------------------------------------------------------------------------- */
.stakes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 820px) { .stakes-grid { grid-template-columns: 1fr; } }
.stake {
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem) clamp(1.2rem, 0.5rem + 2vw, 2.4rem);
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}
.stakes-grid .stake:nth-child(3n) { border-right: 0; }
@media (max-width: 820px) { .stake { border-right: 0; } }
.stake .s-num { font-family: var(--mono); font-size: var(--t-mono); color: var(--brass); letter-spacing: 0.12em; }
.stake h3 { font-size: var(--t-h4); margin: 1rem 0 0.7rem; color: var(--white); }
.stake p { color: var(--on-dark-muted); font-size: var(--t-sm); line-height: 1.65; }

/* ----------------------------------------------------------------------------
   9. SERVICES
   ------------------------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 4rem 1fr 1.1fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(2rem, 1.4rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s var(--ease);
}
.svc::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--brass-deep); transition: width 0.5s var(--ease);
}
.svc:hover { background: var(--white); }
.svc:hover::after { width: 100%; }
.svc .svc-num { font-family: var(--mono); font-size: var(--t-sm); color: var(--fg-subtle); padding-top: 0.5rem; }
.svc h3 { font-size: var(--t-h3); }
.svc .svc-desc { color: var(--fg-muted); font-size: var(--t-base); }
.svc .svc-tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35em 0.7em; border: 1px solid var(--line-2); border-radius: 2px; color: var(--fg-muted);
}
.svc .svc-go {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ink-900);
  display: grid; place-items: center;
  transition: background 0.35s var(--ease), color 0.35s, transform 0.4s var(--ease);
}
.svc:hover .svc-go { background: var(--ink-900); color: var(--white); transform: rotate(-45deg); }
@media (max-width: 820px) {
  .svc { grid-template-columns: 1fr; gap: 0.8rem; }
  .svc .svc-go { display: none; }
}

/* ----------------------------------------------------------------------------
   10. STATS BAND
   ------------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--ink-900);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem) clamp(1.2rem, 0.6rem + 1.5vw, 2rem);
}
.stat .num {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem);
  line-height: 1; color: var(--white);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 0.04em;
}
.stat .num .suffix { color: var(--brass); font-size: 0.55em; }
.stat .num .prefix { color: var(--brass); font-size: 0.55em; }
.stat .slabel { margin-top: 0.9rem; color: var(--on-dark-muted); font-size: var(--t-sm); line-height: 1.5; max-width: 22ch; }

/* ----------------------------------------------------------------------------
   11. PROCESS
   ------------------------------------------------------------------------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  counter-reset: step;
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: var(--t-mono);
  color: var(--accent); letter-spacing: 0.1em;
}
.step .step-line { position: absolute; top: 0.55rem; left: 2.6rem; right: -1.5rem; height: 1px; background: var(--line); }
.step:last-child .step-line { display: none; }
@media (max-width: 900px) { .step .step-line { display: none; } }
.step h3 { font-size: var(--t-h4); margin-bottom: 0.7rem; }
.step p { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.6; }

/* ----------------------------------------------------------------------------
   12. CASE STUDIES
   ------------------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 0.8rem + 1.5vw, 1.8rem); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.case .c-sector { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }
.case .c-result {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
  line-height: 1; margin: 1.4rem 0 0.3rem; color: var(--ink-900);
  letter-spacing: -0.02em;
}
.case .c-result .unit { color: var(--brass-deep); font-size: 0.5em; }
.case .c-headline { font-size: var(--t-base); color: var(--fg); font-weight: 600; margin-bottom: 0.5rem; }
.case .c-desc { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.6; flex: 1; }
.case .c-foot { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display:flex; justify-content: space-between; align-items:center; }
.case .c-foot .meta { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-subtle); letter-spacing: 0.05em; }

/* ----------------------------------------------------------------------------
   13. WHY US / TEAM
   ------------------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.why-list { margin-top: 2rem; }
.why-item { padding-block: 1.4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .wi-mark { font-family: var(--mono); font-size: var(--t-mono); color: var(--brass-deep); padding-top: 0.35rem; letter-spacing: 0.1em; }
.why-item h4 { font-size: var(--t-h4); margin-bottom: 0.4rem; }
.why-item p { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.6; }

/* generic image placeholder (labeled, striped) */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, oklch(0.90 0.008 88) 0 12px, oklch(0.93 0.008 88) 12px 24px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.ph.tall { aspect-ratio: 4 / 5; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph .ph-tag {
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-600);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.5em 0.9em; border-radius: 2px;
}
.ph.dark {
  background: repeating-linear-gradient(135deg, oklch(0.22 0.04 256) 0 12px, oklch(0.25 0.04 256) 12px 24px);
  border-color: var(--line-dark);
}
.ph.dark .ph-tag { color: var(--on-dark-muted); background: var(--ink-900); border-color: var(--line-dark); }

/* ----------------------------------------------------------------------------
   14. FAQ
   ------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding-block: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  font-family: var(--serif); font-size: var(--t-h4); line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.qa-q:hover { color: var(--accent); }
.qa-icon { flex: none; width: 22px; height: 22px; position: relative; }
.qa-icon::before, .qa-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.3s;
}
.qa-icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.qa-icon::after  { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.qa[data-open="true"] .qa-icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.qa-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.qa[data-open="true"] .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { color: var(--fg-muted); max-width: 64ch; padding-bottom: 1.7rem; }

/* ----------------------------------------------------------------------------
   15. CTA
   ------------------------------------------------------------------------- */
.cta {
  background: var(--ink-900); color: var(--on-dark);
  position: relative; overflow: hidden;
}
.cta-inner { position: relative; text-align: center; max-width: 760px; margin-inline: auto; }
.cta h2 { font-size: var(--t-h1); font-weight: 380; }
.cta h2 em { font-style: italic; color: var(--brass); }
.cta .lead { margin-inline: auto; margin-top: 1.4rem; max-width: 48ch; text-align: center; }
.cta-actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta .glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 800px; max-height: 800px;
  border-radius: 50%; left: 50%; top: 120%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, oklch(0.66 0.112 70 / 0.22), transparent 60%);
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------------------- */
.footer { background: var(--ink-950); color: var(--on-dark-muted); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer .f-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); display:flex; align-items:center; gap: 0.6rem; }
.footer .f-blurb { margin-top: 1.2rem; font-size: var(--t-sm); max-width: 32ch; line-height: 1.6; }
.footer h5 { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-subtle); margin-bottom: 1.2rem; font-weight: 500; }
.footer .f-col a { display: block; font-size: var(--t-sm); padding-block: 0.4rem; color: var(--on-dark-muted); transition: color 0.2s; }
.footer .f-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--on-dark-subtle); }
.footer-bottom .disclaimer { max-width: 60ch; text-transform: none; letter-spacing: 0; line-height: 1.5; }

/* ----------------------------------------------------------------------------
   17. INNER PAGE BITS
   ------------------------------------------------------------------------- */
.page-hero { background: var(--ink-900); color: var(--on-dark); position: relative; overflow: hidden; }
.breadcrumb { display: flex; gap: 0.6rem; align-items: center; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-subtle); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { margin-top: 1.6rem; max-width: 18ch; font-weight: 380; }
.page-hero h1 em { font-style: italic; color: var(--brass); }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-h3); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: var(--t-h4); margin: 2rem 0 0.7rem; }
.prose p { color: var(--fg-muted); margin-bottom: 1.1rem; }
.prose p strong { color: var(--fg); font-weight: 600; }
.prose ul.bullets { margin: 1rem 0 1.6rem; }
.prose ul.bullets li { position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem; color: var(--fg-muted); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; background: var(--brass-deep); border-radius: 50%; }
.prose ul.bullets li strong { color: var(--fg); font-weight: 600; }

.callout {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brass-deep);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2rem 0;
}
.callout .co-label { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 0.6rem; }
.callout p { margin: 0; color: var(--fg); }

.sidebar-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; position: sticky; top: 96px; }
.sidebar-card h4 { font-size: var(--t-h4); margin-bottom: 1rem; }
.sidebar-card .sc-row { display: flex; justify-content: space-between; padding-block: 0.7rem; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.sidebar-card .sc-row:last-of-type { border-bottom: 0; }
.sidebar-card .sc-row .k { color: var(--fg-subtle); }
.sidebar-card .sc-row .v { font-weight: 600; font-family: var(--mono); font-size: 0.82rem; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-top: 1.4rem; }

.layout-2col { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .layout-2col { grid-template-columns: 1fr; } .sidebar-card { position: static; } }

/* big pull metric used on case page */
.metric-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 700px) { .metric-hero { grid-template-columns: 1fr; } }
.metric-hero .mh { background: var(--white); padding: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
.metric-hero .mh .num { font-family: var(--serif); font-size: clamp(2.4rem,1.8rem+2vw,3.6rem); line-height: 1; color: var(--ink-900); letter-spacing: -0.02em; }
.metric-hero .mh .num .unit { color: var(--brass-deep); font-size: 0.5em; }
.metric-hero .mh .lbl { margin-top: 0.8rem; font-size: var(--t-sm); color: var(--fg-muted); }

/* ----------------------------------------------------------------------------
   18. SCROLL REVEAL
   -----------------------------------------------------------------------------
   Entrance is a TRANSFORM-ONLY slide-up (opacity stays 1), so content is never
   hidden — even if the animation timeline is frozen (background tab, capture
   contexts), the worst case is a small static offset, never invisible.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes revealUp {
    from { transform: translateY(18px); }
    to   { transform: none; }
  }
  [data-reveal].in { animation: revealUp 0.65s var(--ease-out) both; }
  [data-reveal-delay="1"].in { animation-delay: 0.07s; }
  [data-reveal-delay="2"].in { animation-delay: 0.14s; }
  [data-reveal-delay="3"].in { animation-delay: 0.21s; }
  [data-reveal-delay="4"].in { animation-delay: 0.28s; }
}

/* ----------------------------------------------------------------------------
   19. TEAM
   ------------------------------------------------------------------------- */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.6rem);
}
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.member .portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, oklch(0.90 0.008 88) 0 12px, oklch(0.93 0.008 88) 12px 24px);
  border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 1.1rem; overflow: hidden;
}
.member .portrait .ph-tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-600); background: var(--paper); border: 1px solid var(--line); padding: 0.4em 0.8em; border-radius: 2px;
}
.member .m-name { font-family: var(--serif); font-size: var(--t-h4); line-height: 1.1; }
.member .m-role { font-size: var(--t-sm); color: var(--accent); font-weight: 600; margin-top: 0.3rem; }
.member .m-cred { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--fg-subtle); margin-top: 0.7rem; text-transform: uppercase; }

/* ----------------------------------------------------------------------------
   20. LOCATIONS
   ------------------------------------------------------------------------- */
.loc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loc-grid { grid-template-columns: 1fr; } }
.loc {
  padding: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem) clamp(1.2rem, 0.6rem + 1.2vw, 1.8rem);
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}
.loc-grid .loc:nth-child(4n) { border-right: 0; }
@media (max-width: 900px) { .loc-grid .loc:nth-child(2n) { border-right: 0; } }
@media (max-width: 520px) { .loc { border-right: 0; } }
.loc .l-region { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.loc .l-city { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); color: var(--white); margin: 0.6rem 0 1.1rem; line-height: 1; }
.loc address { font-style: normal; color: var(--on-dark-muted); font-size: var(--t-sm); line-height: 1.6; }
.loc .l-meta { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--on-dark-subtle); display: flex; flex-direction: column; gap: 0.35rem; }
.loc .l-meta a { color: var(--on-dark-muted); }
.loc .l-meta a:hover { color: var(--white); }

/* world band: simple latitude rules behind a globe-free statement */
.global-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
@media (max-width: 820px) { .global-band { grid-template-columns: 1fr; } }
.tz-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.tz { flex: 1 1 25%; min-width: 120px; padding: 1.2rem 1.3rem; border-right: 1px solid var(--line-dark); }
.tz:last-child { border-right: 0; }
.tz .tz-city { font-size: var(--t-sm); color: var(--on-dark-muted); }
.tz .tz-time { font-family: var(--mono); font-size: 1.3rem; color: var(--white); margin-top: 0.3rem; }
.tz .tz-off { font-family: var(--mono); font-size: 0.66rem; color: var(--brass); letter-spacing: 0.08em; margin-top: 0.2rem; }

/* ----------------------------------------------------------------------------
   21. FORM
   ------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 500;
}
.field label .req { color: var(--brass-deep); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: var(--t-base); color: var(--fg);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.85em 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6f78' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px oklch(0.66 0.112 70 / 0.16);
}
.field-full { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-note { font-size: var(--t-sm); color: var(--fg-subtle); max-width: 38ch; }
.form .btn { border: 0; cursor: pointer; }
.consent { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--t-sm); color: var(--fg-muted); }
.consent input { width: 18px; height: 18px; margin-top: 0.2rem; flex: none; accent-color: var(--brass-deep); }

.contact-aside .ca-block { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.contact-aside .ca-block:first-child { border-top: 0; padding-top: 0; }
.contact-aside h5 { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 0.7rem; font-weight: 500; }
.contact-aside .ca-block a, .contact-aside .ca-block p { font-size: var(--t-base); color: var(--fg); }
.contact-aside .ca-block .link { font-size: var(--t-base); }
.contact-aside .ca-cities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.contact-aside .ca-cities span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4em 0.7em; border: 1px solid var(--line); border-radius: 2px; color: var(--fg-muted); }

/* utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.arrow { display: inline-block; }

/* ----------------------------------------------------------------------------
   WHITE PAPER READING PAGES (.wp) — composed from existing tokens only
   ------------------------------------------------------------------------- */
.wp-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem;
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-muted); }
.wp-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.wp-meta strong { color: var(--fg); font-weight: 500; }
.wp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3.2rem; align-items: start; }
.wp-toc { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.wp-toc h4 { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.9rem; }
.wp-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.wp-toc li { counter-increment: toc; margin-bottom: 0.55rem; line-height: 1.35; }
.wp-toc a { color: var(--fg); font-size: var(--t-sm); text-decoration: none; display: flex; gap: 0.6rem; }
.wp-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--brass-deep);
  font-family: var(--mono); font-size: var(--t-mono); }
.wp-toc a:hover { color: var(--brass-deep); }
.wp-summary { border-left: 3px solid var(--brass-deep); background: var(--paper-2);
  padding: 1.4rem 1.6rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 2.4rem; }
.wp-summary .co-label { font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 0.5rem; }
.wp-summary p { color: var(--fg); font-size: var(--t-lead); line-height: 1.5; }
.wp-table-wrap { overflow-x: auto; margin: 1.8rem 0 2.2rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.wp-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: var(--white); }
.wp-table caption { caption-side: top; text-align: left; font-family: var(--mono);
  font-size: var(--t-mono); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fg-muted); padding: 1rem 1.2rem 0.4rem; }
.wp-table th, .wp-table td { text-align: left; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-table thead th { background: var(--ink-900); color: var(--on-dark); font-family: var(--mono);
  font-size: var(--t-mono); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.wp-table tbody tr:last-child td { border-bottom: none; }
.wp-table tbody tr:nth-child(even) td { background: var(--paper-2); }
.wp-table td strong { color: var(--fg); font-weight: 600; }
.wp-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-figure { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  padding: 1.6rem; margin: 1.8rem 0 2.2rem; box-shadow: var(--shadow-sm); }
.wp-figure figcaption { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: 1rem; }
.wp-bar-row { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
.wp-bar-row .lbl { font-size: var(--t-sm); color: var(--fg-muted); }
.wp-bar-track { height: 12px; background: var(--paper-3); border-radius: 6px; overflow: hidden; }
.wp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brass-deep), var(--brass)); border-radius: 6px; }
.wp-bar-fill.ink { background: var(--ink-700, var(--ink-900)); }
.wp-bar-row .val { font-family: var(--mono); font-size: var(--t-mono); color: var(--fg); text-align: right; }
.wp-checklist { list-style: none; margin: 1.2rem 0 2rem; padding: 0; }
.wp-checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; color: var(--fg-muted); line-height: 1.5; }
.wp-checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brass-deep); font-weight: 700; }
.wp-checklist li strong { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .wp-layout { grid-template-columns: 1fr; } .wp-toc { position: static; margin-bottom: 2rem; } }
