/* ═══════════════════════════════════════════════════════════════════════════
   Salesforge – Anthropic-inspired Design System
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Palette – warm ivory / cream base */
  --ivory:        #FAF9F0;
  --ivory-medium: #F0EEE6;
  --oat:          #E8E6DC;
  --cloud:        #C2C0B6;
  --slate-light:  #87867F;
  --slate:        #30302E;
  --slate-dark:   #141413;

  /* Accent */
  --accent:       #D97757;
  --accent-hover: #C4643F;
  --accent-glow:  rgba(217,119,87,0.12);

  /* Semantic */
  --bg:           var(--ivory);
  --bg-elevated:  var(--ivory-medium);
  --bg-card:      #FFFFFF;
  --text-primary: var(--slate-dark);
  --text-body:    var(--slate);
  --text-muted:   var(--slate-light);
  --border:       rgba(20,20,19,0.08);
  --border-strong:rgba(20,20,19,0.15);

  /* Typography */
  --font-display: 'Newsreader', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --site-max:    1200px;
  --site-margin: clamp(1.5rem, 4vw, 5rem);
  --nav-height:  4.25rem;

  /* Radius */
  --radius-s:  6px;
  --radius-m:  12px;
  --radius-l:  16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Nav backdrop (used in JS too) */
  --nav-bg: rgba(250,249,240,0.85);
}

/* ─── Dark Mode ──────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --ivory:        #141413;
  --ivory-medium: #1A1A19;
  --oat:          #222221;
  --cloud:        #3A3A38;
  --slate-light:  #87867F;
  --slate:        #C2C0B6;
  --slate-dark:   #F0EEE6;

  --accent:       #E08B6D;
  --accent-hover: #EBA28A;
  --accent-glow:  rgba(224,139,109,0.15);

  --bg:           var(--ivory);
  --bg-elevated:  var(--ivory-medium);
  --bg-card:      #1E1E1D;
  --text-primary: var(--slate-dark);
  --text-body:    var(--slate);
  --text-muted:   var(--slate-light);
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);

  --nav-bg: rgba(20,20,19,0.85);
}

/* Respect system preference when no explicit choice stored */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory:        #141413;
    --ivory-medium: #1A1A19;
    --oat:          #222221;
    --cloud:        #3A3A38;
    --slate-light:  #87867F;
    --slate:        #C2C0B6;
    --slate-dark:   #F0EEE6;

    --accent:       #E08B6D;
    --accent-hover: #EBA28A;
    --accent-glow:  rgba(224,139,109,0.15);

    --bg:           var(--ivory);
    --bg-elevated:  var(--ivory-medium);
    --bg-card:      #1E1E1D;
    --text-primary: var(--slate-dark);
    --text-body:    var(--slate);
    --text-muted:   var(--slate-light);
    --border:       rgba(255,255,255,0.07);
    --border-strong:rgba(255,255,255,0.12);

    --nav-bg: rgba(20,20,19,0.85);
  }
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: light dark;
  transition: background 0.3s;
}

/* Smooth theme transition on all major surfaces */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s !important;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Background Grid ────────────────────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line, rgba(20,20,19,0.045)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line, rgba(20,20,19,0.045)) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  transition: background-image 0.3s;
}

