/* =========================================================
   SolutionVeda — Editorial Enterprise Redesign
   Palette: warm cream + deep ink + saffron accent
   Type: Instrument Serif / Geist / Geist Mono
   ========================================================= */

:root {
  /* === Glacier light theme (default) === */
  --bg:            #ECEFF2;
  --bg-2:          #DCE2EA;
  --bg-3:          #C8D2DE;
  --ink:           #0E1726;
  --ink-2:         #2A3548;
  --ink-3:         #4D5969;
  --ink-4:         #8993A3;
  --line:          #C8D0DB;
  --line-strong:   #AAB3C0;
  --accent:        #1B5BFF;
  --accent-deep:   #0E3FBB;
  --accent-soft:   #B8C9FF;

  /* Always-dark islands (stats, footer, AI/Veda) — independent of theme */
  --surface-dark:        #0E0D0B;
  --surface-dark-2:      #161410;
  --surface-dark-text:   #F0EBDD;
  --surface-dark-mute:   rgba(240,235,221,0.7);
  --surface-dark-dim:    rgba(240,235,221,0.5);
  --surface-dark-line:   rgba(240,235,221,0.12);
  --surface-dark-line-2: rgba(240,235,221,0.25);

  /* Tints derived from ink — flip with theme automatically via overrides below */
  --tint-04:       rgba(14, 23, 38, 0.04);
  --tint-08:       rgba(14, 23, 38, 0.08);
  --nav-bg-72:     rgba(236, 239, 242, 0.72);
  --nav-bg-88:     rgba(236, 239, 242, 0.88);

  /* Legacy alias (used as "always cream" on dark surfaces) */
  --cream:         #F0EBDD;
  --dark-bg:       var(--surface-dark);
  --dark-bg-2:     var(--surface-dark-2);
  --dark-line:     var(--surface-dark-line);

  --font-serif:   "Instrument Serif", "Source Serif 4", Georgia, serif;
  --font-sans:    "Geist", "Söhne", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-brand:   "IBM Plex Serif", "Source Serif 4", Georgia, serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 7vw, 100px);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
}

/* === Obsidian dark theme (toggle) === */
:root[data-theme="dark"] {
  --bg:            #0E0D0B;
  --bg-2:          #161410;
  --bg-3:          #1F1C16;
  --ink:           #F0EBDD;
  --ink-2:         rgba(240,235,221,0.85);
  --ink-3:         rgba(240,235,221,0.6);
  --ink-4:         rgba(240,235,221,0.4);
  --line:          rgba(240,235,221,0.12);
  --line-strong:   rgba(240,235,221,0.25);
  --accent:        #E48A4A;
  --accent-deep:   #B86A2F;
  --accent-soft:   #F2B98A;

  /* Always-dark islands lift slightly so they read as separate sections */
  --surface-dark:        #161410;
  --surface-dark-2:      #1F1C16;
  --surface-dark-line:   rgba(240,235,221,0.10);
  --surface-dark-line-2: rgba(240,235,221,0.20);

  --tint-04:       rgba(240,235,221,0.04);
  --tint-08:       rgba(240,235,221,0.08);
  --nav-bg-72:     rgba(14, 13, 11, 0.72);
  --nav-bg-88:     rgba(14, 13, 11, 0.88);
}

/* Smooth theme transition */
html.theme-transitions,
html.theme-transitions * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.hairline { border: 0; height: 1px; background: var(--line); margin: 0; }
.hairline--strong { background: var(--line-strong); }
.dark .hairline { background: var(--dark-line); }

.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.kicker.no-rule::before { display: none; }

/* Numbered section eyebrow — bigger, structured, paired with section heads */
.sec-num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
}
.sec-num b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--accent);
}
.sec-num span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
}
@media (max-width: 820px) {
  .sec-num b { font-size: 42px; }
}

.h-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-display em { font-style: italic; color: var(--accent); }

