/* /awwo — the AwwO landing and early-access waitlist.
   One night tank holds two chapters (waitlist, then the product and its funnel); the
   glass mind sits in a sticky stage behind both and drifts across as you scroll. */

/* Early-access mode switches whole blocks. Set on <html> before first paint. */
[data-awwo-mode="open"] [data-when="waitlist"],
[data-awwo-mode="waitlist"] [data-when="open"] {
  display: none !important;
}

/* ── the night tank ───────────────────────── */

.aw-tank {
  --aw-p: 0;
  display: block;
  min-height: 0;
  background: #041219;
}

.aw-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 90% at 68% 40%, #0b2a46 0%, #061626 55%, #030d16 100%);
}

.aw-stage__poster {
  inset: 0 auto 0 0;
  width: 136%;
  max-width: none;
  object-position: 50% 50%;
  transition: opacity 1.2s var(--ease-out);
}

[data-awwo-mode="waitlist"] .aw-stage__poster {
  filter: brightness(0.9);
}

.aw-stage.has-webgl.is-live .aw-stage__poster {
  opacity: 0;
}

.aw-stage__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(3 13 20 / calc(0.86 * (1 - var(--aw-p)))) 0%, rgb(3 13 20 / calc(0.5 * (1 - var(--aw-p)))) 34%, transparent 58%),
    linear-gradient(270deg, rgb(3 13 20 / calc(0.86 * var(--aw-p))) 0%, rgb(3 13 20 / calc(0.5 * var(--aw-p))) 34%, transparent 58%),
    linear-gradient(to bottom, rgb(3 13 20 / 0.55), transparent 22%, transparent 78%, rgb(3 13 20 / 0.6));
}

.aw-chapters {
  position: relative;
  z-index: 3;
}

.aw-chapter {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 56px) 64px;
}

.aw-chapter--product {
  min-height: 96svh;
}

.aw-copy {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 640px;
}

[data-awwo-mode="waitlist"] .aw-chapter--product .aw-copy {
  margin-left: auto;
}

.aw-title {
  display: grid;
  color: #f3f8fa;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  max-width: 13ch;
}

.aw-title__line + .aw-title__line {
  color: color-mix(in oklab, #f3f8fa 80%, var(--bio-teal));
}

.aw-lede {
  max-width: 48ch;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* workspace entry (shown only when a workspace URL is configured) */
.aw-workspace {
  display: grid;
  gap: 12px;
  justify-items: start;
  width: 100%;
  padding: 20px 22px;
}

.aw-workspace__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.aw-workspace__k {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.aw-workspace__body {
  color: var(--ink-2);
}

.aw-workspace__injected:empty {
  display: none;
}

.aw-workspace__injected a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 22px;
  border-radius: var(--r-pill);
  background: #f3f6f6;
  color: #07161f;
  font-weight: 600;
}

/* waitlist cards */
.aw-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  margin-top: 6px;
}

.aw-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: 22px;
}

.aw-card.is-flash {
  animation: aw-flash 1.6s var(--ease-out);
}

@keyframes aw-flash {
  0%,
  100% {
    box-shadow: var(--shadow-float), 0 0 0 1px var(--line) inset;
  }
  30% {
    box-shadow: var(--shadow-float), 0 0 0 2px var(--bio-teal) inset, 0 0 0 8px rgb(95 227 232 / 0.18);
  }
}

/* invite redemption runs full width under the join and priority cards; for an account with
   access, the access card takes the place of all three */
.aw-card--invite,
.aw-card--access {
  grid-column: 1 / -1;
}

/* A sign-in hand-off (?from=signin) centres the view on one of these two, which can put the
   glass mind right behind it: near-opaque, so its glow never reads through the copy there. */
.aw-card--invite.awwo-glass,
.aw-card--access.awwo-glass {
  background: rgb(8 24 34 / 0.97);
}

.aw-invite {
  display: grid;
  gap: 8px;
}

