/* =========================================================
   Parag Jawale — Portfolio
   Design system: Auros style reference ("Abyssal terminal
   with bioluminescent data orbs"). Tokens below are taken
   directly from the DESIGN.md spec.
   ========================================================= */

:root {
  /* Colors — teal surface stack */
  --color-liquid-abyss: #012624;   /* canvas */
  --color-liquid-deep: #011d1c;    /* recessed surface (footer) */
  --color-liquid-kelp: #003734;    /* raised card surface */
  --color-liquid-mist: #edfffe;    /* emphasized body text */
  --color-platinum: #ffffff;       /* headings, nav, icons */
  --color-silver-mist: #bbc7c6;    /* secondary body text */
  --color-ash: #f2f2f2;            /* pull-quote fallback */
  --color-slate-deep: #707777;     /* low-emphasis surface tint */
  --color-lavender-phosphor: #fde9ff; /* stats / emphasis figures ONLY */

  --gradient-aurora: linear-gradient(90deg, #cbfffc 0%, #edfffe 26.25%, #fffdfa 47.57%, #fad1ff 88.96%);
  --text-on-gradient: #222222;

  /* Semantic aliases used throughout this file */
  --bg: var(--color-liquid-abyss);
  --bg-deep: var(--color-liquid-deep);
  --bg-kelp: var(--color-liquid-kelp);
  --text-primary: var(--color-platinum);
  --text-secondary: var(--color-silver-mist);
  --text-emphasis: var(--color-liquid-mist);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius-sm: 6px;   /* buttons, small elements */
  --radius-md: 16px;  /* cards — the complete shape vocabulary is 6/16 */

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing scale (base unit 4px) */
  --sp-12: 12px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px;
  --sp-28: 28px; --sp-32: 32px; --sp-36: 36px; --sp-40: 40px;
  --sp-48: 48px; --sp-64: 64px; --sp-80: 80px; --sp-120: 120px;
  --sp-140: 140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

@media (max-width: 767px) {
  .container { padding: 0 24px; }
}

.section {
  position: relative;
  padding: var(--sp-140) 0;
}

@media (max-width: 900px) {
  .section { padding: var(--sp-80) 0; }
}
@media (max-width: 600px) {
  .section { padding: var(--sp-64) 0; }
}

/* ---------- background texture ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* subtle cursor-follow glow, kept within the teal hue (not the aurora gradient) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 124, 0.10) 0%, rgba(0, 55, 52, 0.05) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

@media (max-width: 900px) {
  .cursor-glow { display: none; }
}

/* ---------- type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-20);
  display: block;
}

.section_hero .eyebrow,
.section_stats .eyebrow,
.section_statement .eyebrow {
  text-align: center;
}

.heading-h1 {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin: 0 0 var(--sp-28);
  text-align: center;
}

.heading-h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0 0 var(--sp-24);
}

.section_hero .heading-h1,
.section_statement .heading-h2,
.section_stats .heading-h2,
.section_contact .heading-h2 {
  text-align: center;
}

.text-lead {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--sp-12);
}

.section_experience .text-lead,
.section_skills .text-lead { margin-left: 0; }

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.text-link:hover .arrow-icon { background: rgba(3, 81, 75, 0.8); }

/* ---------- arrow icon button ---------- */

.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(3, 81, 75, 0.5);
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.arrow-icon-card {
  position: absolute;
  top: var(--sp-36);
  right: var(--sp-36);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--gradient-aurora);
  color: var(--text-on-gradient);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
  will-change: transform;
}
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  filter: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(1, 38, 36, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav_inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-24);
}

.nav_logo {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  justify-self: start;
}

.nav_links {
  display: flex;
  gap: var(--sp-24);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  justify-self: center;
}
.nav_links a { transition: color 0.25s; }
.nav_links a:hover { color: var(--text-primary); }

.nav .button { padding: 12px 20px; justify-self: end; }

