/* ============================================================
   ASJ IT Solutions — Design System (main.css)
   "Engineered Editorial" — black + cream + gold (dark default, light toggle)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color — Dark (default) — black + cream + gold */
  --paper: #09090b;
  --paper-2: #131316;
  --paper-3: #1c1c20;
  --ink: #F5F1E6;
  --ink-2: #E8E2D2;
  --charcoal: #C9C3B4;
  --slate: #9A9384;
  --mist: #6E6859;
  --stone: #2A2722;
  --stone-2: #3B362E;
  --line: #2A2722;
  --line-soft: rgba(245, 241, 230, 0.08);

  /* RGB triplets for use with rgba() in semi-transparent overlays */
  --paper-rgb: 9, 9, 11;
  --ink-rgb: 245, 241, 230;

  /* Accent — Gold */
  --accent: #D4AF37;
  --accent-hover: #E0BC4A;
  --accent-dark: #B8941F;
  --accent-soft: rgba(212, 175, 55, 0.10);
  --accent-tint: rgba(212, 175, 55, 0.18);
  --accent-glow: rgba(212, 175, 55, 0.28);

  /* Semantic */
  --success: #4ADE80;
  --success-soft: rgba(74, 222, 128, 0.10);
  --warning: #FBBF24;
  --warning-soft: rgba(251, 191, 36, 0.10);
  --danger: #F87171;

  /* Surfaces */
  --bg: var(--paper);
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
  --surface-3: var(--stone);
  --border: var(--line);
  --text: var(--ink);
  --text-2: var(--charcoal);
  --text-3: var(--slate);
  --text-muted: var(--mist);

  /* Type */
  --font-display: "Fraunces", "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.625rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.5rem;
  --text-6xl: 6rem;

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 40px;
  --r-pill: 9999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6), 0 12px 20px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 16px 40px var(--accent-glow);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 400ms;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --container-wide: 1400px;
  --nav-h: 72px;
}

/* Light mode (opt-in via theme toggle) */
[data-theme="light"] {
  --paper: #FAF7F0;
  --paper-2: #F4F0E6;
  --paper-3: #EBE5D6;
  --ink: #0F0F0E;
  --ink-2: #1F1E1B;
  --charcoal: #3D3A36;
  --slate: #6B6660;
  --mist: #A09A8C;
  --stone: #E8E2D5;
  --stone-2: #D6CFBE;
  --line: #DCD4C0;
  --line-soft: rgba(15, 15, 14, 0.08);

  /* RGB triplets — flipped for light mode */
  --paper-rgb: 250, 247, 240;
  --ink-rgb: 15, 15, 14;

  --accent: #B8941F;
  --accent-hover: #D4AF37;
  --accent-dark: #8A6E14;
  --accent-soft: rgba(184, 148, 31, 0.10);
  --accent-tint: rgba(184, 148, 31, 0.18);
  --accent-glow: rgba(184, 148, 31, 0.20);

  --surface: #FFFFFF;
  --surface-2: var(--paper-2);
  --surface-3: var(--paper-3);
  --border: var(--line);
  --text: var(--ink);
  --text-2: var(--charcoal);
  --text-3: var(--slate);
  --text-muted: var(--mist);

  --shadow-xs: 0 1px 2px rgba(15, 15, 14, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 15, 14, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 15, 14, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 15, 14, 0.10);
  --shadow-xl: 0 24px 56px rgba(15, 15, 14, 0.14);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
strong { font-weight: 600; color: var(--text); }

/* ---------- 3. Type ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin: 0;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, var(--text-6xl));
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, var(--text-5xl));
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
}

.italic { font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 144; }
em { font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 144; color: var(--accent); }

.lede {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow.no-rule::before { display: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }

section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
section.compact { padding: clamp(48px, 7vw, 96px) 0; }
section.minimal { padding: clamp(32px, 4vw, 64px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 5. Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 99;
}
.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .announce { font-size: 0.75rem; padding: 8px 0; }
  .announce .container { gap: 8px; flex-wrap: nowrap; overflow: hidden; padding: 0 16px; }
  .announce .container > span:not(.announce-dot):not(.announce-label) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .announce-label { display: none; }
}
.announce-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}
.announce-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.announce-link {
  color: var(--paper);
  border-bottom: 1px solid rgba(var(--paper-rgb), 0.4);
  padding-bottom: 1px;
  transition: border-color var(--t-base);
}
.announce-link:hover { border-color: var(--accent); }

/* ---------- 6. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(var(--paper-rgb), 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  transition: transform var(--t-base) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name strong {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.brand-name span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 4px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color var(--t-base), background var(--t-base);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: color var(--t-base), border-color var(--t-base);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 16px; height: 16px; }
[data-theme="light"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: none; }
.theme-btn .sun, .theme-btn .moon { width: 16px; height: 16px; }

.hamburger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  display: block;
  margin: 3px 0;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  padding: calc(var(--nav-h) + 24px) 24px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 88;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t-base);
}
.mobile-menu a:not(.btn):hover { background: var(--surface-2); }
.mobile-menu .btn { margin-top: 12px; }
.mobile-menu .btn-primary { color: var(--paper); }
.mobile-menu .btn-accent { color: #09090b; }

@media (max-width: 960px) {
  .nav-menu { display: none; }
  .theme-btn { display: none; }
  .nav-actions .btn-cta { display: none; }
  .hamburger { display: flex; }
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-accent {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--shadow-accent); color: #09090b; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); background: var(--surface-2); }

.btn-link {
  background: transparent;
  color: var(--accent);
  border: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
}
.btn-link:hover { color: var(--accent-hover); }

.btn-sm { padding: 8px 14px; font-size: 0.8125rem; gap: 6px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; gap: 12px; }
.btn-lg svg { width: 18px; height: 18px; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 85% 30%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%, var(--accent-soft), transparent 60%);
  opacity: 0.9;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  margin: 24px 0 28px;
  max-width: 18ch;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero-sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 62ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero-meta-item {
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.hero-meta-item:last-child { border-right: 0; }
.hero-meta-item .mono { display: block; margin-bottom: 6px; color: var(--text-3); }
.hero-meta-item strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  display: block;
}

@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-meta-item { border-right: 0; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .hero-meta-item:nth-last-child(-n+2) { padding-bottom: 0; border-bottom: 0; }
}

/* Inline hero rotator (italic line that cycles) */
.rotator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 0.875rem;
  margin-bottom: 28px;
}
.rotator .mono { color: var(--accent); }
.rotator-track {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--text);
  display: inline-block;
  min-width: 220px;
  position: relative;
  height: 1.5em;
  overflow: hidden;
  vertical-align: middle;
}
.rotator-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rotator-item.is-active { opacity: 1; transform: translateY(0); }