.aw-invite__label {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.aw-invite__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aw-invite__input {
  flex: 1 1 15rem;
  min-width: 0;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aw-invite__signin {
  color: var(--bio-teal);
}

.aw-card--priority {
  background: rgb(255 255 255 / 0.025);
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* a member's own invite codes, under the way into AwwO */
.aw-members {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.aw-members__title {
  font-size: 1rem;
  font-weight: 650;
}

/* rows sit further apart than the parts of one row, so a wrapped button stays with its code */
.aw-members__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-members__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.aw-members__code {
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  user-select: all;
}

.aw-members__item:not([data-status='unused']) .aw-members__code {
  color: var(--ink-3);
  text-decoration: line-through;
}

/* The invite popup (?from=signin, ?invite=). The invite card moves in and is the panel's content,
   so it drops its own frame; the panel takes the near-opaque night glass the card had. */
.aw-invite-dialog .dialog__panel {
  display: grid;
  gap: 16px;
  background: rgb(8 24 34 / 0.98);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--line) inset;
}

.aw-invite-dialog .aw-card--invite {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* titles and the confirmation keep clear of the close button */
.aw-invite-dialog .aw-card__head,
.aw-invite-dialog__guest > .aw-card__title,
.aw-invite-dialog__done {
  padding-right: 44px;
}

.aw-invite-dialog__slot:empty {
  display: none;
}

.aw-invite-dialog__guest {
  display: grid;
  gap: 12px;
}

.aw-invite-dialog__code {
  color: var(--ink-2);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.aw-invite-dialog__code code {
  color: var(--ink);
  letter-spacing: 0.04em;
}

.aw-invite-dialog__code:has(code:empty) {
  display: none;
}

.aw-invite-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aw-invite-dialog__done {
  color: var(--ok);
  font-size: 1.0625rem;
  font-weight: 640;
}

/* whose account the code will open AwwO for: a shared browser must not spend it on someone else */
.aw-invite-dialog__who {
  color: var(--ink-2);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.aw-invite-dialog__who strong {
  color: var(--ink);
  font-weight: 620;
}

.aw-invite-dialog__alt {
  font-size: 0.875rem;
}

.aw-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aw-card__title {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.aw-card__body {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.aw-card__state {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.aw-card__checking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink-2);
}

.aw-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.18);
  border-top-color: var(--bio-teal);
  animation: ch-spin 0.9s linear infinite;
}

.aw-card__alt,
.aw-card__note {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.aw-card__who {
  font-size: 0.9375rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.aw-card__who strong {
  color: var(--ink);
  font-weight: 620;
}

.aw-card__joined {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 640;
  color: var(--ok);
}

.aw-card__preview {
  color: var(--warn);
}

.aw-card__error {
  color: var(--bad);
  font-weight: 560;
}

.aw-card__fine {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.aw-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--bio-teal) 18%, transparent);
  color: var(--bio-teal);
  font-size: 0.75rem;
  font-weight: 650;
}

.aw-pill--quiet {
  background: rgb(255 255 255 / 0.07);
  color: var(--ink-2);
}

.aw-foot {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.aw-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
}

.aw-next .icon {
  animation: aw-bob 2.4s var(--ease-in-out) infinite;
}

@keyframes aw-bob {
  50% {
    transform: translateY(3px);
  }
}

/* the funnel — the glass mind listens to it */
.aw-funnel {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.aw-funnel__label {
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--ink);
}

.aw-funnel__box {
  /* no backdrop-filter: this sits on a live 3D scene or video; blurring it re-reads that
     surface every frame and flickers on some GPUs */
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 22px;
  border-radius: 30px;
  background: rgb(9 30 45 / 0.86);
  box-shadow: var(--shadow-float), 0 0 0 1px var(--line-strong) inset;
  transition: box-shadow var(--t-med) var(--ease-out);
}

.aw-funnel__box:focus-within {
  box-shadow:
    var(--shadow-float),
    0 0 0 1.5px var(--bio-teal) inset,
    0 0 0 6px rgb(95 227 232 / 0.14),
    0 0 48px -10px rgb(95 227 232 / 0.45);
}

.aw-funnel__input {
  flex: 1;
  min-width: 0;
  min-height: 58px;
  max-height: 180px;
  padding: 16px 0 12px;
  border: 0;
  background: transparent;
  resize: none;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  field-sizing: content;
}

.aw-funnel__input::placeholder {
  color: var(--ink-3);
}

.aw-funnel__input:focus-visible {
  outline: none;
}

.aw-funnel__hint {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.aw-funnel__gate {
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--bio-lilac) 14%, rgb(9 30 45 / 0.8));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--bio-lilac) 40%, transparent) inset;
  font-size: 0.9375rem;
  color: var(--ink);
}

.aw-funnel__gate a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.aw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.aw-meta__free {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.aw-meta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.aw-meta__price strong {
  color: var(--ink);
  font-weight: 640;
}

.aw-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.aw-downloads .btn--secondary {
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

.aw-downloads .btn--secondary:hover {
  background: rgb(255 255 255 / 0.12);
}

.aw-downloads__note {
  color: var(--ink-3);
}

@media (max-width: 1100px) {
  .aw-cards {
    grid-template-columns: 1fr;
  }
}

/* phones: the sphere lives in the top of the stage, copy flows below it */
@media (max-width: 760px) {
  .aw-stage__poster {
    inset: auto;
    top: -22svh;
    left: -40%;
    width: 180%;
    height: 100svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 86%);
    mask-image: linear-gradient(to bottom, #000 58%, transparent 86%);
  }

  .aw-stage__shade {
    background: linear-gradient(to bottom, rgb(3 13 20 / 0.4), transparent 18%, transparent 30%, rgb(3 13 20 / 0.82) 52%, rgb(3 13 20 / 0.94));
  }

  .aw-chapter {
    align-items: start;
    min-height: auto;
    padding-block: 38svh 56px;
  }

  [data-awwo-mode="waitlist"] .aw-chapter--product .aw-copy {
    margin-left: 0;
  }

  .aw-copy::before {
    /* a soft scrim so copy stays legible when it scrolls over the sphere */
    content: "";
    position: absolute;
    inset: -40px -28px -28px;
    z-index: -1;
    border-radius: 32px;
    background: radial-gradient(ellipse 90% 70% at 40% 40%, rgb(3 13 20 / 0.72), transparent 78%);
    pointer-events: none;
  }

  .aw-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .aw-funnel__box {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 8px 8px 16px;
    border-radius: 24px;
  }

  .aw-funnel__box .btn {
    width: 100%;
  }

  .aw-funnel__hint {
    display: none;
  }
}

/* ── how a run works ──────────────────────── */

.aw-kicker {
  margin-bottom: 14px;
  font-weight: 620;
  color: var(--bio-teal);
}

.aw-run__head {
  max-width: 820px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.aw-run__title {
  max-width: 18ch;
  margin-bottom: 18px;
}

.aw-trace {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-panel);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, color-mix(in oklab, var(--bio-lilac) 12%, transparent), transparent 70%),
    var(--surface);
}

.aw-trace__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.aw-trace__io {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}

.aw-trace__in,
.aw-trace__out {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-2);
}

.aw-trace__out {
  background: color-mix(in oklab, var(--bio-teal) 10%, var(--surface-2));
}

.aw-trace__k {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ink-3);
}

.aw-trace__sentence {
  font-family: var(--font-read);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}

:lang(zh) .aw-trace__sentence {
  font-family: var(--font-sans);
  font-size: 1.125rem;
}

.aw-trace__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aw-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-family: var(--font-code);
  font-size: 0.8125rem;
}

