/* =========================================================================
   Helix AI Strategies — Design System
   Editorial serif + grotesk pairing, navy palette extracted from logo.
   ========================================================================= */

:root {
  /* Brand — pulled from helix logo */
  --navy-900: #0a1f3d;
  --navy-800: #0e2a4e;
  --navy-700: #14365e;
  --navy-600: #1f4474;
  --navy-500: #3a5d8a;   /* helix-swoop blue */
  --navy-400: #6485ad;
  --navy-300: #9bb3cc;
  --navy-200: #cdd9e6;
  --navy-100: #e5ecf4;
  --navy-50:  #f3f6fa;

  /* Surfaces */
  --bg:        #fbfaf7;     /* warm off-white, McKinsey-ish */
  --bg-alt:    #f3f0ea;
  --bg-card:   #ffffff;
  --bg-deep:   var(--navy-900);

  /* Ink */
  --ink:       #0e1a2c;
  --ink-soft:  #2c3a52;
  --ink-mute:  #5f6e85;
  --ink-faint: #93a0b5;
  --line:      #e2dfd7;
  --line-soft: #ece9e0;

  /* Accent — single warm hit for credibility */
  --accent:    #c4622d;   /* terracotta, used sparingly */

  /* Type — single clean sans-serif family, bold headings, no italics */
  --serif: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:  "Geist", "Söhne", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0:  clamp(0.96rem, 0.91rem + 0.25vw, 1.05rem);
  --step-1:  clamp(1.12rem, 1.04rem + 0.4vw, 1.28rem);
  --step-2:  clamp(1.4rem, 1.25rem + 0.7vw, 1.7rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.4vw, 2.5rem);
  --step-4:  clamp(2.4rem, 1.85rem + 2.5vw, 3.6rem);
  --step-5:  clamp(3rem, 2.1rem + 4vw, 5rem);
  --step-6:  clamp(3.6rem, 2.3rem + 6vw, 6.5rem);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Container */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}



/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--navy-800); color: white; }

/* Type primitives */
/* Single sans family: all display/heading type is bold and upright (no italics) */
.display, .hero h1, .hero h1 em,
.section-header h2, .content-head h2,
.se-panel-headline, .scroll-flip-title,
.services-hero h1, .about-hero h1,
.services-layer-title, .step-card-title,
.team-card-name, .value-item h4,
.modal h2, .footer-cta, .footer-cta em,
.pullquote, .case-card-quote, .case-card-mark,
.article-card-title, .post-card-title {
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: -0.02em;
}
em { font-style: normal; }
.serif { font-family: var(--serif); font-weight: 700; font-style: normal; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy-600);
}
.eyebrow-dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-500);
  margin-right: 10px;
  vertical-align: middle;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -16px rgba(10,31,61,.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--navy-800);
}
.btn-link {
  background: transparent;
  padding: 0;
  color: var(--navy-800);
  font-weight: 500;
  border-radius: 0;
}
.btn-link:hover { color: var(--navy-500); }
.btn-arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 2px;
  font-weight: 450;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--navy-800); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--navy-800);
}



.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); }

/* Footer */
.footer {
  position: relative;
  background: var(--bg-deep);
  color: rgba(255,255,255,.8);
  padding: clamp(90px, 12vw, 150px) 0 44px;
  margin-top: 120px;
  overflow: hidden;
  text-align: center;
}





  to   { transform: scaleY(1); opacity: 1; }
}


