/* =============================================
   BRIGHTURE — Design System
   Palette: Midnight Navy · Electric Cyan · Warm Gold
   Intentionally distinct from Anthropic's cream/amber.
============================================= */

:root {
  /* Surfaces */
  --bg-deep:      #07101F;   /* darkest — page bg */
  --bg-primary:   #0B1628;   /* primary dark surface */
  --bg-elev:      #142339;   /* elevated card */
  --bg-elev-2:    #1B2E4D;   /* hover / accent surface */
  --bg-light:     #F1F5FA;   /* light section bg */
  --bg-light-2:   #E8EFF7;   /* slightly tinted */
  --bg-light-warm:#F6F1E7;   /* warm light for variety */

  /* Ink */
  --ink:          #F1F5FA;
  --ink-soft:     #C6D2E1;
  --ink-mute:     #8497AE;
  --ink-dim:      #5F7185;
  --ink-dark:     #0A1426;
  --ink-on-light: #0B1A2E;
  --ink-on-light-soft: #2C3E54;
  --ink-on-light-mute: #5A6E85;

  /* Accents */
  --cyan:         #22D3EE;   /* electric cyan, primary accent */
  --cyan-bright:  #67E8F9;
  --cyan-deep:    #0891B2;
  --cyan-glow:    rgba(34, 211, 238, 0.35);

  --gold:         #F59E0B;   /* warm gold for "brighter" highlights */
  --gold-bright:  #FBBF24;
  --gold-deep:    #B45309;

  --rose:         #FB7185;   /* used very sparingly */

  /* Lines */
  --line:         rgba(241, 245, 250, 0.10);
  --line-strong:  rgba(241, 245, 250, 0.18);
  --line-light:   rgba(11, 22, 40, 0.10);
  --line-light-strong: rgba(11, 22, 40, 0.22);

  /* Type */
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--cyan); color: var(--ink-dark); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Star field / faint grid background on dark pages */
body.dark::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(34, 211, 238, 0.4), transparent 50%),
    radial-gradient(1px 1px at 10% 70%, rgba(245, 158, 11, 0.3), transparent 50%);
  background-size: 400px 400px, 600px 600px, 300px 300px, 500px 500px, 700px 700px;
  opacity: 0.7;
}

/* Faint grain for paper / atmospheric texture */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== LAYOUT ===== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

section { padding: 110px 0; position: relative; }
section.tight { padding: 70px 0; }

.light-section {
  background: var(--bg-light);
  color: var(--ink-on-light);
}
.light-section h1, .light-section h2, .light-section h3,
.light-section h4, .light-section h5 { color: var(--ink-on-light); }
.light-section .lede { color: var(--ink-on-light-soft); }

/* ===== TYPE ===== */
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 104px); }
h2 { font-size: clamp(38px, 5vw, 72px); }
h3 { font-size: clamp(28px, 3vw, 42px); }
h4 { font-size: clamp(22px, 2.2vw, 30px); }
h5 { font-size: clamp(18px, 1.6vw, 22px); }

h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  color: var(--cyan);
}
.light-section h1 em, .light-section h2 em, .light-section h3 em, .light-section h4 em {
  color: var(--cyan-deep);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
}
.light-section .eyebrow { color: var(--cyan-deep); }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 60px;
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 16, 31, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(7, 16, 31, 0.92); border-bottom-color: var(--line-strong); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo {
  height: 36px; width: auto;
  filter: drop-shadow(0 0 12px var(--cyan-glow));
  transition: filter 0.3s ease;
}
.brand:hover .brand-logo { filter: drop-shadow(0 0 18px var(--cyan-glow)); }
.brand-name { font-weight: 400; }
.brand-name span.dot { color: var(--cyan); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--cyan);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--cyan);
  background: var(--cyan); color: var(--ink-dark);
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s ease;
  border-radius: 2px;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--cyan-bright); border-color: var(--cyan-bright);
  box-shadow: 0 0 30px var(--cyan-glow);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(34,211,238,0.08); border-color: var(--cyan); box-shadow: none; color: var(--cyan); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold); border-color: var(--gold); color: var(--ink-dark);
}
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 30px rgba(245, 158, 11, 0.35); }

