/* <code> inherits its panel font (browser default is generic monospace; ruling R1, 10-28-2026) */
code { font: inherit; }

/*
 * E-FRAME MASTER DESIGN SYSTEM (Resend Velvet + Inter & Geist)
 * Ratified from live e-frame.us and white-label-ecommerce-development briefs.
 */

/* Aliases: page-only values with no generated token. Everything else comes from tokens.css / type.css. */
:root {
  --color-smoke-gray: #abafb4;
}

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

body {
  font-family: var(--font-sans);
  font-weight: var(--type-body-weight);
  font-size: var(--type-body-size);
  color: var(--color-text-lead);
  background-color: var(--color-canvas-void);
  line-height: var(--type-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` wins where supported (Safari 16+, current Chrome/Firefox): body stays no scroll container, so position: sticky
     works. Older browsers drop the `clip` line and keep `hidden`, today's behaviour. */
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-tracking);
  color: var(--color-text-heading);
}

p {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  color: var(--color-text-lead);
}

/* Modern Section Header (Title + Subtext Aligned Underneath) */
.section-header {
  max-width: 820px;
  margin-bottom: var(--space-12);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-tracking);
  color: var(--color-text-heading);
  margin-bottom: var(--space-4);
}

.section-deck {
  font-family: var(--font-sans);
  font-size: var(--type-section-deck-size);
  font-weight: var(--type-section-deck-weight);
  line-height: var(--type-section-deck-lh);
  color: var(--color-text-lead);
}

strong, b {
  color: var(--color-text-heading);
}

.tabular {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: var(--type-title-tracking);
}

.container {
  width: 100%;
  max-width: var(--layout-container);
  margin: 0 auto;
  padding: 0 var(--space-7);
  position: relative;
}

/* 
 * GLOBAL NAVIGATION 
 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border-hairline);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-heading);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: var(--type-h2-feature-tracking);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-lead);
  font-size: var(--type-body-size);
  font-weight: var(--weight-medium);
  transition: color 0.15s ease;
}

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

/* 
 * BUTTONS (Resend Spec: 6px radius, Solid White or Ghost)
 */
.button-primary-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  padding: 10px 18px;
  border-radius: var(--radius-control);
  text-decoration: none;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.button-primary-ghost:hover {
  background-color: var(--color-state-primary-hover);
  transform: translateY(-1px);
}

.button-secondary-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: transparent;
  color: var(--color-text-heading);
  font-family: var(--font-sans);
  font-size: var(--type-small-size);
  font-weight: var(--weight-medium);
  padding: 10px 18px;
  border-radius: var(--radius-control);
  text-decoration: none;
  border: 1px solid var(--color-border-hairline);
  cursor: pointer;
  transition: all 0.15s ease;
}

.button-secondary-ghost:hover {
  border-color: #ffffff;
  color: var(--color-text-heading);
}

/* 
 * HERO SECTION 
 */
.hero-section {
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0 var(--space-26) 0;
  background: var(--color-canvas-void);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-live-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-kicker-size);
  color: var(--color-text-contrast);
  margin-bottom: var(--space-6);
  background: transparent;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border-hairline);
  font-family: var(--font-mono);
}

.kicker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-signal-pulse-green);
  box-shadow: var(--glow-pulse-ring);
}

.kicker-label {
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--type-display-hero-size);
  font-weight: var(--type-display-hero-weight);
  line-height: var(--type-display-hero-lh);
  letter-spacing: var(--type-display-hero-tracking);
  color: var(--color-text-heading);
  margin-bottom: var(--space-6);
  word-break: normal;
}

.hero-title .brand-accent {
  color: var(--color-brand-violet);
}

.hero-lead {
  font-size: var(--type-section-deck-size);
  font-weight: var(--type-section-deck-weight);
  line-height: var(--type-section-deck-lh);
  color: var(--color-text-lead);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.hero-proof-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding-top: var(--space-6);
  border-top: 0 !important;
  flex-wrap: wrap;
}

.proof-tag {
  background: transparent;
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: var(--type-tag-size);
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-3);
  color: var(--color-text-heading);
  letter-spacing: var(--type-item-title-tracking);
  transition: border-color 0.15s ease;
}

.proof-tag:hover {
  border-color: #ffffff;
}

.hero-proof-mobile {
  display: none;
}

/* 
 * RESEND DARK CONSOLE MOCKUP 
 */
.dark-app-mockup {
  background: var(--color-canvas-void);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-nested);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  color: var(--color-text-heading);
  font-family: var(--font-mono);
}

.mockup-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-nested);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-canvas-surface); gap: var(--space-3);
}

.mockup-tab-group {
  display: flex;
  gap: var(--space-2);
  align-items: center; overflow-x: auto; scrollbar-width: none; min-width: 0;
}

.mockup-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-text-lead);
  font-family: var(--font-mono);
  font-size: var(--type-data-size);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
}

.mockup-tab-btn:hover {
  color: var(--color-text-heading);
  background: var(--color-fill-hover);
}

.mockup-tab-btn.active {
  color: var(--color-text-heading);
  background: rgba(146, 129, 247, 0.15);
  border-color: var(--color-brand-violet);
}

.tab-icon-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-brand-violet);
}

.mockup-copy-btn {
  background: transparent;
  color: var(--color-text-lead);
  padding: var(--space-2) var(--space-3);
  font-size: var(--type-meta-size);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all 0.15s ease;
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
}

.mockup-copy-btn:hover {
  color: var(--color-text-heading);
  border-color: var(--color-border-hover);
}

.mockup-body {
  padding: var(--space-5);
  background: var(--color-canvas-void);
}

.mockup-inner-card {
  background: var(--color-canvas-surface);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-nested);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.mockup-row:last-child {
  margin-bottom: 0;
}

.mockup-label {
  font-size: var(--type-meta-size);
  color: var(--color-text-lead);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(var(--tint-violet), var(--tint-alpha-bg));
  color: var(--color-brand-violet);
  border: 1px solid var(--color-brand-violet-badge-border);
  font-size: var(--type-tag-size);
  font-weight: var(--weight-medium);
  padding: 2px var(--space-2);
  border-radius: var(--radius-control);
}

.brand-badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-brand-violet);
}

.mockup-val {
  font-size: var(--type-data-size);
  font-family: var(--font-mono);
  color: var(--color-text-heading);
  font-weight: var(--weight-medium);
}

.code-editor-wrap {
  background: var(--color-canvas-void);
  border: 1px solid var(--color-border-nested);
  box-shadow: var(--shadow-window);
  padding: var(--space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  min-width: 0;
  border-radius: var(--radius-nested);
}

.code-gutter {
  user-select: none; color: var(--color-text-lead);
  font-family: var(--font-mono);
  font-size: var(--type-code-size);
  line-height: var(--type-code-lh);
  text-align: right;
  padding-right: var(--space-4);
  border-right: 1px solid var(--color-border-hairline);
  flex-shrink: 0; white-space: pre;
}

.code-content {
  padding-left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--type-code-size);
  line-height: var(--type-code-lh);
  color: var(--color-text-contrast);
  white-space: pre;
  min-width: 0;
}

.c-comment { color: var(--color-text-lead); font-style: italic; }
.c-kw { color: var(--color-text-heading); font-weight: var(--weight-semibold); }
.c-fn { color: var(--color-brand-violet); }
.c-type { color: var(--color-brand-violet); }
.c-str { color: var(--color-brand-violet); }
.c-num { color: var(--color-text-heading); }

.mockup-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-hairline);
  background: var(--color-canvas-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--type-badge-size);
  color: var(--color-text-lead);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-signal-pulse-green);
}

/* 
 * CLIENT PROOF MARQUEE (Real e-frame.us clients) 
 */
.client-marquee-band {
  background: var(--color-canvas-void);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border-hairline);
  border-bottom: 1px solid var(--color-border-hairline);
  overflow: hidden;
  position: relative;
}

/* 
 * SECTION: ARCHITECTURE MATRIX 
 */
.feature-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

.stripe-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border-hairline);
  margin-bottom: var(--space-10);
  overflow-x: auto;
}

.stripe-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-text-lead);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.stripe-tab-btn:hover {
  color: var(--color-text-heading);
}

.stripe-tab-btn.active {
  color: var(--color-text-heading);
  border-bottom-color: var(--color-brand-violet);
  font-weight: var(--weight-semibold);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: flex-start;
}

.detail-heading {
  font-family: var(--font-display);
  font-size: var(--type-title-lg-size);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--type-title-lg-tracking);
  margin-bottom: var(--space-4);
}

.detail-body {
  font-size: var(--type-body-size);
  line-height: 1.6;
  color: var(--color-text-lead);
  margin-bottom: var(--space-8);
}

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

.kpi-card {
  background: var(--color-canvas-void);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-1);
}

.kpi-label {
  font-size: var(--type-small-size);
  color: var(--color-text-lead);
}

.diag-container {
  background: var(--color-canvas-void);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.diag-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--color-canvas-surface);
  border-bottom: 1px solid var(--color-border-hairline);
}

.diag-mode-toggle {
  display: inline-flex;
  background: var(--color-fill-hover);
  padding: var(--space-1);
  border-radius: var(--radius-control);
}

.diag-btn {
  background: none;
  font-size: var(--type-meta-size);
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  cursor: pointer;
  color: var(--color-text-lead);
  transition: all 0.15s ease;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.diag-btn.active {
  background: var(--color-canvas-void);
  color: var(--color-text-heading);
  border: 1px solid var(--color-border-hairline);
}

.diag-btn.bloat-active {
  color: var(--color-signal-alarm-red);
}

.diag-content {
  padding: var(--space-6);
}

.diag-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.diag-badge {
  font-size: var(--type-badge-size);
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
}

.diag-badge.clean {
  background: rgba(var(--tint-green), var(--tint-alpha-bg));
  color: var(--color-signal-pulse-green);
  border: 1px solid rgba(58, 211, 137, 0.25);
}

.diag-badge.bloat {
  background: rgba(var(--tint-red), var(--tint-alpha-bg));
  color: var(--color-signal-alarm-red);
  border: 1px solid rgba(255, 149, 146, 0.25);
}

.diag-code-terminal {
  background: var(--color-canvas-void);
  border: 1px solid var(--color-border-hairline);
  color: var(--color-text-contrast);
  border-radius: var(--radius-nested);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--type-code-size);
  line-height: var(--type-code-lh); overflow-x: auto; white-space: pre;
}

/* 
 * SECTION 2: SELECTED TECHNICAL WORK (Real Case Studies from e-frame.us) 
 */
.work-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

/* Minimal Editorial Project Rows (No card box fatigue) */
.work-rows {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-12);
  border-top: 0 !important;
}

.work-row {
  display: grid;
  grid-template-columns: 320px 1.2fr 340px;
  gap: var(--space-10);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border-hairline); align-items: start;
  transition: background 0.2s ease; --c: 146,129,247;
}

.work-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.work-client-name {
  font-family: var(--font-display);
  font-size: var(--type-title-lg-size);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--type-title-lg-tracking);
  margin-bottom: var(--space-2);
}

.work-client-sub {
  font-size: var(--type-body-size);
  color: var(--color-text-lead);
  margin-bottom: var(--space-4);
}

.work-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: var(--type-badge-size); color: rgb(var(--c)); background: rgba(var(--c), 0.10);
  padding: 3px var(--space-2);
  border-radius: var(--radius-control);
  border: 1px solid var(--color-brand-violet-badge-border); border-color: rgba(var(--c), 0.25);
}

.work-title {
  font-family: var(--font-display); font-size: var(--type-title-size);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--type-title-lg-tracking);
  margin-bottom: var(--space-3); line-height: var(--type-tab-label-lh);
}

.work-desc { font-size: var(--type-body-size);
  color: var(--color-text-lead); line-height: var(--type-body-lh);
  margin-bottom: var(--space-5);
}

.work-schematic-box { background: transparent; border-radius: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: var(--type-meta-size);
  line-height: 1.6;
  color: var(--color-text-lead); border: 0; border-top: 1px solid var(--color-border-hairline); box-shadow: none; border-top-color: rgba(var(--c), 0.45);
}

.schematic-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-nested);
  padding: var(--space-2) 0;
}
.schematic-row:last-child { border-bottom: none; }

/* 
 * SECTION 3: WHITE-LABEL AGENCY OVERFLOW (Direct from e-frame.us/white-label) 
 */
.agency-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

/* Open layout: heading left, four hairline-separated rows right. No cards, no icon box. */
.agency-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-16);
  align-items: start;
}
.agency-head .section-title { max-width: 440px; }
.agency-head .section-deck { max-width: 440px; }
.agency-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border-hairline); }
.agency-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-border-hairline); padding-top: var(--space-6); padding-bottom: var(--space-6);
}
.agency-icon { width: 20px; height: 20px; color: var(--color-text-heading); opacity: 0.9; }
.agency-item-title {
  font: 500 20px/1.3 var(--font-display);
  color: var(--color-text-heading);
  letter-spacing: var(--type-item-title-tracking);
  margin: 0 0 var(--space-2);
}
.agency-item-body {
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--color-text-lead);
  margin: 0;
}
@media (max-width: 900px) {
  .agency-split { grid-template-columns: 1fr; gap: var(--space-10); }
  .agency-head .section-title, .agency-head .section-deck { max-width: none; }
}

/* 
 * SECTION 4: 5 SERVICE TRACKS 
 */
.services-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

.service-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--type-title-tracking);
  text-align: left;
}

.service-detail {
  font-size: 15.5px;
  color: var(--color-text-lead);
  line-height: var(--type-body-lh);
  text-align: left;
  max-width: 820px;
}

/* 
 * SECTION 5: 3-STEP PROCESS & FAQ 
 */
.process-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
}

/* Linear Step Sequence (No card boxes) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-12);
  margin-bottom: var(--space-20);
  border-top: 0 !important; padding-top: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
}

.process-step-badge {
  font-family: var(--font-mono);
  font-size: var(--type-meta-size);
  color: var(--color-brand-violet);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  letter-spacing: var(--type-badge-tracking);
}

.process-title {
  font-family: var(--font-display);
  font-size: var(--type-title-size);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  letter-spacing: var(--type-title-tracking);
}

.process-desc {
  font-size: var(--type-body-size);
  color: var(--color-text-lead);
  line-height: var(--type-body-lh);
}

/* FAQ Details List with Unmistakable Arrow */
.faq-wrap {
  max-width: 900px;
  margin: 0 auto; margin-left: 0; margin-right: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-hairline);
}

.faq-item summary {
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: var(--type-title-size);
  font-weight: var(--weight-medium);
  color: var(--color-text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}

.faq-item summary:hover {
  color: var(--color-brand-violet);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border-hairline);
  color: var(--color-text-lead);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--space-5);
}

.faq-item:hover .faq-chevron {
  color: var(--color-text-heading);
  border-color: var(--color-brand-violet);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-brand-violet);
  border-color: var(--color-brand-violet);
  background: rgba(146, 129, 247, 0.1);
}

.faq-content {
  padding-bottom: var(--space-6);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--color-text-lead);
}

/* 
 * FINAL CTA INTAKE 
 */
.final-cta-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  text-align: center;
}

.final-headline {
  font-family: var(--font-display); font-size: var(--type-h2-feature-size);
  font-weight: var(--weight-semibold); line-height: var(--type-h2-feature-lh);
  color: var(--color-text-heading);
  letter-spacing: var(--type-h2-feature-tracking); margin-bottom: var(--space-4);
}

.final-sub {
  font-size: var(--type-card-title-size);
  color: var(--color-text-lead);
  max-width: 600px;
  margin: 0 auto var(--space-10) auto;
  line-height: 27px;
}

/* Footer */
.site-footer {
  border-top: 0 !important;
  padding: var(--space-10) 0;
  background: var(--color-canvas-void);
  font-family: var(--font-mono);
  font-size: var(--type-meta-size);
  color: var(--color-text-lead);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* 
 * SECTION: RESEND-STYLE MULTI-STACK INTEGRATION CODE MATRIX ("Integrate this sprint")
 */
.integrate-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0 var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
  position: relative;
}

.integrate-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-7);
}

.integrate-3d-tile { width: 84px; height: 84px;
  background: linear-gradient(180deg, #1c1f24 0%, #090a0d 100%);
  border: 1px solid var(--color-border-tile);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 0 35px rgba(146, 129, 247, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-tile);
}

.integrate-3d-tile::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-tile);
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(146,129,247,0.35) 50%, transparent 100%);
  z-index: -1;
  opacity: 0.7;
}

.integrate-tile-glyph {
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
}

.integrate-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--type-h2-feature-tracking);
  color: var(--color-text-heading);
  margin-bottom: var(--space-4);
  text-align: center;
  line-height: var(--type-h2-feature-lh);
}

.integrate-accent-glow {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-brand-violet-glow) 45%, var(--color-brand-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.integrate-subtitle {
  font-size: var(--type-card-title-size);
  line-height: 27px;
  color: var(--color-text-lead);
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
  text-align: center;
}

/* Stack selector row of buttons */
.stack-selector-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  padding: var(--space-2) var(--space-4) var(--space-4) var(--space-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stack-selector-row::-webkit-scrollbar { display: none; }

.stack-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  outline: none;
  transition: transform 0.15s ease;
  min-width: 52px;
}

.stack-icon-btn:hover {
  transform: translateY(-2px);
}

.stack-icon-box {
  width: 50px;
  height: 50px;
  background: var(--color-canvas-void);
  border: 1px solid var(--color-border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-lead);
  transition: all 0.18s ease; border-radius: var(--radius-nested);
}

.stack-label {
  font-family: var(--font-display);
  font-size: var(--type-meta-size);
  color: var(--color-text-lead);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.stack-icon-btn:hover .stack-icon-box {
  border-color: var(--color-border-hover);
  color: var(--color-text-heading);
}
.stack-icon-btn:hover .stack-label {
  color: var(--color-text-heading);
}

.stack-icon-btn.active .stack-icon-box {
  border-color: var(--color-brand-violet);
  background: var(--color-brand-violet-badge-bg);
  color: var(--color-text-heading);
  box-shadow: 0 0 18px rgba(146, 129, 247, 0.3);
}
.stack-icon-btn.active .stack-label {
  color: var(--color-text-heading);
  font-weight: var(--weight-medium);
}

/* Terminal container */
.integrate-terminal-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--color-canvas-void);
  border: 1px solid var(--color-border-nested);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-window);
}

.integrate-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-nested);
  padding: var(--space-3) var(--space-5);
  background: var(--color-canvas-surface);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.integrate-subtabs-wrap {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.integrate-subtabs-wrap::-webkit-scrollbar { display: none; }

.integrate-subtab-pill {
  background: transparent;
  color: var(--color-text-lead);
  font-family: var(--font-display);
  font-size: var(--type-data-size);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
}

.integrate-subtab-pill:hover {
  color: var(--color-text-heading);
}

.integrate-subtab-pill.active {
  background: var(--color-canvas-chip-hover);
  border-color: var(--color-brand-violet);
  color: var(--color-text-heading);
  font-weight: var(--weight-medium);
}

.integrate-subtab-pill .subtab-icon {
  font-size: var(--type-badge-size);
  color: var(--color-brand-violet);
}

.integrate-copy-action {
  background: transparent;
  color: var(--color-text-lead);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--type-meta-size);
  transition: all 0.15s ease;
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-control);
}

.integrate-copy-action:hover {
  color: var(--color-text-heading);
  border-color: var(--color-border-hover);
}

.integrate-code-container {
  padding: var(--space-6) var(--space-7);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-canvas-void);
  font-family: var(--font-mono);
  font-size: var(--type-data-size);
  line-height: var(--type-code-lh);
  min-height: 380px;
  min-width: 0;
}

.integrate-line-numbers {
  display: flex;
  flex-direction: column;
  user-select: none;
  padding-right: var(--space-6);
  border-right: 1px solid var(--color-border-nested);
  margin-right: var(--space-6); color: var(--color-text-lead);
  text-align: right;
  min-width: 28px;
  flex-shrink: 0;
}

.integrate-code-content {
  white-space: pre;
  color: var(--color-text-contrast);
  flex: 1;
  min-width: 0;
}

.integrate-terminal-footer {
  border-top: 1px solid var(--color-border-nested);
  padding: var(--space-4) var(--space-7);
  background: var(--color-canvas-surface);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--type-meta-size);
  color: var(--color-text-lead);
  flex-wrap: wrap;
}

.integrate-footer-link {
  color: var(--color-text-lead);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color 0.15s ease;
}
.integrate-footer-link:hover {
  color: var(--color-text-heading);
}

/* 
 * SECTION: AGENTIC AI ENGINEER ("Engineers who own the problem, not just the ticket")
 */
.agentic-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
  position: relative;
}

/*
 * SECTION: AI & DATA PLATFORMS WE SUPPORT (Architectural Gateway Grid)
 */
.platforms-section {
  background: var(--color-canvas-void);
  padding: var(--space-26) 0 var(--space-26) 0;
  border-bottom: 1px solid var(--color-border-hairline);
  position: relative;
}

/* Topology Bus Bar */
.platforms-topology-bus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-canvas-surface);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
  overflow-x: auto;
}

.topology-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--type-tag-size);
  color: var(--color-text-lead);
  white-space: nowrap;
}

.topology-step.active {
  color: var(--color-text-heading);
}

.topology-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-signal-pulse-green);
  box-shadow: 0 0 10px rgba(58, 211, 137, 0.6);
}

.topology-arrow {
  color: var(--color-text-ghost);
  font-size: var(--type-data-size);
}

/* 4-Column Architectural Grid */
.platforms-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.platform-column {
  background: var(--color-canvas-surface);
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.platform-column:hover {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.012);
}

.platform-col-header {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-hairline);
}

.platform-col-tier {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--type-badge-size);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--type-badge-tracking);
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--radius-control);
  margin-bottom: var(--space-3);
}

.tier-storefront {
  color: var(--color-brand-violet);
  background: rgba(146, 129, 247, 0.1);
  border: 1px solid var(--color-brand-violet-badge-border);
}

.tier-erp {
  color: var(--color-signal-pulse-green);
  background: rgba(58, 211, 137, 0.1);
  border: 1px solid rgba(58, 211, 137, 0.25);
}

.tier-cloud {
  color: var(--color-brand-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tier-ai {
  color: var(--color-brand-amber);
  background: rgba(var(--tint-amber), var(--tint-alpha-bg));
  border: 1px solid rgba(var(--tint-amber), var(--tint-alpha-border));
}

.platform-col-title {
  font-family: var(--font-display);
  font-size: var(--type-card-title-size);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--type-title-tracking);
  margin-bottom: var(--space-2);
}

.platform-col-deck {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  color: var(--color-text-body);
  line-height: var(--type-body-lh);
}

.platform-col-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.platform-node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-canvas-panel);
  border: 1px solid var(--color-border-nested);
  border-radius: var(--radius-nested);
  padding: var(--space-3) var(--space-4);
  transition: all 0.18s ease;
  cursor: default;
}

.platform-node-item:hover {
  background: #111114;
  border-color: var(--color-border-hover);
  transform: translateX(2px);
}

.node-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-title {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  letter-spacing: var(--type-item-title-tracking);
}

.node-subtitle {
  font-family: var(--font-sans);
  font-size: var(--type-small-size);
  color: var(--color-text-lead);
  line-height: 1.35;
}

.node-protocol-badge {
  font-family: var(--font-mono);
  font-size: var(--type-tag-size);
  color: var(--color-text-lead);
  background: var(--color-fill-subtle);
  border: 1px solid var(--color-border-nested);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-control);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.platform-node-item:hover .node-protocol-badge {
  color: var(--color-text-heading);
  border-color: var(--color-border-hover);
}

/*
 * COMPREHENSIVE RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
 */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-hairline);
  border-radius: var(--radius-control);
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  padding: 0;
  color: var(--color-text-heading);
  transition: all 0.15s ease;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.2s ease;
}

.mobile-nav-toggle:hover {
  border-color: #ffffff;
}

/* Tablet & Medium Breakpoint (< 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .platforms-gateway-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
  .agentic-scenarios-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .canvas-block-7, .canvas-block-5, .canvas-block-6 {
    grid-column: span 12;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8) 0;
  }
}

/* Mobile Breakpoint (< 960px) */
@media (max-width: 960px) {
  .hero-proof-desktop {
    display: none !important;
  }
  .hero-proof-mobile {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    width: 100%;
  }
  .client-marquee-band {
    padding: var(--space-6) 0;
  }
  .marquee-label {
    font-size: var(--type-badge-size);
    margin-bottom: var(--space-4);
    padding: 0 var(--space-4);
    text-align: center;
  }
  .marquee-track {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-7);
    padding: 0 var(--space-6) var(--space-2) var(--space-6);
    justify-content: flex-start;
  }
  .marquee-track::-webkit-scrollbar {
    display: none;
  }
  .client-logo-item {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 15px;
  }
  .mobile-nav-toggle {
    display: flex; width: 44px; height: 44px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0; background: var(--color-canvas-void);
    border-bottom: 1px solid var(--color-border-hairline);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4); backdrop-filter: none;
    box-shadow: 0 24px 48px rgba(0,0,0,0.8); z-index: 60;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links li a {
    font-size: var(--type-body-size);
    display: block;
    padding: var(--space-2) 0;
  }
  .process-flow {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-8) 0;
  }
}

/* Small Mobile Breakpoint (< 640px) */
@media (max-width: 640px) {
  /* `clip`, not `hidden`: with `hidden` on both html and body, body becomes its own scroll container and every
     `position: sticky` descendant (.site-nav, .article-toc, .case-aside) stops sticking on phones. `clip` still stops
     horizontal scroll but creates no scroll container. The `hidden` line first is the fallback for browsers without
     `clip` (Safari below 16), which drop the `clip` declaration and keep today's behaviour. */
  html, body {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
  }
  .container {
    padding: 0 var(--space-4);
  }
  section {
    padding: var(--space-16) 0 !important;
  }
  .system-status-dock {
    font-size: 10px;
    padding: var(--space-2) var(--space-4);
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
  }
  .system-status-dock .tabular {
    display: none;
  }
  .hero-section {
    padding: var(--space-10) 0 var(--space-16) 0;
  }
  .hero-title {
    font-size: var(--type-display-hero-size);
    text-align: center;
  }
  .hero-content {
    text-align: center; min-width: 0;
  }
  .hero-live-kicker {
    margin: 0 auto var(--space-4) auto; justify-content: center; flex-wrap: wrap; row-gap: 2px; max-width: 100%;
  }
  .hero-lead {
    font-size: var(--type-body-size);
    line-height: 1.55;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
  }
  .button-primary-ghost,
  .button-secondary-ghost {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .hero-proof-row {
    gap: var(--space-2);
    justify-content: center;
  }
  .proof-tag {
    font-size: var(--type-badge-size);
    padding: var(--space-1) var(--space-2);
  }
  .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-8);
  }
  .section-title {
    font-size: clamp(26px, 6.8vw, 34px);
    text-align: center;
  }
  .section-deck {
    font-size: var(--type-body-size);
    line-height: 24.8px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 540px;
  }
  .platforms-gateway-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .platforms-topology-bus {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-4) var(--space-4);
  }
  .platforms-topology-bus::-webkit-scrollbar {
    display: none;
  }
  .topology-step {
    flex-shrink: 0;
  }
  .stripe-tab-nav {
    gap: var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-7);
  }
  .stripe-tab-nav::-webkit-scrollbar {
    display: none;
  }
  .stripe-tab-btn {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-4);
    font-size: var(--type-small-size);
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .kpi-num {
    font-size: var(--type-title-size);
  }
  .kpi-label {
    font-size: var(--type-small-size);
  }
  .diag-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .diag-mode-toggle {
    width: 100%;
    display: flex;
  }
  .diag-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--type-meta-size);
  font-family: var(--font-sans);
  }
  .agentic-scenarios-strip {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-12);
  }
  .canvas-block {
    padding: var(--space-5) var(--space-4);
  }
  .canvas-title {
    font-size: 19px;
  }
  .canvas-pipeline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0 0 0 var(--space-3);
  }
  .canvas-metric-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .canvas-compare-strip {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .agency-split { grid-template-columns: 1fr; gap: var(--space-10); }
  .stack-selector-row {
    justify-content: flex-start;
    padding: var(--space-2) var(--space-2) var(--space-3) var(--space-2);
    gap: var(--space-3);
  }
  .integrate-terminal-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .integrate-subtabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; align-self: stretch; max-width: 100%; min-width: 0;
  }
  .integrate-subtabs-wrap::-webkit-scrollbar {
    display: none;
  }
  .integrate-code-container {
    padding: var(--space-4) var(--space-3);
    font-size: var(--type-meta-size);
  }
  .integrate-terminal-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
  .service-row {
    grid-template-columns: 36px 1fr;
    gap: var(--space-3);
    padding: var(--space-6) 0;
  }
  .service-idx {
    font-size: var(--type-data-size);
    padding-top: 2px;
  }
  .service-name {
    font-size: var(--type-card-title-size);
    text-align: left;
  }
  .service-detail {
    font-size: 14.5px;
    text-align: left;
  }
  .faq-item summary {
    font-size: var(--type-body-size);
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/*
 * 10-22-2026 PASS: bug fixes, real logos, case studies, team and motion.
 * Everything else keeps the original design above.
 */

/* Code windows: one line number per line, readable gutter + comments */
.mockup-tab-btn, .brand-badge { white-space: nowrap; }
.mockup-tab-group::-webkit-scrollbar { display: none; }

/* Shared text link */
.text-link {
  display: inline-flex; gap: var(--space-2); margin-top: var(--space-4);
  color: var(--color-text-contrast); font-size: var(--type-body-size); font-weight: var(--weight-medium);
  text-decoration: none; border-bottom: 1px solid var(--color-border-hairline);
  padding-bottom: 2px; transition: border-color 0.15s ease, color 0.15s ease;
}
.text-link:hover { color: var(--color-text-heading); border-color: #ffffff; text-decoration: none; }

/* Client logos: real files, monochrome, slow marquee */
.client-marquee-band { padding: var(--space-10) 0 !important; }
.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee-track { display: flex; width: max-content; animation: logo-scroll 48s linear infinite; }
.logo-marquee:hover .logo-marquee-track, .logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }
.logo-group { display: flex; align-items: center; gap: var(--space-16); padding-right: var(--space-16); }
.logo-group img {
  height: 30px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) invert(1) brightness(1.6) contrast(1.2); mix-blend-mode: screen; opacity: 0.75;
  transition: opacity 0.2s ease;
}
.logo-group img:hover { opacity: 1; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Keyboard focus on the interactive demos */
.stack-icon-btn:focus-visible, .stripe-tab-btn:focus-visible, .diag-btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.integrate-terminal-footer .tabular { color: var(--color-text-lead); }

/* Case studies (new design, approved 10-22): sourced numbers as large mono type */
.work-stats { display: grid; gap: var(--space-4); margin: 0; }
.work-stats div { border-top: 1px solid var(--color-border-hairline); padding-top: var(--space-3); }
.work-stats dt { font-size: var(--type-small-size); color: var(--color-text-lead); }
.work-stats dd { margin: var(--space-1) 0 0; font: 500 32px/1.1 var(--font-mono); color: var(--color-text-heading); letter-spacing: var(--type-metric-tracking);
  background: linear-gradient(135deg, #ffffff 0%, rgb(var(--c)) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.work-schematic-box .schematic-row { padding: var(--space-3) 0; font-size: var(--type-data-size); }
.work-schematic-box .schematic-row span:last-child { color: var(--color-text-contrast); }
.work-all-link { margin-top: var(--space-10); }

/* Case accents (Eduardo 10-22): one brand colour per case, on tags, results and lifecycle dots */
.work-stats div:first-child { border-top-color: rgba(var(--c), 0.45); }
.work-schematic-box .schematic-row span:first-child::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: var(--space-3); vertical-align: middle;
  background: rgb(var(--c)); box-shadow: 0 0 8px rgba(var(--c), 0.6);
}

/* Team: same section rhythm as the rest of the page */
.team-section { background: var(--color-canvas-void); padding: var(--space-26) 0; border-bottom: 1px solid var(--color-border-hairline); }
.team-section .section-header { margin-bottom: var(--space-14); }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.team-member img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: var(--radius-card); border: 1px solid var(--color-border-hairline); margin-bottom: var(--space-5);
}
.team-name { font: 600 var(--type-title-size)/1.3 var(--font-display); color: var(--color-text-heading); letter-spacing: var(--type-title-tracking); margin-bottom: var(--space-1); }
.team-role { font: 500 12px/1.4 var(--font-mono); color: var(--color-brand-violet); text-transform: uppercase; letter-spacing: var(--type-badge-tracking); }

/* Services rows link to real pages */
a.service-name { color: var(--color-text-heading); text-decoration: none; display: inline-block; }
a.service-name:hover { text-underline-offset: 4px; text-decoration: underline; text-decoration-color: var(--color-text-muted); }

/* Services as an icon grid (Resend-style layout, E-FRAME brand colours on the icons).
   Icon colour follows the Platforms tier code: green storefronts, violet ERP/integrations,
   cyan data/SEO, amber support. */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16) var(--space-14); margin-top: var(--space-14); }
.service-cell { display: flex; flex-direction: column; gap: var(--space-3); }
.service-icon { width: 20px; height: 20px; color: var(--color-text-heading); opacity: 0.9; margin-bottom: 2px; }
.service-cell .service-name { font-size: var(--type-title-size); font-weight: var(--weight-medium); }
.service-cell .service-detail { font-size: var(--type-body-size); line-height: var(--type-body-lh); }
    .service-cell .service-name, .service-cell--cta .text-link { align-self: flex-start; }
.service-cell--cta .text-link { margin-top: var(--space-1); }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-12) var(--space-10); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; gap: var(--space-10); margin-top: var(--space-10); } }

.site-footer a { color: var(--color-text-lead); }

/* Motion: typing cursor for the hero code window */
.type-caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: text-bottom; background: var(--color-text-contrast); margin-left: 1px; }

/* Brand palette stays on labels, badges and indexes (Eduardo 10-22: Resend is a layout
   reference, not a palette). Section tints: one per section, used on the tile glow and nowhere else */
.tint-violet { --tint: 146,129,247; }
.tint-green  { --tint: 58,211,137; }

/* Resend-style metallic headline */
.metal-title {
  background: linear-gradient(180deg, #ffffff 30%, #9ea2a7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Centered section intro with a 3D icon tile */
.sec-intro { text-align: center; max-width: 760px; margin: 0 auto var(--space-12); }
.sec-tile {
  width: 84px; height: 84px; margin: 0 auto var(--space-8); border-radius: var(--radius-tile);
  display: flex; align-items: center; justify-content: center; color: var(--color-text-heading);
  background: linear-gradient(180deg, #1b1e23 0%, var(--color-canvas-active) 100%);
  border: 1px solid var(--color-border-tile);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.22),
    inset 0 -18px 26px -16px rgba(var(--tint), 0.75),
    0 14px 34px -14px rgba(var(--tint), 0.45);
  border-bottom-color: rgba(var(--tint), 0.7);
}
.sec-tile svg { filter: drop-shadow(0 2px 6px rgba(var(--tint), 0.45)); }
.sec-intro-title { font: 600 clamp(36px, 4.4vw, 56px)/1.1 var(--font-display); letter-spacing: var(--type-h2-feature-tracking); margin-bottom: var(--space-4); }
.sec-intro-deck { font-size: var(--type-card-title-size); line-height: 27px; color: var(--color-text-lead); }

/* Agentic part 1: two-up showcase cards (visual on top, copy below) */
.showcase-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.showcase-card { position: relative; }
.showcase-visual {
  position: relative; height: 300px; overflow: hidden;
  border: 1px solid var(--color-border-hairline); border-bottom: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--tint),0.10), transparent 60%), var(--color-canvas-surface);
  display: flex; align-items: center; justify-content: center; padding: var(--space-10) var(--space-8) 0;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); border-radius: var(--radius-card);
}
.showcase-visual::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tint),0.8), transparent); }
.showcase-copy { padding: var(--space-2) var(--space-6) 0 var(--space-12); max-width: 460px; }
.showcase-icon { color: var(--color-text-heading); opacity: 0.9; margin-bottom: var(--space-4); }
.showcase-title { font: 500 20px/1.3 var(--font-display); color: var(--color-text-heading); letter-spacing: var(--type-item-title-tracking); margin-bottom: var(--space-3); }
.showcase-body { font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); margin-bottom: var(--space-4); }
.showcase-link { color: var(--color-text-heading); text-decoration: none; font-size: var(--type-body-size); font-weight: var(--weight-medium); }
.showcase-link:hover { color: var(--color-text-heading); text-decoration: underline; text-underline-offset: 4px; }

.flow-panel { display: flex; align-items: stretch; gap: var(--space-3); width: 100%; }
.flow-node { flex: 1; background: var(--color-canvas-panel); border: 1px solid var(--color-border-nested); border-radius: var(--radius-nested); padding: var(--space-4) var(--space-4); display: grid; align-content: start; gap: var(--space-2); box-shadow: none; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 10px rgba(var(--c), 0.6); }
.flow-kicker { font: 500 12px/1.2 var(--font-mono); color: var(--color-text-lead); text-transform: uppercase; letter-spacing: var(--type-kicker-tracking); }
.flow-name { color: var(--color-text-heading); font-size: var(--type-body-size); font-weight: var(--weight-medium); }
.flow-link { width: 22px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4)); flex-shrink: 0; align-self: center; }

.check-panel { width: 100%; max-width: 380px; background: var(--color-canvas-panel); border: 1px solid var(--color-border-nested); border-radius: var(--radius-nested); padding: var(--space-4); box-shadow: none; }
.check-head { display: flex; justify-content: space-between; font: 500 12px/1 var(--font-mono); color: var(--color-text-lead); text-transform: uppercase; letter-spacing: var(--type-kicker-tracking); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border-hairline); }
.check-state { color: var(--color-signal-pulse-green); }
.check-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-nested); color: var(--color-text-heading); font-size: var(--type-body-size); }
.check-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-signal-pulse-green); box-shadow: 0 0 10px rgba(58,211,137,0.6); }
.check-val { margin-left: auto; color: var(--color-text-lead); font: 400 13px/1 var(--font-mono); }

/* Agentic part 2: tab cards + app window */
.brings-section { background: var(--color-canvas-void); padding: var(--space-26) 0 var(--space-26); border-bottom: 1px solid var(--color-border-hairline); }
.brings-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-bottom: var(--space-6); }
.brings-tab {
  position: relative; display: flex; align-items: center; gap: var(--space-4); text-align: left; cursor: pointer;
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-card); background: var(--color-canvas-surface); color: var(--color-text-heading);
  border: 1px solid var(--color-border-hairline); font: 500 17px/1.3 var(--font-display); letter-spacing: var(--type-item-title-tracking);
  transition: border-color 0.2s ease, background 0.2s ease; font-size: var(--type-tab-label-size); min-height: 64px;
}
.brings-tab:hover { border-color: var(--color-border-hover); }
.brings-tab::after { content: ''; position: absolute; left: 35%; right: 35%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c)), transparent); opacity: 0; transition: opacity 0.2s ease; }
.brings-tab.active { background: var(--color-canvas-active); border-color: var(--color-border-active); }
.brings-tab.active::after { opacity: 1; }
.brings-tab-icon { display: grid; place-items: center; flex-shrink: 0; color: var(--color-text-heading); opacity: 0.9; }
.brings-tab:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.app-window {
  display: grid; grid-template-columns: 220px 1fr; min-height: 380px; overflow: hidden;
  background: linear-gradient(180deg, #0b0c0e 0%, var(--color-canvas-surface) 100%);
  border: 1px solid var(--color-border-hairline);
  box-shadow: var(--shadow-window); border-radius: var(--radius-card);
}
.app-side { border-right: 1px solid var(--color-border-nested); padding: var(--space-5) var(--space-4); }
.app-side-brand { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-heading); font-weight: var(--weight-semibold); font-size: var(--type-small-size); margin-bottom: var(--space-6); padding: 0 var(--space-2); }
.app-side-mark { width: 22px; height: 22px; border-radius: var(--radius-control); display: grid; place-items: center; background: var(--color-canvas-chip-hover); font-size: var(--type-badge-size); }
.app-side-pill { font: 500 11px/1 var(--font-sans); color: var(--color-text-lead); background: var(--color-canvas-chip-hover); border-radius: var(--radius-control); padding: var(--space-1) var(--space-2); }
.app-side-nav { list-style: none; display: grid; gap: 2px; }
.app-side-nav li { padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); color: var(--color-text-lead); font-size: var(--type-small-size); }
.app-side-nav li.is-active { background: var(--color-canvas-chip-hover); color: var(--color-text-heading); }
.app-side-nav li[data-pane] { cursor: pointer; }
.app-side-nav li[data-pane]:not(.is-active):hover { color: var(--color-text-heading); }
.app-side-nav li:not([data-pane]) { opacity: 0.5; }
.app-main { padding: var(--space-8) var(--space-10); }
.app-pane { display: none; }
.app-pane.is-active { display: block; }
.app-pane-title { font: 600 22px/1.2 var(--font-display); color: var(--color-text-heading); letter-spacing: var(--type-title-tracking); margin-bottom: var(--space-7); }
.app-pane-sub { display: block; margin-top: var(--space-2); font: 400 13px/1.4 var(--font-mono); color: var(--color-text-lead); letter-spacing: 0; }
.log-list { border: 1px solid var(--color-border-nested); border-radius: var(--radius-nested); overflow: hidden; }
.log-row { display: grid; grid-template-columns: 12px 64px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border-nested); color: var(--color-text-heading); font-size: 15px; }
.log-row:last-child { border-bottom: 0; }
.log-row code { font: 400 14px/1 var(--font-mono); color: var(--color-text-contrast); }
.log-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); display: inline-block; }
.log-step { font: 400 13px/1 var(--font-mono); color: var(--color-text-lead); }
.log-state { font: 400 13px/1 var(--font-mono); color: var(--color-text-lead); }
.log-state.is-live { color: var(--color-text-heading); }
.pipe-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.pipe-card { flex: 1; display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border-nested); border-radius: var(--radius-nested); color: var(--color-text-heading); font-size: 15px; background: var(--color-canvas-active); }
.pipe-kicker { font: 500 12px/1 var(--font-mono); color: var(--color-text-lead); text-transform: uppercase; letter-spacing: var(--type-kicker-tracking); display: flex; align-items: center; gap: var(--space-2); }
.pipe-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--c)); }
.pipe-arrow { color: var(--color-text-lead); }
.pipe-code { margin: 0; padding: var(--space-4) var(--space-4); border: 1px solid var(--color-border-nested); border-radius: var(--radius-nested); background: var(--color-canvas-active); overflow-x: auto; font: 400 var(--type-code-size)/var(--type-code-lh) var(--font-mono); color: var(--color-text-contrast); }
.metric-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

.compare-slim { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border-nested); border-radius: var(--radius-card); font-size: var(--type-body-size); color: var(--color-text-lead); }
.compare-slim .is-us { color: var(--color-text-heading); }
.compare-slim-label { display: block; font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: var(--type-kicker-tracking); color: var(--color-text-lead); margin-bottom: var(--space-1); }
.compare-slim-vs { font: 500 12px/1 var(--font-mono); color: var(--color-text-lead); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-control); }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-duo { grid-template-columns: 1fr; gap: var(--space-12); }
  .brings-tabs { grid-template-columns: 1fr; gap: var(--space-3); }
  .app-window { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .metric-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .showcase-visual { height: 240px; padding: var(--space-7) var(--space-4) 0; }
  .showcase-copy { padding: var(--space-1) var(--space-1) 0; text-align: left; }
  .flow-panel { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .flow-link { width: 1px; height: 10px; margin: 0 auto; }
  .flow-node { padding: var(--space-3) var(--space-4); }
  /* stacked flow is taller than 240px: size to content, fade only the bottom padding */
  .showcase-visual--fit { height: auto; padding-bottom: var(--space-12); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent 100%); }
  .brings-section { padding: var(--space-16) 0 var(--space-16); }
  .sec-tile { width: 68px; height: 68px; border-radius: var(--radius-tile); margin-bottom: var(--space-6); }
  .app-main { padding: var(--space-6) var(--space-4); }
  .log-row { grid-template-columns: 10px 1fr; gap: var(--space-2) var(--space-3); padding: var(--space-4); }
  .log-row .log-step, .log-row .log-state { display: none; }
  .pipe-row { flex-direction: column; align-items: stretch; }
  .pipe-arrow { display: none; }
  .compare-slim { grid-template-columns: 1fr; gap: var(--space-3); text-align: left; }
  .compare-slim-vs { justify-self: start; }
}

@media (max-width: 640px) {
  .hero-live-kicker span { white-space: nowrap; }
  .work-schematic-box { display: none; }
  .logo-group { gap: var(--space-10); padding-right: var(--space-10); }
  .logo-group img { height: 24px; max-width: 110px; }
  .mockup-copy-btn { display: none; }
  .work-stats dd { font-size: 26px; }
  .team-section { padding: var(--space-16) 0; }
  .team-section .section-header { margin-bottom: var(--space-8); }
  .team-grid { display: grid; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-7) var(--space-4); margin-right: 0; padding-right: 0; scrollbar-width: none; grid-template-columns: 1fr 1fr; overflow: visible; }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-member { flex: 0 0 72%; scroll-snap-align: start; text-align: left; }
  .work-all-link { width: 100%; justify-content: center; }
}

/* No hairlines between sections (Eduardo 10-22, desktop + mobile); the nav bar keeps its line */
body > section { border-top: 0 !important; }
body > section, .site-footer { border-bottom: 0 !important; }
/* ...nor standalone rules inside sections (header-to-content dividers, hero rule above the tags).
   List separators stay: case-study rows, FAQ items, tab baselines, code-window chrome. */

/*
 * CONSISTENCY PASS (10-22): one value per role, from the existing tokens.
 *  radius: outer card 18 (--radius-card) · panel nested in a card 12 · icon box 12 · 3D tile 20 · chip/button 6
 *  border: outer card = hairline · nested panel = rgba(255,255,255,.08)
 *  rhythm: section 104/104 (phones 64) · header -> content 48 (phones 40)
 *  type:   section h2 44 · feature h2 56 (phones 26 / 32) · deck 18/27 (phones 16)
 *  gaps:   card grids 24 · text columns 40 · buttons one size
 */
.mockup-inner-card, .code-editor-wrap, .platform-node-item, .diag-code-terminal, .flow-node, .check-panel, .log-list { border-color: var(--color-border-nested); }
.sec-tile { border-radius: var(--radius-tile); }

.dark-app-mockup, .integrate-terminal-card, .showcase-visual, .app-window, .brings-tab, .compare-slim { border-color: var(--color-border-hairline); }

@media (min-width: 641px) {
  .integrate-section, .platforms-section, .agentic-section, .brings-section, .final-cta-section { padding-top: var(--space-26); padding-bottom: var(--space-26); }
}
.team-section .section-header, .section-header { margin-bottom: var(--space-12); }
.services-grid { margin-top: 0; column-gap: var(--space-10); }
.hero-lead { font-size: var(--type-card-title-size); line-height: 27px; }

.platforms-gateway-grid { gap: var(--space-6); }

@media (max-width: 640px) {
  .section-header, .team-section .section-header, .sec-intro { margin-bottom: var(--space-10); }
  .work-rows, .process-flow { margin-top: var(--space-10); }
  .services-grid { margin-top: 0; }
  .integrate-title, .sec-intro-title, .final-headline { font-size: clamp(28px, 8.5vw, 32px); }
  .integrate-subtitle, .sec-intro-deck, .final-sub, .hero-lead { font-size: var(--type-body-size); line-height: 24.8px; }
}

/* Mobile pass (10-22): fixes found by the 320/375/430 audit */
@media (max-width: 960px) {
  /* menu toggle is a full 44px target; menu panel is opaque (page no longer shows through) */
}
@media (max-width: 480px) {
  /* brand + CTA + toggle needs ~446px; below that the CTA pushed the toggle off-screen.
     The hero's full-width "Talk to a developer" sits right below, and the menu has Contact. */
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  /* Integrate: copy button stretched across the stacked tab bar; hidden like the hero's */
  .integrate-copy-action { display: none; }
  /* sub-tab row sized to its content (572px) and was clipped, not scrolled: cap it so it scrolls */
  .integrate-title { font-size: clamp(28px, 8.5vw, 38px); }
  /* Platforms: tier strip as a 2x2 grid instead of a clipped sideways scroll */
  .platforms-topology-bus { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .platforms-topology-bus .topology-arrow { display: none; }
  .platforms-topology-bus .topology-step { white-space: normal; }
  /* Team: everyone visible in a 2-column grid instead of a cropped carousel */
  .team-member img { margin-bottom: var(--space-3); }
  .team-name { font-size: var(--type-tab-label-size); }
  .team-role { font-size: var(--type-badge-size); letter-spacing: var(--type-kicker-tracking); }
  /* Hero pill: the uptime line is wider than a 320px column; let it wrap instead of
     widening the whole hero grid past the screen */
  .hero-live-kicker .tabular { white-space: normal; text-align: center; }
  /* Showcase links were 19px tall: give them a 32px touch target */
  .showcase-link { display: inline-block; padding: var(--space-2) 0; }
}

/* ==========================================================================
   Box model, shape and interaction normalisation (10-27-2026)
   One value per role. Spacing scale: 4 8 12 16 20 24 28 32 40 48 56 64 80 104 (+2 hairline).
   Documented exceptions: button padding 10/18 (47px target), label-badge padding 3/8.
   ========================================================================== */

/* Reading text is 16px minimum (mono labels, badges, kickers, chips and code stay smaller by design). */
.stripe-tab-btn, .service-detail, .faq-content p, .form-note, .is-us, .integrate-footer-link { font-size: var(--type-body-size); }
.nav-links a, .stripe-tab-btn, .text-link, .showcase-link, .work-client-sub, .flow-name, .check-row, .faq-content p, .form-note, .is-us, .compare-slim, .integrate-footer-link { line-height: var(--type-body-lh); }

/* Composition: card rows stretch to one height; split layouts share one gap; lists left-align to the container edge. */
.showcase-duo { gap: var(--space-6); }
.flow-node { padding: var(--space-4); }
.platforms-topology-bus { padding: var(--space-5) var(--space-6); }
.platform-node-item.is-tall { align-items: flex-start; }

/* Display: window surfaces share one shadow; nested panels carry none. */
.pipe-card, .pipe-code, .metric-card, .log-list { box-shadow: none; }
@media (max-width: 640px) { .integrate-3d-tile { width: 68px; height: 68px; } }

/* Navigational: one hover and one focus-visible style for every link and control. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus-ring); outline-offset: var(--focus-offset);
}
a.service-name:hover, .footer-wrap a:hover {
  color: var(--color-text-heading);
}
.nav-links a:hover, .integrate-footer-link:hover, .footer-wrap a:hover { text-decoration: underline; text-underline-offset: 4px;
}
.nav-links a:hover, .showcase-link:hover, .integrate-footer-link:hover, .footer-wrap a:hover { text-decoration-color: var(--color-text-muted);
}
.footer-wrap a { color: var(--color-text-lead); font-size: var(--type-body-size); }

/* Pill tabs (hero console, integrate examples): one size, one active state. */
.mockup-tab-btn, .integrate-subtab-pill { line-height: var(--type-data-lh);
}
.mockup-tab-btn:hover, .integrate-subtab-pill:hover { color: var(--color-text-heading); background: var(--color-fill-hover); }
.mockup-tab-btn.active, .integrate-subtab-pill.active {
  color: var(--color-text-heading); background: rgba(146, 129, 247, 0.15);
}
.mockup-tab-btn.active { font-weight: var(--weight-medium);
}
/* Small copy controls share one spec and one hover. */
.mockup-copy-btn, .integrate-copy-action { line-height: var(--type-data-lh);
}
.diag-btn { padding: var(--space-2) var(--space-3); font-size: var(--type-data-size); line-height: var(--type-data-lh); align-items: center; font-family: var(--font-sans); }
.diag-btn:hover { color: var(--color-text-heading); }
.diag-btn.active { border-color: var(--color-border-hairline); }
.stripe-tab-btn:hover { color: var(--color-text-heading); }

/* Feedback: pressed and disabled states for every button. */
.button-primary-ghost:active, .button-secondary-ghost:active { transform: translateY(0); }
.button-primary-ghost:active { background-color: var(--color-state-primary-pressed); }
.button-secondary-ghost:active { background-color: var(--color-state-ghost-hover); }
button:disabled, .button-primary-ghost:disabled { opacity: var(--color-state-disabled-opacity); cursor: not-allowed; transform: none; }
.brings-tab:active, .stack-icon-btn:active, .mockup-tab-btn:active, .integrate-subtab-pill:active { opacity: var(--color-state-pressed-opacity); }
/* Small controls share one height; 44px on touch-size screens. */
.mockup-tab-btn, .integrate-subtab-pill, .diag-btn, .mockup-copy-btn, .integrate-copy-action { min-height: 34px; justify-content: center; }
.diag-btn, .mockup-copy-btn, .integrate-copy-action { display: inline-flex; }
@media (max-width: 480px) {
  .mockup-tab-btn, .integrate-subtab-pill, .diag-btn, .mockup-copy-btn, .integrate-copy-action { min-height: 44px; }
  .mockup-tab-group { gap: var(--space-1); }
  .mockup-tab-btn { padding: var(--space-2); font-size: var(--type-tag-size); }
  .mockup-header { padding-left: var(--space-3); padding-right: var(--space-3); gap: var(--space-2); }
  .mockup-copy-btn { padding: var(--space-2); }
  .nav-brand, .text-link, .service-name, .integrate-footer-link, .footer-wrap a, .showcase-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Input: one field spec (47px control, 6px radius, 1px hairline) with label, required marker, error and status. */
.form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 520px; margin: 0 auto; text-align: left; }
.field { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--type-body-size); color: var(--color-text-lead); }
.field-label { font-size: var(--type-body-size); line-height: var(--type-field-label-lh); color: var(--color-text-contrast); font-weight: var(--weight-medium); }
.req { color: var(--color-signal-alarm-red); margin-left: 2px; }
.field-control {
  width: 100%; min-height: var(--control-button-height); padding: var(--space-3) var(--space-4); background: var(--color-fill-subtle);
  border: 1px solid var(--color-border-hairline); border-radius: var(--radius-control); color: var(--color-text-heading);
  font: inherit; font-size: var(--type-body-size); line-height: var(--type-field-label-lh); transition: border-color 0.15s ease, background 0.15s ease;
}
input.field-control { height: var(--control-button-height); padding-top: 0; padding-bottom: 0; }
textarea.field-control { resize: vertical; min-height: 126px; }
.field-control::placeholder { color: var(--color-text-muted); }
.field-control:hover { border-color: var(--color-border-hover); }
/* Scrollable code windows are keyboard-focusable; they get the same ring */
.integrate-code-container:focus-visible, .diag-code-terminal:focus-visible, .platforms-topology-bus:focus-visible, .code-editor-wrap:focus-visible, .stripe-tab-nav:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.field-control:focus-visible { border-color: var(--color-brand-violet-glow); outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.field-control[aria-invalid="true"] { border-color: var(--color-signal-alarm-red); background: var(--color-state-invalid-fill); }
.field-error { min-height: 0; font-size: var(--type-small-size); line-height: 20px; color: var(--color-signal-alarm-red); }
.field-error:empty { display: none; }
.form-submit { justify-content: center; min-height: var(--control-button-height); }
.form-status { min-height: 0; font-size: var(--type-body-size); line-height: var(--type-field-label-lh); color: var(--color-text-lead); }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--color-signal-pulse-green); }
.form-note { margin-top: var(--space-6); font-size: var(--type-body-size); color: var(--color-text-lead); }
@media (prefers-reduced-motion: reduce) {
  .field-control, .button-primary-ghost, .button-secondary-ghost { transition: none; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .logo-marquee-track { animation: none; }
  .type-caret { display: none; }
}

/* Former inline styles (moved out of home.html; last in the file so they win like the inline values did) */
/* Accent colour channel (r,g,b) consumed as rgb(var(--c)) by work rows, flow/log dots, tabs, pipe kickers, service cells */
.c-green { --c: 58,211,137; }
.c-cyan { --c: 56,189,248; }
.c-violet { --c: 146,129,247; }
.c-amber { --c: 245,165,36; }
.c-grey { --c: 161,164,165; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.integrate-stack-note { margin-left: auto; }
.topology-dot.topology-dot--violet { background: var(--color-brand-violet); box-shadow: 0 0 10px rgba(146, 129, 247, 0.6); }
.topology-dot.topology-dot--cyan { background: var(--color-brand-cyan); box-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
.topology-dot.topology-dot--amber { background: var(--color-brand-amber); box-shadow: 0 0 10px rgba(var(--tint-amber), 0.6); }
.diag-toolbar .diag-toolbar-title { font-size: var(--type-data-size); font-weight: var(--weight-semibold); color: var(--color-text-heading); }
.diag-metric-title { font-weight: var(--weight-semibold); color: var(--color-text-heading); margin-bottom: var(--space-2); }
.diag-metric-desc { font-size: 13.5px; color: var(--color-text-lead); margin-bottom: var(--space-4); }
.section-title.faq-title { margin-bottom: var(--space-6); font-size: var(--type-subsection-size); }
.footer-brand { color: var(--color-text-heading); }

/* Footer wordmark: JetBrains Mono loads 400-600; 600 instead of synthetic 700 (Phase 2 T5b) */
.site-footer strong { font-weight: var(--weight-semibold); }

/* ===== Phase 4 components (10-28-2026): built from existing tokens; spec in components.md §8 ===== */

/* 8.1 Select: a .field-control <select> inside .field-select, chevron drawn in CSS (no icon file) */
.field-select { position: relative; display: block; }
.field-select::after {
  content: ""; position: absolute; right: var(--space-4); top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--color-text-lead); border-bottom: 1.5px solid var(--color-text-lead);
  transform: rotate(45deg); pointer-events: none;
}
select.field-control { appearance: none; -webkit-appearance: none; height: var(--control-button-height); padding-top: 0; padding-bottom: 0; padding-right: var(--space-10); cursor: pointer; }
select.field-control option { background: var(--color-canvas-card); color: var(--color-text-heading); }

/* 8.2 Checkbox: native box tinted violet, label text beside it, 44px row */
.field-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--control-tap-min); font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); cursor: pointer; }
.field-check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-brand-violet); cursor: pointer; }
.field-check input[type="checkbox"]:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.field-check input[aria-invalid="true"] { outline: 1px solid var(--color-signal-alarm-red); outline-offset: 2px; }
.field-check a, .prose a, .inline-link { color: var(--color-text-contrast); text-decoration: underline; text-decoration-color: var(--color-border-hover); text-underline-offset: 3px; }
.field-check a:hover, .prose a:hover, .inline-link:hover { color: var(--color-text-heading); text-decoration-color: var(--color-text-heading); }

/* 8.3 Breadcrumb: a quiet trail above a detail page's H1 */
.breadcrumb { margin: 0 0 var(--space-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-body); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-lead); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-text-heading); }
.breadcrumb [aria-current="page"] { color: var(--color-text-heading); }

/* 8.4 Filter chips: links styled as 1.2 pill tabs; the current one carries aria-current */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: var(--control-small-height); padding: var(--control-small-padding);
  border: 1px solid var(--color-border-chip); border-radius: var(--radius-control);
  font-size: var(--type-body-size); line-height: var(--type-data-lh); color: var(--color-text-body); text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--color-text-heading); background: var(--color-fill-hover); }
.chip[aria-current="page"] { color: var(--color-text-heading); background: rgba(var(--tint-violet), var(--tint-alpha-active)); border-color: var(--color-brand-violet); }
@media (max-width: 768px) { .chip { min-height: var(--control-small-height-phone); } }

/* 8.5 Pagination: numbered links + prev/next, 44px targets */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; margin: var(--space-12) 0 0; padding: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-tap-min); min-height: var(--control-tap-min); padding: 0 var(--space-3);
  border: 1px solid var(--color-border-hairline); border-radius: var(--radius-control);
  font-size: var(--type-body-size); color: var(--color-text-lead); text-decoration: none;
}
.pagination a:hover { color: var(--color-text-heading); background: var(--color-fill-hover); border-color: var(--color-border-hover); }
.pagination [aria-current="page"] { color: var(--color-text-heading); background: rgba(var(--tint-violet), var(--tint-alpha-active)); border-color: var(--color-brand-violet); }

/* 8.6 Post row: 5.1 open list row for articles (meta line, title link, excerpt) */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border-hairline); }
.post-row { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--layout-list-row-padding-y) 0; border-bottom: 1px solid var(--color-border-hairline); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }
.post-title { margin: 0; font-family: var(--font-display); font-size: var(--type-title-size); font-weight: var(--type-title-weight); line-height: var(--type-title-lh); letter-spacing: var(--type-title-tracking); }
.post-title a { color: var(--color-text-heading); text-decoration: none; }
.post-title a:hover { text-decoration: underline; text-decoration-color: var(--color-border-hover); text-underline-offset: 4px; }
.post-excerpt { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); }

/* 8.7 Prose: long-form body for posts, case studies and legal pages (reading measure ~70ch) */
.prose { max-width: 70ch; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-12); font-family: var(--font-display); font-size: var(--type-subsection-size); font-weight: var(--type-subsection-weight); line-height: var(--type-subsection-lh); letter-spacing: var(--type-subsection-tracking); color: var(--color-text-heading); }
.prose h3 { margin-top: var(--space-8); font-family: var(--font-display); font-size: var(--type-item-title-size); font-weight: var(--type-item-title-weight); line-height: var(--type-item-title-lh); color: var(--color-text-heading); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-3); }
.prose strong { color: var(--color-text-contrast); font-weight: var(--weight-medium); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--color-text-muted); }
.prose code { font-family: var(--font-mono); font-size: 0.875em; padding: 1px var(--space-1); border-radius: var(--radius-control); background: var(--color-fill-subtle); color: var(--color-text-contrast); }
.prose blockquote { margin-left: 0; padding-left: var(--space-5); border-left: 2px solid var(--color-brand-violet); color: var(--color-text-contrast); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--color-border-hairline); text-align: left; vertical-align: top; }
.prose th { color: var(--color-text-heading); font-weight: var(--weight-medium); }
.prose .table-scroll { overflow-x: auto; }

/* 8.8 Article header: kicker + H1 + meta + lead, left-aligned in the reading column */
.article-header { text-align: left; }
.article-header .article-lead { max-width: 70ch; }
.article-header .hero-title { text-align: left; }
.article-header .post-meta { margin-top: var(--space-5); }
.article-lead { margin-top: var(--space-5); font-size: var(--type-section-deck-size); line-height: var(--type-section-deck-lh); color: var(--color-text-lead); }
@media (prefers-reduced-motion: reduce) { .chip { transition: none; } }

/* 8.9 Project grid (bento, Work index): image-led cards; wide = 4 of 6 columns, narrow = 2. Ref: coreconcepts.design/portfolio (Eduardo 10-28) */
.project-filter { margin: 0 0 var(--space-10); }
.chip[aria-pressed] { cursor: pointer; font-family: inherit; background: transparent; }
.chip[aria-pressed="true"] { color: var(--color-text-heading); background: rgba(var(--tint-violet), var(--tint-alpha-active)); border-color: var(--color-brand-violet); }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-12) var(--layout-card-grid-gap); grid-auto-flow: dense; list-style: none; margin: 0; padding: 0; }
.project-card { grid-column: span 2; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.project-card--wide { grid-column: span 4; }
.project-grid.is-filtered .project-card { grid-column: span 2; }
.project-card[hidden] { display: none; }
.project-media {
  position: relative; display: block; height: 320px; margin-bottom: var(--space-3); overflow: hidden;
  border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card);
}
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
a.project-media:hover img { transform: scale(1.03); }
a.project-media:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.project-title { margin: 0; font-family: var(--font-display); font-size: var(--type-item-title-size); font-weight: var(--type-item-title-weight); line-height: var(--type-item-title-lh); letter-spacing: var(--type-item-title-tracking); color: var(--color-text-heading); }
.project-title a { color: inherit; text-decoration: none; }
.project-title a:hover { text-decoration: underline; text-decoration-color: var(--color-border-hover); text-underline-offset: 4px; }
.project-meta { margin: 0; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }
.project-stat { margin: var(--space-1) 0 0; font-family: var(--font-mono); font-size: var(--type-body-size); line-height: var(--type-body-lh); color: rgb(var(--c, var(--tint-violet))); }
.project-stat span { color: var(--color-text-lead); font-family: var(--font-sans); }
/* Schematic tile: a system flow drawn from the design system, for cases with no image */
.project-schematic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); height: 100%; padding: var(--space-6); background: radial-gradient(ellipse at 50% 40%, rgba(var(--c, var(--tint-violet)), var(--tint-alpha-bg)), transparent 70%); }
.schematic-flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.schematic-node { padding: var(--space-3) var(--space-4); border: 1px solid rgba(var(--c, var(--tint-violet)), var(--tint-alpha-border)); border-radius: var(--radius-nested); background: var(--color-canvas-void); box-shadow: 0 0 24px rgba(var(--c, var(--tint-violet)), var(--tint-alpha-bg)); font-family: var(--font-mono); font-size: var(--type-data-size); color: var(--color-text-heading); white-space: nowrap; }
.schematic-link { width: var(--space-10); height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c, var(--tint-violet))), transparent); }
.schematic-caption { margin: 0; max-width: 36ch; font-family: var(--font-mono); font-size: var(--type-data-size); line-height: var(--type-data-lh); color: var(--color-text-lead); text-align: center; }
.project-media--screen img { object-position: left top; }
a.project-media { color: inherit; text-decoration: none; }
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card--wide, .project-grid.is-filtered .project-card { grid-column: span 1; }
  .project-media { height: 240px; }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .project-media { height: auto; aspect-ratio: 16 / 10; }
  .schematic-flow { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .schematic-link { width: 1px; height: var(--space-4); background: rgb(var(--c, var(--tint-violet))); }
  .project-schematic { gap: var(--space-3); padding: var(--space-4); }
  .schematic-node { padding: var(--space-2) var(--space-3); }
}
@media (prefers-reduced-motion: reduce) { .project-media img { transition: none; } a.project-media:hover img { transform: none; } }

/* 8.10 Case layout (Work detail pages): hero + framed preview, sticky aside with contents, numbered chapters,
   feature cells, check list, metrics, gallery, next project. Ref: coreconcepts.design/projects/selah-... (Eduardo 10-28) */
.case-hero { padding: var(--space-12) 0 var(--space-16); }
.case-hero .breadcrumb { margin-bottom: var(--space-5); }
.case-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-bottom: var(--space-12); }
.case-head .article-lead { max-width: 70ch; }
.case-head .hero-title { margin: 0; text-align: left; }
.case-head .article-lead { margin: 0; }
.case-preview { display: block; margin: 0; overflow: hidden; border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card); }
.case-preview img { display: block; width: 100%; height: auto; }
/* Transparent device mockups float on the page: no frame, fill or radius (Eduardo 10-28). Opaque screens keep the frame. */
.case-preview.case-preview--float, .case-gallery.case-gallery--float img { border: 0; border-radius: 0; background: none; }
/* Images narrower than the container sit at native size, centred on the card field (no upscaling) */
.case-preview--inset { display: flex; justify-content: center; padding: var(--space-8); }
.case-preview--inset img { width: auto; max-width: 100%; }
/* Cases with no image: the 8.9 schematic tile fills the preview and the next-project frame */
.case-preview--schematic { background: var(--color-canvas-card); }
.case-preview--schematic .project-schematic { height: auto; aspect-ratio: 16 / 5; }
.case-next-media .project-schematic { height: auto; aspect-ratio: 16 / 10; background-color: var(--color-canvas-card); }
.case-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--layout-split-gap); align-items: start; padding-top: var(--space-16); padding-bottom: var(--space-26); }
.case-aside { position: sticky; top: var(--space-26); display: flex; flex-direction: column; gap: var(--space-8); }
.case-facts { display: grid; gap: var(--space-4); margin: 0; }
.case-facts dt { font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.case-facts dd { margin: var(--space-1) 0 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-heading); }
.case-toc-label { margin: 0 0 var(--space-3); font-family: var(--font-mono); font-size: var(--type-meta-size); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.case-toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-border-hairline); }
.case-toc a { display: block; margin-left: -1px; padding: var(--space-2) var(--space-4); border-left: 1px solid transparent; font-size: var(--type-body-size); color: var(--color-text-lead); text-decoration: none; }
.case-toc a:hover { color: var(--color-text-heading); }
.case-toc a[aria-current="true"] { color: var(--color-text-heading); border-left-color: var(--color-brand-violet); }
.case-aside .text-link { margin-top: 0; align-self: flex-start; }
.case-chapters { display: flex; flex-direction: column; gap: var(--space-20); min-width: 0; }
.case-chapter { scroll-margin-top: var(--space-26); }
.case-num { display: block; margin-bottom: var(--space-3); font-family: var(--font-mono); font-size: var(--type-kicker-size); color: var(--color-brand-violet); }
.case-chapter > .section-title { margin-bottom: var(--space-6); text-align: left; }
.case-chapter > .prose { max-width: 70ch; }
.case-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--layout-card-grid-gap); margin: var(--space-10) 0 0; padding: 0; list-style: none; }
.case-cell { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--layout-list-row-padding-y) 0; border-top: 1px solid var(--color-border-hairline); }
.case-cell-num { font-family: var(--font-mono); font-size: var(--type-meta-size); color: var(--color-text-body); }
.case-cell-title { margin: 0; font-family: var(--font-display); font-size: var(--type-item-title-size); font-weight: var(--type-item-title-weight); line-height: var(--type-item-title-lh); color: var(--color-text-heading); }
.case-cell-body { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); }
.case-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--layout-card-grid-gap); margin: var(--space-8) 0 0; padding: 0; list-style: none; }
.case-checks li { display: flex; gap: var(--space-4); align-items: baseline; padding: var(--space-4) 0; border-top: 1px solid var(--color-border-hairline); font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-heading); }
.case-checks li span { font-family: var(--font-mono); font-size: var(--type-meta-size); color: var(--color-text-body); }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--layout-card-grid-gap); margin: var(--space-10) 0 0; }
.case-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: var(--space-5); border-top: 1px solid var(--color-border-hairline); }
.case-next-section { padding: 0 0 var(--space-26); }
.case-metrics dd { margin: 0; font-family: var(--font-mono); font-size: var(--type-metric-size); line-height: var(--type-metric-lh); color: var(--color-text-heading); }
.case-metrics dt { margin-top: var(--space-3); font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); }
.case-metrics dt strong { display: block; color: var(--color-text-heading); font-weight: var(--weight-medium); }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-card-grid-gap); margin: var(--space-10) 0 0; padding: 0; list-style: none; }
.case-gallery figure { margin: 0; }
.case-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card); }
.case-gallery figcaption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--type-meta-size); color: var(--color-text-body); }
.case-next { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--layout-split-gap); align-items: center; }
.case-next-media { display: block; overflow: hidden; border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); }
.case-next-media img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.case-next-media:hover img { transform: scale(1.02); }
.case-next .project-title { font-size: var(--type-subsection-size); line-height: var(--type-subsection-lh); }
.case-next .text-link { margin-top: var(--space-5); }
@media (max-width: 1024px) {
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-aside { position: static; }
  .case-toc-block { display: none; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .case-head, .case-next { grid-template-columns: minmax(0, 1fr); }
  .case-cells, .case-checks, .case-gallery, .case-metrics { grid-template-columns: minmax(0, 1fr); }
  .case-preview--schematic .project-schematic { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .case-next-media img { transition: none; } .case-next-media:hover img { transform: none; } }

/* 8.11 Article layout (blog post): byline row, sticky contents beside the body, phone contents bar, intro, H2 anchors.
   Ref: ahrefs.com/blog/google-ai-mode (Eduardo 10-28): text ~70ch, wide blocks 840, contents from 1100px. */
.article-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.article-byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-5) var(--space-10); margin-top: var(--space-8); }
.byline-author { display: flex; align-items: center; gap: var(--space-4); }
.byline-author img { width: var(--space-12); height: var(--space-12); border-radius: var(--radius-pill); object-fit: cover; object-position: top; }
.byline-name, .byline-role { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); }
.byline-name { color: var(--color-text-heading); }
.byline-name a { color: inherit; }
.byline-role { color: var(--color-text-body); }
.byline-dates { display: flex; flex-direction: column; align-items: flex-end; margin: 0; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }
.byline-dates time { color: var(--color-text-lead); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 840px); gap: var(--space-12); align-items: start; padding-top: var(--space-16); padding-bottom: var(--space-20); }
.article-toc { position: sticky; top: var(--space-26); }
.article-main { min-width: 0; }
.prose.article-body { max-width: none; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body > h3, .article-body > blockquote, .article-body > .callout, .article-body > .further-reading { max-width: 70ch; }
.article-body > .article-intro { font-family: var(--font-display); font-size: var(--type-subsection-size); line-height: var(--type-subsection-lh); letter-spacing: var(--type-subsection-tracking); color: var(--color-text-heading); }
.article-body h2 { margin-top: var(--space-16); font-size: var(--type-h2-size); font-weight: var(--type-h2-weight); line-height: var(--type-h2-lh); letter-spacing: var(--type-h2-tracking); scroll-margin-top: var(--space-26); }
.article-body h2 + * { margin-top: var(--space-5); }
.heading-anchor { margin-left: var(--space-3); font-family: var(--font-mono); font-size: var(--type-body-size); color: var(--color-text-muted); text-decoration: none; vertical-align: middle; opacity: 0; transition: opacity 0.15s ease; }
.article-body h2:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.heading-anchor:hover { color: var(--color-text-heading); }
.heading-anchor:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: var(--radius-control); }
@media (hover: none) { .heading-anchor { opacity: 1; } }
.toc-bar { display: none; position: sticky; z-index: 90; border-bottom: 1px solid var(--color-border-hairline); background: var(--color-canvas-void); }
.toc-bar summary { display: flex; align-items: center; gap: var(--space-3); min-height: var(--space-12); cursor: pointer; list-style: none; font-size: var(--type-body-size); color: var(--color-text-heading); }
.toc-bar summary::-webkit-details-marker { display: none; }
.toc-bar summary::after { content: ""; margin-left: auto; width: var(--space-2); height: var(--space-2); border-right: 1px solid var(--color-text-body); border-bottom: 1px solid var(--color-text-body); transform: rotate(45deg); }
.toc-bar[open] summary::after { transform: rotate(-135deg); }
.toc-bar summary:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: var(--radius-control); }
.toc-bar .case-toc { max-height: 60vh; overflow-y: auto; margin-bottom: var(--space-4); }
@media (max-width: 1099px) {
  .article-container { max-width: calc(840px + 2 * var(--layout-container-padding-tablet)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-10); }
  .article-toc { display: none; }
  .toc-bar { display: block; }
  .article-body h2 { scroll-margin-top: calc(var(--space-26) + var(--space-12)); }
}
@media (max-width: 640px) {
  .byline-dates { align-items: flex-start; }
}

/* 8.12 Article figure: framed (hairline, card radius) on the card canvas; narrow = text measure, --wide = 840.
   .record-chain draws a numbered system flow from the design system (tint via --c). */
.article-body > .article-figure { margin-top: var(--space-10); margin-bottom: var(--space-6); }
.article-figure { max-width: 70ch; margin-left: 0; margin-right: 0; padding: var(--space-2); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card); }
.article-figure--wide { max-width: none; }
.article-figure figcaption { padding: var(--space-3) var(--space-2) var(--space-1); font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }
.figure-panel { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-4); border-radius: var(--radius-nested); background: radial-gradient(ellipse at 50% 30%, rgba(var(--c, var(--tint-violet)), var(--tint-alpha-bg)), transparent 70%); }
.figure-panel + .figure-panel { margin-top: var(--space-2); }
.figure-label { margin: 0; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.record-chain { display: grid; grid-template-columns: repeat(var(--steps, 7), minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.record-chain li { position: relative; display: flex; flex-direction: column; gap: var(--space-1); margin: 0; padding: var(--space-3) var(--space-2); border: 1px solid rgba(var(--c, var(--tint-violet)), var(--tint-alpha-border)); border-radius: var(--radius-nested); background: var(--color-canvas-void); font-family: var(--font-mono); font-size: var(--type-data-size); line-height: var(--type-data-lh); color: var(--color-text-heading); }
.record-chain li + li { margin-top: 0; }
.record-chain--return { --steps: 3; }
.record-chain li span { color: rgb(var(--c, var(--tint-violet))); }
.record-chain li + li::before { content: ""; position: absolute; top: 50%; right: 100%; width: var(--space-2); height: 1px; background: rgb(var(--c, var(--tint-violet))); }
/* The chain stacks whenever the figure is too narrow for 7 nodes, wherever it sits (container query, not viewport). */
.article-figure { container-type: inline-size; }
@container (max-width: 780px) {
  .record-chain { grid-template-columns: minmax(0, 1fr); }
  .record-chain li { flex-direction: row; gap: var(--space-3); }
  .record-chain li + li::before { top: auto; bottom: 100%; left: var(--space-6); right: auto; width: 1px; height: var(--space-2); }
}

/* 8.13 Table card: a framed table; on phones each row stacks into label/value pairs (td[data-label]). */
.article-body > .table-card { margin-top: var(--space-8); }
.table-card { padding: 0 var(--space-5) var(--space-2); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card); }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card caption { caption-side: top; padding: var(--space-4) 0 var(--space-2); text-align: left; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }
.table-card th, .table-card td { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--color-border-hairline); text-align: left; vertical-align: top; }
.table-card th { color: var(--color-text-heading); font-weight: var(--weight-medium); }
.table-card td:first-child { color: var(--color-text-heading); }
.table-card tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table-card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-card tr { display: block; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border-hairline); }
  .table-card tbody tr:last-child { border-bottom: 0; }
  .table-card td { display: block; padding: 0; border: 0; }
  .table-card td + td { margin-top: var(--space-2); }
  .table-card td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }
}

/* 8.14 Callout: a note inside the article (context, scope). Not for promotion. */
.article-body > .callout { margin-top: var(--space-8); }
.callout { padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border-hairline); border-left: 2px solid var(--color-brand-violet); border-radius: var(--radius-nested); background: var(--color-fill-subtle); }
.callout-title { margin: 0 0 var(--space-2); font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.callout p { margin: 0; }

/* 8.15 Further reading: a label, then link rows with a violet arrow and a mono note. */
.article-body > .further-reading { margin-top: var(--space-10); }
.further-reading-label { margin: 0; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border-hairline); font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.further-reading ul { margin: 0; padding: 0; list-style: none; }
.further-reading li { display: flex; gap: var(--space-3); margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border-hairline); }
.further-reading li + li { margin-top: 0; }
.further-reading li::before { content: "→"; font-family: var(--font-mono); color: var(--color-brand-violet); }
.further-reading a { color: var(--color-text-heading); text-decoration: none; }
.further-reading a:hover { text-decoration: underline; text-decoration-color: var(--color-border-hover); text-underline-offset: 4px; }
.further-reading-note { display: block; margin-top: var(--space-1); font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); color: var(--color-text-body); }

/* 8.16 Author band + split related rows: a full-width surface band (no border lines) aligned to the article column;
   related post rows put date, read time and author on the left, the tag, title and excerpt on the right. */
.author-band { padding: var(--space-16) 0; background: var(--color-canvas-surface); }
.author-band-inner { display: grid; grid-template-columns: 240px minmax(0, 840px); gap: var(--space-12); align-items: start; }
.author-photo { justify-self: end; width: calc(var(--space-12) * 2); height: calc(var(--space-12) * 2); border-radius: var(--radius-pill); object-fit: cover; object-position: top; }
.author-label { margin: 0; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.author-name { margin: var(--space-1) 0 0; font-family: var(--font-display); font-size: var(--type-subsection-size); font-weight: var(--type-subsection-weight); line-height: var(--type-subsection-lh); color: var(--color-text-heading); }
.author-role { margin: var(--space-1) 0 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-body); }
.author-bio { max-width: 70ch; margin: var(--space-4) 0 0; font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--color-text-lead); }
.author-band .text-link { margin-top: var(--space-5); }
.post-row--split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-3) var(--space-12); }
.post-row--split .post-meta { flex-direction: column; align-items: flex-start; gap: 0; }
.post-row-main { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
@media (max-width: 1099px) {
  .author-band-inner { grid-template-columns: calc(var(--space-12) * 2) minmax(0, 1fr); gap: var(--space-8); }
  .author-photo { justify-self: start; }
}
@media (max-width: 768px) {
  .post-row--split { grid-template-columns: minmax(0, 1fr); }
  .post-row--split .post-meta { flex-direction: row; gap: var(--space-3); }
}
@media (max-width: 640px) {
  .author-band-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}

/* 8.17 Product entry (roundup / comparison posts). Ref: blog.hubspot.com/marketing/social-media-calendar-tools (Eduardo 10-28):
   numbered title, best-for line, a mono facts list, then what we liked and its limits. First-hand notes only. */
.article-body > .product-entry { margin-top: var(--space-12); max-width: 70ch; }
.product-entry { padding-top: var(--space-6); border-top: 1px solid var(--color-border-hairline); }
.product-entry-title { margin: 0; font-family: var(--font-display); font-size: var(--type-subsection-size); font-weight: var(--type-subsection-weight); line-height: var(--type-subsection-lh); color: var(--color-text-heading); }
.product-entry-num { margin-right: var(--space-3); font-family: var(--font-mono); font-size: var(--type-body-size); color: rgb(var(--c, var(--tint-violet))); vertical-align: middle; }
.product-entry-best { margin: var(--space-2) 0 0; font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-meta-lh); letter-spacing: var(--type-kicker-tracking); text-transform: uppercase; color: var(--color-text-body); }
.product-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-6); margin: var(--space-5) 0 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-nested); background: var(--color-canvas-card); }
.product-facts dt { font-family: var(--font-mono); font-size: var(--type-meta-size); line-height: var(--type-body-lh); color: var(--color-text-body); }
.product-facts dd { margin: 0; color: var(--color-text-heading); }
.product-entry h4 { margin: var(--space-6) 0 0; font-family: var(--font-display); font-size: var(--type-item-title-size); font-weight: var(--type-item-title-weight); line-height: var(--type-item-title-lh); color: var(--color-text-heading); }
.product-entry h4 + p { margin-top: var(--space-2); }
.product-entry p { margin: var(--space-3) 0 0; }
@media (max-width: 640px) {
  .product-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .product-facts dd + dt { margin-top: var(--space-3); }
}

/* 8.18 Breadcrumb on phones: collapses to a back link to the parent ("‹ Insights", "‹ Work"), 44px tall. Ref: HubSpot (Eduardo 10-28). */
@media (max-width: 640px) {
  .breadcrumb li { display: none; }
  .breadcrumb li:nth-last-child(2) { display: block; }
  .breadcrumb li::before { content: none; }
  .breadcrumb li:nth-last-child(2) a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
  .breadcrumb li:nth-last-child(2) a::before { content: "‹"; color: var(--color-text-body); }
}

/* 8.19 Reading progress: a 2px violet line along the bottom of the sticky nav, scaled by script to the share of the article read. */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.read-progress span { display: block; width: 100%; height: 100%; background: var(--color-brand-violet); transform: scaleX(0); transform-origin: left; }

/* 8.20 Article hero media: the H1 stays full width (3-line rule); the row below splits into lead + byline and a visual.
   The visual is the post's featured image, or its 8.9 schematic tile when it has none. */
.article-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; margin-top: var(--space-5); }
.article-hero-split .article-lead { margin-top: 0; }
.article-hero-split .byline-dates { align-items: flex-start; }
.article-hero-media { margin: 0; overflow: hidden; border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card); }
.article-hero-media img { display: block; width: 100%; height: auto; }
.article-hero-media .project-schematic { height: auto; aspect-ratio: 16 / 9; }
.article-hero-media--crop img { aspect-ratio: 16 / 10; object-fit: cover; }
/* Insights featured post: the 8.20 split as the first row of the list (newest post, its live featured image when it has one). */
.post-feature { margin: var(--space-12) 0; }
@media (max-width: 768px) { .post-feature { margin-top: 0; } }
.post-feature-title { margin: 0; font-family: var(--font-display); font-size: var(--type-subsection-size); font-weight: var(--type-subsection-weight); line-height: var(--type-subsection-lh); letter-spacing: var(--type-subsection-tracking); }
.post-feature-title a { color: var(--color-text-heading); text-decoration: none; }
.post-feature-title a:hover { text-decoration: underline; text-decoration-color: var(--color-border-hover); text-underline-offset: 4px; }
@media (max-width: 1099px) {
  .article-hero-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}

/* 6.x Process flow with 2 steps (Contact "What happens next", Eduardo 10-28 "Fix it"): two columns, no empty third column.
   Above 960 only; the shared rule stacks every process flow below that. */
@media (min-width: 961px) { .process-flow--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; } }

/* Hero H1 below 360px (Phase 5 T1/T3): at the 40px floor one long word ("Troubleshooting") can outgrow the column; hyphenate there only,
   and break the word where the browser has no hyphenation dictionary. */
@media (max-width: 359px) { .hero-title { hyphens: auto; overflow-wrap: break-word; } }

/* 8.7 prose code blocks (Phase 5 T3: four live posts carry <pre>). An outer card, so the box rule's 20/24 padding. */
.prose pre { max-width: 100%; overflow-x: auto; padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border-hairline); border-radius: var(--radius-card); background: var(--color-canvas-card); font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--color-text-contrast); }
.prose pre code { padding: 0; background: none; font-size: inherit; }

/* 8.11/8.16 team author (Phase 5 T3): posts by "E-FRAME Team" have no photo, so the byline and author band show the
   E/FRAME wordmark (Eduardo 10-28: "E/Frame") in the photo's slot: a 48px-tall pill in the byline (a 48px circle can't hold
   the word legibly), the 96px circle in the author band. In the 8.20 split the byline always stacks (author, then dates). */
.byline-mark, .author-mark { display: grid; place-items: center; flex: none; border: 1px solid var(--color-border-hairline); border-radius: var(--radius-pill); background: var(--color-canvas-card); font-family: var(--font-display); font-weight: var(--weight-semibold); color: var(--color-text-heading); letter-spacing: -0.02em; white-space: nowrap; }
.byline-mark { height: var(--space-12); padding: 0 var(--space-4); font-size: 15px; }
.author-mark { font-size: 17px; }
.article-hero-split .article-byline { flex-direction: column; align-items: flex-start; }
/* Inline code holds long paths and URLs ("/shoes/?filter_color=black&filter_size=4"); let it wrap so it never leaves a 320 column. */
.prose :not(pre) > code { overflow-wrap: anywhere; }

/* T4 author archive header: the 8.16 band grid in the hero; the H1 keeps the hero scale (left-aligned via .article-header). */
.author-hero { padding-bottom: var(--space-6); }
.author-hero .breadcrumb { margin-bottom: var(--space-8); }
.author-hero .hero-title { margin: var(--space-1) 0 0; }

/* T4b 404: the Insights header zeroes the lead's bottom margin, so CTAs in that header need their own gap. */
.insights-head .hero-cta-group { margin-top: var(--space-8); }

/* 6.x Process flow with 4 steps (Eduardo 10-28 "Do it"; first used on the Klaviyo API and Zoho Inventory pages):
   2 columns from 961, 4 from 1200, so no step drops to a ~200px column. The shared rule stacks every flow below 961. */
@media (min-width: 961px) { .process-flow--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .process-flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Site audit 10-28-2026 (docs/design-system/10-28-2026-site-audit.md; Eduardo: "I'll take all your recommendations") ---- */

/* A2 8.16 related case under the author band (was page glue in blog-post.html, copied into every post). */
.article-tags .work-tag { text-decoration: none; }
.related-head { margin-bottom: var(--space-12); }
.related-case { margin-top: var(--space-16); }
.related-case .work-rows { margin-top: var(--space-8); }
.related-case .work-row { grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 768px) { .related-case .work-row { grid-template-columns: 240px 1fr; gap: var(--space-12); } }

/* A2 8.21 Insights, archive and 404 header and search (was page glue in insights.html, copied into every archive). */
.insights-head { padding-bottom: var(--space-12); }
.insights-head .hero-lead { margin-bottom: 0; }
.search-form { display: flex; align-items: flex-end; gap: var(--space-3); max-width: 520px; margin-bottom: var(--space-8); }
.search-form .field { flex: 1; min-width: 0; }
.search-form .button-primary-ghost { flex: none; justify-content: center; min-height: var(--control-button-height); }
.insights-list-section { padding-top: 0; }
@media (max-width: 480px) { .search-form { flex-direction: column; align-items: stretch; } }

/* B1/B2 terms that must not split at their hyphen or mid-number (wrapped by tools/ds/lib/nowrap.mjs). */
.nowrap { white-space: nowrap; }

/* B3 headings balance their lines, so no single word sits alone on the last line. */
.hero-title, .section-title, .final-headline, .post-feature-title, .case-next h2, .prose h2 { text-wrap: balance; }

/* D3 links inside a sentence ("Prefer email? … or …") stay inline: the 44px phone tap rule is for standalone links
   (WCAG 2.5.8 exempts links in running text). */
.form-note .text-link, .section-deck .text-link, .faq-content .text-link { display: inline; margin: 0; min-height: 0; }

/* D8 inline-flex links drop the space before their arrow; the gap puts it back. */
.showcase-link, .integrate-footer-link { gap: var(--space-2); }

/* D9 multi-line table captions: the kicker leading, not the 25px single-line meta leading. */
.table-card caption { line-height: var(--type-kicker-lh); }

/* B5 / G4 code blocks: two-space tabs; a scrollable block shows the focus ring when it takes focus. */
.prose pre, .diag-code-terminal { tab-size: 2; }
.prose pre:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* C1 phones: every section already gets 64/64 (the ≤640 rule above), so containers inside a section don't pad again. */
@media (max-width: 640px) {
  .case-body, .article-layout { padding-top: 0; padding-bottom: 0; }
}
/* C1 a process flow that ends its section adds no margin under the section's own padding (home's flow is followed by
   its FAQ, so it keeps the 80px). */
.process-flow:last-child { margin-bottom: 0; }
/* C2 list anatomy: a service title sits 12px above its detail. The tap target stays at least 44px (space-3 padding top
   and bottom around the ~24px title) but no longer pushes the detail down. */
.service-cell .service-name { min-height: 0; padding-block: var(--space-3); margin-block: calc(-1 * var(--space-3)); }
/* C3 below 960 the app window drops its sidebar, so the 380px desktop floor only leaves an empty band under short panes. */
@media (max-width: 960px) { .app-window { min-height: 0; } }