.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-cta {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 34px;
}
.footer-cta em { font-style: italic; color: var(--navy-300); }
.footer-contact {
  background: #fff;
  color: var(--navy-900);
  margin-bottom: 40px;
}
.footer-contact:hover { background: var(--navy-100); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}
.footer-links a {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-social { display: inline-flex; align-items: center; transition: color .15s; color: rgba(255,255,255,.78); }
.footer-social:hover { color: #fff; }
.footer-sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer-meta-logo img { height: 44px; filter: brightness(0) invert(1); opacity: .85; }
@media (max-width: 600px) {
  .footer-meta { flex-direction: column; gap: 14px; }
  .footer-links { gap: 16px; }
}

/* Section base */
.section-pad { padding: clamp(80px, 12vw, 160px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Section header */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-header p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  max-width: 52ch;
}
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: var(--navy-300);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -40px rgba(14, 42, 78, .25);
}

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Divider */
.hairline {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Code/Mono accent */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Page transition */
.page-fade {
  animation: pageFade .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Hero entrance — staggered per-element */
@keyframes heroEntry {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-animate {
  animation: heroEntry 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Scroll-triggered reveal (IntersectionObserver adds .is-in) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(.2,.7,.2,1), transform 0.75s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   Pyramid
   ========================================================================= */
.pyramid-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 480;
  margin: 0 auto;
}
.pyramid-shell svg { display: block; width: 100%; height: 100%; }

.pyramid-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pyramid-label {
  position: absolute;
  left: 100%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), color .15s;
  cursor: pointer;
  padding-left: 0;
  color: var(--ink-soft);
}
.pyramid-label.is-shown { opacity: 1; }
.pyramid-label:hover { color: var(--navy-800); }
.pyramid-label-line {
  width: 28px;
  height: 1px;
  background: var(--ink-faint);
  transition: width .25s ease, background .25s ease;
}
.pyramid-label:hover .pyramid-label-line { width: 36px; background: var(--navy-800); }
.pyramid-label-content { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.pyramid-label-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.pyramid-label-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.pyramid-label.is-active .pyramid-label-name { color: var(--accent); }
.pyramid-label.is-active .pyramid-label-line { background: var(--accent); width: 36px; }

/* On smaller screens, push labels below the pyramid. */
@media (max-width: 720px) {
  .pyramid-labels { display: none; }
}

/* Inside labels — title centered within each band */
.pyramid-inside-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pyramid-inside-label {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) translateY(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
}
.pyramid-inside-label.is-shown { opacity: 1; transform: translate(-50%, -50%); }
.pyramid-inside-label .pil-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}
.pyramid-inside-label .pil-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .7;
}
.pyramid-inside-label.on-dark { color: #fff; }
.pyramid-inside-label.on-light { color: var(--navy-900); }
.pyramid-inside-label.is-focus { transform: translate(-50%, -50%) scale(1.06); }
.pyramid-inside-label.is-focus .pil-name { font-weight: 700; }
.pyramid-inside-label.is-dim { opacity: .42; }
.pyramid-inside-label.is-dim.is-shown { opacity: .42; }

/* =========================================================================
   Hero — centered, sky-blue → blush gradient (Dreelio-inspired)
   ========================================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(60px, 9vw, 120px);
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #cfe0f2 0%,
      #d9e4f0 26%,
      #e9e2e8 56%,
      #f6e6df 80%,
      var(--bg) 100%);
}

  background:
    linear-gradient(180deg,
      #1a3a66 0%,
      #15294a 32%,
      #1d2740 62%,
      #2c2333 84%,
      var(--bg) 100%);
}
/* soft cloud wisps */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 32% at 18% 14%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(ellipse 44% 26% at 82% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse 60% 30% at 50% 8%, rgba(255,255,255,.45), transparent 65%);
  pointer-events: none;
}


.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-eyebrow {
  margin-bottom: 26px;
  color: var(--navy-700);
}

.hero h1 {
  font-family: var(--serif);
  font-size: var(--step-6);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 26px;
  color: var(--navy-900);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--navy-600);
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 auto 34px;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-marks {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-mute);
  font-size: 13px;
}
.hero-marks-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px color-mix(in srgb, #16a34a 18%, transparent);
}
/* Floating pyramid (no box) */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.hero-art .pyramid-shell { max-width: 100%; margin: 0 auto; }
@media (max-width: 720px) {
  .hero-art .pyramid-shell { max-width: 100%; }
}

/* =========================================================================
   Scroll-expand — big pyramid on the left; the active layer's colour
   expands to cover a full-height info panel on the right, base -> apex.
   ========================================================================= */
.scroll-expand {
  position: relative;
  min-height: 620vh;       /* room for 5 layers to dwell */
}
.scroll-expand-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg-alt);
}
/* Left — pyramid, sized to fill the section */
.scroll-expand-pyramid {
  position: relative;
  flex: 0 0 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(28px, 4vw, 72px);
}
.scroll-expand-pyramid .pyramid-shell {
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 560 / 480;
}
.scroll-expand-eyebrow {
  position: absolute;
  top: clamp(28px, 5vh, 56px);
  left: clamp(28px, 4vw, 72px);
  right: clamp(20px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scroll-expand-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Right — colour-flooded info panel that "expands to cover" the section */
.scroll-expand-info {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 110px) clamp(40px, 5vw, 96px);
  transition: background 1s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.scroll-expand-info.flood-dark { color: #fff; --se-soft: rgba(255,255,255,.78); --se-faint: rgba(255,255,255,.5); --se-line: rgba(255,255,255,.22); --se-chip: rgba(255,255,255,.12); }
.scroll-expand-info.flood-light { color: var(--navy-900); --se-soft: rgba(10,31,61,.74); --se-faint: rgba(10,31,61,.5); --se-line: rgba(10,31,61,.16); --se-chip: rgba(10,31,61,.06); }

.scroll-expand-panels {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 440px;
}
.se-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.se-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.se-panel-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--sans);
  text-transform: uppercase;
}
.se-panel-tag-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--se-faint);
}
.se-panel-tag-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--se-chip);
}
.se-panel-headline {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 22px;
  color: inherit;
  text-wrap: balance;
}
.se-panel-body {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--se-soft);
  margin: 0 0 28px;
  max-width: 46ch;
}
.se-panel-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.se-panel-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: inherit;
}
.se-panel-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 1.5px;
  background: currentColor;
  opacity: .65;
}
.se-panel-proof {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .01em;
  padding: 16px 20px;
  border-left: 2px solid currentColor;
  background: var(--se-chip);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 30px;
  max-width: 44ch;
}
.se-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: inherit;
  align-self: flex-start;
  transition: gap .2s;
}
.se-panel-link:hover { gap: 13px; }
.se-panel-link .btn-arrow { transition: transform .2s; }
.se-panel-link:hover .btn-arrow { transform: translateX(2px); }