.nav_burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  justify-self: end;
}
.nav_burger span {
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav_mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(1, 38, 36, 0.97);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 80px;
  left: 0; right: 0;
  z-index: 99;
}
.nav_mobile a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 860px) {
  .nav_links, .nav .button { display: none; }
  .nav_burger { display: flex; }
  .nav_mobile.is-open { display: flex; }
  .nav_inner { grid-template-columns: 1fr auto; }
}

/* ---------- hero ---------- */

.section_hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero_canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

/* achromatic teal glow only — the aurora gradient is reserved for the CTA button */
.hero_glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  /* soft radial gradients are cheap to composite; filter:blur() is NOT (it
     forced a repaint of this big layer on every scroll frame = the lag). */
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, rgba(167, 139, 250, 0.10) 38%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.hero_glow-alt {
  top: auto;
  bottom: -20%;
  width: 700px;
  height: 700px;
}

.hero_content { z-index: 2; }

.hero_cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  margin-top: var(--sp-40);
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  z-index: 2;
}
.scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.scroll-cue_line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--color-slate-deep), transparent);
  animation: scrollcue 2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- statement ---------- */

.section_statement { text-align: center; }
.section_statement .heading-h2 {
  font-size: clamp(32px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* ---------- stats ---------- */

.section_stats .container > *:not(.bento) { text-align: center; margin-left: auto; margin-right: auto; }

.bento {
  margin-top: var(--sp-64);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
}

.bento_box {
  background: var(--bg-kelp);
  border-radius: var(--radius-md);
  padding: var(--sp-36);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  text-align: left;
}

.bento_stat {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--color-lavender-phosphor);
  line-height: 1;
}

.bento_label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}
.bento_label span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
}

/* ---------- experience (feature row cards) ---------- */

.timeline {
  margin-top: var(--sp-64);
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
}

.timeline_item {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-48) var(--sp-36);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-40);
  transition: border-color 0.3s;
}
.timeline_item:hover { border-color: var(--border-strong); }

.timeline_head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  padding-right: 48px;
}
.timeline_head h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.timeline_role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 400;
}

.timeline_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.timeline_list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.timeline_list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-liquid-mist);
}

@media (max-width: 767px) {
  .timeline_item { grid-template-columns: 1fr; padding: var(--sp-32) var(--sp-24); gap: var(--sp-20); }
  .timeline_head { padding-right: 0; }
  .arrow-icon-card { top: var(--sp-24); right: var(--sp-24); }
}

/* ---------- skills ---------- */

.section_skills .eyebrow,
.section_skills .heading-h2 { text-align: left; }

.skills_grid {
  margin-top: var(--sp-40);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
}

.skill-pill {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.skill-pill:hover {
  border-color: transparent;
  background: var(--bg-kelp);
  color: var(--text-primary);
}

/* ---------- contact ---------- */

.section_contact {
  text-align: center;
  overflow: hidden;
}

.contact_cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  margin-top: var(--sp-40);
  flex-wrap: wrap;
}

/* ---------- footer (recessed well) ---------- */

.footer {
  background: var(--bg-deep);
  padding: var(--sp-64) 0;
}
@media (min-width: 768px) {
  .footer { padding: var(--sp-120) 0; }
}
.footer_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-12);
  font-size: 13px;
  color: var(--text-secondary);
}
.footer_links a { transition: color 0.25s; }
.footer_links a:hover { color: var(--text-primary); }

/* ---------- scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================================
   MULTI-PAGE EXTENSIONS
   ========================================================================= */

/* ---- accessibility skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gradient-aurora);
  color: var(--text-on-gradient);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--color-lavender-phosphor);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- nav additions ---- */
.nav_logo span { color: var(--color-lavender-phosphor); }
.nav_links a.is-active { color: var(--text-primary); }
.nav_links a { position: relative; }
.nav_links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--color-lavender-phosphor);
}
.nav_mobile a.is-active { color: var(--text-primary); }

