/* Constraint site v5. Five type sizes, the app's colour tokens, one photo, real app pictures. See v5/DESIGN-SPEC.md. */
@font-face { font-family: Inter; src: url(inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --page: #f6f6f8; --surface: #fbfbfc; --raised: #ffffff; --line: #e1e1e6;
  --text: #1c1c20; --muted: #4d4d55; --faint: #66666e;
  --accent: #5b4dcf; --accent-hover: #4d40bd; --accent-soft: rgba(91, 77, 207, .08); --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(20, 18, 40, .04), 0 28px 70px -30px rgba(40, 30, 110, .28);
  --wash-top: rgba(246, 246, 248, .9); --wash-mid: rgba(246, 246, 248, .38);
  --s-display: 88px; --s-title: 44px; --s-lead: 20px; --s-body: 16px; --s-small: 14px;
  --gap: 128px; --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #161618; --surface: #19191c; --raised: #202023; --line: #2e2e33;
    --text: #e8e8ea; --muted: #adadb4; --faint: #93939b;
    --accent: #8f83ee; --accent-hover: #a297f2; --accent-soft: rgba(143, 131, 238, .12); --on-accent: #141318;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 28px 70px -30px rgba(0, 0, 0, .7);
    --wash-top: rgba(22, 22, 24, .84); --wash-mid: rgba(22, 22, 24, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #161618; --surface: #19191c; --raised: #202023; --line: #2e2e33;
  --text: #e8e8ea; --muted: #adadb4; --faint: #93939b;
  --accent: #8f83ee; --accent-hover: #a297f2; --accent-soft: rgba(143, 131, 238, .12); --on-accent: #141318;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 28px 70px -30px rgba(0, 0, 0, .7);
  --wash-top: rgba(22, 22, 24, .84); --wash-mid: rgba(22, 22, 24, .3);
  color-scheme: dark;
}

/* Light and dark pictures: one visible at a time, one description for screen readers. */
.v-dark { display: none; }
picture.v-light, picture.v-dark { display: contents; }
picture.v-dark > img { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v-dark { display: block; } :root:not([data-theme="light"]) .v-light { display: none; } }
:root[data-theme="dark"] .v-dark { display: block; } :root[data-theme="dark"] .v-light { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 var(--s-body)/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--s-display); line-height: 1; letter-spacing: -.04em; }
h2 { font-size: var(--s-title); line-height: 1.08; letter-spacing: -.025em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--raised); padding: 10px 14px; border-radius: 8px; font-size: var(--s-small); z-index: 50; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
/* The constraint.co wordmark, set in Inter: on scroll the letters fold away and the violet slash closes up to the C, leaving "C/". */
.brandmark { display: inline-flex; align-items: center; height: 44px; color: var(--text); text-decoration: none; }
.brandmark:hover { opacity: .82; }
.wm2 { display: inline-flex; align-items: baseline; font: 650 22px/1 Inter, system-ui, sans-serif; letter-spacing: -.035em; white-space: nowrap; }
.wm2-x { display: inline-block; overflow: hidden; vertical-align: bottom; transition: max-width .5s cubic-bezier(.4, 0, .2, 1), opacity .26s ease; }
.wm2-a { max-width: 4.6em; } .wm2-b { max-width: 1.4em; }
/* The backslash: the real character in violet, at the letters' weight, standing where the "i" is (constraint.co's logo). */
.wm2-s { color: var(--accent); letter-spacing: -.06em; margin: 0 -.015em 0 -.01em; }
.wm2-s { transition: margin .5s cubic-bezier(.4, 0, .2, 1); }
.site-header.scrolled .wm2-s { margin-left: .2em; }   /* folded to "C \": a space between the letter and the backslash (his note, 27 Oct) */
.site-header.scrolled .wm2-x { max-width: 0; opacity: 0; }
.brandmark-foot .wm2 { font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .wm2-x, .site-header { transition: none; } }
.head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.logo { font-weight: 650; font-size: var(--s-lead); letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--accent); }
.menu { font-size: var(--s-body); color: var(--muted); white-space: nowrap; }
.menu a { text-decoration: none; padding: 6px 0; }
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.menu .sep { color: var(--faint); padding: 0 4px; }
.head-row .btn-small { justify-self: end; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font: 500 var(--s-body)/1 Inter, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.btn-small { height: 38px; padding: 0 16px; font-size: var(--s-small); border-radius: 9px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.more { color: var(--accent); font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 96px 0 0; }
.hero h1 { max-width: 12ch; }
.hero-sub { font-size: var(--s-lead); line-height: 1.5; color: var(--muted); max-width: 36rem; margin-top: 28px; letter-spacing: -.01em; }
.hero .actions { margin-top: 40px; }
.hero .shot-hero { margin-top: 72px; }

.hero-photo { position: relative; margin-top: -84px; padding-top: 150px; text-align: center; isolation: isolate; }
.hero-photo::before { content: ""; position: absolute; inset: 0 0 auto; height: 880px; z-index: -2;
  background: url(calm/soft-2560.jpg) center 40px / auto 1180px no-repeat;
  background-image: image-set(url(calm/soft-2560.webp) type("image/webp"), url(calm/soft-2560.jpg) type("image/jpeg")); }
.hero-photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 882px; z-index: -1;
  background: linear-gradient(180deg, var(--page) 0%, var(--page) 6%, var(--wash-top) 14%, var(--wash-top) 30%, var(--wash-mid) 54%, transparent 66%, transparent 82%, var(--page) 99%); }
.hero-photo .hero-inner { margin: 0 auto; max-width: 960px; }
.hero-photo h1 { margin: 0 auto; }
.hero-photo .hero-sub { margin-left: auto; margin-right: auto; }
.hero-photo .actions { justify-content: center; }
.hero-photo .shot-hero { margin-top: 210px; }
.hero-photo .more { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 4px; }

/* Pictures */
.shot { margin: 0; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.is-window .shot-open img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.is-dialog .shot-open img { border-radius: 11px; filter: drop-shadow(0 1px 1px rgba(20, 18, 40, .06)) drop-shadow(0 26px 44px rgba(40, 30, 110, .16)); }
.shot figcaption { margin-top: 16px; font-size: var(--s-small); color: var(--faint); }


/* Sections */
.band { padding-top: var(--gap); }
.ideas-intro { font-size: var(--s-lead); line-height: 1.5; color: var(--muted); margin-bottom: 48px; letter-spacing: -.01em; }
.reply { font-size: var(--s-small); color: var(--faint); text-align: center; }
.ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.ideas-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.ideas-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.ideas-grid.cols-3 { gap: 40px 56px; }
.idea h3 { margin: 0; font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.01em; font-weight: 600; }
.grid-intro { color: var(--muted); margin-top: 20px; max-width: 40rem; }
.grid-band .full-text h2 { max-width: 20ch; }
.cols-4 .idea, .cols-3 .idea { border-top: 1px solid var(--line); padding-top: 24px; }
.statement-body { color: var(--muted); max-width: 40rem; margin: 0 auto 28px; }
.idea h2 { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.01em; }
.idea p { color: var(--muted); margin: 14px 0 18px; }
.statement { text-align: center; }
.statement-text { font-size: var(--s-title); line-height: 1.14; letter-spacing: -.025em; font-weight: 600; max-width: 22ch; margin: 0 auto 24px; text-wrap: balance; }

.split-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 48px; align-items: center; }
.split-text { grid-column: 1 / span 4; }
.split .shot { grid-column: 5 / span 8; }
.split-left .split-text { grid-column: 9 / span 4; grid-row: 1; }
.split-left .shot { grid-column: 1 / span 8; grid-row: 1; }
.split-text h2, .full-text h2 { max-width: 14ch; }
.split-text p, .full-text p { color: var(--muted); margin-top: 20px; max-width: 34rem; }
.full-text { margin-bottom: 48px; }
.full-note { color: var(--muted); max-width: 34rem; margin-top: 36px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.pair-after { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--raised); }
.pair-label { font-size: var(--s-small); font-weight: 500; color: var(--faint); margin-bottom: 12px; }
.pair-after .pair-label { color: var(--accent); }
.pair-text { font-size: var(--s-lead); line-height: 1.45; letter-spacing: -.01em; }

.close { text-align: center; padding-bottom: 40px; }
.close-inner { display: flex; flex-direction: column; align-items: center; }
.close-title { max-width: 18ch; }
.close-lead { font-size: var(--s-lead); color: var(--muted); margin-top: 20px; }
.close .actions { margin-top: 36px; justify-content: center; }
.close-photo { position: relative; margin-top: var(--gap); padding: 200px 0 220px; isolation: isolate; }
.close-photo::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(calm/soft-2560.jpg) center 70% / cover no-repeat;
  background-image: image-set(url(calm/soft-2560.webp) type("image/webp"), url(calm/soft-2560.jpg) type("image/jpeg")); }