/* ---------- 9. Tools marquee ---------- */
.tools {
  padding: 24px 0 64px;
  position: relative;
}
.tools-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.tools-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 50s linear infinite;
  align-items: center;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
}
.marquee-item img { width: 28px; height: 28px; opacity: 0.7; filter: grayscale(1); transition: opacity var(--t-base), filter var(--t-base); }
.marquee-item:hover img { opacity: 1; filter: grayscale(0); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 10. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--stone-2); }
.card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--t-base);
}
.card:hover .card-cta { gap: 10px; }

/* Service cards (bento) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card.feature { grid-column: span 7; min-height: 360px; }
.service-card.standard { grid-column: span 5; }
.service-card.half { grid-column: span 6; }
.service-card.third { grid-column: span 4; }

.service-card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform var(--t-base) var(--ease);
}
.service-card:hover .service-card-icon { transform: rotate(-6deg) scale(1.05); }
.service-card-icon svg { width: 24px; height: 24px; }
.service-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: var(--r-pill);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.service-card.feature h3 { font-size: 2.25rem; }
.service-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}
.service-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-card-list li {
  font-size: 0.875rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  align-self: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: gap var(--t-base), border-color var(--t-base);
  position: relative;
  z-index: 1;
}
.service-card-cta svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.service-card:hover .service-card-cta { gap: 14px; border-color: var(--accent); }
.service-card:hover .service-card-cta svg { transform: translateX(2px) translateY(-2px); }

@media (max-width: 900px) {
  .service-card.feature, .service-card.standard, .service-card.half, .service-card.third {
    grid-column: span 12;
    min-height: auto;
  }
}

/* ---------- 11. Industry cards ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.industry-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.industry-card .eyebrow { margin-bottom: 20px; }
.industry-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.industry-card p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.industry-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
  letter-spacing: 0.05em;
}

@media (max-width: 760px) {
  .industries-grid { grid-template-columns: 1fr; }
}

/* ---------- 12. Process / steps ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.process-sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.process-list { display: flex; flex-direction: column; gap: 8px; }
.process-step {
  position: relative;
  padding: 32px 32px 32px 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base) var(--ease);
}
.process-step:hover { border-color: var(--accent); transform: translateX(4px); }
.process-step-num {
  position: absolute;
  left: 28px;
  top: 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: 1;
}
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.process-step-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.process-step p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.65; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process-sticky { position: static; }
}

/* ---------- 13. Partner section ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}
.partner-card.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.partner-card.dark h3 { color: var(--paper); }
.partner-card.dark p { color: rgba(var(--paper-rgb), 0.78); }
.partner-card.dark .partner-card-list li { color: rgba(var(--paper-rgb), 0.85); }
.partner-card.dark .partner-card-list strong { color: var(--paper); }
.partner-card.dark .partner-card-list svg { color: var(--accent-dark); }
.partner-card.dark .mono { color: var(--accent-dark); }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner-card .card-icon { background: var(--accent); color: #09090b; }
.partner-card.dark .card-icon { background: var(--accent); color: #09090b; }
.partner-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
}
.partner-card p { font-size: 1rem; line-height: 1.6; color: var(--text-2); margin-bottom: 28px; }
.partner-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.partner-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.5;
}
.partner-card-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}
.partner-card-foot {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.partner-card.dark .partner-card-foot { border-top-color: rgba(var(--paper-rgb), 0.15); }
.partner-fit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
  max-width: 280px;
  line-height: 1.4;
}
.partner-card.dark .partner-fit { color: rgba(var(--paper-rgb), 0.6); }

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card { padding: 36px; }
}

/* ---------- 14. Founder strip ---------- */
.founder {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}
.founder-photo {
  aspect-ratio: 4/5;
  background: var(--paper-3);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}
