/* ═══════════════════════════════════════════════
   NUCLEUS GROUP — STYLESHEET (Nexus look)
   Brand tokens, layout, components.
   Home hero = Nexus Story (js/story.js): sticky mesh
   stage + four scrolling chapters.
═══════════════════════════════════════════════ */

/* ── RESET & ROOT ──────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold-bright: #FFDB40;
  --gold-mid:    #FBB040;
  --gold-deep:   #F68B33;
  --teal-lt:     #9BCABE;
  --teal-mid:    #487B86;
  --navy:        #263148;
  --navy-deep:   #1A2235;
  --deep:        #121A2A;
  --white:       #F0F4F8;
  --off-white:   #E8EDF3;
  --muted:       #6a85a0;
  --dim:         #9AA8C0;
  --faint:       #64728C;
  --border:      rgba(155,202,190,0.12);
  --glass:       rgba(240,244,248,0.05);
  --glass-2:     rgba(240,244,248,0.03);
  --gborder:     rgba(155,202,190,0.18);
  --gborder-2:   rgba(240,244,248,0.09);
  --spectrum:    linear-gradient(90deg, var(--gold-bright), var(--gold-mid), var(--gold-deep), var(--teal-lt), var(--teal-mid));
  --gold-grad:   linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  --font:        'DM Sans', sans-serif;
  --gutter:      6%;
  --radius:      20px;
  --ease-out:    cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
/* Clip sideways overflow on phones. `clip` (unlike `hidden`) creates no scroll container, so the sticky story stage still works. */
html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(72,123,134,0.28), transparent 60%),
    radial-gradient(1000px 700px at 10% 8%, rgba(251,176,64,0.14), transparent 58%),
    linear-gradient(168deg, var(--navy-deep) 0%, #16202F 55%, var(--deep) 100%);
  background-color: var(--navy-deep);
  position: relative;
}
::selection { background: var(--gold-mid); color: var(--navy-deep); }

/* ── AMBIENT BACKDROP (fixed, decorative) ──── */
.mesh-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; }
.mesh-bg .g1 { width: 46vw; height: 46vw; top: -12vw; right: -8vw; background: radial-gradient(circle, rgba(251,176,64,0.5), transparent 68%); animation: float1 50s ease-in-out infinite alternate; }
.mesh-bg .g2 { width: 40vw; height: 40vw; bottom: -14vw; left: -10vw; background: radial-gradient(circle, rgba(72,123,134,0.55), transparent 68%); animation: float2 60s ease-in-out infinite alternate; }
.mesh-bg .g3 { width: 32vw; height: 32vw; top: 44vh; left: 40vw; background: radial-gradient(circle, rgba(155,202,190,0.32), transparent 68%); animation: float1 68s ease-in-out infinite alternate-reverse; }
@keyframes float1 { to { transform: translate(7vw, 6vh) scale(1.12); } }
@keyframes float2 { to { transform: translate(-6vw, 8vh) scale(.9); } }
.grid-lines {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(155,202,190,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,202,190,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%);
}
.page, footer { position: relative; z-index: 2; }

/* ── NAV — floating glass pill ─────────────── */
nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 22px;
  max-width: calc(100% - 32px);
  background: rgba(26,34,53,0.55);
  border: 1px solid var(--gborder-2);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,.38);
  white-space: nowrap;
}
.nav-logo, .nav-menu, .nav-links, .nav-cta { flex-shrink: 0; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
/* Web lockup (brand/logo): 28px nav mark + one-line wordmark, 28px tall
   (Design ruling, conflict 4). The pill padding is its clear space. */
.nav-logo-lockup { display: block; flex-shrink: 0; height: 28px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; }
.nav-links a {
  display: block; position: relative;
  font-size: 12.5px; font-weight: 500;
  color: var(--dim); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--gold-grad);
}
.nav-cta { display: flex; align-items: center; }
.nav-cta .btn-primary { padding: 9px 18px; font-size: 12.5px; }

/* Hamburger (shown when nav.nav-collapsed is set by app.js) */
.nav-hamburger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  width: 40px; height: 34px; flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--gborder-2);
  border-radius: 100px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 16px; height: 2px;
  background: var(--white); border-radius: 1px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger:focus-visible { outline: 1px solid var(--teal-lt); outline-offset: 2px; }
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Collapsed: the pill spans the viewport; menu drops down as a glass panel */
nav.nav-collapsed {
  left: 16px; right: 16px;
  transform: none; max-width: none;
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
}
nav.nav-collapsed .nav-hamburger { display: flex; }
nav.nav-collapsed .nav-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 0;
  padding: 10px 20px 18px;
  background: rgba(26,34,53,0.96);
  border: 1px solid var(--gborder-2);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