.aw-file .icon {
  color: var(--bio-teal);
}

.aw-trace__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--gutter);
  padding-top: 26px;
}

.aw-trace__steps::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

/* a pulse that runs the length of the track: the run in progress */
.aw-trace__steps::after {
  content: "";
  position: absolute;
  top: 43px;
  left: 0;
  width: 18%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--bio-teal), var(--bio-lilac), transparent);
  filter: drop-shadow(0 0 6px var(--bio-teal));
  animation: aw-run 4.8s var(--ease-in-out) infinite;
}

@keyframes aw-run {
  /* 455% of its own 18% width ends the pulse flush with the track, so it never widens the page */
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(455%);
    opacity: 0;
  }
}

.aw-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
}

.aw-step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  font-size: 0.8125rem;
  font-weight: 650;
}

.aw-step:last-child .aw-step__n {
  background: var(--ink);
  color: var(--ink-inverse);
  box-shadow: none;
}

.aw-step__k {
  font-size: 0.8125rem;
  font-weight: 640;
  color: var(--bio-teal);
}

.aw-step__t {
  font-size: 1.1875rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.aw-step__b {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.aw-step__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .aw-trace__io {
    grid-template-columns: 1fr;
  }

  .aw-trace__steps {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 0 0 54px;
  }

  .aw-trace__steps::before {
    top: 0;
    bottom: 0;
    left: 19px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .aw-trace__steps::after {
    display: none;
  }

  .aw-step__n {
    position: absolute;
    left: -54px;
    top: -6px;
  }
}

/* ── made with AwwO: concept cases (a night band) ──
   Cards come from the case manifest (js/pages/awwo/cases.js). Every card carries the manifest's
   "Illustrative · AI-generated" label; the hollow ring next to it means concept, not a record. */

.aw-made {
  position: relative;
  margin: 0 var(--tank-inset);
  padding-block: clamp(64px, 8vw, 120px);
  border-radius: var(--r-tank);
  overflow: hidden;
  background:
    radial-gradient(ellipse 48% 34% at 28% 0%, rgb(76 156 245 / 0.17), transparent 72%),
    radial-gradient(ellipse 55% 60% at 100% 100%, rgb(169 155 255 / 0.1), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 72%, rgb(95 227 232 / 0.07), transparent 70%),
    #041219;
}

.aw-made__head {
  max-width: 820px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.aw-made__title {
  max-width: 16ch;
  margin-bottom: 18px;
  color: #f3f8fa;
}

.aw-made__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 62ch;
  color: var(--ink-2);
  line-height: 1.5;
}

.aw-made__note .icon {
  flex: none;
  margin-top: 0.22em;
  color: var(--bio-teal);
}

/* the featured case: a screen that lights the water around it */
.aw-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 3.6vw, 64px);
  align-items: center;
  margin-bottom: clamp(36px, 4.4vw, 64px);
}

