/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-primary:       #F2B705;
  --color-primary-dark:  #D4A004;
  --color-primary-light: #F5C84A;
  --color-primary-glow:  rgba(242, 183, 5, 0.15);

  /* Backgrounds */
  --color-bg:        #0F1112;
  --color-surface:   #161A1C;
  --color-surface-2: #1E2325;
  --color-surface-3: #252A2D;

  /* Text */
  --color-text:       #FCFCFC;
  --color-text-muted: rgba(252, 252, 252, 0.55);
  --color-text-dim:   rgba(252, 252, 252, 0.35);

  /* On light (#FCFCFC) surfaces — dark-on-light equivalents (matches Byte-Home) */
  --on-light-text:    #0F1112;
  --on-light-muted:   rgba(15, 17, 18, 0.65);
  --on-light-dim:     rgba(15, 17, 18, 0.35);
  --on-light-border:  rgba(15, 17, 18, 0.10);

  /* Borders */
  --color-border:       rgba(252, 252, 252, 0.08);
  --color-border-hover: rgba(242, 183, 5, 0.35);

  /* Typography */
  --font-heading: 'IBM Plex Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Spacing — 8pt grid */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 760px;
  --navbar-height:    72px;

  /* Radius */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 4px 24px rgba(242, 183, 5, 0.25);
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;   /* guard: the navbar slides off-screen left when collapsed */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Site-wide point mesh — the page's base background. Fixed behind everything and
   drifting on the shared mesh-wave keyframes (defined in section 6). z-index: -1
   keeps it under all in-flow content without creating a stacking context of its
   own, so the fixed navbar and the section overlays keep working. Sections that
   set their own background (the yellow white-label band, dark surfaces, cards)
   paint over it and keep their look; every other section is transparent so the
   mesh reads through. */
body::before {
  content: "";
  position: fixed;
  inset: -80px;
  background-image:
    radial-gradient(circle, rgba(252, 252, 252, 0.10) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(252, 252, 252, 0.10) 1px, transparent 1.5px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  animation: mesh-wave 14s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

textarea {
  resize: vertical;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  padding: var(--space-24) 0;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 660px;
  margin-top: var(--space-4);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
}

#footer .section-label {
  flex-basis: 100%;
  margin-bottom: var(--space-2);
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-primary);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-full {
  width: 100%;
}


/* --- Navbar — transparent, borderless, fixed inside the hero.
   It scrolls away with the hero; it does not follow the page. --- */
#navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-mark {
  height: 1.6em;
  width: auto;
  display: block;
  margin-right: 0.5em;
}

.logo-byte { color: var(--color-text); }
.logo-nana { color: var(--color-primary); }

/* Mobile: logo only — the navbar CTA does not render (the sticky bar carries it) */
.nav-cta { display: none; }
@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}


/* ==========================================================================
   SECTION — 1. HERO
   ========================================================================== */
.section-hero {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: grid;
  align-content: center;      /* vertically centre the hero content within 85vh */
  padding-top: calc(var(--navbar-height) + var(--space-8));
  padding-bottom: var(--space-12);
  background-color: transparent;   /* body point mesh reads through */
  border-bottom: 1px solid var(--color-border);
}

/* Hero layout — mobile-first: text and globe stacked in a single column.
   Splits into two side-by-side columns from the tablet breakpoint up
   (see the min-width: 768px media query below). */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* minmax(0,…) lets the track shrink below content size */
  gap: 0;                  /* mobile: existing element margins handle the vertical rhythm */
  align-items: center;
}
/* Mobile: dissolve .hero-content so its children become direct grid items.
   That lets the globe slot in between the paragraph and the buttons via order. */
.hero-content {
  display: contents;
}
.hero-content > * {
  max-width: 100%;
}
.hero-content .eyebrow { order: 1; margin-bottom: 0; display: block; text-align: center; }
.hero-title    { order: 2; }
.hero-subhead  { order: 3; }
.hero-globe    { order: 4; }
.hero-ctas     { order: 5; }
.trust-strip   { order: 6; }

/* Animated Americas globe — desktop only (not rendered on mobile) */
.hero-globe {
  display: none;
  position: relative;
  width: 100%;
  min-width: 0;            /* never let the canvas push the layout wider than the viewport */
  max-width: 100%;
  align-self: stretch;
}
@media (min-width: 768px) {
  .hero-globe { display: block; }
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.section-hero h1 {
  /* Fluid on phones. Overridden by fixed sizes at the 768px / 1024px breakpoints below. */
  font-size: clamp(2.15rem, 9vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 100%;
  margin-top: var(--space-4);
  text-align: center;
}

.hero-subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 620px;
  margin-top: var(--space-6);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
}
/* Mobile-first: primary CTA fills the container width */
.hero-ctas .btn {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Secondary CTA — plain text link, never a second button */
.hero-textlink {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: 500;
  transition: color 0.2s ease;
}
.hero-textlink:hover { color: var(--color-primary); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* mobile: center the trust items */
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-8);
  /* dark surface card wrapping the trust items */
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

.trust-strip .sep {
  opacity: 0.3;
}

/* Trust strip now lives in its own section directly below the hero */
.section-trust {
  background-color: var(--color-bg);   /* opaque dark band — masks the body mesh */
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
}
.section-trust .trust-strip { margin-top: 0; }


/* ==========================================================================
   SECTION — 2. PAIN
   ========================================================================== */
.section-pain {
  background-color: transparent;   /* body point mesh reads through */
}

.section-pain h2 {
  max-width: 580px;
}

/* Five pain cards — a static grid so all five read at once (the spine of the page) */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
@media (min-width: 640px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
}

.pain-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: background-color 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease;
}
.pain-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pain-card .card-icon {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.pain-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}
.pain-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}

/* Existing scrolling CTA banner, moved up to sit directly after the pain cards */
.pain-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}
@media (min-width: 768px) {
  .pain-cta { justify-content: flex-start; }
}

.pain-dial {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-10);
  align-items: stretch;
}