nav.nav-collapsed.nav-open .nav-menu { display: flex; }
nav.nav-collapsed .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
nav.nav-collapsed .nav-links a { padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--gborder-2); }
nav.nav-collapsed .nav-links li:last-child a { border-bottom: none; }
nav.nav-collapsed .nav-links a.active { color: var(--gold-mid); }
nav.nav-collapsed .nav-links a.active::after { display: none; }
nav.nav-collapsed .nav-cta { padding-top: 12px; }
nav.nav-collapsed .nav-cta .btn-primary { width: 100%; text-align: center; padding: 12px 18px; font-size: 13px; }

/* ── BUTTONS ───────────────────────────────── */
/* Primary: gold-gradient pill */
.btn-primary,
.btn-hero-primary,
.btn-form {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--navy-deep);
  background: var(--gold-grad);
  border: none; border-radius: 100px;
  cursor: pointer; text-decoration: none;
  transition: filter .25s, box-shadow .25s, transform .25s;
}
.btn-primary:hover,
.btn-hero-primary:hover,
.btn-form:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 32px rgba(251,176,64,0.55);
  transform: translateY(-2px);
}
.btn-form { width: 100%; padding: 15px; font-size: 13px; letter-spacing: .5px; }
.btn-form:disabled { cursor: default; transform: none; filter: none; box-shadow: none; }

/* Secondary: glass pill */
.btn-ghost,
.btn-hero-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--white);
  background: rgba(26,34,53,0.5);
  border: 1px solid var(--gborder-2);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer; text-decoration: none;
  transition: border-color .25s, transform .25s, background .25s;
}
.btn-ghost:hover,
.btn-hero-ghost:hover { border-color: var(--gborder); background: rgba(38,49,72,0.7); transform: translateY(-2px); }
.btn-ghost { padding: 11px 22px; font-size: 13px; }

.btn-primary:focus-visible, .btn-hero-primary:focus-visible, .btn-form:focus-visible,
.btn-ghost:focus-visible, .btn-hero-ghost:focus-visible {
  outline: 2px solid var(--teal-lt); outline-offset: 3px;
}

/* ── PAGE SYSTEM ───────────────────────────── */
/* Floating nav: 18px top + ~54px pill → 96px clears it with breathing room */
.page          { display: none; padding-top: 96px; }
.page.active   { display: block; opacity: 0; transform: translateY(14px); }
.page.page-in  {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.30s ease, transform 0.30s ease;
}
/* Home: the story stage is full-viewport under the floating nav */
#page-home.page { padding-top: 0; }

/* ── SECTION BASE ──────────────────────────── */
.section {
  padding: 96px var(--gutter);
  max-width: 1340px;
  margin: 0 auto;
  position: relative;
}
.section-alt, .section-navy { background: transparent; }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--teal-lt);
}
.section-title {
  font-size: clamp(30px, 4.2vw, 52px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 1.08;
  color: var(--white); margin-bottom: 0;
  max-width: 900px;
}
.section-title em {
  font-style: normal;
  color: var(--gold-mid);
}
/* 40×3 gold rule under section titles (guide 5), inside the 44px spacer:
   18 + 3 + 23. Left-aligned; centred in the CTA band; none in chapter panels. */
.section-rule { width: 40px; height: 3px; border-radius: 2px; background: var(--gold-grad); margin: 18px 0 23px; }
/* page-intro heads (title + lead): the tighter 20px spacer, 8 + 3 + 9 */
.section-navy .section-rule, .ibm-hero .section-rule { margin: 8px 0 9px; }
.cta-rule { margin: 0 auto 22px; position: relative; z-index: 1; }
.section-lead {
  font-size: 16px; color: var(--dim);
  max-width: 760px; line-height: 1.8;
}
.section-lead + .section-lead { margin-top: 18px; }
.highlight-strong strong { color: var(--white); font-weight: 600; }

/* ── STORY — sticky stage + four scrolling chapters ───────────── */
/* The stage is sticky for the whole story; chapters scroll over it.
   .chapters pulls itself up by one viewport so chapter 01 sits on the
   stage from the first pixel. */
.story { position: relative; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; z-index: 1;
}
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.stage-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,26,42,0.55) 0%, transparent 20%, transparent 80%, rgba(18,26,42,0.6) 100%);
}
/* chapters are pass-through; only the panels take the pointer */
.chapters {
  position: relative; z-index: 2;
  margin-top: -100vh; margin-top: -100svh;
  pointer-events: none;
}
.chapter {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 100px var(--gutter) 48px;
}
.ch-panel {
  pointer-events: auto;
  width: 100%; max-width: 440px;
  background: var(--navy);
  border: 1px solid var(--gborder-2);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .45s;
}
.chapter.on .ch-panel { border-color: var(--gborder); }
.chapter.ch-hero .ch-panel { max-width: 600px; padding: 38px 40px; }
.ch-index {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.ch-index b { font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; transition: color .45s; }
.chapter.on .ch-index b { color: var(--gold-mid); }
.ch-index span { color: var(--teal-lt); }
.ch-index::after { content: ''; flex: 1; height: 1px; background: var(--gborder-2); }
.ch-title {
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 14px;
}
.ch-title em, .ch-hero h1 em {
  font-style: normal;
  color: var(--gold-mid);
}
.ch-cap { color: var(--dim); font-size: 15px; line-height: 1.75; }
.ch-cap strong { color: var(--white); font-weight: 500; }

/* chapter 01 doubles as the hero */
.tagpill {
  display: inline-flex; align-items: center; gap: 9px;
  max-width: 100%;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--gborder-2);
  background: rgba(26,34,53,0.5);
  padding: 9px 18px; border-radius: 100px;
  margin-bottom: 22px;
}
.tagpill i {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--gold-mid); box-shadow: 0 0 10px var(--gold-mid);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.ch-hero h1 {
  font-size: clamp(34px, 3.8vw, 54px); font-weight: 800;
  line-height: 1.04; letter-spacing: -1.8px;
}
.ch-hero .sub { color: var(--off-white); font-size: 15px; line-height: 1.75; margin: 18px 0 26px; }
.ch-hero .sub strong { color: var(--white); font-weight: 500; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.ch-hero .ch-cap { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--gborder-2); font-size: 13px; line-height: 1.65; }
.ch-hero .ch-cap strong { color: inherit; font-weight: inherit; }