.aw-feature__screen {
  position: relative;
  isolation: isolate;
}

.aw-feature__glow {
  position: absolute;
  top: 9%;
  left: 6%;
  z-index: -1;
  width: 88%;
  height: 96%;
  object-fit: cover;
  border-radius: 40px;
  filter: blur(48px) saturate(1.5);
  opacity: 0.55;
  pointer-events: none;
}

.aw-feature .aw-case__media {
  box-shadow: 0 40px 90px -42px rgb(0 0 0 / 0.85);
}

.aw-feature__body {
  display: grid;
  gap: 22px;
  align-content: center;
}

.aw-feature__title {
  color: #f3f8fa;
}

.aw-feature__brief .aw-case__brief {
  font-size: var(--fs-body-l);
  line-height: 1.5;
  color: #dce9ee;
}

.aw-feature__watch {
  justify-self: start;
}

/* media shared by the featured case and the grid */
.aw-case__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-panel);
  background: #071a26;
}

.aw-case__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(200 235 245 / 0.14);
  pointer-events: none;
}

.aw-case__poster,
.aw-case__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aw-case__video {
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.aw-case__media.is-live .aw-case__video {
  opacity: 1;
}

.aw-case__label {
  /* no backdrop-filter: this sits on a live 3D scene or video; blurring it re-reads that
     surface every frame and flickers on some GPUs */
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 24px);
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  background: rgb(3 13 20 / 0.86);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  color: #eaf3f5;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.aw-case__label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #b9d9ff;
}

.aw-case__toggle {
  /* no backdrop-filter: this sits on a live 3D scene or video; blurring it re-reads that
     surface every frame and flickers on some GPUs */
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(3 13 20 / 0.86);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  color: #fff;
  transition: opacity var(--t-fast), background-color var(--t-fast);
}

.aw-case__toggle:hover {
  background: rgb(3 13 20 / 0.82);
}

.aw-case__toggle .icon + .icon,
.aw-case__media.is-playing .aw-case__toggle .icon:first-child {
  display: none;
}

.aw-case__media.is-playing .aw-case__toggle .icon + .icon {
  display: block;
}

/* with a mouse the loop follows the pointer; the control shows on hover and focus */
@media (hover: hover) and (pointer: fine) {
  .aw-made:not(.is-still) .aw-case__toggle {
    opacity: 0;
  }

  .aw-made:not(.is-still) [data-aw-case]:hover .aw-case__toggle,
  .aw-made:not(.is-still) [data-aw-case]:focus-within .aw-case__toggle,
  .aw-made:not(.is-still) .aw-case__media.is-playing .aw-case__toggle {
    opacity: 1;
  }
}