.close-photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--page) 0%, var(--wash-top) 18%, var(--wash-mid) 60%, var(--wash-mid) 100%); }
.close-photo { padding-top: 200px; }
.close-photo + * { margin-top: 0; }

/* Request access */
.hero-form { padding-top: 72px; }
.form-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.form-intro h1 { font-size: var(--s-title); }
.form-intro .hero-sub { margin-top: 20px; }
.aside-title { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.01em; margin-top: 56px; }
.form-intro p:not(.hero-sub) { color: var(--muted); margin-top: 10px; max-width: 30rem; }
.form-card { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.notice { font-size: var(--s-small); background: var(--accent-soft); color: var(--text); border-radius: 10px; padding: 12px 14px; }
.form-intro .notice { display: inline-block; margin-top: 20px; }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.form-fields[disabled] input, .form-fields[disabled] select, .form-fields[disabled] textarea { opacity: .6; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: var(--s-small); font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field input, .field select, .field textarea { font: 400 var(--s-body)/1.4 Inter, sans-serif; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; }
.field small { font-size: var(--s-small); color: var(--faint); }
.choices { display: flex; gap: 24px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 8px; font-size: var(--s-body); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.form-foot { font-size: var(--s-small); }
.booking h2 { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.01em; }
.booking p:not(.form-foot) { color: var(--muted); }

/* Blog and articles */
.hero-blog h1 { max-width: 14ch; }
.post-list { list-style: none; margin: 72px 0 0; padding: 0; border-top: 1px solid var(--line); }
.post-row a { display: grid; grid-template-columns: 5fr 6fr; gap: 8px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-row h2 { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.01em; grid-row: span 2; }
.post-row p { color: var(--muted); }
.post-row a:hover h2 { color: var(--accent); }
.byline { font-size: var(--s-small); color: var(--faint); margin-top: 24px; }
.post-row .byline { margin-top: 0; }
.article { padding-top: 72px; }
.article-wrap { max-width: calc(720px + 2 * var(--gutter)); }
.crumb { margin-bottom: 28px; }
.article-head h1 { font-size: var(--s-title); line-height: 1.08; letter-spacing: -.025em; }
.prose { margin-top: 56px; }
.prose p { margin-top: 20px; }
.prose h2 { font-size: var(--s-lead); line-height: 1.35; letter-spacing: -.01em; margin-top: 56px; }
.prose blockquote { margin: 48px 0; padding: 0; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 22px; }
.prose blockquote p { font-size: var(--s-lead); line-height: 1.4; letter-spacing: -.01em; font-weight: 600; margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checklist li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 6px; }
.checklist .pair-label { margin: 0; color: var(--accent); }
.pair-inline { margin-top: 28px; }
.pair-inline .pair-card { padding: 22px; }
.pair-inline .pair-text { font-size: var(--s-body); line-height: 1.55; }
.article-next { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { margin-top: var(--gap); border-top: 1px solid var(--line); }
.close-photo ~ .site-footer, main:has(.close-photo:last-child) + .site-footer { margin-top: 0; }
.foot-row { display: flex; align-items: center; gap: 32px; padding-top: 32px; padding-bottom: 40px; font-size: var(--s-small); color: var(--faint); }
.foot-brand { display: grid; gap: 4px; }
.tagline { font-size: var(--s-small); color: var(--faint); }
.foot-links { display: flex; gap: 24px; margin-left: auto; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* Larger view */
.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: auto; }
.zoom::backdrop { background: rgba(12, 12, 16, .72); }
.zoom img { width: auto; max-width: none; height: auto; border-radius: 12px; }
.zoom-close { position: sticky; top: 8px; float: right; margin: 8px; width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--raised); color: var(--text); font-size: 22px; cursor: pointer; }


/* Dark: give app windows and captions more separation from the page. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .is-window .shot-open img { border-color: rgba(255, 255, 255, .13); } :root:not([data-theme="light"]) .shot figcaption { color: var(--muted); } }
:root[data-theme="dark"] .is-window .shot-open img { border-color: rgba(255, 255, 255, .13); }
:root[data-theme="dark"] .shot figcaption { color: var(--muted); }

/* Phones */
@media (max-width: 820px) {
  :root { --s-display: 46px; --s-title: 30px; --gap: 80px; --gutter: 16px; }
  .head-row { grid-template-columns: 1fr auto; height: auto; padding-top: 18px; row-gap: 14px; }
  .menu { grid-column: 1 / -1; grid-row: 2; justify-self: start; white-space: normal; }
  .hero { padding-top: 56px; }
  .hero-photo { margin-top: -108px; padding-top: 150px; }
  .hero-photo::before, .hero-photo::after { height: 1000px; }
  .hero-photo::before { background-image: image-set(url(calm/soft-1672.webp) type("image/webp"), url(calm/soft-1672.jpg) type("image/jpeg"));
    background-size: auto 760px; background-position: 63% 262px; }
  .hero-photo::after { background: linear-gradient(180deg, var(--page) 0%, var(--page) 34%, var(--wash-top) 40%, var(--wash-mid) 50%, transparent 58%, transparent 84%, var(--page) 99%); }
  .hero-photo .shot-hero { margin-top: 190px; }
  .hero .actions { gap: 20px; }
  .ideas-grid, .ideas-grid.cols-2, .ideas-grid.cols-3, .ideas-grid.cols-4 { grid-template-columns: 1fr; gap: 36px; }
  .split-grid { display: block; }
  .split .shot, .split-left .shot { margin-top: 36px; }
  .full-text { margin-bottom: 36px; }
  .pair, .checklist { grid-template-columns: 1fr; }
  .close-photo { padding: 120px 0 140px; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-card { padding: 22px; }
  .post-row a { grid-template-columns: 1fr; }
  .post-row h2 { grid-row: auto; }
  .foot-row { flex-wrap: wrap; gap: 16px 24px; }
  .foot-links { margin-left: 0; width: 100%; order: 3; }
  .copy { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* The four kinds of agents */
.diagram { margin: 0; display: grid; gap: 0; }
.dg-sentry { display: grid; grid-template-columns: repeat(9, auto); justify-content: stretch; }
.dg-sentry, .dg-flow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); }
.dg-sentry { display: grid; }
.dg-sentry > .dg-node { grid-column: 5; }
.dg-down { grid-column: 5; grid-row: 2; justify-self: center; padding: 6px 0; }
.dg-flow { list-style: none; margin: 0; padding: 0; display: grid; align-items: stretch; }
.dg-node { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgba(20, 18, 40, .04); }
.dg-node h3 { margin: 0 0 8px; font-size: var(--s-body); font-weight: 600; }
.dg-node p { font-size: var(--s-small); color: var(--muted); line-height: 1.5; }
.dg-hub { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--raised)); }
.dg-soft { background: var(--surface); border-style: dashed; }
.dg-arrow { display: grid; place-items: center; color: var(--faint); font-size: var(--s-lead); }
.dg-phone { display: none; }

@media (max-width: 820px) {
  .dg-sentry { display: none; }
  .dg-phone { display: grid; }
  .dg-phone.dg-node { display: block; }
  .dg-flow { grid-template-columns: 1fr; }
  .dg-flow .dg-arrow:not(.dg-phone) { transform: rotate(90deg); padding: 4px 0; }
  .dg-flow .dg-phone.dg-arrow { padding: 4px 0; }
}


/* Dark: frames and captions need more separation from a near-black page. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 22px 48px -28px rgba(0, 0, 0, .55); } }
:root[data-theme="dark"] { --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 22px 48px -28px rgba(0, 0, 0, .55); }

/* ---------- v8 ---------- */

/* The film: every scene is the same window, so the frame never changes size; scenes crossfade inside it. */
.seq { margin: 0; --interval: 4600ms; }
.film-a .seq-stage, .film-b .seq-stage { margin-bottom: 30px; }
.hero .seq { margin-top: 64px; }
.hero-photo .seq { margin-top: 150px; }
.seq-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-photo .seq-bar { display: inline-flex; padding: 5px 10px 5px 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--page) 78%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.seq-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); display: grid; place-items: center; cursor: pointer; flex: none; }
.seq-toggle span { width: 10px; height: 10px; border-left: 3px solid var(--text); border-right: 3px solid var(--text); box-sizing: border-box; }
.seq-toggle.is-paused span { border: 0; width: 0; height: 0; border-left: 9px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.seq-steps { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.seq-step { position: relative; display: flex; align-items: center; gap: 10px; font: 500 var(--s-small)/1 Inter, sans-serif; color: var(--faint); background: none; border: 0; padding: 10px 8px; cursor: pointer; text-align: left; }
.seq-step::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--line); }
.seq-prog { position: absolute; left: 8px; bottom: 2px; height: 2px; width: 0; border-radius: 2px; background: var(--accent); z-index: 1; }
.seq-step:hover { color: var(--text); }
.seq-step[aria-current="step"] { color: var(--text); }
.seq-step[aria-current="step"] .seq-prog { width: calc(100% - 16px); }
.seq.is-playing .seq-step[aria-current="step"] .seq-prog { animation: seq-fill var(--interval) linear both; }
@keyframes seq-fill { from { width: 0; } to { width: calc(100% - 16px); } }
.seq-num, .seq-line { display: none; }
.seq-stage { position: relative; aspect-ratio: 5 / 3; container-type: inline-size; }
.seq-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.seq-scene.is-active { opacity: 1; }
.seq-frame { position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); overflow: hidden; }
.seq-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.seq-point { position: absolute; left: 47%; transform: translate(-8px, -50%); opacity: 0; display: inline-flex; align-items: center; gap: 8px; font-size: min(var(--s-small), 1.2cqw); font-weight: 500; white-space: nowrap;
  background: var(--raised); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; padding: 5px 12px 5px 10px; box-shadow: 0 6px 18px -8px rgba(40, 30, 110, .35); transition: opacity .4s ease, transform .4s ease; }