.light-section .btn-ghost { color: var(--ink-on-light); border-color: var(--line-light-strong); }
.light-section .btn-ghost:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); background: rgba(34,211,238,0.08); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 2px;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg-deep);
  padding: 88px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--display);
  font-size: 36px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu a span { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.mobile-menu .mobile-cta { margin-top: 30px; }
.mobile-close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 2px;
}

/* ===== HERO (HOME) ===== */
.hero { padding: 70px 0 130px; position: relative; overflow: hidden; }
.hero-meta {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 50px;
}
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--cyan-glow); }
  50%      { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
}
.hero h1 {
  font-size: clamp(48px, 9vw, 138px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero h1 em { color: var(--cyan); }
.hero h1 .gold-em { color: var(--gold); font-style: italic; font-variation-settings: "SOFT" 100; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  margin-top: 80px;
  align-items: end;
}
.hero-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-lede::first-letter { color: var(--cyan); }
.hero-right {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 26px;
}
.hero-right p { margin: 0; font-size: 15.5px; color: var(--ink-soft); max-width: 38ch; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 44px; }
}

/* Hero canvas / dataline visual */
.hero-visual {
  position: absolute; right: -120px; top: 60px;
  width: 720px; height: 720px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}
@media (max-width: 1100px) { .hero-visual { opacity: 0.3; right: -240px; } }

/* ===== STATS STRIP ===== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-deep));
  padding: 70px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat {
  padding: 0 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .number {
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat .number em { color: var(--cyan); font-style: italic; }
.stat .number .unit { font-size: 0.55em; font-style: italic; opacity: 0.7; }
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}
@media (max-width: 920px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stat { padding: 0 16px; border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ===== SECTION TITLES ===== */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.section-head .lede { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

/* ===== SERVICE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.light-section .cards-grid {
  border-top-color: var(--line-light-strong);
  border-left-color: var(--line-light-strong);
}
.card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 40px 48px;
  position: relative;
  transition: background 0.35s ease;
  display: flex; flex-direction: column;
  background: transparent;
}
.light-section .card { border-right-color: var(--line-light-strong); border-bottom-color: var(--line-light-strong); }
.card:hover { background: rgba(34, 211, 238, 0.04); }
.light-section .card:hover { background: rgba(34, 211, 238, 0.06); }
.card .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.light-section .card .num { color: var(--cyan-deep); }
.card h3 {
  margin-bottom: 14px;
  max-width: 16ch;
}
.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 50ch;
}
.light-section .card p { color: var(--ink-on-light-soft); }
.card .chips {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.light-section .chip { color: var(--ink-on-light-mute); border-color: var(--line-light-strong); background: rgba(11,22,40,0.03); }

@media (max-width: 800px) { .cards-grid { grid-template-columns: 1fr; } }

/* ===== METRIC TILES (dark, glowy) ===== */
.metric-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric-tile {
  position: relative;
  padding: 38px 32px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-primary));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.metric-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 100% 0%, var(--cyan-glow), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.metric-tile:hover { transform: translateY(-4px); border-color: var(--cyan); }
.metric-tile:hover::before { opacity: 1; }
.metric-tile .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
  position: relative;
}
.metric-tile .figure {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}
.metric-tile .figure em { color: var(--gold); font-style: italic; }
.metric-tile .figure .unit { font-size: 0.42em; font-style: italic; opacity: 0.85; }
.metric-tile p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; position: relative; }
@media (max-width: 800px) { .metric-tiles { grid-template-columns: 1fr; } }

/* ===== CAPABILITIES LIST ===== */
.cap-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.light-section .cap-list { border-top-color: var(--line-light-strong); }
.cap-item {
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 70px 1fr 1.5fr 24px;
  gap: 36px;
  align-items: baseline;
  transition: padding 0.25s ease, background 0.25s ease;
  position: relative;
}
.light-section .cap-item { border-bottom-color: var(--line-light-strong); }
.cap-item:hover { padding-left: 16px; }
.cap-item .index {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.cap-item h4 { font-size: clamp(22px, 2vw, 28px); margin: 0; }
.cap-item h4 em { color: var(--cyan); }
.light-section .cap-item h4 em { color: var(--cyan-deep); }
.cap-item p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.light-section .cap-item p { color: var(--ink-on-light-soft); }
.cap-item .arrow {
  font-family: var(--mono);
  color: var(--cyan);
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
}
.cap-item:hover .arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 820px) {
  .cap-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cap-item .arrow { display: none; }
}