.h-section {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-section em { font-style: italic; color: var(--accent); }

.h-card {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn--primary:hover { color: var(--surface-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--tint-04); }

.dark .btn--primary { background: var(--cream); color: var(--ink); }
.dark .btn--primary:hover { background: var(--accent); color: var(--cream); }
.dark .btn--ghost { color: var(--cream); border-color: rgba(240,235,221,0.25); }
.dark .btn--ghost:hover { border-color: var(--cream); background: rgba(240,235,221,0.05); }

.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: var(--nav-bg-72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--nav-bg-88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.brand-name { font-weight: 500; }
.brand-name b { font-weight: 500; font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--tint-04); }

.nav-cta { display: inline-flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1100px) and (min-width: 641px) {
  /* Keep theme toggle visible on tablet */
}
@media (max-width: 640px) {
  .nav-inner { height: 64px; gap: 12px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand-mark, .brand-mark svg { width: 24px; height: 24px; }
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: 24px var(--gutter);
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.7,0,.2,1), visibility 0s linear .35s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .35s cubic-bezier(.7,0,.2,1), visibility 0s linear 0s;
}
.mobile-sheet-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.mobile-sheet-nav {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-sheet-nav a {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.mobile-sheet-cta { margin-top: auto; padding-top: 32px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(60px, 8vw, 110px); padding-bottom: 0; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.hero-headline { position: relative; }
.hero-meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.hero-side .kicker { margin-bottom: 14px; }
.hero-side p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .hero-meta { grid-template-columns: 1fr; gap: 32px; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* Geometric veda mark in hero */
.hero-mark {
  position: absolute;
  right: 0;
  top: -10px;
  width: clamp(120px, 14vw, 220px);
  opacity: 0.7;
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero-mark { width: 140px; top: -20px; right: -30px; opacity: 0.4; }
}
@media (max-width: 640px) {
  .hero-mark { width: 100px; top: -40px; right: -20px; opacity: 0.3; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  margin-top: clamp(60px, 8vw, 100px);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 50s linear infinite;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.marquee-track em { font-style: italic; color: var(--ink-3); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.trust-label {
  text-align: center;
  margin-bottom: 28px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-align: center;
  padding: 8px 4px;
  transition: color .25s ease;
}
.trust-logo:hover { color: var(--ink); }
.trust-logo small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section header ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head .lede { margin-top: 24px; }
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Track record / Domains ---------- */
.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.domain-pill {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.domain-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Practices grid ---------- */
.practices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.practice {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
  transition: background .3s ease;
}
.practice:hover { background: var(--bg-2); }
.practice-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.practice-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.practice h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.practice p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 auto;
  line-height: 1.55;
  text-wrap: pretty;
}
.practice-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 24px;
}
.practice-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--ink-2);
}
@media (max-width: 980px) {
  .practices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .practices { grid-template-columns: 1fr; }
  .practice { min-height: auto; padding: 24px; }
}

/* ---------- AI / Veda (always-dark island) ---------- */
.veda {
  background: var(--surface-dark);
  color: var(--surface-dark-text);
  position: relative;
  overflow: hidden;
}
.veda .kicker { color: rgba(240,235,221,0.6); }
.veda .h-section em { color: var(--accent-soft); }
.veda .lede { color: rgba(240,235,221,0.72); }

.veda-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(circle at 20% 20%, var(--accent) 0, transparent 40%),
                    radial-gradient(circle at 80% 60%, var(--accent-soft) 0, transparent 50%);
}
.veda .wrap { position: relative; }

.veda-mark {
  position: absolute;
  right: var(--gutter);
  top: var(--section-y);
  width: clamp(140px, 16vw, 240px);
  opacity: 0.4;
  pointer-events: none;
}

.veda-strip {
  margin-top: 48px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.veda-token {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(240,235,221,0.18);
  border-radius: 999px;
  color: rgba(240,235,221,0.8);
}
.veda-token.is-accent { background: var(--accent); border-color: var(--accent); color: var(--cream); }

.veda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
}
.veda-item {
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  padding: 28px;
  min-height: 200px;
}
.veda-item h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 400;
  margin: 12px 0 12px;
}
.veda-item p {
  font-size: 14px;
  color: rgba(240,235,221,0.65);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.veda-item .practice-num { color: rgba(240,235,221,0.45); margin: 0; }
@media (max-width: 980px) { .veda-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .veda-grid { grid-template-columns: 1fr; } .veda-item { padding: 24px; min-height: auto; } }

/* Stack table */
.stack {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--dark-line);
  padding-top: 32px;
}
.stack-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,235,221,0.5);
  margin-bottom: 24px;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stack-col h5 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--cream);
}
.stack-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-col li {
  font-size: 14px;
  color: rgba(240,235,221,0.7);
  display: flex; align-items: center; gap: 8px;
}
.stack-col li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none;
}
@media (max-width: 820px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stack-grid { grid-template-columns: 1fr; } }