/* ---- hero meta line ---- */
.hero_meta {
  margin-top: var(--sp-32);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- generic section heads ---- */
.section_head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-24);
  flex-wrap: wrap;
  margin-bottom: var(--sp-16);
}
.section_head .eyebrow { margin-bottom: var(--sp-12); }
.section_head .heading-h2 { margin: 0; }
.section_head .text-link { margin-top: 0; }

.section_deep { background: var(--bg-deep); }
.section_tight { padding-top: var(--sp-64); }

/* ---- interior page hero ---- */
.section_pagehero {
  padding: 150px 0 var(--sp-64);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .section_pagehero { padding: 120px 0 var(--sp-48); } }
.hero_glow-page {
  top: -30%;
  width: 800px;
  height: 800px;
  opacity: 0.7;
}
.heading-left { text-align: left !important; }
.lead-left { margin-left: 0 !important; margin-right: 0 !important; max-width: 720px; }

/* ---- breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--sp-24);
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb_sep { color: var(--color-slate-deep); }
.breadcrumb span[aria-current] { color: var(--text-primary); }

/* ---- approach grid ---- */
.approach-grid {
  margin-top: var(--sp-64);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-20);
  text-align: left;
}
.approach-card {
  background: var(--bg-kelp);
  border-radius: var(--radius-md);
  padding: var(--sp-36);
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.approach-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.approach-card h3 {
  font-size: 19px; font-weight: 500; color: var(--text-primary);
  margin: 0 0 var(--sp-12); letter-spacing: -0.01em;
}
.approach-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 767px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---- work cards ---- */
.work-grid {
  margin-top: var(--sp-48);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-20);
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  background: var(--bg-kelp);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-36);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.work-card_sector {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-lavender-phosphor);
}
.work-card h3 {
  margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--text-primary); line-height: 1.15;
}
.work-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); flex: 1; }
@media (max-width: 767px) { .work-grid { grid-template-columns: 1fr; } }

/* ---- tags ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11.5px; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.tag-accent {
  background: rgba(253, 233, 255, 0.08);
  border-color: rgba(253, 233, 255, 0.25);
  color: var(--color-lavender-phosphor);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px;
}
.tag-ghost { background: transparent; }

/* ---- tools teaser (home) ---- */
.tool-teaser {
  margin-top: var(--sp-40);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-20);
}
.tool-teaser_card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-32);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tool-teaser_card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.tool-teaser_card h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 500; color: var(--text-primary); }
.tool-teaser_card p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 860px) { .tool-teaser { grid-template-columns: 1fr; } }

/* ---- industries ---- */
.industry-grid {
  margin-top: var(--sp-48);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-20);
}
.industry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-32);
  transition: background 0.3s, border-color 0.3s;
}
.industry-card:hover { background: var(--bg-kelp); border-color: var(--border-strong); }
.industry-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.01em; }
.industry-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 860px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---- prose (about) ---- */
.narrow { max-width: 820px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 var(--sp-24); }
.prose_lead {
  font-size: clamp(20px, 2.4vw, 26px) !important;
  line-height: 1.45 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-28) !important;
}

/* ---- split cards (about) ---- */
.split {
  margin-top: var(--sp-48);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-20);
}
.split_card {
  background: var(--bg-kelp);
  border-radius: var(--radius-md);
  padding: var(--sp-40);
  border: 1px solid var(--border);
}
.split_card h3 { margin: 0 0 var(--sp-20); font-size: 20px; font-weight: 500; color: var(--text-primary); }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }

/* ---- tick list ---- */
.ticklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticklist li {
  position: relative; padding-left: 30px;
  font-size: 15px; line-height: 1.55; color: var(--text-secondary);
}
.ticklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(253, 233, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4' stroke='%23fde9ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.ticklist-sm li { font-size: 14px; padding-left: 26px; }
.ticklist-sm li::before { width: 16px; height: 16px; }

/* ---- grid-2 / line items ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-48); }
@media (max-width: 767px) { .grid-2 { grid-template-columns: 1fr; gap: var(--sp-32); } }
.line-item { padding: var(--sp-20) 0; border-bottom: 1px solid var(--border); }
.line-item:first-of-type { border-top: 1px solid var(--border); }
.line-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; color: var(--text-primary); }
.line-item p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.line-item-lg h3 { font-size: 22px; }
.about_cta { margin-top: var(--sp-48); display: flex; gap: var(--sp-16); flex-wrap: wrap; }

/* ---- experience timeline ---- */
.xp { display: flex; flex-direction: column; }
.xp_item { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-24); }
.xp_marker { display: flex; flex-direction: column; align-items: center; }
.xp_marker span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-lavender-phosphor);
  margin-top: 6px; flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(253, 233, 255, 0.08);
}
.xp_item:not(:last-child) .xp_marker { position: relative; }
.xp_item:not(:last-child) .xp_marker::after {
  content: ""; width: 1px; flex: 1; margin-top: 8px;
  background: linear-gradient(var(--border-strong), transparent);
}
.xp_body { padding-bottom: var(--sp-64); }
.xp_head { display: flex; justify-content: space-between; gap: var(--sp-20); flex-wrap: wrap; align-items: baseline; }
.xp_company { margin: 0; font-size: 26px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.02em; }
.xp_role { margin: 4px 0 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-lavender-phosphor); }
.xp_meta { display: flex; flex-direction: column; text-align: right; gap: 2px; }
.xp_period { font-size: 14px; color: var(--text-primary); }
.xp_place { font-size: 13px; color: var(--text-secondary); }
.xp_summary { margin: var(--sp-20) 0; font-size: 16.5px; line-height: 1.6; color: var(--text-emphasis); }
.xp_list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.xp_list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.xp_list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-liquid-mist); }
@media (max-width: 600px) {
  .xp_meta { text-align: left; }
  .xp_company { font-size: 22px; }
}
.pill-cloud { margin-top: var(--sp-40); }

/* ---- case studies ---- */
.case_grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-64); }
.case_meta { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: var(--sp-16); }
.case_num {
  font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1;
  color: var(--color-lavender-phosphor); letter-spacing: -0.04em;
  margin-bottom: var(--sp-12);
}
.case_metaline { font-size: 14px; color: var(--text-primary); display: flex; flex-direction: column; gap: 2px; }
.case_metalabel { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.case_tags { margin-top: var(--sp-12); }
.case_title { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; color: var(--text-primary); margin: 0 0 var(--sp-20); line-height: 1.1; }
.case_summary { font-size: 18px; line-height: 1.6; color: var(--text-emphasis); margin: 0 0 var(--sp-40); }
.case_block { margin-bottom: var(--sp-40); }
.case_h { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-lavender-phosphor); margin: 0 0 var(--sp-16); }
.case_block p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.case_metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-16); }
.case_metric {
  background: var(--bg-kelp); border-radius: var(--radius-md);
  padding: var(--sp-24); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.case_metric_num { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; color: var(--color-lavender-phosphor); letter-spacing: -0.02em; line-height: 1; }
.case_metric_label { font-size: 13.5px; color: var(--text-secondary); line-height: 1.4; }
.case_stack { margin-top: var(--sp-24); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
  .case_grid { grid-template-columns: 1fr; gap: var(--sp-32); }
  .case_meta { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-24); }
  .case_num { margin-bottom: 0; }
}
@media (max-width: 480px) { .case_metrics { grid-template-columns: 1fr; } }

/* ---- tools page ---- */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-24); }
.tool-card {
  background: var(--bg-kelp);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-40);
  display: flex; flex-direction: column; gap: var(--sp-16);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tool-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.tool-card_top { display: flex; align-items: center; justify-content: space-between; }