/* ---- left: the vertical dial ---- */
.dial-track {
  position: relative;
  flex: 0 0 300px;
  max-width: 320px;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.dial-track::before {                /* the track line */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: rgba(15, 17, 18, 0.12);
  border-radius: 2px;
}
.dial-thumb {                         /* moving active indicator */
  position: absolute;
  left: -1px;
  top: 0;
  width: 4px;
  height: 0;
  border-radius: 4px;
  background: var(--color-primary);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s ease;
}
.dial-step {
  appearance: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: var(--space-3);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  color: rgba(15, 17, 18, 0.45);
  transition: color 0.2s ease;
  font-family: var(--font-body);
}
.dial-step:hover { color: rgba(15, 17, 18, 0.8); }
.dial-step.is-active { color: var(--color-bg); }
.dial-num {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  flex: 0 0 auto;
}
.dial-label {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

/* ---- right: the cards (one shown at a time) ---- */
.dial-cards {
  position: relative;
  flex: 1 1 auto;
  display: grid;
}
.dial-card {
  grid-area: 1 / 1;                   /* stack all cards in one cell */
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.dial-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dial-card .card-icon {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.dial-card h3 {
  font-size: var(--text-2xl);
  color: #FCFCFC;
  margin-bottom: var(--space-3);
}
.dial-card p {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(252, 252, 252, 0.7);
  max-width: 46ch;
}

@media (max-width: 768px) {
  .pain-dial { flex-direction: column; gap: var(--space-8); }
  .dial-track { flex-basis: auto; max-width: none; }
  .dial-card { padding: var(--space-8); }
}

.pain-close {
  margin-top: var(--space-10);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text) !important;
  letter-spacing: -0.01em;
  text-align: center;   /* mobile: centered */
}


/* ==========================================================================
   SECTION — 3. MODEL
   ========================================================================== */
.section-model {
  background-color: var(--color-bg);   /* opaque dark band — masks the body mesh */
}

/* The point mesh now lives on <body> (see section 2, "Site-wide point mesh"),
   so .section-mesh is only the stacking/clipping helper its markup relies on. */
.section-mesh {
  position: relative;
  overflow: hidden;
}
.section-mesh > .container {
  position: relative;
  z-index: 1;
}
@keyframes mesh-wave {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(14px, -10px); }
  50%  { transform: translate(0, -22px); }
  75%  { transform: translate(-14px, -10px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* centered header */
.section-model .section-label { text-align: center; }
.section-model > .container > h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-model > .container > .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Talent / "the bar" block */
.section-model .talent-content h2,
.section-model .talent-content .section-intro {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Stack chip row + closing links under the bar */
.bar-stack { margin-top: var(--space-16); }
.bar-stack__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.bar-stack__intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-6);
}

/* Tech stack grouped into category cards */
.stack-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (min-width: 640px) { .stack-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stack-cards { grid-template-columns: repeat(3, 1fr); } }

.stack-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.stack-card__cat {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.stack-card .chip-row { margin-top: 0; }
/* chips sit on a lighter surface so they read against the card */
.stack-card .chip { background-color: var(--color-surface-2); }
.chip {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.bar-ai {
  margin-top: var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}
/* "Send us your stack" — a real button now, so the old text-link styling
   (yellow, text-lg, opacity hover) is gone; .btn-secondary carries the look. */
.bar-link {
  margin-top: var(--space-6);
  text-align: center;   /* centres the label; .btn-full spans the container */
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.model-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: background-color 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover: invert the card to brand color with dark content */
.model-card:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.model-card:hover .card-icon,
.model-card:hover h3,
.model-card:hover p {
  color: var(--color-bg);
}

.card-icon {
  display: block;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  line-height: 1;
  transition: color 0.25s ease;
}

.model-card h3 {
  margin-bottom: var(--space-3);
  transition: color 0.25s ease;
}

.model-card p {
  font-size: var(--text-base);
  transition: color 0.25s ease;
}

/* 8th card — flip card: logo on front, CTA on back */
.model-card--flip {
  padding: 0;
  background: transparent;
  border: none;
  perspective: 1000px;
  min-height: 200px;
  text-decoration: none;
}
/* Don't apply the generic invert/lift to the flip container itself */
.model-card--flip:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

.flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.model-card--flip:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front {
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  background-color: var(--color-surface);
}
.model-card__blurb {
  font-size: var(--text-base);
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.flip-back {
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  background-color: var(--color-primary);
  transform: rotateY(180deg);
}

.model-card__logo {
  height: 79px;
  width: auto;
  display: block;
}
/* Logo on the colored back face rendered white so it stays legible */
.flip-back .model-card__logo {
  filter: brightness(0) invert(1);
}
.model-card__cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  text-align: center;
}
/* Front sits on the light surface; back sits on the primary fill */
.flip-front .model-card__cta {
  color: var(--color-primary);
}
.flip-back .model-card__cta {
  color: var(--color-bg);
}


/* ==========================================================================
   SECTION — 4. TALENT / PROOF
   ========================================================================== */
.talent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .talent-grid { grid-template-columns: 1.1fr 0.9fr; }
}
/* Team photo — desktop only. On mobile the <picture> falls back to a
   transparent pixel and the container is removed, so nothing heavy loads. */
.talent-media { display: none; }
@media (min-width: 900px) {
  .talent-media {
    display: flex;
    justify-content: center;
  }
}
.talent-media img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.talent-list {
  list-style: none;
  margin: var(--space-8) 0 var(--space-8);
  display: grid;
  gap: var(--space-4);
  max-width: 660px;
}
.talent-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.talent-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-bg);
  font-size: 0.8em;
  font-weight: 800;
  margin-top: 0.1em;
}
.talent-closer {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 660px;
  line-height: 1.7;
}

/* ==========================================================================
   SECTION — 4. WHITE-LABEL CALLOUT
   ========================================================================== */
.section-whitelabel {
  background-color: var(--color-primary);
  padding: var(--space-16) 0;
}

.section-whitelabel .section-label { text-align: center; }

.section-whitelabel h2 {
  color: var(--color-bg);
  font-size: var(--text-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-whitelabel p {
  color: rgba(15, 17, 18, 0.72);
  font-size: var(--text-lg);
  max-width: 660px;
  margin-top: var(--space-4);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  text-align: center;
}

.whitelabel-close {
  font-weight: 600 !important;
  color: rgba(15, 17, 18, 0.9) !important;
  margin-top: var(--space-6) !important;
}

/* Secret / NDA trust bar */
.trust-marquee {
  margin-top: var(--space-12);
  overflow: hidden;
  width: 100%;
  /* fade out the edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: max-content;
  animation: trust-scroll 36s linear infinite;
}
.trust-marquee:hover .trust-track { animation-play-state: paused; }

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: 8px;
  background: rgba(15, 17, 18, 0.06);
  border: 1px solid rgba(15, 17, 18, 0.14);
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
/* hover: invert colors + reveal "Top Secret" */
.trust-chip:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
}
.trust-chip:hover .trust-lock { background-color: #FCFCFC; }
.trust-chip:hover .trust-name { color: transparent; filter: none; }
.trust-chip:hover .trust-name::after { opacity: 1; }
.trust-lock {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: rgba(15, 17, 18, 0.7);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='black'%20d='M12%201a5%205%200%200%200-5%205v3H6a2%202%200%200%200-2%202v9a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-9a2%202%200%200%200-2-2h-1V6a5%205%200%200%200-5-5zm3%208H9V6a3%203%200%200%201%206%200v3z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='black'%20d='M12%201a5%205%200%200%200-5%205v3H6a2%202%200%200%200-2%202v9a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-9a2%202%200%200%200-2-2h-1V6a5%205%200%200%200-5-5zm3%208H9V6a3%203%200%200%201%206%200v3z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.trust-name {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgba(15, 17, 18, 0.85);
  letter-spacing: 0.02em;
  filter: blur(5px);            /* redacted — names not shown */
  user-select: none;
  transition: filter 0.2s ease, color 0.2s ease;
}
.trust-name::after {
  content: "Top Secret";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}


/* ==========================================================================
   SECTION — 5. PROOF / TRUST
   ========================================================================== */
.section-proof {
  background-color: transparent;   /* body point mesh reads through */
}

.section-proof h2 {
  max-width: 560px;
}

/* Independence note — sits directly above the quotes */
.proof-note {
  margin-top: var(--space-6);
  max-width: 720px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Proof CTA — full-width primary button, centered, with the Clutch link below */
.proof-cta {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}
.proof-cta .btn {
  width: 100%;
  justify-content: center;
}
.proof-textlink {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-base);
  transition: opacity 0.2s ease;
}
.proof-textlink:hover { opacity: 0.75; }

/* Proof rating — Clutch review badge card (yellow) */
.proof-rating {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Yellow trust bar — rating + stats + Clutch link in one horizontal strip */
.trust-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-8);
  padding: var(--space-5) var(--space-8);
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
}

/* Items get a thin divider between them */
.trust-rating,
.trust-stat {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--color-bg);
}
.trust-stat + .trust-stat::before,
.trust-rating + .trust-stat::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-8) / 2);
  top: 50%;
  transform: translateY(-50%);
  height: 1.6em;
  width: 1px;
  background-color: rgba(15, 17, 18, 0.25);
}

.trust-rating .trust-stars {
  font-size: var(--text-base);
  letter-spacing: 1px;
  line-height: 1;
}
.trust-score {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.03em;
}
.trust-on {
  font-size: var(--text-sm);
  color: rgba(15, 17, 18, 0.7);
}

.trust-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  letter-spacing: -0.02em;
}
.trust-cap {
  font-size: var(--text-sm);
  color: rgba(15, 17, 18, 0.7);
}

.rating-meta {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(15, 17, 18, 0.6);
}

/* Testimonials */
/* Testimonials carousel */
.testimonials-carousel {
  margin-top: var(--space-10);
}
.carousel-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* old Edge */
  padding-bottom: var(--space-2);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 17, 18, 0.2);
  background: transparent;
  color: var(--color-bg);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-stars {
  color: var(--color-primary);
  font-size: var(--text-lg);
  letter-spacing: 2px;
  line-height: 1;
}

.testimonial-card > p {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.6;
}

.testimonial-card footer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial-card .location {
  color: var(--color-text-dim);
}

/* Case studies */
.case-studies {
  margin-top: var(--space-16);
}

.case-studies h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.case-card {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.2s ease;
}

.case-card:hover {
  border-color: var(--color-border-hover);
}

.case-industry {
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--color-primary) !important;
  margin-bottom: var(--space-3) !important;
}