/* reduced motion: nothing plays by itself, so the poster gets a real play button */
.aw-made.is-still .aw-case__media:not(.is-playing) .aw-case__toggle {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgb(234 243 245 / 0.94);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6);
  color: #041219;
}

.aw-made.is-still .aw-case__media:not(.is-playing) .aw-case__toggle .icon {
  width: 24px;
  height: 24px;
}

/* text shared by both card sizes */
.aw-case__head {
  display: grid;
  gap: 6px;
}

.aw-case__kind {
  font-size: 0.8125rem;
  font-weight: 620;
  color: var(--bio-teal);
}

.aw-case__k {
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.aw-case__brief {
  color: var(--ink-2);
  text-wrap: pretty;
}

.aw-case__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aw-case__roles li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 3px 11px 3px 9px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.aw-case__roles li::before {
  /* one dot per agent role */
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bio-teal);
  box-shadow: 0 0 6px rgb(95 227 232 / 0.6);
}

.aw-case__len {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid rgb(7 22 31 / 0.2);
  font-weight: 560;
  color: #3d5661;
}

/* the 2 × 2 grid */
.aw-made__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.aw-case {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: rgb(255 255 255 / 0.035);
  box-shadow: inset 0 0 0 1px var(--line);
}

.aw-case .aw-case__media {
  border-radius: 0;
}

.aw-case .aw-case__media::after {
  box-shadow: inset 0 -1px 0 var(--line);
}

.aw-case__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px 22px 24px;
}

.aw-case__title {
  color: #f3f8fa;
}

.aw-case__watch {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 2px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}

.aw-case__watch:hover {
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(200 235 245 / 0.42);
}

.aw-case__watch .aw-case__len {
  border-left-color: var(--line-strong);
  color: var(--ink-3);
}

.aw-made__credit {
  margin-top: clamp(28px, 3.2vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* placeholders until the manifest arrives */
.aw-skel {
  border-radius: var(--r-panel);
  background: rgb(255 255 255 / 0.04);
}

.aw-skel--media {
  aspect-ratio: 16 / 9;
}

.aw-skel--text {
  height: 300px;
}

.aw-case--skel .aw-skel--media {
  border-radius: 0;
}

.aw-skel--lines {
  height: 190px;
  background: transparent;
}

/* the recording player */
.aw-player {
  --dialog-w: 1200px;
}

.aw-player__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 0;
  overflow: hidden;
  background: #041219;
}

/* dark glass, so it reads over a bright recording too (on phones it sits on the video) */
.aw-player__close {
  /* no backdrop-filter: this sits on a live 3D scene or video; blurring it re-reads that
     surface every frame and flickers on some GPUs */
  background: rgb(3 13 20 / 0.86);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  color: #eaf3f5;
}

.aw-player__close:hover {
  background: rgb(3 13 20 / 0.82);
  color: #fff;
}

.aw-player__stage {
  display: grid;
  place-items: center;
  background: #000;
}

.aw-player__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(80svh, 720px);
  object-fit: contain;
  background: #000;
}

.aw-player__side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 64px 26px 26px;
}

.aw-player__label {
  position: static;
  justify-self: start;
}

.aw-player__title {
  color: #f3f8fa;
}

.aw-player__facts {
  display: grid;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.aw-player__facts > div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.aw-player__facts dt {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.aw-player__facts dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.aw-player__note {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
}

@media (max-width: 1100px) {
  .aw-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .aw-feature__body {
    max-width: 720px;
  }

  .aw-skel--text {
    height: 240px;
  }
}

@media (max-width: 900px) {
  .aw-player__panel {
    grid-template-columns: minmax(0, 1fr);
    max-height: 94svh;
    overflow-y: auto;
  }

  .aw-player__video {
    max-height: 52svh;
  }

  .aw-player__side {
    padding: 20px 20px 24px;
  }
}

@media (max-width: 760px) {
  .aw-made__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aw-case__body {
    padding: 16px 18px 20px;
  }

  .aw-case__label {
    top: 10px;
    left: 10px;
  }

  .aw-case__toggle {
    right: 10px;
    bottom: 10px;
  }
}

/* ── capabilities: a bento with a point of view ── */

.aw-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.aw-cap {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  grid-column: span 2;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

.aw-cap p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.aw-cap .status {
  justify-self: start;
  margin-top: 4px;
}

.aw-cap--wide {
  grid-column: span 3;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr);
  align-items: center;
  gap: 18px;
  min-height: 260px;
}

.aw-cap--full {
  grid-column: span 6;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 28px;
}

.aw-cap__text {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.aw-cap__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--bio-teal) 12%, var(--surface-2));
  color: var(--bio-teal);
}