.tool-card_index { font-size: 13px; letter-spacing: 0.12em; color: var(--text-secondary); }
.tool-card_name { margin: 0; font-size: 23px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.02em; }
.tool-card_tagline { margin: 0; font-size: 15px; color: var(--color-liquid-mist); font-weight: 500; }
.tool-card_desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.tool-card_how { margin-top: 4px; display: flex; flex-direction: column; gap: 12px; }
.tool-card_impact {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding-top: var(--sp-16); border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--color-lavender-phosphor);
}
@media (max-width: 767px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---- skills page ---- */
.skill-groups { display: flex; flex-direction: column; gap: var(--sp-48); }
.skill-group { border-top: 1px solid var(--border); padding-top: var(--sp-32); }
.skill-group_title { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-lavender-phosphor); margin: 0 0 var(--sp-24); }

/* ---- cert cards ---- */
.cert-grid { margin-top: var(--sp-40); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-20); }
.cert-card {
  display: flex; gap: var(--sp-16); align-items: flex-start;
  background: var(--bg-kelp); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-28);
}
.cert-card_icon { color: var(--color-lavender-phosphor); flex-shrink: 0; margin-top: 2px; }
.cert-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.cert-card p { margin: 0; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 860px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---- contact page ---- */
.contact_layout { display: grid; grid-template-columns: 340px 1fr; gap: var(--sp-64); }
.contact_info_title { font-size: 20px; font-weight: 500; color: var(--text-primary); margin: 0 0 var(--sp-24); }
.contact_line {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--sp-16) 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--ease);
}
.contact_line:first-of-type { border-top: 1px solid var(--border); }
a.contact_line:hover { padding-left: 8px; }
.contact_line_label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.contact_line_val { font-size: 15.5px; color: var(--text-primary); }
.contact_line-static { cursor: default; }
.contact_resume { margin-top: var(--sp-28); }
.contact_formwrap {
  background: var(--bg-kelp); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-48);
}
@media (max-width: 900px) {
  .contact_layout { grid-template-columns: 1fr; gap: var(--sp-40); }
  .contact_formwrap { padding: var(--sp-32) var(--sp-24); }
}

/* ---- forms ---- */
.form_row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-20); }
@media (max-width: 560px) { .form_row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-20); }
.field label { font-size: 13px; letter-spacing: 0.04em; color: var(--text-primary); font-weight: 500; }
.field_opt { color: var(--text-secondary); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  background: rgba(1, 29, 28, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text-primary);
  font-family: var(--font); font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-lavender-phosphor);
  background: rgba(1, 29, 28, 0.9);
}
.field textarea { resize: vertical; min-height: 130px; }
.field_err { font-size: 12.5px; color: #ff9db1; }
.form_submit { margin-top: var(--sp-12); border: none; cursor: pointer; font-family: var(--font); }
.form_note { margin: var(--sp-20) 0 0; font-size: 13px; color: var(--text-secondary); }
.form_note a, .alert a { color: var(--color-lavender-phosphor); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-md); padding: var(--sp-32); }
.alert-ok { background: rgba(203, 255, 252, 0.06); border: 1px solid rgba(203, 255, 252, 0.25); }
.alert-ok h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; color: var(--text-primary); }
.alert-ok p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.alert-err { background: rgba(255, 100, 120, 0.08); border: 1px solid rgba(255, 100, 120, 0.3); color: #ffb3c0; font-size: 14px; margin-bottom: var(--sp-24); }

/* ---- footer expanded ---- */
.footer_top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-48);
  padding-bottom: var(--sp-48);
  border-bottom: 1px solid var(--border);
}
.footer_logo { font-size: 20px; font-weight: 500; letter-spacing: 0.05em; color: var(--text-primary); }
.footer_brand p { margin: var(--sp-16) 0 0; font-size: 14px; color: var(--text-secondary); max-width: 360px; line-height: 1.5; }
.footer_loc { font-size: 13px !important; color: var(--color-slate-deep) !important; }
.footer_nav { display: flex; flex-direction: column; gap: 12px; }
.footer_head { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.footer_nav a { font-size: 14px; color: var(--text-secondary); }
.footer_nav a:hover { color: var(--text-primary); }
.footer_bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: var(--sp-24); font-size: 13px; color: var(--color-slate-deep);
}
@media (max-width: 767px) {
  .footer_top { grid-template-columns: 1fr; gap: var(--sp-32); }
}

