/* =========================================================
   BoundAI - Sales Deck (TV-readable, one slide per viewport)
   Theme modeled on OIP ISMS deck: cyan/navy glass, particles.
   Sizing tuned for big-screen readability from distance.
   ========================================================= */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --cyan:   #4CC2E0;
  --cyan-2: #7DD6EA;
  --navy:   #2B5C8A;
  --dark:   #0F1923;
  --darker: #0A1118;
  --ink:    #E8F4F8;
  --white:  #FFFFFF;
  --accent: #38D9A9;
  --amber:  #FFD43B;
  --danger: #FF6B6B;
  --glass:        rgba(44, 92, 138, 0.14);
  --glass-strong: rgba(44, 92, 138, 0.22);
  --glass-border: rgba(76, 194, 224, 0.22);
  --mute:         rgba(255,255,255,0.72);
  --dim:          rgba(255,255,255,0.55);
  --rule:         rgba(255,255,255,0.08);
  --t: .6s cubic-bezier(.4,0,.2,1);
}

html { font-size: 18px; scroll-behavior: smooth; }
@media (min-width: 1600px) { html { font-size: 20px; } }
@media (min-width: 2200px) { html { font-size: 24px; } }

body {
  font-family: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--darker);
  color: var(--white);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* ===== Particle canvas ===== */
#particles {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* Radial wash behind content */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 60% at 78% 20%, rgba(76,194,224,.10), transparent 60%),
    radial-gradient(60% 60% at 12% 85%, rgba(43,92,138,.25), transparent 60%);
  z-index: 0; pointer-events: none;
}

/* ===== Top chrome ===== */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,17,24,.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.chrome > * { position: relative; }
.chrome__brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
}
.chrome__brand-icon {
  display: block;
  width: 40px; height: 40px;
  background: url('boundai-logo.png') no-repeat left center;
  background-size: auto 100%;
  filter: drop-shadow(0 0 8px rgba(76,194,224,.3));
  flex-shrink: 0;
}
.chrome__brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.3px;
}
.chrome__label {
  font-size: .85rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan);
  font-weight: 600;
}
.chrome__dots {
  display: flex; gap: .8rem; align-items: center;
}
.chrome__dots button {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(76,194,224,.22);
  border: 2px solid rgba(76,194,224,.4);
  padding: 0; cursor: pointer; transition: all .25s;
}
.chrome__dots button:hover {
  background: rgba(76,194,224,.55);
  transform: scale(1.15);
}
.chrome__dots button.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(76,194,224,.7);
  transform: scale(1.35);
}

/* ===== Slide container ===== */
.deck {
  position: relative;
  width: 100%; height: 100vh;
  z-index: 1;
}
.page {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 3.5rem 2.5rem;
  opacity: 0; transform: translateY(32px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  overflow: auto;
}
.page.is-active {
  opacity: 1; transform: translateY(0);
  pointer-events: all;
}
.wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* ===== Typography ===== */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.kicker::before,
.kicker::after {
  content: "";
  width: 56px; height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(76,194,224,.45);
}
.h1 {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.75px;
  margin-bottom: 1rem;
}
.h2::before,
.h2::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  vertical-align: middle;
  margin-top: -.25em;
  box-shadow: 0 0 12px rgba(76,194,224,.45);
}
.h2::before { margin-right: 1rem; }
.h2::after  { margin-left:  1rem; }
.h2 .accent, .h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.45;
  color: var(--mute);
  max-width: 90ch;
  margin-bottom: 2rem;
}
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Glass card ===== */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  backdrop-filter: blur(12px);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(76,194,224,.4);
  box-shadow: 0 14px 50px rgba(76,194,224,.15);
}
.card h3 {
  color: var(--cyan);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.card h3.is-green { color: var(--accent); }
.card p { color: var(--mute); line-height: 1.55; font-size: 1.1rem; }

/* ===== Grids ===== */
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.g-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.g-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.g-6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 1rem; }

/* ===== Bullet list (dot) ===== */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: .7rem 0 .7rem 2rem;
  color: var(--mute);
  font-size: 1.1rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--rule);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 1.1rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--navy));
  box-shadow: 0 0 10px rgba(76,194,224,.4);
}