/* ===== LIFECYCLE RAIL ===== */
.lc-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.light-section .lc-rail { border-color: var(--line-light-strong); }
.lc-step {
  padding: 28px 22px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.3s ease;
  position: relative;
}
.light-section .lc-step { border-color: var(--line-light-strong); }
.lc-step:hover { background: rgba(34, 211, 238, 0.06); border-color: var(--cyan); }
.lc-step .step-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 24px;
}
.lc-step h5 { margin: 0 0 8px; font-size: 20px; }
.lc-step p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.light-section .lc-step p { color: var(--ink-on-light-soft); }

@media (max-width: 1020px) { .lc-rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .lc-rail { grid-template-columns: repeat(2, 1fr); } }

/* ===== TABS ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  gap: 0;
  flex-wrap: wrap;
}
.light-section .tabs { border-bottom-color: var(--line-light-strong); }
.tab {
  background: transparent; border: none;
  padding: 18px 24px 18px 0;
  margin-right: 30px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--cyan); }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 24px; bottom: -1px;
  height: 2px; background: var(--cyan);
}
.light-section .tab.active { color: var(--cyan-deep); }
.light-section .tab.active::after { background: var(--cyan-deep); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== PARTNER / NETWORK ===== */
.region-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.light-section .region-list { border-top-color: var(--line-light-strong); }
.region-list li {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: baseline;
  transition: padding 0.25s ease;
}
.light-section .region-list li { border-bottom-color: var(--line-light-strong); }
.region-list li:hover { padding-left: 12px; }
.region-list .code {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.light-section .region-list .code { color: var(--cyan-deep); }
.region-list strong { font-weight: 600; font-size: 18px; display: block; margin-bottom: 4px; }
.region-list span { color: var(--ink-soft); font-size: 14px; }
.light-section .region-list span { color: var(--ink-on-light-soft); }

/* ===== MARQUEE / TICKER ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-primary);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-item em { color: var(--cyan); font-style: italic; }
.marquee-item .sep { color: var(--gold); margin: 0 6px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CTA BAND ===== */
.cta-band {
  background:
    radial-gradient(60% 80% at 0% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(40% 60% at 100% 0%, rgba(245, 158, 11, 0.14), transparent 60%),
    var(--bg-primary);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.cta-row {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.cta-row h3 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  max-width: 22ch;
}
.cta-row h3 em { color: var(--gold); }
.cta-row p { margin: 14px 0 0; color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 760px) { .cta-row { grid-template-columns: 1fr; } }

/* ===== PHILOSOPHY / PULL QUOTE ===== */
.pull-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.28;
  color: var(--ink);
  max-width: 26ch;
}
.pull-quote span.mark { color: var(--cyan); }
.light-section .pull-quote span.mark { color: var(--cyan-deep); }
.pull-quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header.light { border-bottom-color: var(--line-light-strong); }
.page-header h1 {
  font-size: clamp(56px, 9vw, 132px);
  letter-spacing: -0.025em;
  line-height: 0.92;
  max-width: 18ch;
  margin-top: 18px;
}
.page-header h1 em { color: var(--cyan); }
.page-header h1 .gold-em { color: var(--gold); font-style: italic; font-variation-settings: "SOFT" 100; }
.page-header .lede { margin-top: 36px; max-width: 56ch; }
.page-header .breadcrumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.page-header .breadcrumbs a:hover { color: var(--cyan); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 80px 0 36px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--ink-mute);
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.5;
}
.footer-col h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom a:hover { color: var(--cyan); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== REVEAL ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.16s; }
  .reveal-delay-3 { transition-delay: 0.24s; }
  .reveal-delay-4 { transition-delay: 0.32s; }
}

/* ===== FLOATING SCHEDULE BUTTON ===== */
.floating-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 40;
  background: var(--cyan);
  color: var(--ink-dark);
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 36px -10px rgba(34, 211, 238, 0.55);
  display: inline-flex; align-items: center; gap: 8px;
  transform: translateY(80px); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease, box-shadow 0.3s ease, background 0.2s ease;
  border-radius: 2px;
}
.floating-cta.show { transform: none; opacity: 1; }
.floating-cta:hover { background: var(--cyan-bright); box-shadow: 0 16px 40px -8px rgba(34, 211, 238, 0.7); }
.floating-cta .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 720px) {
  .floating-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 12.5px; }
}

