/* ============================================================
   Taaj Labs — Design System (Design 11 hybrid)
   Dark editorial · saffron-cream accent · Fraunces / Inter / JetBrains Mono
   ============================================================ */

:root {
  --bg: #0A0A0F;
  --bg-card: #131319;
  --bg-card-hi: #1B1B23;
  --text: #FAF8F3;
  --text-soft: rgba(250, 248, 243, 0.72);
  --text-muted: rgba(250, 248, 243, 0.5);
  --accent: #D4B896;       /* saffron-cream */
  --accent-hi: #E8CFA7;    /* hover */
  --accent-deep: #B89972;  /* pressed */
  --logo: #E8C97A;
  --border: rgba(212, 184, 150, 0.12);
  --border-hi: rgba(212, 184, 150, 0.3);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --container: 1280px;
  --pad: 32px;
  --section-gap: 130px;
  --radius: 18px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  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; border: none; background: none; color: inherit; }
::selection { background: rgba(212, 184, 150, 0.25); color: var(--text); }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-top: var(--section-gap); }
.stack > * + * { margin-top: 1.1em; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
em, .ital { font-style: italic; }
.gold { color: var(--accent); }
.soft { color: var(--text-soft); }
.muted { color: var(--text-muted); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; }

.display {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--text-soft);
  font-weight: 400;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .wordmark {
  font-family: var(--serif); font-size: 20px; letter-spacing: -0.02em; font-weight: 500;
}
.brand .wordmark em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; color: var(--text-soft); transition: color .2s;
  font-weight: 450;
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 999px;
  transition: transform .18s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #15110A; }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-primary:active { background: var(--accent-deep); transform: translateY(0); }
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(212,184,150,0.06); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- masthead strip ---------- */
.masthead {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
.masthead .dot { color: #57C77E; }
.masthead .avail { color: var(--text-soft); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 64px; padding-bottom: 40px; overflow: hidden; }
/* candle-flame glow orbs behind the hero (v1.9.1) — bounded organic drift on the
   wrapper + flame "breathing" flicker (scale+opacity) on the inner div, so the two
   transforms compose. Coprime-ish durations = never-quite-repeating motion. */
.hero-glow-orb-wrap { position: absolute; z-index: 0; pointer-events: none; }
.orb-1-wrap { width: 340px; height: 340px; top: 12%; left: 18%; animation: flameDrift1 11s ease-in-out infinite alternate; }
.orb-2-wrap { width: 280px; height: 280px; top: 38%; left: 46%; animation: flameDrift2 13s ease-in-out infinite alternate; }
.orb-3-wrap { width: 310px; height: 310px; top: 22%; left: 68%; animation: flameDrift3 9.5s ease-in-out infinite alternate; }
.hero-glow-orb {
  width: 100%; height: 100%; border-radius: 50%; filter: blur(55px); will-change: transform, opacity;
  background: radial-gradient(circle,
    rgba(255,180,90,0.22) 0%,
    rgba(247,147,30,0.14) 30%,
    rgba(247,147,30,0.05) 55%,
    transparent 75%);
}
.orb-1 { animation: flameFlicker1 4.3s ease-in-out infinite; }
.orb-2 { animation: flameFlicker2 3.7s ease-in-out infinite; }
.orb-3 { animation: flameFlicker3 5.1s ease-in-out infinite; }
@keyframes flameDrift1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(60px, -40px); }
  50%  { transform: translate(-30px, 50px); }
  75%  { transform: translate(-80px, -20px); }
  100% { transform: translate(40px, 30px); }
}
@keyframes flameDrift2 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-50px, 40px); }
  45%  { transform: translate(70px, 20px); }
  70%  { transform: translate(20px, -60px); }
  100% { transform: translate(-40px, -20px); }
}
@keyframes flameDrift3 {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(45px, 55px); }
  55%  { transform: translate(-60px, -30px); }
  80%  { transform: translate(30px, -70px); }
  100% { transform: translate(-20px, 40px); }
}
@keyframes flameFlicker1 {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  30%      { opacity: 1;   transform: scale(1.08); }
  60%      { opacity: 0.75; transform: scale(0.94); }
}
@keyframes flameFlicker2 {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  40%      { opacity: 1;   transform: scale(1.06); }
  70%      { opacity: 0.7; transform: scale(0.96); }
}
@keyframes flameFlicker3 {
  0%, 100% { opacity: 0.8;  transform: scale(1); }
  35%      { opacity: 0.95; transform: scale(1.1); }
  65%      { opacity: 0.65; transform: scale(0.92); }
}
@media (max-width: 640px) {
  .hero-glow-orb-wrap { width: 200px; height: 200px; }
  .hero-glow-orb { filter: blur(40px); }
  .orb-2-wrap { left: 30%; }
  .orb-3-wrap { left: 55%; }
}
.hero::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(212,184,150,0.16), rgba(212,184,150,0.04) 40%, transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-headline { margin-bottom: 26px; }
.hero-headline .l2 { display: block; padding-left: 0.9em; font-style: italic; color: var(--accent); }
.hero .meta { color: var(--text-muted); font-size: 15px; max-width: 30em; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat .num { font-family: var(--serif); font-size: 34px; letter-spacing: -0.02em; }
.stat .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ---------- capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.cap-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 30px 32px; transition: border-color .25s, background .25s, transform .25s;
  position: relative; overflow: hidden;
}
.cap-card:hover { border-color: var(--border-hi); background: var(--bg-card-hi); transform: translateY(-3px); }
.cap-card .rn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.cap-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; margin: 14px 0 12px; }
.cap-card p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.cap-card .stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cap-card .chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px;
}