.seq-point i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.seq-scene.is-active .seq-point { opacity: 1; transform: translate(0, -50%); transition-delay: calc(.6s + var(--d)); }

/* a: one subtitle, always in the same place on the frame, like a film's. */
.seq-subtitle { position: absolute; left: 50%; bottom: 0; z-index: 3; transform: translate(-50%, 50%); margin: 0; max-width: calc(100% - 48px);
  font-size: var(--s-lead); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--text); text-align: center; white-space: nowrap;
  padding: 13px 24px; border-radius: 999px; background: color-mix(in srgb, var(--raised) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); box-shadow: 0 18px 40px -20px rgba(40, 30, 110, .45); transition: opacity .3s ease; }
.seq-subtitle.is-swapping { opacity: 0; }
/* b: the line as a callout on the part of the picture it's about. */
.seq-callout { display: none; }
.film-b .seq-subtitle { display: none; }
.film-b .seq-callout { display: inline-flex; position: absolute; z-index: 3; align-items: center; gap: 10px; opacity: 0; transform: translate(-50%, -50%) translateY(8px);
  font-size: var(--s-body); font-weight: 600; white-space: nowrap; color: var(--on-accent); background: var(--accent); padding: 11px 18px 11px 14px; border-radius: 14px;
  box-shadow: 0 16px 34px -14px rgba(40, 30, 110, .6); transition: opacity .4s ease, transform .4s ease; }