.case-card h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.case-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.case-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
}

.case-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   SECTION — 5b. WHAT WE'VE BUILT (case studies dial)
   ========================================================================== */
.section-cases {
  background-color: var(--color-bg);
}
/* dial recolored for the dark background */
.section-cases .dial-track::before { background: rgba(252, 252, 252, 0.12); }
.section-cases .dial-step { color: rgba(252, 252, 252, 0.45); }
.section-cases .dial-step:hover { color: rgba(252, 252, 252, 0.8); }
.section-cases .dial-step.is-active { color: #FCFCFC; }
.section-cases .dial-card {
  background-color: var(--color-surface);   /* matches section 3 cards */
  border: 1px solid var(--color-border);
}
/* spread Challenge / Solution / Result across the card width */
.section-cases .dial-card p { max-width: none; }
.section-cases .case-body {
  flex-direction: row;
  gap: var(--space-10);
}
.section-cases .case-item { flex: 1 1 0; }
@media (max-width: 768px) {
  .section-cases .case-body { flex-direction: column; gap: var(--space-5); }
}

/* Horizontal dial: steps across the top, cards below */
.pain-dial--horizontal {
  flex-direction: column;
  gap: var(--space-8);
}
.pain-dial--horizontal .dial-track {
  flex: none;
  max-width: none;
  flex-direction: row;
  padding-left: 0;
  padding-bottom: var(--space-3);
  gap: var(--space-2);
}
.pain-dial--horizontal .dial-track::before {   /* line along the bottom */
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: auto;
  height: 2px;
}
.pain-dial--horizontal .dial-thumb {           /* underline that slides sideways */
  left: 0;
  top: auto;
  bottom: 0;
  width: 0;
  height: 4px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s ease;
}
.pain-dial--horizontal .dial-step {
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

/* Case-card icons (flat line icons, brand color) */
.case-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  background-color: var(--color-primary);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.case-icon--health {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20.8%204.6a5.5%205.5%200%200%200-7.8%200L12%205.7l-1-1.1a5.5%205.5%200%200%200-7.8%207.8l1%201.1L12%2021l7.8-7.5%201-1.1a5.5%205.5%200%200%200%200-7.8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20.8%204.6a5.5%205.5%200%200%200-7.8%200L12%205.7l-1-1.1a5.5%205.5%200%200%200-7.8%207.8l1%201.1L12%2021l7.8-7.5%201-1.1a5.5%205.5%200%200%200%200-7.8z'/%3E%3C/svg%3E");
}
.case-icon--structure {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2012h-4l-3%209L9%203l-3%209H2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%2012h-4l-3%209L9%203l-3%209H2'/%3E%3C/svg%3E");
}
.case-icon--agri {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2020A7%207%200%200%201%204%2013C4%207%2011%204%2020%204c0%209-3%2016-9%2016z'/%3E%3Cpath%20d='M4%2020c2-4%205-7%209-9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2020A7%207%200%200%201%204%2013C4%207%2011%204%2020%204c0%209-3%2016-9%2016z'/%3E%3Cpath%20d='M4%2020c2-4%205-7%209-9'/%3E%3C/svg%3E");
}
.case-icon--dev {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E");
}
.case-icon--arch {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolygon%20points='12%202%202%207%2012%2012%2022%207%2012%202'/%3E%3Cpolyline%20points='2%2017%2012%2022%2022%2017'/%3E%3Cpolyline%20points='2%2012%2012%2017%2022%2012'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolygon%20points='12%202%202%207%2012%2012%2022%207%2012%202'/%3E%3Cpolyline%20points='2%2017%2012%2022%2022%2017'/%3E%3Cpolyline%20points='2%2012%2012%2017%2022%2012'/%3E%3C/svg%3E");
}
.case-icon--flex {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='17%201%2021%205%2017%209'/%3E%3Cpath%20d='M3%2011V9a4%204%200%200%201%204-4h14'/%3E%3Cpolyline%20points='7%2023%203%2019%207%2015'/%3E%3Cpath%20d='M21%2013v2a4%204%200%200%201-4%204H3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='17%201%2021%205%2017%209'/%3E%3Cpath%20d='M3%2011V9a4%204%200%200%201%204-4h14'/%3E%3Cpolyline%20points='7%2023%203%2019%207%2015'/%3E%3Cpath%20d='M21%2013v2a4%204%200%200%201-4%204H3'/%3E%3C/svg%3E");
}

/* Pricing — three cards */
.section-pricing {
  background-color: var(--color-bg);
}
.pricing-grid {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pricing-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}
.pricing-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

/* Featured middle card — yellow, with dark content */
.pricing-card--featured {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.pricing-card--featured:hover {
  border-color: var(--color-primary);
}
.pricing-card--featured .case-icon { background-color: var(--color-bg); }
.pricing-card--featured h3 { color: var(--color-bg); }
.pricing-card--featured .case-industry { color: rgba(15, 17, 18, 0.7) !important; }
.pricing-card--featured .case-label { color: rgba(15, 17, 18, 0.6); }
.pricing-card--featured .case-item p { color: rgba(15, 17, 18, 0.8); }
.pricing-card .case-body {
  gap: var(--space-5);
}

.pricing-close {
  margin-top: var(--space-10);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

/* ==========================================================================
   SECTION — 6. WHY US
   ========================================================================== */
.section-whyus {
  background-color: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.why-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  transition: border-color 0.2s ease;
}

.why-card:hover {
  border-color: var(--color-border-hover);
}

.why-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.why-card p {
  font-size: var(--text-sm);
}


/* ==========================================================================
   SECTION — 7. TECH STACK
   ========================================================================== */
.section-techstack {
  background-color: #FCFCFC;
}

/* Tabbed tech stack */
.section-techstack { transition: background-color 0.45s ease; }

/* Centered header + footer copy */
.section-techstack .section-label,
.section-techstack h2,
.section-techstack .section-intro,
.section-techstack .stack-close {
  text-align: center;
}
.section-techstack .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.stack-tabs { margin-top: var(--space-10); }

/* Tabs — single horizontal row */
.stack-tablist {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-10);
}
@media (max-width: 680px) {
  .stack-tablist { flex-wrap: wrap; }
}
.stack-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
  white-space: nowrap;
  padding: var(--space-3) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.stack-tab__ic {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Panels — big category icon with the tech names orbiting it */
.stack-panels { position: relative; overflow: hidden; }
.stack-panel { display: none; }
.stack-panel.is-active { display: flex; justify-content: center; }

.stack-orbit {
  position: relative;
  width: min(420px, 84vw);
  aspect-ratio: 1 / 1;
  --r: 150px;
}
/* visible orbit line */
.stack-orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(15, 17, 18, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.stack-orbit .stack-panel__ic {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
}
.orbit__ring {
  position: absolute;
  inset: 0;
  animation: orbit-spin 32s linear infinite;
}
.orbit__slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  /* place at angle --a on the circle, then un-rotate so the label sits upright at rest */
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit__label {
  position: absolute;
  white-space: nowrap;
  padding: var(--space-2) var(--space-3);
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  /* counter-spin so the text stays upright while the ring rotates */
  animation: orbit-spin-rev 32s linear infinite;
}
@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}
@keyframes orbit-spin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@media (max-width: 520px) {
  .stack-orbit { --r: 110px; }
  .orbit__label { font-size: var(--text-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit__ring, .orbit__label { animation: none; }
  .orbit__label { transform: translate(-50%, -50%); }
}

/* Fade content in whenever a panel becomes active */
.stack-panel.is-active > * {
  animation: stack-fade-in 0.5s ease both;
}
.stack-panel.is-active > *:nth-child(1) { animation-delay: 0s; }
.stack-panel.is-active > *:nth-child(2) { animation-delay: 0.09s; }
.stack-panel.is-active > *:nth-child(3) { animation-delay: 0.18s; }
@keyframes stack-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-panel.is-active > * { animation: none; }
}

/* ---- Theme: each tab inverts the section between brand colors ---- */
/* LIGHT theme — off-white background, dark content, yellow accents */
.section-techstack.theme-light { background-color: #FCFCFC; }
.section-techstack.theme-light .section-label { color: rgba(15, 17, 18, 0.5); }
.section-techstack.theme-light h2,
.section-techstack.theme-light .stack-panel__title { color: var(--color-bg); }
.section-techstack.theme-light .section-intro,
.section-techstack.theme-light .stack-close { color: rgba(15, 17, 18, 0.65); }
.section-techstack.theme-light .stack-tab { color: rgba(15, 17, 18, 0.7); border-color: rgba(15, 17, 18, 0.15); }
.section-techstack.theme-light .stack-tab:hover { color: var(--color-bg); border-color: var(--color-primary); }
.section-techstack.theme-light .stack-tab.is-active { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg); }
.section-techstack.theme-light .stack-panel__ic { fill: var(--color-primary); }
.section-techstack.theme-light .stack-orbit::before { border-color: var(--color-primary); }
.section-techstack.theme-light .orbit__label { color: var(--color-bg); border-color: rgba(15, 17, 18, 0.2); background-color: rgba(252, 252, 252, 0.85); }

/* BRIGHT theme — yellow background, dark content (the invert) */
.section-techstack.theme-bright { background-color: var(--color-primary); }
.section-techstack.theme-bright .section-label { color: var(--color-bg); }
.section-techstack.theme-bright h2,
.section-techstack.theme-bright .stack-panel__title { color: var(--color-bg); }
.section-techstack.theme-bright .section-intro,
.section-techstack.theme-bright .stack-close { color: rgba(15, 17, 18, 0.7); }
.section-techstack.theme-bright .stack-tab { color: rgba(15, 17, 18, 0.7); border-color: rgba(15, 17, 18, 0.25); }
.section-techstack.theme-bright .stack-tab:hover { color: var(--color-bg); border-color: var(--color-bg); }
.section-techstack.theme-bright .stack-tab.is-active { background-color: var(--color-bg); border-color: var(--color-bg); color: var(--color-primary); }
.section-techstack.theme-bright .stack-panel__ic { fill: var(--color-bg); }
.section-techstack.theme-bright .orbit__label { color: var(--color-bg); border-color: rgba(15, 17, 18, 0.35); background-color: #FCFCFC; }

/* "Just ask" — plain text link (no border/fill) on both themes */
.section-techstack .stack-close__cta {
  background-color: transparent;
  color: var(--color-bg);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-techstack .stack-close__cta:hover {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-bg);
  opacity: 0.7;
}

.stack-close {
  margin-top: var(--space-10);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}


/* ==========================================================================
   SECTION — 06. AI & CAPACITY
   ========================================================================== */
.section-ai {
  background-color: #FCFCFC;
}
/* Centered header — mirrors the Model section */
.section-ai .section-label { text-align: center; }
.section-ai h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-ai .section-intro {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Inverted (light) theme — mirrors section 05's theme-light so content
   reads correctly on the #FCFCFC background. */
.section-ai .section-label { color: rgba(15, 17, 18, 0.5); }
.section-ai h2 { color: var(--color-bg); }
.section-ai .section-intro { color: rgba(15, 17, 18, 0.65); }

.section-ai .model-card {
  background-color: #FFFFFF;
  border-color: rgba(15, 17, 18, 0.12);
}
.section-ai .model-card h3 { color: var(--color-bg); }
.section-ai .model-card p { color: rgba(15, 17, 18, 0.65); }

/* Hover: invert the light card to dark */
.section-ai .model-card:hover {
  background-color: var(--color-bg);
  border-color: var(--color-bg);
}
.section-ai .model-card:hover h3 { color: var(--color-text); }
.section-ai .model-card:hover p { color: var(--color-text-muted); }
.section-ai .model-card:hover .card-icon { color: var(--color-primary); }

/* ==========================================================================
   SECTION — 8. HOW WE WORK
   ========================================================================== */
.section-howwework {
  background-color: var(--color-bg);
}
/* How We Work block (merged into the Pricing section) — centered header */
.howwework {
  margin-top: var(--space-32);
}
.howwework > .section-label,
.howwework > h2,
.howwework > .section-intro {
  text-align: center;
}
.howwework > h2,
.howwework > .section-intro {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.howwework-fit-title {
  margin-top: var(--space-16);
  font-size: var(--text-xl);
  font-weight: 800;
}

/* "Built to slot in" features as a discreet DARK trust bar */
.fit-trust-bar {
  margin-top: var(--space-12);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}
.fit-trust-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}
.fit-trust-item {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1;
  color: var(--color-text-muted);
}
.fit-trust-title + .fit-trust-item::before,
.fit-trust-item + .fit-trust-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-8) / 2);
  top: 50%;
  transform: translateY(-50%);
  height: 1.4em;
  width: 1px;
  background-color: rgba(252, 252, 252, 0.18);
}

.steps {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-heading);
  font-size: calc(var(--text-4xl) * 3);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 160px;
  opacity: 0.9;
}

.step-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.step-content > p {
  font-size: var(--text-base);
}

.expand-btn {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
  font-family: var(--font-body);
}

.expand-btn:hover { opacity: 0.7; }
.expand-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.step-expand {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface);
  border-radius: var(--radius);
  border-left: 2px solid var(--color-primary);
}

.step-expand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- How We Work: one-card carousel (01 -> 02 -> 03) ---- */
.steps-carousel { display: block; }
.steps-carousel .steps-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  perspective: 1600px;
}
.steps-carousel .steps-track {
  position: relative;
  transform-style: preserve-3d;
}
/* Cards are stacked; the active one flips into view around the Y axis */
.steps-carousel .step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  border-bottom: none;
  padding: var(--space-8);
  border: none;
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: rotateY(-90deg);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
  /* Number on top, text below */
  flex-direction: column;
  gap: var(--space-4);
}
/* Big number sits above the text and scales down on small screens */
.steps-carousel .step-number {
  min-width: 0;
  font-size: clamp(2.75rem, 9vw, calc(var(--text-4xl) * 2));
}
.steps-carousel .step.is-active {
  position: relative;
  opacity: 1;
  transform: rotateY(0deg);
  pointer-events: auto;
}
/* Alternating brand colors: 01 light, 02 yellow, 03 light */
.steps-carousel .step:nth-child(odd)  { background-color: #FCFCFC; }
.steps-carousel .step:nth-child(even) { background-color: var(--color-primary); }
/* Dark content reads on both the light and yellow cards */
.steps-carousel .step h3,
.steps-carousel .step .step-content > p,
.steps-carousel .step .step-number {
  color: var(--color-bg);
}
@media (prefers-reduced-motion: reduce) {
  .steps-carousel .step { transition: opacity 0.25s ease; transform: none; }
}

.steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.steps-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.steps-arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.steps-dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.steps-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: rgba(252, 252, 252, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.steps-dot.is-active {
  width: 26px;
  background-color: var(--color-primary);
}

/* ---- Slide variant (section 02 Pain): same carousel + dots as section 10,
        but a horizontal slide/fade instead of the 3D flip ---- */
.steps-carousel--slide .steps-viewport { perspective: none; }
.steps-carousel--slide .steps-track { transform-style: flat; }
.steps-carousel--slide .step {
  transform: translateX(28px);   /* slide in from the right, no rotateY */
  box-shadow: var(--shadow-md);  /* keep the light card visible on the white section */
}
.steps-carousel--slide .step.is-active {
  transform: translateX(0);
}
/* All slide cards are dark (no alternating yellow) */
.steps-carousel--slide .step:nth-child(odd),
.steps-carousel--slide .step:nth-child(even) { background-color: var(--color-surface); }
/* Dark cards: light text + yellow icon */
.steps-carousel--slide .step:nth-child(odd) h3,
.steps-carousel--slide .step:nth-child(odd) p,
.steps-carousel--slide .step:nth-child(even) h3,
.steps-carousel--slide .step:nth-child(even) p { color: #FCFCFC; }
.steps-carousel--slide .step:nth-child(odd) .card-icon,
.steps-carousel--slide .step:nth-child(even) .card-icon { color: var(--color-primary); }
/* Light dots read on the dark Proof background */
.steps-carousel--slide .steps-dot { background-color: rgba(252, 252, 252, 0.25); }
.steps-carousel--slide .steps-dot.is-active { background-color: var(--color-primary); }
/* Restore the breathing room the old components had above these dials */
.steps-carousel--slide { margin-top: var(--space-10); }

/* Section 02 Pain: the five cards ride the slide carousel. Keep the icon at the
   size the old static grid used and hold the copy to a readable measure. */
#pain-steps .card-icon { font-size: var(--text-3xl); }
#pain-steps .step-content h3 { margin-bottom: var(--space-3); }
#pain-steps .step-content > p { color: var(--color-text-muted); max-width: 52ch; }
#pain-steps .step { border: 1px solid var(--color-border); }

/* Section 03 Tech stack: the six category cards ride the slide carousel.
   Keeps the .stack-cards spacing and the 1px card edge the static grid had. */
#stack-steps { margin-top: var(--space-6); }
#stack-steps .step { border: 1px solid var(--color-border); padding: var(--space-6); }

/* Equal-height cards: stack every slide in ONE grid cell instead of absolute
   positioning. The track then sizes itself to the TALLEST card (AWS/GCP/Azure/
   Docker/Kubernetes, the widest chip row) and stretch makes the rest match it,
   so the card edge never jumps as the carousel advances. */
#stack-steps .steps-track {
  display: grid;
  grid-template-areas: "slide";
  align-items: stretch;
}
#stack-steps .step,
#stack-steps .step.is-active {
  position: relative;   /* out of absolute flow so the grid can measure them */
  grid-area: slide;
  top: auto;
  left: auto;
  height: 100%;
}

/* Section 08 Proof: testimonial content inside the slide dial */
#proof-steps .testimonial-stars {
  font-size: var(--text-lg);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: var(--space-4);
}
#proof-steps .step-content > p {
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
}
#proof-steps .step-content footer {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
#proof-steps .location { opacity: 0.8; }
/* All dark cards: yellow stars, muted-light footer */
#proof-steps .step:nth-child(odd) .testimonial-stars,
#proof-steps .step:nth-child(even) .testimonial-stars { color: var(--color-primary); }
#proof-steps .step:nth-child(odd) footer,
#proof-steps .step:nth-child(even) footer { color: rgba(252, 252, 252, 0.7); }