/* ---- 404 ---- */
.section_404 { min-height: 80svh; }

/* =========================================================================
   REVAMP v2 — color, imagery, motion  (loaded last so it wins)
   ========================================================================= */

:root {
  --c-cyan:   #22d3ee;
  --c-teal:   #7de3dd;
  --c-violet: #a78bfa;
  --c-amber:  #ffcf6b;
  --c-pink:   #fbcfe8;
  --grad-brand: linear-gradient(100deg, #7de3dd 0%, #22d3ee 34%, #a78bfa 72%, #fbcfe8 100%);
  --grad-heading: linear-gradient(92deg, #ffffff 0%, #cffafe 40%, #d8c9ff 100%);
}

/* richer page background: subtle color pools baked into the body (static, cheap) */
body {
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 12%, rgba(167, 139, 250, 0.10), transparent 55%),
    var(--bg);
  background-attachment: scroll;
}

/* accent color on eyebrows for energy */
.eyebrow { color: var(--c-teal); opacity: 0.95; }

/* gradient headline text on the big statements */
.section_hero .heading-h1,
.section_statement .heading-h2,
.section_404 .heading-h1 {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* colored glow accents per deep section (cheap radial gradient, no filter) */
.section_deep { position: relative; overflow: hidden; }
.section_deep::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  top: -280px; right: -180px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 66%);
  pointer-events: none;
}

/* gently floating hero orbs (transform only = GPU cheap, low frequency) */
@media (prefers-reduced-motion: no-preference) {
  .hero_glow { animation: floaty 14s ease-in-out infinite; }
  .hero_glow-alt { animation: floaty 18s ease-in-out infinite reverse; }
}
@keyframes floaty {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(26px); }
}

/* ---- image treatments ---- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  line-height: 0;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.media::after { /* teal tint so photos sit inside the theme */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(1, 38, 36, 0.10), rgba(1, 29, 28, 0.55));
  pointer-events: none;
}
.media-credit {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  font-size: 10px; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  background: rgba(1, 29, 28, 0.35);
  padding: 2px 7px; border-radius: 100px;
  line-height: 1.4;
}

/* case study hero image */
.case_media { aspect-ratio: 16 / 8; margin-bottom: var(--sp-32); }
.case:hover .case_media img { transform: scale(1.04); }

/* work card image */
.work-card { padding: 0; overflow: hidden; }
.work-card_media { aspect-ratio: 16 / 9; border: none; border-radius: 0; }
.work-card_body { padding: var(--sp-32); display: flex; flex-direction: column; gap: var(--sp-16); flex: 1; }
.work-card:hover .work-card_media img { transform: scale(1.05); }

/* about image */
.about_media { aspect-ratio: 4 / 3; }
.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-64);
  align-items: start;
}
.story-grid .about_media { position: sticky; top: 110px; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: var(--sp-32); }
  .story-grid .about_media { position: static; order: -1; }
}

/* tools hero strip image */
.tools_banner { aspect-ratio: 21 / 6; margin-top: var(--sp-40); }

