/* Dalflow — global styles
   Aesthetic: dark warm charcoal, refined lime accent, Geist + Instrument Serif italic
*/

:root {
  /* Defaults — tweakable via Tweaks panel */
  --bg: #0B0C0A;
  --bg-rise: #111311;
  --surface: #15181A;
  --surface-rise: #1B1F1F;
  --border: rgba(245, 244, 238, 0.09);
  --border-strong: rgba(245, 244, 238, 0.16);
  --ink: #F5F4EE;
  --ink-dim: #9C9F99;
  --ink-mute: #6B6F69;
  --accent: #C8FF3D;
  --accent-deep: #8FB91D;
  --accent-rgb: 200, 255, 61;
  --accent-deep-rgb: 143, 185, 29;
  --accent-ink: #0B0C0A; /* text on accent */
  --warm: #FF7A3A;       /* secondary, used sparingly */

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --pill: 999px;

  --shadow-1: 0 1px 0 rgba(245, 244, 238, 0.04) inset, 0 8px 28px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.25), 0 18px 60px -20px rgba(var(--accent-rgb), 0.45);

  --font-sans: "Geist", -apple-system, system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== Layout primitives ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(72px, 9vw, 132px);
  position: relative;
}
.section--tight { padding-block: clamp(56px, 6vw, 88px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: "—";
  color: var(--accent);
  letter-spacing: 0;
  font-weight: 600;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.h-display .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }

.h-1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h-1 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; color: var(--accent); }

.h-2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.h-2 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }

.h-3 {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
}

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

.muted { color: var(--ink-dim); }
.tiny { font-size: 13px; color: var(--ink-mute); }
.mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.05); }

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

.btn--dark {
  background: var(--ink);
  color: var(--bg);
}
.btn--dark:hover { transform: translateY(-1px); }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }

.arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.5vw, 36px);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--border-strong); }

/* ===== Pill / chip ===== */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}

/* ===== Wordmark logo ===== */
.wordmark {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
}
.wordmark__ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 28px);
  max-width: 1180px;
  background: rgba(15, 18, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 9px 9px 9px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.nav__brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.nav__brand-mark::before, .nav__brand-mark::after {
  content: "";
  position: absolute;
  background: var(--bg);
  border-radius: 2px;
}
.nav__brand-mark::before {
  inset: 5px 5px 10px 5px;
  border-radius: 50% 50% 2px 2px;
}
.nav__brand-mark::after {
  inset: 11px 5px 5px 5px;
  border-radius: 2px 2px 50% 50%;
  opacity: 0.55;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 14.5px;
  color: var(--ink-dim);
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }
.nav__link--active {
  color: var(--ink);
  background: rgba(245, 244, 238, 0.07);
}

.nav__spacer { flex: 1; }

.nav__lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(245, 244, 238, 0.05);
  border-radius: var(--pill);
}
.nav__lang button {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  padding: 5px 10px;
  border-radius: var(--pill);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  letter-spacing: 0.04em;
}
.nav__lang button:hover { color: var(--ink); }
.nav__lang button.active {
  background: var(--ink);
  color: var(--bg);
}

.nav__mobile {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 8px 14px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav { padding: 9px 9px 9px 16px; }
  .nav__links { display: none; }
  .nav__lang { display: none; }
  .nav__mobile { display: inline-flex; }
  .nav .btn--primary { display: none; }
}