/* ==========================================================================
   SECTION — 9. FIT / OBJECTIONS
   ========================================================================== */
.section-fit {
  background-color: #FCFCFC;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.fit-card {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  transition: border-color 0.2s ease;
}

.fit-card:hover {
  border-color: var(--color-border-hover);
}

.fit-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.fit-card p {
  font-size: var(--text-sm);
}


/* ==========================================================================
   SECTION — 10. FINAL CTA
   ========================================================================== */
.section-cta {
  background-color: var(--color-bg);   /* opaque dark band — masks the body mesh */
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* What happens next — three inline numbered lines above the form */
.next-steps {
  margin-top: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  list-style: none;
  counter-reset: next;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.next-steps li {
  counter-increment: next;
  position: relative;
  padding-left: calc(var(--space-8) + var(--space-2));
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.5;
}
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-sm);
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-dim);
}
/* CTA shares the section in two columns: tech-icon hub on the left, copy + button on the right */
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}
/* Stacked: copy first, animation at the bottom of the section */
.cta-content { min-width: 0; order: 1; }
.cta-hub { order: 2; }

/* Tech-icon hub — molecular animation beside the contact form. Desktop only
   (not rendered on mobile). */
.cta-hub {
  display: none;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 340px;      /* mobile band; taller on desktop (see media query) */
  pointer-events: none;   /* only the nodes are interactive */
  animation: hub-pulse 6s ease-in-out infinite;
}
@media (min-width: 768px) {
  .cta-hub { display: block; }
}
@keyframes hub-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}
/* connecting bonds (drawn on canvas, projected each frame) */
.cta-hub__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* icon nodes — JS sets left/top + --s (depth) + opacity each frame */
.hub-node {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);   /* centre on the projected point */
  pointer-events: auto;
}
.hub-node__depth {           /* depth scale from the globe projection */
  display: block;
  transform: scale(var(--s, 1));
}
.hub-node__hover {           /* hover enlarge (own layer so it never fights the others) */
  display: block;
  transition: transform 0.25s ease;
}
.hub-node:hover .hub-node__hover { transform: scale(1.4); }