.film-b .seq-callout i { width: 9px; height: 9px; border-radius: 50%; background: var(--on-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--on-accent) 28%, transparent); }
.film-b .seq-scene.is-active .seq-callout { opacity: 1; transform: translate(-50%, -50%); transition-delay: .55s; }
/* c: the steps written out beside the frame; the current one reads in full. */
.film-c { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 0 36px; align-items: center; text-align: left; }
.film-c .seq-bar { flex-direction: column; align-items: stretch; gap: 14px; margin: 0; }
.hero-photo .film-c .seq-bar { display: flex; border-radius: 18px; padding: 18px; }
.film-c .seq-toggle { align-self: flex-start; }
.film-c .seq-steps { flex-direction: column; gap: 0; }
.film-c .seq-step { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 4px 12px; width: 100%; padding: 12px 0 12px 16px; font-size: var(--s-body); }
.film-c .seq-step::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
.film-c .seq-prog { left: 0; top: 0; bottom: auto; width: 2px; height: 0; }
.film-c .seq-step[aria-current="step"] .seq-prog { width: 2px; height: 100%; }
.film-c.is-playing .seq-step[aria-current="step"] .seq-prog { animation: seq-fill-v var(--interval) linear both; }
@keyframes seq-fill-full { from { width: 0; } to { width: 100%; } }
@keyframes seq-fill-v { from { height: 0; } to { height: 100%; } }
.film-c .seq-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: var(--s-small); color: var(--faint); }
.film-c .seq-step[aria-current="step"] .seq-num { border-color: var(--accent); color: var(--accent); }
.film-c .seq-line { grid-column: 2; font-weight: 400; color: var(--muted); line-height: 1.45; }
.film-c .seq-step:not([aria-current="step"]) .seq-line { display: none; }
.film-c .seq-step[aria-current="step"] .seq-line { display: block; }
.film-c .seq-subtitle { display: none; }

/* Who does what: the hero's three sentences, with the agents and people behind each. */
.cast-band { position: relative; isolation: isolate; }
.cast-band::before { content: ""; position: absolute; inset: 40px 0 -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 55% at 10% 45%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
              radial-gradient(34% 50% at 90% 70%, rgba(240, 163, 140, .13), transparent 70%); }
.cast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cast-col { background: color-mix(in srgb, var(--raised) 90%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(20, 18, 40, .04), 0 26px 60px -38px rgba(40, 30, 110, .3); }
.cast-col h3 { margin: 0 0 24px; font-size: var(--s-lead); line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.cast-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.cast-member { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.cast-member h4 { margin: 4px 0 4px; font-size: var(--s-body); font-weight: 600; }
.cast-member p { color: var(--muted); line-height: 1.5; }
.cast-chip { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 Inter, sans-serif; flex: none; }
.cast-vp { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--raised)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent); }
.cast-icon { color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cast-stack { display: flex; padding-top: 4px; }
.cast-person { width: 28px; height: 28px; font-size: 12px; color: var(--text); background: color-mix(in srgb, var(--text) 10%, var(--raised)); box-shadow: 0 0 0 2px var(--raised); }
.cast-stack .cast-person + .cast-person { margin-left: -6px; }
.cast-member:has(.cast-stack) { grid-template-columns: 1fr; gap: 10px; }

/* A photo band mid-page: the decision on Home, over the water. */
.interlude { position: relative; margin-top: var(--gap); padding: 160px 0 150px; isolation: isolate; text-align: center; }
.interlude::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(calm/soft-2560.jpg) center 42% / cover no-repeat;
  background-image: image-set(url(calm/soft-2560.webp) type("image/webp"), url(calm/soft-2560.jpg) type("image/jpeg")); }
.interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--page) 0%, var(--wash-top) 14%, var(--wash-mid) 44%, var(--wash-mid) 80%, var(--page) 100%); }
.interlude-text { max-width: 40rem; margin: 0 auto; }
.interlude-text h2 { max-width: 16ch; margin: 0 auto; }
.interlude-text p { margin: 20px auto 0; max-width: 34rem; color: var(--text); }
.interlude-text .more { display: inline-block; margin-top: 20px; }
.interlude .shot { max-width: 940px; margin: 64px auto 0; }

/* A statement on soft colour. */
.statement { position: relative; isolation: isolate; }
.statement::before { content: ""; position: absolute; inset: 60px 0 -60px; z-index: -1; pointer-events: none; background: radial-gradient(42% 70% at 50% 55%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%); }
.statement .statement-text { max-width: 18ch; }
.statement .statement-body { max-width: 44rem; font-size: var(--s-lead); line-height: 1.55; letter-spacing: -.01em; }
.split-text .more { display: inline-block; margin-top: 20px; }

