/* Litigence.com: one line of the case. Tokens first, then the notch, the spine, each section, states, motion. */

:root {
  --blue: #416FE0;
  --cyan: #22BDDF;
  --coral: #F88178;
  --cyan-text: #0C7F98;      /* cyan as text on light surfaces, AA */
  --bg: #F5F8FD;
  --card: #FFFFFF;
  --alt: #EDF2FA;
  --text: #24344D;
  --text-2: #5E6E86;
  --line: #D8E2F0;
  --on-blue: #FFFFFF;
  --on-coral: #24344D;

  /* the inverse block (slate) in light mode is the dark palette */
  --inv-bg: #1B2638;
  --inv-card: #243247;
  --inv-alt: #2C3C53;
  --inv-text: #EDF3FC;
  --inv-text-2: #AFBDD2;
  --inv-line: #41516A;

  --notch-bg: #1B2638;
  --notch-text: #EDF3FC;
  --notch-text-2: #AFBDD2;
  --notch-cta-bg: #FFFFFF;
  --notch-cta-text: #1B2638;

  --spine-a: #416FE0;
  --spine-b: #22BDDF;
  --spine-c: #F5F8FD;        /* the segment that crosses the blue close block */
  --spine-w: 32px;
  --spine-track: rgba(65, 111, 224, 0.08);

  --shadow-card: 0 10px 30px -10px rgba(36, 52, 77, 0.14), 0 2px 6px -2px rgba(36, 52, 77, 0.08);
  --shadow-notch: 0 12px 32px -10px rgba(27, 38, 56, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Figtree", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1232px;
  --sect: 96px;             /* between sections */
  --head: 48px;             /* heading to content */
  --sib: 24px;              /* between siblings */
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #8AAEFF; --cyan: #58D4ED; --coral: #FEA59D; --cyan-text: #58D4ED;
    --bg: #1B2638; --card: #243247; --alt: #2C3C53;
    --text: #EDF3FC; --text-2: #AFBDD2; --line: #41516A;
    --on-blue: #1B2638; --on-coral: #1B2638;
    --inv-bg: #243247; --inv-card: #2C3C53; --inv-alt: #2C3C53; --inv-text: #EDF3FC; --inv-text-2: #AFBDD2; --inv-line: #41516A;
    --notch-bg: #243247; --notch-text: #EDF3FC; --notch-text-2: #AFBDD2; --notch-cta-bg: #8AAEFF; --notch-cta-text: #1B2638;
    --spine-a: #8AAEFF; --spine-b: #58D4ED; --spine-c: #1B2638; --spine-track: rgba(138, 174, 255, 0.10);
    --shadow-card: 0 14px 34px -12px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #8AAEFF; --cyan: #58D4ED; --coral: #FEA59D; --cyan-text: #58D4ED;
  --bg: #1B2638; --card: #243247; --alt: #2C3C53;
  --text: #EDF3FC; --text-2: #AFBDD2; --line: #41516A;
  --on-blue: #1B2638; --on-coral: #1B2638;
  --inv-bg: #243247; --inv-card: #2C3C53; --inv-alt: #2C3C53; --inv-text: #EDF3FC; --inv-text-2: #AFBDD2; --inv-line: #41516A;
  --notch-bg: #243247; --notch-text: #EDF3FC; --notch-text-2: #AFBDD2; --notch-cta-bg: #8AAEFF; --notch-cta-text: #1B2638;
  --spine-a: #8AAEFF; --spine-b: #58D4ED; --spine-c: #1B2638; --spine-track: rgba(138, 174, 255, 0.10);
  --shadow-card: 0 14px 34px -12px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "tnum" 1, "ss01" 0;
  overflow-x: clip;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.notch-bar :focus-visible, .overlay :focus-visible { outline-color: var(--notch-text); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-2); }
html { scrollbar-color: var(--line) var(--bg); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 999px; z-index: 100; box-shadow: var(--shadow-card); }
.skip:focus { top: 16px; }
.sprite { display: none; }

/* type */
.display { font-size: clamp(42px, 6.3vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; max-width: 14ch; }
.display-2 { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; max-width: 16ch; }
.big { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 44ch; margin-top: 22px; }
.muted { color: var(--text-2); }
.h-section { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; max-width: 14ch; margin-bottom: 28px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--alt); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.block .ic { background: var(--inv-alt); }
.block .ic svg { stroke: var(--inv-text); }
.fine { font-size: 14px; color: var(--inv-text-2); max-width: 70ch; margin-top: 28px; }
mark {
  background: none;
  color: var(--on-coral);
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-size: calc(var(--p, 0) * 100%) 100%;
  background-position: left center;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size .9s var(--ease-out) .15s, color .3s;
}
mark:not(.on) { color: inherit; }
.big mark, .display mark { color: var(--on-coral); }
.big mark:not(.on), .display mark:not(.on) { color: inherit; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .5s var(--ease-out);
  white-space: nowrap;
}
.pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.pill:hover svg { transform: translateX(4px); }
.pill-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 10px 24px -12px rgba(36, 52, 77, 0.35); }
.pill-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(36, 52, 77, 0.4); }
.pill-primary:active { transform: translateY(0); }
.pill-quiet { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.pill-quiet:hover { background: var(--alt); }
.pill-inverse { background: var(--bg); color: var(--text); }
.pill-inverse:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.35); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 28px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- the notch nav (supaste) ---------- */
.notch { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
[data-theme="dark"] .notch-bar { box-shadow: var(--shadow-notch), inset 0 0 0 1px #41516A; }
.notch-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 8px 0 14px;
  background: var(--notch-bg); color: var(--notch-text);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-notch);
  position: relative;
  transition: background-color .35s var(--ease-out);
}
/* the shoulders: inverted corners that fuse the bar with the page edge */
.notch-bar::before, .notch-bar::after {
  content: ""; position: absolute; top: 0; width: 20px; height: 20px;
  background: radial-gradient(circle at 0 100%, transparent 20px, var(--notch-bg) 20.5px);
  transition: background .35s var(--ease-out);
}
.notch-bar::before { left: -20px; background: radial-gradient(circle at 0 100%, transparent 19.5px, var(--notch-bg) 20px); }
.notch-bar::after { right: -20px; background: radial-gradient(circle at 100% 100%, transparent 19.5px, var(--notch-bg) 20px); }
.notch-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; padding-right: 14px; }
.notch-brand img { width: 28px; height: 28px; }
.notch-links { display: flex; gap: 2px; }
.notch-links a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--notch-text-2);
  transition: color .25s, background-color .25s;
}
.notch-links a:hover { color: var(--notch-text); }
.notch-links a.active { color: var(--notch-text); background: rgba(255, 255, 255, 0.08); }
.notch-actions { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.notch-cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--notch-cta-bg); color: var(--notch-cta-text); font-size: 13px; font-weight: 700; transition: transform .4s var(--ease-out), filter .25s; }
.notch-cta:hover { transform: translateY(-1px); filter: brightness(1.04); }
.notch-signin { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--notch-text); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); transition: background-color .25s, box-shadow .25s; }
.notch-signin:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.theme-toggle { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--notch-text-2); transition: color .25s, background-color .25s; }
.theme-toggle:hover { color: var(--notch-text); background: rgba(255, 255, 255, 0.08); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: absolute; transition: opacity .35s, transform .5s var(--ease-out); }
.theme-toggle { position: relative; }
.theme-toggle .ic-moon { opacity: 0; transform: rotate(-40deg) scale(.7); }
.theme-toggle.is-dark .ic-moon { opacity: 1; transform: none; }
.theme-toggle.is-dark .ic-sun { opacity: 0; transform: rotate(40deg) scale(.7); }
.menu-button { display: none; width: 36px; height: 36px; border-radius: 999px; place-items: center; position: relative; }
.menu-button span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--notch-text); border-radius: 2px; transition: transform .45s var(--ease-out), opacity .3s; }
.menu-button span:first-child { top: 13px; }
.menu-button span:last-child { bottom: 13px; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* full-screen overlay menu (indisea): numbered, large */
.overlay { position: fixed; inset: 0; z-index: 40; background: var(--inv-bg); color: var(--inv-text); display: grid; align-content: end; padding: 96px var(--gutter) 40px; }
.overlay[hidden] { display: none; }
.overlay-links { display: grid; gap: 6px; margin-bottom: 48px; }
.overlay-links a { display: block; font-size: clamp(40px, 9vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; transition: transform .5s var(--ease-out), opacity .4s; }
.overlay-links a:hover { transform: translateX(8px); }
.overlay-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: -16px 0 32px; }
.pill-ghost { color: var(--inv-text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--inv-line); }
.pill-ghost:hover { background: var(--inv-alt); }
.overlay-foot { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--inv-line); padding-top: 24px; }
.overlay-foot .label { color: var(--inv-text-2); display: block; }
.overlay-foot a { font-size: 16px; }
body.menu-open { overflow: hidden; }
.overlay .overlay-links li { opacity: 0; transform: translateY(18px); }
body.menu-open .overlay .overlay-links li { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
body.menu-open .overlay .overlay-links li:nth-child(2) { transition-delay: .05s; }
body.menu-open .overlay .overlay-links li:nth-child(3) { transition-delay: .1s; }
body.menu-open .overlay .overlay-links li:nth-child(4) { transition-delay: .15s; }
body.menu-open .overlay .overlay-links li:nth-child(5) { transition-delay: .2s; }

/* ---------- the spine ---------- */
main { position: relative; }
.spine { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.spine { display: block; }
.spine path { fill: none; stroke-width: var(--spine-w); stroke-linecap: round; stroke-linejoin: round; }
.spine-track { stroke: var(--spine-track); }
.spine-path { stroke: url(#spine-hue); }
section { position: relative; }
section > .wrap, .marquee { position: relative; z-index: 2; }
.block { background: var(--inv-bg); color: var(--inv-text); }
.block-blue { background: var(--blue); color: var(--on-blue); }

/* ---------- entry: the mark blooms, the ring draws, then it flies to its place in the hero ---------- */
.intro { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; animation: intro-fallback 0s linear 3.4s forwards; }
html.no-intro .intro { display: none; }
body.intro-on { overflow: hidden; }
.intro.is-leaving { background: transparent; transition: background-color .45s var(--ease-out) .25s; pointer-events: none; }
.intro-stage { position: relative; width: 168px; height: 168px; display: grid; place-items: center; transform-origin: center; will-change: transform; }
.intro.is-leaving .intro-stage { transition: transform .85s var(--ease-out); }
.intro-mark { width: 128px; height: 128px; filter: drop-shadow(0 18px 30px rgba(36, 52, 77, 0.16)); clip-path: circle(0% at 50% 50%); opacity: 0; transform: scale(.82); animation: intro-bloom 1s var(--ease-out) .15s forwards; }
[data-theme="dark"] .intro-mark { filter: drop-shadow(0 0 28px rgba(138, 174, 255, 0.35)); }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 358; stroke-dashoffset: 358; transform: rotate(-90deg); animation: intro-draw 1.1s var(--ease-in-out) .05s forwards; }
.intro.is-leaving .intro-ring { opacity: 0; transition: opacity .3s; }
@keyframes intro-bloom { 0% { clip-path: circle(0% at 50% 50%); opacity: 0; transform: scale(.82); } 35% { opacity: 1; } 100% { clip-path: circle(72% at 50% 50%); opacity: 1; transform: none; } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fallback { to { visibility: hidden; pointer-events: none; } }
.hero.from-intro .hero-mark .mark { transition: none; }
.hero.from-intro:not(.landed) .hero-mark .mark { opacity: 0; transform: none; }
.hero.from-intro.landed .hero-mark .mark { opacity: 1; }

/* ---------- 01 hero ---------- */
.hero { min-height: min(100svh, 880px); display: flex; align-items: center; padding: 96px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.hero-copy { padding-top: 24px; }
.hero .display .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.5deg); filter: blur(6px); transform-origin: left bottom; }
.hero.in .display .w { opacity: 1; transform: none; filter: blur(0); transition: opacity .7s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); }
.hero .lede, .hero .actions { opacity: 0; transform: translateY(14px); }
.hero.in .lede { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) .55s, transform .9s var(--ease-out) .55s; }
.hero.in .actions { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) .7s, transform .9s var(--ease-out) .7s; }
.hero-mark { position: relative; display: flex; justify-content: center; padding-top: 12px; }
.hero-mark .mark { width: min(100%, 290px); height: auto; filter: drop-shadow(0 18px 30px rgba(36, 52, 77, 0.16)); opacity: 0; transform: scale(.86) translateY(10px); }
.hero.in .hero-mark .mark { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .25s, transform 1.4s var(--ease-out) .25s; }
[data-theme="dark"] .hero-mark .mark { filter: drop-shadow(0 0 28px rgba(138, 174, 255, 0.35)); }
[data-theme="dark"] .footer-brand img { filter: drop-shadow(0 0 14px rgba(138, 174, 255, 0.45)); }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 32px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); z-index: 2; }
.scroll-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- 02 wall (marquee) ---------- */
.wall { padding: 72px 0 0; }
.wall .h-section { margin-bottom: 12px; }
.marquee { overflow: hidden; margin-top: 8px; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 2px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.marquee[data-dir="right"] .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile {
  flex: 0 0 auto; width: 232px; min-height: 104px; padding: 20px 22px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: grid; align-content: space-between; gap: 10px;
  box-shadow: 0 1px 2px rgba(36, 52, 77, 0.04);
}
.tile strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tile span { font-size: 13px; color: var(--text-2); font-weight: 500; line-height: 1.3; }
.tile-ai strong { color: var(--cyan-text); }

/* ---------- 03 who ---------- */
.who { padding: var(--sect) 0 88px; }
.who-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.who-grid .h-section, .with-grid .h-section { margin-bottom: 0; padding-top: 6px; }
.who-copy { display: grid; gap: var(--sib); }

/* ---------- dark blocks ---------- */
.block { padding: 112px 0; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.problem .display-2 { max-width: 14ch; }
.problem-aside { max-width: 44ch; display: grid; gap: 16px; color: var(--inv-text-2); font-size: 17px; padding-bottom: 6px; }

/* ---------- 01, second beat: the statement ---------- */
.statement .display-2 { max-width: 19ch; }
.statement-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 66%; margin-top: var(--head); color: var(--inv-text-2); font-size: 17px; }
.statement-cols p { max-width: 40ch; }

/* ---------- 05 fit ---------- */
.fit { padding: var(--sect) 0; }
.fit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.fit-copy { display: grid; gap: 20px; }
.fit-copy p { max-width: 46ch; }
/* the flow: card nodes, script-routed wires, pulses that travel them (the spine's motif at desk scale) */
.flow { --wire: color-mix(in srgb, var(--text-2) 42%, var(--bg)); margin: 0; position: relative; display: grid; grid-template-columns: 156px minmax(120px, 1fr) 204px; align-items: center; min-height: 380px; padding: 8px 0; }
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wire { fill: none; stroke: var(--wire); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--len, 400px); stroke-dashoffset: var(--len, 400px); }
.in-view .flow-wire { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out) var(--d, 0s); }
.flow-pulse { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 26px var(--len, 400px); stroke-dashoffset: 26px; opacity: 0; animation: flow-out 10s var(--ease-in-out) infinite var(--pd, 0s); animation-play-state: paused; }
.flow-pulse[data-dir="in"] { animation-name: flow-in; }
.flow-pulse.is-ai { stroke: var(--cyan); }
.in-view .flow-pulse { animation-play-state: running; }
@keyframes flow-out { 0% { stroke-dashoffset: 26px; opacity: 1; } 12% { stroke-dashoffset: calc(-1 * var(--len, 400px)); opacity: 1; } 12.5%, 100% { stroke-dashoffset: calc(-1 * var(--len, 400px)); opacity: 0; } }
@keyframes flow-in { 0% { stroke-dashoffset: calc(-1 * var(--len, 400px)); opacity: 1; } 12% { stroke-dashoffset: 26px; opacity: 1; } 12.5%, 100% { stroke-dashoffset: 26px; opacity: 0; } }
.flow-node { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); opacity: 0; transform: translateY(10px); }
.flow-hub { opacity: 0; transform: scale(.8); }
.in-view .flow-node, .in-view .flow-hub { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.flow-team { --d: 0s; display: grid; justify-items: center; gap: 10px; padding: 18px 14px 18px; text-align: center; }
.flow-people { display: flex; }
.flow-people svg { width: 36px; height: 36px; padding: 8px; border-radius: 999px; background: var(--alt); border: 2px solid var(--card); fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-left: -10px; }
.flow-people svg:first-child { margin-left: 0; }
.flow-team strong, .flow-lane strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.flow-badge { position: absolute; left: 0; right: 0; bottom: -13px; width: fit-content; margin: 0 auto; font-size: 12px; font-weight: 700; color: var(--on-blue); background: var(--blue); padding: 4px 9px; border-radius: 999px; box-shadow: 0 0 0 3px var(--bg); opacity: 0; transform: translateY(4px); animation: flow-badge 10s var(--ease-out) infinite; animation-play-state: paused; }
.in-view .flow-badge { animation-play-state: running; }
@keyframes flow-badge { 0%, 24% { opacity: 0; transform: translateY(4px); } 27%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(4px); } }
.flow-hub { --d: .2s; position: relative; justify-self: center; width: 100px; height: 100px; display: grid; place-items: center; }
.flow-hub::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); z-index: 1; }
.flow-hub img { width: 66px; height: 66px; position: relative; z-index: 2; }
.flow-ring { position: absolute; inset: -11px; width: calc(100% + 22px); height: calc(100% + 22px); fill: none; stroke: var(--wire); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; animation: flow-spin 36s linear infinite; animation-play-state: paused; }
.in-view .flow-ring { animation-play-state: running; }
@keyframes flow-spin { to { transform: rotate(360deg); } }
.flow-halo { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--blue); opacity: 0; animation: flow-halo 10s var(--ease-out) infinite; animation-play-state: paused; }
.in-view .flow-halo { animation-play-state: running; }
@keyframes flow-halo {
  0%, 11% { opacity: 0; transform: scale(1); } 12% { opacity: .75; } 20% { opacity: 0; transform: scale(1.7); }
  35% { opacity: 0; transform: scale(1); } 36% { opacity: .75; } 44% { opacity: 0; transform: scale(1.7); }
  47% { opacity: 0; transform: scale(1); } 48% { opacity: .75; } 56% { opacity: 0; transform: scale(1.7); }
  71% { opacity: 0; transform: scale(1); } 72% { opacity: .75; } 80% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}