.hub-node__dot {             /* the visible chip — breathes on its own */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 19px;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid rgba(242, 183, 5, 0.45);
  border-radius: 10px;
  transition: border-color 0.25s ease, background 0.25s ease;
  animation: hub-breathe 4.5s ease-in-out infinite;
}
.hub-node:hover .hub-node__dot {
  border-color: var(--color-primary);
  background: rgba(242, 183, 5, 0.12);
}
.hub-node--center .hub-node__dot {
  width: 56px;
  height: 56px;
  font-size: 30px;
  background: rgba(242, 183, 5, 0.12);
  border-color: rgba(242, 183, 5, 0.6);
  border-radius: 50%;
}
.hub-node--sm .hub-node__dot {
  width: 32px;
  height: 32px;
  font-size: 16px;
}
/* stagger the breathing so it looks organic, not synchronized */
.hub-node:nth-of-type(2n) .hub-node__dot { animation-delay: -1.1s; }
.hub-node:nth-of-type(3n) .hub-node__dot { animation-delay: -2.3s; }
.hub-node:nth-of-type(4n) .hub-node__dot { animation-delay: -3.4s; }

@keyframes hub-breathe {
  0%, 100% { transform: scale(0.92); }
  50%      { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-node__dot, .cta-hub { animation: none; }
}

/* Content sits on the right column; heading, subhead and button all align to
   the same 560px measure */
.section-cta h2,
.cta-subhead,
.cta-actions {
  max-width: 560px;
  margin-left: auto;
}

.cta-subhead {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.cta-actions {
  margin-top: var(--space-8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e05252;
}

.form-microcopy {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  text-align: center;
  margin-top: var(--space-1);
}

.form-microcopy a {
  color: var(--color-primary);
  text-decoration: underline;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
  background-color: var(--color-bg);   /* opaque dark band — masks the body mesh */
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-brand .logo {
  font-size: var(--text-lg);
}

.footer-brand p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--color-text); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-social a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-social a:hover { color: var(--color-primary); }

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}


/* ==========================================================================
   6. UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ==========================================================================
   DARK THEME — one theme throughout. The page is dark end to end, so the base
   token colors (light text on dark surfaces) are correct everywhere and the
   old light-section inversions have been removed.
   ========================================================================== */
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--color-text); }