.nav__sheet {
  position: fixed;
  inset: 70px 14px auto 14px;
  z-index: 49;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.nav__sheet.open { display: flex; }
.nav__sheet a {
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 17px;
}
.nav__sheet a:hover { background: rgba(245, 244, 238, 0.05); }
.nav__sheet .nav__lang { display: flex; margin-top: 8px; align-self: flex-start; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.hero__inner {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__sub {
  max-width: 62ch;
  margin: 28px auto 0;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-dim);
}
.hero__ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero ambient glow + grain */
.hero__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 720px;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(var(--accent-rgb), 0.28), transparent 70%),
    radial-gradient(40% 35% at 30% 60%, rgba(var(--accent-deep-rgb), 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,244,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,244,238,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(60% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* ===== Trusted-by strip ===== */
.trust {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.trust__row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.7;
}
.logo-mark {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark svg { flex-shrink: 0; }

/* ===== Pitch block ===== */
.pitch {
  padding-top: 60px;
}
.pitch h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 22ch;
  font-weight: 500;
}
.pitch .accent { color: var(--accent); }
.pitch .ital { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; letter-spacing: -0.01em; }

/* ===== Stats row ===== */
.stats-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.stats-row__intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 200px;
}
.stat__value {
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.stat__label {
  font-size: 13.5px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}
.stat--feature {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
}
.stat--feature .stat__label { color: rgba(11,12,10,0.72); }

@media (max-width: 1100px) {
  .stats-row { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .stats-row__intro { grid-column: 1 / -1; min-height: 140px; }
}
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ===== Generic two-column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ===== Services grid ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.svc-card__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc-card__title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.svc-card__desc { color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
.svc-card__example {
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 14px;
  line-height: 1.5;
}
.svc-card__bullets {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-dim);
}
.svc-card__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-card__bullets li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ===== Process steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.step__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.step__desc { color: var(--ink-dim); font-size: 14.5px; }

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background .2s ease;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body {
  padding: 0 28px 24px;
  color: var(--ink-dim);
  font-size: 15.5px;
  max-width: 70ch;
}

/* ===== Final CTA — dark surface, accent reserved for the button + a subtle glow.
   Works gracefully with any accent color (lime, orange, blue, etc). */
.final-cta {
  position: relative;
  background: var(--bg-rise);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(34% 50% at 92% 18%, color-mix(in oklab, var(--accent) 32%, transparent), transparent 70%),
    radial-gradient(28% 40% at 10% 100%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.final-cta::after {
  /* Subtle grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,244,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,244,238,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 70% at 80% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 70% at 80% 30%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}
.final-cta h2 {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 18ch;
  color: var(--ink);
}
.final-cta h2 .ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.final-cta p {
  margin: 20px 0 0;
  max-width: 50ch;
  color: var(--ink-dim);
  font-size: clamp(16px, 1.3vw, 19px);
}
.final-cta__row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.final-cta__row .btn--dark {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-glow);
}
.final-cta__row .btn--dark:hover { filter: brightness(1.05); transform: translateY(-1px); }
.final-cta__row .btn--ghost {
  border-color: var(--border-strong);
  color: var(--ink);
}
.final-cta__row .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  margin-top: 56px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) {
  .footer__row { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 36ch; }
.footer__brand-mark {
  display: flex; align-items: center; gap: 9px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--ink-dim);
  font-size: 14.5px;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

/* ===== Page-specific: page intro ===== */
.page-intro {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-intro__inner {
  max-width: 880px;
  position: relative;
  z-index: 2;
}
.page-intro__lede {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--ink-dim);
  max-width: 60ch;
  line-height: 1.5;
}
.page-intro__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 600px;
  background: radial-gradient(40% 40% at 30% 40%, rgba(var(--accent-rgb), 0.18), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

/* ===== Why Dalflow (differentiators) ===== */
.why-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.why-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.why-card__glyph {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--accent);
}
.why-card__t {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.why-card__d {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.5;
  margin-top: auto;
}

/* ===== Career timeline (About) ===== */
.career-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.career-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.career-item:first-child { border-top: 0; }
@media (max-width: 600px) {
  .career-item { grid-template-columns: 1fr; gap: 8px; }
}
.career-years {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 4px;
}
.career-role {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.career-org {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-dim);
  margin-left: 8px;
  font-weight: 400;
}
.career-detail {
  margin-top: 8px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}

/* ===== Partner note (services page) ===== */
.partner-note {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.partner-note::before {
  content: "↗ ";
  color: var(--accent);
}

/* ===== Education list (About) ===== */
.edu-list {
  margin-top: 16px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.edu-list li {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.edu-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== Service detail rows (services page) ===== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(36px, 6vw, 80px);
  padding: 56px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.service-row--reversed { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 800px) { .service-row, .service-row--reversed { grid-template-columns: 1fr; } }
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-row__art {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.service-row h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.service-row__desc {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 56ch;
  line-height: 1.55;
}
.service-row__example {
  margin-top: 22px;
  padding: 16px 20px;
  background: rgba(var(--accent-rgb), 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.service-row__bullets {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.service-row__bullets li {
  font-size: 14.5px;
  color: var(--ink);
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-row__bullets li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Packs / pricing ===== */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
  max-width: 860px;
}
@media (max-width: 700px) { .packs-grid { grid-template-columns: 1fr; } }

.pack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.pack:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -24px rgba(var(--accent-rgb), 0.35);
  background: var(--bg-rise);
}
.pack--featured {
  background: var(--bg-rise);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px rgba(var(--accent-rgb), 0.5);
}
.pack__name { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.pack__price {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.pack--featured .pack__price { color: var(--accent); }
.pack__desc { color: var(--ink-dim); font-size: 15px; min-height: 48px; }
.pack__features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px; color: var(--ink-dim);
  flex: 1;
}
.pack__features li {
  display: flex; align-items: flex-start; gap: 10px;
}
.pack__features li::before {
  content: "✓";
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.pack__badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--pill);
  font-weight: 500;
}

/* ===== Case rows ===== */
.case-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(36px, 6vw, 64px);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.case-row:first-of-type { border-top: 0; padding-top: 24px; }
.case-row--reversed { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 800px) { .case-row, .case-row--reversed { grid-template-columns: 1fr; } }

.case-row__lhs {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
}
.case-row__lhs .case-quote { margin-top: 0; }

.case-row__art {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.case-row__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.case-row__logo-img {
  max-width: 55%;
  max-height: 32%;
  filter: brightness(0) invert(0.95);
  mix-blend-mode: screen;
  opacity: 0.92;
}
.case-row__logo-img--airea {
  /* airea webp has a dark green bg; clip & multiply blend keeps the white text only */
  filter: none;
  mix-blend-mode: screen;
  max-width: 60%;
  max-height: 40%;
}
.case-row__logo-text {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: 0.85;
}

/* Wordmark "logo plates" \u2014 typographic logos in the site\u2019s own type system. */
.case-row__brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  padding: 28px;
  text-align: center;
}
.case-row__brand-name {
  color: var(--ink);
  line-height: 1;
}
.case-row__brand-name--mono-caps {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-row__brand-name--rounded {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.045em;
  text-transform: lowercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.case-row__brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent);
  line-height: 1;
}
.case-row__brand-name--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.case-row__brand-name--display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  max-width: 11ch;
  text-wrap: balance;
}
.case-row__brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 4px;
  border-top: 1px solid var(--border);
  width: max-content;
  max-width: 100%;
}

/* About portrait \u2014 real photo, framed with a small caption strip */
.about-portrait {
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.about-portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.about-portrait::after {
  /* Subtle vignette + warm tone */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 50%, rgba(11, 12, 10, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(11, 12, 10, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}
.about-portrait__label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: lowercase;
  opacity: 0.85;
}
.about-portrait__label span:last-child {
  color: var(--accent);
}
.case-row__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.case-row__client {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--font-sans);
}
.case-row__role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-row__tagline {
  margin-top: 18px;
  font-size: clamp(18px, 1.7vw, 24px);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
  max-width: 30ch;
}
.case-row__summary {
  margin-top: 22px;
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 60ch;
}
.case-row__metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.metric__v {
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.metric__k {
  margin-top: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== About: principles & stack ===== */
.principles {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.principle__t {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.principle__t .accent { color: var(--accent); }
.principle__d { color: var(--ink-dim); font-size: 15px; }

.stack-grid {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink);
}

/* ===== Contact ===== */
.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-book {
  background: var(--bg-rise);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-book::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(40% 50% at 90% 10%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.contact-book h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.contact-book h3 .ital {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.contact-book p { color: var(--ink-dim); font-size: 16px; max-width: 32ch; }
.contact-book .btn--dark {
  background: var(--accent);
  color: var(--accent-ink);
  align-self: flex-start;
  box-shadow: var(--shadow-glow);
}
.contact-book .btn--dark:hover { filter: brightness(1.05); transform: translateY(-1px); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.input, .textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  transition: border-color .2s ease;
  outline: none;
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.contact-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .contact-meta { grid-template-columns: 1fr; } }
.contact-meta__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-meta__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.contact-meta__value { font-size: 17px; color: var(--ink); }
.contact-meta__value a { color: var(--accent); }

.testimonial {
  margin-top: 64px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 28ch;
}
.testimonial__attr {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ===== Abstract art (SVG placeholders) ===== */
.art-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.art-wrap svg { width: 100%; height: 100%; display: block; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(0.2, 0.7, 0.2, 1), transform .8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Marquee for trust strip (subtle continuous flow) ===== */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: marquee 32s linear infinite;
  width: max-content;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Sticky bookcall CTA on mobile ===== */
.book-pill {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 40;
  display: none;
}
@media (max-width: 700px) {
  .book-pill { display: inline-flex; }
}

/* ===== Case logo panels (real client logos) ===== */
.case-logo-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4%, 36px);
}
.case-logo-img {
  max-width: 82%;
  max-height: 62%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== Per-case quote (client testimonial) ===== */
.case-quote {
  margin-top: 26px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}
.case-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
}
.case-quote__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-rise);
  border: 1px solid var(--border);
}
.case-quote__avatar image-slot {
  display: block;
  width: 100%;
  height: 100%;
}
.case-quote__body {
  flex: 1;
  min-width: 0;
}
.case-quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.case-quote__attr {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.case-quote__attr-name { color: var(--ink); }
@media (max-width: 600px) {
  .case-quote { padding: 18px; gap: 14px; }
  .case-quote__avatar { width: 48px; height: 48px; }
}

/* ===== Case sector badge ===== */
.case-row__sector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.case-row__sector::before {
  content: "—";
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
}

/* ===== Tier engagement cards (services page) ===== */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  align-items: start;
  padding-top: 14px;
}
@media (max-width: 900px) { .tiers-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.tier-card--featured {
  background: var(--bg-rise);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -20px rgba(var(--accent-rgb), 0.3);
}
.tier-card__label {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--pill);
  font-weight: 500;
  white-space: nowrap;
}
.tier-card__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.tier-card__phase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tier-card__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tier-card__desc {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.tier-card__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}
.tier-card__items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tier-card__items li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.tier-card__note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* ===== Live activity dot ===== */
.logo-mark--event {
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0); }
}

/* ===== Step accent (first step = free audit) ===== */
.step--accent {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.04);
}
.step--accent .step__n {
  color: var(--accent);
}
.step--accent .step__title {
  color: var(--accent);
}

/* ===== Dept grid ===== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.dept-card {
  background: var(--surface-rise);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.dept-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
}
.dept-card__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.dept-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dept-card__list li {
  font-size: 13px;
  color: var(--ink-dim);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.dept-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 1px;
}

/* ===== Pack featured variant ===== */
.pack--featured {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.04);
}
.pack--featured .pack__name {
  color: var(--accent);
}

/* Print-friendly: hide nav on print */
@media print {
  .nav, .nav__sheet, .book-pill { display: none; }
}


/* ============================================================
   THEME VARIANTS — applied via [data-theme] on <html>
   Each theme overrides the design tokens defined in :root.
   ============================================================ */

:root[data-theme="editorial"] {
  --bg: #1A1612;
  --bg-rise: #221D17;
  --surface: #221D17;
  --surface-rise: #2B241E;
  --border: rgba(242, 235, 224, 0.10);
  --border-strong: rgba(242, 235, 224, 0.20);
  --ink: #F2EBE0;
  --ink-dim: #B0A899;
  --ink-mute: #7A7268;
  --accent: #E8A55C;
  --accent-deep: #C88847;
  --accent-ink: #1A1612;
  --accent-rgb: 232, 165, 92;
  --accent-deep-rgb: 200, 136, 71;
  --warm: #E36A3A;
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.25), 0 18px 60px -20px rgba(var(--accent-rgb), 0.45);
}

:root[data-theme="paper"] {
  --bg: #F2EEE3;
  --bg-rise: #FAF6EC;
  --surface: #FFFFFF;
  --surface-rise: #FAF6EC;
  --border: rgba(28, 26, 22, 0.12);
  --border-strong: rgba(28, 26, 22, 0.22);
  --ink: #1A1815;
  --ink-dim: #5C594F;
  --ink-mute: #8E8A7E;
  --accent: #C8421F;
  --accent-deep: #963115;
  --accent-ink: #FFFFFF;
  --accent-rgb: 200, 66, 31;
  --accent-deep-rgb: 150, 49, 21;
  --warm: #E36A3A;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 28px rgba(28, 26, 22, 0.08);
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.20), 0 18px 60px -20px rgba(var(--accent-rgb), 0.35);
}

:root[data-theme="cobalt"] {
  --bg: #08152E;
  --bg-rise: #0F1F40;
  --surface: #142850;
  --surface-rise: #1B3461;
  --border: rgba(232, 238, 252, 0.10);
  --border-strong: rgba(232, 238, 252, 0.20);
  --ink: #E8EEFC;
  --ink-dim: #9CABCC;
  --ink-mute: #6678A0;
  --accent: #5C95FF;
  --accent-deep: #3266DC;
  --accent-ink: #08152E;
  --accent-rgb: 92, 149, 255;
  --accent-deep-rgb: 50, 102, 220;
  --warm: #FF7A3A;
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.30), 0 18px 60px -20px rgba(var(--accent-rgb), 0.50);
}

:root[data-theme="terminal"] {
  --bg: #050805;
  --bg-rise: #0C120C;
  --surface: #0C120C;
  --surface-rise: #131A13;
  --border: rgba(200, 214, 200, 0.10);
  --border-strong: rgba(200, 214, 200, 0.20);
  --ink: #D7E6D7;
  --ink-dim: #7E8E7E;
  --ink-mute: #4F5A4F;
  --accent: #4DFF8E;
  --accent-deep: #2DC568;
  --accent-ink: #050805;
  --accent-rgb: 77, 255, 142;
  --accent-deep-rgb: 45, 197, 104;
  --warm: #FFB84D;
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.30), 0 18px 60px -20px rgba(var(--accent-rgb), 0.55);
}

/* Paper theme — surface-tinted adjustments where dark assumptions show through */
:root[data-theme="paper"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="paper"] .pitch .accent,
:root[data-theme="paper"] .pitch .ital { color: var(--accent); }
:root[data-theme="paper"] .nav { background: rgba(255, 255, 255, 0.72); border-color: var(--border); }
:root[data-theme="paper"] .nav__link:hover { color: var(--ink); }
:root[data-theme="paper"] .nav__lang button.active { background: var(--ink); color: var(--bg); }
:root[data-theme="paper"] .btn--dark { background: var(--ink); color: var(--bg); }
:root[data-theme="paper"] .page-intro__glow,
:root[data-theme="paper"] .hero__glow { opacity: 0.5; mix-blend-mode: multiply; }

/* ============================================================
   FONT VARIANTS — applied via [data-font] on <html>
   ============================================================ */

:root[data-font="manrope"] {
  --font-sans: "Manrope", -apple-system, system-ui, sans-serif;
}
:root[data-font="dmsans"] {
  --font-sans: "DM Sans", -apple-system, system-ui, sans-serif;
}
:root[data-font="jakarta"] {
  --font-sans: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
}


/* ============================================================
   LIVE AUTOMATION FLOW (replaces marquee on home)
   ============================================================ */
.live-flow__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 56px minmax(0, 0.7fr) 80px minmax(0, 1.2fr);
  align-items: center;
  gap: 0;
  min-height: 280px;
  padding: 12px 0 4px;
}
.live-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  position: relative;
}
.live-node--input {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.15),
    0 14px 38px -16px rgba(var(--accent-rgb), 0.3),
    0 8px 28px rgba(0, 0, 0, 0.25);
  animation: live-node-in 0.45s ease both;
}
@keyframes live-node-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.live-node__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-node__title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.live-node__detail {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.live-node--out {
  padding: 14px 44px 14px 18px;
  opacity: 0;
  transform: translateX(-8px);
  animation: live-out-in 0.5s ease forwards;
}
.live-node--out-1 { animation-delay: 1.1s; }
.live-node--out-2 { animation-delay: 1.5s; }
.live-node--out-3 { animation-delay: 1.9s; }
@keyframes live-out-in {
  to { opacity: 1; transform: translateX(0); }
}
.live-node__check {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) scale(0.4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  animation: live-check-in 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) forwards;
}
.live-node--out-1 .live-node__check { animation-delay: 1.7s; }
.live-node--out-2 .live-node__check { animation-delay: 2.1s; }
.live-node--out-3 .live-node__check { animation-delay: 2.5s; }
@keyframes live-check-in {
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}
.live-flow__outputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-flow__conn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-flow__conn--in svg { width: 100%; height: 40px; display: block; }
.live-flow__conn--out svg { width: 100%; height: 220px; display: block; }
.live-flow__line {
  stroke: var(--border-strong);
  stroke-width: 1.2;
  fill: none;
}
.live-flow__line--active {
  stroke: rgba(var(--accent-rgb), 0.55);
  stroke-dasharray: 4 5;
  animation: live-flow-dash 1s linear infinite;
}
.live-flow__arrow {
  fill: var(--accent);
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.5));
}
.live-flow__vconn { display: none; }
@keyframes live-flow-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -18; }
}
.live-flow__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}
.live-flow__core svg {
  width: 108px;
  height: 108px;
}
.live-flow__core-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.3;
}
.live-flow__core-ring--anim {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: live-core-ring 2.4s ease-in-out infinite;
}
@keyframes live-core-ring {
  0%, 100% { transform: scale(0.85); opacity: 0.25; }
  50% { transform: scale(1.08); opacity: 0.75; }
}
.live-flow__core-fill {
  fill: rgba(var(--accent-rgb), 0.06);
  stroke: var(--accent);
  stroke-width: 1;
}
.live-flow__core-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.7));
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: live-core-dot 1.4s ease-in-out infinite;
}
@keyframes live-core-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; }
}
.live-flow__core-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 900px) {
  .live-flow__stage {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 16px 0 8px;
  }
  .live-flow__conn { display: none; }
  .live-flow__vconn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
    margin: 2px 0;
  }
  .live-flow__vconn svg { width: 40px; height: 100%; display: block; }
  .live-flow__core { padding: 4px 0; }
  .live-flow__core svg { width: 76px; height: 76px; }
  .live-flow__core-label { font-size: 10px; }
}