.scroll-expand-rail {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.se-rail-dot {
  width: 3px; height: 22px;
  border-radius: 3px;
  background: var(--se-line);
  transition: background .3s, height .3s;
}
.se-rail-dot.is-done { background: var(--se-faint); }
.se-rail-dot.is-active { background: currentColor; height: 34px; }

@media (max-width: 920px) {
  .scroll-expand { min-height: auto; }
  .scroll-expand-sticky {
    position: static;
    height: auto;
    flex-direction: column;
  }
  .scroll-expand-pyramid {
    flex: none;
    padding: 96px var(--gutter) 40px;
  }
  .scroll-expand-pyramid .pyramid-shell { height: auto; width: 100%; max-width: 460px; }
  .scroll-expand-eyebrow { position: static; margin-bottom: 32px; flex-direction: row; justify-content: space-between; }
  .scroll-expand-info { padding: 64px var(--gutter); }
  .scroll-expand-panels { position: static; min-height: 0; max-width: none; }
  .se-panel { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 56px; }
  .se-panel:last-child { margin-bottom: 0; }
  .scroll-expand-rail { display: none; }
}

/* =========================================================================
   Content cards (blog) — modern, less editorial
   ========================================================================= */
.content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.content-head h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
  .content-head { flex-direction: column; align-items: flex-start; }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-300);
  box-shadow: 0 30px 60px -36px rgba(14,42,78,.32);
}
.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.post-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%);
  pointer-events: none;
}
.post-card-cat {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: rgba(255,255,255,.9);
  padding: 5px 11px;
  border-radius: 999px;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  flex: 1;
}
.post-card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}
.post-card-excerpt {
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0 0 auto;
}
.post-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--sans);
}
.post-card-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.post-card:hover .post-card-title { color: var(--navy-800); }