/* ==========================================================================
   7. MEDIA QUERIES — Mobile first
   ========================================================================== */

/* --- Tablet: 768px --- */
@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }

  .section-hero h1 {
    font-size: calc(var(--text-5xl) * 1.28);
  }

  /* Hero becomes two columns: text left, globe right.
     Restore .hero-content as a real column and drop the mobile ordering. */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-10);
  }
  .hero-content { display: block; min-width: 0; }
  .hero-content > *, .hero-globe { order: 0; }
  .hero-globe { min-height: 440px; margin-top: 0; }
  .pain-close { text-align: left; }

  /* Hero copy ranges left against the globe column (mobile stays centred).
     Matches .section-hero h1's specificity — .hero-title alone loses to it. */
  .section-hero h1 { text-align: left; }
  .hero-subhead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  /* Section CTAs range left at their natural width instead of filling the
     column. .btn is inline-flex, so width:auto shrinks it to its label and
     overrides .btn-full. */
  .pain-cta { justify-content: flex-start; }
  .pain-cta .btn { width: auto; }

  .bar-link { text-align: left; }
  .bar-link .btn { width: auto; }

  .proof-cta {
    align-items: flex-start;
    text-align: left;
  }
  .proof-cta .btn { width: auto; }

  /* CTA: two columns — animation on the left, form on the right */
  .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-hub { order: 1; min-height: 520px; }
  .cta-content { order: 2; }

  /* From tablet up, CTAs sit side-by-side at their natural width */
  .hero-ctas .btn {
    flex: 0 0 auto;
    width: auto;
  }

  .menu-toggle { display: none; }
  .nav-links   { display: flex; }

  .model-grid         { grid-template-columns: repeat(2, 1fr); }
  .proof-stats        { grid-template-columns: repeat(4, 1fr); }
  .carousel-track .testimonial-card { flex-basis: calc(50% - var(--space-4) / 2); }
  .cases-grid         { grid-template-columns: repeat(2, 1fr); }
  .why-grid           { grid-template-columns: repeat(2, 1fr); }
  .stack-grid         { grid-template-columns: repeat(2, 1fr); }
  .fit-grid           { grid-template-columns: repeat(2, 1fr); }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* --- Desktop: 1024px --- */