/* ---------- demo card ---------- */
.demo-card {
  position: relative;                 /* anchor for the absolute End Call button */
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; min-height: 460px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
}
/* one-time saffron pulse when arriving via "Try the demo" (v1.8) */
@keyframes attentionGlow {
  0%, 100% { box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), 0 0 0 0 rgba(247,147,30,0); }
  50%      { box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), 0 0 60px 12px rgba(247,147,30,0.45); }
}
.demo-card.attention-glow { animation: attentionGlow 2.5s ease-out 1; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.demo-head .title { font-family: var(--serif); font-size: 17px; }
.demo-status { display: flex; align-items: center; gap: 12px; }
.demo-status .pulse { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); }
.demo-status .pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #57C77E; box-shadow: 0 0 0 0 rgba(87,199,126,0.6); animation: blip 1.8s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(87,199,126,0.5);} 70% { box-shadow: 0 0 0 8px rgba(87,199,126,0);} 100% { box-shadow: 0 0 0 0 rgba(87,199,126,0);} }
.demo-timer { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }

.mic-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 0 26px; }
.mic-btn {
  width: 96px; height: 96px; border-radius: 50%; margin: 18px 0;   /* v2.0.3 — breathing room above/below the mic */
  background: radial-gradient(circle at 50% 40%, var(--accent-hi), var(--accent-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(212,184,150,0.4); transition: transform .2s, box-shadow .3s; position: relative;
}
.mic-btn::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--border-hi); opacity: .5; }
.mic-btn:hover { transform: scale(1.04); }
.mic-btn.live { animation: halo 1.6s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(212,184,150,0.4);} 70% { box-shadow: 0 0 0 26px rgba(212,184,150,0);} 100% { box-shadow: 0 0 0 0 rgba(212,184,150,0);} }
.mic-btn svg { width: 36px; height: 36px; }
.mic-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }

.convo { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; max-height: 240px; }
/* transcript scrollbar — saffron, thin, subtle (v1.9) */
.convo { scrollbar-width: thin; scrollbar-color: rgba(247,147,30,0.25) rgba(255,255,255,0.03); }
.convo::-webkit-scrollbar { width: 6px; }
.convo::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
.convo::-webkit-scrollbar-thumb { background: rgba(247,147,30,0.25); border-radius: 3px; transition: background 200ms ease; }
.convo::-webkit-scrollbar-thumb:hover { background: rgba(247,147,30,0.45); }
/* re-flash the "Connection lost" bubble instead of duplicating it (v1.9) */
@keyframes bubbleFlash { 0%,100% { box-shadow: 0 0 0 0 rgba(247,147,30,0); } 30% { box-shadow: 0 0 0 3px rgba(247,147,30,0.5); } }
.bubble.flash { animation: bubbleFlash 0.7s ease-out 1; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #15110A; border-bottom-right-radius: 4px; }
.bubble.assistant { align-self: flex-start; background: var(--bg-card-hi); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text-soft); }
.convo-empty { color: var(--text-muted); font-size: 13px; text-align: center; margin: auto; font-family: var(--mono); letter-spacing: 0.08em; }

.demo-input { display: flex; gap: 8px; margin-top: 14px; }
.demo-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 16px; color: var(--text); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .2s;
}
.demo-input input:focus { border-color: var(--accent); }
.demo-input button { background: var(--accent); color: #15110A; border-radius: 999px; padding: 0 16px; font-size: 14px; font-weight: 600; }

.lang-pills { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
.lang-pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); transition: all .2s;
}
.lang-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(212,184,150,0.08); }
.lang-pill:hover { color: var(--text); }

.demo-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.4; }

