/*
 * awna — the public home page (ver 2.4), ported from the owner's redesign
 * (assets/site-redesign, a Vite project) to plain files: no build step, no inline
 * style (the site's CSP), every asset under /static/site/home with the shared ?v=.
 * Paper and ink, rounded specimen plates.
 * Two families only: Playfair Display (display) and Manrope (text, interface).
 * The owner's edits to the redesign are marked "ver 2.4" where they changed a rule.
 */
:root {
  --paper: #efefec;
  --paper-2: #e4e4e0;
  --paper-3: #d6d6d1;
  --ink: #141414;
  --ink-2: #4b4b47;
  --ghost: #b5b5b0;
  --rule: #9b9b96;
  --cyan: #05a5d8;
  --cyan-deep: #0479a0;
  --pink: #ff2e88;
  --pink-deep: #c8005f;
  --blush: #ffd6e8;
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 2.2vw, 32px);
  --run-h: 44px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--run-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 8px; }

/* ---- Utility type: the Suisse-Mono role, set in Manrope caps ---------------- */
.label, .bracket, .run, .section-bar__meta, .plate__tabs button, .plate__frame figcaption {
  font: 600 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label { margin: 0 0 14px; color: var(--ink-2); }
.url { text-transform: none; letter-spacing: 0; color: var(--ink); }
.bracket { color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.bracket:hover { color: var(--cyan-deep); }
.bracket--pink { color: var(--pink-deep); }
.display {
  margin: 0;
  font: 400 clamp(40px, 5.2vw, 88px)/.98 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
em { font-style: italic; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.fine a { color: inherit; text-underline-offset: 2px; }

/* ---- Running header -------------------------------------------------------- */
.run {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--run-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--pad);
  background: rgba(239, 239, 236, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px dotted var(--rule);
}
.run a { text-decoration: none; }
.run__brand { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 4px; background: var(--ink); color: var(--paper); }
.run__brand img { width: 16px; height: 16px; border-radius: 3px; }
.run__title { padding: 4px 8px; border: 1px dotted var(--rule); white-space: nowrap; }
.run__nav { display: flex; gap: 18px; margin-left: auto; }
.run__nav a { color: var(--ink-2); transition: color .2s; }
.run__nav a:hover, .run__nav a[aria-current="true"] { color: var(--ink); }
.run__where { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 200px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.run__nav + .run__where { margin-left: 0; }
.run__dots { color: var(--rule); }
.run__pct { color: var(--ink); }
.run__cta { padding: 7px 13px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background .2s, color .2s; }
.run__cta:hover { background: var(--cyan); color: var(--ink); }

/* ---- Cover: two-page spread ------------------------------------------------ */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7px minmax(0, 1fr);
  gap: 0 clamp(20px, 3vw, 48px);
  padding: calc(var(--run-h) + 28px) var(--pad) 28px;
}
.cover__page { display: grid; min-height: 0; gap: 28px; }
/* ver 2.4.1: the "Inside every portal" line under the title went; the title takes the rest. */
.cover__page--left { grid-template-rows: auto 1fr; }
.cover__page--right { grid-template-rows: 1fr auto; }
.cover__gutter { border-left: 1px dotted var(--rule); border-right: 1px dashed var(--paper-3); }

.numerals { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.numerals li { display: flex; align-items: flex-start; }
.numerals li + li::before {
  content: "";
  width: 1.5px;
  height: clamp(44px, 7vw, 108px);
  margin: .1em clamp(12px, 1.8vw, 26px) 0;
  background: var(--ink-2);
  transform: rotate(18deg);
  transform-origin: center;
}
.numerals a { display: grid; gap: 8px; color: var(--ghost); text-decoration: none; }
.roll {
  display: block;
  height: 1em;
  overflow: hidden;
  font: 400 clamp(48px, 8.2vw, 128px)/1 var(--serif);
  letter-spacing: -.05em;
  font-variant-numeric: lining-nums;
}
.roll > span { display: block; transition: transform .38s var(--ease); }
.roll > span + span { color: var(--ink); font-style: italic; }
.numerals a:hover .roll > span, .numerals a:focus-visible .roll > span { transform: translateY(-100%); }
.numerals small { padding-left: .2em; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.cover__title { align-self: center; max-width: 760px; }
.cover h1 {
  margin: 0 0 26px;
  font: 400 clamp(46px, 5.6vw, 92px)/.96 var(--serif);
  letter-spacing: -.03em;
}
.cover h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.cover h1 .line > span { display: inline-block; transition: transform .8s var(--ease); }
.cover h1 .line:nth-child(2) > span { transition-delay: .07s; }
.cover h1 .line:nth-child(3) > span { transition-delay: .14s; }
.js:not(.is-ready) .rise .line > span { transform: translateY(108%); }
.rise-late { transition: opacity .7s .32s, transform .7s .32s var(--ease); }
.js:not(.is-ready) .rise-late { opacity: 0; transform: translateY(12px); }
.cover__lede { max-width: 540px; margin: 0 0 30px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--ink-2); }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.cover__index { display: flex; flex-direction: column; justify-content: center; gap: clamp(2px, .7vh, 10px); }
.cover__index .label { margin-bottom: 18px; }
.idx {
  width: fit-content;
  max-width: 100%;
  font: 400 clamp(34px, 3.9vw, 62px)/1.05 var(--serif);
  letter-spacing: -.025em;
  color: var(--ghost);
  text-decoration: none;
  transition: color .25s;
}
.idx:nth-of-type(2) { margin-left: 16%; }
.idx:nth-of-type(3) { margin-left: 6%; }
.idx:nth-of-type(4) { margin-left: 30%; }
.idx:nth-of-type(5) { margin-left: 3%; }
.idx:nth-of-type(6) { margin-left: 20%; }
.idx:hover, .idx:focus-visible { color: var(--ink); }
.idx--members:hover, .idx--members:focus-visible { color: var(--pink-deep); }
/* ver 2.4: the "Back matter" label went; its auto margin held the links to the right. */
.cover__back { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 10px 20px; }

/* ---- Marquee ------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 12px 0; border-block: 1px dotted var(--rule); }
/* ver 2.4: the list renders 2.13x as wide (3030px against 1421px), so the loop takes 2.13x
   the time (60s -> 128s): the same speed, about 23.7px a second. */
.marquee__track { display: flex; width: max-content; animation: marquee 128s linear infinite; }
.marquee span { padding-right: .35em; font: italic 400 22px/1 var(--serif); color: var(--ink-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Plate I: portal screens -------------------------------------------- */
.plate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(64px, 9vw, 128px) var(--pad);
}
.plate__head { position: sticky; top: calc(var(--run-h) + 28px); }
.plate__note { max-width: 430px; margin: 26px 0 0; font-size: 17px; color: var(--ink-2); }
.plate__tabs { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.plate__tabs button { padding: 4px 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.plate__tabs button:hover { color: var(--ink); }
.plate__tabs button[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.plate__frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 40px 70px -40px rgba(4, 57, 75, .35);
}
.plate__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fafaf8; border-bottom: 1px solid #ececea; }
.plate__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd7; }
.plate__chrome span { margin-left: 10px; padding: 5px 10px; border-radius: 999px; background: #efefec; font: 500 12px/1 var(--sans); color: #66665f; }
/* ver 2.4: each screen at its own shape and full resolution (a fixed 893:550 box cropped
   and blurred them), with two lines about it underneath and, on two, a sample to download. */
.plate__frame [role="tabpanel"] img, .plate__frame [role="tabpanel"] video { display: block; width: 100%; height: auto; background: #f4f4f1; }
.plate__about { display: flex; align-items: center; gap: 14px 22px; padding: 14px 16px; border-top: 1px solid #ececea; background: #fff; }
.plate__about p { flex: 1; margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.plate__about .pill-btn { flex: none; height: 38px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.plate__frame figcaption { padding: 10px 14px; background: #fafaf8; border-top: 1px solid #ececea; color: var(--ink-2); }

/* ---- Section bar ---------------------------------------------------------- */
.section-bar { display: flex; align-items: center; gap: 14px; padding: 18px var(--pad); }
.section-bar__title { margin: 0; font: 700 15px/1.2 var(--sans); letter-spacing: -.01em; }
.section-bar__meta { margin-left: auto; color: var(--ink-2); }

/* ---- Specimen plates (the four moats) -------------------------------------- */
/* ver 2.4: the section bar that opened the plates went; they keep one plate-gap of air. */
.moats { padding: 14px 0 clamp(40px, 6vw, 96px); border-top: 1px dotted var(--rule); }
.spec {
  --tx: 0px; --ty: 0px; --lx: 50%; --ly: 50%; --light: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: min(88vh, 800px);
  margin: 0 var(--pad) 14px;
  padding: clamp(28px, 5vw, 84px);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--run-h) + 14px);
}
.spec__tex {
  position: absolute;
  inset: -36px;
  z-index: -2;
  background: var(--tex) center / cover no-repeat;
  transform: translate3d(var(--tx), var(--ty), 0) scale(1.03);
  will-change: transform;
}
.spec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--lx) var(--ly), rgba(255, 255, 255, .26), transparent 62%);
  opacity: var(--light);
  transition: opacity .5s ease;
}
.spec--cyan .spec__tex, .spec--paper .spec__tex { --tex: url('/static/site/home/textures/flow-lines-v1.webp?v=ver2.6.3'); }
.spec--ink .spec__tex, .spec--blush .spec__tex { --tex: url('/static/site/home/textures/blue-ripple-v1.webp?v=ver2.6.3'); }
.spec--cyan { background: var(--cyan); color: var(--ink); }
.spec--cyan .spec__tex { opacity: .3; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); }
.spec--ink { background: #111315; color: #f2f2ef; }
.spec--ink .spec__tex { opacity: .2; mix-blend-mode: screen; }
.spec--ink::after { background: radial-gradient(560px circle at var(--lx) var(--ly), rgba(255, 46, 136, .2), transparent 62%); }
.spec--blush { background: var(--blush); color: var(--ink); }
.spec--blush .spec__tex { opacity: .2; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.2); }
.spec--paper { background: var(--paper-2); color: var(--ink); }
.spec--paper .spec__tex { opacity: .13; mix-blend-mode: multiply; filter: grayscale(1); }

.spec__title {
  margin: 0 0 18px;
  font: 750 clamp(40px, 5.4vw, 94px)/.95 var(--sans);
  letter-spacing: -.052em;
  text-wrap: balance;
}
.spec__title em { font: italic 400 1.05em/1 var(--serif); letter-spacing: -.02em; }
.spec__title--long { font-size: clamp(36px, 4.4vw, 76px); }
.spec__sub { margin: 0 0 18px; font: italic 400 clamp(21px, 1.8vw, 28px)/1.2 var(--serif); }
.spec__body { max-width: 540px; margin: 0 0 26px; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.55; opacity: .88; }
.spec__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spec__fine { margin: 18px 0 0; font-size: 12px; opacity: .72; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.pill-btn:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.pill-btn--ghost { background: transparent; color: var(--ink); }
.pill-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.pill-btn--light { border-color: #f2f2ef; background: #f2f2ef; color: #111315; }
.pill-btn--light:hover { background: transparent; color: #f2f2ef; }

.spec__art { position: relative; justify-self: center; width: 100%; max-width: 440px; }
/* Design: the chat's own flyer, with the Ideas engine and version strip */
.spec__art--flyer { display: grid; justify-items: center; gap: 16px; }
.spec__art--flyer img {
  width: min(300px, 72%);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 34px 60px -24px rgba(4, 57, 75, .6);
  transform: rotate(-2.5deg);
}
.idea-chip {
  position: absolute;
  top: 9%;
  left: 0;
  z-index: 2;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.35;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4);
  transform: rotate(2deg);
}
.idea-chip b { display: block; margin-bottom: 5px; color: var(--pink-deep); font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.versions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.versions span { padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .55); font: 600 12px/1 var(--sans); }
.versions .on { background: var(--ink); color: var(--paper); }
/* Community: the bouncer log */
.log { display: grid; gap: 10px; padding: 14px; border: 1px solid #2c2f33; border-radius: 16px; background: #1b1d20; box-shadow: 0 30px 60px -30px #000; }
.log__head { display: flex; justify-content: space-between; margin: 6px 4px 0; color: #8d939a; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.log__head span + span { color: var(--cyan); }
.log__msg { position: relative; padding: 12px 14px; border-radius: 12px; background: #25282c; }
.log__who { color: #c4c9ce; font: 700 12px/1 var(--sans); }
.log__msg p { margin: 7px 0 0; color: #f2f2ef; font-size: 14.5px; line-height: 1.4; }
.log__msg--scam p { color: #8d939a; text-decoration: line-through; text-decoration-color: var(--pink); }
.log__msg--soft { background: transparent; border: 1px dashed #3a3e43; }
.stamp {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 7px;
  border: 1.5px solid var(--pink);
  border-radius: 4px;
  color: var(--pink);
  font: 800 10.5px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.stamp--ok { border-color: var(--cyan); color: var(--cyan); }
/* Attendance: a code that keeps changing */
.spec__art--qr { display: grid; justify-items: center; gap: 12px; }
.qr-card { width: min(320px, 100%); padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 34px 60px -28px rgba(200, 0, 95, .45); }
.qr-card__head, .qr-card__foot { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font: 600 12.5px/1.2 var(--sans); }
.qr-card__head span + span { color: var(--pink-deep); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.qr { display: block; width: 100%; aspect-ratio: 1; margin: 14px 0 12px; }
.qr-card__timer { height: 4px; margin-bottom: 12px; overflow: hidden; border-radius: 99px; background: #f6e1ea; }
.qr-card__timer i { display: block; width: 100%; height: 100%; background: var(--pink); transform-origin: left center; }
.qr-card__timer i.is-running { animation: qr-drain var(--qr-ms, 2400ms) linear forwards; }
@keyframes qr-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.qr-card__foot b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pts { color: var(--cyan-deep); }
.qr-note { margin: 0; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
/* Records: ledger, Vault quote, transfer of power */
.spec__art--records { display: grid; gap: 12px; max-width: 420px; }
.mini { padding: 14px 16px; border: 1px solid var(--paper-3); border-radius: 14px; background: #fbfbf9; box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .4); }
.mini:nth-child(2) { transform: translateX(22px); }
.mini:nth-child(3) { transform: translateX(-8px); }
.mini__head { margin: 0 0 8px; color: var(--ink-2); font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mini--ledger p:not([class]) { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; margin: 0; padding: 6px 0; border-top: 1px dotted var(--rule); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mini--ledger p:not([class]) span:first-child { color: var(--ink-2); }
.mini--ledger b { color: var(--cyan-deep); }
.mini--ledger b.neg { color: var(--ink); }
.mini__stamp { margin: 8px 0 0; color: var(--pink-deep); font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mini--vault blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--cyan); font: italic 400 17px/1.35 var(--serif); }
.mini__src { margin: 8px 0 0; color: var(--cyan-deep); font: 700 11px/1 var(--sans); }
.handoff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; font: 400 18px/1.2 var(--serif); }
.handoff i { color: var(--pink-deep); font-style: normal; }
.mini__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12.5px/1 var(--sans); }

/* ---- Roles: specimen grid with card / list views ------------------------- */
.roles { padding: clamp(40px, 6vw, 96px) 0; border-top: 1px dotted var(--rule); }
.view-toggle { display: inline-flex; margin-left: 10px; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.view-toggle button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 12.5px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.roles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 var(--pad); }
.role {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 540px;
  padding: 18px 20px 22px;
  border-radius: var(--radius);
  background: var(--paper-2);
  scroll-margin-top: calc(var(--run-h) + 70px);
  transition: box-shadow .3s;
}
.role:target { box-shadow: inset 0 0 0 2px var(--cyan); }
.role__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.role__head h3 { margin: 0; font: 700 15px/1.2 var(--sans); }
.role__head span { color: var(--ink-2); font-size: 12.5px; text-align: right; }
.role__glyph {
  align-self: center;
  margin: 0;
  text-align: center;
  font: 400 clamp(120px, 12.5vw, 210px)/1 var(--serif);
  letter-spacing: -.04em;
  user-select: none;
}
.role:hover .role__glyph { font-style: italic; }
.role__cmd { margin: 0 0 16px; font: 500 clamp(18px, 1.45vw, 22px)/1.3 var(--sans); letter-spacing: -.015em; }
.role__cmd code, .commands code { color: var(--cyan-deep); font: 700 .92em/1 var(--sans); }
.role__list { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.role__list li { padding: 8px 0; border-top: 1px dotted var(--rule); }
.role--members { background: var(--blush); }
.role--members .role__glyph { color: var(--pink-deep); }
.role--members .role__head span { color: var(--pink-deep); font-weight: 700; }
.role--members .role__list li { border-top-color: rgba(200, 0, 95, .35); }

/* Card view: share row tracks across each row of cards so commands and lists line up. */
@supports (grid-template-rows: subgrid) {
  .roles:not([data-view="list"]) .roles__grid { grid-auto-rows: auto auto auto auto; row-gap: 0; }
  .roles:not([data-view="list"]) .role { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-height: 0; margin-bottom: 14px; }
  .roles:not([data-view="list"]) .role__glyph { margin: clamp(36px, 5vw, 72px) 0; }
}

.roles[data-view="list"] .roles__grid { grid-template-columns: 1fr; gap: 0; }
.roles[data-view="list"] .role {
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.25fr) minmax(0, 1.6fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 28px;
  min-height: 0;
  padding: 22px 0;
  border-top: 1px dotted var(--rule);
  border-radius: 0;
  background: transparent;
}
.roles[data-view="list"] .role__glyph { display: none; }
.roles[data-view="list"] .role__head { flex-direction: column; gap: 6px; }
.roles[data-view="list"] .role__head h3 { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--serif); letter-spacing: -.02em; }
.roles[data-view="list"] .role__head span { text-align: left; }
.roles[data-view="list"] .role--members h3 { color: var(--pink-deep); }
.roles[data-view="list"] .role__cmd { margin: 4px 0 0; }
.roles[data-view="list"] .role__list li:first-child { padding-top: 4px; border-top: 0; }

/* ---- Chapter: the board chat ----------------------------------------------- */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(64px, 8vw, 120px) var(--pad);
  border-top: 1px dotted var(--rule);
}
.chapter__margin { position: sticky; top: calc(var(--run-h) + 28px); }
.chapter__lede { max-width: 440px; margin: 26px 0 30px; font-size: 17px; color: var(--ink-2); }
.commands { display: grid; margin: 0; }
.commands div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dotted var(--rule); }
.commands dt, .commands dd { margin: 0; }
.commands dd { color: var(--ink-2); font-size: 14.5px; }
.board-chat .stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 18px;
  border: 1px solid var(--paper-3);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 50px 90px -60px rgba(4, 57, 75, .5);
}

/* ---- Pricing -------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(64px, 8vw, 120px) var(--pad);
  border-top: 1px dotted var(--rule);
}
.steps { display: grid; margin: 38px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; gap: 14px; padding: 16px 0; border-top: 1px dotted var(--rule); }
.steps__n { color: var(--cyan-deep); font: italic 400 44px/1 var(--serif); }
.steps p { max-width: 470px; margin: 0; color: var(--ink-2); }
.steps b { color: var(--ink); }
.pricing__sheet { align-self: start; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--paper-2); }
.prices { margin: 0 0 26px; padding: 0; list-style: none; }
.prices li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--paper-3); }
.prices__name { font: 600 17px/1.2 var(--sans); }
.prices__name small { display: block; margin-top: 3px; color: var(--ink-2); font: 400 13px/1.3 var(--sans); }
.prices i { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--rule); transform: translateY(-6px); }
.prices__val { font: 400 clamp(36px, 3.5vw, 56px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.estimator { margin-bottom: 16px; padding: 18px; border-radius: 16px; background: var(--paper); }
.estimator label { display: block; margin-bottom: 12px; font: 600 14px/1.2 var(--sans); }
.estimator output { color: var(--cyan-deep); font: italic 400 22px/1 var(--serif); }
.estimator input[type="range"] { width: 100%; margin: 0; accent-color: var(--ink); }
.estimator__out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 14px 0 0; color: var(--ink-2); font-size: 14px; }
.estimator__out b { margin-right: 3px; color: var(--ink); font: 400 26px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.estimator__out i { color: var(--ghost); font: italic 400 14px/1 var(--serif); }
.pricing .fine { margin: 0; }

/* ---- Privacy -------------------------------------------------------------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(64px, 8vw, 120px) var(--pad);
  border-top: 1px dotted var(--rule);
}
.privacy__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.privacy__grid div { padding: 20px 0; border-top: 1px dotted var(--rule); }
.privacy__grid h3 { margin: 0 0 8px; font: 400 clamp(24px, 2vw, 30px)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.privacy__grid p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.privacy__fine { grid-column: 2; max-width: 640px; margin: 4px 0 0; }

/* ---- Beta banner: shiny glass --------------------------------------------- */
.beta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 480px;
  margin: clamp(24px, 4vw, 48px) var(--pad) clamp(48px, 6vw, 96px);
  padding: clamp(28px, 6vw, 96px) clamp(16px, 4vw, 64px);
  border-radius: 28px;
}
.beta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 80% at 12% 18%, #8fe1ff 0%, transparent 62%),
    radial-gradient(50% 70% at 88% 84%, var(--pink) 0%, transparent 62%),
    radial-gradient(40% 50% at 72% 12%, var(--blush) 0%, transparent 70%),
    linear-gradient(120deg, var(--cyan) 0%, #5cc8ec 46%, #ff8fc2 100%);
}
.beta__bg::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 64%);
  animation: beta-float 16s ease-in-out infinite alternate;
}
.beta__bg::after { content: ""; position: absolute; inset: 0; background: url('/static/site/home/textures/blue-ripple-v1.webp?v=ver2.6.3') center / cover; mix-blend-mode: soft-light; opacity: .6; }
@keyframes beta-float { to { transform: translate(110%, 70%); } }
.beta__glass {
  --mx: 50%; --my: 35%; --glass-rx: 0deg; --glass-ry: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(900px, 100%);
  padding: clamp(28px, 4.4vw, 64px) clamp(18px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: rgba(255, 255, 255, .7);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .3),
    0 34px 80px -34px rgba(90, 0, 50, .5);
  transition: transform .5s var(--ease);
}
/* Tilt only while the mouse is over the banner, so resting text is never rasterised in 3D. */
.beta__glass.tracking { transform: perspective(1400px) rotateX(var(--glass-rx)) rotateY(var(--glass-ry)); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .beta__glass { background: rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
}
.beta__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 30%);
}
.beta__glass::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: beta-sheen 7s var(--ease) infinite;
}
@keyframes beta-sheen { 0%, 62% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
.beta__title { margin: 0 0 30px; }
.beta__line { display: block; color: var(--ink); font: 400 clamp(30px, 3.8vw, 58px)/1.05 var(--serif); letter-spacing: -.02em; }
.beta__line--big { margin-top: 10px; font: 800 clamp(44px, 6.6vw, 112px)/.95 var(--sans); letter-spacing: -.055em; }
.beta__line--big em {
  padding: 0 .04em;
  color: var(--pink-deep);
  font: italic 400 1.08em/1 var(--serif);
  letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.beta__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 17px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.beta__cta:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .55); }
.beta__fine { max-width: 470px; margin: 18px auto 0; color: rgba(20, 20, 20, .78); font-size: 13px; }

/* ---- Footer -------------------------------------------------------------- */
/* ver 2.4.1: everything centred, and the old site's lettering back in place of the black
   wordmark (site.css .wm-banner, ver 2.1.4): the whole logo, faded awna blue through the
   banner-wordmark.png mask, in a box exactly its own shape that clips it. home.js moves
   --wm-y from 40% to 0% as the footer scrolls in, so the letters rise out of the box's
   foot into place; at rest, and with reduced motion, they sit at 0%. */
.foot { padding: clamp(40px, 6vw, 80px) var(--pad) 28px; border-top: 1px dotted var(--rule); text-align: center; }
.foot__wm { position: relative; overflow: hidden; isolation: isolate; width: min(78%, 1100px); aspect-ratio: 1736 / 583; margin: 0 auto clamp(32px, 5vw, 64px); }
.foot__wm-word {
  position: absolute;
  inset: 0;
  transform: translateY(var(--wm-y, 0%));
  will-change: transform;
  background: linear-gradient(180deg, #05a5d8 0%, rgba(5, 165, 216, .78) 42%, rgba(127, 200, 240, .5) 100%);
  -webkit-mask: url('/static/site/home/branding/banner-wordmark.png?v=ver2.6.3') center / 100% 100% no-repeat;
  mask: url('/static/site/home/branding/banner-wordmark.png?v=ver2.6.3') center / 100% 100% no-repeat;
}
/* No mask support: no box of flat blue; the columns and the colophon carry the footer. */
@supports not ((-webkit-mask-image: none) or (mask-image: none)) { .foot__wm { display: none; } }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: center; gap: 24px; padding-bottom: 32px; }
.foot__cols nav { display: grid; align-content: start; justify-items: center; gap: 8px; }
.foot__cols a { font-size: 15px; text-decoration: none; transition: color .2s; }
.foot__cols a:hover { color: var(--cyan-deep); }
.foot__colophon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px dotted var(--rule); color: var(--ink-2); font-size: 12.5px; }
.foot__colophon img { width: 36px; height: 36px; border-radius: 6px; }
.foot__colophon p { margin: 0; }
.foot__colophon p:last-child { flex-basis: 100%; }

/* ---- Dock: the audiobook-bar nod ------------------------------------------ */
.dock {
  position: fixed;
  left: var(--pad);
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px dotted var(--rule);
  background: var(--paper);
  font: 600 11px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.dock__play { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: 0; }
.dock.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1240px) {
  .run__nav { display: none; }
  .run__where { margin-left: auto; }
}
@media (max-width: 1100px) {
  .roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cover { grid-template-columns: minmax(0, 1fr); gap: 44px; min-height: 0; }
  .cover__gutter { display: none; }
  .cover__page--left, .cover__page--right { grid-template-rows: auto; }
  .cover__title { order: -1; }
  .cover__page--right { padding-top: 26px; border-top: 1px dotted var(--rule); }
  .idx { font-size: clamp(32px, 7.4vw, 52px); }
  .idx:nth-of-type(2) { margin-left: 10%; }
  .idx:nth-of-type(3) { margin-left: 4%; }
  .idx:nth-of-type(4) { margin-left: 16%; }
  .idx:nth-of-type(5) { margin-left: 0; }
  .idx:nth-of-type(6) { margin-left: 8%; }
  .plate, .chapter, .pricing, .privacy { grid-template-columns: minmax(0, 1fr); }
  .plate__head, .chapter__margin { position: static; }
  .privacy__fine { grid-column: auto; }
  .spec { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .spec__art { max-width: 400px; }
  .dock { display: none; }
}
@media (max-width: 820px) {
  .run__title { display: none; }
}
@media (max-width: 640px) {
  .run { gap: 10px; }
  .run__where, .run__link { display: none; }
  .run__cta { margin-left: auto; }
  .roll { font-size: clamp(44px, 13vw, 64px); }
  .numerals li + li::before { height: 40px; margin: .1em 9px 0; }
  .numerals small { font-size: 9px; }
  .section-bar { flex-wrap: wrap; }
  .view-toggle { order: 3; margin-left: 0; }
  .roles__grid { grid-template-columns: minmax(0, 1fr); }
  .role { min-height: 0; }
  .role__glyph { margin: 22px 0; font-size: 112px; }
  .roles[data-view="list"] .role { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .spec { padding: 28px 20px 32px; border-radius: 18px; }
  .spec__title { font-size: clamp(36px, 10.4vw, 52px); }
  .spec__title--long { font-size: clamp(32px, 9vw, 44px); }
  .mini:nth-child(2) { transform: translateX(10px); }
  .mini:nth-child(3) { transform: none; }
  .idea-chip { left: -4px; max-width: 180px; }
  .commands div { grid-template-columns: 124px 1fr; }
  .plate__about { flex-direction: column; align-items: flex-start; }
  .board-chat .stage { padding: 4px 8px; border-radius: 18px; }
  .privacy__grid { grid-template-columns: minmax(0, 1fr); }
  .prices__val { font-size: 34px; }
  .beta { min-height: 0; border-radius: 22px; }
  .foot__wm { width: 96%; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .beta__bg::before, .beta__glass::after, .qr-card__timer i.is-running { animation: none; }
  .js:not(.is-ready) .rise .line > span, .js:not(.is-ready) .rise-late { opacity: 1; transform: none; }
  .cover h1 .line > span, .rise-late, .roll > span, .beta__glass, .pill-btn, .beta__cta { transition: none; }
  .numerals a:hover .roll > span { transform: none; }
}