/* ============================================================
   MOBILE RESPONSIVE — comprehensive fixes for ≤720px and ≤480px
   ============================================================ */

@media (max-width: 720px) {
  /* Hero — tighten vertical space + wrap CTAs */
  .hero {
    padding: 96px 0 56px;
  }
  .hero__sub {
    margin-top: 22px;
  }
  .hero__ctas {
    margin-top: 28px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas .btn { justify-content: center; }

  /* Section paddings — already use clamp, just trim eyebrow margin */
  .h-display { line-height: 1.02; }

  /* Trust / Live flow — pull closer to hero, simpler core on mobile */
  .trust { margin-top: 48px; padding: 22px 0 18px; }
  .live-flow__stage { padding: 8px 0; }

  /* Pitch — smaller top padding, tighter text */
  .pitch { padding-top: 24px; }
  .pitch h2 {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.22;
  }

  /* Stats row — single col already handles below 540 */
  .stats-row { margin-top: 36px; gap: 12px; }
  .stat, .stats-row__intro { min-height: 160px; padding: 22px 20px; }

  /* Why section: stack section header */
  .two-col { gap: 18px; }

  /* Service rows (services page) — give art a sensible height when stacked */
  .service-row__art {
    aspect-ratio: 5/4;
    max-height: 320px;
  }

  /* Case rows */
  .case-row { gap: 24px; padding: 28px 0; }
  .case-row__art { aspect-ratio: 5/3; }
  .case-row__client { font-size: clamp(28px, 7vw, 36px) !important; }
  .case-row__head { gap: 10px; }
  .case-row__metrics { grid-template-columns: 1fr; gap: 8px; }

  /* About portrait — never larger than ~340px, centered */
  .about-portrait {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4/5;
  }

  /* Career */
  .career-years { font-size: 13px; }

  /* Final CTA */
  .final-cta { padding: clamp(28px, 6vw, 48px); }
  .final-cta h2 {
    font-size: clamp(28px, 7.5vw, 44px);
  }
  .final-cta__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .final-cta__row .btn { justify-content: center; }

  /* Process steps */
  .step { padding: 22px 20px 18px; }

  /* FAQ — relax max-width constraints */
  .faq summary { font-size: 16px; }

  /* Service rows / packs: button row stacks */
  .pack .btn { width: 100%; justify-content: center; }
  .contact-book { padding: 28px 22px; }
  .contact-book .btn { width: 100%; justify-content: center; }
  .contact-book > div:last-of-type { flex-direction: column; align-items: stretch; }

  /* Stack chips — slightly smaller on mobile */
  .stack-chip { padding: 8px 12px; font-size: 13px; }
  .stack-grid { gap: 8px; }

  /* Live flow demo refinements */
  .live-node--input { padding: 16px 18px; }
  .live-node--out { padding: 12px 40px 12px 16px; }
  .live-node__title { font-size: 15px; }

  /* Nav sheet (mobile menu) — already sized inset 70px 14px */
  .nav__cta { display: none; }   /* hide inline nav CTA on small */

  /* Tweaks panel — keep it from being too wide on phones */
  .twk-panel { width: calc(100vw - 32px) !important; max-width: 300px; }
}

@media (max-width: 480px) {
  /* Ultra-narrow phones */
  .hero { padding: 84px 0 48px; }
  .h-display { font-size: clamp(40px, 11vw, 52px); }
  .page-intro { padding-top: 88px; padding-bottom: 24px; }
  .page-intro__lede { font-size: 16px; }

  .container { padding-inline: 18px; }

  /* Section spacing tightens */
  .section { padding-block: 56px; }
  .section--tight { padding-block: 44px; }

  /* Cases: simpler quote layout */
  .case-quote { flex-direction: column; padding: 16px; gap: 12px; }
  .case-quote__avatar { width: 44px; height: 44px; }
  .case-quote::before { font-size: 40px; top: 4px; right: 14px; }

  /* Live flow — narrower core */
  .live-flow__core svg { width: 64px; height: 64px; }
  .live-flow__core-label { font-size: 10px; }

  /* About portrait further bounded */
  .about-portrait { max-width: 280px; }

  /* Career year column hides label color difference, tighter spacing */
  .career-role { font-size: 16px; }
  .career-org { font-size: 14px; }

  /* Footer cells stack to single column on very small */
  .footer__row { grid-template-columns: 1fr !important; }
}