/* interest tags (v2.0) — chip row shown above the mic in IDLE/BETWEEN */
.interest-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.interest-chip {
  font-family: var(--sans); font-size: 11.5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-soft); background: var(--bg-card); transition: border-color .18s, color .18s, background .18s;
}
.interest-chip:hover { border-color: var(--accent); color: var(--text); }
.interest-chip.active { border-color: var(--accent); color: #15110A; background: var(--accent); font-weight: 600; }
/* (v2.0.8) chips stay visible but locked+dimmed outside IDLE — see rule below */
.interest-active { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-align: center; margin-top: 10px; }
.interest-active[hidden] { display: none; }
.demo-loc { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }
.demo-loc[hidden] { display: none; }
/* budget clarity (v2.0.7) — "X:XX remaining today" under the timer in IDLE */
.demo-remaining { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }
.demo-remaining[hidden] { display: none; }
.demo-remaining.warn-glow { color: var(--accent); font-weight: 600; animation: remainGlow 1s ease-in-out infinite; }
@keyframes remainGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* v2.0.14 — demo intro copy (fresh IDLE only, >= 4:30 remaining) */
.demo-intro { text-align: center; margin: 0 auto 14px; max-width: 360px; display: none; }
.demo-example { text-align: center; font-size: 12px; color: var(--text-muted); font-style: italic; margin: 8px auto 0; max-width: 360px; display: none; }
.demo-card[data-state="IDLE"] .demo-intro,
.demo-card[data-state="IDLE"] .demo-example { display: block; }
.demo-card.intro-hide .demo-intro,
.demo-card.intro-hide .demo-example { display: none !important; }
.intro-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; }
.intro-dot { width: 7px; height: 7px; border-radius: 50%; background: #6FCf97; box-shadow: 0 0 8px #6FCf97; }
.intro-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 10px 0 0; }

/* v2.0.14 — post-call thumbs feedback chip */
.demo-feedback { text-align: center; font-size: 12.5px; color: var(--text-muted); padding: 8px 2px; }
.demo-feedback.fade { opacity: 0; transition: opacity .35s ease-out; }
.fb-btn { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; cursor: pointer; font-size: 14px; margin-left: 4px; transition: border-color .15s, transform .1s; }
.fb-btn:hover { border-color: var(--accent); }
.fb-btn:active { transform: scale(.92); }