/* ===== Pills ===== */
.tag {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(76,194,224,.12);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
}
.tag-row {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.25rem;
}

/* ===== Cover slide ===== */
.page--cover { padding-top: 4rem; }
.cover {
  text-align: center;
  width: 100%;
  max-width: 1400px;
}
.cover__badge {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
}
.cover__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.cover__title {
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1; font-weight: 800;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.cover__sub {
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2rem;
}
.cover__meta {
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  color: var(--mute);
  max-width: 70ch;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.cover__lockup {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 2.5rem;
  text-align: left;
  filter: drop-shadow(0 0 50px rgba(76,194,224,.3));
}
.cover__lockup-icon {
  width: clamp(90px, 9vw, 140px);
  aspect-ratio: 1 / 1;
  background: url('boundai-logo.png') no-repeat left center;
  background-size: auto 100%;
  flex-shrink: 0;
}
.cover__lockup-words {
  display: flex; flex-direction: column;
  line-height: 1;
}
.cover__lockup-name {
  font-size: clamp(2.4rem, 3.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--white);
}
.cover__lockup-pow {
  margin-top: .5rem;
  font-size: clamp(.9rem, 1vw, 1.15rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}

/* ===== Cover lifecycle rail ===== */
.lifecycle {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  margin: 2rem auto 0;
  width: 100%;
}
.lifecycle__row {
  display: flex; flex-wrap: nowrap; gap: .5rem; justify-content: center;
  width: 100%;
  max-width: 1400px;
}
.lifecycle__step {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-weight: 600;
  font-size: clamp(.85rem, 1vw, 1.05rem);
  letter-spacing: .3px;
  white-space: nowrap;
  flex: 0 1 auto;
}
.lifecycle__step.is-on {
  background: linear-gradient(135deg, rgba(76,194,224,.28), rgba(43,92,138,.28));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(76,194,224,.25);
}
.lifecycle__step span {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: .8rem;
}
.lifecycle__note { color: var(--dim); font-size: 1rem; margin-top: .5rem; }

/* ===== Chrome section label (center of top bar) ===== */
.chrome__section {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.chrome__section:not(:empty)::before,
.chrome__section:not(:empty)::after {
  content: "";
  width: 36px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* ===== Problem - before/after columns ===== */
.friction {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1.5rem;
}
.friction__col { padding: 2rem; }
.friction__col .col-head {
  font-size: .9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.friction__col--on .col-head { color: var(--accent); }
.friction__arrow {
  align-self: center;
  font-size: 3rem;
  color: var(--cyan);
  font-weight: 300;
  line-height: 1;
  opacity: .8;
}

/* ===== Platform architecture diagram (flow) ===== */
.diagram {
  display: grid;
  grid-template-columns: 1.05fr 54px 1fr 54px 1fr 54px 1.3fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "inputs  a1 orch  a2 classify a3 process"
    "outputs a6 integ a5 hitl     a4 process";
  gap: 1.15rem .25rem;
  margin-top: 1rem;
  padding: 1rem 0 .5rem;
}

/* ===== Flow arrows ===== */
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}
/* Shaft (horizontal line) */
.arrow::before {
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(76,194,224,0) 0%,
    rgba(76,194,224,.85) 30%,
    rgba(76,194,224,.85) 70%,
    rgba(76,194,224,0) 100%);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(76,194,224,.5);
}
/* Arrow head (triangle) */
.arrow::after {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 6px rgba(76,194,224,.6));
}
.arrow--right::after {
  right: 10%;
  border-left: 12px solid var(--cyan);
}
.arrow--left::after {
  left: 10%;
  border-right: 12px solid var(--cyan);
}
/* Pulsing animation on arrow shafts */
@keyframes arrowPulse {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}
.arrow::before { animation: arrowPulse 1.8s ease-in-out infinite; }

.node {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, rgba(44,92,138,.22), rgba(15,25,35,.55));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
  min-height: 0;
}
.node:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 12px 34px rgba(76,194,224,.2), inset 0 1px 0 rgba(255,255,255,.04);
}
.node__head {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: .7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(76,194,224,.18);
  display: flex; justify-content: space-between; align-items: center;
}
.node__opt {
  font-size: .6rem;
  color: var(--cyan);
  background: rgba(76,194,224,.12);
  padding: .2rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(76,194,224,.35);
  letter-spacing: 1px;
}
.node__body {
  flex: 1;
  display: flex; flex-direction: column; gap: .5rem;
  justify-content: center;
}
.node__icon {
  color: var(--cyan);
  display: flex; justify-content: center; align-items: center;
  margin: .2rem 0 .4rem;
  opacity: .92;
}
.node__body p {
  color: var(--mute);
  font-size: .92rem;
  line-height: 1.4;
  text-align: center;
}
.node--hub {
  background: linear-gradient(160deg, rgba(76,194,224,.18), rgba(43,92,138,.28));
  border-color: rgba(76,194,224,.4);
}
.node--process {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(76,194,224,.1), rgba(15,25,35,.55));
  border-color: rgba(76,194,224,.3);
}
.node--process .node__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  align-content: center;
}
.node--hitl {
  border-style: dashed;
}