@media (min-width: 1024px) {
  h1            { font-size: var(--text-6xl); }
  .section-hero h1 { font-size: calc(var(--text-6xl) * 1.28); }
  h2            { font-size: var(--text-4xl); }

  .hero-globe { min-height: 520px; }

  .model-grid { grid-template-columns: repeat(4, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid   { grid-template-columns: repeat(3, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .fit-grid   { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .testimonial-card { flex-basis: calc(33.333% - var(--space-4) * 2 / 3); }
}

/* --- Wide: 1280px --- */
@media (min-width: 1280px) {
  .fit-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   BOOKING MODAL — name/email gate before the calendar
   ========================================================================== */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.booking-modal[hidden] { display: none; }

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  animation: booking-pop 0.3s ease both;
  /* Three fields can outgrow a short phone viewport — scroll inside the dialog
     rather than letting it overflow the centred flex container. */
  max-height: calc(100vh - 2 * var(--space-4));
  overflow-y: auto;
}
@keyframes booking-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-modal__dialog { animation: none; }
}

.booking-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}
.booking-modal__close:hover { color: var(--color-text); }

.booking-modal__dialog h3 {
  /* Title sits directly above the form now that the intro copy is gone, so it
     carries the gap the intro paragraph used to provide. */
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

body.modal-open { overflow: hidden; }

/* Hero globe drag affordance */
body.globe-grab { cursor: grab; }
body.globe-grabbing { cursor: grabbing; user-select: none; -webkit-user-select: none; }


/* ==========================================================================
   VALUE / PRICING COMPARISON  (mirrors Byte-Home §09A)
   ========================================================================== */
.section-value { background-color: var(--color-bg); }
.section-value h2 { margin-top: var(--space-2); }
.section-value .section-intro { margin-top: var(--space-4); margin-bottom: var(--space-12); }

/* Three price cards, side by side — icon + title + amount + note.
   Folds the shared card base (surface / border / radius) inline, since this
   project has no global .card component. */
.value-prices {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
  max-width: 1040px; margin: 0 auto var(--space-8);
}
.value-price {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}
.value-price:hover { border-color: var(--color-border-hover); }
.value-price .card-icon { margin: 0 auto var(--space-4); font-size: 2.4rem; }
.value-price__title {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg);
  color: var(--color-text); margin-bottom: var(--space-3);
}
.value-price__amount {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1; color: var(--color-text);
}
.value-price__amount span { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; color: var(--color-text-muted); margin-left: var(--space-1); }
.value-price__note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }

/* ByteNana card: white background with a subtle drifting dotted mesh, dark text */
.value-price--win {
  background-color: #FCFCFC; border-color: #FCFCFC;
  background-image:
    radial-gradient(circle, rgba(15, 17, 18, 0.08) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(15, 17, 18, 0.08) 1px, transparent 1.5px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  animation: value-mesh-drift 12.6s ease-in-out infinite;
  will-change: background-position;
}
@keyframes value-mesh-drift {
  0%, 100% { background-position: 0 0, 11px 11px; }
  50%      { background-position: 14px -12px, 25px -1px; }
}
@media (prefers-reduced-motion: reduce) {
  .value-price--win { animation: none; }
}
.value-price--win .value-price__title,
.value-price--win .value-price__amount { color: var(--on-light-text); }
.value-price--win .value-price__amount span,
.value-price--win .value-price__note { color: var(--on-light-muted); }

/* Strip below the cards: inline on desktop, stacked + centered on mobile */
.value-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-6) var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 1040px; margin: 0 auto;
}
.value-strip .value-item { flex: 1 1 190px; min-width: 0; text-align: left; }
.value-item__head { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; font-size: var(--text-lg); color: var(--color-text); }
.value-item__sub { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
/* yellow button so it pops against the dark strip */
.value-strip__btn { flex: 0 0 auto; background-color: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }
.value-strip__btn:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

@media (min-width: 768px) {
  .value-prices { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .value-strip { flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); }
  .value-strip .value-item { flex: none; text-align: center; }
}


/* ==========================================================================
   TECH-STACK MOLECULAR HUBS  [data-tech-hub]  (byte_design_kit §7.2)
   A .steps-carousel--stack whose slides each hold a category (icon + chips)
   and a .tech-hub.cta-hub "molecule": the category icon sits left, the tool
   nodes fan out to the right, drifting, joined by canvas bond lines. Auto
   laid-out from the .hub-node children by the [data-tech-hub] JS module.
   ========================================================================== */
.tech-hub { width: 100%; max-width: 462px; min-height: 300px; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-3); margin: 0; padding: 0; list-style: none; }
@keyframes tech-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Every card the same dark surface so the yellow molecule always reads */
.steps-carousel--stack .step,
.steps-carousel--stack .step:nth-child(odd),
.steps-carousel--stack .step:nth-child(even) { background-color: var(--color-surface); }
.steps-carousel--stack .step { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-6); }
.steps-carousel--stack .step h3,
.steps-carousel--stack .step:nth-child(odd) h3,
.steps-carousel--stack .step:nth-child(even) h3 { color: #F1F1F1; }
.steps-carousel--stack .step .stack-desc,
.steps-carousel--stack .step:nth-child(odd) .stack-desc,
.steps-carousel--stack .step:nth-child(even) .stack-desc { color: #F1F1F1; }

.steps-carousel--stack .stack-card__text { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); width: 100%; }
.steps-carousel--stack .stack-cat { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-xl); }
.steps-carousel--stack .stack-cat iconify-icon { font-size: 1.3em; flex: 0 0 auto; }
.steps-carousel--stack .stack-desc { margin: 0; font-size: var(--text-sm); line-height: 1.6; max-width: 42ch; }
.steps-carousel--stack .tech-list { margin: 0; order: 0; }
.steps-carousel--stack .tech-list li {
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.05); color: #F1F1F1;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm);
}
.steps-carousel--stack .tech-hub { width: 100%; max-width: none; min-height: 240px; }
.steps-carousel--stack .step.is-active .tech-hub { animation: tech-pulse 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .steps-carousel--stack .step.is-active .tech-hub { animation: none; } }