.aw-cap--media .aw-cap__icon {
  background: color-mix(in oklab, var(--bio-lilac) 14%, var(--surface-2));
  color: var(--bio-lilac);
}

.aw-cap__art {
  order: 2;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

/* sonar rings for live research */
.aw-sonar {
  position: relative;
  width: 86%;
  aspect-ratio: 1;
}

.aw-sonar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--bio-teal) 55%, transparent);
  animation: aw-sonar 3.6s var(--ease-out) infinite;
}

.aw-sonar i:nth-child(2) {
  animation-delay: 1.2s;
}

.aw-sonar i:nth-child(3) {
  animation-delay: 2.4s;
}

.aw-sonar::after {
  content: "";
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--bio-teal) 60%);
  box-shadow: 0 0 22px var(--bio-teal);
}

@keyframes aw-sonar {
  from {
    transform: scale(0.2);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* stacked frames for media */
.aw-frames {
  position: relative;
  width: 82%;
  aspect-ratio: 4 / 5;
}

.aw-frames i {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--bio-lilac) 55%, var(--surface)), color-mix(in oklab, var(--bio-teal) 45%, var(--surface)) 60%, color-mix(in oklab, var(--accent) 30%, var(--surface)));
  box-shadow: 0 14px 30px -14px rgb(11 34 48 / 0.35), 0 0 0 1px var(--line-soft) inset;
  transform-origin: 50% 100%;
}

.aw-frames i:nth-child(1) {
  transform: rotate(-9deg) translateX(-10%);
  opacity: 0.55;
}

.aw-frames i:nth-child(2) {
  transform: rotate(-3deg);
  opacity: 0.8;
}

.aw-frames i:nth-child(3) {
  transform: rotate(5deg) translateX(8%);
}

.aw-cap--media:hover .aw-frames i:nth-child(1) {
  transform: rotate(-14deg) translateX(-16%);
}

.aw-cap--media:hover .aw-frames i:nth-child(3) {
  transform: rotate(9deg) translateX(14%);
}

.aw-frames i {
  transition: transform 520ms var(--ease-spring);
}

/* desktop window */
.aw-window {
  border-radius: 16px;
  overflow: hidden;
  background: #041219;
  box-shadow: 0 30px 60px -28px rgb(11 34 48 / 0.55), 0 0 0 1px var(--line) inset;
}

.aw-window__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #0b2232;
}

.aw-window__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.aw-window__img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .aw-cap,
  .aw-cap--wide {
    grid-column: span 3;
  }

  .aw-cap--wide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .aw-cap__art {
    display: none;
  }
}

@media (max-width: 700px) {
  .aw-bento {
    grid-template-columns: 1fr;
  }

  .aw-cap,
  .aw-cap--wide,
  .aw-cap--full {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

/* ── three surfaces (a night band) ─────────── */

.aw-surfaces {
  margin: 0 var(--tank-inset);
  padding-block: clamp(64px, 8vw, 120px);
  border-radius: var(--r-tank);
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgb(169 155 255 / 0.12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgb(95 227 232 / 0.1), transparent 70%),
    #041219;
}

.aw-surfaces .t-h1 {
  color: #f3f8fa;
}

.aw-surf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.aw-surface {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 10px;
  padding: 0 0 24px;
  border-radius: var(--r-panel);
  background: rgb(255 255 255 / 0.035);
  box-shadow: 0 0 0 1px var(--line) inset;
  overflow: hidden;
}

.aw-surface > :not(.aw-surface__art) {
  margin-inline: 24px;
}

.aw-surface__art {
  position: relative;
  height: 170px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #061a27;
}

.aw-surface__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.95);
}

.aw-chatmock {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px 24px;
}

