/* ============================================================
   BEDROCK DWC LLC — Design System
   Stone & slate + warm mineral (copper) accent. Modern-tech.
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* --- Ink / slate (foundation) --- */
  --ink:        #0E1115;
  --ink-1:      #14181E;
  --ink-2:      #1B2027;
  --ink-3:      #242B34;
  --ink-line:   rgba(255,255,255,0.10);
  --ink-line-2: rgba(255,255,255,0.06);

  /* --- Stone (warm neutrals) --- */
  --paper:      #F5F2EC;
  --stone-50:   #FBFAF7;
  --stone-100:  #EFEBE2;
  --stone-200:  #E2DCD0;
  --stone-300:  #CFC7B7;
  --stone-400:  #ABA290;
  --stone-500:  #847B6B;
  --stone-600:  #5E574B;

  /* --- Brand accent (BedRock blue, from the logo) --- */
  --copper:        oklch(0.585 0.13 252);
  --copper-bright: oklch(0.715 0.125 248);
  --copper-deep:   oklch(0.505 0.13 254);
  --copper-soft:   oklch(0.585 0.13 252 / 0.13);

  /* --- Secondary signal (warm stone, used sparingly) --- */
  --signal:     oklch(0.70 0.09 70);

  /* --- Text --- */
  --text:        #1A1E24;
  --text-soft:   #4A4F57;
  --text-mute:   #797F88;
  --on-dark:     #EAE7E0;
  --on-dark-soft:#A6ABB3;
  --on-dark-mute:#6E747D;

  /* --- Gradients --- */
  --grad-copper: linear-gradient(115deg, var(--copper-bright), var(--copper-deep));
  --grad-brand:  linear-gradient(120deg, oklch(0.715 0.125 248), oklch(0.505 0.13 254));
  --grad-ink:    linear-gradient(160deg, #1A212B 0%, #0E1115 100%);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(14,17,21,.06), 0 2px 8px rgba(14,17,21,.05);
  --shadow:    0 8px 30px rgba(14,17,21,.10), 0 2px 8px rgba(14,17,21,.06);
  --shadow-lg: 0 30px 70px -24px rgba(14,17,21,.40);

  --maxw: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body:    "IBM Plex Sans", system-ui, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--copper); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark-grad { background: var(--grad-ink); color: var(--on-dark); }