/* ===== UTILITIES ===== */
.sep-rule {
  border: 0; border-top: 1px solid var(--line);
  position: relative; margin: 0;
}
.sep-rule::after {
  content: "✦";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--bg-deep);
  color: var(--cyan); padding: 0 14px;
  font-size: 16px;
}
.light-section .sep-rule { border-top-color: var(--line-light-strong); }
.light-section .sep-rule::after { background: var(--bg-light); color: var(--cyan-deep); }

/* ===== CHAPTER ANCHOR (clear section dividers on home) ===== */
.chapter {
  display: grid;
  grid-template-columns: 1fr auto;   /* ruler | title — no number column */
  gap: 28px;
  align-items: center;
  padding: 30px 0 70px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  overflow: hidden;   /* prevent any child from spilling outside */
}
.chapter .chap-num { display: none; }  /* numbers removed */
.chapter .chap-line {
  content: ""; height: 1px; background: var(--line);
  display: block; min-width: 0; /* min-width:0 prevents grid blowout */
}
.chapter .chap-title {
  color: var(--ink-soft);
  white-space: nowrap;   /* title never wraps mid-word */
}
.light-section .chapter { color: var(--ink-on-light-mute); }
.light-section .chapter .chap-line { background: var(--line-light-strong); }
.light-section .chapter .chap-title { color: var(--ink-on-light-soft); }
@media (max-width: 720px) {
  .chapter { padding: 20px 0 40px; font-size: 11px; gap: 16px; }
}

/* Generous section spacing on home */
section.chapter-section { padding: 60px 0 130px; }
section.chapter-section.first { padding-top: 30px; }
@media (max-width: 720px) {
  section.chapter-section { padding: 30px 0 80px; }
}

/* ===== COUNTRY STRIP ===== */
.country-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line-light-strong);
  border-bottom: 1px solid var(--line-light-strong);
  margin: 30px 0 40px;
}
.country-strip .country {
  flex: 1 1 0;
  min-width: 110px;
  padding: 22px 16px;
  border-right: 1px solid var(--line-light-strong);
  text-align: center;
  transition: background 0.25s ease;
}
.country-strip .country:last-child { border-right: none; }
.country-strip .country:hover { background: rgba(34, 211, 238, 0.06); }
.country-strip .code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan-deep);
  margin-bottom: 8px;
}
.country-strip .name {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink-on-light);
}

/* Dark context (body dark, country strip NOT inside a light-section) */
body.dark .country-strip { border-top-color: var(--line); border-bottom-color: var(--line); }
body.dark .country-strip .country { border-right-color: var(--line); }
body.dark .country-strip .code { color: var(--cyan); }
body.dark .country-strip .name { color: var(--ink); }

/* Light section restoration — re-establish light styling for country strips inside light sections */
body.dark .light-section .country-strip { border-top-color: var(--line-light-strong); border-bottom-color: var(--line-light-strong); }
body.dark .light-section .country-strip .country { border-right-color: var(--line-light-strong); }
body.dark .light-section .country-strip .code { color: var(--cyan-deep); }
body.dark .light-section .country-strip .name { color: var(--ink-on-light); }

@media (max-width: 720px) {
  .country-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
  .country-strip .country { border-right: 1px solid var(--line-light-strong); border-bottom: 1px solid var(--line-light-strong); }
  .country-strip .country:nth-child(2n) { border-right: none; }
  body.dark .country-strip .country { border-right-color: var(--line); border-bottom-color: var(--line); }
  body.dark .light-section .country-strip .country { border-right-color: var(--line-light-strong); border-bottom-color: var(--line-light-strong); }
}