.founder-photo-placeholder {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 8rem;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  opacity: 0.8;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Logo variant — dark-background ASJ logo image (square aspect, fills frame) */
.founder-photo-logo {
  aspect-ratio: 1 / 1;
  background: #09090b;
  border: 1px solid var(--accent);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15), 0 24px 48px rgba(0, 0, 0, 0.5);
}
.founder-photo-logo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin: 28px 0;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo { max-width: 320px; }
}

/* ---------- 15. Stats / proof ---------- */
.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.proof-item p { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }

@media (max-width: 760px) {
  .proof-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}

/* ---------- 16. FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
  transition: color var(--t-base);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--accent);
  transition: transform var(--t-base) var(--ease);
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 50%; top: 50%;
}
.faq-plus::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-plus::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); transition: transform var(--t-base); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-body {
  padding: 0 0 28px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 76ch;
}
.faq-body p + p { margin-top: 12px; }
.faq-body a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(212, 175, 55, 0.10), transparent 60%);
  z-index: -1;
}
.cta-band .eyebrow { color: var(--accent); }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 24px;
  max-width: 22ch;
  color: var(--paper);
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.cta-band h2 em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "opsz" 144; }
.cta-band p {
  max-width: 56ch;
  font-size: 1.0625rem;
  color: rgba(var(--paper-rgb), 0.7);
  margin-bottom: 32px;
}
.cta-band .btn-primary { background: var(--accent); color: #09090b; border-color: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-hover); color: #09090b; }
.cta-band .btn-ghost { color: var(--paper); border-color: rgba(var(--paper-rgb), 0.2); }
.cta-band .btn-ghost:hover { border-color: var(--paper); background: rgba(var(--paper-rgb), 0.06); }

/* ---------- 18. Footer ---------- */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--text-2); margin-top: 16px; font-size: 0.9375rem; line-height: 1.55; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t-base);
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer-bottom .mono { color: var(--text-3); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 19. Breadcrumbs ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 24px 0;
}
.breadcrumb a { color: var(--text-3); transition: color var(--t-base); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--accent); }

/* ---------- 20. Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, var(--accent-soft), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 20px 0 24px;
  max-width: 18ch;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "opsz" 144; }
.page-hero .lede { font-size: 1.25rem; max-width: 64ch; margin-bottom: 32px; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 21. Prose (long-form copy on inner pages) ---------- */
.prose {
  max-width: 72ch;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.5em;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.prose h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-top: 1.5em;
  letter-spacing: -0.005em;
}
.prose p { font-size: 1.0625rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul li, .prose ol li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.65;
}
.prose ol li { list-style: decimal; }
.prose ul li::marker, .prose ol li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 1.5em 0;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---------- 22. Two-col article layout ---------- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 64px;
  align-items: start;
}
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}
.toc a {
  color: var(--text-2);
  padding: 4px 0;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  transition: all var(--t-base);
}
.toc a:hover, .toc a.active { color: var(--accent); border-left-color: var(--accent); }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
}