.stone { background: var(--stone-100); }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; color: inherit; }
.display { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.02em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--text-soft); font-weight: 400; }
.dark .lead, .dark-grad .lead { color: var(--on-dark-soft); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ---------- Kicker / mono label ---------- */
.kicker {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dark .kicker, .dark-grad .kicker { color: var(--copper-bright); }
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.kicker--plain::before { display: none; }

.eyebrow { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.dark .eyebrow { color: var(--on-dark-mute); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body);
  font-size: 0.98rem; font-weight: 500;
  padding: 13px 22px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--paper);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { --bg: var(--copper); color: #fff; box-shadow: 0 6px 20px -8px var(--copper); }
.btn-primary:hover { --bg: var(--copper-bright); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; border: 1px solid var(--stone-300); color: var(--text); }
.dark .btn-outline, .dark-grad .btn-outline { border-color: var(--ink-line); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--copper); color: var(--copper-deep); box-shadow: none; }
.dark .btn-outline:hover { color: var(--copper-bright); border-color: var(--copper); }
.btn-ghost { background: transparent; color: inherit; padding-inline: 4px; }
.btn-ghost:hover { box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .04em;
  font-weight: 500; color: var(--copper-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s;
}
.dark .link-arrow, .dark-grad .link-arrow { color: var(--copper-bright); }
.link-arrow:hover { gap: 13px; border-color: currentColor; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), backdrop-filter .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav.is-scrolled {
  background: rgba(245,242,236,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-color: var(--stone-200);
  box-shadow: 0 1px 0 rgba(14,17,21,.02);
}
.nav.on-dark { color: var(--on-dark); }
.nav.on-dark.is-scrolled { background: rgba(14,17,21,.72); border-color: var(--ink-line); color: var(--on-dark); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { height: 30px; width: auto; display: block; }
.footer .brand__logo { height: 34px; }
/* white plate keeps the (dark-text) logo legible on dark surfaces without recoloring it */
.logo-plate { background: #fff; border-radius: 8px; padding: 7px 13px; display: inline-flex; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.16); }
.logo-plate img { height: 30px; width: auto; display: block; }
.footer .logo-plate { display: inline-flex; width: -moz-fit-content; width: fit-content; }
.footer .logo-plate img { height: 33px; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name b { color: var(--copper-deep); font-weight: 600; }
.nav.on-dark .brand__name b { color: var(--copper-bright); }
.brand__tag { display:block; font-family: var(--ff-mono); font-size: .56rem; letter-spacing: .26em; color: var(--text-mute); text-transform: uppercase; margin-top: 3px; }
.nav.on-dark .brand__tag { color: var(--on-dark-mute); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 0.95rem; font-weight: 450; padding: 9px 14px; border-radius: 9px;
  color: inherit; opacity: .82; transition: opacity .2s, background .2s; position: relative;
}
.nav__link:hover { opacity: 1; background: rgba(120,120,120,.08); }
.nav.on-dark .nav__link:hover { background: rgba(255,255,255,.06); }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after {
  content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px;
  background: var(--copper); border-radius: 2px;
}
.nav__right { display: flex; align-items: center; gap: 14px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger span:nth-child(1){ top: 15px; }
.nav__burger span:nth-child(2){ top: 21px; }
.nav__burger span:nth-child(3){ top: 27px; }
body.menu-open .nav__burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2){ opacity: 0; }
body.menu-open .nav__burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; padding: 90px 32px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: var(--ff-display); font-size: clamp(2rem, 9vw, 3rem); padding: 10px 0; border-bottom: 1px solid var(--ink-line-2); display:flex; justify-content: space-between; align-items:center; transition: color .2s, padding-left .25s var(--ease); }
.mobile-menu a:hover { color: var(--copper-bright); padding-left: 12px; }
.mobile-menu a span { font-family: var(--ff-mono); font-size: .8rem; color: var(--on-dark-mute); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 168px; padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--ink-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 30%, transparent 78%);
}
.hero__content { position: relative; z-index: 2; }
.hero__badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(95,176,234,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(95,176,234,.28);
  padding: 7px 14px 7px 8px; border-radius: 100px; font-size: .82rem; color: var(--on-dark-soft);
  margin-bottom: 30px;
  box-shadow: 0 6px 26px -10px rgba(46,134,214,.45), inset 0 0 0 1px rgba(255,255,255,.02);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.hero__badge:hover { transform: translateY(-2px); border-color: rgba(95,176,234,.55); box-shadow: 0 10px 34px -10px rgba(46,134,214,.6); }
.hero__badge-txt strong { color: #fff; font-weight: 600; }
.hero__badge .arr { transition: transform .3s var(--ease); opacity: .8; }
.hero__badge:hover .arr { transform: translateX(4px); opacity: 1; }
/* shimmer sweep */
.hero__badge::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%);
  transform: translateX(-130%); animation: badgeShimmer 5s ease-in-out infinite;
}
@keyframes badgeShimmer { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.hero__badge .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-bright); }
.hero__badge .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid var(--copper-bright); animation: badgePulse 2.2s ease-out infinite;
}
@keyframes badgePulse { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.hero__badge .pill { position: relative; background: var(--copper); color:#fff; font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .14em; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; box-shadow: 0 2px 10px -2px var(--copper); }
@media (prefers-reduced-motion: reduce) { .hero__badge::after, .hero__badge .dot::after { animation: none; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__metrics { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--ink-line); }

/* ---------- Stat ---------- */
.stat__num { font-family: var(--ff-display); font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat__num .unit { color: var(--copper-bright); }
.stat__label { font-family: var(--ff-mono); font-size: .73rem; letter-spacing: .08em; color: var(--on-dark-mute); margin-top: 10px; text-transform: uppercase; }
.dark .stat__label, .light-stats .stat__label { color: var(--text-mute); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { display: grid; gap: 18px; margin-bottom: 56px; }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head .lead { margin-top: 2px; }
.sec-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-head__row .sec-head { margin-bottom: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--stone-50); border: 1px solid var(--stone-200); border-radius: var(--radius);
  padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--stone-300); }
.dark .card, .dark-grad .card { background: var(--ink-1); border-color: var(--ink-line); }
.dark .card:hover { border-color: rgba(255,255,255,.16); box-shadow: var(--shadow-lg); }

/* service card */
.svc { display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.svc__no { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .1em; color: var(--copper-deep); }
.dark .svc__no { color: var(--copper-bright); }
.svc__icon { width: 46px; height: 46px; color: var(--copper-deep); }
.dark .svc__icon { color: var(--copper-bright); }
.svc h3 { margin-top: 4px; }
.svc p { color: var(--text-soft); font-size: .98rem; }
.dark .svc p { color: var(--on-dark-soft); }
.svc__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.svc__list li { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .04em; color: var(--text-mute); border: 1px solid var(--stone-200); border-radius: 100px; padding: 4px 11px; }
.dark .svc__list li { color: var(--on-dark-mute); border-color: var(--ink-line); }
.card__glow { position:absolute; width: 220px; height: 220px; border-radius: 50%; right: -90px; top: -90px; background: radial-gradient(circle, var(--copper-soft), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events:none; }
.card:hover .card__glow { opacity: 1; }

/* value / feature row */
.feature { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--stone-200); }
.dark .feature { border-color: var(--ink-line); }
.feature__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper-deep); }
.dark .feature__ic { color: var(--copper-bright); }
.feature__ic svg { width: 22px; height: 22px; }
.feature h4 { font-family: var(--ff-display); font-size: 1.12rem; margin-bottom: 5px; }
.feature p { color: var(--text-soft); font-size: .96rem; }
.dark .feature p { color: var(--on-dark-soft); }

/* ============================================================
   STRATA divider / motif
   ============================================================ */
.strata { display: flex; flex-direction: column; gap: 5px; }
.strata span { height: 6px; border-radius: 3px; background: var(--stone-300); }
.strata span:nth-child(1){ background: var(--copper); width: 70%; }
.strata span:nth-child(2){ width: 100%; }
.strata span:nth-child(3){ width: 86%; }
.strata span:nth-child(4){ width: 94%; }

/* ============================================================
   PARTNER TILES
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.chip {
  font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .04em;
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--stone-300);
  color: var(--text-soft); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--stone-500); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ptile {
  background: var(--stone-50); border: 1px solid var(--stone-200); border-radius: var(--radius);
  padding: 26px; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.ptile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--copper); }
.ptile__cat { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-deep); }
.ptile__name { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.ptile__desc { font-size: .86rem; color: var(--text-soft); margin-top: 6px; }
.ptile.is-hidden { display: none; }

/* logo marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; color: var(--on-dark-soft); opacity: .65; white-space: nowrap; transition: opacity .2s, color .2s; }
.marquee__item:hover { opacity: 1; color: var(--on-dark); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track { animation: none; } }

/* ============================================================
   LIFECYCLE (orbit / steps)
   ============================================================ */
.lifecycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); overflow: hidden; }
.lc-step { padding: 38px 32px; border-right: 1px solid var(--ink-line); position: relative; transition: background .3s; }
.lc-step:last-child { border-right: none; }
.lc-step:hover { background: rgba(255,255,255,.03); }
.lc-step__no { font-family: var(--ff-mono); font-size: .8rem; color: var(--copper-bright); letter-spacing: .1em; }
.lc-step h3 { margin: 18px 0 12px; }
.lc-step p { color: var(--on-dark-soft); font-size: .95rem; }
.lc-step__tags { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.lc-step__tags li { font-size: .88rem; color: var(--on-dark-soft); display: flex; gap: 10px; align-items: center; }
.lc-step__tags li::before { content:""; width: 5px; height: 5px; background: var(--copper-bright); border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   PLACEHOLDER GRAPHIC (striped)
   ============================================================ */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(132,123,107,.10) 0 10px, transparent 10px 20px),
    var(--stone-100);
  border: 1px dashed var(--stone-300);
  display: grid; place-items: center; min-height: 220px;
}
.ph.on-ink { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px), var(--ink-1); border-color: var(--ink-line); }
.ph__label { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em; color: var(--stone-500); text-transform: uppercase; text-align: center; padding: 8px 14px; }
.ph.on-ink .ph__label { color: var(--on-dark-mute); }

/* network node graphic */
.netgfx { position: relative; width: 100%; aspect-ratio: 1/1; }
.netgfx svg { width: 100%; height: 100%; overflow: visible; }
.netgfx .node { fill: var(--copper-bright); }
.netgfx .edge { stroke: var(--ink-line); stroke-width: 1; fill: none; }
.netgfx .pulse { stroke: var(--copper-bright); stroke-width: 1.5; fill: none; }

/* ============================================================
   PARTNERSHIP / co-brand
   ============================================================ */
.cobrand { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cobrand__x { font-family: var(--ff-display); font-size: 2rem; color: var(--copper-bright); font-weight: 400; }
.logo-card { background: #fff; border-radius: var(--radius); padding: 22px 30px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.logo-card img { height: 46px; width: auto; }

/* ============================================================
   NEWS cards
   ============================================================ */
.news-card { display: flex; flex-direction: column; background: var(--stone-50); border: 1px solid var(--stone-200); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 16/10; }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); display:flex; gap:12px; }
.news-card__meta .tag { color: var(--copper-deep); }
.news-card h3 { font-size: 1.22rem; }
.news-card.feature { grid-column: span 2; }

/* badge tag */
.tagpill { display:inline-flex; align-items:center; gap:8px; font-family: var(--ff-mono); font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; padding:6px 12px; border-radius:100px; background: var(--copper-soft); color: var(--copper-deep); }
.dark .tagpill { color: var(--copper-bright); }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--text);
  background: var(--stone-50); border: 1px solid var(--stone-300); border-radius: 10px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); background: #fff; box-shadow: 0 0 0 4px var(--copper-soft);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C5453A; box-shadow: 0 0 0 4px rgba(197,69,58,.1); }