@media (min-width: 768px) {
  .steps-carousel--stack .step { flex-direction: row; align-items: center; text-align: left; gap: var(--space-10); }
  .steps-carousel--stack .stack-card__text { flex: 0 0 auto; width: auto; max-width: 320px; align-items: flex-start; align-self: flex-start; }
  .steps-carousel--stack .tech-list { justify-content: start; }
  .steps-carousel--stack .tech-hub { flex: 1 1 auto; min-height: 300px; }
}


/* ==========================================================================
   NO HOVER EFFECTS ON MOBILE / TOUCH
   On touch devices a :hover state sticks after a tap. Disable every hover
   animation (lift, shadow, scale, colour/redaction change) on touch devices
   and at mobile widths so components rest in their default state.
   ========================================================================== */
@media (hover: none), (max-width: 767px) {
  /* Buttons — no shadow lift */
  .btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
  }

  /* Cards & chips — no translate lift, shadow or colour swap */
  .pain-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
  }
  .chip:hover {
    border-color: var(--color-border);
    color: var(--color-text);
  }

  /* Contact molecule nodes — no scale-up */
  .hub-node:hover .hub-node__hover { transform: none; }
  .hub-node:hover .hub-node__dot {
    background: var(--color-bg);
    border-color: rgba(242, 183, 5, 0.45);
  }

  /* White-label chips stay redacted (no "Top Secret" reveal) on touch */
  .trust-chip:hover {
    background: rgba(15, 17, 18, 0.06);
    border-color: rgba(15, 17, 18, 0.14);
  }
  .trust-chip:hover .trust-lock { background-color: rgba(15, 17, 18, 0.7); }
  .trust-chip:hover .trust-name { color: rgba(15, 17, 18, 0.85); filter: blur(5px); }
  .trust-chip:hover .trust-name::after { opacity: 0; }

  /* Text links — no colour / opacity shift */
  .hero-textlink:hover { color: var(--color-text-muted); }
  .proof-textlink:hover { opacity: 1; }
  .footer-legal a:hover { color: inherit; }
}