/* Featured single-post layout */
.post-card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s;
}
.post-card--featured:hover {
  transform: translateY(-4px);
  border-color: var(--navy-300);
  box-shadow: 0 30px 60px -36px rgba(14,42,78,.32);
}
.post-card-thumb--featured {
  aspect-ratio: unset;
  min-height: 280px;
}
.post-card-body--featured {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
@media (max-width: 640px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card-thumb--featured { min-height: 200px; }
}

/* =========================================================================
   Services — expanded pyramid + layer detail panels
   ========================================================================= */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}
@media (max-width: 980px) { .services-layout { grid-template-columns: 1fr; gap: 40px; } }

.services-pyramid-col {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 980px) { .services-pyramid-col { position: static; } }

.services-pyramid-col .pyramid-shell { max-width: 360px; margin: 0; }

.services-layer-block {
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.services-layer-block:last-child { border-bottom: 0; }
.services-layer-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.services-layer-title {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
}
.services-layer-lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 56ch;
}
.services-layer-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.services-layer-deliverables li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.services-layer-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px; height: 1px;
  background: var(--navy-500);
}
@media (max-width: 600px) { .services-layer-deliverables { grid-template-columns: 1fr; } }

.case-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  align-items: start;
}
.case-card-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
}
.case-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.case-card-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 12px;
}
.case-card-attr {
  font-size: 13px;
  color: var(--ink-mute);
}
@media (max-width: 600px) { .case-card { grid-template-columns: 1fr; } }

/* How we work — three steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  padding: 36px 32px;
  border-top: 1px solid var(--navy-800);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--navy-700);
  text-transform: uppercase;
}
.step-card-title {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}
.step-card-body {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   About — team grid
   ========================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.team-card-photo {
  aspect-ratio: 4 / 5;
  background: var(--navy-50);
  overflow: hidden;
  position: relative;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  filter: saturate(.9);
}
.team-card:hover .team-card-photo img { transform: scale(1.03); }
.team-card-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-100), var(--navy-200));
}
.team-card-placeholder-mark {
  font-family: var(--serif);
  font-size: 80px;
  color: var(--navy-600);
  opacity: .55;
}
.team-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-card-name {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.team-card-title {
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy-700);
  margin: 0 0 8px;
}
.team-card-bio {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.team-card-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.team-card-link {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}
.team-card-link:hover { color: var(--navy-800); border-color: var(--navy-800); }

/* About hero */
.about-hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #cfe0f2 0%,
      #d9e4f0 26%,
      #e9e2e8 56%,
      #f6e6df 80%,
      var(--bg) 100%);
}
.about-hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 32% at 18% 14%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(ellipse 44% 26% at 82% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse 60% 30% at 50% 8%, rgba(255,255,255,.45), transparent 65%);
  pointer-events: none;
}
.about-hero {
  position: relative;
  padding-block: clamp(60px, 8vw, 120px) clamp(40px, 5vw, 60px);
}
.about-hero h1 {
  font-family: var(--serif);
  font-size: var(--step-5);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 16px 0 28px;
  text-wrap: balance;
  max-width: 16ch;
}
.about-hero p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0;
}