.field__err { font-size: .8rem; color: #C5453A; display: none; }
.field.invalid .field__err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--text-mute); }
.form-success { display:none; padding: 18px 20px; border-radius: 12px; background: var(--copper-soft); color: var(--copper-deep); font-size: .95rem; align-items:center; gap:12px; }
.form-success.show { display: flex; }

/* ============================================================
   ACCORDION
   ============================================================ */
.acc { border-top: 1px solid var(--stone-200); }
.acc__item { border-bottom: 1px solid var(--stone-200); }
.dark .acc__item, .dark .acc { border-color: var(--ink-line); }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--ff-display); font-size: 1.15rem; font-weight: 500; color: inherit; }
.acc__q .ico { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.acc__q .ico::before, .acc__q .ico::after { content:""; position:absolute; background: var(--copper-deep); transition: transform .3s var(--ease); }
.dark .acc__q .ico::before, .dark .acc__q .ico::after { background: var(--copper-bright); }
.acc__q .ico::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc__q .ico::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.acc__item.open .ico::after { transform: scaleY(0); }
.acc__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc__a-inner { padding-bottom: 26px; color: var(--text-soft); max-width: 70ch; }
.dark .acc__a-inner { color: var(--on-dark-soft); }

/* ============================================================
   CAREERS list
   ============================================================ */
.job { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border: 1px solid var(--stone-200); border-radius: var(--radius); background: var(--stone-50); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; margin-bottom: 14px; }
.job:hover { border-color: var(--copper); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.job__t { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; }
.job__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .04em; color: var(--text-mute); }
.job__meta span { display:flex; align-items:center; gap:6px; }
.job.is-hidden { display: none; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-ink); padding: clamp(48px, 7vw, 92px); color: var(--on-dark); }
.cta-band .hero__grid { opacity: .7; }
/* CTA band sits on a dark gradient but isn't tagged .dark — give the outline button visible contrast */
.cta-band .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--on-dark); padding-top: 80px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--ink-line); }
.footer__col h5 { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 20px; }
.footer__col a { display: block; color: var(--on-dark-soft); padding: 6px 0; font-size: .95rem; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: var(--copper-bright); padding-left: 5px; }
.footer__about p { color: var(--on-dark-soft); font-size: .95rem; max-width: 36ch; margin: 18px 0 24px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0 40px; font-size: .84rem; color: var(--on-dark-mute); font-family: var(--ff-mono); letter-spacing: .03em; }
.footer__bottom a:hover { color: var(--copper-bright); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
.reveal[data-d="5"]{ transition-delay: .40s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* page hero (interior) */
.page-hero { padding-top: 152px; padding-bottom: 64px; position: relative; overflow: hidden; }
.breadcrumb { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .08em; color: var(--on-dark-mute); margin-bottom: 26px; display:flex; gap:10px; align-items:center; }
.breadcrumb a:hover { color: var(--copper-bright); }

/* generic helpers */
.flow > * + * { margin-top: 1.1em; }
.text-center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.divider { height: 1px; background: var(--stone-200); border: none; }
.dark .divider { background: var(--ink-line); }
.accent { color: var(--copper-deep); }
.dark .accent { color: var(--copper-bright); }
.mono { font-family: var(--ff-mono); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .lifecycle { grid-template-columns: 1fr; }
  .lc-step { border-right: none; border-bottom: 1px solid var(--ink-line); }
  .lc-step:last-child { border-bottom: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .news-card.feature { grid-column: span 1; }
}
@media (max-width: 1040px) {
  .nav__right .btn { display: none; }
  .nav__link { padding-inline: 11px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .hero__metrics { gap: 28px 36px; }
  .sec-head__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .container { padding-inline: 20px; }
  .partner-grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MOBILE POLISH — clean & wide
   ============================================================ */
/* Hide purely-decorative graphics on phones so content runs full-width */
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .netgfx { display: none; }
}
@media (max-width: 680px) {
  .container { padding-inline: 18px; }
  .hero { padding-top: 112px; padding-bottom: 54px; }
  .page-hero { padding-top: 106px; padding-bottom: 40px; }
  .section { padding-block: clamp(44px, 12vw, 76px); }
  .section--tight { padding-block: clamp(34px, 9vw, 60px); }
  .sec-head { margin-bottom: 30px; }
  .card { padding: 22px; }
  .hero__metrics { gap: 22px 34px; margin-top: 38px; padding-top: 26px; }
  .news-card__media { aspect-ratio: 16/11; }
  /* co-brand: stack the two logos and center the × between them */
  .cobrand { flex-direction: column; gap: 16px; }
  .cobrand__x { font-size: 1.7rem; line-height: 1; }
  /* let the dark co-brand panels breathe wide instead of a tall boxed look */
  .split > .dark { min-height: 0 !important; padding: 32px 22px !important; }
}

/* ============================================================
   LANGUAGE TOGGLE + RTL / ARABIC
   ============================================================ */
.lang-toggle { display: inline-flex; align-items: stretch; border: 1px solid var(--ink-line); border-radius: 100px; overflow: hidden; font-family: var(--ff-mono); font-size: .72rem; line-height: 1; flex-shrink: 0; }
.nav:not(.on-dark) .lang-toggle { border-color: var(--stone-300); }
.lang-toggle span { display: flex; align-items: center; padding: 7px 11px; color: var(--on-dark-soft); transition: background .2s, color .2s; }
.nav:not(.on-dark) .lang-toggle span { color: var(--text-soft); }
.lang-toggle:hover span { color: var(--on-dark); }
.lang-toggle .lt-ar { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; font-size: .88rem; }
/* highlight the language currently shown */
html:not(.lang-ar) .lang-toggle .lt-en,
html.lang-ar .lang-toggle .lt-ar { background: var(--copper); color: #fff; }

/* Arabic typography */
html.lang-ar { --ff-display: "Cairo", "Space Grotesk", sans-serif; --ff-body: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; --ff-mono: "IBM Plex Sans Arabic", "IBM Plex Mono", monospace; }
html.lang-ar .kicker, html.lang-ar .eyebrow, html.lang-ar .mono, html.lang-ar .num,
html.lang-ar .svc__no, html.lang-ar .stat__label, html.lang-ar .ptile__cat,
html.lang-ar .nav__link, html.lang-ar .lc-step__no, html.lang-ar .news-card__meta,
html.lang-ar .ptile__name, html.lang-ar .tagpill, html.lang-ar .chip { letter-spacing: normal; }
html.lang-ar .kicker, html.lang-ar .eyebrow, html.lang-ar .tagpill { text-transform: none; }
html.lang-ar .display, html.lang-ar .h1, html.lang-ar .h2, html.lang-ar .h3,
html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar h4 { letter-spacing: 0; line-height: 1.18; }
html.lang-ar .lead { line-height: 1.7; }

/* RTL — mirror directional arrows */
html[dir="rtl"] .btn svg, html[dir="rtl"] .link-arrow svg, html[dir="rtl"] .hero__badge .arr { transform: scaleX(-1); }
html[dir="rtl"] .hero__badge { padding: 7px 8px 7px 14px; }
/* keep the strata + network motifs visually unchanged in RTL */
html[dir="rtl"] .brand__logo, html[dir="rtl"] .logo-plate img { transform: none; }

/* ============================================================
   COLOR & VIBRANCY — lively multi-accent palette
   ============================================================ */
:root {
  --c-blue:   oklch(0.585 0.13 252);
  --c-blue-b: oklch(0.715 0.125 248);
  --c-teal:   oklch(0.70 0.12 195);
  --c-violet: oklch(0.62 0.17 292);
  --c-amber:  oklch(0.74 0.14 75);
  --c-green:  oklch(0.70 0.14 158);
  --c-coral:  oklch(0.66 0.17 25);
}

/* Nav: balance the logo against the "Get in touch" button */
.nav .nav__right .btn { padding: 10px 18px; font-size: .92rem; }

/* Colorful kicker dash */
.kicker::before { background: linear-gradient(90deg, var(--c-blue), var(--c-teal)); opacity: 1; height: 2px; }

/* Hero / page-hero: soft multi-color glow for life */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 44% at 86% 6%, oklch(0.62 0.16 256 / .32), transparent 70%),
    radial-gradient(44% 40% at 6% 94%, oklch(0.68 0.13 188 / .22), transparent 72%);
}

/* Service cards — each line gets its own accent */
.svc:nth-child(6n+1){ --ac: var(--c-blue); }
.svc:nth-child(6n+2){ --ac: var(--c-teal); }
.svc:nth-child(6n+3){ --ac: var(--c-violet); }
.svc:nth-child(6n+4){ --ac: var(--c-amber); }
.svc:nth-child(6n+5){ --ac: var(--c-green); }
.svc:nth-child(6n+6){ --ac: var(--c-coral); }
.svc .svc__icon, .svc .svc__no { color: var(--ac); }
.dark .svc .svc__icon, .dark .svc .svc__no { color: var(--ac); }
.svc .card__glow { background: radial-gradient(circle, color-mix(in oklab, var(--ac) 28%, transparent), transparent 70%); }
.svc:hover { border-color: color-mix(in oklab, var(--ac) 50%, var(--stone-200)); }

/* Philosophy feature icons — cycle three colors */
.feature:nth-child(3n+1) .feature__ic { color: var(--c-blue);   background: color-mix(in oklab, var(--c-blue) 15%, transparent); }
.feature:nth-child(3n+2) .feature__ic { color: var(--c-teal);   background: color-mix(in oklab, var(--c-teal) 15%, transparent); }
.feature:nth-child(3n+3) .feature__ic { color: var(--c-violet); background: color-mix(in oklab, var(--c-violet) 15%, transparent); }

/* Lifecycle steps — per-step accent on dark */
.lc-step:nth-child(1){ --ac: var(--c-blue-b); }
.lc-step:nth-child(2){ --ac: var(--c-teal); }
.lc-step:nth-child(3){ --ac: var(--c-violet); }
.lc-step__no { color: var(--ac); }
.lc-step__tags li::before { background: var(--ac); }

/* Colorful strata motif */
.strata span:nth-child(1){ background: var(--c-teal); }
.strata span:nth-child(2){ background: var(--c-blue); }
.strata span:nth-child(3){ background: var(--c-violet); }
.strata span:nth-child(4){ background: var(--c-amber); }

/* CTA band — vibrant gradient instead of flat ink */
.cta-band { background: linear-gradient(125deg, oklch(0.47 0.15 260) 0%, oklch(0.44 0.13 205) 46%, #10141a 100%); }
/* CTA band sits on a dark gradient but isn't tagged .dark — force legible text */
.cta-band .lead { color: var(--on-dark-soft); }
.cta-band .kicker { color: var(--copper-bright); }
.cta-band .h1, .cta-band h2 { color: var(--on-dark); }

/* Press-release sidebar: sticky on desktop, static on mobile (was overlapping the body) */
.release-aside { position: sticky; top: 110px; }
@media (max-width: 860px) {
  .release-aside { position: static; top: auto; margin-bottom: 8px; }
}

/* News tags — rotate accent colors */
.news-card:nth-child(3n+1) .news-card__meta .tag { color: var(--c-blue); }
.news-card:nth-child(3n+2) .news-card__meta .tag { color: var(--c-teal); }
.news-card:nth-child(3n+3) .news-card__meta .tag { color: var(--c-violet); }

/* Partner tiles — cycle accent on the category label + hover border */
.ptile:nth-child(4n+1){ --ac: var(--c-blue); }
.ptile:nth-child(4n+2){ --ac: var(--c-teal); }
.ptile:nth-child(4n+3){ --ac: var(--c-violet); }
.ptile:nth-child(4n+4){ --ac: var(--c-amber); }
.ptile .ptile__cat { color: var(--ac); }
.ptile:hover { border-color: var(--ac); }