/* ---------- Quote band ---------- */
.quote-band {
  padding: clamp(56px, 7vw, 100px) 0;
  text-align: center;
}
.quote-band p {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 18ch;
  text-wrap: balance;
}
.quote-band em { font-style: italic; color: var(--accent); }
.quote-band small {
  display: block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Commitment timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.tl-step {
  border-right: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
}
.tl-step:last-child { border-right: 0; }
.tl-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 33%; height: 2px;
  background: var(--accent);
  transform-origin: left;
}
.tl-step:nth-child(2)::before { width: 66%; }
.tl-step:nth-child(3)::before { width: 100%; }
.tl-day {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.tl-day small {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-block;
  margin-left: 6px;
  vertical-align: 6px;
}
.tl-step h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  margin: 20px 0 12px;
  letter-spacing: -0.01em;
}
.tl-step p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.tl-step ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.tl-step li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.tl-step li::before {
  content: ""; width: 10px; height: 1px; background: var(--accent);
}
@media (max-width: 820px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .tl-step:last-child { border-bottom: 0; }
  .tl-step::before, .tl-step:nth-child(2)::before, .tl-step:nth-child(3)::before { display: none; }
}
.tl-note {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.tl-note b { color: var(--ink); font-weight: 500; }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ind {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px;
  background: var(--bg);
  transition: background .25s ease;
}
.ind:hover { background: var(--bg-2); }
.ind h4 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 24px 0 8px;
}
.ind .ind-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ind p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 16px 0 0;
  text-wrap: pretty;
}
@media (max-width: 980px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .industries { grid-template-columns: 1fr; } }