/* ---- colorized stat / metric accents ---- */
.bento_box:nth-child(1) .bento_stat { color: var(--c-teal); }
.bento_box:nth-child(2) .bento_stat { color: var(--c-cyan); }
.bento_box:nth-child(3) .bento_stat { color: var(--c-violet); }
.bento_box:nth-child(4) .bento_stat { color: var(--c-amber); }
.bento_box {
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bento_box:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.case_metric:nth-child(4n+1) .case_metric_num { color: var(--c-teal); }
.case_metric:nth-child(4n+2) .case_metric_num { color: var(--c-cyan); }
.case_metric:nth-child(4n+3) .case_metric_num { color: var(--c-violet); }
.case_metric:nth-child(4n)   .case_metric_num { color: var(--c-amber); }

/* ---- cards: gradient top accent + colored hover glow ---- */
.approach-card, .tool-card, .work-card, .industry-card, .split_card, .cert-card {
  position: relative;
}
.approach-card::before, .tool-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad-brand);
  opacity: 0; transition: opacity 0.35s var(--ease);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.approach-card:hover::before, .tool-card:hover::before { opacity: 1; }
.tool-card:hover, .work-card:hover, .approach-card:hover {
  box-shadow: 0 24px 60px -30px rgba(34, 211, 238, 0.35);
}
.tool-card_impact { color: var(--c-teal); }
.tool-card_index { color: var(--c-violet); }

/* tags get a touch of color */
.tag-accent { color: var(--c-teal); border-color: rgba(125, 227, 221, 0.3); background: rgba(34, 211, 238, 0.07); }
.work-card_sector, .case_num, .case_h,
.skill-group_title, .contact_line_val, .cert-card_icon { }
.case_num { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* skill pills: colored hover */
.skill-pill:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  color: #ffffff;
}

/* industry cards get an accent left bar */
.industry-card { border-left: 2px solid transparent; }
.industry-card:hover { border-left-color: var(--c-cyan); }

/* nav logo dot + active underline in brand color */
.nav_logo span { color: var(--c-cyan); }
.nav_links a.is-active::after { background: var(--grad-brand); height: 2px; }
.nav.is-scrolled { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* buttons: keep aurora, add a soft colored shadow */
.button:not(.button-ghost) { box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.5); }

/* marquee-free animated underline on text links */
.text-link:hover .arrow-icon { background: var(--c-cyan); color: #04201e; }

/* section head divider accent */
.section_head { border-bottom: 1px solid var(--border); padding-bottom: var(--sp-20); }

/* pretty scrollbar (desktop) */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: rgba(34,211,238,0.4) transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-thumb { background: rgba(34,211,238,0.35); border-radius: 100px; border: 3px solid var(--bg); }
  *::-webkit-scrollbar-thumb:hover { background: rgba(34,211,238,0.55); }
}

/* selection color */
::selection { background: rgba(167, 139, 250, 0.35); color: #fff; }

/* ---- live product badge + visit link ---- */
.tool-card-live { border-color: rgba(34, 211, 238, 0.28); }
.tool-card-live::before { opacity: 1; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee; margin-right: 2px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: livepulse 2s ease-out infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.tool-card_link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--sp-16); align-self: flex-start;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--grad-brand); color: var(--text-on-gradient);
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.tool-card_link:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---- n8n workflow cards ---- */
.flows-grid {
  margin-top: var(--sp-48);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-20);
}
@media (max-width: 767px) { .flows-grid { grid-template-columns: 1fr; } }
.flow-card {
  background: rgba(1, 29, 28, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-32);
  display: flex; flex-direction: column; gap: var(--sp-16);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.flow-card:hover { border-color: rgba(34, 211, 238, 0.35); transform: translateY(-3px); }
.flow-card_head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); }
.flow-card_head h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.01em; }
.flow-trigger {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-amber); border: 1px solid rgba(255, 207, 107, 0.3);
  background: rgba(255, 207, 107, 0.08);
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow_step {
  font-size: 12px; color: var(--text-primary);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 6px 11px; border-radius: 8px; white-space: nowrap;
}
.flow_arrow { color: var(--c-cyan); font-size: 14px; }
.flow-card_desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.flow-card_replaces { margin: 0; font-size: 13px; color: var(--text-secondary); }
.flow-card_replaces span {
  color: var(--c-violet); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-right: 6px;
}
.flow-card_dl {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  align-self: flex-start; font-size: 13px; color: var(--c-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3); border-radius: var(--radius-sm);
  padding: 8px 13px; transition: background 0.25s, border-color 0.25s;
}
.flow-card_dl:hover { background: rgba(34, 211, 238, 0.09); border-color: rgba(34, 211, 238, 0.5); }
.flow-note { margin-top: var(--sp-32); font-size: 13.5px; color: var(--text-secondary); max-width: 720px; }
.flow-note code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* =========================================================================
   LIVE AGENT DEMOS
   ========================================================================= */