/* About section labels */
.about-section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Person cards (team + advisors) — mirrors post-card--featured style */
.pcards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pcard {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s;
}
.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--navy-300);
  box-shadow: 0 24px 48px -28px rgba(14,42,78,.22);
}
.pcard-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pcard-thumb--team   { min-height: 260px; }
.pcard-thumb--advisor { min-height: 200px; }
.pcard-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.92);
  display: block;
}
.pcard-initials {
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  color: rgba(255,255,255,.55);
  letter-spacing: -0.02em;
  user-select: none;
}
.pcard-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.pcard-meta { display: flex; flex-direction: column; gap: 5px; }
.pcard-name {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.pcard-suffix {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 400;
  margin-top: 4px;
}
.pcard-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.pcard-bio {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  max-width: 58ch;
}
.pcard-creds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard-creds li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.pcard-creds li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--navy-400);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .pcard { grid-template-columns: 1fr; }
  .pcard-thumb--team   { min-height: 220px; }
  .pcard-thumb--advisor { min-height: 160px; }
  .pcard-body { padding: 24px 24px 28px; }
}

/* Values bar (small accent on About) */.values-bar {
  margin-top: 80px;
  padding: 56px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .values-bar { grid-template-columns: 1fr; gap: 28px; } }
.value-item h4 {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 8px 0 8px;
}
.value-item p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.value-item-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--navy-700);
  text-transform: uppercase;
}

/* Services page header */
.services-hero {
  padding-block: clamp(60px, 8vw, 120px) clamp(40px, 5vw, 60px);
}
.services-hero h1 {
  font-family: var(--serif);
  font-size: var(--step-5);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 16px 0 28px;
  text-wrap: balance;
  max-width: 22ch;
}
.services-hero p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0;
}

/* =========================================================================
   Contact modal
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal { transform: none; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal h2 {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.modal-sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 28px;
}
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row.two-col { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row.two-col { grid-template-columns: 1fr; } }
.form-row label {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-800) 14%, transparent);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Future-swap zone badge */
.swap-zone {
  position: relative;
}
.swap-zone-badge {
  position: absolute;
  top: -14px;
  left: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 3px 8px;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
}

/* =========================================================================
   Mobile nav — hamburger + full-screen overlay menu
   ========================================================================= */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background .15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg-alt); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 48px;
  flex: 1;
}
.mobile-menu-link {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  transition: color .15s, padding-left .15s;
}
.mobile-menu-link:hover,
.mobile-menu-link.is-active { color: var(--navy-700); padding-left: 8px; }
.mobile-menu-cta { margin-top: 40px; align-self: flex-start; }

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }
}

/* =========================================================================
   Mobile responsive overrides
   ========================================================================= */

/* Hero — prevent overflow, scale text */
.hero h1 { word-break: break-word; }
@media (max-width: 480px) {
  .hero { padding: 40px 0 48px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-art { margin-top: 32px; }
  .modal { padding: 28px 20px; }
  .modal h2 { font-size: var(--step-2); }
}

/* Pyramid inside labels — bigger text on small screens */
@media (max-width: 480px) {
  .pyramid-inside-label .pil-name {
    font-size: clamp(9px, 2.8vw, 13px);
  }
}

/* Nav height on mobile */
@media (max-width: 640px) {
  .nav-inner { height: 64px; }
  .nav-logo img { height: 32px; }
}

/* Services hero text */
@media (max-width: 640px) {
  .services-hero h1,
  .about-hero h1 { font-size: var(--step-4); }
  .services-hero,
  .about-hero { padding-block: 48px 32px; }
}

/* Scroll-expand mobile — show all panels stacked */
@media (max-width: 640px) {
  .scroll-expand-pyramid { padding: 56px var(--gutter) 24px; }
  .scroll-expand-info { padding: 40px var(--gutter) 56px; }
  .se-panel-headline { font-size: var(--step-3); }
}

/* Case card on very small screens */
@media (max-width: 420px) {
  .case-card { padding: 22px 18px; gap: 18px; }
  .case-card-mark { width: 44px; height: 44px; font-size: 18px; }
}

/* Step cards on mobile */
@media (max-width: 640px) {
  .step-card { padding: 28px 20px; }
  .steps-grid { margin-top: 40px; }
}

/* Content/blog section heading row */
@media (max-width: 640px) {
  .content-head h2 { font-size: var(--step-2); }
}

/* Footer margin */
@media (max-width: 640px) {
  .footer { margin-top: 64px; }
}