/* ===== HOME CONTACT BLOCK ===== */
.home-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 50px;
}
.home-contact .hc-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}
.home-contact .hc-cell:hover { background: rgba(34,211,238,0.04); }
.home-contact .hc-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.home-contact .hc-value {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.home-contact .hc-value a:hover { color: var(--cyan); }
@media (max-width: 720px) {
  .home-contact { grid-template-columns: 1fr; }
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .row-2, .row-3 { grid-template-columns: 1fr; gap: 28px; }
}

.glow-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
  overflow: hidden;
}
.glow-card::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--cyan), transparent 50%, var(--gold));
  opacity: 0; transition: opacity 0.3s ease;
  z-index: -1;
}
.glow-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.glow-card h4 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; color: var(--ink); }
.light-section .glow-card h4 { color: var(--ink); }
.glow-card .role-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.glow-card .role-tag::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.glow-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* Bento for team / fractional roles */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}
.bento .b-cell {
  padding: 30px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.bento .b-cell:hover { transform: translateY(-4px); border-color: var(--cyan); }
.bento .b-cell .role-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.bento .b-cell h4 { margin: 0 0 10px; font-size: 24px; color: var(--ink); }
.light-section .bento .b-cell h4 { color: var(--ink); }
.bento .b-cell p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.light-section .bento .b-cell p { color: var(--ink-soft); }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .row-2 { grid-row: span 2; }
.bento .accent {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border-color: var(--cyan);
}
.bento .accent::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 100% 0%, var(--cyan-glow), transparent 60%);
  pointer-events: none;
}
.bento .gold-accent {
  background: linear-gradient(135deg, var(--bg-elev), rgba(245, 158, 11, 0.12));
  border-color: var(--gold);
}
.bento .gold-accent .role-tag { color: var(--gold); }
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-3, .bento .span-2 { grid-column: span 2; }
  .bento .row-2 { grid-row: auto; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span-3, .bento .span-2 { grid-column: span 1; }
}

/* Featured case card (work page) */
.case-card {
  border: 1px solid var(--line);
  background: var(--bg-primary);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}
.light-section .case-card { background: white; border-color: var(--line-light-strong); }
.case-card:hover { border-color: var(--cyan); }
.case-card .case-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.light-section .case-card .case-meta { color: var(--cyan-deep); }
.case-card h3 { margin-bottom: 14px; }
.case-card .figure {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 8px;
}
.case-card .figure em { color: var(--gold); font-style: italic; }
.case-card .figure-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; }
.case-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.light-section .case-card p { color: var(--ink-on-light-soft); }
.case-card ul { padding: 0; margin: 14px 0 0; list-style: none; }
.case-card ul li { padding: 8px 0; border-top: 1px dashed var(--line-strong); font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: baseline; }
.light-section .case-card ul li { border-top-color: var(--line-light-strong); color: var(--ink-on-light-soft); }
.case-card ul li::before { content: "→"; color: var(--cyan); }
.light-section .case-card ul li::before { color: var(--cyan-deep); }
@media (max-width: 820px) { .case-card { grid-template-columns: 1fr; padding: 30px 24px; } }

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.08); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.tag.gold { background: rgba(245,158,11,0.1); color: var(--gold); border-color: rgba(245,158,11,0.25); }

/* About page profile */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 60px; align-items: start;
}
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; gap: 32px; } }
.profile-portrait {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-primary));
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.profile-portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 100%, var(--cyan-glow), transparent 60%);
  pointer-events: none;
}
.profile-portrait .initials {
  font-family: var(--display);
  font-size: 180px; line-height: 0.9;
  color: var(--cyan);
  font-style: italic;
  position: relative;
}
.profile-portrait .role {
  margin-top: 20px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.profile-portrait .name {
  font-family: var(--display);
  font-size: 32px;
  margin-top: 6px;
}

/* Real photo portrait */
.profile-photo {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
}
.profile-photo .photo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.04) saturate(0.95);
  transition: filter 0.4s ease;
}
.profile-photo:hover .photo-img { filter: contrast(1.08) saturate(1.05); }
.profile-photo .photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 16, 31, 0.92) 100%);
  pointer-events: none;
}
.profile-photo .photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 26px 26px;
  z-index: 2;
}
.profile-photo .photo-caption .role {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.profile-photo .photo-caption .name {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 6px;
}
.profile-photo .photo-caption .credentials {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
}
/* Corner accent */
.profile-photo::after {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  z-index: 2;
}

/* Contact page */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-block {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 20px; padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-row:last-of-type { border-bottom: 1px solid var(--line); }
.contact-row .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.contact-row .value { font-family: var(--display); font-size: 22px; line-height: 1.3; }
.contact-row .value a:hover { color: var(--cyan); }

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 36px 32px;
}
.contact-form h3 { margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
}
.form-row textarea { min-height: 140px; resize: vertical; }