[data-theme="dark"] .bg-grid {
  --grid-line: rgba(255,255,255,0.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-grid {
    --grid-line: rgba(255,255,255,0.04);
  }
}

::selection {
  background: rgba(217,119,87,0.25);
}
[data-theme="dark"] ::selection {
  background: rgba(224,139,109,0.3);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

.grid {
  display: grid;
  gap: var(--space-l);
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-7-5 { grid-template-columns: 7fr 5fr; }
.grid-5-7 { grid-template-columns: 5fr 7fr; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.display-l {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-m {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.display-s {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

.paragraph-l {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-body);
}

.paragraph-m {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

.paragraph-s {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.detail-s {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.font-serif { font-family: var(--font-display); }
.font-mono  { font-family: var(--font-mono); }

.text-primary { color: var(--text-primary); }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }

.weight-medium { font-weight: 500; }
.weight-semibold { font-weight: 600; }

/* ─── Links (underlined) ─────────────────────────────────────────────────── */
.link-underline {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.06em;
  transition: color 0.2s;
}
.link-underline:hover { color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-s);
  padding: 0.75rem 1.5rem;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--slate-dark);
  color: var(--ivory);
}
.btn-primary:hover {
  background: #2a2a28;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: rgba(20,20,19,0.03);
  border-color: rgba(20,20,19,0.25);
}

.btn-text {
  padding: 0;
  background: none;
  color: var(--text-primary);
  font-weight: 500;
  gap: 0.4rem;
}
.btn-text:hover { color: var(--accent); }

.btn-text .arrow {
  transition: transform 0.2s var(--ease-out);
  display: inline-block;
}
.btn-text:hover .arrow { transform: translateX(4px); }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-body);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }

/* Hidden on desktop — only shows inside mobile hamburger menu */
.nav-mobile-cta { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-body);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
}
.theme-toggle svg { display: block; }

/* Show/hide sun/moon icons based on theme */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* System dark without explicit choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Logo swap: show black by default, white in dark mode */
.nav-logo .logo-light { display: none; }
.nav-logo .logo-dark  { display: block; }

[data-theme="dark"] .nav-logo .logo-light { display: block; }
[data-theme="dark"] .nav-logo .logo-dark  { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo .logo-light { display: block; }
  :root:not([data-theme="light"]) .nav-logo .logo-dark  { display: none; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding-top: var(--nav-height);
}

.hero-section-space {
  height: clamp(3rem, 8vw, 6rem);
}

.hero-section-space-bottom {
  height: clamp(2rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.hero-headline {
  max-width: 680px;
}

.hero h1 a {
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-decoration-thickness: 0.04em;
  transition: color 0.2s;
}
.hero h1 a:hover {
  color: var(--accent);
}

.hero-description-inner {
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: var(--space-2xl) 0;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── Featured CTA (full-bleed card like Anthropic's globe section) ──────── */
.featured-cta {
  background: var(--oat);
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
}

.featured-cta-content {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.featured-cta-visual {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--oat);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-cta-visual img,
.featured-cta-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for video/animation */
.visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--oat) 0%, var(--ivory-medium) 50%, var(--oat) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ─── Service Cards ──────────────────────────────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
  position: relative;
}
.service-card:hover {
  border-color: var(--border-strong);
}

.service-card-body {
  flex: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-s);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card-spacer { flex: 1; }

.service-card-meta {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border);
}

.service-card-meta-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-s);
  align-items: baseline;
  padding: 6px 0;
}

.service-card-meta-row .paragraph-s {
  text-align: right;
}

/* Primary hero cards — taller with oat background */
.service-card--hero {
  background: var(--ivory-medium);
  border-color: rgba(20,20,19,0.06);
  padding: var(--space-xl) var(--space-l) var(--space-l);
}
.service-card--hero:hover {
  border-color: rgba(20,20,19,0.12);
  background: var(--oat);
}
.service-card--hero h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-m);
}
.service-card--hero p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Secondary cards — standard white */
.service-cards-secondary .service-card {
  background: var(--bg-card);
}

/* ─── Article List (like Anthropic's featured articles) ──────────────────── */
.article-list {
  border-top: 1px solid var(--border);
}

.article-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}
.article-list-item:hover {
  background: rgba(20,20,19,0.015);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  margin-left: calc(-1 * var(--space-s));
  margin-right: calc(-1 * var(--space-s));
  border-radius: var(--radius-s);
}

.article-list-item h3 {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.article-list-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Capabilities Grid (icon + text cards) ──────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.cap-card {
  background: var(--bg-card);
  padding: var(--space-l) var(--space-l);
  transition: background 0.2s;
}
.cap-card:hover { background: var(--ivory-medium); }

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-m);
  background: var(--accent-glow);
  border: 1px solid rgba(217,119,87,0.15);
  color: var(--accent);
  font-size: 1.1rem;
}

.cap-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Stats Strip ────────────────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: var(--space-l) var(--space-m);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Logo Marquee ───────────────────────────────────────────────────────── */
.logo-marquee {
  overflow: hidden;
  padding: var(--space-l) 0;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.logo-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-xl);
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.5;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Process Steps ──────────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-s);
  display: block;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Testimonial / Quote ────────────────────────────────────────────────── */
.quote-block {
  padding: var(--space-xl) 0;
  max-width: 680px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-primary);
  font-style: italic;
}

.quote-attribution {
  margin-top: var(--space-m);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  padding: var(--space-3xl) 0;
}

.cta-card {
  background: var(--oat);
  border-radius: var(--radius-l);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.cta-card h2 {
  margin-bottom: var(--space-m);
}

.cta-card p {
  max-width: 520px;
  margin: 0 auto var(--space-l);
  color: var(--text-body);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #141413;
  color: #F0EEE6;
  padding: var(--space-2xl) 0 var(--space-l);
  transition: background 0.3s;
}
[data-theme="dark"] .footer {
  background: #0C0C0B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer {
    background: #0C0C0B;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 24px;
  margin-bottom: var(--space-m);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(232,230,220,0.5);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(232,230,220,0.4);
  margin-bottom: var(--space-m);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(232,230,220,0.7);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--ivory);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-l);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(232,230,220,0.35);
}

.footer-socials {
  display: flex;
  gap: var(--space-s);
}

.footer-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(232,230,220,0.5);
  transition: color 0.2s;
  font-size: 0.9rem;
}
.footer-socials a:hover { color: var(--ivory); }