.aw-chatmock__u {
  justify-self: end;
  width: 58%;
  height: 34px;
  border-radius: 16px 16px 4px 16px;
  background: rgb(234 243 245 / 0.86);
}

.aw-chatmock__a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
}

.aw-chatmock__a i {
  grid-column: 2;
  height: 9px;
  border-radius: 5px;
  background: rgb(95 227 232 / 0.28);
}

.aw-chatmock__a i:nth-of-type(1) {
  width: 92%;
}

.aw-chatmock__a i:nth-of-type(2) {
  width: 76%;
}

.aw-chatmock__a i:nth-of-type(3) {
  width: 48%;
  background: rgb(169 155 255 / 0.32);
}

.aw-chatmock__a .awwo-orb {
  grid-row: span 3;
  align-self: start;
}

.aw-surface__desk {
  display: grid;
  place-items: center;
}

.aw-surface__desk .awwo-orb {
  --size: 92px;
}

.aw-surface__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgb(95 227 232 / 0.22), transparent 55%);
}

.aw-surface__k {
  font-size: 0.8125rem;
  font-weight: 620;
  color: var(--bio-teal);
}

.aw-surface .t-h3 {
  color: #f3f8fa;
}

.aw-surface__b {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.aw-surface__list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink);
}

.aw-surface__list li {
  position: relative;
  padding-left: 18px;
}

.aw-surface__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bio-teal);
}

.aw-surface__cta,
.aw-surface__ctas,
.aw-surface__soon {
  justify-self: start;
  margin-top: 14px;
}

.aw-surface__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aw-surface__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
}

.aw-surface__soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--ink-3) inset;
}

.aw-surfaces .btn--secondary {
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

@media (max-width: 960px) {
  .aw-surf {
    grid-template-columns: 1fr;
  }
}

/* ── pricing teaser: three slabs of different weight ── */

.aw-pricing__lede {
  margin: 18px 0 36px;
}

.aw-slabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: stretch;
}

.aw-slab {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 8px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-card);
  background: var(--surface);
}

.aw-slab--plans {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, color-mix(in oklab, var(--bio-lilac) 20%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 80% at 0% 100%, color-mix(in oklab, var(--bio-teal) 16%, transparent), transparent 70%),
    var(--surface);
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--bio-lilac) 50%, transparent) inset;
}

.aw-slab__k {
  font-size: 0.875rem;
  font-weight: 640;
  color: var(--ink-2);
}

.aw-slab__v {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 360;
  font-stretch: 84%;
  letter-spacing: -0.04em;
}

.aw-slab__unit {
  font-weight: 560;
}

.aw-slab__b {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.aw-slab__list {
  display: grid;
  align-content: start;
  gap: 7px;
  margin-top: 6px;
  font-size: 0.875rem;
}

.aw-slab__list li {
  position: relative;
  padding-left: 22px;
}

.aw-slab__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--held);
  border-bottom: 1.6px solid var(--held);
  transform: rotate(-45deg);
}

.aw-slab__cta,
.aw-slab .btn--primary {
  justify-self: start;
  margin-top: 14px;
}

.aw-pricing__video {
  margin-top: 18px;
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .aw-slabs {
    grid-template-columns: 1fr;
  }
}

/* ── further reading ──────────────────────── */

.aw-reads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.aw-read-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  height: 100%;
  padding: 22px 24px 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}

.aw-read-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.aw-read-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.aw-read-card__t {
  font-size: 1.1875rem;
  font-weight: 640;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.aw-read-card__b {
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}

:lang(zh) .aw-read-card__b {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .aw-reads {
    grid-template-columns: 1fr;
  }
}

/* ── final ────────────────────────────────── */

.aw-final {
  margin: var(--section-tight) var(--tank-inset) 0;
  border-radius: var(--r-tank);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgb(95 227 232 / 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgb(169 155 255 / 0.14), transparent 70%),
    #041219;
}

.aw-final__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(72px, 10vw, 140px) var(--margin);
  text-align: center;
}

.aw-final__orb {
  --size: 88px;
}

.aw-final__title {
  max-width: 13ch;
  color: #f3f8fa;
}

.aw-final__lede {
  max-width: 50ch;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.aw-final__actions {
  justify-content: center;
}

.aw-final .btn--secondary {
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}

.aw-final__bounty {
  color: var(--ink-2);
}