/* progress ticks — four hairlines pinned to the stage's right edge */
.story-progress {
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
}
.story-progress button {
  position: relative; width: 36px; height: 16px;
  border: 0; padding: 0; background: transparent; cursor: pointer;
}
.story-progress button::before {
  content: ''; position: absolute; right: 0; top: 7px;
  width: 20px; height: 2px; border-radius: 2px;
  background: rgba(240,244,248,0.22);
  transition: background .45s, width .45s, box-shadow .45s;
}
.story-progress button.on::before { width: 36px; background: var(--gold-mid); box-shadow: 0 0 12px rgba(251,176,64,.7); }
.story-progress button:hover::before { background: var(--teal-lt); }
.story-progress button.on:hover::before { background: var(--gold-mid); }
.story-progress button:focus-visible { outline: 1px solid var(--teal-lt); outline-offset: 2px; border-radius: 4px; }

/* stats strip lands right after the story */
.story-stats { padding: 56px var(--gutter) 8px; }
.hero-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hstat { padding: 18px 30px; text-align: center; }
.hstat b {
  display: block;
  font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.2;
  color: var(--gold-mid);
}
.hstat span {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim);
}

/* ── CLIENT BAR (pill strip) ───────────────── */
.logo-bar { padding: 24px var(--gutter) 40px; max-width: 1200px; margin: 0 auto; }
.logo-bar-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--faint); margin-bottom: 18px;
  text-align: center;
}
.logo-bar-clients { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.logo-bar-cta { display: flex; justify-content: center; margin-top: 24px; }
.client-chip {
  display: inline-flex; align-items: center;
  padding: 9px 17px;
  border-radius: 100px;
  border: 1px solid var(--gborder-2);
  background: var(--glass);
  font-size: 11.5px; font-weight: 600; letter-spacing: .6px;
  color: var(--dim);
  cursor: default;
  transition: color .25s, border-color .25s, transform .25s;
}
.client-chip:hover { color: var(--white); border-color: var(--gborder); transform: translateY(-2px); }

/* ── SHARED CARD SURFACE ───────────────────── */
/* navy panel · 20px radius · hairline border · lift + teal border on hover */
.problem-point-card, .problem-visual,
.diff-row, .diff-card, .value-card,
.service-card, .service-row,
.case-feature, .case-row,
.ibm-banner, .ibm-feature, .ibm-stat-card, .ibm-callout,
.founder-card, .contact-form-wrap, .contact-detail, .office-card {
  background: var(--navy);
  border: 1px solid var(--gborder-2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 56px rgba(0,0,0,.28);
  position: relative;
  overflow: hidden;
}
.problem-point-card, .diff-row, .diff-card, .value-card,
.service-card, .service-row, .case-row, .case-feature,
.ibm-feature, .founder-card, .office-card {
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.problem-point-card:hover, .diff-row:hover, .diff-card:hover, .value-card:hover,
.service-card:hover, .service-row:hover, .case-row:hover, .case-feature:hover,
.ibm-feature:hover, .founder-card:hover, .office-card:hover {
  transform: translateY(-4px);
  border-color: var(--gborder);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 72px rgba(0,0,0,.4), 0 0 44px -18px var(--gold-mid);
}

/* tags */
.tech-tag, .platform-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(155,202,190,0.06);
  border: 1px solid rgba(155,202,190,0.28);
  border-radius: 100px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  color: var(--teal-lt);
  width: fit-content;
}

/* ── Case client logo ──────────────────────── */
.case-client-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.case-client-logo {
  height: 36px; width: auto; max-width: 90px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  border-radius: 6px;
}

/* ── PROBLEM SECTION ───────────────────────── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.problem-points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.problem-point-card { padding: 26px; border-radius: 16px; }
.problem-point-num {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--gold-mid); display: block; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.problem-point-text { font-size: 13.5px; color: var(--dim); line-height: 1.7; }
.problem-point-text strong { color: var(--white); font-weight: 600; display: block; margin-bottom: 6px; }

.problem-visual {
  padding: 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.problem-visual .eyebrow { margin-bottom: 24px; }
.problem-arc-wrap { margin-bottom: 28px; }
.problem-arc-ring {
  width: 160px; height: 160px; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--gold-mid) 0% 82%, rgba(72,123,134,0.18) 82% 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 48px rgba(251,176,64,0.18);
}
.problem-arc-inner {
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.problem-arc-val { font-size: 38px; font-weight: 800; color: var(--gold-mid); letter-spacing: -1.5px; line-height: 1; }
.problem-arc-heading {
  font-size: 18px; font-weight: 700; color: var(--white);
  line-height: 1.35; letter-spacing: -0.3px; margin-bottom: 20px;
}
.problem-stat-callout {
  padding: 16px 20px;
  background: rgba(251,176,64,0.07);
  border: 1px solid rgba(251,176,64,0.2);
  border-radius: 14px;
  font-size: 13px; color: var(--dim); line-height: 1.7;
  text-align: left; width: 100%;
}
.problem-stat-callout strong { color: var(--gold-mid); font-weight: 600; }

/* ── DIFFERENTIATOR ROWS (home) ────────────── */
.diff-rows { display: flex; flex-direction: column; gap: 14px; }
.diff-row {
  display: grid;
  grid-template-columns: 76px 52px 1fr auto;
  gap: 32px; align-items: center;
  padding: 32px 40px;
}
.diff-row-num {
  font-size: 52px; font-weight: 800; line-height: 1;
  letter-spacing: -2px; text-align: right; user-select: none;
  color: var(--gold-mid);
  opacity: .35;
}
.diff-row-icon { width: 40px; height: 40px; flex-shrink: 0; }
.diff-row-title { font-size: 19px; font-weight: 700; color: var(--white); letter-spacing: -0.4px; margin-bottom: 8px; }
.diff-row-body { font-size: 14px; color: var(--dim); line-height: 1.7; }
.diff-row-badge {
  padding: 6px 14px;
  background: rgba(251,176,64,0.08);
  border: 1px solid rgba(251,176,64,0.28);
  border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-mid);
  white-space: nowrap; flex-shrink: 0;
}

/* ── DIFF GRID (about page) ────────────────── */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.diff-card { padding: 36px 34px; }
.diff-card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--gborder-2);
  font-size: 13px; font-weight: 700; color: var(--gold-mid);
  margin-bottom: 18px;
}
.diff-card-accent { display: none; }
.diff-card-title { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 11px; letter-spacing: -0.4px; }
.diff-card-body { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* ── SERVICES GRID (home) ──────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { padding: 34px 30px; cursor: pointer; }
.service-icon { width: 72px; height: 72px; margin-bottom: 20px; }
.service-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 10px; display: block;
}
.service-title { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 11px; letter-spacing: -0.4px; }
.service-body { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* ── CASE STUDY FEATURE (home) ─────────────── */
.case-feature { display: grid; grid-template-columns: 1.2fr .8fr; }
.case-content { padding: 46px; }
.case-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(251,176,64,0.1);
  border: 1px solid rgba(251,176,64,0.3);
  border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-mid); margin-bottom: 18px;
}
.case-title { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 6px; letter-spacing: -0.6px; line-height: 1.2; }
.case-sub {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt);
}
.case-body { font-size: 14.5px; color: var(--dim); line-height: 1.8; margin-bottom: 26px; }
.case-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.case-link {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-mid); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: gap .2s;
}
.case-link:hover { gap: 12px; }
.case-visual {
  padding: 46px 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: rgba(18,26,42,0.35);
  border-left: 1px solid var(--gborder-2);
}
.case-stat {
  padding: 20px; border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--gborder-2);
}
.case-stat-val {
  font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  color: var(--gold-mid);
}
.case-stat-rule { display: none; }
.case-stat-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--dim);
}