/* ─── Animations ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Service Picker Modal ───────────────────────────────────────────────── */
.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20,20,19,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.picker-overlay.open {
  opacity: 1;
  visibility: visible;
}

.picker-modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.picker-overlay.open .picker-modal {
  transform: translateY(0) scale(1);
}

.picker-header {
  text-align: center;
  margin-bottom: var(--space-l);
}
.picker-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.picker-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.picker-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-align: center;
}
.picker-option:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}
.picker-option:active {
  transform: translateY(0);
}

.picker-option .picker-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(217,119,87,0.15);
  color: var(--accent);
  flex-shrink: 0;
}

.picker-option .picker-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.picker-option .picker-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.picker-skip {
  display: block;
  margin: var(--space-m) auto 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.picker-skip:hover { color: var(--text-body); }

/* ─── "Change focus" pill in nav ─────────────────────────────────────────── */
.focus-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(217,119,87,0.25);
  background: var(--accent-glow);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: none;
}
.focus-pill:hover {
  background: rgba(217,119,87,0.18);
  border-color: var(--accent);
}
.focus-pill.visible { display: inline-flex; }

@media (max-width: 768px) {
  .picker-grid { grid-template-columns: 1fr; }
  .picker-modal { padding: 1.5rem; }
  .focus-pill { font-size: 0.65rem; padding: 0.25rem 0.6rem; }
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.mb-xs  { margin-bottom: var(--space-xs); }
.mb-s   { margin-bottom: var(--space-s); }
.mb-m   { margin-bottom: var(--space-m); }
.mb-l   { margin-bottom: var(--space-l); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-s   { margin-top: var(--space-s); }
.mt-m   { margin-top: var(--space-m); }
.mt-l   { margin-top: var(--space-l); }
.mt-xl  { margin-top: var(--space-xl); }

.max-w-40ch { max-width: 40ch; }
.max-w-50ch { max-width: 50ch; }
.max-w-60ch { max-width: 60ch; }

.text-center { text-align: center; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid       { grid-template-columns: 1fr; gap: var(--space-l); }
  .hero-headline   { max-width: 100%; }
  .hero-description-inner { max-width: 100%; }
  .grid-7-5,
  .grid-5-7        { grid-template-columns: 1fr; }
  .service-cards   { grid-template-columns: 1fr 1fr; }
  .stats-strip     { grid-template-columns: 1fr 1fr; }
  .process-steps   { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--space-l); }
}

@media (max-width: 768px) {
  /* ── Mobile Nav ── */
  .nav-links       { display: none; }
  .nav-toggle      { display: flex; }
  .nav-logo img    { height: 22px; }

  .nav .container  { padding: 0 1rem; }

  .nav-actions     { gap: 0.5rem; }
  /* Hide "Get Started" CTA on mobile — it's accessible in the menu */
  .nav-actions > .btn { display: none; }

  /* Focus pill: compact on mobile */
  .focus-pill       { font-size: 0.65rem; padding: 0.25rem 0.6rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

  /* Theme toggle: slightly smaller hit area */
  .theme-toggle     { width: 32px; height: 32px; }

  .nav-links.open  {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-m) 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open .nav-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-link:last-child:not(.nav-mobile-cta) {
    border-bottom: none;
  }

  /* Mobile CTA link inside hamburger menu */
  .nav-mobile-cta {
    display: none;
  }
  .nav-links.open .nav-mobile-cta {
    display: block;
    margin-top: var(--space-s);
    padding: 0.75rem 1.5rem !important;
    background: var(--slate-dark);
    color: var(--ivory) !important;
    border-radius: var(--radius-s);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    border-bottom: none !important;
  }

  /* ── Sections ── */
  .hero-section-space { height: 2rem; }
  .hero-section-space-bottom { height: 1.5rem; }
  .service-cards    { grid-template-columns: 1fr; }
  .service-card--hero { padding: var(--space-l); }
  .service-card--hero h3 { font-size: 1.35rem; }
  .cap-grid         { grid-template-columns: 1fr; }
  .stats-strip      { grid-template-columns: 1fr; }
  .process-steps    { grid-template-columns: 1fr; gap: var(--space-l); }
  .grid-2           { grid-template-columns: 1fr; }
  .cta-card         { padding: var(--space-xl) var(--space-m); }
  .cta-buttons      { flex-direction: column; align-items: center; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; gap: var(--space-s); text-align: center; }
  .article-list-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .hero-actions     { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .display-xl       { font-size: 2.2rem; }
  .nav-logo img     { height: 18px; }
  .focus-pill        { max-width: 90px; font-size: 0.6rem; }
  .featured-cta-content { padding: var(--space-xl) var(--space-m); }
  .service-card--hero p { font-size: 0.9rem; }
}