/* ---------- 23. Pricing / details boxes ---------- */
.detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 28px 0;
}
.detail-box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-box-head h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.detail-box-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.detail-box p, .detail-box li { color: var(--text-2); font-size: 0.9375rem; line-height: 1.65; }

/* ---------- 24. Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  width: 100%;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.form-consent label { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 0.875rem; color: var(--text-2); line-height: 1.5; font-weight: 400; }
.form-consent a { color: var(--accent); border-bottom: 1px solid currentColor; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
}

/* Honeypot */
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }

/* ---------- 25. Contact methods ---------- */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-base) var(--ease);
}
.contact-method:hover { border-color: var(--accent); transform: translateX(2px); }
.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-method-icon svg { width: 18px; height: 18px; }
.contact-method-info { display: flex; flex-direction: column; }
.contact-method-info span { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.contact-method-info strong { font-size: 0.9375rem; font-weight: 500; color: var(--text); }

/* ---------- 26. Case study / insight cards ---------- */
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.insight-card-cover {
  aspect-ratio: 16/9;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.insight-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, var(--accent-glow) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(212, 175, 55, 0.06) 24px, rgba(212, 175, 55, 0.06) 25px);
}
.insight-card-cover svg { width: 56px; height: 56px; position: relative; z-index: 1; opacity: 0.8; }
.insight-card-body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.insight-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.insight-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.insight-card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; flex-grow: 1; }
.insight-card-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.insight-card-foot .read { color: var(--accent); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; transition: gap var(--t-base); }
.insight-card:hover .insight-card-foot .read { gap: 10px; }

/* Inverse variant — used as the "All insights" CTA card. Theme-aware. */
.insight-card-inverse { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.insight-card-inverse .insight-card-body { background: var(--ink); }
.insight-card-inverse h3 { color: var(--paper); }
.insight-card-inverse p { color: rgba(var(--paper-rgb), 0.72); }
.insight-card-inverse .insight-card-tag { color: var(--accent-dark); }
.insight-card-inverse .insight-card-foot .read { color: var(--accent-dark); }
.insight-card-inverse .mono { color: rgba(var(--paper-rgb), 0.55); }

/* ---------- 27. Promise / guarantee bar ---------- */
.promise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.promise-head { text-align: center; max-width: 700px; margin: 0 auto; }
.promise-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  margin: 16px 0 18px;
}
.promise-head h2 em { color: var(--accent); font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 144; }
.promise-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.promise-item {
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  text-align: center;
}
.promise-item .mono { color: var(--accent); display: block; margin-bottom: 8px; }
.promise-item p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }

@media (max-width: 760px) {
  .promise-row { grid-template-columns: 1fr; }
  .promise { padding: 32px; }
}

/* ---------- 28. Sticky discovery bar ---------- */
.sticky-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  width: min(640px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  padding: 12px 16px 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xl);
  transition: transform var(--t-slow) var(--ease-snap);
}
.sticky-bar.visible { transform: translateX(-50%) translateY(0); }
.sticky-bar-text { font-size: 0.875rem; flex-grow: 1; }
.sticky-bar-text strong { color: var(--accent); }
.sticky-bar-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(var(--paper-rgb), 0.6);
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}
.sticky-bar-close:hover { color: var(--paper); }
.sticky-bar .btn { padding: 10px 16px; font-size: 0.8125rem; }
@media (max-width: 600px) {
  .sticky-bar { padding: 10px 12px 10px 18px; gap: 10px; bottom: 12px; }
  .sticky-bar-text { font-size: 0.8125rem; }
  .sticky-bar-text strong { display: block; }
}

/* ---------- 29. Self-qualifier (Which one are you?) ---------- */
.qualifier {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.qualifier-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all var(--t-base) var(--ease);
  position: relative;
  cursor: pointer;
}
.qualifier-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.qualifier-card.active { border-color: var(--accent); background: var(--accent-soft); }
.qualifier-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.qualifier-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.qualifier-card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 14px; }
.qualifier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 760px) {
  .qualifier { grid-template-columns: 1fr; }
}

/* ---------- 30. Tech stack chips ---------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}
.stack-chip img { width: 14px; height: 14px; }

/* ---------- 31. Cover image / hero asset ---------- */
.cover-art {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-2xl);
  padding: 48px;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(212, 175, 55, 0.18), transparent 60%);
  z-index: -1;
}
.cover-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--paper-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--paper-rgb), 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* ---------- 32. Helpers ---------- */
.center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 34. Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline-offset: 4px; }