/* ── IBM BANNER (home) ─────────────────────── */
.ibm-banner {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1340px - 2 * var(--gutter));
  margin: 0 auto 48px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px; align-items: center;
}
.ibm-banner p { color: var(--dim) !important; }
.ibm-roi { text-align: right; }
.ibm-roi-val {
  font-size: 66px; font-weight: 800; line-height: 1; letter-spacing: -2px;
  color: var(--gold-mid);
}
.ibm-roi-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim); margin-top: 10px;
}

/* ── CTA SECTION ───────────────────────────── */
.cta-section {
  padding: 100px var(--gutter);
  max-width: 900px; margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-bg-ring, .cta-bg-ring-2 {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
}
.cta-bg-ring   { width: min(560px, 100vw); height: min(560px, 100vw); border: 1px solid rgba(155,202,190,0.07); }
.cta-bg-ring-2 { width: 820px; height: 820px; border: 1px solid rgba(155,202,190,0.035); max-width: 100vw; }
.cta-title {
  font-size: clamp(30px, 4.2vw, 50px); font-weight: 800;
  letter-spacing: -1.4px; line-height: 1.1;
  color: var(--white); margin-bottom: 18px;
  position: relative; z-index: 1;
}
.cta-title em {
  font-style: normal;
  color: var(--gold-mid);
}
.cta-sub {
  font-size: 16px; color: var(--dim);
  max-width: 540px; margin: 0 auto 36px;
  line-height: 1.75; position: relative; z-index: 1;
}
.cta-actions {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-contact {
  margin-top: 40px;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-contact-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); display: block; margin-bottom: 4px;
}
.cta-contact-val { font-size: 14px; font-weight: 500; color: var(--dim); }

/* ── ABOUT / FOUNDERS ──────────────────────── */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.founder-card { padding: 42px 40px; }
.founder-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 16px; display: block;
}
.founder-name { font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -0.6px; margin-bottom: 4px; }
.founder-role { font-size: 13px; font-weight: 500; color: var(--gold-mid); margin-bottom: 22px; }
.founder-rule { display: none; }
.founder-bio { font-size: 14px; color: var(--dim); line-height: 1.8; margin-bottom: 18px; }
.founder-highlight {
  padding: 16px 20px;
  background: rgba(251,176,64,0.07);
  border-left: 2px solid var(--gold-mid);
  border-radius: 0 10px 10px 0;
  font-size: 13px; color: rgba(240,244,248,0.78);
  line-height: 1.65; font-style: italic;
}

