/* Holdwater.ai - marketing site
   Palette (locked): Violet #6C5CE7 · Teal #00C2B8 · Orange #FF4F00 · Navy #0F172A · Sand #E7E1D6
   Type (locked): Sora (display) · Inter (body)
   Editorial system: typography, rules, rows, wave + grid motif. Multi-page (index/services/products/about/contact).
   Coastal Sand system: --sand (bands, statement, CTA strip, footer), --sand-light (alternating light bands),
   --sand-card (card surfaces on light bands), --sand-line / --sand-deep (borders on light), sand wash on navy heroes. */

:root {
  --violet: #6C5CE7;
  --violet-soft: #8E81F0;
  --teal: #00C2B8;
  --orange: #FF4F00;
  --navy: #0F172A;
  --navy-2: #121B31;
  --navy-3: #1A2540;
  --sand: #E7E1D6;          /* Coastal Sand (brand) */
  --sand-light: #F4F0E9;    /* sand tint for alternating light bands */
  --sand-card: #FBF9F5;     /* card surface on sand bands */
  --sand-deep: #D6CCBB;     /* stronger sand rule / hover */
  --sand-line: rgba(15, 23, 42, .14);  /* hairline on sand */
  --ink: #0F172A;           /* text on sand */
  --ink-soft: #3A4357;      /* body text on sand */
  --text: #E7E1D6;
  --muted: #A3ABBD;
  --line: rgba(231, 225, 214, .14);
  --line-strong: rgba(231, 225, 214, .28);
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--navy); color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 600; max-width: 20ch; }
h3 { font-weight: 600; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.kicker {
  font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--violet { color: var(--violet); }
.subhead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-top: 22px; }  /* renamed from .sub (collided with dropdown .sub) */
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.55; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: 6px; border: 0;
  transition: background .2s ease, transform .2s ease;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: #ff6a26; transform: translateY(-1px); }
.btn--sm { padding: 12px 18px; font-size: .92rem; }
.textlink {
  font: 600 1rem/1 var(--body); text-decoration: none; color: var(--sand);
  border-bottom: 2px solid var(--teal); padding-bottom: 6px; display: inline-flex; gap: 8px;
  transition: color .2s ease;
}
.textlink:hover { color: var(--teal); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, .88);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav__brand img { height: 26px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .96rem/1 var(--body); color: var(--sand); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 12px 14px;
  transition: color .2s ease;
}
.nav__link:hover, .has-sub.open > .nav__link { color: var(--teal); }
.nav__link[aria-current="page"] { color: var(--sand); box-shadow: inset 0 -2px 0 var(--teal); }
.has-sub { display: flex; align-items: center; }
.has-sub > .nav__link { padding-right: 4px; }
.nav__trigger {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 40px;
  background: none; border: 0; cursor: pointer; color: var(--sand); padding: 0 8px 0 2px;
}
.nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--teal); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s ease; }
.nav__trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* dropdown panels */
.sub {
  position: absolute; top: calc(100% + 14px); left: -14px;
  background: var(--navy-2); border: 1px solid var(--line-strong); border-top: 2px solid var(--violet);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  padding: 26px 28px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub--services { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; width: 600px; }
.sub--products { width: 460px; }
.sub a { text-decoration: none; }
.sub__head {
  display: block; font: 600 1.05rem/1.2 var(--display); color: var(--sand);
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.sub__head:hover { color: var(--teal); }
.sub li a { display: block; padding: 9px 0; font-size: .95rem; color: var(--sand); line-height: 1.3; }
.sub__col--media li a { padding-left: 14px; border-left: 1px solid var(--line-strong); }
.sub li a span { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.sub li a:hover { color: var(--teal); }
.sub__plain li + li a { border-top: 1px solid var(--line); }
.sub__all { display: inline-block; margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--teal); }
.sub__feature { display: block; }
.sub__feature strong { display: block; font: 600 1.15rem/1.2 var(--display); color: var(--sand); margin-bottom: 8px; }
.sub__feature span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sub__feature:hover strong { color: var(--teal); }
.sub__plain--tight { margin-top: 18px; border-top: 1px solid var(--line); }
.sub__plain--tight li a { padding: 10px 0; }
.sub__features { display: grid; gap: 18px; }
.sub__features .sub__feature + .sub__feature { padding-top: 18px; border-top: 1px solid var(--line); }
.sub a[aria-current="page"] { color: var(--teal); }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 130px) 0 clamp(150px, 16vw, 230px); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(231, 225, 214, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 225, 214, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
}
.hero__waves { position: absolute; left: 0; right: 0; bottom: -20px; width: 100%; height: clamp(110px, 15vw, 200px); pointer-events: none; }
.hero__waves .w { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero__waves .w1 { stroke: var(--violet); opacity: .55; }
.hero__waves .w2 { stroke: var(--orange); opacity: .7; }
.hero__waves .w3 { stroke: var(--teal); opacity: .55; }
.hero__waves .w4 { stroke: var(--sand); opacity: .45; }
/* Soft Coastal Sand wash on navy heroes */
.sand-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 88% 18%, rgba(231, 225, 214, .16), transparent 70%),
    radial-gradient(ellipse 70% 45% at 50% 115%, rgba(231, 225, 214, .12), transparent 70%);
}
.sand-wash--hero {
  background:
    radial-gradient(ellipse 50% 55% at 90% 12%, rgba(231, 225, 214, .18), transparent 70%),
    radial-gradient(ellipse 80% 40% at 40% 108%, rgba(231, 225, 214, .14), transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__waves .w { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s ease forwards; }
  .hero__waves .w2, .page-hero__wave .w2 { animation-delay: .25s; } .hero__waves .w3 { animation-delay: .5s; } .hero__waves .w4 { animation-delay: .75s; }
  .page-hero__wave .w { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.hero__inner { position: relative; }
.hero__mark { width: min(420px, 72vw); margin-bottom: clamp(44px, 6vw, 72px); }
.hero__title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; max-width: 36ch; }
.hl { color: var(--teal); }
.hero__body {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 32px; border-top: 1px solid var(--line-strong);
}
.hero__lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--sand); max-width: 56ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Statement ---------- */
.statement { background: var(--sand); color: var(--navy); padding: clamp(72px, 9vw, 120px) 0; border-top: 3px solid var(--teal); }
.statement__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.statement__text { font: 500 clamp(1.5rem, 2.6vw, 2.15rem)/1.3 var(--display); letter-spacing: -.02em; }
.statement__text em { font-style: normal; color: var(--violet); }
.statement__steps { counter-reset: s; border-top: 2px solid var(--navy); }
.statement__steps li { padding: 16px 0; border-bottom: 1px solid rgba(15, 23, 42, .2); font-size: 1.02rem; color: #3a4357; }
.statement__steps span { font: 600 1.05rem/1 var(--display); color: var(--navy); margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 10vw, 140px) 0; position: relative; }
.section--deep { background: var(--navy-2); border-block: 1px solid var(--line); }
.section--tight { padding: clamp(64px, 7vw, 100px) 0; }
.section--sand { background: var(--sand); color: var(--ink); }
.section--sand-light { background: var(--sand-light); color: var(--ink); }
.section__head--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.section__head--row .subhead { margin-top: 0; }
.subhead--navy { color: var(--ink-soft); }
/* text + rules inside light (sand) contexts */
.section--sand .kicker:not(.kicker--violet), .section--sand-light .kicker:not(.kicker--violet), .svc-band--sand .kicker { color: #00857E; }
.section--sand .textlink, .section--sand-light .textlink, .textlink--navy { color: var(--ink); }
.section--sand .textlink:hover, .section--sand-light .textlink:hover, .textlink--navy:hover { color: var(--violet); }
.section__head { margin-bottom: clamp(48px, 6vw, 72px); }

/* service index */
.index { border-top: 2px solid var(--sand); margin-bottom: clamp(72px, 9vw, 120px); }
.index a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .2s ease, color .2s ease;
}
.index__n { font: 500 .9rem/1 var(--display); color: var(--muted); }
.index__t { font: 600 clamp(1.3rem, 2.4vw, 1.9rem)/1.1 var(--display); letter-spacing: -.02em; }
.index__d { color: var(--muted); font-size: .98rem; }
.index a:hover { padding-left: 12px; }
.index a:hover .index__t { color: var(--teal); }
.index:last-child { margin-bottom: 0; }
.index--sand { border-top-color: var(--ink); }
.index--sand a { border-bottom-color: var(--sand-line); }
.index--sand .index__n { color: var(--orange); }
.index--sand .index__d { color: var(--ink-soft); }
.index--sand a:hover .index__t { color: var(--violet); }

/* service detail - each service is its own band, alternating navy / Coastal Sand */
.svc-band { padding: clamp(24px, 3vw, 40px) 0; }
.svc-band--navy { background: var(--navy); }
.svc-band--sand { background: var(--sand); color: var(--ink); }
.svc-band .svc { border-top: 0; }
.svc-band--lead { border-top: 3px solid var(--violet); }
.svc__h { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; max-width: none; }
.svc-band--lead .svc__h { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.svc-band--sand .svc__body > p:not(.lead) { color: var(--ink-soft); }
.svc-band--sand .svc__body strong { color: var(--ink); }
.svc-band--sand .inline-list { border-top-color: var(--sand-line); }
.svc-band--sand .inline-list li { color: var(--ink); border-bottom-color: var(--sand-line); }
.svc-band--sand .inline-list li::before { background: var(--violet); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.svc__label { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.svc__n { font: 500 .9rem/1 var(--display); color: var(--orange); display: block; margin-bottom: 14px; }
.svc__label h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.svc__tag { margin-top: 12px; color: var(--teal); font-weight: 500; }
.svc__body { max-width: 68ch; }
.svc__body > p + p { margin-top: 18px; }
.svc__body > p:not(.lead) { color: #cfd3dc; font-size: 1.08rem; }
.svc__body strong { color: var(--sand); font-weight: 600; }
.svc--lead { border-top: 2px solid var(--violet); }
.svc--lead .svc__label h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

.rows { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row dt { font: 600 1.1rem/1.3 var(--display); color: var(--sand); }
.row dd { color: #cfd3dc; }

.inline-list { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.inline-list li {
  width: 50%; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line);
  font-size: .98rem; color: var(--sand); display: flex; gap: 12px; align-items: baseline;
}
.inline-list li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--teal); transform: translateY(-4px); }

/* ---------- Product ---------- */
.product__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.product__head h2 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.035em; }
.product__head .lead { color: #cfd3dc; }
.loop { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.loop__wave { width: 100%; height: 40px; display: block; }
.loop__wave path { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .8; }
.loop__steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 8px; }
.loop__steps li { padding: 22px 18px 0 0; border-left: 1px solid var(--line); padding-left: 16px; }
.loop__steps li:first-child { border-left-color: var(--teal); }
.loop__n { font: 500 .8rem/1 var(--display); color: var(--orange); }
.loop__steps h3 { font-size: 1.15rem; margin: 10px 0 10px; }
.loop__steps p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.loop__note { margin-top: 36px; color: var(--teal); font-weight: 500; display: flex; gap: 10px; align-items: center; }
.loop__note span { font-size: 1.3rem; }
.product__foot {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap;
}
.product__foot p { max-width: 62ch; color: #cfd3dc; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about h2 { max-width: 18ch; margin-bottom: 30px; }
.about .lead { color: var(--ink); margin-bottom: 18px; max-width: 58ch; }
.about__main p:not(.lead):not(.kicker) { color: #3a4357; max-width: 58ch; }
.about__beliefs { border-top: 2px solid var(--navy); margin-top: 6px; }
.about__beliefs div { padding: 20px 0; border-bottom: 1px solid rgba(15, 23, 42, .2); }
.about__beliefs dt { font: 600 1.12rem/1.2 var(--display); margin-bottom: 6px; }
.about__beliefs dd { color: #3a4357; }

/* ---------- Contact (sand-light band, sand card form) ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__h { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 28px; }
.contact__steps { border-top: 2px solid var(--ink); }
.contact__steps li { padding: 16px 0; border-bottom: 1px solid var(--sand-line); color: var(--ink-soft); display: flex; gap: 14px; }
.contact__steps span { font: 600 .9rem/1.6 var(--display); color: var(--orange); }
.contact__mail { margin-top: 32px; color: var(--ink-soft); }
.contact__mail a { color: var(--ink); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.card { background: var(--sand-card); border: 1px solid var(--sand-deep); border-top: 3px solid var(--violet); border-radius: 4px; padding: clamp(26px, 4vw, 40px); box-shadow: 0 24px 50px -34px rgba(15, 23, 42, .4); }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--sand-deep);
  padding: 10px 0; border-radius: 0; transition: border-color .2s ease;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%233A4357' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.form select option { background: var(--sand-card); color: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--violet); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__note { color: #00857E; font-size: .95rem; min-height: 1.4em; font-weight: 500; }

/* ---------- Footer (Coastal Sand top, navy base) ---------- */
.footer { background: #0c1324; }
.footer__sand { position: relative; background: var(--sand); color: var(--ink); padding: 76px 0 56px; }
.footer__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 36px; }
.footer__wave path { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .8; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.footer__brand img { width: 240px; }
.footer__tag { margin-top: 18px; font: 500 1.1rem/1.4 var(--display); color: var(--ink); }
.footer__mail { margin-top: 12px; }
.footer__mail a { color: var(--ink-soft); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__nav h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; font-family: var(--body); font-weight: 600; }
.footer__nav h4.mt { margin-top: 28px; }
.footer__nav a { text-decoration: none; }
.footer__nav li a { display: inline-block; padding: 4px 0; color: var(--ink-soft); font-size: .95rem; }
.footer__nav li.indent a { padding-left: 14px; font-size: .9rem; }
.footer__nav a:hover { color: var(--violet); }
.footer__base { display: flex; justify-content: space-between; padding: 24px 0 28px; color: var(--muted); font-size: .88rem; }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--teal); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 clamp(110px, 12vw, 160px); }
.page-hero__inner { position: relative; }
.page-hero__title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.page-hero__lede { margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--sand); max-width: 62ch; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.page-hero__actions { margin-top: 36px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.page-hero__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(70px, 9vw, 120px); pointer-events: none; }
.page-hero__wave .w { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.page-hero__wave .w1 { stroke: var(--teal); opacity: .55; }
.page-hero__wave .w2 { stroke: var(--sand); opacity: .4; }

/* ---------- Sand cards (home paths, product principles) ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--sand-card); border: 1px solid var(--sand-deep); border-top: 3px solid var(--sand-deep);
  border-radius: 4px; padding: 30px 28px 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.path h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.path p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.path__n { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.path__go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--sand-line); }
a.path:hover { border-top-color: var(--teal); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45); }
a.path:hover .path__go { color: var(--violet); }
.paths--static .path:nth-child(1) { border-top-color: var(--violet); }
.paths--static .path:nth-child(2) { border-top-color: var(--teal); }
.paths--static .path:nth-child(3) { border-top-color: var(--orange); }

/* ---------- Bridge (two-column text block) ---------- */
.bridge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.bridge__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.bridge__body { color: #cfd3dc; font-size: 1.1rem; max-width: 56ch; margin-bottom: 26px; }
.bridge__links { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- CTA strip (Coastal Sand) ---------- */
.cta-strip { background: var(--sand); color: var(--ink); padding: clamp(56px, 7vw, 88px) 0; border-top: 3px solid var(--orange); }
.cta-strip__inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.cta-strip__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; }
.cta-strip__body { margin-top: 14px; color: var(--ink-soft); max-width: 56ch; font-size: 1.08rem; }
.cta-strip__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Product demo frame (shared by the illustrative UI demos) ---------- */
.demo { margin: 0; }
.demo__frame {
  background: var(--navy); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--sand-deep);
  box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .55), 0 0 0 10px var(--sand-card);
}
.demo__chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--navy-3); border-bottom: 1px solid var(--line); }
.demo__chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo__chrome i:nth-child(1) { background: var(--orange); } .demo__chrome i:nth-child(2) { background: var(--sand); } .demo__chrome i:nth-child(3) { background: var(--teal); }
.demo__chrome span { margin-left: 10px; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.demo__caption { margin-top: 26px; font: 600 .82rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 12px; }
.demo__caption::before { content: ""; width: 28px; height: 2px; background: var(--violet); }
.demo-band:not(.section--sand) .demo__caption { color: var(--muted); }
.demo-band:not(.section--sand) .demo__caption::before { background: var(--teal); }

/* ---------- Products: delivered your way, data, outcomes ---------- */
.paths--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path--product { border-top-color: var(--violet); padding: 36px 34px 32px; }
.path--copilot { border-top-color: var(--teal); }
.path--product h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.path__list { border-top: 1px solid var(--sand-line); }
.path__list li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--sand-line); color: var(--ink); font-size: .96rem; position: relative; }
.path__list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 12px; height: 2px; background: var(--violet); }
.path--copilot .path__list li::before { background: var(--teal); }
a.path__go { text-decoration: none; }
a.path__go:hover { color: var(--violet); }
.bridge--top { align-items: start; }
.inline-list--flush { margin-top: 0; margin-bottom: 30px; }
.section__foot { margin-top: 36px; }
.row__link { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 600; font-size: .95rem; text-decoration: none; }
.row__link:hover { color: var(--sand); }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.outcome {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  background: var(--navy-2); border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: 4px; padding: 32px 30px 30px;
}
.outcome:nth-child(2) { border-top-color: var(--violet); }
.outcome:nth-child(3) { border-top-color: var(--orange); }
.outcome:nth-child(4) { border-top-color: var(--sand); }
.outcome h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; }
.outcome p { color: #cfd3dc; }
.outcome .textlink { margin-top: auto; }
.outcomes__close { margin-top: clamp(40px, 5vw, 60px); font: 500 clamp(1.25rem, 2.2vw, 1.7rem)/1.3 var(--display); letter-spacing: -.02em; color: var(--sand); max-width: 34ch; }

/* ---------- Products: hero ghost button, chips, trust strip, workflows ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--ghost { background: transparent; color: var(--sand); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); transform: translateY(-1px); }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 600 .78rem/1 var(--body); letter-spacing: .02em; padding: 8px 12px; border-radius: 999px; color: var(--ink); background: rgba(108, 92, 231, .1); border: 1px solid rgba(108, 92, 231, .35); }
.chips--teal li { background: rgba(0, 194, 184, .1); border-color: rgba(0, 133, 126, .4); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.trust li { padding: 20px 20px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.trust li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.trust strong { font: 600 1.05rem/1.2 var(--display); color: var(--sand); display: flex; align-items: center; gap: 10px; }
.trust strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 194, 184, .16); }
.trust span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.bridge__body--top { margin-top: 22px; margin-bottom: 0; }
.workflow-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.workflow-cols .bridge__links { grid-column: 1 / -1; }
.workflow-p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-bottom: 30px; max-width: 46ch; }
.mini-h { font: 600 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.inline-list--one { margin-bottom: 0; }
.inline-list--one li { width: 100%; }

/* ---------- Illustrative UI demos (.uidemo) ----------
   Stepper in script.js sets data-step / data-scene on the figure, .is-active on visible .uidemo__step,
   and .is-on on [data-from] elements. Hidden elements reset after the step has faded (delayed 0s transition). */
.uidemo { position: relative; }
.uidemo__frame { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), 0 0 0 10px rgba(231, 225, 214, .08); border-color: var(--line-strong); }
.section--sand .uidemo__frame { box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .55), 0 0 0 10px var(--sand-card); border-color: var(--sand-deep); }
.uidemo__url { margin-left: 10px; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.uidemo__url b { color: var(--sand); font-weight: 600; }
.ui { position: relative; font: 400 13px/1.45 var(--body); color: var(--sand); background: #0B1222; text-align: left; overflow: hidden; }
.ui b, .ui strong { font-weight: 600; }
.ui em { font-style: normal; }
.ui-eyebrow { display: block; font: 600 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ui-h { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ui-h strong { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; }
.uidemo__step { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.uidemo__step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease, visibility 0s; }

/* generic staggered reveal inside an active step (uses --i) */
.ui-sources li, .ui-card, .ui-why, .ui-chip, .ui-quality__t, .ui-ready, .ui-rec__why li, .ui-timeline li, .ui-loopnote,
.sl-msg, .sl-thread, .tm-msg, .cp-points li, .ui [data-from] {
  opacity: 0; transform: translateY(6px); transition: opacity 0s linear .5s, transform 0s linear .5s;
}
.is-active .ui-sources li, .is-active .ui-card, .is-active .ui-why, .is-active .ui-rec__why li, .is-active .ui-timeline li,
.is-active .ui-loopnote, .is-active .sl-msg, .is-active .sl-thread, .is-active .tm-msg, .is-on .cp-points li {
  opacity: 1; transform: none; transition: opacity .45s ease calc(var(--i, 0) * .35s + .25s), transform .45s ease calc(var(--i, 0) * .35s + .25s);
}
.ui [data-from].is-on { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
.is-active .ui-chip { opacity: 1; transform: none; transition: opacity .35s ease calc(var(--i, 0) * .3s + .5s), transform .45s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i, 0) * .3s + .5s); }
.ui-chip { transform: translate(-18px, -8px) scale(.9); }

/* -- app shell (platform) -- */
.ui--app { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 440px; }
.ui-side { background: var(--navy-2); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 20px; }
.ui-logo { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--display); padding: 4px 8px; color: var(--sand); }
.ui-logo svg { width: 22px; height: 11px; fill: none; stroke: var(--teal); stroke-width: 2.2; }
.ui-nav { display: grid; gap: 2px; }
.ui-nav li { padding: 8px 10px 8px 30px; border-radius: 6px; color: var(--muted); font-weight: 500; position: relative; transition: background .3s ease, color .3s ease; }
.ui-nav li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }
.uidemo[data-step="1"] .n-overview, .uidemo[data-step="2"] .n-insights, .uidemo[data-step="3"] .n-audiences,
.uidemo[data-step="4"] .n-actions, .uidemo[data-step="5"] .n-actions { background: rgba(108, 92, 231, .2); color: var(--sand); box-shadow: inset 2px 0 0 var(--violet); }
.ui-side__foot { margin-top: auto; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 7px; padding: 0 8px; }
.ui-side__foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.ui-main { display: flex; flex-direction: column; min-width: 0; }
.ui-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.ui-search { flex: 1; max-width: 320px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(231, 225, 214, .05); color: var(--muted); font-size: 12px; }
.ui-ws { margin-left: auto; font-size: 12px; color: var(--muted); }
.ui-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font: 600 10.5px/1 var(--display); flex: none; }
.ui-stage { display: grid; padding: 22px 24px; flex: 1; }

/* step 1: sources */
.ui-sources { display: grid; gap: 8px; }
.ui-sources li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(231, 225, 214, .035); }
.ui-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--navy-3); display: grid; place-items: center; font: 600 10px/1 var(--display); letter-spacing: .04em; color: var(--teal); }
.is-hw .ui-ico { background: rgba(108, 92, 231, .28); color: #CFC9FB; }
.is-hw { border-color: rgba(108, 92, 231, .45) !important; }
.ui-src small { display: block; color: var(--muted); font-size: 11.5px; }
.ui-status { display: inline-grid; grid-template-columns: 8px auto; align-items: center; column-gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ui-status i { width: 8px; height: 8px; border-radius: 50%; background: rgba(231, 225, 214, .3); transition: background 0s linear .5s, box-shadow 0s linear .5s; }
.ui-status em { grid-column: 2; grid-row: 1; transition: opacity 0s linear .5s; }
.ui-status .s-ok { opacity: 0; color: var(--teal); }
.is-active .ui-status i { background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 194, 184, .18); transition: background .3s ease calc(var(--i) * .3s + .8s), box-shadow .3s ease calc(var(--i) * .3s + .8s); }
.is-active .ui-status .s-wait { opacity: 0; transition: opacity .2s ease calc(var(--i) * .3s + .8s); }
.is-active .ui-status .s-ok { opacity: 1; transition: opacity .3s ease calc(var(--i) * .3s + .85s); }
.ui-unify { margin-top: 14px; display: grid; gap: 8px; font-size: 11.5px; color: var(--muted); }
.ui-unify b { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ui-unify i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--teal)); transition: width 0s linear .5s; }
.is-active .ui-unify i { width: 100%; transition: width 2.2s ease-in-out .5s; }