/* ---------- 35. Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) 24px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.legal .lede { margin-bottom: 32px; }
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 48px;
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.legal-toc ol { padding-left: 18px; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 0.875rem; margin-bottom: 4px; list-style: decimal; color: var(--text-2); }
.legal-toc li::marker { color: var(--text-3); }
.legal-toc a { color: var(--text-2); transition: color var(--t-base); }
.legal-toc a:hover { color: var(--accent); }
.legal section { padding: 0 0 40px; }
.legal section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.legal section h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 18px 0 8px;
}
.legal section p, .legal section li {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal section ul, .legal section ol { padding-left: 22px; margin: 10px 0; }
.legal section li { list-style: disc; margin-bottom: 6px; }
.legal section a { color: var(--accent); border-bottom: 1px solid currentColor; }

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* ---------- 36. Tag list ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
}

/* ---------- 36b. Legacy legal markup compatibility ---------- */
/* Maps existing privacy/terms/cookies/disclaimer markup (.legal-wrap etc.) onto the new design */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) 24px;
}
.legal-header {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.legal-header .v3-mono-label,
.legal-header .mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.legal-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  color: var(--text);
}
.legal-header p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.legal-callout {
  background: var(--accent-soft);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-callout p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}
.legal-callout strong { color: var(--text); }
.legal-callout a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 48px;
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.legal-toc ol {
  padding-left: 18px;
  columns: 2;
  column-gap: 32px;
  margin: 0;
}
.legal-toc li {
  font-size: 0.875rem;
  margin-bottom: 4px;
  list-style: decimal;
  color: var(--text-2);
}
.legal-toc li::marker { color: var(--text-3); }
.legal-toc a {
  color: var(--text-2);
  transition: color var(--t-base);
}
.legal-toc a:hover { color: var(--accent); }
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.legal-section h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 18px 0 8px;
}
.legal-section p, .legal-section li {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.legal-section ul, .legal-section ol {
  padding-left: 22px;
  margin: 10px 0;
}
.legal-section li { list-style: disc; margin-bottom: 6px; }
.legal-section ol li { list-style: decimal; }
.legal-section a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal-section strong { color: var(--text); }

/* Older mono label name compatibility */
.v3-mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* Cookie banner (legacy) */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: min(720px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-content { display: contents; }
.cookie-text { flex: 1; min-width: 240px; font-size: 0.875rem; }
.cookie-text p { margin: 0 0 4px; line-height: 1.5; }
.cookie-text strong { color: var(--accent); }
.cookie-text a { color: var(--accent); border-bottom: 1px solid currentColor; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn {
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
}
.cookie-btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.cookie-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cookie-btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(var(--paper-rgb), 0.2);
}
.cookie-btn-secondary:hover { border-color: var(--paper); }

/* ---------- 36b. Pricing cards & currency switcher ---------- */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card .price-block {
  margin: 16px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--stone-2);
}
.pricing-card .price-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.pricing-card .price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.pricing-card .price-unit {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-2);
  font-weight: 400;
  margin-top: 10px;
}
.pricing-card .price-note {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-top: 8px;
  font-style: italic;
}
@media (max-width: 1100px) {
  .pricing-card .price-amount { font-size: var(--text-3xl); }
}
.pricing-card .price-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.pricing-card .price-features li {
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.5;
}
.pricing-card .price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-soft);
}
.pricing-card .price-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent);
  color: #09090b;
  padding: 4px 12px;
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-floor {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px dashed var(--stone-2);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--text-2);
}
.pricing-floor strong { color: var(--text); }

.currency-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 24px;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.currency-switcher {
  padding: 7px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--stone-2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
}
.currency-switcher:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.standalone-card {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--stone-2);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.standalone-card h4 { margin: 0 0 6px; font-size: var(--text-lg); font-family: var(--font-display); font-weight: 600; }
.standalone-card p { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.standalone-card .price-amount { font-size: var(--text-2xl); font-family: var(--font-display); font-weight: 600; color: var(--text); }
.standalone-card .price-unit { display: block; font-size: var(--text-sm); color: var(--text-3); margin-top: 4px; font-family: var(--font-sans); }
@media (max-width: 720px) {
  .standalone-card { grid-template-columns: 1fr; }
}

/* ---------- 37. Print ---------- */
@media print {
  .nav, .footer, .cta-band, .sticky-bar, .announce { display: none; }
  body { background: white; color: black; }
}