/* ── VALUES GRID ───────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-card { padding: 34px 30px; }
.value-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--gborder-2);
  font-size: 13px; font-weight: 700; color: var(--teal-lt);
  margin-bottom: 18px;
}
.value-title { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 11px; letter-spacing: -0.4px; }
.value-body { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* ── SERVICES LIST (services page) ─────────── */
.services-list { display: flex; flex-direction: column; gap: 16px; }
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 40px; align-items: start;
  padding: 36px 40px;
}
.service-row-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 8px; display: block;
}
.service-row-title { font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: -0.3px; }
.service-row-body { font-size: 14px; color: var(--dim); line-height: 1.8; }
.service-platforms { display: flex; flex-direction: column; gap: 7px; min-width: 200px; }

/* ── CASE STUDIES LIST ─────────────────────── */
.cases-list { display: flex; flex-direction: column; gap: 18px; }
.case-row { display: grid; grid-template-columns: 1.15fr .85fr; }
.case-row-content { padding: 40px 44px; border-right: 1px solid var(--gborder-2); }
.case-row-meta {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(18,26,42,0.25);
}
.case-industry {
  display: inline-block; padding: 5px 12px;
  background: rgba(155,202,190,0.1);
  border: 1px solid rgba(155,202,190,0.26);
  border-radius: 100px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 14px;
}
.case-row-title { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.4px; margin-bottom: 14px; }
.case-client {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-mid);
}
.case-row-body { font-size: 14px; color: var(--dim); line-height: 1.8; }
.case-row-body + .case-row-body { margin-top: 12px; }
.case-row-body strong { color: var(--white); font-weight: 600; }
.case-row-meta .case-tech { margin-bottom: 0; }
.case-meta-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 10px; display: block;
}
.case-outcome { font-size: 14px; color: rgba(240,244,248,0.8); line-height: 1.7; margin-bottom: 22px; }