.node--outputs .node__head { color: var(--cyan-2); }

.chip {
  display: flex; align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  background: rgba(76,194,224,.08);
  border: 1px solid rgba(76,194,224,.22);
  border-radius: 8px;
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.chip--mini {
  padding: .45rem .7rem;
  font-size: .82rem;
  justify-content: center;
}

/* ===== Operating principles strip ===== */
.arch__principles {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: .9rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: .95rem;
}
.arch__principles strong { color: var(--cyan); font-weight: 700; margin-right: .25rem; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; }
.p-tag {
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid;
}
.p-tag--ok   { color: var(--accent); border-color: rgba(56,217,169,.45); background: rgba(56,217,169,.08); }
.p-tag--warn { color: var(--amber);  border-color: rgba(255,212,59,.45); background: rgba(255,212,59,.08); }
.p-tag--stop { color: var(--danger); border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08); }

/* ===== Capabilities pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.pillar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all .3s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(76,194,224,.18);
}
.pillar b {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: .75rem;
}
.pillar h3 {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.pillar p {
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ===== Agent slide ===== */
.agent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.agent__stats {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 1.25rem;
}
.agent__stats li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  display: flex; flex-direction: column;
}
.agent__stats b {
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .4rem;
}
.agent__stats span {
  color: var(--mute);
  font-size: 1.1rem;
  font-weight: 500;
}
.agent__bullets {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
}
.agent__bullets .col-head {
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.agent__extra {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, rgba(76,194,224,.15), rgba(43,92,138,.22));
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}
.agent__extra b {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agent__extra span {
  color: var(--mute);
  font-size: 1.15rem;
  font-weight: 500;
}

/* ===== Company stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.stats-row li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  list-style: none;
  text-align: center;
  transition: all .3s;
}
.stats-row li:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.stats-row b {
  display: block;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-row span {
  color: var(--mute);
  font-size: 1.1rem;
  letter-spacing: .5px;
}

/* ===== Delivery model tiles ===== */
.delivery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.delivery article {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  transition: all .25s;
}
.delivery article:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.delivery h3 {
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.delivery p {
  color: var(--mute);
  font-size: .98rem;
  line-height: 1.5;
}
.delivery .is-accent {
  background: linear-gradient(135deg, rgba(56,217,169,.12), rgba(76,194,224,.08));
  border-color: var(--accent);
}
.delivery .is-accent h3 { color: var(--accent); }
.delivery .is-wide { grid-column: span 2; }

/* ===== Roles grid ===== */
.roles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.roles div {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  transition: all .25s;
}
.roles div:hover {
  border-color: var(--cyan);
  background: rgba(76,194,224,.1);
}
.roles h4 {
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.roles p {
  color: var(--mute);
  font-size: .9rem;
  line-height: 1.45;
}

/* ===== Phases ===== */
.phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.phases li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--cyan);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.phases li header {
  display: flex; align-items: baseline; gap: .75rem;
}
.phases li header span {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.phases li header h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}
.phases li .r {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.phases li .d {
  color: var(--mute);
  font-size: .92rem;
  line-height: 1.5;
}

/* ===== Case study ===== */
.case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.case > div {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.case h4 {
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .65rem;
}
.case p {
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.55;
}

/* ===== CTA ===== */
.cta-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.1rem 2.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all .25s;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  color: var(--white);
  box-shadow: 0 8px 30px rgba(76,194,224,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(76,194,224,.55);
}
.btn--ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--cyan);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(76,194,224,.12);
}
.cover__offices {
  margin-top: 2.5rem;
  color: var(--dim);
  letter-spacing: 5px;
  font-size: .9rem;
  text-transform: uppercase;
}


/* ===== Animate-in ===== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .6s cubic-bezier(.4,0,.2,1) forwards;
}
.page.is-active .animate-in { animation-delay: .15s; }
.page.is-active .d-1 { animation-delay: .25s; }
.page.is-active .d-2 { animation-delay: .40s; }
.page.is-active .d-3 { animation-delay: .55s; }
.page.is-active .d-4 { animation-delay: .70s; }
.page.is-active .d-5 { animation-delay: .85s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== "View full" button + modal ===== */
.more-row { display: flex; justify-content: center; margin-top: 1.5rem; }
.btn-more {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: rgba(76,194,224,.12);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .25s;
}
.btn-more:hover {
  background: rgba(76,194,224,.22);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(76,194,224,.35);
  transform: translateY(-1px);
}

.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 3rem 2rem;
  background: rgba(4, 8, 14, .72);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-open {
  display: flex;
  animation: modalFade .3s ease forwards;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal__card {
  position: relative;
  width: 100%;
  max-width: 1500px;
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(160deg, rgba(15,25,35,.96), rgba(10,17,24,.96));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(76,194,224,.15);
  animation: modalRise .35s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes modalRise { from { transform: translateY(12px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }

.modal__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 44px; height: 44px;
  border: 1px solid var(--glass-border);
  background: rgba(76,194,224,.08);
  color: var(--cyan);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.modal__close:hover {
  background: rgba(255,107,107,.18);
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal__head { margin-bottom: 1.8rem; }
.modal__tag {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.modal__tag::before {
  content: "";
  width: 36px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.modal__title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--white);
}

/* Role list grid */
.modal__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.modal__col {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.modal__col h4 {
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.modal__col ul { list-style: none; }
.modal__col li {
  color: var(--mute);
  font-size: .88rem;
  padding: .3rem 0;
  border-bottom: 1px solid var(--rule);
}
.modal__col li:last-child { border-bottom: 0; }

/* Phases */
.modal__phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.modal__phase {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
}
.modal__phase header {
  display: flex; align-items: baseline; gap: .75rem;
  margin-bottom: .8rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
}
.modal__phase header span {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 2px;
}
.modal__phase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.modal__phase-grid .k {
  color: var(--dim);
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .45rem;
  font-weight: 600;
}
.modal__phase-grid ul { list-style: none; }
.modal__phase-grid li {
  color: var(--mute);
  font-size: .88rem;
  padding: .28rem 0;
  border-bottom: 1px solid var(--rule);
}
.modal__phase-grid li:last-child { border-bottom: 0; }

@media (max-width: 1200px) {
  .modal__grid { grid-template-columns: repeat(3, 1fr); }
  .modal__phases { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .modal__grid { grid-template-columns: 1fr 1fr; }
  .modal__card { padding: 1.5rem; }
}

/* ===== Breakpoints ===== */
@media (max-width: 1200px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .delivery { grid-template-columns: repeat(2, 1fr); }
  .delivery .is-wide { grid-column: span 2; }
  .diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "inputs" "a1" "orch" "a2" "classify" "a3"
      "process" "a4" "hitl" "a5" "integ" "a6" "outputs";
  }
  .node--process { grid-row: auto; }
  .arrow--right::before, .arrow--left::before { display: none; }
  .arrow--right, .arrow--left { min-height: 40px; }
  .arrow--right::after {
    right: 50%; top: 50%;
    transform: translate(50%, -50%) rotate(90deg);
  }
  .arrow--left::after {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}
@media (max-width: 800px) {
  .page { padding: 5.5rem 1.5rem 2rem; }
  .g-2, .g-3, .pillars, .agent, .case { grid-template-columns: 1fr; }
  .friction { grid-template-columns: 1fr; }
  .friction__arrow { transform: rotate(90deg); }
  .roles, .stats-row, .delivery { grid-template-columns: 1fr 1fr; }
}