/* v2.0.10 — autolinked "contact form" phrase inside transcript bubbles */
.msg-contact-link { color: #f7931e; text-decoration: underline; cursor: pointer; transition: filter .15s; }
.msg-contact-link:hover { filter: brightness(1.2); }

/* v2.0.8 — interest tags locked (non-interactive + dimmed) outside IDLE */
.demo-card:not([data-state="IDLE"]) .interest-chips { pointer-events: none; opacity: 0.5; }  /* interest tags locked for the call */
/* language-adapts hint under the tab strip */
.lang-hint { font-size: 11px; color: var(--text-muted); text-align: center; margin: 6px 0 2px; opacity: 0.85; }
/* v2.0.11 — language tabs locked during a call (only IDLE/EXHAUSTED/CONTACT_SENT allow switching) */
.demo-card[data-state="ACTIVE"] .lang-pills,
.demo-card[data-state="PAUSED"] .lang-pills { pointer-events: none; opacity: 0.5; cursor: not-allowed; }  /* lang tabs locked only during a live call */

/* ---------- demo voice states (v1.5) ---------- */
/* IDLE: continuous gold halo pulse + expanding ripple ring. */
.mic-btn { animation: haloGoldIdle 1.6s ease-in-out infinite; }
.mic-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0; animation: ripple 1.8s ease-out infinite;
}
@keyframes haloGoldIdle {
  0%   { box-shadow: 0 0 0 0 rgba(212,184,150,0.40); }
  50%  { box-shadow: 0 0 0 14px rgba(212,184,150,0.10); }
  100% { box-shadow: 0 0 0 0 rgba(212,184,150,0.40); }
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* ACTIVE: green glow, overrides gold. */
.mic-btn.active {
  background: radial-gradient(circle at 50% 40%, #3FE08A, #16C172);
  animation: glowGreen 1.4s ease-in-out infinite;
}
.mic-btn.active::before { border-color: #16C172; }
@keyframes glowGreen {
  0%   { box-shadow: 0 0 0 0 rgba(22,193,114,0.55); }
  50%  { box-shadow: 0 0 0 20px rgba(22,193,114,0.05); }
  100% { box-shadow: 0 0 0 0 rgba(22,193,114,0.55); }
}
/* ENDED: dim gold, disabled. */
.mic-btn.ended {
  animation: none; opacity: 0.45; cursor: default; filter: grayscale(0.3);
}
.mic-btn.ended::before { display: none; }

/* Waveform — shown only while a call is active. */
.waveform { display: none; align-items: flex-end; justify-content: center; gap: 4px; height: 26px; margin-top: 16px; }
.waveform.on { display: flex; }
.waveform span {
  width: 4px; height: 6px; border-radius: 2px; background: #3FE08A;
  transition: height .08s ease-out; box-shadow: 0 0 6px rgba(22,193,114,0.5);
}

/* End-call button — prominent, pulsing red. */
/* End Call (v1.8) — top-right of the card, compact, red "bulb" glow. Only in ACTIVE. */
.end-call-btn {
  position: absolute; top: 52px; right: 20px; z-index: 3;  /* below the timer chip */
  display: none; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: #dc2626; color: #fff; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.02em; border: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(220,38,38,0);
}
.end-call-btn:hover { background: #ef4444; }
.end-call-btn .end-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
.demo-card[data-state="ACTIVE"] .end-call-btn { display: inline-flex; animation: endCallBulb 1.8s ease-in-out infinite; }
@keyframes endCallBulb {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50%      { box-shadow: 0 0 24px 6px rgba(220,38,38,0.5); }
}
/* RECONNECTING — amber mic + status */
.mic-btn.reconnecting {
  background: radial-gradient(circle at 50% 40%, #F3C969, #E0A22B);
  animation: glowAmber 1.2s ease-in-out infinite;
}
.mic-btn.reconnecting::before { border-color: #E0A22B; }
@keyframes glowAmber {
  0%   { box-shadow: 0 0 0 0 rgba(224,162,43,0.55); }
  50%  { box-shadow: 0 0 0 18px rgba(224,162,43,0.05); }
  100% { box-shadow: 0 0 0 0 rgba(224,162,43,0.55); }
}

/* ---------- mobile nav drawer (v1.5) ---------- */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.nav-drawer.open { display: flex; }
.nav-drawer-close { position: absolute; top: 22px; right: 26px; font-size: 34px; line-height: 1; color: var(--text-soft); }
.nav-drawer-links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.nav-drawer-links a { font-family: var(--serif); font-size: 30px; color: var(--text); letter-spacing: -0.02em; }
.nav-drawer-links a.btn { font-family: var(--sans); font-size: 15px; margin-top: 12px; }

/* ---------- contact modal (v1.5) ---------- */
.taajlabs-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.taajlabs-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,9,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-hi); border-radius: 20px; padding: 30px 28px 26px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.85);
}
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1; color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal-title { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; }
.modal-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; margin-bottom: 18px; }
.modal-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal-form .field > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.modal-form .field > span em { font-style: normal; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.modal-form input, .modal-form textarea, .modal-form select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; color: var(--text); font-family: var(--sans); font-size: 14.5px; outline: none; transition: border-color .2s; width: 100%;
}
.modal-form textarea { resize: vertical; min-height: 96px; }
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { border-color: var(--accent); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: auto; flex: 0 0 auto; }
.phone-row input { flex: 1; }
.modal-error { color: #ff8a8a; font-size: 13px; margin-bottom: 12px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.modal-cancel { color: var(--text-muted); font-size: 14px; }
.modal-cancel:hover { color: var(--text); }
.modal-submit[disabled] { opacity: 0.6; cursor: default; }

/* Onboarding caption — shows below the mic on first tap only (v1.9). Saffron, fades in. */
.demo-hint {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; line-height: 1.4;
  text-align: center; margin-top: 12px;
  color: #f7931e; text-shadow: 0 0 12px rgba(247,147,30,0.4);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 400ms ease, transform 400ms ease;
}
.demo-hint.show { opacity: 1; transform: translateY(0); }
.demo-hint[hidden] { display: none; }

/* EXHAUSTED card content (v2.0.6) — centered text, no big button */
.exhausted-body { text-align: center; padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.exhausted-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--text-muted); }
.exhausted-lead { font-size: 15px; font-weight: 600; color: #f7931e; margin: 0; }
.exhausted-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; max-width: 320px; }
.exhausted-link { color: var(--accent); text-decoration: underline; cursor: pointer; }
.exhausted-tertiary { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }
.exhausted-msg-link { color: var(--text-soft); text-decoration: underline; cursor: pointer; }

/* TOP-UP MODAL (v2.0.6) */
.topup-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.topup-modal[hidden] { display: none; }
.topup-backdrop { position: absolute; inset: 0; background: rgba(6,6,10,0.7); opacity: 0; transition: opacity .25s ease-out; }
.topup-modal.open .topup-backdrop { opacity: 1; }
.topup-panel {
  position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: #12121a; border: 1px solid rgba(212,184,150,0.16); border-radius: 18px; padding: 30px 28px 24px;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s ease-out, transform .25s ease-out;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.topup-modal.open .topup-panel { opacity: 1; transform: translateY(0) scale(1); }
.topup-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--text-muted); font-size: 26px; line-height: 1; cursor: pointer; transition: color .2s; }
.topup-close:hover { color: var(--text); }
.topup-view { animation: none; }
.topup-view.view-in { animation: topupViewIn .3s ease-out; }
@keyframes topupViewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.topup-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; margin-bottom: 14px; }
.topup-dot { width: 7px; height: 7px; border-radius: 50%; background: #6FCf97; box-shadow: 0 0 8px #6FCf97; }
.topup-display { font-family: var(--serif, 'Fraunces', serif); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.1; margin: 0 0 6px;
  background: linear-gradient(100deg, #E8C97A, #f0a868 55%, #D4B896); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topup-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; line-height: 1.5; }
.tf { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.tf-label { font-size: 12px; font-weight: 500; color: var(--text-soft); }
.tf-input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .2s;
}
.tf-input:focus { border-color: var(--accent); }
.tf-input.tf-bad { border-color: #ff6b6b; }
select.tf-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.tf-help { font-size: 11px; color: var(--text-muted); }
.tf-err { font-size: 11.5px; color: #ff8a8a; font-style: normal; }
.tf-err-center { text-align: center; display: block; }
.tf-phone { display: flex; align-items: stretch; gap: 8px; }
.tf-cc { display: flex; align-items: center; padding: 0 13px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text-soft); font-family: var(--mono); }
.tf-phone .tf-input { flex: 1; }
.topup-cta-btn {
  width: 100%; margin-top: 6px; padding: 13px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(100deg, #E8C97A, #f0a868 50%, #E8C97A); color: #15110A; font-weight: 700; font-size: 15px;
  font-family: var(--sans); transition: transform .15s, filter .2s;
}
.topup-cta-btn:hover { filter: brightness(1.05); }
.topup-cta-btn:active { transform: scale(.99); }
.topup-cta-btn.loading { opacity: .7; pointer-events: none; }
.topup-sublinks { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.topup-sublinks-otp { justify-content: center; gap: 20px; }
.topup-sublinks a { font-size: 11.5px; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.topup-sublinks a:hover { color: var(--accent); }
.topup-disclaimer { font-size: 10.5px; color: var(--text-muted); opacity: .7; margin: 14px 0 0; line-height: 1.5; }
.topup-otp-big {
  width: 100%; margin: 8px 0 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; color: var(--text); font-family: var(--mono); font-size: 32px; letter-spacing: 0.5em; text-align: center; outline: none; transition: border-color .2s;
}
.topup-otp-big:focus { border-color: var(--accent); }
.topup-otp-big.tf-bad { border-color: #ff6b6b; }
.topup-view-success { text-align: center; padding: 20px 0; }
.topup-success-icon { display: flex; justify-content: center; margin-bottom: 12px; }

/* success toast on the demo card */
.demo-toast {
  position: absolute; top: 12px; left: 50%; transform: translate(-50%, -16px); z-index: 6;
  background: var(--accent); color: #15110A; font-size: 13px; font-weight: 600; padding: 9px 16px;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s ease-out, transform .3s ease-out; max-width: 90%; text-align: center;
}
.demo-toast.in { opacity: 1; transform: translate(-50%, 0); }

/* success toast on the demo card */
.demo-toast {
  position: absolute; top: 12px; left: 50%; transform: translate(-50%, -16px); z-index: 6;
  background: var(--accent); color: #15110A; font-size: 13px; font-weight: 600; padding: 9px 16px;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s ease-out, transform .3s ease-out; max-width: 90%; text-align: center;
}
.demo-toast.in { opacity: 1; transform: translate(-50%, 0); }

/* EXHAUSTED inline "contact taajlabs" link (v1.6) — plain hyperlink, left-aligned */
.contact-link-row { align-self: flex-start; padding: 2px 2px 6px; }
.contact-link {
  color: #f7931e; text-decoration: underline; font-size: 14px; cursor: pointer;
  background: none; border: none; padding: 0; font-family: var(--sans);
}
.contact-link:hover { color: #ffab4a; }

/* ---------- editorial content (deep pages) ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--text-soft); font-size: 16.5px; line-height: 1.7; margin-bottom: 1.1em; }
.prose p.lead { color: var(--text); }
.cap-section { padding-top: 96px; border-top: 1px solid var(--border); margin-top: 0; }
.cap-section .rn-big { font-family: var(--serif); font-size: clamp(40px,7vw,84px); color: var(--accent); line-height: 1; opacity: .9; }
.cap-section h2 { font-size: clamp(30px,4.5vw,52px); letter-spacing: -0.025em; margin: 8px 0 22px; }
.use-list { list-style: none; margin: 22px 0; }
.use-list li { color: var(--text-soft); padding: 9px 0 9px 26px; border-bottom: 1px solid var(--border); position: relative; font-size: 15px; }
.use-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ---------- legal block ---------- */
.legal-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; margin-top: 40px;
}
.legal-block .mono { margin-bottom: 12px; }
.legal-block p { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

/* ---------- contact ---------- */
.big-mailto { font-family: var(--serif); font-size: clamp(30px, 5vw, 60px); letter-spacing: -0.025em; color: var(--accent); transition: color .2s; word-break: break-word; }
.big-mailto:hover { color: var(--accent-hi); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; margin-top: 56px; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.info-card .mono { margin-bottom: 14px; color: var(--accent); }
.info-card p { color: var(--text-soft); font-size: 15px; line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band h2 { font-size: clamp(32px,5vw,60px); letter-spacing: -0.025em; }
.cta-band a.cta-link { color: var(--accent); font-style: italic; }
.cta-band a.cta-link:hover { color: var(--accent-hi); }

/* ---------- footer ---------- */
.footer { margin-top: var(--section-gap); border-top: 1px solid var(--border); padding: 50px 0 60px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer .left { max-width: 320px; }
.footer .left .legal { color: var(--text-muted); font-size: 13px; margin-top: 14px; line-height: 1.6; }
.footer .right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-size: 13.5px; }
.footer .right a, .footer .right span { color: var(--text-soft); }
.footer .right a:hover { color: var(--accent); }
.footer .copy { color: var(--text-muted); }

/* ============================================================
   v1.7 — site-wide additions (nav active, sections, new pages)
   Reuses existing tokens: --accent (#D4B896), --bg, --serif, etc.
   ============================================================ */

/* active nav + Contact button as link */
.nav-links a.active { color: var(--accent); }
.nav-links a[data-contact-open] { cursor: pointer; }
.nav-drawer-links a.active { color: var(--accent); }

/* toast (non-homepage contact success) */
.site-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
  background: var(--accent); color: #15110A; font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: 999px; z-index: 400; opacity: 0;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7); transition: opacity .35s, transform .35s;
}
.site-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* shared section sub-tagline */
.section-sub { color: var(--text-soft); font-size: 16px; margin-top: 14px; max-width: 44em; }
.section-head { margin-bottom: 40px; }

/* AI modalities grid (homepage) */
.modality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modality-tile {
  display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .25s, background .25s, transform .25s;
}
.modality-tile:hover { border-color: var(--accent); background: var(--bg-card-hi); transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(212,184,150,0.25); }
.modality-tile .ic { font-size: 26px; line-height: 1; }
.modality-tile h3 { font-size: 20px; font-weight: 500; margin: 14px 0 8px; letter-spacing: -0.01em; }
.modality-tile p { color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.modality-tile .go { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* industries chips */
.industry-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-industry {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-soft); font-size: 13.5px; background: var(--bg-card);
}
.chip-industry.custom { border-color: var(--accent); color: var(--accent); background: rgba(212,184,150,0.08); font-weight: 500; }

/* "we also build" teaser */
.also-build .build-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 22px; }
.build-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-soft); }
.build-item .ic { font-size: 22px; }

/* recent work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; transition: border-color .25s, transform .25s; }
.work-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.work-card .ic { font-size: 24px; }
.work-card h3 { font-size: 17px; font-weight: 500; margin: 12px 0 8px; letter-spacing: -0.01em; }
.work-card p { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }
.work-card .result { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }

/* process timeline */
.process-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process-step { position: relative; padding-top: 44px; }
.process-step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; }
.process-step h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.process-step p { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }

/* about preview + generic CTA band */
.about-preview p { color: var(--text-soft); font-size: 17px; line-height: 1.7; max-width: 40em; }
.final-cta { text-align: center; padding: 70px 0 0; }
.final-cta h2 { font-size: clamp(30px,4.5vw,52px); letter-spacing: -0.025em; }
.final-cta p { color: var(--text-soft); margin: 14px 0 26px; }

/* ---------- /ai, /services, /about page heros ---------- */
.page-hero { padding: 70px 0 40px; }
.page-hero .overline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(38px,6vw,72px); line-height: 1.02; letter-spacing: -0.03em; margin: 16px 0 20px; }
.page-hero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2.2vw,23px); color: var(--text-soft); max-width: 26em; line-height: 1.5; }
.page-hero .hero-cta { margin-top: 30px; }

/* /ai modality anchor sections */
.modality-section { padding: 60px 0; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.modality-section .mhead { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.modality-section .mhead .ic { font-size: 30px; }
.modality-section .mhead h2 { font-size: clamp(26px,3.5vw,40px); letter-spacing: -0.02em; }
.modality-section .mtag { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.modality-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.modality-body p { color: var(--text-soft); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.modality-body ul { list-style: none; margin: 14px 0; }
.modality-body li { color: var(--text-soft); font-size: 14.5px; padding: 6px 0 6px 24px; position: relative; }
.modality-body li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.modality-body .who { font-size: 13.5px; color: var(--text-muted); margin-top: 10px; }

/* chat mockups */
.mock { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mock.wa { background: #0b141a; }
.mock .m { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.mock .m.user { align-self: flex-end; background: var(--accent); color: #15110A; border-bottom-right-radius: 4px; }
.mock .m.bot { align-self: flex-start; background: var(--bg-card-hi); border: 1px solid var(--border); color: var(--text-soft); border-bottom-left-radius: 4px; }
.mock.wa .m.user { background: #005c4b; color: #e9edef; }
.mock.wa .m.bot { background: #202c33; color: #e9edef; border: none; }
.mock .m .lbl { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 3px; }
.mock .product-card { align-self: flex-start; background: #202c33; color: #e9edef; border-radius: 12px; padding: 12px; font-size: 13px; max-width: 82%; }
.mock .product-card .price { color: #8fd6c4; font-weight: 600; margin-top: 4px; }
.mock-flow { display: flex; flex-direction: column; gap: 10px; }
.mock-flow .node { background: var(--bg-card-hi); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--text-soft); }
.mock-flow .arrow { text-align: center; color: var(--accent); font-size: 16px; }

/* industry detail grid (/ai) */
.industry-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.ind-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.ind-card h3 .ic { margin-right: 8px; }
.ind-card p { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 4px; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 18px 0; font-family: var(--serif); font-size: 19px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-soft); font-size: 15px; line-height: 1.7; padding: 0 0 20px; max-width: 60em; }

/* /services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color .25s, background .25s, transform .25s; }
.service-tile:hover { border-color: var(--border-hi); background: var(--bg-card-hi); transform: translateY(-3px); }
.service-tile .ic { font-size: 26px; }
.service-tile h3 { font-size: 20px; font-weight: 500; margin: 14px 0 10px; letter-spacing: -0.01em; }
.service-tile p { color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.service-tile .stack { margin-top: 16px; }
.service-tile .inline-link { color: var(--accent); text-decoration: underline; font-size: 13.5px; }

/* /about */
.about-story p { color: var(--text-soft); font-size: 17px; line-height: 1.75; margin-bottom: 1.2em; max-width: 46em; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.principle { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.principle h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; color: var(--accent); }
.principle p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.legal-note { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; margin-top: 40px; }
.legal-note p { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

/* journal index */
.journal-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-width: 900px; }
.journal-row { display: block; padding: 24px 0; border-bottom: 1px solid var(--border); transition: padding-left .2s; }
.journal-row:hover { padding-left: 8px; }
.journal-row .cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.journal-row h3 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; margin: 8px 0; }
.journal-row .dek { color: var(--text-soft); font-size: 14.5px; }
.journal-row .rt { color: var(--text-muted); font-size: 12px; margin-top: 6px; }

/* journal index cards (v1.7 correction) */
.journal-cards { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.journal-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; transition: border-color .25s, transform .25s, background .25s; }
.journal-card:hover { border-color: var(--accent); background: var(--bg-card-hi); transform: translateY(-3px); box-shadow: 0 24px 60px -34px rgba(212,184,150,0.25); }
.journal-card .cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.journal-card .cat.playbook { color: #6FB6D9; }
.journal-card h2 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; margin: 12px 0 10px; line-height: 1.12; }
.journal-card.featured { padding: 38px 34px; }
.journal-card.featured h2 { font-size: clamp(28px,3.4vw,40px); }
.journal-card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; max-width: 54em; }
.journal-card .rt { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.journal-more { color: var(--text-muted); font-size: 13.5px; margin-top: 28px; font-family: var(--mono); letter-spacing: 0.06em; }

/* article (blog post) */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-family: var(--serif); font-size: clamp(30px,5vw,52px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.article .post-meta { color: var(--text-muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 32px; }
.article p { color: var(--text-soft); font-size: 16.5px; line-height: 1.8; margin-bottom: 1.1em; }
.article h2 { font-family: var(--serif); font-size: clamp(24px,3.5vw,34px); margin: 40px 0 14px; letter-spacing: -0.02em; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article ul, .article ol { margin: 14px 0 20px 22px; }
.article li { color: var(--text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--text-soft); }
.article th { background: var(--bg-card); color: var(--text); }
.article a { color: var(--accent); text-decoration: underline; }
.article .callout { background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 24px 0; }

/* ---------- ported journal article pages (v1.7) ---------- */
.article-hero { max-width: 820px; margin: 0 auto; padding: 48px var(--pad) 6px; }
.article-hero-blob, .article-divider { display: none; } /* drop taajsingh decorative bits */
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.article-tag { color: var(--accent); }
.article-meta-divider { width: 1px; height: 12px; background: var(--border-hi); display: inline-block; }
.article-hero h1 { font-family: var(--serif); font-size: clamp(30px,5vw,52px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.article-lede { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2.2vw,22px); color: var(--text-soft); line-height: 1.55; }
.hero-image-wrap { max-width: 900px; margin: 30px auto; padding: 0 var(--pad); }
.hero-image { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.article-wrap { max-width: 720px; margin: 0 auto; padding: 24px var(--pad) 0; }
.hero-svg-wrap { max-width: 900px; margin: 26px auto 0; padding: 0 var(--pad); }
.hero-svg-wrap svg { width: 100%; height: auto; display: block; background: linear-gradient(160deg, var(--bg-card-hi), var(--bg-card)); border: 1px solid var(--border); border-radius: 16px; }
.article-tag.frontier { color: var(--accent); }
.article-tag.playbook { color: #6FB6D9; }
.article-wrap table th { background: rgba(212,184,150,0.12); color: var(--accent); }
.article-wrap td.y { color: #6FCf97; font-weight: 600; text-align: center; }
.article-wrap td.cost { color: var(--accent); text-align: center; }
.article-wrap .decision-table td:not(:first-child) { text-align: center; }
.article-wrap h2 { font-family: var(--serif); font-size: clamp(24px,3.5vw,34px); margin: 42px 0 14px; letter-spacing: -0.02em; }
.article-wrap h3 { font-size: 20px; margin: 30px 0 10px; }
.article-wrap p { color: var(--text-soft); font-size: 16.5px; line-height: 1.8; margin-bottom: 1.1em; }
.article-wrap ul, .article-wrap ol { margin: 14px 0 20px 22px; }
.article-wrap li { color: var(--text-soft); font-size: 16px; line-height: 1.75; margin-bottom: 8px; }
.article-wrap strong { color: var(--text); }
.article-wrap table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.article-wrap th, .article-wrap td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--text-soft); }
.article-wrap th { background: var(--bg-card); color: var(--text); }
.article-wrap a { color: var(--accent); text-decoration: underline; }
.article-wrap .callout { background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 24px 0; }
.article-wrap .callout strong { display: block; margin-bottom: 6px; color: var(--accent); }
.post-cta { background: var(--bg-card); border: 1px solid var(--border-hi); border-radius: var(--radius); padding: 30px 28px; margin: 44px 0 10px; text-align: center; }
.post-cta h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.post-cta p { color: var(--text-soft); margin-bottom: 18px; }
.related { border-top: 1px solid var(--border); margin-top: 56px; }
.related-inner { max-width: 1200px; margin: 0 auto; padding: 50px var(--pad); }
.related h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 24px; letter-spacing: -0.02em; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .25s, transform .25s; }
.related-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.related-card .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.related-card h3 { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--text); }
@media (max-width: 920px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* /contact page (v2.0.16) */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: block; transition: transform .18s, border-color .18s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-card .cc-ic { font-size: 26px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; margin: 0 0 6px; }
.contact-card .cc-val { color: var(--accent); font-size: 15px; margin: 0 0 4px; word-break: break-word; }
.contact-card .cc-note { color: var(--text-muted); font-size: 12.5px; margin: 0; }
.contact-form-wrap { max-width: 720px; }
.section-sub { color: var(--text-muted); font-size: 14px; margin: 6px 0 22px; }
.page-contact-form .pcf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.page-contact-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.page-contact-form .field > span { font-size: 13px; color: var(--text-soft); }
.page-contact-form input, .page-contact-form textarea, .page-contact-form select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  color: var(--text); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color .2s; width: 100%;
}
.page-contact-form input:focus, .page-contact-form textarea:focus, .page-contact-form select:focus { border-color: var(--accent); }
.page-contact-form .phone-row { display: flex; gap: 8px; }
.page-contact-form .phone-row select { width: auto; flex: 0 0 auto; }
.pcf-submit { margin-top: 6px; }
.pcf-ok { color: #6FCf97; font-size: 13.5px; margin: 4px 0 14px; }
.contact-office { text-align: center; color: var(--text-soft); }
.contact-office .mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.contact-office .office-line { font-size: 16px; margin: 0 0 4px; }
.contact-office .office-tz { color: var(--text-muted); font-size: 13px; margin: 0; }
@media (max-width: 700px) {
  .contact-cards { grid-template-columns: 1fr; }
  .page-contact-form .pcf-grid { grid-template-columns: 1fr; gap: 0; }
}

/* four-column footer (v2.0.16) */
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-cols h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #f7931e; margin-bottom: 16px; }
.footer-cols .col a { display: block; color: var(--text-soft); font-size: 14px; padding: 4px 0; transition: color .15s, filter .15s; }
.footer-cols .col a:hover { color: var(--accent); filter: brightness(1.15); }
.footer-cols .col.brand .brand { margin-bottom: 4px; }
.footer-cols .col.brand .wordmark { font-family: var(--serif); font-style: italic; font-size: 25px; color: var(--accent); }
.footer-cols .tag { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 14px 0 0; max-width: 26em; }
.footer-cols .fp { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.6; padding: 4px 0; }
.footer-cols .fp.note { opacity: .8; }
.footer-bar { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 12.5px; }
.footer-bar a { color: var(--text-muted); }
.footer-bar a:hover { color: var(--accent); }
.footer-copy { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; color: var(--text-muted); font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  :root { --section-gap: 80px; --pad: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cap-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }          /* replaced by drawer CTA */
  .nav-toggle { display: flex; }
  .stats { gap: 26px; }
  .footer-inner { flex-direction: column; }
  .footer .right { align-items: flex-start; }
}

/* Tablet: 3-col grids → 2-col; footer stacks. */
@media (max-width: 920px) {
  .modality-grid, .work-grid, .services-grid, .industry-detail-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: 1fr 1fr; gap: 22px; }
  .modality-grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Tablet / large phone: give the demo card breathing room below the fold. */
@media (max-width: 768px) {
  .demo-card { margin-bottom: 24px; padding-bottom: 28px; }
  .modal-card { padding: 26px 20px 22px; }
  .modal-title { font-size: 23px; }
}

/* Phones: stats stack consistently (one per row, no 2+1 split). */
@media (max-width: 600px) {
  .stats { flex-direction: column; gap: 18px; align-items: flex-start; }
  .stat { width: 100%; }
  .nav-drawer-links a { font-size: 26px; }
  .modality-grid, .work-grid, .services-grid, .industry-detail-grid, .principles, .process-timeline { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hero-headline .l2 { padding-left: 0; }
  .demo-card { padding: 18px 18px 26px; }
}