/* ── IBM / LEGAL PAGE HERO ─────────────────── */
.ibm-hero {
  padding: 72px var(--gutter) 24px;
  max-width: 1340px; margin: 0 auto;
  position: relative;
}
/* IBM Partner Plus mark (guidelines v1.4): as supplied (border trimmed), never in the nav,
   smaller than our logo, no box or copy beside it. Clear space on every side = the height
   of the "I" in IBM = 0.66 × the mark's height: 32px at 48px, 24px at 36px. */
.ibm-partner-badge { display: block; margin-bottom: 32px; }
.ibm-partner-mark { height: 48px; width: auto; display: block; }
.ibm-banner-mark  { height: 48px; width: auto; display: block; margin-bottom: 32px; }
.footer-ibm-mark  { height: 36px; width: auto; display: block; margin: 24px 0; }

.ibm-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ibm-feature { padding: 34px 30px; }
.ibm-feature-icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(251,176,64,0.18), transparent);
  border: 1px solid var(--gborder-2);
}
.ibm-feature-icon svg { width: 30px; height: 30px; }
.ibm-feature-title { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 11px; letter-spacing: -0.4px; }
.ibm-feature-body { font-size: 14px; color: var(--dim); line-height: 1.7; }
.ibm-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ibm-stat-card { padding: 40px; text-align: center; }
.ibm-stat-val {
  font-size: 52px; font-weight: 800; line-height: 1;
  letter-spacing: -1.5px; margin-bottom: 12px;
  color: var(--gold-mid);
}
.ibm-stat-rule { display: none; }
.ibm-stat-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim);
}
.ibm-callout { padding: 24px 26px; border-radius: 16px; }
.ibm-callout-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px;
}
.ibm-callout-body { font-size: 13px; color: var(--dim); line-height: 1.7; }
.ibm-callout-body strong { color: var(--white); font-weight: 600; }
.ibm-installed-cta { margin-top: 28px; }

/* ── CONTACT PAGE ──────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form-wrap { display: flex; flex-direction: column; gap: 16px; padding: 40px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-heading { font-size: 21px; font-weight: 800; color: var(--white); margin-bottom: 0; letter-spacing: -0.3px; }
.form-subheading { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.form-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal-lt);
}
.form-input, .form-textarea, select.form-input {
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gborder-2);
  border-radius: 12px;
  font-family: var(--font); font-size: 14px; color: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--faint); }
.form-input:focus, .form-textarea:focus { border-color: var(--gborder); box-shadow: 0 0 0 3px rgba(155,202,190,0.12); }
.form-textarea { resize: vertical; min-height: 120px; }
select.form-input {
  width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239bcabe' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
select.form-input option { background: #1a2235; color: #f0f4f8; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { padding: 24px 28px; border-radius: 16px; }
.contact-detail-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 8px; display: block;
}
.contact-detail-val { font-size: 16px; font-weight: 600; color: var(--white); }
/* IBM partner note box (inline-styled in content.js) — round it to match */
.contact-info > div[style] { border-radius: 16px !important; }
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.office-card { padding: 28px 26px; }
.office-country {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-mid); margin-bottom: 10px; display: block;
}
.office-name { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.office-addr { font-size: 12px; color: var(--dim); line-height: 1.6; }
.contact-detail .office-addr { margin-top: 4px; font-size: 13px; }

/* ── CAREERS NOTE ──────────────────────────── */
.careers-note {
  background: rgba(72,123,134,0.1);
  border: 1px solid rgba(155,202,190,0.2);
  border-radius: 14px;
  padding: 16px 20px;
}
.careers-note p { font-size: 13px; color: rgba(240,244,248,0.75); line-height: 1.75; margin: 0; }

/* ── PRIVACY / COOKIE POLICY ───────────────── */
.privacy-content {
  max-width: 820px; margin: 0 auto;
  background: var(--navy);
  border: 1px solid var(--gborder-2);
  border-radius: var(--radius);
  padding: 8px 44px;
}
.privacy-section { padding: 32px 0; border-bottom: 1px solid var(--gborder-2); }
.privacy-section:last-child { border-bottom: none; }
.privacy-section-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: -0.3px; }
.privacy-body { font-size: 14px; color: var(--dim); line-height: 1.8; margin-bottom: 16px; }
.privacy-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.privacy-list li { font-size: 14px; color: var(--dim); line-height: 1.7; padding-left: 20px; position: relative; }
.privacy-list li::before {
  content: ''; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-grad);
}
.privacy-note { font-size: 13px; color: rgba(155,202,190,0.7); font-style: italic; margin-top: 12px; line-height: 1.6; }
.privacy-table {
  width: 100%; margin: 16px 0;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--gborder-2); border-radius: 14px; overflow: hidden;
  font-size: 13px;
}
.privacy-table th {
  text-align: left; padding: 11px 14px;
  background: rgba(155,202,190,0.06);
  border-bottom: 1px solid var(--gborder-2);
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal-lt);
}
.privacy-table td { padding: 11px 14px; border-top: 1px solid var(--gborder-2); color: var(--dim); line-height: 1.6; vertical-align: top; }
.privacy-table tr:first-child td { border-top: none; }
.privacy-table td strong { color: var(--white); }
.privacy-contact { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.privacy-contact li { font-size: 14px; color: var(--dim); }
.privacy-contact li strong { color: var(--white); margin-right: 6px; }

/* ── FOOTER ────────────────────────────────── */
footer { padding: 64px var(--gutter) 40px; margin-top: 40px; border-top: 1px solid var(--gborder-2); }
.footer-wrap { max-width: 1340px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
/* Footer lockup: mark + wordmark + partner credential; 56–64px tall keeps the credential at 9–10px */
.footer-logo { display: block; height: 60px; width: auto; max-width: 100%; }
.footer-brand-desc { margin-top: 0; font-size: 12.5px; color: var(--dim); line-height: 1.7; max-width: 300px; }
.footer-col-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-lt); margin-bottom: 16px; display: block;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px; color: var(--dim);
  text-decoration: none; transition: color .2s;
  overflow-wrap: anywhere;
}
.footer-links a:hover { color: var(--white); }
.footer-linkedin { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--gborder-2);
}
.footer-copy { font-size: 11px; color: var(--dim); letter-spacing: 0.3px; }
.footer-partner {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-lt);
}