.flow-lanes { display: grid; gap: 14px; }
.flow-lane { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; }
.flow-lane:nth-child(1) { --pd: 0s; --d: .35s; } .flow-lane:nth-child(2) { --pd: 2.4s; --d: .45s; } .flow-lane:nth-child(3) { --pd: 4.8s; --d: .55s; } .flow-lane:nth-child(4) { --pd: 7.2s; --d: .65s; }
.flow-ic { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--alt); fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-ai .flow-ic { background: color-mix(in srgb, var(--cyan) 16%, var(--card)); stroke: var(--cyan-text); }
.flow-st { display: grid; font-size: 12px; font-weight: 500; color: var(--text-2); line-height: 1.3; margin-top: 3px; }
.flow-st i { grid-area: 1 / 1; font-style: normal; white-space: nowrap; }
.st-a { animation: flow-st-a 10s var(--ease-out) infinite var(--pd, 0s); animation-play-state: paused; }
.st-b { color: var(--blue); font-weight: 600; opacity: 0; animation: flow-st-b 10s var(--ease-out) infinite var(--pd, 0s); animation-play-state: paused; }
.flow-ai .st-b { color: var(--cyan-text); }
.in-view .st-a, .in-view .st-b { animation-play-state: running; }
@keyframes flow-st-a { 0%, 12% { opacity: 1; transform: none; } 15%, 84% { opacity: 0; transform: translateY(-4px); } 88%, 100% { opacity: 1; transform: none; } }
@keyframes flow-st-b { 0%, 12% { opacity: 0; transform: translateY(4px); } 15%, 84% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-4px); } }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sib); margin-top: 56px; }
.three .card { padding: 28px 28px 32px; display: grid; align-content: start; gap: 12px; }
.three .card h3 { margin-top: 2px; }
.three h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -0.025em; }
.three p { color: var(--text-2); font-size: 16px; }