/* step 2: insight cards */
.ui-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(231, 225, 214, .035); }
.ui-card strong { font: 600 15px/1.2 var(--display); }
.ui-card small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.ui-tag { align-self: flex-start; font: 600 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.ui-tag--teal { color: var(--teal); background: rgba(0, 194, 184, .14); }
.ui-tag--orange { color: #FF8A4D; background: rgba(255, 79, 0, .14); }
.ui-tag--violet { color: #B7AEF7; background: rgba(108, 92, 231, .22); }
.ui-spark { width: 100%; height: 48px; }
.ui-spark path { fill: none; stroke: var(--teal); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 0s linear .5s; }
.is-active .ui-spark path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease .6s; }
.ui-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; height: 48px; align-items: end; }
.ui-meter i { height: 10px; border-radius: 3px; background: rgba(231, 225, 214, .12); transition: background 0s linear .5s; }
.is-active .ui-meter i:nth-child(-n+4) { background: var(--orange); }
.is-active .ui-meter i:nth-child(1) { transition: background .25s ease .9s; } .is-active .ui-meter i:nth-child(2) { transition: background .25s ease 1.05s; }
.is-active .ui-meter i:nth-child(3) { transition: background .25s ease 1.2s; } .is-active .ui-meter i:nth-child(4) { transition: background .25s ease 1.35s; }
.ui-bars { display: flex; gap: 6px; height: 48px; align-items: flex-end; }
.ui-bars i { flex: 1; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(var(--violet), rgba(108, 92, 231, .35)); transform-origin: bottom; transform: scaleY(.05); transition: transform 0s linear .5s; }
.ui-bars i:last-child { background: linear-gradient(var(--teal), rgba(0, 194, 184, .35)); }
.is-active .ui-bars i { transform: scaleY(var(--h)); transition: transform .7s cubic-bezier(.2, .9, .3, 1) 1.2s; }
.ui-why { margin-top: 14px; font-size: 12px; color: var(--muted); }
.ui-why b { color: var(--sand); }

/* step 3: audience builder */
.ui-builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.ui-rules { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 14px; border-radius: 10px; border: 1px dashed var(--line-strong); min-height: 190px; }
.ui-label { flex-basis: 100%; font: 600 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ui-chip { padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.ui-chip--violet { color: #CFC9FB; border-color: rgba(108, 92, 231, .6); background: rgba(108, 92, 231, .2); }
.ui-chip--teal { color: #7FE6E0; border-color: rgba(0, 194, 184, .5); background: rgba(0, 194, 184, .12); }
.ui-chip--orange { color: #FF9B66; border-color: rgba(255, 79, 0, .5); background: rgba(255, 79, 0, .1); }
.ui-aud { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(231, 225, 214, .035); }
.ui-aud .ui-label { margin-top: 0; }
.ui-quality { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ui-quality i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0s linear .5s; }
.is-active .ui-quality i { width: 78%; transition: width 1.2s ease 1.5s; }
.ui-quality__t { color: var(--teal); font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
.is-active .ui-quality__t { opacity: 1; transform: none; transition: opacity .4s ease 2.2s, transform .4s ease 2.2s; }
.ui-dests { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-dests em { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line-strong); font-size: 11.5px; }
.ui-ready { align-self: flex-start; margin-top: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 194, 184, .16); color: var(--teal); font-size: 11.5px; font-weight: 600; }
.is-active .ui-ready { opacity: 1; transform: none; transition: opacity .4s ease 2.4s, transform .4s ease 2.4s; }

/* step 4: recommendation + human approval */
.ui-rec { position: relative; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--violet); background: rgba(231, 225, 214, .035); }
.ui-rec__move { font: 500 15.5px/1.45 var(--display); letter-spacing: -.01em; max-width: 54ch; }
.ui-rec__move b { color: var(--teal); }
.ui-rec__why { margin-top: 14px; display: grid; gap: 7px; }
.ui-rec__why li { padding-left: 20px; position: relative; color: #cfd3dc; font-size: 12.5px; }
.ui-rec__why li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 2px; background: var(--teal); }
.ui-rec__btns, .cp-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ui-rec__btns { margin-top: 18px; }
.ui-btn { position: relative; display: inline-grid; padding: 8px 14px; border-radius: 6px; font: 600 12.5px/1 var(--body); }
.ui-btn > em { grid-area: 1 / 1; }
.ui-btn--approve { background: var(--orange); color: #fff; }
.ui-btn--ghost { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--sand); }
.ui-btn .b-done, .cp-new__s .b-done { opacity: 0; }
.ui-stamp, .cp-note { font-size: 11.5px; color: var(--teal); font-weight: 600; opacity: 0; }
.ui-cursor { position: absolute; left: 55%; top: 60%; width: 16px; height: 22px; background: var(--sand); clip-path: polygon(0 0, 100% 66%, 58% 70%, 80% 100%, 64% 100%, 44% 74%, 0 92%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); opacity: 0; pointer-events: none; }
/* approval triggers: --ad = when the person clicks Approve */
.ui-rec { --ad: 1.7s; } .cp-aud { --ad: 1.4s; } .sl-card { --ad: 2s; } .tm-card { --ad: 1.7s; }
:is(.is-active .ui-rec, .cp-aud.is-on, .is-active .sl-card, .is-active .tm-card) .ui-cursor { animation: uicursor var(--ad) ease-out forwards; }
:is(.is-active .ui-rec, .cp-aud.is-on, .is-active .sl-card, .is-active .tm-card) .ui-btn--approve { animation: uiapproved .25s ease var(--ad) forwards; }
:is(.is-active .ui-rec, .cp-aud.is-on, .is-active .sl-card, .is-active .tm-card) .b-idle { animation: uihide .15s ease var(--ad) forwards; }
:is(.is-active .ui-rec, .cp-aud.is-on, .is-active .sl-card, .is-active .tm-card) .b-done { animation: uishow .2s ease var(--ad) forwards; }
:is(.is-active .ui-rec, .cp-aud.is-on) :is(.ui-stamp, .cp-note) { animation: uishow .4s ease calc(var(--ad) + .2s) forwards; }
.cp-new.is-on .cp-new__s .b-idle { animation: uihide .15s ease 1.5s forwards; }
.cp-new.is-on .cp-new__s .b-done { animation: uishow .2s ease 1.5s forwards; }
@keyframes uicursor { 0% { opacity: 0; transform: translate(90px, 60px); } 20% { opacity: 1; } 82% { transform: translate(0, 0) scale(1); } 92% { transform: translate(0, 0) scale(.82); } 100% { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes uiapproved { to { background: var(--teal); color: var(--navy); } }
@keyframes uishow { to { opacity: 1; } }
@keyframes uihide { to { opacity: 0; } }

/* step 5: action + learning */
.ui-timeline { display: grid; gap: 8px; }
.ui-timeline li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(231, 225, 214, .035); }
.ui-timeline small { display: block; color: var(--muted); font-size: 11.5px; }
.ui-timeline em { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ui-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.ui-dot--teal { background: var(--teal); } .ui-dot--violet { background: var(--violet); } .ui-dot--orange { background: var(--orange); }
.ui-live { color: var(--teal) !important; padding: 4px 8px; border-radius: 999px; background: rgba(0, 194, 184, .15); }
.ui-spin { color: var(--orange) !important; font-size: 18px !important; display: inline-block; }
.ui-loopnote { margin-top: 16px; color: var(--teal); font-weight: 600; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .is-active .ui-spin { animation: uispin 2.4s linear infinite; }
  .is-active .ui-live { animation: uipulse 1.6s ease-in-out infinite; }
  .cp-orb { animation: uipulse 2s ease-in-out infinite; }
}
@keyframes uispin { to { transform: rotate(-360deg); } }
@keyframes uipulse { 50% { opacity: .55; } }

/* -- Co-pilot: scene tabs + chrome label follow data-scene -- */
.uidemo__scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.uidemo__scenes li { font: 600 .82rem/1 var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--sand-deep); color: var(--ink-soft); transition: background .3s ease, color .3s ease, border-color .3s ease; }
.uidemo[data-scene="app"] .uidemo__scenes .sc-app, .uidemo[data-scene="slack"] .uidemo__scenes .sc-slack, .uidemo[data-scene="teams"] .uidemo__scenes .sc-teams { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.uidemo--copilot .uidemo__url { display: none; }
.uidemo[data-scene="app"] .uidemo__url.sc-app, .uidemo[data-scene="slack"] .uidemo__url.sc-slack, .uidemo[data-scene="teams"] .uidemo__url.sc-teams { display: inline; }
.ui--copilot { display: grid; min-height: 420px; }

/* scene A: Holdwater app + Co-pilot panel */
.cp-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.cp-work { padding: 20px 22px; border-right: 1px solid var(--line); }
.cp-rows { display: grid; gap: 8px; }
.cp-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(231, 225, 214, .035); font-size: 12.5px; }
.cp-rows li > em { color: var(--teal); font-size: 11px; font-weight: 600; }
.cp-new { border-color: rgba(108, 92, 231, .6) !important; background: rgba(108, 92, 231, .14) !important; }
.cp-new__s { display: inline-grid; }
.cp-new__s b { grid-area: 1 / 1; font-weight: 600; }
.cp-new__s .b-idle { color: #FF9B66; }
.cp-skel { display: grid; gap: 8px; margin-top: 18px; }
.cp-skel i { display: block; height: 34px; border-radius: 8px; background: rgba(231, 225, 214, .04); }
.cp-skel i:first-child { height: 90px; background: linear-gradient(180deg, rgba(0, 194, 184, .08), rgba(231, 225, 214, .03)); }
.cp-panel { display: flex; flex-direction: column; background: var(--navy-2); min-width: 0; }
.cp-panel__head { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 600 13.5px/1 var(--display); }
.cp-orb { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--teal)); }
.cp-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.cp-msg { font-size: 12.5px; line-height: 1.5; }
.cp-msg--user { align-self: flex-end; max-width: 86%; padding: 9px 12px; border-radius: 12px 12px 3px 12px; background: var(--violet); color: #fff; min-height: 2.4em; }
.cp-msg--bot { max-width: 94%; padding: 10px 12px; border-radius: 12px 12px 12px 3px; border: 1px solid var(--line); background: rgba(231, 225, 214, .05); }
.cp-reading { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 6px; }
.cp-points { display: grid; gap: 5px; }
.cp-points li { position: relative; padding-left: 16px; }
.cp-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--teal); }
.cp-show { display: block; margin-top: 6px; color: var(--teal); font-size: 11.5px; font-weight: 600; }
.cp-aud { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 10px; border: 1px solid rgba(108, 92, 231, .5); background: rgba(108, 92, 231, .1); }
.cp-aud strong, .sl-card strong, .tm-card strong { font: 600 14px/1.2 var(--display); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chips em { padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(0, 194, 184, .12); color: #7FE6E0; }
.cp-input { margin: 0 16px 14px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; }

/* scene B: Slack-style thread (generic chat chrome, brand palette only) */
.cp-slack { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.sl-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; background: #1B1740; color: rgba(231, 225, 214, .72); font-size: 12.5px; }
.sl-side strong { font: 600 13.5px/1.2 var(--display); color: var(--sand); padding: 0 8px 12px; }
.sl-side span { padding: 5px 8px; border-radius: 5px; }
.sl-side .on { background: var(--violet); color: #fff; }
.sl-side .sl-apps { margin-top: 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(231, 225, 214, .5); }
.sl-main { min-width: 0; padding-bottom: 14px; }
.sl-head, .tm-head { padding: 13px 18px; border-bottom: 1px solid var(--line); font: 600 14px/1 var(--display); }
.sl-msg, .tm-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 18px 4px; }
.sl-av { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--teal); color: var(--navy); font: 600 13px/1 var(--display); }
.sl-av--hw { background: linear-gradient(135deg, var(--violet), var(--teal)); }
.sl-msg b, .tm-msg b { font-size: 13px; }
.sl-msg b em { margin-left: 5px; padding: 1px 4px; border-radius: 3px; font-size: 9.5px; letter-spacing: .06em; background: rgba(231, 225, 214, .14); color: var(--muted); }
.sl-msg p { color: #cfd3dc; font-size: 13px; margin-top: 2px; }
.sl-at { padding: 0 3px; border-radius: 3px; color: var(--teal); background: rgba(0, 194, 184, .14); font-weight: 600; }
.sl-card, .tm-card { position: relative; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; padding: 11px 13px; border-radius: 6px; }
.sl-card { border: 1px solid var(--line); border-left: 4px solid var(--violet); background: rgba(231, 225, 214, .04); max-width: 460px; }
.sl-thread.tm-done { color: #00857E; }
.sl-thread { display: flex; align-items: center; gap: 8px; margin: 10px 18px 0 62px; font-size: 12px; font-weight: 600; color: var(--teal); }

/* scene C: Teams-style chat (light surface, brand palette only) */
.cp-teams { display: grid; grid-template-columns: 56px minmax(0, 1fr); background: var(--sand-card); color: var(--ink); }
.tm-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: var(--sand); }
.tm-rail i { width: 26px; height: 26px; border-radius: 7px; background: var(--sand-deep); }
.tm-rail i.on { background: var(--violet); }
.tm-main { min-width: 0; padding-bottom: 14px; }
.tm-head { display: flex; align-items: baseline; gap: 14px; border-bottom-color: var(--sand-line); color: var(--ink); }
.tm-head span { font: 600 12.5px/1 var(--body); color: var(--violet); padding-bottom: 4px; box-shadow: inset 0 -2px 0 var(--violet); }
.tm-msg b { color: var(--ink); }
.tm-msg p { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.tm-msg .sl-at { color: var(--violet); background: rgba(108, 92, 231, .1); }
.tm-card { border: 1px solid var(--sand-deep); border-top: 3px solid var(--violet); background: var(--sand-light); max-width: 460px; }
.tm-card .ui-eyebrow { color: var(--ink-soft); }
.tm-card p { font-size: 12.5px; }
.tm-card .ui-btn--ghost { box-shadow: inset 0 0 0 1px var(--sand-deep); color: var(--ink); }
.tm-card .ui-cursor { background: var(--navy); filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .3)); }

/* -- progress + pause controls -- */
.uidemo__controls { display: flex; align-items: flex-start; gap: 18px; margin-top: 22px; }
.uidemo__dots { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.uidemo__dots button {
  position: relative; width: 100%; text-align: left; cursor: pointer; background: none; border: 0;
  border-top: 3px solid var(--line-strong); padding: 10px 0 0; font: 600 .84rem/1.3 var(--body); color: var(--muted);
}
.uidemo__dots button span { display: block; margin-bottom: 4px; font: 500 .72rem/1 var(--display); letter-spacing: .04em; color: var(--orange); }
.uidemo__dots button::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--teal); }
.uidemo__dots button.is-done::before { width: 100%; }
.uidemo__dots button[aria-current="step"] { color: var(--sand); }
.uidemo__dots button[aria-current="step"].is-run::before { animation: uifill var(--dur, 3s) linear forwards; }
.uidemo__dots button:hover { color: var(--teal); }
@keyframes uifill { from { width: 0; } to { width: 100%; } }
.uidemo__pause { flex: none; cursor: pointer; font: 600 .8rem/1 var(--body); padding: 9px 14px; border-radius: 999px; background: none; color: var(--sand); border: 1px solid var(--line-strong); }
.uidemo__pause:hover { border-color: var(--teal); color: var(--teal); }
.section--sand .uidemo__dots button { border-top-color: var(--sand-deep); color: var(--ink-soft); }
.section--sand .uidemo__dots button[aria-current="step"] { color: var(--ink); }
.section--sand .uidemo__dots button::before { background: var(--violet); }
.section--sand .uidemo__dots button span { color: #00857E; }
.section--sand .uidemo__dots button:hover { color: var(--violet); }
.section--sand .uidemo__pause { color: var(--ink); border-color: var(--sand-deep); }
.section--sand .uidemo__pause:hover { color: var(--violet); border-color: var(--violet); }
.uidemo.is-paused *, .uidemo.is-paused *::before { animation-play-state: paused !important; }
.uidemo.is-static .uidemo__pause { display: none; }

/* reduced motion: script.js shows the final frame, no auto-advance; states jump to their end values */
@media (prefers-reduced-motion: reduce) {
  .uidemo *, .uidemo *::before, .uidemo *::after {
    transition-duration: 0s !important; transition-delay: 0s !important;
    animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  }
  .uidemo .ui-cursor { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .loop__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 960px) {
  /* backdrop-filter would make the fixed menu panel position relative to the header */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy); }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--sand); transition: transform .2s ease; }
  .nav-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; overflow-y: auto;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 40px; display: none;
  }
  .nav-open .nav__menu { display: flex; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; font: 600 1.35rem/1 var(--display); padding: 22px 0; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--teal); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > .nav__link { width: auto; flex: 1; }
  .nav__trigger { width: 48px; height: 48px; }
  .has-sub .sub { flex-basis: 100%; }
  .sub {
    position: static; width: auto !important; display: none !important; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 20px;
  }
  .has-sub.open .sub { display: block !important; }
  .sub--services .sub__col + .sub__col { margin-top: 12px; }
  .nav__cta { margin-top: 28px; }
  .hero__body, .statement__inner, .product__head, .about, .contact__grid, .footer__grid,
  .section__head--row, .bridge { grid-template-columns: 1fr; }
  .paths, .outcomes { grid-template-columns: 1fr; }
  .cta-strip__inner { align-items: start; }
  .hero__actions { justify-content: flex-start; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc__label { position: static; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ui--app { grid-template-columns: 150px minmax(0, 1fr); }
  .ui-ws { display: none; }
}
@media (max-width: 760px) {
  .ui--app { grid-template-columns: 1fr; min-height: 0; }
  .ui-side { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .ui-logo { padding: 0; font-size: 0; gap: 0; }
  .ui-nav { display: flex; gap: 2px; }
  .ui-nav li { padding: 6px 8px; font-size: 11.5px; white-space: nowrap; }
  .ui-nav li::before, .ui-nav .n-settings, .ui-side__foot { display: none; }
  .uidemo[data-step] .ui-nav li { box-shadow: none; }
  .ui-top { display: none; }
  .ui-stage { padding: 16px 14px; }
  .ui-cards { grid-template-columns: 1fr; }
  .ui-card { display: grid; grid-template-columns: minmax(0, 1fr) 110px; grid-template-areas: "tag viz" "title viz" "note viz"; gap: 4px 12px; padding: 11px 12px; }
  .ui-card .ui-tag { grid-area: tag; justify-self: start; } .ui-card strong { grid-area: title; } .ui-card small { grid-area: note; }
  .ui-card > svg, .ui-card .ui-meter, .ui-card .ui-bars { grid-area: viz; align-self: center; height: 40px; }
  .ui-builder { grid-template-columns: 1fr; }
  .ui-rules { min-height: 0; }
  .ui-rec { padding: 14px; }
  .ui-rec__move { font-size: 14px; }
  .cp-app { grid-template-columns: 1fr; }
  .cp-work { display: none; }
  .cp-slack { grid-template-columns: 1fr; }
  .sl-side { display: none; }
  .sl-thread { margin-left: 18px; }
  .cp-teams { grid-template-columns: 1fr; }
  .tm-rail { display: none; }
  .ui--copilot { min-height: 0; }
  .uidemo__controls { gap: 12px; align-items: center; }
  .uidemo__dots { gap: 6px; }
  .uidemo__dots button { font-size: 0; padding-top: 0; height: 12px; }
  .uidemo__dots button span { display: none; }
  .workflow-cols { grid-template-columns: 1fr; }
  .uidemo__scenes { gap: 6px; }
  .uidemo__scenes li { font-size: .74rem; padding: 7px 10px; white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__brand img { height: 22px; }
  .index a { grid-template-columns: 40px minmax(0, 1fr); }
  .index__d { grid-column: 2; margin-top: -10px; font-size: .92rem; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .inline-list li { width: 100%; }
  .loop__steps { grid-template-columns: 1fr; row-gap: 0; }
  .loop__steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 18px 0 18px 16px; border-bottom: 1px solid var(--line); }
  .loop__steps li .loop__n { grid-row: span 2; padding-top: 4px; }
  .loop__steps h3 { margin: 0 0 6px; }
  .loop__wave { display: none; }
  .form__row, .footer__nav { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 10px; }
  .trust { grid-template-columns: 1fr; }
  .trust li, .trust li + li { padding: 16px 0 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .uidemo__frame .demo__chrome { padding: 10px 12px; }
  .uidemo__url { font-size: .72rem; }
}

/* ================= Product pages (Oct 26 split: products hub / platform / copilot) ================= */
.prose-col p { color: var(--ink-soft); max-width: 58ch; margin-bottom: 18px; }
.prose-col .textlink { margin-top: 6px; }
.workflow-cols--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow-cols--three .workflow-p { margin-bottom: 0; }
.sub__feature[aria-current="page"] strong { color: var(--teal); }

/* ================= Analyst Co-pilot sizzle reel (.uidemo--reel) =================
   Faster cuts than the platform demo: short fades with a slight push-in, a cut flash (JS toggles .is-cut),
   and a lower-third label per surface. Scene chrome label follows data-scene. */
.uidemo--reel .uidemo__step { transform: scale(1.025); transition: opacity .28s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
.uidemo--reel .uidemo__step.is-active { transform: none; transition: opacity .28s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.uidemo--reel .ui--copilot { min-height: 440px; }
.uidemo--reel .uidemo__screen::after { content: ""; position: absolute; inset: 0; background: var(--sand); opacity: 0; pointer-events: none; z-index: 5; }
.uidemo--reel.is-cut .uidemo__screen::after { animation: reelflash .32s ease-out; }
@keyframes reelflash { 0% { opacity: .22; } 100% { opacity: 0; } }
.uidemo--reel .is-active .sl-msg, .uidemo--reel .is-active .sl-thread, .uidemo--reel .is-active .tm-msg, .uidemo--reel .is-on .cp-points li,
.uidemo--reel .is-active :is(.em-list li, .em-line, .em-btn, .gc-msg, .nt-block, .nt-callout, .sf-insight, .sf-btn, .api-l, .api-app, .end-grid li) {
  opacity: 1; transform: none; transition: opacity .3s ease calc(var(--i, 0) * .22s + .15s), transform .35s ease calc(var(--i, 0) * .22s + .15s);
}
.uidemo--reel :is(.em-list li, .em-line, .em-btn, .gc-msg, .nt-block, .nt-callout, .sf-insight, .sf-btn, .api-l, .api-app, .end-grid li) {
  opacity: 0; transform: translateY(6px); transition: opacity 0s linear .3s, transform 0s linear .3s;
}
.uidemo--reel .cp-aud { --ad: 1.2s; } .uidemo--reel .tm-card { --ad: 1.15s; }
.uidemo--reel .cp-new.is-on .cp-new__s .b-idle { animation-delay: 1.25s; }
.uidemo--reel .cp-new.is-on .cp-new__s .b-done { animation-delay: 1.25s; }

/* chrome label per scene */
.uidemo--copilot .uidemo__url { display: none; }
.uidemo[data-scene="app"] .uidemo__url.sc-app, .uidemo[data-scene="slack"] .uidemo__url.sc-slack, .uidemo[data-scene="teams"] .uidemo__url.sc-teams,
.uidemo[data-scene="email"] .uidemo__url.sc-email, .uidemo[data-scene="gchat"] .uidemo__url.sc-gchat, .uidemo[data-scene="notion"] .uidemo__url.sc-notion,
.uidemo[data-scene="sfdc"] .uidemo__url.sc-sfdc, .uidemo[data-scene="api"] .uidemo__url.sc-api, .uidemo[data-scene="end"] .uidemo__url.sc-end { display: inline; }

/* lower-third surface label */
.uidemo__step { position: relative; }
.reel-cut { position: absolute; left: 18px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 6px;
  background: rgba(15, 23, 42, .92); color: var(--sand); font: 600 15px/1 var(--display); letter-spacing: -.01em; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateX(-14px); pointer-events: none; }
.reel-cut i { width: 4px; height: 18px; border-radius: 2px; background: var(--orange); }
.is-active > .reel-cut { animation: reelcut 1.5s cubic-bezier(.2, .8, .2, 1) .05s both; }
@keyframes reelcut { 0% { opacity: 0; transform: translateX(-14px); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(6px); } }

/* scene: Email (light inbox) */
.cp-email { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); background: var(--sand-card); color: var(--ink); }
.em-list { border-right: 1px solid var(--sand-line); background: var(--sand-light); padding: 10px 0; }
.em-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--sand-line); font-size: 12.5px; }
.em-list li b { color: var(--ink); } .em-list li span { grid-column: 1; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-list li small { grid-column: 2; grid-row: 1; color: var(--ink-soft); font-size: 11px; }
.uidemo--reel .em-list li:not(.on) { opacity: 1; transform: none; }
.em-list li.on { background: var(--sand-card); box-shadow: inset 3px 0 0 var(--violet); }
.em-read { padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.em-read .ui-eyebrow { color: var(--ink-soft); }
.em-subj { font: 600 19px/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.em-line { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; }
.em-btn { align-self: flex-start; margin-top: 8px; padding: 8px 14px; border-radius: 6px; background: var(--ink); color: var(--sand); font: 600 12.5px/1 var(--body); }

/* scene: Google Chat (light, rounded cards) */
.cp-gchat { display: flex; flex-direction: column; background: #F7F5F0; color: var(--ink); padding-bottom: 14px; }
.gc-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--sand-line); }
.gc-head strong { font: 600 14px/1 var(--display); } .gc-head small { color: var(--ink-soft); font-size: 11.5px; }
.gc-space { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy); font: 600 12px/1 var(--display); }
.gc-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 18px 2px; }
.gc-msg .sl-av { border-radius: 50%; }
.gc-msg b { font-size: 13px; color: var(--ink); }
.gc-msg p { color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.gc-msg .sl-at { color: #00857E; background: rgba(0, 194, 184, .12); }
.gc-card { margin-top: 8px; display: flex; flex-direction: column; gap: 7px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--sand-deep); background: var(--sand-card); max-width: 440px; }
.gc-card .ui-eyebrow { color: var(--ink-soft); } .gc-card strong { font: 600 14px/1.2 var(--display); }
.gc-card .ui-meter { height: 26px; } .gc-card .ui-meter i { background: var(--sand-deep); }
.gc-card .ui-btn--ghost, .sf-side .ui-btn--ghost { box-shadow: inset 0 0 0 1px var(--sand-deep); color: var(--ink); align-self: flex-start; }

/* scene: Notion (white doc) */
.cp-notion { background: #FFFFFF; color: var(--ink); display: flex; justify-content: center; }
.nt-page { width: min(560px, 100%); padding: 30px 26px 60px; display: flex; flex-direction: column; gap: 12px; }
.nt-crumb { font-size: 11.5px; color: var(--ink-soft); }
.nt-title { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; }
.nt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); padding-bottom: 8px; border-bottom: 1px solid var(--sand-line); }
.nt-block b { display: block; font: 600 13.5px/1.3 var(--display); margin-bottom: 2px; }
.nt-block p { color: var(--ink-soft); font-size: 13px; }
.nt-callout { align-self: flex-start; padding: 8px 12px; border-radius: 6px; background: var(--sand-light); border-left: 3px solid var(--violet); font-size: 12.5px; font-weight: 600; }

/* scene: Salesforce (record + Co-pilot side panel) */
.cp-sfdc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--sand-light); color: var(--ink); }
.sf-rec { padding: 20px 22px; }
.sf-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--sand-line); }
.sf-head .ui-eyebrow { color: var(--ink-soft); } .sf-head strong { font: 600 18px/1.2 var(--display); }
.sf-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--violet); color: #fff; font: 600 11px/1 var(--display); }
.sf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 16px 0; }
.sf-fields dt { font-size: 11px; color: var(--ink-soft); } .sf-fields dd { margin: 0; font-weight: 600; font-size: 13px; }
.cp-sfdc .cp-skel i { background: rgba(15, 23, 42, .05); } .cp-sfdc .cp-skel i:first-child { height: 60px; }
.sf-side { display: flex; flex-direction: column; gap: 12px; background: var(--sand-card); border-left: 1px solid var(--sand-line); padding-bottom: 16px; }
.sf-side .cp-panel__head { border-bottom-color: var(--sand-line); }
.sf-insight { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; border: 1px solid var(--sand-deep); }
.sf-insight strong { font: 600 16px/1.2 var(--display); } .sf-insight p { font-size: 12.5px; color: var(--ink-soft); }
.sf-insight .ui-tag--violet { color: var(--violet); background: rgba(108, 92, 231, .12); }
.sf-insight .ui-bars { height: 36px; }
.sf-btn { margin: 0 16px; }