/* Option: one window stays put while the beats scroll past it. */
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 48px; }
.story-steps { grid-column: 1 / span 4; }
.story-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s ease; }
.story-step.is-active { opacity: 1; }
.story-step h2 { max-width: 14ch; }
.story-step p { color: var(--muted); margin-top: 20px; max-width: 34rem; }
.story-step .more { display: inline-block; margin-top: 18px; }
.story-inline { display: none; }
.story-stage { grid-column: 5 / span 8; position: sticky; top: calc(50vh - 250px); height: 500px; align-self: start; margin-top: calc(38vh - 250px); }
.story-frame { position: relative; height: 100%; }
.story-pic { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .6s ease; }
.story-pic.is-active { opacity: 1; }
.story-pic img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 12px; }
.story-pic.is-window img { border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

/* Blog, after constraint.co's: soft colour behind a serif headline, a dark band for the featured story, cards, a closing band. */
.serif-blog { --serif: Fraunces, "Source Serif 4", Georgia, serif; }
:root[data-type="inter"] .serif-blog { --serif: Inter, system-ui, sans-serif; }
.serif-blog main h1, .serif-blog main h2, .serif-blog main h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.02em; font-optical-sizing: auto; }
:root[data-type="inter"] .serif-blog main h1, :root[data-type="inter"] .serif-blog main h2, :root[data-type="inter"] .serif-blog main h3 { font-weight: 600; letter-spacing: -.025em; }
.hero-blog h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
:root[data-type="inter"] .hero-blog h1 em { font-style: normal; font-weight: 600; }
.hero-blog { position: relative; overflow: hidden; isolation: isolate; margin-top: -84px; padding: 204px 0 120px; }
.hero-blog h1 { max-width: 16ch; }
.blog-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blog-aura i { position: absolute; border-radius: 50%; filter: blur(64px); }
.blog-aura i:nth-child(1) { width: 560px; height: 420px; left: 50%; top: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.blog-aura i:nth-child(2) { width: 520px; height: 400px; left: 70%; top: 120px; background: radial-gradient(circle, rgba(143, 131, 238, .3), transparent 70%); }
.blog-aura i:nth-child(3) { width: 460px; height: 320px; left: 34%; top: 240px; background: radial-gradient(circle, rgba(240, 163, 140, .2), transparent 70%); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: var(--s-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.blog-featured { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0; background: #141318; }
.blog-featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 12% 15%, rgba(143, 131, 238, .22), transparent 36%), radial-gradient(circle at 82% 82%, rgba(91, 77, 207, .26), transparent 38%); }
.blog-featured .eyebrow { color: #a9a9b4; margin-bottom: 40px; }
.blog-featured .eyebrow::before { background: #8f83ee; }
.feature-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--raised); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7); }
.feature-body { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.feature-card .kicker, .post-card .kicker { font-size: var(--s-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.feature-card h2 { margin: 16px 0; max-width: 16ch; }
.feature-dek { font-size: var(--s-lead); line-height: 1.5; color: var(--muted); max-width: 32rem; }
.read { margin-top: 28px; color: var(--text); font-weight: 600; }
.read span { color: var(--accent); }
.feature-card:hover h2, .post-card:hover h3 { color: var(--accent); }
.feature-art { min-height: 420px; background: url(calm/soft-1672.jpg) center 62% / cover no-repeat; background-image: image-set(url(calm/soft-1672.webp) type("image/webp"), url(calm/soft-1672.jpg) type("image/jpeg")); }
.blog-list h2 { max-width: 16ch; }
.list-lede { color: var(--muted); margin-top: 18px; max-width: 36rem; }
.post-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; height: 100%; padding: 32px; border-radius: 24px; text-decoration: none; background: var(--raised); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 18, 40, .04), 0 12px 40px -14px rgba(40, 30, 110, .16); transition: transform .2s ease; }
.post-card:hover { transform: translateY(-2px); }
.post-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.post-card h3 { margin: 16px 0 10px; font-size: var(--s-lead); line-height: 1.3; }
.post-card p:not(.kicker) { color: var(--muted); }
.post-card .read { margin-top: auto; padding-top: 28px; }
.blog-cta { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--gap); padding: 150px 0; text-align: center; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border-top: 1px solid var(--line); }
.cta-orbit { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; border: 1px solid var(--line); z-index: -1; }
.cta-orbit::before, .cta-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.cta-orbit::before { inset: -110px; } .cta-orbit::after { inset: 90px; }
.blog-cta h2 { max-width: 18ch; margin: 0 auto; }
.blog-cta .actions { justify-content: center; margin-top: 36px; }
main:has(.blog-cta:last-child) + .site-footer { margin-top: 0; }
/* A post: soft colour behind the title, the sections listed beside the text, numbered serif headings. */
.post-head { position: relative; overflow: hidden; isolation: isolate; margin-top: -84px; padding: 148px 0 72px; border-bottom: 1px solid var(--line); }
.post-head .crumb { margin-bottom: 28px; }
.post-head h1 { font-size: var(--s-title); line-height: 1.08; max-width: 20ch; margin-top: 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: var(--s-small); color: var(--muted); }
.author-chip { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.post-body { max-width: calc(720px + 2 * var(--gutter)); }
.post-body.has-toc { max-width: calc(1040px + 2 * var(--gutter)); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 80px; }
.toc { position: sticky; top: 120px; align-self: start; margin-top: 64px; padding-left: 18px; border-left: 1px solid var(--line); }
.toc ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.toc a { font-size: var(--s-small); color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.post .prose { margin-top: 56px; max-width: 720px; }
.serif-blog .prose h2 { font-size: 32px; line-height: 1.15; margin-top: 64px; scroll-margin-top: 110px; }
.serif-blog .prose blockquote p { font-family: var(--serif); font-size: 32px; line-height: 1.2; font-weight: 500; font-style: italic; letter-spacing: -.015em; }
.prose h2 .num { font-family: var(--serif, inherit); font-style: italic; font-weight: 500; color: var(--accent); margin-right: .15em; }
.post .article-next { margin-bottom: 0; }

@media (max-width: 820px) {
  .seq-stage { aspect-ratio: 440 / 620; }
  .seq-point { display: none; }
  .seq-subtitle { font-size: var(--s-body); white-space: normal; width: calc(100% - 32px); border-radius: 14px; padding: 10px 14px; }
  /* On a phone the steps become progress segments, like a stories bar; the subtitle carries the words. */
  .seq.seq .seq-bar { display: flex; flex-direction: row; align-items: center; width: 100%; gap: 12px; margin: 0 0 14px; padding: 5px 14px 5px 5px; border-radius: 999px; }
  .seq.seq .seq-steps { flex: 1; flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .seq.seq .seq-steps li { flex: 1; }
  .seq.seq .seq-step { display: block; width: 100%; height: 30px; padding: 0; }
  .seq.seq .seq-label, .seq.seq .seq-num, .seq.seq .seq-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .seq.seq .seq-step::after, .seq.seq .seq-prog { left: 0; right: 0; top: auto; bottom: 14px; height: 3px; width: auto; }
  .seq.seq .seq-prog { right: auto; width: 0; }
  .seq.seq .seq-step[aria-current="step"] .seq-prog { width: 100%; height: 3px; }
  .seq.seq.is-playing .seq-step[aria-current="step"] .seq-prog { animation: seq-fill-full var(--interval) linear both; }
  .film-b .seq-callout { display: none; }
  .film-b .seq-subtitle, .film-c .seq-subtitle { display: block; }
  .film-c { display: block; }
  .cast-grid { grid-template-columns: 1fr; }
  .interlude { padding: 110px 0 100px; }
  .interlude .shot { margin-top: 40px; }
  .story-grid { display: block; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding-top: var(--gap); }
  .story-step:first-child { padding-top: 0; }
  .story-inline { display: block; margin-top: 32px; }
  .hero-blog { margin-top: -108px; padding: 180px 0 72px; }
  .post-head { margin-top: -108px; padding-top: 150px; }
  .blog-featured { padding: 72px 0; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-body { padding: 28px; }
  .feature-art { min-height: 220px; order: -1; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-cta { padding: 100px 0; }
  .cta-orbit { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .post-body.has-toc { display: block; }
  .toc { display: none; }
  .serif-blog .prose h2, .serif-blog .prose blockquote p { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .seq-scene, .seq-point, .seq-callout, .story-pic, .story-step { transition: none; } .seq-prog { animation: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seq-frame { border-color: rgba(255, 255, 255, .14); } }
:root[data-theme="dark"] .seq-frame { border-color: rgba(255, 255, 255, .14); }

/* ---------- v9 ---------- */

/* Four kinds of agents around one ticket. */
.kinds { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.05fr) 56px minmax(0, 1fr); align-items: center; }
.kinds-side { display: grid; gap: 12px; }
.kinds-side h3 { margin: 0 0 6px; font-size: var(--s-lead); font-weight: 600; letter-spacing: -.01em; }
.kinds-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kinds-who h4 { margin: 2px 0 4px; font-size: var(--s-body); font-weight: 600; }
.kinds-who p { color: var(--muted); font-size: var(--s-small); line-height: 1.45; }
.kinds-arrow { display: grid; place-items: center; color: var(--accent); font-size: 26px; }
.kinds-center { display: grid; gap: 28px; justify-items: center; }
.kinds-ticket { width: 100%; background: var(--raised); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 40px -26px rgba(40, 30, 110, .5); display: grid; gap: 8px; justify-items: start; }
.kinds-key { font-size: var(--s-small); color: var(--faint); font-variant-numeric: tabular-nums; }
.kinds-title { font-weight: 600; line-height: 1.35; text-wrap: balance; }
.kinds-chip, .sw-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--raised); white-space: nowrap; }
.kinds-chip i, .sw-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kinds-calls { display: grid; justify-items: center; gap: 10px; text-align: center; }
.kinds-calls p { font-weight: 600; }

/* A swarm of agent teams: chips land on the cards one after another when the section scrolls into view. */
.swarm { margin: 0; }
.sw-top { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.sw-counter { font-size: var(--s-small); font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.sw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sw-card { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; box-shadow: 0 1px 2px rgba(20, 18, 40, .04), 0 12px 30px -24px rgba(40, 30, 110, .4); }
.sw-key { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sw-title { font-weight: 600; line-height: 1.35; }
.sw-team { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.sw-step { color: var(--faint); font-size: 13px; }
.sw-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.sw-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f9e6a; }
.sw-state.sw-wait::before { background: var(--faint); }
.swarm.is-ready .sw-chip, .swarm.is-ready .sw-step, .swarm.is-ready .sw-state { opacity: 0; transform: translateY(-6px) scale(.96); }
.swarm.is-on .sw-chip, .swarm.is-on .sw-step, .swarm.is-on .sw-state { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 160ms + 200ms); }
.swarm.is-on .sw-state { transition-delay: calc(var(--i) * 160ms + 420ms); }

/* How one person steers it all: two pictures side by side. */
.twoup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; align-items: start; }
.twoup-cell h3 { margin: 28px 0 0; font-size: var(--s-lead); font-weight: 600; letter-spacing: -.01em; }
.twoup-cell p { color: var(--muted); margin-top: 10px; max-width: 34rem; }

/* The decision band on Home: soft colour instead of a second photo, so the photo bookends the page only at the top and bottom. */
.interlude-soft::before { background: radial-gradient(48% 70% at 50% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%), radial-gradient(36% 50% at 85% 75%, rgba(240, 163, 140, .12), transparent 70%); }
.interlude-soft::after { display: none; }
.interlude-soft { padding: 120px 0 40px; }
.interlude-soft .interlude-text p { color: var(--muted); }

/* What your team shares: six plain cards. */
.grid-band .cols-3 .idea, .grid-band .cols-4 .idea { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 24px; border-top: 1px solid var(--line); }
.grid-band .idea p { margin: 10px 0 0; }
.grid-band .ideas-grid.cols-4 { gap: 20px; }
@media (max-width: 1100px) and (min-width: 821px) { .grid-band .ideas-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 820px) {
  .kinds { grid-template-columns: 1fr; gap: 14px; }
  .kinds-arrow { transform: rotate(90deg); }
  .kinds-center { gap: 18px; }
  .sw-grid { grid-template-columns: 1fr; }
  .twoup-grid { grid-template-columns: 1fr; }
  .interlude-soft { padding: 80px 0 20px; }
}
@media (prefers-reduced-motion: reduce) { .swarm.is-ready .sw-chip, .swarm.is-ready .sw-step, .swarm.is-ready .sw-state { opacity: 1; transform: none; } }
.twoup-grid { align-items: stretch; grid-template-rows: auto auto auto; row-gap: 0; }
/* Each cell spans the grid's three rows (picture, heading, text), so pictures and headings line up across cells whatever the text length. */
.twoup-cell { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.twoup-cell .shot { align-self: end; }
@media (max-width: 820px) { .twoup-cell + .twoup-cell { margin-top: 44px; } }

/* ===== v10: the menu as pills (constraint.co's), and each page's own top ===== */
.menu { display: flex; gap: 2px; font-size: var(--s-small); font-weight: 600; }
.menu a { padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.menu a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.menu a[aria-current="page"] { color: var(--text); background: var(--accent-soft); box-shadow: none; }
.head-row .btn-small { border-radius: 999px; }

/* A page top: full width, under the header, its own background and picture; the words on the left. No eyebrow labels. */
.pt { position: relative; isolation: isolate; overflow: hidden; margin-top: -84px; padding: 168px 0 112px; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.pt h1 { max-width: 13ch; }
.pt .hero-sub { max-width: 31rem; }
.pt .actions { margin-top: 40px; }
.pt-visual { min-width: 0; }

/* Home: the photo, full bleed, with the product video on the right */
.pt-home .pt-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.pt-home::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(calm/soft-2560.jpg) center 30% / cover no-repeat;
  background-image: image-set(url(calm/soft-2560.webp) type("image/webp"), url(calm/soft-2560.jpg) type("image/jpeg")); }
.pt-home::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--page) 92%, transparent) 0%, color-mix(in srgb, var(--page) 70%, transparent) 42%, transparent 72%),
              linear-gradient(180deg, color-mix(in srgb, var(--page) 70%, transparent) 0%, transparent 24%, transparent 76%, var(--page) 100%); }
.pt-video { position: relative; margin: 0; }
.pt-film { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid color-mix(in srgb, #fff 40%, transparent); background: var(--surface);
  box-shadow: 0 2px 4px rgba(20, 18, 40, .06), 0 40px 80px -30px rgba(20, 16, 60, .55); }
.pt-play { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(18, 16, 34, .74); color: #fff; font: 500 var(--s-small)/1 Inter, sans-serif; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pt-play i { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pt-play i::before { content: ""; width: 8px; height: 10px; border-left: 3px solid #1c1c20; border-right: 3px solid #1c1c20; box-sizing: border-box; }
.pt-play.is-paused i::before { width: 0; height: 0; border-right: 0; border-left: 9px solid #1c1c20; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.pt-home .seq { margin: 0; }

/* At Scale: a dark band in both themes, the army running off the right edge */
.pt-scale { background: radial-gradient(120% 90% at 80% 40%, #2a2160 0%, #15122c 48%, #0d0c18 100%); color: #ecebf6; }
.pt-scale h1 { color: #fff; }
.pt-scale .hero-sub { color: #c9c6e4; }
.pt-scale .more { color: #c3bbff; }
.pt-scale .btn { background: #8f83ee; color: #141318; }
.pt-scale .btn:hover { background: #a297f2; }
.top-dark .site-header:not(.scrolled) .wm2 { color: #fff; }
.top-dark .site-header:not(.scrolled) .wm2-s { color: #a79cf5; }
.top-dark .site-header:not(.scrolled) .menu a { color: #c9c6e4; }
.top-dark .site-header:not(.scrolled) .menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.top-dark .site-header:not(.scrolled) .menu a[aria-current="page"] { color: #fff; background: rgba(143, 131, 238, .24); }
.army { margin: 0 -240px 0 0; }
.army-count { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--s-small); color: #c9c6e4; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12); padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.army-count span + span::before { content: "·"; margin-right: 14px; color: #8a86a8; }
.army-count b { color: #fff; font-weight: 600; }
.army-count .army-needs { color: #f5d390; }
.army-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 168px); gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 97%); mask-image: linear-gradient(90deg, #000 0%, #000 64%, transparent 97%); }
.army-tile { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 11px 12px; display: grid; gap: 9px;
  opacity: 0; transform: translateY(8px) scale(.97); animation: army-land .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
.army-top { display: flex; justify-content: space-between; align-items: center; font-size: var(--s-small); color: #a9a5c8; font-variant-numeric: tabular-nums; }
.army-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 Inter, sans-serif; color: #fff; background: rgba(255, 255, 255, .16); }
.army-chips { display: flex; gap: 4px; }
.army-chip { font-size: var(--s-small); line-height: 1; padding: 5px 8px; border-radius: 999px; background: rgba(143, 131, 238, .22); color: #e4e0ff; white-space: nowrap; }
.army-state { font-size: var(--s-small); color: #b9f0cf; display: flex; align-items: center; gap: 7px; }
.army-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #56d394; animation: army-pulse 2.2s ease-out infinite; animation-delay: calc(var(--i) * 70ms); }
.army-tile.review .army-state { color: #cfc9ff; } .army-tile.review .army-state::before { background: #a79cf5; animation: none; }
.army-tile.is-launch { border-color: rgba(167, 156, 245, .42); background: rgba(143, 131, 238, .1); }
.army-tile.done .army-state { color: #a9a5c8; } .army-tile.done .army-state::before { background: #8a86a8; animation: none; }
.army-tile.needs { border-color: rgba(245, 199, 107, .55); background: rgba(245, 199, 107, .09); }
.army-tile.needs .army-state { color: #f5d390; } .army-tile.needs .army-state::before { background: #f5c76b; animation: none; }
@keyframes army-land { to { opacity: 1; transform: none; } }
@keyframes army-pulse { 0% { box-shadow: 0 0 0 0 rgba(86, 211, 148, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(86, 211, 148, 0); } }
html[data-static] .army-tile { animation: none; opacity: 1; transform: none; } html[data-static] .army-state::before { animation: none; }

/* Together: warm light, people and an agent on one ticket */
.pt-together::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 78% 45%, color-mix(in srgb, #f4b58a 22%, transparent), transparent 70%), radial-gradient(50% 60% at 62% 72%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.pt-thread { position: relative; padding-bottom: 40px; }
.pt-post { position: absolute; right: -16px; bottom: 0; width: min(360px, 70%); background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 8px;
  box-shadow: 0 24px 50px -24px rgba(40, 30, 110, .5); }
.pt-post p { margin: 0; }
.pt-post-who { display: flex; align-items: center; gap: 8px; font-size: var(--s-small); color: var(--muted); }
.pt-post-who b { color: var(--text); font-weight: 600; }
.pt-bot { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; }
.pt-people { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-size: var(--s-small); color: var(--muted); }
.pt-avs { display: flex; }
.pt-avs span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--text) 10%, var(--raised)); box-shadow: 0 0 0 3px var(--page); }
.pt-avs span + span { margin-left: -8px; }
.pt-avs span.is-agent { border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* Steer by Intent: the brief, and the four boundaries it runs under */
.pt-steer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 75% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.pt-bounds { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pt-bounds li { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: var(--s-small); color: var(--muted); }
.pt-bounds h3 { margin: 0 0 4px; color: var(--text); font-size: var(--s-body); font-weight: 600; letter-spacing: 0; }

/* At Scale's explainer: who's who, then the film */
.cast { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cast li { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.cast li .cast-chip, .cast li .cast-stack { margin-bottom: 6px; }
.cast b { font-size: var(--s-body); font-weight: 600; }
.cast span:not([class]) { font-size: var(--s-small); color: var(--muted); line-height: 1.5; }

/* The founder's line, as At Scale's why */
.quote-band .wrap { display: grid; justify-items: center; text-align: center; gap: 18px; }
.quote-text { margin: 0; }
.quote-text p { margin: 0; font-size: var(--s-title); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; max-width: 24ch; text-wrap: balance; }
.quote-by { margin: 0; color: var(--muted); }

@media (max-width: 1100px) and (min-width: 821px) {
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-grid, .pt-home .pt-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .army { margin-right: 0; }
}
@media (max-width: 820px) {
  .menu { gap: 0; }
  .menu a { padding: 7px 10px; }
  .pt { padding: 124px 0 72px; }
  .pt-grid, .pt-home .pt-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pt .actions { margin-top: 28px; }
  .army { margin-right: 0; }
  .army-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .army-tile:nth-child(n+11) { display: none; }
  .pt-thread { padding-bottom: 0; }
  .pt-post { position: relative; right: auto; bottom: auto; width: auto; margin: -20px 12px 0; }
  .pt-bounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast { grid-template-columns: minmax(0, 1fr); }
  .quote-text p { font-size: var(--s-title); }
}
@media (prefers-reduced-motion: reduce) { .army-tile { animation: none; opacity: 1; transform: none; } .army-state::before { animation: none; } }
/* Full-width sections: the picture spans the column, so these sections read differently from the picture-beside-text ones. */
.shot-full .shot-open img { width: 100%; height: auto; }   /* width only: display stays with the light/dark switch */

/* Review round 1: the cast as compact rows on phones; Home's words steadier over the lake. (Trace Lab is centered again, his note.) */
@media (max-width: 820px) {
  .cast { gap: 8px; }
  .cast li { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 14px; align-items: center; }
  .cast li .cast-chip, .cast li .cast-stack { grid-row: span 2; margin-bottom: 0; }
  .pt-home::after { background: linear-gradient(180deg, color-mix(in srgb, var(--page) 88%, transparent) 0%, color-mix(in srgb, var(--page) 78%, transparent) 46%, color-mix(in srgb, var(--page) 30%, transparent) 70%, var(--page) 100%); }
  .pt-home::before { background-position: 70% 22%; }
}
@media (max-width: 820px) { .army-count { display: grid; gap: 4px; border-radius: 14px; padding: 10px 14px; } .army-count span + span::before { content: none; } }
@media (max-width: 820px) { .army-tile:nth-child(n+11).needs { display: grid; } .army-tile.needs { order: -1; } }   /* phones keep all three waiting calls in view (review round 2) */

/* 27 Oct, his notes: Home's top centered on the photo again (as v9), with the video moved into the first section. */
.pt-home.is-center { padding: 220px 0 260px; text-align: center; }
.pt-home.is-center .pt-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.pt-home.is-center h1 { margin: 0 auto; max-width: 12ch; }
.pt-home.is-center .hero-sub { margin-left: auto; margin-right: auto; }
.pt-home.is-center .actions { justify-content: center; }
.pt-home.is-center .more { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 4px; }
.pt-home.is-center::after { background: linear-gradient(180deg, var(--page) 0%, var(--wash-top) 12%, var(--wash-top) 34%, var(--wash-mid) 62%, transparent 80%, var(--page) 100%); }
.full .pt-video .pt-film { border-color: var(--line); }
/* At Scale's army: six rows, the last one fading out (his note: the top was a bit too tall). */
.army { -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
@media (min-width: 821px) { .army-tile:nth-child(n+37) { display: none; } }
/* The film plays once, then waits on Play again. */
.seq-replay { margin-left: auto; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--text);
  font: 500 var(--s-small)/1 Inter, sans-serif; cursor: pointer; }
.seq-replay:hover { border-color: var(--accent); }
@media (max-width: 820px) { .pt-home.is-center { padding: 150px 0 150px; } .army { -webkit-mask-image: none; mask-image: none; } }
/* Home's video tabs on phones: the same segmented bars as the films. */
@media (max-width: 820px) {
  .vid .seq-steps { flex: 1; flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .vid .seq-steps li { flex: 1; }
  .vid .seq-step { display: block; width: 100%; height: 30px; padding: 0; }
  .vid .seq-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vid .seq-step::after, .vid .seq-prog { left: 0; right: 0; top: auto; bottom: 14px; height: 3px; width: auto; }
  .vid .seq-prog { right: auto; }
}
.vid .seq-prog, .vid .seq-step[aria-current="step"] .seq-prog { width: calc((100% - 16px) * var(--f, 0)); }
@media (max-width: 820px) { .vid .seq-prog, .vid .seq-step[aria-current="step"] .seq-prog { width: calc(100% * var(--f, 0)); } }