/* ---------- 06 how (steps + video) ---------- */
.how { padding: 88px 0 var(--sect); background: var(--alt); }
.how .display-2 { margin-bottom: var(--head); }
.steps { display: grid; gap: var(--sib); }
.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow-card); }
.step:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.step:nth-child(even) .step-copy { order: 2; }
.step-copy { padding: 12px 8px 12px 24px; }
.step:nth-child(even) .step-copy { padding: 12px 24px 12px 8px; }
.step-num { display: block; font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--blue); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
#step-lily .step-num { color: var(--cyan-text); }
.step h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 14px; }
.step p:last-child { color: var(--text-2); font-size: 17px; max-width: 42ch; }
.shot { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--alt); aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.shot video { width: 100%; height: 100%; object-fit: cover; background: var(--alt); }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 600; color: var(--text-2); background: color-mix(in srgb, var(--card) 88%, transparent); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.shot .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 999px; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; box-shadow: 0 12px 28px -12px rgba(36, 52, 77, .45); }
.shot .play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.shot .play[hidden] { display: none; }

/* ---------- 07 why (reasons) ---------- */
.why { padding: 88px 0 80px; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sib); }
.reason { border-radius: var(--radius); padding: 32px 32px 36px; display: grid; align-content: start; gap: 12px; }
.reason h3 { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.12; letter-spacing: -0.025em; }
.reason p:last-child { font-size: 16px; line-height: 1.5; }
.reason-blue { background: var(--blue); color: var(--on-blue); }
.reason-slate { background: var(--inv-bg); color: var(--inv-text); }
.reason-slate p:last-child { color: var(--inv-text-2); }
.reason-coral { background: var(--coral); color: var(--on-coral); }
.reason-coral p:last-child { color: var(--on-coral); }