/* ---------- Work / Clients ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.work-card:hover { background: var(--bg-3); border-color: var(--line-strong); transform: translateY(-2px); }
.work-top { display: flex; align-items: center; gap: 14px; }
.work-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-dark);
  color: var(--surface-dark-text);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.work-mark.is-accent { background: var(--accent); }
.work-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.work-tags span:not(:last-child)::after {
  content: " · "; margin-left: 6px;
}
.work-card h4 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 22px 0 8px;
  line-height: 1.05;
}
.work-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 auto;
  text-wrap: pretty;
}
.work-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.work-link svg { transition: transform .25s ease; }
.work-card:hover .work-link svg { transform: translate(2px, -2px); }

.work-cta {
  background: var(--surface-dark);
  color: var(--surface-dark-text);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work-cta .work-mark {
  background: var(--accent);
  color: var(--cream);
}
.work-cta h4 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 22px 0 8px;
  line-height: 1.05;
}
.work-cta p { color: rgba(240,235,221,0.7); font-size: 14.5px; margin: 0; line-height: 1.55; }
.work-cta .btn { margin-top: 24px; align-self: flex-start; }

@media (max-width: 980px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work { grid-template-columns: 1fr; } }

/* ---------- Perspectives ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.post {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 260px;
  transition: background .25s ease;
}
.post:last-child { border-right: 0; }
.post:hover { background: var(--bg-2); }
.post-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.post h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.post p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 auto;
  text-wrap: pretty;
}
.post-meta {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 980px) {
  .posts { grid-template-columns: 1fr; border-left: 0; }
  .post { border-right: 0; }
}

/* ---------- Why us ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px;
  min-height: 180px;
}
.why-item h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 24px 0 12px;
  line-height: 1.1;
}
.why-item p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats {
  background: var(--surface-dark);
  color: var(--surface-dark-text);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 48px; padding-bottom: 48px;
  gap: 24px;
}
.stat {
  border-left: 1px solid rgba(240,235,221,0.15);
  padding-left: 20px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,235,221,0.6);
}
@media (max-width: 820px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-meta { display: flex; flex-direction: column; gap: 28px; }
.contact-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.contact-block .kicker { margin-bottom: 8px; }
.contact-block a, .contact-block p {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}
.contact-block a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  max-width: 18ch;
  text-align: right;
  transition: color .25s ease;
}
.form-note[data-tone="error"] { color: #C8302F; }
:root[data-theme="dark"] .form-note[data-tone="error"] { color: #F08A6B; }

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 4px;
  color: var(--ink);
  animation: successIn .5s cubic-bezier(.2,.7,.2,1) both;
}
.form-success svg {
  color: var(--accent);
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.form-success p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
  max-width: 40ch;
}
.form-success .btn--sm { padding: 10px 16px; font-size: 13px; }
@keyframes successIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-dark);
  color: rgba(240,235,221,0.75);
  padding: 56px 0 28px;
}
.footer .brand { color: var(--cream); }
.footer .brand-name b { color: var(--accent-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(240,235,221,0.12);
}
.footer-tag {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  margin: 16px 0 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,235,221,0.5);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(240,235,221,0.5);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Brand mark / motif animation ---------- */
.veda-mark-svg > g {
  transform-origin: center;
  animation: spin 120s linear infinite;
}
.veda-mark-svg > circle:not([style]) {
  transform-origin: center;
  animation: spin 200s linear infinite reverse;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.theme-toggle:hover { background: var(--tint-04); border-color: var(--ink); }
.theme-toggle svg { position: absolute; transition: opacity .3s ease, transform .35s cubic-bezier(.7,0,.2,1); }
.theme-toggle .ti-moon { opacity: 0; transform: rotate(-90deg) scale(.7); }
.theme-toggle .ti-sun  { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .ti-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .ti-sun  { opacity: 0; transform: rotate(90deg)  scale(.7); }

.theme-toggle--inline {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}
.theme-toggle--inline svg { position: static; }
.theme-toggle--inline .ti-moon { display: none; }
:root[data-theme="dark"] .theme-toggle--inline .ti-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle--inline .ti-moon { display: inline-flex; opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle--inline .tt-label { display: none; }
:root[data-theme="dark"] .theme-toggle--inline::after {
  content: "Switch to light";
}

/* ---------- Comprehensive mobile + tablet pass ---------- */
@media (max-width: 980px) {
  :root {
    --gutter: clamp(16px, 4vw, 32px);
  }
  .h-display {
    font-size: clamp(40px, 8vw, 84px);
  }
  .h-section {
    font-size: clamp(30px, 5.5vw, 52px);
  }
  .hero { padding-top: clamp(40px, 7vw, 80px); }
  .hero-headline { padding-right: 0; }
  .marquee-track { font-size: clamp(18px, 3vw, 26px); gap: 32px; }
  .marquee-track span { gap: 32px; }
  .marquee { padding: 18px 0; margin-top: 56px; }
}

@media (max-width: 720px) {
  .h-display {
    font-size: clamp(36px, 11vw, 64px);
    line-height: 1;
  }
  .h-display br { display: none; }
  .h-section {
    font-size: clamp(28px, 7vw, 42px);
  }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn { padding: 12px 18px; min-height: 44px; }
  .sec-num b { font-size: 36px; }
  .sec-head { gap: 16px; margin-bottom: 28px; }
  .domain-pill { font-size: 12.5px; padding: 7px 12px; }

  /* Section paddings tighter on phone */
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section--tight { padding-top: 48px; padding-bottom: 48px; }
  .quote-band { padding: 56px 0; }
  .quote-band p { font-size: clamp(32px, 10vw, 56px); }

  /* Card padding tighter */
  .practice, .ind, .veda-item, .why-item, .post { padding: 22px; min-height: auto; }
  .work-card, .work-cta { padding: 20px; min-height: auto; }
  .tl-step { padding: 24px 22px; }
  .tl-day { font-size: 48px; }

  /* AI Veda */
  .veda-mark { display: none; }
  .stack-grid { gap: 24px; }
  .stack { padding-top: 24px; }
  .veda-token { font-size: 10px; padding: 7px 11px; }

  /* Stats band */
  .stats .wrap { padding-top: 36px; padding-bottom: 36px; }
  .stat-num { font-size: clamp(40px, 12vw, 64px); }

  /* Contact + form */
  .contact-block a, .contact-block p { font-size: 20px; }
  .contact-form { padding: 22px; }
  .form-submit { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-note { text-align: left; max-width: 100%; }
  .form-success h3 { font-size: 24px; }
  .field input, .field select, .field textarea { padding: 12px; font-size: 16px; }
}

@media (max-width: 480px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-logo { font-size: 22px; }
  .trust { padding: 40px 0; }
  .hero-meta { margin-top: 32px !important; }
  .domains { gap: 6px; }

  /* Practices: full bleed cards, no inner borders showing on edges */
  .practices, .industries, .why, .veda-grid { border-left: 0; }
  .practice, .ind, .why-item, .veda-item { border-right: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 48px 0 24px; }
  .footer-bottom { font-size: 11px; gap: 8px; }
}

/* Tablet specific (portrait + landscape) */
@media (min-width: 721px) and (max-width: 1100px) {
  .practices, .industries, .why, .work, .veda-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: var(--cream); }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