.agent-demo { margin-top: var(--sp-16); border-top: 1px solid var(--border); padding-top: var(--sp-16); }
.agent-demo_toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: var(--c-teal); font-family: var(--font); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.02em;
}
.agent-demo_toggle .agent-demo_chev { transition: transform 0.3s var(--ease); }
.agent-demo.is-open .agent-demo_chev { transform: rotate(180deg); }
.agent-demo_panel { display: none; margin-top: var(--sp-16); }
.agent-demo.is-open .agent-demo_panel { display: block; animation: fadeIn 0.3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.agent-demo_lbl { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.agent-demo_input {
  width: 100%; background: rgba(1, 20, 19, 0.7);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text-primary);
  font-family: var(--font); font-size: 14px; line-height: 1.5; resize: vertical; min-height: 120px;
  transition: border-color 0.25s;
}
.agent-demo_input:focus { outline: none; border-color: var(--c-cyan); }
.agent-demo_actions { display: flex; align-items: center; gap: var(--sp-16); margin-top: var(--sp-16); flex-wrap: wrap; }
.agent-demo_run { padding: 11px 20px; border: none; cursor: pointer; font-family: var(--font); }
.agent-demo_sample {
  background: none; border: none; cursor: pointer; color: var(--text-secondary);
  font-family: var(--font); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.agent-demo_sample:hover { color: var(--text-primary); }
.agent-demo_hint { font-size: 11.5px; color: var(--color-slate-deep); margin-left: auto; }

.agent-demo_output {
  margin-top: var(--sp-20); background: rgba(1, 20, 19, 0.55);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--sp-24); min-height: 60px;
}
.agent-msg { margin: 0; font-size: 14px; color: var(--text-secondary); }
.agent-msg-err { color: #ff9db1; }

/* rendered markdown output */
.agent-out { font-size: 14.5px; line-height: 1.6; color: var(--text-emphasis); }
.agent-out h4, .agent-out h5, .agent-out h6 {
  color: var(--c-teal); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: var(--sp-20) 0 10px; font-weight: 600;
}
.agent-out h4:first-child { margin-top: 0; }
.agent-out p { margin: 0 0 12px; }
.agent-out ul, .agent-out ol { margin: 0 0 14px; padding-left: 20px; }
.agent-out li { margin-bottom: 6px; }
.agent-out strong { color: var(--text-primary); }
.agent-out code { background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.agent-out table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 13.5px; }
.agent-out th, .agent-out td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.agent-out th { color: var(--c-cyan); font-weight: 600; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.agent-out tr:last-child td { border-bottom: none; }

/* loading dots */
.agent-spinner { display: flex; gap: 6px; align-items: center; height: 28px; }
.agent-spinner span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan);
  animation: agentbounce 1.2s ease-in-out infinite;
}
.agent-spinner span:nth-child(2) { animation-delay: 0.15s; background: var(--c-violet); }
.agent-spinner span:nth-child(3) { animation-delay: 0.3s; background: var(--c-amber); }
@keyframes agentbounce { 0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .agent-spinner span { animation: none; } }