/* ---------- 08 with ---------- */
.with { padding: 56px 0 var(--sect); }
.with-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; margin-bottom: var(--head); align-items: start; }
.practices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sib); }
.practices .card { padding: 26px 26px 28px; display: grid; gap: 8px; align-content: start; }
.practices h3 { font-size: 22px; letter-spacing: -0.02em; }
.practices p { font-size: 15px; color: var(--text-2); }

/* ---------- 09 cloud ---------- */
.cloud .display-2 { margin-bottom: var(--head); }
.ledger { display: grid; gap: 0; border-top: 1px solid var(--inv-line); }
.ledger li { display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--inv-line); align-items: start; }
.ledger .ic { margin-top: 2px; }
.ledger h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.ledger p { color: var(--inv-text-2); font-size: 17px; max-width: 56ch; }

/* ---------- 10 contact ---------- */
.contact { padding: 112px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.contact .display-2 { max-width: 13ch; }
.contact-link { font-size: 17px; font-weight: 500; border-bottom: 2px solid color-mix(in srgb, var(--on-blue) 55%, transparent); padding-bottom: 2px; transition: border-color .3s; }
.contact-link:hover { border-color: var(--on-blue); }
.contact-mark { display: flex; justify-content: center; }
.plate { width: min(100%, 280px); aspect-ratio: 1; border-radius: 999px; background: var(--bg); display: grid; place-items: center; padding: 14%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.plate .mark { width: 100%; height: auto; }

/* ---------- footer ---------- */
.footer { padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); font-size: 15px; max-width: 28ch; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .25s; }
.footer-col a:hover { border-color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 14px; color: var(--text-2); }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveals (one grammar) ---------- */
/* no blanket entrance: the line is the authored moment; the diagram draw and the highlighter sweeps are its only companions */

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .three, .reasons { grid-template-columns: 1fr; }
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .notch-links { display: none; }
  .menu-button { display: grid; }
  .notch-cta { display: none; }
  .hero { padding-top: 92px; align-items: start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-end; padding: 0; }
  .hero-mark .mark { width: clamp(120px, 34vw, 200px); }
  .hero-copy { padding-top: 12px; }
  .who-grid, .with-grid, .fit-grid, .contact-grid, .problem-grid { grid-template-columns: 1fr; }
  .problem-grid { gap: 32px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 16px; padding: 16px; border-radius: 22px; }
  .step:nth-child(even) .step-copy { order: 0; }
  .step-copy, .step:nth-child(even) .step-copy { padding: 8px 6px 4px; }
  .ledger li { grid-template-columns: 56px 1fr; }
  .ledger li p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-mark { order: -1; justify-content: flex-end; }
  .plate { width: 180px; }
  .hero-copy, .who-copy, .with-grid .big, .problem .wrap, .statement .wrap, .cloud .wrap, .fit-copy, .how .display-2, .h-section, .steps, .reasons, .practices, .three { padding-right: 44px; }
  .statement-cols { max-width: none; grid-template-columns: 1fr; gap: 20px; }
  .steps, .reasons, .practices, .three, .flow { padding-right: 0; margin-right: 44px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --sect: 72px; --head: 32px; --sib: 16px; }
  .block, .contact { padding: 80px 0; }
  .wall { padding-top: 48px; }
  .who { padding: 64px 0 72px; }
  .how { padding-top: 64px; }
  .why { padding: 64px 0 48px; }
  .with { padding-top: 40px; }
  .three { margin-top: 40px; }
  .practices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tile { width: 200px; }
  .scroll-hint { display: none; }
  .hero { min-height: 0; padding-bottom: 56px; }
  :root { --spine-w: 20px; }
  .h-section { margin-bottom: 20px; }
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 30px; min-height: 0; padding: 0; }
  .flow-team { width: min(100%, 220px); }
  .flow-lanes { margin-left: 28px; width: calc(100% - 28px); }
  .footer { padding-top: 56px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .display .w, .hero .lede, .hero .actions, .hero-mark .mark, .flow-node, .flow-hub { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .flow-wire { stroke-dashoffset: 0 !important; transition: none !important; }
  .flow-pulse, .flow-halo, .st-a, .intro { display: none; }
  .flow-ring { animation: none; }
  .st-b, .flow-badge { opacity: 1 !important; transform: none !important; animation: none !important; }
  mark { background-size: 100% 100% !important; color: var(--on-coral) !important; transition: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track .tile.dup { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .scroll-hint svg { animation: none; }
  .spine-path { stroke-dashoffset: 0 !important; }
  .pill, .pill svg, .notch-cta, .notch-signin, .overlay-links a { transition: none; }
}