/* ── UTILITY ───────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.flex-col-gap { display: flex; flex-direction: column; gap: 14px; }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.6s ease both; }
.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }
.animate-d4 { animation-delay: 0.4s; }

/* ── COOKIE BANNER — floating glass card ───── */
#cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 1100px; margin: 0 auto;
  z-index: 9000;
  background: rgba(26,34,53,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gborder-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  transform: translateY(calc(100% + 32px));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-text { flex: 1; min-width: 260px; font-size: 13px; color: var(--dim); line-height: 1.6; }
.cookie-text a { color: var(--teal-lt); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: var(--white); }
.cookie-short { display: none; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept,
.btn-cookie-reject {
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: filter .2s, border-color .2s, color .2s;
}
.btn-cookie-accept { background: var(--gold-grad); color: var(--navy-deep); font-weight: 700; }
.btn-cookie-reject { background: rgba(26,34,53,0.5); border: 1px solid var(--gborder-2); color: var(--dim); }
.btn-cookie-accept:hover { filter: brightness(1.06); }
.btn-cookie-reject:hover { color: var(--white); border-color: var(--gborder); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   nav collapse = JS (≤768px or on overflow)  |  1024px = tablet  |  768px = mobile
══════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .ibm-features, .ibm-stat-row { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .problem-grid, .case-feature, .case-row { grid-template-columns: 1fr; }
  .case-visual { border-left: none; border-top: 1px solid var(--gborder-2); }
  .case-row-content { border-right: none; border-bottom: 1px solid var(--gborder-2); }

  .diff-row { grid-template-columns: 52px 44px 1fr; padding: 28px 32px; gap: 24px; }
  .diff-row-badge { display: none; }

  .service-row { grid-template-columns: 200px 1fr; gap: 28px; }
  .service-platforms { grid-column: 2; flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* ── Mobile (≤ 768px) ──────────────────────── */
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .section { padding: 56px var(--gutter); }
  .ibm-hero { padding: 48px var(--gutter) 16px; }
  .cta-section { padding: 64px var(--gutter); }
  .logo-bar { padding: 16px var(--gutter) 32px; }
  .ibm-banner { padding: 32px; grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .ibm-roi { text-align: left; }
  .ibm-roi-val { font-size: 48px; }
  footer { padding: 48px var(--gutter) 28px; }

  .section-title { font-size: clamp(28px, 7.4vw, 36px); letter-spacing: -1px; }
  .section-rule { margin: 13px 0 16px; }
  .section-lead { font-size: 15px; }

  .diff-grid, .founder-grid, .values-grid,
  .problem-points-grid, .contact-grid, .two-col,
  .services-grid, .ibm-features { grid-template-columns: 1fr; }
  .ibm-stat-row { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .case-content, .case-visual { padding: 28px 24px; }
  .case-row-content { padding: 28px 24px; }
  .case-row-meta { padding: 24px; }

  .diff-row { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .diff-row-num { font-size: 36px; text-align: left; }

  .service-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .service-platforms { grid-column: auto; }

  .diff-card, .value-card, .service-card, .ibm-feature { padding: 28px 24px; }
  .founder-card { padding: 32px 24px; }
  .problem-visual { padding: 32px 24px; }
  .contact-form-wrap { padding: 28px 24px; }
  .ibm-stat-card { padding: 28px 20px; }
  .ibm-stat-val { font-size: 40px; }
  .privacy-content { padding: 4px 22px; }

  /* Story: panels sit at the bottom over a scrim; the mesh lives in the upper half */
  .chapter { align-items: flex-end; padding: 88px 5% 26px; }
  .ch-panel, .chapter.ch-hero .ch-panel { max-width: none; width: 100%; padding: 24px 22px; border-radius: 18px; }
  .ch-title { font-size: 24px; }
  .ch-cap { font-size: 14px; }
  .ch-hero h1 { font-size: clamp(30px, 8.4vw, 40px); letter-spacing: -1.2px; }
  .ch-hero .sub { font-size: 14px; margin: 14px 0 20px; }
  .ch-hero .btn-hero-primary, .ch-hero .btn-hero-ghost { padding: 12px 20px; font-size: 13px; }
  .ch-hero .ch-cap { margin-top: 18px; padding-top: 14px; font-size: 13px; }
  .stage-veil {
    background: linear-gradient(180deg, rgba(18,26,42,0.6) 0%, transparent 18%, transparent 42%, rgba(18,26,42,0.55) 72%, rgba(18,26,42,0.88) 100%);
  }
  .story-progress { top: 84px; right: 12px; transform: none; }
  .story-stats { padding: 40px 5% 4px; }
  .hstat { padding: 14px 20px; }
}

@media (max-width: 600px) {
  nav { top: 12px; }
  #cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .cookie-long { display: none; }
  .cookie-short { display: inline; }
  .cta-contact { gap: 24px; }
  /* 13: the three stats stay on one row */
  .hero-stats { flex-wrap: nowrap; gap: 8px; }
  .hstat { flex: 1 1 0; min-width: 0; padding: 12px 4px; }
  .hstat b { font-size: 28px; }
  .hstat span { font-size: 9px; letter-spacing: 1px; }
}

@media (max-width: 480px) {
  .ch-hero .sub-more { display: none; }   /* small phones: intro trimmed to its first two sentences */
  .tagpill { font-size: 9.5px; letter-spacing: 1.2px; padding: 8px 14px; margin-bottom: 16px; border-radius: 14px; }
  .ch-index { font-size: 10px; }
}

@media (max-height: 700px) {
  .ch-hero .sub-more { display: none; }
  .ch-hero .ch-cap { display: none; }
}

/* ── Reduced motion ────────────────────────── */
/* No pinned choreography: the stage becomes a normal block showing the final
   "Scaled" frame (drawn once by story.js) and the chapters stack below it. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh-bg .glow, .tagpill i { animation: none; }
  .animate { animation: none; }
  .page.active, .page.page-in { opacity: 1; transform: none; transition: none; }

  .problem-point-card:hover, .diff-row:hover, .diff-card:hover, .value-card:hover,
  .service-card:hover, .service-row:hover, .case-row:hover, .case-feature:hover,
  .ibm-feature:hover, .founder-card:hover, .office-card:hover,
  .btn-primary:hover, .btn-hero-primary:hover, .btn-form:hover,
  .btn-ghost:hover, .btn-hero-ghost:hover, .client-chip:hover { transform: none; }

  .stage { position: relative; height: 64vh; min-height: 420px; }
  .chapters { margin-top: 0; }
  .chapter { min-height: 0; padding: 40px var(--gutter) 8px; }
  .chapter.ch-hero { padding-top: 48px; }
  .ch-index b { color: var(--gold-mid); }
  .story-progress { display: none; }
  .stage-veil {
    background: linear-gradient(180deg, rgba(18,26,42,0.7) 0%, transparent 30%, transparent 70%, rgba(18,26,42,0.7) 100%);
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .stage { height: 52vh; min-height: 360px; }
  .chapter { padding: 28px 5% 4px; align-items: stretch; }
}