/* scene: your apps / API */
.cp-api { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 26px; background: #0B1222; }
.api-code { padding: 18px 20px; border-radius: 10px; background: var(--navy-2); border: 1px solid var(--line); font: 500 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--sand); }
.api-verb { color: var(--orange); } .api-k { color: #B7AEF7; } .api-s { color: #7FE6E0; }
.api-ok { color: var(--teal); font-weight: 600; margin-top: 8px; }
.api-wait { color: #FF9B66; }
.api-app { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 10px; background: var(--sand-card); color: var(--ink); }
.api-app .ui-eyebrow { color: var(--ink-soft); } .api-app strong { font: 600 16px/1.2 var(--display); } .api-app p { font-size: 12.5px; color: var(--ink-soft); }

/* finale: everywhere */
.cp-end { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 30px 28px; background: radial-gradient(120% 90% at 50% 0%, rgba(108, 92, 231, .22), transparent 60%), #0B1222; }
.end-title { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.end-title strong { font: 600 clamp(18px, 2.4vw, 26px)/1.15 var(--display); letter-spacing: -.02em; }
.end-title small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.end-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.end-grid li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(231, 225, 214, .04); border-top: 2px solid var(--teal); }
.end-grid li:first-child { border-top-color: var(--violet); }
.end-grid b { font: 600 14px/1.2 var(--display); } .end-grid span { font-size: 12px; color: var(--muted); }

/* reel scrubber: ten scenes */
.uidemo__dots--reel { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.uidemo__dots--reel button { font-size: .76rem; }

@media (max-width: 960px) {
  .workflow-cols--three { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cp-email, .cp-sfdc, .cp-api { grid-template-columns: 1fr; }
  .em-list, .sf-rec .cp-skel { display: none; }
  .sf-side { border-left: 0; border-top: 1px solid var(--sand-line); }
  .cp-api { padding: 16px; }
  .reel-cut { font-size: 13px; left: 12px; bottom: 12px; }
  .uidemo__dots--reel button { font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-cut { display: none; }
}
