/* Matchii waitlist prototype. Tokens follow the Waitlist site file (Foundations, Voice & type). */
:root {
  --stone: #f4f0e9;
  --stone-2: #efe9df;
  --paper: #ffffff;
  --hair: #e2dbcf;
  --ink: #14102a;
  --text: #3a3050;
  --muted: #665d75;
  --purple: #6c29ed;
  --mint: #69fbd2;
  --mint-ink: #0e5b47;
  --ground: var(--stone);
  --light: rgba(255, 252, 245, 0.9);
  --serif: var(--sans); /* the serif italics are retired (audit, 4 Oct): two families only */
  --head: var(--sans); /* headlines and the name: DM Sans, set tight, as the launch site (8768) sets the name */
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
  --display: var(--sans); /* Bricolage retired: DM Sans carries every size */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --chii: #3fe0b5;
  /* from the launch site (localhost:8768) */
  --deep: #200a48;
  --deep-2: #2b1160;
  --royal: #5620c1;
  --violet: #9b72fa;
  --lavender: #f0e9ff;
  --lavender-2: #e4d9ff;
  --out: cubic-bezier(.215, .61, .355, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 1.2s var(--ease);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* Ground: light from the top left, a faint grid, changes with the time of day */
#ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 12% -10%, var(--light), transparent 60%),
    linear-gradient(rgba(20,16,42,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(20,16,42,.035) 1px, transparent 1px) 0 0 / 64px 64px;
  transition: background 1.2s var(--ease);
}
body[data-tod="morning"] { --ground: #f6f1e7; --light: rgba(255, 250, 235, .95); }
body[data-tod="afternoon"] { --ground: #f4f0e9; --light: rgba(255, 252, 245, .9); }
body[data-tod="evening"] { --ground: #f0e6db; --light: rgba(255, 214, 170, .55); }
body[data-tod="night"] { --ground: #e8e5ee; --light: rgba(205, 195, 255, .45); }

/* Top bar */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  background: linear-gradient(var(--ground) 55%, transparent);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 500 24px/1 var(--head); color: var(--ink); text-decoration: none; letter-spacing: -.035em; transition: color .6s var(--ease); }
.wordmark img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(86, 32, 193, .7); }
.top-nav { display: flex; gap: 18px; font-size: 15px; align-items: center; }
.btn.btn-pill { min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 13.5px/1 var(--sans); }
.btn.btn-pill:hover { background: #2b2447; }
body.on-dark .btn.btn-pill { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
body.on-dark .btn.btn-pill:hover { background: rgba(255,255,255,.2); }
.menu-btn { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 6px; padding: 0; }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
body.on-dark .menu-btn i { background: #f3f1f7; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.site-menu { position: fixed; top: 74px; right: 24px; z-index: 31; width: 300px; padding: 12px 8px 8px; border-radius: 18px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 24px 60px rgba(30, 20, 60, .2); display: grid; gap: 2px; animation: rise .4s var(--ease); }
.site-menu[hidden] { display: none; }
.site-menu > a { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 10px; text-decoration: none; font: 500 26px/1.15 var(--head); color: var(--ink); }
.site-menu > a:hover { background: var(--stone); }
.site-menu-fine { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0 10px; margin: 8px 16px 0; border-top: 1px solid var(--hair); }
.site-menu-fine a { font-size: 13px; color: var(--muted); text-decoration: none; }
.site-menu-fine a:hover { color: var(--ink); }
.nav-link { text-decoration: none; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.top-nav > a:not(.btn) { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav-link:hover { color: var(--ink); }
body.on-dark .wordmark, body.on-dark .top-nav > a:not(.btn) { color: #f3f1f7; }
body.on-dark .top { background: none; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }

#app { position: relative; z-index: 1; min-height: 100vh; }

/* Type */
.label { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--head); font-weight: 500; color: var(--ink); }
h1, h2, h3 { margin: 0; }
.h1 { font: 500 clamp(52px, 8vw, 104px)/.98 var(--head); letter-spacing: -.045em; color: var(--ink); }
.h2 { font: 500 clamp(38px, 5vw, 64px)/1.02 var(--head); letter-spacing: -.04em; color: var(--ink); }
.h3 { font: 500 30px/1.1 var(--head); letter-spacing: -.03em; color: var(--ink); }
.accent { font: 400 clamp(24px, 3vw, 38px)/1.2 var(--serif); color: var(--purple); }
.num { font: 500 clamp(88px, 13vw, 168px)/.9 var(--display); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; border-radius: 999px; position: relative; overflow: hidden; }

.ripple { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.5); pointer-events: none; animation: click .7s var(--out) forwards; }
@keyframes click { 0% { transform: translate(-50%,-50%) scale(0); box-shadow: 0 0 0 0 #69fbd266; } 45% { transform: translate(-50%,-50%) scale(1); } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; box-shadow: 0 0 0 22px #69fbd200; } }
.btn-primary:hover { background: #2b2447; }
/* the secondary action everywhere is a text link in mono small caps with an arrow, as Axelrod's "Talk to us ->" */
.tlink, .btn-ghost, .btn-quiet { display: inline-flex; align-items: center; gap: 10px; min-height: 0; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; font: 600 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; cursor: pointer; }
.tlink span, .btn-ghost span, .btn-quiet span { display: inline-block; transition: transform .3s var(--ease); }
.tlink:hover span, .btn-ghost:hover span, .btn-quiet:hover span { transform: translateX(4px); }
.tlink.quiet, .btn-quiet { color: var(--muted); border-bottom-color: transparent; } .tlink.quiet:hover, .btn-quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-google { background: var(--paper); border-color: var(--hair); color: var(--ink); width: 100%; }
.btn-google:hover { border-color: var(--ink); }

/* Cards and fields */
.paper { background: var(--paper); border: 1px solid var(--hair); border-radius: 20px; }
.field {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--hair); background: #fbf9f5; color: var(--ink);
  font: 400 16px/1 var(--sans);
}
.field:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field.mono { font-family: var(--mono); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink); background: transparent;
  font: 500 14px/1 var(--sans); cursor: pointer; color: var(--ink);
  transition: background .3s var(--ease), color .3s;
}
.chip:hover { background: rgba(20,16,42,.05); }
.chip.on { background: var(--ink); color: #fff; }

/* Chii orb: energy, no face */
.orb { position: relative; width: var(--s, 120px); height: var(--s, 120px); }
.orb::before {
  content: ""; position: absolute; inset: -55%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--chii)) 55%, transparent) 0%, transparent 62%);
  filter: blur(14px); animation: breathe 5.5s var(--ease) infinite;
}
.orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(255,255,255,.9) 0 9%, color-mix(in srgb, var(--c, var(--chii)) 92%, #fff) 24%, var(--c, var(--chii)) 58%, color-mix(in srgb, var(--c, var(--chii)) 70%, #14102a) 100%);
  filter: blur(1.5px); box-shadow: 0 0 40px color-mix(in srgb, var(--c, var(--chii)) 60%, transparent);
  animation: drift 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 33% { transform: translate(3%, -4%); } 66% { transform: translate(-3%, 2%); } }
.orb.bloom { animation: bloom 1.8s var(--ease) both; }
@keyframes bloom { from { transform: scale(.05); opacity: 0; filter: blur(12px); } to { transform: scale(1); opacity: 1; filter: blur(0); } }

/* Figure on a plinth (placeholder, not the final character) */
.figure { display: block; }

/* Wall label */
.wall {
  display: inline-block; background: var(--paper); border: 1px solid var(--hair);
  padding: 12px 14px; text-align: left; min-width: 220px;
}
.wall b { display: block; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.wall .label { display: block; margin: 3px 0 4px; font-size: 10px; }
.wall i { font: 400 16px/1.3 var(--serif); color: var(--text); }

/* ---------- Home: the studio map ---------- */
.map-wrap { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.map-wrap.dragging { cursor: grabbing; }
.map { position: absolute; left: 50%; top: 50%; width: 2400px; height: 1600px; margin: -800px 0 0 -1200px; will-change: transform; transition: transform .8s var(--ease); }
.map.free { transition: none; }
.map svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map svg.links path { fill: none; stroke: #b9ad99; stroke-width: 1.2; }
.cluster { position: absolute; }
.cluster h3 { font: 400 30px/1 var(--serif); color: var(--ink); margin-bottom: 14px; }
.cluster-art { height: 92px; display: flex; align-items: flex-end; margin: 0 0 14px 4px; }
.cluster-art .orb { margin: 0 0 18px 18px; }
.cluster-icon { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .6s var(--ease); }
.cluster-icon:hover { transform: translateY(-4px); }
.cluster-icon canvas { display: block; }
.obj-page canvas, .obj-figure canvas { filter: drop-shadow(0 18px 20px rgba(11, 4, 24, .55)); }
.cluster-icon .mini-page { width: 92px; height: 120px; padding: 14px 12px; }
.cluster-icon .mini-page i { height: 4px; margin-bottom: 11px; }
.cluster-icon .mini-page i:first-child { height: 6px; margin-bottom: 15px; }
.mini-page { width: 64px; height: 84px; background: #fffdf9; padding: 10px 9px; transform: rotate(-5deg); box-shadow: 0 14px 30px -10px rgba(11,4,24,.55); }
.mini-page i { display: block; height: 3px; margin-bottom: 8px; border-radius: 2px; background: #d9d1c4; }
.mini-page i:first-child { width: 70%; height: 5px; background: #14102a; margin-bottom: 11px; }
.mini-page i:nth-child(4), .mini-page i:nth-child(5) { background: #69fbd2; width: 80%; }
.cluster-art svg { filter: drop-shadow(0 12px 18px rgba(11,4,24,.5)); }
.note {
  display: block; width: 188px; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--hair); border-radius: 10px;
  overflow: hidden; box-shadow: 0 6px 18px rgba(80, 64, 40, .08); text-align: left; padding: 0; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.note:hover { transform: translateY(-3px) rotate(0deg) !important; box-shadow: 0 12px 28px rgba(80, 64, 40, .14); }
.note .tab { height: 5px; }
.note span { display: block; padding: 11px 14px 13px; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.note:nth-child(odd) { transform: rotate(-.8deg); }
.note:nth-child(even) { transform: rotate(1deg) translateX(18px); }

.hero {
  position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; padding: 96px 20px 40px;
}
.hero-inner {
  text-align: center; width: 100%; max-width: 760px; min-width: 0; pointer-events: none; /* fixed width so the one-line headline can't push the block off centre */
  background: radial-gradient(closest-side, var(--ground) 62%, transparent); padding: 70px 70px 60px;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.pearl { width: 52px; height: 52px; margin: 0 auto 28px; pointer-events: auto; filter: drop-shadow(0 18px 26px rgba(11, 4, 24, .45)); }
.pearl canvas { width: 52px; height: 52px; display: block; }
@keyframes nacre { 0% { background-position: 120% 0, 0 0; } 100% { background-position: -120% 0, 0 0; } }
@keyframes emit { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.hero .h1 { margin-top: 0; }
.hero .label { margin: 18px 0 0; }
.hero .accent { margin-top: 10px; }
.hero p.lede { margin: 18px auto 28px; max-width: 520px; color: var(--text); }
.hero .hint { margin-top: 16px; }

.log { position: absolute; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #b9ad9988; animation: statdrift var(--t, 9s) ease-in-out infinite, glint 6s linear infinite; animation-delay: 0s, var(--g, 0s); pointer-events: none; }
.log.mint { color: #3fb895aa; }
@keyframes statdrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--dx, 14px), var(--dy, -6px)); } }
@keyframes glint { 0%, 72%, 100% { color: #b9ad9988; } 86% { color: var(--ink); } }
.log.mint { animation-name: statdrift, glintm; }
@keyframes glintm { 0%, 72%, 100% { color: #3fb895aa; } 86% { color: var(--mint-ink); } }
.cursor { position: absolute; z-index: 4; pointer-events: none; transition: transform 2.6s var(--ease); }
.cursor svg { display: block; }
.cursor em { display: inline-block; margin: 2px 0 0 14px; padding: 3px 8px; border-radius: 8px; font: 600 12px/1.3 var(--sans); font-style: normal; white-space: nowrap; }
.ticker { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); transition: opacity .6s var(--ease); }
.ticker.out { opacity: 0; }
body.hero-field .ticker { color: #ece6ff; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 12; transform: translate(-50%, 20px); opacity: 0;
  display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--hair); font: 500 14px/1.2 var(--sans); color: var(--ink); box-shadow: 0 10px 30px rgba(80,64,40,.1);
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); flex: none; }

.popover {
  position: fixed; z-index: 15; max-width: 300px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--hair);
  box-shadow: 0 16px 40px rgba(80,64,40,.14); animation: rise .5s var(--ease);
}
.popover b { display: block; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.popover .label { display: block; margin: 4px 0 8px; font-size: 10px; }
.popover p { font: 400 18px/1.35 var(--serif); color: var(--text); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(244, 240, 233, .72); display: grid; place-items: center; padding: 20px; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(460px, 100%); padding: 34px 32px 28px; border-radius: 24px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(60,48,30,.18); animation: rise .6s var(--ease); position: relative; }
.modal .h3 { margin: 6px 0 8px; font-size: 38px; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--muted); }
.modal .close:hover { background: var(--stone); color: var(--ink); }
.stack { display: grid; gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ok { color: var(--mint-ink); font-size: 13px; }
.err { color: #b42318; font-size: 13px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: block; padding: 14px; border: 1px solid var(--hair); border-radius: 14px; cursor: pointer; transition: border-color .3s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice b { display: block; font: 500 22px/1.1 var(--head); color: var(--ink); }
.choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.handle { position: relative; }
.handle::before { content: "@"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 500 15px var(--mono); color: var(--muted); }
.handle .field { padding-left: 34px; }

/* ---------- Screens ---------- */
.screen { min-height: 100vh; padding: 120px 24px 100px; display: grid; place-items: center; animation: fade .8s var(--ease); }
.center { text-align: center; max-width: 720px; margin: 0 auto; }

/* Spot */

/* Exhibition */
.frame { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
.frame.on { opacity: 1; transform: none; pointer-events: auto; }
.frame .art { height: 320px; display: grid; place-items: end center; }
.frame .wall { margin-top: 18px; }
.page-art { width: 190px; height: 250px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 18px 40px rgba(80,64,40,.12); transform: rotate(-3deg); padding: 26px 22px; }
.page-art i { display: block; height: 6px; margin-bottom: 14px; background: #ded6c8; border-radius: 3px; }
.page-art i:first-child { width: 60%; height: 10px; background: var(--ink); margin-bottom: 22px; }
.roman { font: 400 22px var(--serif); color: var(--purple); }

/* Readiness */
.ready { width: min(1200px, 100%); display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 40px; align-items: start; }
.progress { display: flex; align-items: center; gap: 10px; margin: 14px 0 26px; }
.progress .bar { width: 120px; height: 4px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--ink); transition: width 1s var(--ease); }
.task { border-radius: 18px; background: var(--paper); border: 1px solid var(--hair); margin-bottom: 12px; overflow: hidden; }
.task-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; }
.task-head .roman { width: 30px; }
.task-head b { font: 500 26px/1.1 var(--head); color: var(--ink); }
.task-head small { display: block; font-size: 13px; color: var(--muted); }
.task-head .state { margin-left: auto; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.task.done .state { color: var(--mint-ink); }
.task-body { padding: 0 20px 22px 64px; display: none; }
.task.open .task-body { display: block; animation: fade .5s var(--ease); }
.chat { display: grid; gap: 12px; }
.bubble { max-width: 92%; padding: 11px 15px; border-radius: 16px 16px 16px 4px; background: var(--stone); color: var(--ink); font-size: 15px; animation: rise .5s var(--ease); }
.bubble.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; }
.chii-says { display: flex; gap: 10px; align-items: flex-start; }
.chii-says .orb { --s: 18px; flex: none; margin-top: 10px; }
.drop { display: block; border: 1.5px dashed #c9bfae; border-radius: 16px; padding: 26px 20px; text-align: center; background: #fbf9f5; cursor: pointer; transition: border-color .3s, background .3s; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--paper); }
.reading { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.reading .bar { flex: 1; height: 3px; background: var(--hair); overflow: hidden; border-radius: 2px; }
.reading .bar i { display: block; height: 100%; width: 0; background: var(--chii); animation: load 2.6s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.draft { padding: 22px 22px 18px; border: 1px solid var(--hair); border-radius: 4px; background: #fffdf9; box-shadow: 0 12px 30px rgba(80,64,40,.1); transform: rotate(-.6deg); animation: rise .8s var(--ease); }
.draft h4 { margin: 4px 0 10px; font: 500 26px/1.1 var(--head); color: var(--ink); }
.draft ol { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--text); }
.draft li { margin-bottom: 6px; }
.privacy { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--stone); font-size: 13px; color: var(--muted); }
.privacy b { color: var(--ink); font-weight: 600; }
.invites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.invites span { padding: 5px 10px; border-radius: 999px; background: var(--stone); font: 500 12px var(--mono); color: var(--ink); }
.row { display: flex; gap: 10px; }
.row .field { flex: 1; }
.after { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Live studio map preview */
.preview { position: sticky; top: 110px; height: 560px; border-radius: 24px; overflow: hidden; background: color-mix(in srgb, var(--ground) 70%, #fff); border: 1px solid var(--hair); }
.preview .label.cap { position: absolute; left: 22px; top: 18px; }
.preview .caption { position: absolute; left: 22px; bottom: 18px; right: 22px; font: 400 22px/1.3 var(--serif); color: var(--ink); transition: opacity .6s; }
.p-studio { padding: 10px 14px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; font: 500 24px/1 var(--head); color: var(--ink); white-space: nowrap; box-shadow: 0 10px 26px rgba(80,64,40,.12); z-index: 2; }
.p-studio small { display: block; margin-top: 4px; font: 500 10px var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.p-hidden { opacity: 0; transform: translate(-50%, -40%) scale(.9); }
.preview svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview svg path { fill: none; stroke: #b9ad99; stroke-width: 1.2; stroke-dasharray: 4 5; transition: opacity 1s; }

/* Chii reveal */

/* Your place */
.place { width: min(1080px, 100%); }
.place-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 34px; }
.place-head .num { font-size: clamp(72px, 10vw, 128px); }
.grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.card { padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--hair); }
.card .h3 { font-size: 28px; margin: 6px 0 8px; }
.card p { font-size: 15px; }
.card .btn { margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.checks li:last-child { border: 0; }
.checks .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--hair); display: grid; place-items: center; font-size: 11px; flex: none; }
.checks li.done .ck { background: var(--ink); border-color: var(--ink); color: #fff; }
.checks a { margin-left: auto; font-size: 13px; color: var(--muted); }

/* Chii card */
.ccard { border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--hair); }
.ccard .top-art { position: relative; height: 210px; display: grid; place-items: center; background: var(--stone-2); }
.ccard .top-art > .label { z-index: 1; }
.ccard .top-art .label { position: absolute; top: 16px; color: var(--muted); }
.ccard .top-art .l { left: 18px; } .ccard .top-art .r { right: 18px; }
.ccard .top-art .orb { --s: 84px; z-index: 1; }
.ccard .body { padding: 18px 20px 20px; }
.ccard .body .h3 { margin: 0; }
.ccard .body i { display: block; margin-top: 8px; font: 400 19px/1.3 var(--serif); color: var(--text); }
.ccard .sil { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--stone); font-size: 13px; color: var(--ink); }

/* Talk to Chii */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); box-shadow: 0 12px 30px rgba(60,48,30,.14); cursor: pointer; font: 600 14px var(--sans); color: var(--ink); }
.fab .orb { --s: 22px; }
.panel { position: fixed; right: 24px; bottom: 84px; z-index: 21; width: min(380px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; border-radius: 4px; background: var(--stone); border: 1px solid rgba(20, 16, 42, .1); box-shadow: 0 30px 70px rgba(60,48,30,.2); animation: rise .5s var(--ease); }
.panel header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.panel header .orb { --s: 22px; }
.panel .msgs { padding: 16px 18px; overflow: auto; display: grid; gap: 10px; }
.panel .sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 16px; }
.panel .sugg button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper); font-size: 13px; cursor: pointer; }

/* Build with us */

/* Colour field (the launch site's purple field): where Chii's energy shows */
.field-win { position: relative; overflow: hidden; background: var(--deep); }
.field-win > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-win > .on { position: relative; z-index: 1; }
.energy-win { width: 360px; height: 260px; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 30px 60px -30px rgba(43, 17, 96, .6); }

/* Decoding digits, as the launch site's headings */
.decode { position: relative; }
.decode[data-glyph] { color: transparent; }
.decode[data-glyph]::before { content: attr(data-glyph); position: absolute; inset: 0; color: var(--dc, var(--ink)); }

/* Rise in, as the launch site's visuals */
.rise { opacity: 0; transform: translateY(48px) scale(.97); transition: opacity .6s var(--out), transform .6s var(--out); transition-delay: var(--rd, 0s); }
.rise.in { opacity: 1; transform: none; }

/* The royal card, as the launch site's "Deploy your agents" card */
.card.royal, .card.lav { background: var(--paper); border-color: var(--hair); color: var(--ink); } /* the coloured tiles are retired (audit, 4 Oct): paper and hairlines */
.progress .bar i { background: linear-gradient(90deg, var(--royal), var(--purple)); }
.chip.on { background: var(--royal); border-color: var(--royal); }
.bubble.me { background: var(--royal); }

.zoom { position: fixed; right: 20px; bottom: 20px; z-index: 12; display: flex; align-items: center; gap: 0; padding: 2px; border-radius: 10px; background: rgba(255,255,255,.72); backdrop-filter: blur(10px); border: 1px solid var(--hair); font: 500 11px var(--mono); color: var(--ink); }
body.hero-field .zoom { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #f3f1f7; }
body.hero-field .zoom button { color: #f3f1f7; }
body.hero-field .zoom button:hover { background: rgba(255,255,255,.12); }
.zoom button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: 500 18px/1 var(--sans); color: var(--ink); }
.zoom button:hover { background: var(--stone); }
.zoom .fit { width: auto; padding: 0 10px; font: 500 12px var(--mono); }
.zoom-pct { min-width: 44px; text-align: center; }

/* Nacre: the pearl, two lights, a layer each time they meet */
.nacre { position: relative; width: 132px; height: 132px; margin: 0 auto 44px; }
.nacre .pearl { position: absolute; inset: 0; width: 132px; height: 132px; margin: 0; z-index: 2; }
.nacre .pearl canvas { width: 132px; height: 132px; }
.nacre-light { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.nacre-light.warm { background: #fff1e2; box-shadow: 0 0 10px 3px #ffcf9e, 0 0 40px 14px rgba(255, 190, 140, .45), 0 0 90px 30px rgba(255, 190, 140, .18); }
.nacre-light.mint { background: #eafff8; box-shadow: 0 0 10px 3px #69fbd2, 0 0 40px 14px rgba(105, 251, 210, .42), 0 0 90px 30px rgba(105, 251, 210, .16); }
.nacre-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: conic-gradient(from 200deg, #ffd9e2, #c9f5e6, #e4d9ff, #ffe6c7, #ffd9e2);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.4px), #000 calc(100% - .6px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.4px), #000 calc(100% - .6px), transparent 100%);
  animation: layer 6s cubic-bezier(.16, .84, .3, 1) forwards; }
@keyframes layer { 0% { transform: scale(1); opacity: 0; } 8% { opacity: .95; } 100% { transform: scale(3.4); opacity: 0; } }
.home-field .vignette { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(8, 3, 20, .55) 100%); }
.wall-caption { position: fixed; right: 28px; bottom: 26px; z-index: 6; display: grid; gap: 3px; text-align: right; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wall-caption span { font: 400 16px/1.3 var(--serif); letter-spacing: 0; text-transform: none; }
body.hero-field .wall-caption { color: #d9cdfa; }
@media (max-width: 600px) {
  .site-menu { right: 12px; left: 12px; width: auto; } .wall-caption { right: 16px; bottom: 16px; } .nacre, .nacre .pearl, .nacre .pearl canvas { width: 104px; height: 104px; } }

.trio { position: absolute; left: 50%; top: 50%; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transition: transform 1.2s var(--ease); }
.trio canvas { display: block; }
.trio-book { transform: translate(calc(-50% - min(330px, 33vw) - var(--px, 0px)), calc(-50% - 10px - var(--py, 0px))); }
.trio-chii { transform: translate(calc(-50% + var(--px, 0px) * .6), calc(-50% - min(230px, 26vh) + var(--py, 0px) * .6)); }
.trio-avatar { transform: translate(calc(-50% + min(330px, 33vw) - var(--px, 0px)), calc(-50% - 20px - var(--py, 0px))); }
.trio-book canvas, .trio-avatar canvas { filter: drop-shadow(0 22px 24px rgba(11, 4, 24, .55)); }
@media (max-width: 600px) { .trio canvas { transform: scale(.7); } }

/* Landing hero on the launch site's colour field (switchable in the Prototype menu) */
.home-field { position: fixed; inset: 0; z-index: 0; }
body.hero-field #ground { display: none; }
body.hero-field .hero-inner { background: none; }
body.hero-field .hero-inner .label, body.hero-field .hero-inner .h1, body.hero-field .hero-inner .ticker { text-shadow: 0 0 18px rgba(11, 4, 24, .7), 0 1px 2px rgba(11, 4, 24, .6); }
body.hero-field .hero .label { color: #f3efff; }
.hero .h1 { white-space: nowrap; font-size: clamp(30px, 7.6vw, 104px); width: max-content; position: relative; left: 50%; transform: translateX(-50%); } /* one line, centred even when wider than its column */
.hero .label { font-size: 13px; letter-spacing: .1em; padding-left: .1em; } /* balances the trailing letter-space so the line is optically centred */
.hero .ticker { font-size: 12.5px; }
body.hero-field .hero .h1 { color: #fff; }
body.hero-field .hero .accent { color: #c9b3ff; }
body.hero-field .hero .lede { color: #e9e1ff; }
body.hero-field .hero .hint { color: #b9a8f0; }
body.hero-field .map svg.links path { stroke: rgba(233, 225, 255, .35); }
body.hero-field .cluster h3 { color: #f3f1f7; }
body.hero-field .log { color: #e9e1ff66; animation-name: statdrift, glintw; }
body.hero-field .log.mint { color: #69fbd299; animation-name: statdrift, glintmw; }
@keyframes glintw { 0%, 72%, 100% { color: #e9e1ff66; } 86% { color: #fff; } }
@keyframes glintmw { 0%, 72%, 100% { color: #69fbd299; } 86% { color: #69fbd2; } }
body.hero-field .note { box-shadow: 0 14px 30px -12px rgba(11, 4, 24, .55); }

/* About and Notes: one reading column, like an essay */
.essay { width: min(640px, 100%); justify-self: center; align-self: start; }
.essay .h2 { margin: 12px 0 26px; }
.essay p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: var(--text); }
.essay .dropcap::first-letter { float: left; font: 500 64px/.85 var(--head); margin: 6px 10px 0 0; color: var(--ink); }
.essay .back { text-decoration: none; }
.essay .after { margin-top: 30px; }
.note-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--hair); }
.note-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.note-list .serif { font-size: 28px; line-height: 1.1; }
.note-list a:hover .serif { color: var(--purple); }
.site-menu .ext { font: 400 15px var(--sans); color: var(--muted); }

.legal-screen { display: block; padding-top: 110px; }
.legal-layout { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 680px) 240px; gap: 56px; align-items: start; }
.legal-nav, .legal-toc { position: sticky; top: 110px; }
.lg-head { display: block; margin-bottom: 18px; color: var(--ink); letter-spacing: .1em; }
.lg-group { margin-bottom: 22px; }
.lg-group .label { display: block; margin-bottom: 8px; font-size: 10px; }
.lg-group a { display: block; padding: 7px 10px; margin: 0 -10px 2px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 15px; }
.lg-group a:hover { color: var(--ink); }
.lg-group a.on { background: rgba(20,16,42,.06); color: var(--ink); }
.legal-toc nav { border-left: 1px solid var(--hair); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1.5px solid transparent; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.35; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.on { color: var(--ink); border-color: var(--ink); }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); text-decoration: none; } .crumb span { margin: 0 6px; opacity: .6; }
.legal .h2 { margin: 0 0 22px; }
.legal-tabs { display: none; gap: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--hair); }
.legal-tabs a { padding: 10px 0; margin-bottom: -1px; text-decoration: none; color: var(--muted); font-size: 15px; border-bottom: 1.5px solid transparent; }
.legal-tabs a.on { color: var(--ink); border-color: var(--ink); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.legal-meta span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper); font-size: 13px; color: var(--muted); }
.legal-meta b { font-weight: 500; color: var(--ink); margin-left: 6px; }
.legal-meta .draft { background: #fff3d6; border-color: #f5d48a; color: #6b4a00; }
.legal .print { padding: 0 12px; min-height: 36px; border: 1px solid var(--hair); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; margin-bottom: 26px; }
.in-brief { padding: 22px 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--hair); margin-bottom: 34px; }
.in-brief p { margin: 8px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.toc { display: none; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--hair); background: var(--paper); margin-bottom: 30px; }
.toc summary { cursor: pointer; font-size: 15px; color: var(--ink); }
.toc nav a { display: block; padding: 6px 0; font-size: 14px; color: var(--text); text-decoration: none; }
.legal-sec { scroll-margin-top: 110px; border-top: 1px solid var(--hair); padding-top: 26px; margin-top: 26px; }
.legal-sec:first-of-type { border-top: 0; margin-top: 0; }
.legal-sec h2 { position: relative; font: 500 28px/1.2 var(--head); letter-spacing: -.03em; color: var(--ink); margin: 0 0 12px; }
.legal-sec h2 span { position: absolute; left: -44px; color: var(--muted); }
.legal-sec p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text); }
@media (max-width: 1100px) { .legal-layout { grid-template-columns: 200px minmax(0, 1fr); } .legal-toc { display: none; } .toc { display: block; } }
@media (max-width: 760px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { display: none; } .legal-tabs { display: flex; } .legal-sec h2 span { position: static; margin-right: 8px; } }
@media print { .top, .legal-tabs, .legal .print, .toc, .legal-nav, .legal-toc { display: none !important; } .legal-layout { display: block; } body { background: #fff; } }

.site-foot { position: fixed; left: 32px; bottom: 26px; z-index: 6; display: flex; gap: 22px; }
.site-foot a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
body.hero-field .site-foot a { color: #fff; text-shadow: 0 1px 2px rgba(12, 6, 30, .45); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; } /* mono small caps, as Axelrod's footer and nav */
body.hero-field .top-nav > a:not(.btn) { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
body.hero-field .site-foot a:hover { color: #fff; }
.site-social { position: fixed; right: 32px; bottom: 22px; z-index: 6; display: flex; gap: 20px; align-items: center; }
.site-social a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); transition: color .3s var(--ease); }
.site-social a:hover { color: var(--ink); }
body.hero-field .site-social a { color: #fff; filter: drop-shadow(0 1px 2px rgba(12, 6, 30, .45)); }
body.hero-field .site-social a:hover { color: #fff; }
.hero .hero-cta { margin-top: 30px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; } .hero-row .hero-cta { margin-top: 0; }
/* the call to action as a text link with an arrow, as Axelrod sets "Talk to us": mono small caps, a hairline under it, the arrow steps forward on hover */
.hero-row .hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .5); font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(12, 6, 30, .45); }
.hero-row .hero-cta span { display: inline-block; transition: transform .3s var(--ease); }
.hero-row .hero-cta:hover { border-bottom-color: #fff; } .hero-row .hero-cta:hover span { transform: translateX(4px); }
body.hero-field .btn.btn-pill, body.hero-field .btn.btn-pill:hover { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); color: #fff; border-color: transparent; } /* on the landing both pills are solid ink with white words, whatever the sky does (owner); no blur over the live canvas */
body.hero-field .btn.btn-pill:hover { background: #2b2447; }
@media (max-width: 600px) { .site-foot { left: 16px; bottom: 18px; gap: 18px; } .site-social { right: 12px; bottom: 14px; gap: 10px; } }

/* Prototype toolbar (not part of the design) */

@media (max-width: 900px) {
  .ready { grid-template-columns: 1fr; }
  .preview { position: relative; top: 0; height: 300px; order: -1; }
  .grid3 { grid-template-columns: 1fr; }
  .place-head { grid-template-columns: 1fr; }
  .place-head > div:last-child { text-align: left !important; }
}
@media (max-width: 600px) {
  .nav-link { display: none; }
  .top { padding: 16px; }
  .top-nav { gap: 14px; font-size: 14px; }
  .hero-inner { padding: 40px 10px; }
  .task-body { padding: 0 16px 18px; }
  .choice { grid-template-columns: 1fr; }
  .screen { padding: 96px 16px 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.btn[hidden] { display: none; }

/* Site footer on inner pages: 8768's arrangement (four columns, the dot-matrix wordmark, one bottom row) in the waitlist's stone palette */
.foot { margin-top: 40px; background: var(--stone-2); color: var(--text); border-top: 1px solid var(--hair); padding: clamp(56px, 7vw, 88px) clamp(20px, 2.2vw, 32px) 24px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; max-width: 1120px; }
.foot-head { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-cols a { display: block; font: 400 14px/1.4 var(--sans); color: var(--text); text-decoration: none; padding: 4px 0; transition: color .2s var(--ease), transform .2s var(--ease); }
.foot-cols a:hover { color: var(--ink); transform: translateX(3px); }
.foot-word { display: grid; aspect-ratio: 112 / 24; margin: clamp(48px, 7vw, 104px) calc(-1 * clamp(20px, 2.2vw, 32px)) 24px; grid-template-columns: repeat(112, 1fr); grid-template-rows: repeat(24, 1fr); gap: 3px; padding: 0 3px; }
.foot-word i { display: block; border-radius: 3px; background: var(--hair); opacity: .45; }
.foot-word i.on { background: color-mix(in oklab, var(--violet) calc((1 - var(--c)) * 100%), #8fe9cf calc(var(--c) * 100%)); opacity: .7; animation: foot-word var(--p) ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes foot-word { 0%, 100% { opacity: .5; transform: scale(.94); } 50% { opacity: .8; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .foot-word i.on { animation: none; opacity: .65; } }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--hair); font: 400 13px/1.4 var(--sans); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-row a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.foot-row a:hover { color: var(--ink); }
.foot-copy { color: var(--muted); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-bottom { flex-direction: column; align-items: flex-start; } .foot-word { gap: 1px; } }
@media print { .foot { display: none; } }
/* on the landing the bottom right holds the socials, so the prototype pill sits above the footer links */

/* Landing: one pearl, a short story. Each object comes out of the pearl, holds, and goes back in. */
.nacre { width: 150px; height: 150px; margin-bottom: 40px; }
.nacre .pearl, .nacre .pearl canvas { width: 150px; height: 150px; }
.story-obj { position: absolute; left: 50%; top: 50%; z-index: 1; opacity: 0; pointer-events: none; filter: blur(6px); transform: translate(-50%, -50%) scale(.3);
  transition: transform 1.3s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.story-obj.on { opacity: 1; filter: blur(0); transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); }
.story-obj canvas { display: block; filter: drop-shadow(0 22px 24px rgba(11, 4, 24, .5)); }
.story-chii canvas { filter: none; }
.hero .beat { margin: 0 0 30px; min-height: 1.5em; font: 400 18px/1.4 var(--sans); color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero .beat.in { opacity: 1; transform: none; }
.hero .beat b { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; vertical-align: 3px; }
.hero .sub { margin: 18px 0 0; font: 400 19px/1.5 var(--sans); color: var(--text); }
body.hero-field .hero .beat { color: #ece6ff; text-shadow: 0 0 18px rgba(11, 4, 24, .7); }
body.hero-field .hero .beat b { color: #69fbd2; }
body.hero-field .hero .sub { color: #fff; text-shadow: 0 1px 3px rgba(12, 6, 30, .35); } /* pure white, as the headline (owner: the tinted off-white looked off) */
@media (max-width: 600px) {
  .nacre, .nacre .pearl, .nacre .pearl canvas { width: 116px; height: 116px; }
  .story-obj canvas { transform: scale(.7); }
  .hero .beat { font-size: 18px; }
  .hero .sub { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .story-obj, .hero .beat { transition: none; } }

/* Landing: the studio world (world.js). Wider than the text column, centred like the headline. */
.hero .world { position: relative; left: 50%; transform: translateX(-50%); width: min(1040px, 96vw); height: clamp(220px, calc(100vh - 380px), 620px); margin: 0 0 12px; pointer-events: auto; cursor: default; } /* always fits below the top bar with the headline and button under it */
.hero .world canvas { display: block; }
.hero-world .hero-inner { padding: 0 0 24px; }
@media (max-width: 600px) { .hero .world { width: 100vw; height: clamp(300px, calc(100vh - 300px), 560px); margin-bottom: 6px; } } /* phones: a taller, edge-to-edge window onto the studio */

/* Join: the 6-digit code */
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code input { width: 100%; min-width: 0; padding: 0; height: 56px; text-align: center; font: 500 26px/1 var(--mono); border-radius: 12px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); }
.code input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.linkish { background: none; border: 0; padding: 0; color: var(--purple); font: inherit; cursor: pointer; text-decoration: underline; }
/* Readiness: your own studio, live, beside the tasks */
.studio-preview { background: radial-gradient(ellipse 90% 70% at 50% 35%, #6c29ed 0%, #3b1d8a 48%, #1a0f3a 100%); border: 0; height: 620px; box-shadow: 0 30px 80px -40px rgba(43, 17, 96, .7); }
.studio-preview .world { position: absolute; inset: 0; }
.studio-preview .world canvas { display: block; }
.studio-preview .cap { position: absolute; left: 22px; top: 18px; color: #e9e1ff; z-index: 2; }
.studio-preview .caption { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; font: 500 17px/1.35 var(--sans); z-index: 2; text-shadow: 0 1px 12px rgba(11, 4, 24, .7); }
.chii-reveal { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ground) 60%, #fff); }
.chii-reveal .orb { flex: none; margin-top: 4px; }
@media (max-width: 900px) { .studio-preview { height: 380px; } }

/* Landing: the studio is the hero and fills the screen, framed as on the studio-world page. Three placements for the words,
   by the shape of the screen, so they never sit on the house:
   squarer than 29:20 (tablets, small laptops): centred under the house, as on phones;
   29:20 to 19:10 (laptops): the house is a diamond, so the bottom-left corner is empty: the words sit there;
   wider than 19:10 (monitors): the house sits right, the words beside it, left, a little below centre. */
@media (min-width: 601px) {
  .hero.hero-world { place-items: end center; padding: 0 24px clamp(56px, 8vh, 96px); }
  .hero-world .world { position: fixed; inset: 0; left: 0; width: auto; height: auto; transform: none; margin: 0; z-index: 0; }
  .hero-world .hero-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; padding: 0; }
  .hero-world::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(12, 6, 30, 0), rgba(12, 6, 30, .6) 55%, rgba(12, 6, 30, .8)); }
  .hero-world .h1 { white-space: normal; position: static; left: auto; transform: none; width: auto; font-size: clamp(38px, min(5.6vw, 8vh), 72px); line-height: 1; letter-spacing: -.035em; }
  .hero-world .sub { margin: 16px auto 0; max-width: 600px; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: #fff; }
  .hero-world .hero-row { margin-top: clamp(18px, 3vh, 30px); justify-content: center; }
}
@media (min-width: 601px) and (min-aspect-ratio: 29/20) {
  .hero.hero-world { place-items: end start; padding: 0 0 clamp(64px, 8vh, 140px) clamp(28px, 5vw, 96px); } /* the words sit above the footer, under the house's left tip */
  .hero-world .hero-inner { text-align: left; max-width: min(30vw, 600px); } /* 16:10 laptops: the house's left tip sits further left, so the block is narrower (three headline lines) */
  .hero.hero-world .sub { margin-left: 0; margin-right: 0; max-width: 500px; font-size: clamp(15px, 1.1vw, 19px); } /* flush with the headline's left edge, as Axelrod sets it (a later .hero .sub rule centres it otherwise) */
  .hero-world .hero-row { justify-content: flex-start; }
  .hero-world::before { right: auto; width: 72vw; height: 62vh; background: radial-gradient(ellipse at 0% 100%, rgba(12, 6, 30, .88) 0%, rgba(12, 6, 30, .6) 42%, rgba(12, 6, 30, 0) 100%); }
  .hero-world .h1 { font-size: clamp(36px, min(3.9vw, 6.2vh), 72px); } /* scales with height too: short laptops keep the lines off the house */
}
@media (min-width: 601px) and (min-aspect-ratio: 17/10) {
  .hero-world .hero-inner { max-width: min(32vw, 600px); } /* 16:9 laptops and monitors: room for two lines */
}
@media (min-width: 601px) and (min-aspect-ratio: 19/10) {
  .hero.hero-world { place-items: center start; padding-bottom: 0; }
  .hero-world .hero-inner { margin-top: 8vh; max-width: min(34vw, 700px); }
  .hero-world .h1 { font-size: clamp(40px, min(4.2vw, 9vh), 84px); }
  .hero.hero-world .sub { max-width: 560px; margin-left: 0; margin-right: 0; }
  .hero-world::before { bottom: auto; top: 0; height: 100vh; width: 52vw; background: linear-gradient(to right, rgba(12, 6, 30, .78), rgba(12, 6, 30, .45) 55%, rgba(12, 6, 30, 0)); }
}

/* Join window: dark glass over the studio, Chii peeking over the top (after Foundable's join modal) */
.scrim.join-scrim { background: rgba(10, 6, 24, .55); backdrop-filter: blur(8px); }
.modal.join-dark { background: rgba(20, 14, 38, .92); border: 1px solid rgba(201, 184, 245, .18); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7); color: #e9e1ff; padding: 46px 34px 28px; overflow: visible; }
/* Chii peeks over the top edge, glowing and breathing */
@keyframes chiiPeek { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .chii-peek { animation: none; } }

/* ---------- Landing: the studio on every screen, and the five things you can touch ---------- */
.hero.hero-world > * { grid-area: 1 / 1; } /* the words and the card share one cell: one fades out as the other comes in */
.hero .sub { max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-world .hero-inner { transition: opacity .35s var(--ease); }
.hero.showing .hero-inner { opacity: 0; pointer-events: none; }
.hero.showing .hero-inner a { pointer-events: none; }
.hero-hint { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c9b8f5; opacity: .85; }
.hero-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: hotpulse 2.4s ease-out infinite; }
@keyframes hotpulse { 0% { box-shadow: 0 0 0 0 rgba(105, 251, 210, .7); } 70% { box-shadow: 0 0 0 9px rgba(105, 251, 210, 0); } 100% { box-shadow: 0 0 0 0 rgba(105, 251, 210, 0); } }
.hot-dots { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hot { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 26px; padding: 0 0 0 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 6, 30, .9); color: #fff; font: 500 12.5px/1 var(--sans); white-space: nowrap; cursor: pointer; pointer-events: auto; will-change: transform; transition: padding .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.hot i { position: relative; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--mint); }
.hot i::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(105, 251, 210, .75); animation: hotring 2.4s ease-out infinite; } /* the pulse is a ring scaling up: transform and opacity only, so the compositor does it */
@keyframes hotring { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.hot span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s var(--ease), opacity .25s var(--ease); }
.hot:hover, .hot:focus-visible, .hot.near, .hot.on { padding-right: 11px; }
.hot:hover span, .hot:focus-visible span, .hot.near span, .hot.on span { max-width: 160px; opacity: 1; }
.hot:hover i::after, .hot.near i::after, .hot.on i::after { animation: none; opacity: 0; }
@media (hover: none) { .hot span { display: none; } .hot, .hot.on { padding-right: 0; } }
.hot:nth-child(2) i::after { animation-delay: .4s; } .hot:nth-child(3) i::after { animation-delay: .8s; } .hot:nth-child(4) i::after { animation-delay: 1.2s; } .hot:nth-child(5) i::after { animation-delay: 1.6s; }
.hot[hidden] { display: none; }
.hot:hover, .hot.near { border-color: var(--mint); background: rgba(12, 6, 30, .96); }
.hot.on { background: var(--mint); color: var(--ink); border-color: var(--mint); } .hot.on i { background: var(--ink); animation: none; }
.hero.showing .hot:not(.on) { opacity: .55; }
.hot-card { position: relative; z-index: 2; width: 100%; max-width: 560px; padding: 26px 28px 24px; border-radius: 4px; background: var(--stone); border: 1px solid rgba(20, 16, 42, .1); box-shadow: 0 40px 120px -30px rgba(12, 6, 30, .6); color: var(--ink); text-align: left; pointer-events: auto; opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.hot-card[hidden] { display: none; }
.hot-card.in { opacity: 1; transform: none; }
.hot-card .close { position: absolute; right: 22px; top: 22px; width: auto; height: auto; border: 0; background: none; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.hot-card .close:hover { color: var(--ink); }
body.on-dark .hot-card .label, .hot-card .label { display: block; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); } /* the card is a stone surface on the dark landing: its own colours win over the page's light-on-dark rules */
body.on-dark .hot-card .more, body.on-dark .hot-card .muted { color: var(--muted); } body.on-dark .hot-card h2, body.on-dark .hot-card .line { color: var(--ink); }
.hot-card .label::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--muted); margin: 0 12px 3px 0; vertical-align: middle; }
.hot-card h2 { margin: 18px 0 8px; font: 500 clamp(26px, 2.6vw, 36px)/1.05 var(--head); letter-spacing: -.035em; color: var(--ink); }
.hot-card .line { margin: 0; font: 400 18px/1.4 var(--sans); color: var(--ink); }
.hot-card .more { margin: 12px 0 0; font: 400 15px/1.55 var(--sans); color: var(--muted); }
.hot-after { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 22px; }
.hero.no-world .world { display: none; } /* no WebGL: the field alone, the words in the middle */
.hero.no-world { place-items: center; }
.hero.no-world .hot-dots, .hero.no-world .hero-hint { display: none; }

/* Phones: the studio fills the screen too; the words sit over the bottom, the card takes their place */
@media (max-width: 600px) {
  .hero.hero-world { place-items: end center; padding: 0 16px calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero-world .world { position: fixed; inset: 0; left: 0; width: auto; height: auto; transform: none; margin: 0; z-index: 0; }
  .hero-world::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 52vh; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(12, 6, 30, 0), rgba(12, 6, 30, .7) 55%, rgba(12, 6, 30, .86)); }
  .hero-world .hero-inner { position: relative; z-index: 1; padding: 0; }
  .hero-world .h1 { white-space: normal; position: static; left: auto; transform: none; width: auto; font-size: clamp(36px, 11.5vw, 50px); line-height: 1; letter-spacing: -.04em; }
  .hero .sub { font-size: 16.5px; line-height: 1.45; margin-top: 14px; }
  .hero-world .hero-row { margin-top: 16px; justify-content: center; }
  .hot { padding: 5px 9px 5px 6px; font-size: 11.5px; }
  .hot-card { padding: 18px 18px 16px; border-radius: 16px; }
  .hot-card h2 { font-size: 24px; }
  .hot-card .line { font-size: 18px; }
  .hot-card .more { font-size: 14px; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* the honeypot: people never see it, bots fill it */
.turnstile:empty { display: none; }
.linkish.small { font-size: 14px; }

/* ---------- the account menu (signed in) ---------- */
.acct { position: relative; }
.acct .avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: var(--purple); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.acct .avatar:hover, .acct .avatar[aria-expanded=true] { box-shadow: 0 0 0 3px rgba(108, 41, 237, .25); }
.acct-menu { position: absolute; right: 0; top: 44px; z-index: 50; width: 260px; padding: 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 20px 50px rgba(20, 16, 42, .18); display: grid; gap: 2px; text-align: left; }
.acct-menu[hidden] { display: none; }
.acct-menu .who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; font-size: 12.5px; color: var(--muted); word-break: break-all; }
.acct-menu .who b { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.acct-menu a, .acct-menu button, .acct-menu .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 14px/1.2 var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu .row:hover { background: var(--stone); color: var(--ink); }
.acct-menu .row input { accent-color: var(--purple); width: 16px; height: 16px; margin: 0; }
.acct-menu .danger { color: #b3261e; }
body.on-dark .acct-menu { background: rgba(20, 14, 38, .96); border-color: rgba(201, 184, 245, .18); color: #e9e1ff; }
body.on-dark .acct-menu a, body.on-dark .acct-menu button, body.on-dark .acct-menu .row, body.on-dark .acct-menu .who b { color: #e9e1ff; }
body.on-dark .acct-menu a:hover, body.on-dark .acct-menu button:hover, body.on-dark .acct-menu .row:hover { background: rgba(255, 255, 255, .08); }
/* the rules */
.checks.how li { align-items: flex-start; } .checks.how .ck { flex: none; font-size: 11px; margin-top: 1px; }

/* the copy is one colour, white, at every hour (owner): the shade behind it carries the contrast when the sky turns pale by day */
body.on-dark .wordmark, body.on-dark .top-nav > a:not(.btn) { color: #fff; text-shadow: 0 1px 3px rgba(12, 6, 30, .55); }
.hero-world .h1, .hero-world .sub { text-shadow: 0 1px 3px rgba(12, 6, 30, .35); }

/* the proof line: small caps mono under the hero row, as Axelrod sets theirs */
/* the proof line sits on its own ink band, as Axelrod's does on the dark foot of its photo */
@media (min-width: 601px) { .hero-proof { white-space: nowrap; } } /* one line; it may run past the copy block into the empty corner under the house */
@media (max-width: 600px) { .hero-proof { margin-top: 16px; padding: 8px 14px 8px 12px; font-size: 10px; letter-spacing: .1em; border-radius: 14px; } }

/* ---------- the join / log-in window, as Axelrod's contact page: a stone panel on the left, the studio still running on the right ---------- */
.scrim.join-scrim { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; display: block; padding: 0; animation: none; }
.modal.join-panel { position: fixed; left: 0; top: 0; bottom: 0; width: min(600px, max(50vw, 440px)); max-width: none; border-radius: 0; border: 0; border-right: 1px solid rgba(20, 16, 42, .1); background: var(--stone); box-shadow: 40px 0 120px -40px rgba(12, 6, 30, .55); padding: 0; display: flex; flex-direction: column; overflow: auto; animation: panelIn .55s var(--ease); color: var(--ink); }
@keyframes panelIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.joining .top, body.joining .hero-inner, body.joining .hot-dots, body.joining .hot-card, body.joining .site-foot, body.joining .site-social, body.joining .site-corp, body.joining .hero-world::before { visibility: hidden; } /* while the panel is open only the studio shows beside it, as Axelrod's overlays show only the photograph */
.join-panel .panel-head { display: flex; justify-content: space-between; align-items: center; padding: 28px 44px; border-bottom: 1px solid var(--hair); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.join-panel .panel-head .tag::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--muted); margin: 0 12px 3px 0; vertical-align: middle; }
.join-panel .panel-head .close { position: static; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.join-panel .panel-head .close:hover { background: none; color: var(--ink); }
.join-panel .body { padding: clamp(48px, 12vh, 120px) 44px 48px; width: 100%; max-width: 560px; }
.join-panel .jt { margin: 0 0 16px; text-align: left; font: 500 clamp(34px, 3.1vw, 48px)/1.02 var(--head); letter-spacing: -.035em; color: var(--ink); }
.join-panel .sub { margin: 0 0 44px; text-align: left; font: 400 16px/1.5 var(--sans); color: var(--muted); } .join-panel .sub b { color: var(--ink); font-weight: 500; }
.join-panel .stack { gap: 22px; }
.join-panel .lbl { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: -10px; }
.join-panel .field { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 12px 0; font: 400 18px/1.3 var(--sans); color: var(--ink); }
.join-panel .field:focus { outline: none; background: transparent; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.join-panel .field::placeholder { color: #a59a88; }
.join-panel .send { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--ink); }
.join-panel .send .field { flex: 1; min-width: 0; border-bottom: 0; } .join-panel .send .field:focus { box-shadow: none; }
.join-panel .send:focus-within { box-shadow: 0 1px 0 var(--ink); }
.join-panel .go { flex: none; padding: 10px 0; border: 0; background: none; font: 600 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; white-space: nowrap; }
.join-panel .go:hover { text-decoration: underline; text-underline-offset: 4px; } .join-panel .go[disabled] { opacity: .5; cursor: default; }
.join-panel .stack > .go { justify-self: start; border-bottom: 1px solid var(--ink); padding: 12px 0 10px; } .join-panel .stack > .go:hover { text-decoration: none; }
.join-panel .handle::before { left: 0; font-size: 18px; color: var(--muted); } .join-panel .handle .field { padding-left: 26px; } /* the @ sits on the rule's left edge, the handle after it (it overlapped the text before) */
.join-panel .code { gap: 10px; }
.join-panel .code input { height: 60px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font: 500 30px/1 var(--mono); color: var(--ink); }
.join-panel .code input:focus { outline: none; box-shadow: 0 1px 0 var(--ink); }
.join-panel .fine { font: 400 12.5px/1.6 var(--sans); color: var(--muted); text-align: left; } .join-panel .fine a { color: var(--ink); }
.join-panel .fine .label { color: #a59a88; }
.join-panel .linkish { color: var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.join-panel .ok { color: var(--mint-ink); font-size: 13px; } .join-panel .err { color: #b42318; font-size: 13px; }
.join-panel .btn-sso { width: 100%; }
@media (max-width: 600px) { .modal.join-panel { width: 100vw; border-right: 0; box-shadow: none; } .join-panel .panel-head { padding: 22px 20px; } .join-panel .body { padding: 36px 20px 40px; } .join-panel .jt { font-size: 32px; } }

/* one Get access per page: the pill in the top right, on every page; the hero shows the counter alone */

/* ---------- Get access, Ando-shaped (4 Oct): one question a screen, two stages, the email in the header ---------- */
.join-panel .panel-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.join-panel .ph-l { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.join-panel .back { width: 32px; height: 32px; padding: 0; border: 1px solid var(--hair); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 15px/1 var(--sans); cursor: pointer; }
.join-panel .back:hover { background: var(--stone-2); }
.join-panel .jas[hidden] { display: none; }
.join-panel .jas { display: grid; justify-items: center; gap: 4px; text-align: center; letter-spacing: 0; text-transform: none; }
.join-panel .jas .label { font-size: 10.5px; }
.join-panel .jas b { font: 500 14px/1.2 var(--sans); color: var(--ink); }
.join-panel .jas .linkish { font-size: 10px; border-bottom-color: var(--muted); color: var(--muted); }
.join-panel .panel-head .close { justify-self: end; }
.join-panel .body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.join-panel .q { display: grid; gap: 22px; animation: rise .45s var(--ease); }
.join-panel .q .jt { margin: 0; }
.join-panel .q .sub { margin: -6px 0 0; }
.join-panel .q .go { justify-self: start; }
.join-panel .q .send + .fine, .join-panel .q .go + .fine { margin-top: -6px; }
.join-panel .q .row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.join-panel textarea.field { resize: vertical; min-height: 110px; line-height: 1.5; }
.join-panel .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; margin-bottom: 4px; }
.join-panel .tick::after { content: ""; position: absolute; left: 15px; top: 11px; width: 10px; height: 17px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.join-panel .opts { display: grid; border-top: 1px solid var(--ink); }
.join-panel .opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: none; font: 400 17px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.join-panel .opt i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); transition: background .2s; }
.join-panel .opt:hover { background: rgba(20, 16, 42, .035); }
.join-panel .opt.on i { background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.join-panel .opt.on { color: var(--ink); font-weight: 500; }
.join-panel .steps { display: flex; justify-content: center; gap: 36px; margin: 0; padding: 22px 44px 28px; list-style: none; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a59a88; }
.join-panel .steps li { display: flex; align-items: center; gap: 10px; }
.join-panel .steps li i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.join-panel .steps li[data-state="now"] { color: var(--ink); }
.join-panel .steps li[data-state="now"] i { border-color: var(--ink); border-top-color: transparent; animation: spin 1.1s linear infinite; }
.join-panel .steps li[data-state="done"] { color: var(--muted); }
.join-panel .steps li[data-state="done"] i { background: var(--ink); border-color: var(--ink); }
.join-panel .steps li[data-state="done"] i::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .join-panel .panel-head { grid-template-columns: auto 1fr auto; padding: 18px 20px; } .join-panel .ph-l .tag { display: none; } .join-panel .body { padding: 28px 20px; } .join-panel .steps { gap: 24px; padding: 16px 20px 24px; } }
.join-panel .code-one { font: 500 26px/1 var(--mono); letter-spacing: .32em; padding: 14px 0; }
.join-panel .code-one::placeholder { letter-spacing: .32em; }
.join-panel .btn.wide { width: 100%; justify-content: center; min-height: 54px; font-size: 16px; }
.join-panel .send .prefix { flex: none; font: 400 18px/1.3 var(--sans); color: var(--ink); margin-right: -14px; }
/* ---------- the application (selective, as Axelrod's contact): a status, not a number ---------- */
.status-box { text-align: right; display: grid; justify-items: end; gap: 10px; }
.status-now { font: 500 clamp(40px, 5vw, 64px)/1 var(--head); letter-spacing: -.04em; color: var(--ink); }
.status-track { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a59a88; }
.status-track li { display: flex; align-items: center; gap: 8px; }
.status-track li i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; }
.status-track li.now { color: var(--ink); } .status-track li.now i { background: var(--ink); border-color: var(--ink); }
.status-track li.done { color: var(--muted); } .status-track li.done i { background: var(--muted); border-color: var(--muted); }
.join-panel .fine.write { display: grid; gap: 6px; margin-top: 18px; } .join-panel .fine.write a { font: 400 16px/1.3 var(--sans); border-bottom: 1px solid var(--ink); text-decoration: none; justify-self: start; }
@media (max-width: 760px) { .place-head { grid-template-columns: 1fr; } .status-box { text-align: left; justify-items: start; } }
.top-nav { gap: 26px; }
body.hero-field .top-nav > a:not(.btn) { color: #fff; text-shadow: 0 1px 3px rgba(12, 6, 30, .45); } body.hero-field .top-nav > a:not(.btn):hover { color: #fff; }
.site-corp { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 6; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
body.hero-field .site-corp { color: #fff; text-shadow: 0 1px 3px rgba(12, 6, 30, .45); }
@media (max-width: 900px) { .site-corp { left: 32px; transform: none; bottom: 8px; font-size: 10px; } .site-foot { bottom: 34px; } }
.hero-world .hot-dots { transition: opacity .5s var(--ease); } .hero-world.world-loading .hot-dots { opacity: 0; pointer-events: none; }
/* ---------- the arrival: the sky at first paint (index.html), the words once their type is in, the studio whole on its own dissolve ---------- */
body.booting { background: #170f33; }
.top, #app { transition: opacity .8s var(--ease); }
body.booting .top, body.booting #app { opacity: 0; }
body.booting #ground { display: none; } /* no light grid under the sky */
.hero-world .world { opacity: 0; transition: opacity .8s var(--ease); } .hero-world.world-in .world { opacity: 1; } /* the studio arrives whole, behind the words */
/* ---------- the contact panel, measured off Axelrod's (1440x900): half the screen, a 64px head, a 400px column 190px under it ---------- */
.join-panel .panel-head { min-height: 64px; padding-top: 0; padding-bottom: 0; border-bottom-color: rgba(20, 16, 42, .15); }
.join-panel .body { justify-content: flex-start; max-width: none; padding: clamp(40px, 21vh, 190px) 24px 32px; }
.join-panel .q { width: min(400px, 100%); margin: 0 auto; }
.join-panel .jt { font: 500 clamp(28px, 2.64vw, 38px)/1.08 var(--head); letter-spacing: -.02em; }
.join-panel .sub { font: 400 15px/1.55 var(--sans); color: rgba(20, 16, 42, .66); }
.join-panel .q.ax { gap: 0; }
.join-panel .q.ax .sub { margin: 18px 0 0; }
.join-panel .q.ax .send { margin-top: 44px; height: 53px; gap: 10px; border-bottom: 1px solid rgba(20, 16, 42, .15); box-shadow: none; cursor: text; }
.join-panel .q.ax .send:focus-within { border-bottom-color: var(--ink); }
.join-panel .q.ax .field { height: 52px; padding: 0; font: 400 16px/1 var(--sans); }
.join-panel .q.ax .field::placeholder { color: rgba(20, 16, 42, .45); }
.join-panel .q.ax .go { height: 52px; padding: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .3em; }
.join-panel .q.ax .go:hover { text-decoration: none; opacity: .6; }
.join-panel .q.ax .note { margin-top: 18px; min-height: 21px; padding: 0; border: 0; border-radius: 0; background: none; font: 400 14px/21px var(--sans); color: var(--ink); }
.join-panel .q.ax .note[hidden] { display: block; visibility: hidden; }
.join-panel .panel-foot { display: none; width: min(400px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 44px; }
.join-panel.first .panel-foot { display: block; } .join-panel.first .steps { display: none; }
.join-panel .panel-foot .label { margin: 0; font: 500 10px/15px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(20, 16, 42, .66); }
.join-panel .panel-foot p + p { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.join-panel .panel-foot a { font: 400 14px/21px var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(20, 16, 42, .15); padding-bottom: 4px; }
.join-panel .panel-foot a:hover { border-bottom-color: var(--ink); }
@media (max-width: 600px) { .modal.join-panel { width: 100vw; } .join-panel .body { padding: 40px 20px 24px; } .join-panel .panel-foot { width: auto; margin: 0 20px; padding-bottom: 32px; } }
/* the way in: "Get Access" on a full screen, "Sign Up" once the window narrows */
.on-narrow { display: none; }
@media (max-width: 760px) { .on-wide { display: none; } .on-narrow { display: inline; } }
/* the way in, as a pill: white on the studio's sky, ink on the paper pages */
#nav-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
#nav-cta:hover { background: #2b2447; color: #fff; }
body.hero-field .top-nav > a#nav-cta { background: #fff; color: var(--ink); text-shadow: none; box-shadow: 0 6px 20px -8px rgba(8, 3, 20, .55); }
body.hero-field .top-nav > a#nav-cta:hover { background: #ecebf3; color: var(--ink); }
.hero-row .hero-cta.pill { gap: 12px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); text-shadow: none; font: 500 12.5px/1 var(--mono); letter-spacing: .14em; box-shadow: 0 10px 30px -10px rgba(8, 3, 20, .6); transition: background .25s var(--ease), transform .25s var(--ease); }
.hero-row .hero-cta.pill:hover { background: #ecebf3; transform: translateY(-1px); }
.hero-row .hero-cta.pill .arr { display: inline-block; transition: transform .3s var(--ease); } .hero-row .hero-cta.pill:hover .arr { transform: translateX(3px); }
.hero-row .hero-cta .on-narrow { display: none; } @media (max-width: 760px) { .hero-row .hero-cta .on-wide { display: none; } .hero-row .hero-cta .on-narrow { display: inline; } } /* the hero link's own span rule would show both */
/* the landing's pills in the glass from before: a white tint over the sky, a hairline, a blur */
body.hero-field .top-nav > a#nav-cta, .hero-row .hero-cta.pill { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 24px -12px rgba(8, 3, 20, .5); text-shadow: none; }
body.hero-field .top-nav > a#nav-cta:hover, .hero-row .hero-cta.pill:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .42); color: #fff; }
/* the contact form's follow-up lines: each unfolds under the one before, on the same hairline */
.join-panel .q.ax .ax-form { display: grid; margin-top: 44px; }
.join-panel .q.ax .ax-form .send { margin-top: 0; }
.join-panel .q.ax .send.more { height: 0; overflow: hidden; opacity: 0; border-bottom-color: transparent; transition: height .35s var(--ease), opacity .35s var(--ease), border-color .35s var(--ease); }
.join-panel .q.ax .send.more.on { height: 53px; opacity: 1; border-bottom-color: rgba(20, 16, 42, .15); }
.join-panel .q.ax .send.more.on:focus-within { border-bottom-color: var(--ink); }
.join-panel .q.ax > .ax-note { margin-top: 18px; min-height: 21px; font: 400 14px/21px var(--sans); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.join-panel .q.ax > .ax-note.show { opacity: 1; transform: none; } .join-panel .q.ax > .ax-note a { color: var(--ink); } /* its own class: the old .note was a pinned card */
.join-panel .q.ax .ax-form .go { display: none; } .join-panel .q.ax .ax-form .tail .go { display: block; } /* Send follows the last open line */
/* Get Access opens on the right; the studio eases into the space on the left (app.js frame) */
.modal.join-panel { left: auto; right: 0; border-right: 0; border-left: 1px solid rgba(20, 16, 42, .1); box-shadow: -40px 0 120px -40px rgba(12, 6, 30, .55); animation-name: panelInRight; }
@keyframes panelInRight { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .modal.join-panel { border-left: 0; box-shadow: none; } }
.modal.join-panel.from-left { left: 0; right: auto; border-left: 0; border-right: 1px solid rgba(20, 16, 42, .1); box-shadow: 40px 0 120px -40px rgba(12, 6, 30, .55); animation-name: panelIn; } /* opened from the hero: on the left, where the words were */

/* ---------- About: Axelrod's sheet (5 Oct). Warm paper over the landing; the headline left, one sentence and for / across / through right ---------- */
.about-sheet { position: fixed; inset: 0; z-index: 45; overflow-y: auto; background: var(--stone); color: var(--ink); animation: fade .4s var(--ease); }
.about-sheet .as-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 clamp(20px, 3.2vw, 64px); background: var(--stone); border-bottom: 1px solid rgba(20, 16, 42, .15); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(20, 16, 42, .66); }
.about-sheet .as-tag::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin: 0 16px 3px 0; vertical-align: middle; }
.about-sheet .as-close { color: var(--ink); text-decoration: none; letter-spacing: .16em; }
.about-sheet .as-close:hover { opacity: .6; }
.about-sheet .as-body { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 32fr); padding: clamp(48px, 8vh, 96px) 14.6vw clamp(64px, 12vh, 140px); }
.about-sheet h1 { margin: 0; max-width: 6.6em; font: 500 clamp(44px, 4.4vw, 84px)/1.02 var(--head); letter-spacing: -.035em; color: var(--ink); }
.about-sheet .as-line { margin: .1em 0 0; font: 400 clamp(17px, 1.3vw, 24px)/1.55 var(--sans); color: var(--ink); }
.about-sheet dl { margin: clamp(32px, 5vh, 52px) 0 0; border-top: 1px solid rgba(20, 16, 42, .15); }
.about-sheet dl > div { display: grid; grid-template-columns: 33% 1fr; padding: clamp(18px, 2.6vh, 28px) 0; border-bottom: 1px solid rgba(20, 16, 42, .15); }
.about-sheet dt { padding-top: .5em; font: 500 10.5px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: rgba(20, 16, 42, .6); }
.about-sheet dd { margin: 0; display: grid; gap: .35em; font: 400 clamp(15px, 1.05vw, 19px)/1.4 var(--sans); color: var(--ink); }
.about-sheet .as-foot { display: grid; gap: 12px; margin: clamp(40px, 6vh, 64px) 0 0; }
.about-sheet .as-foot span { font: 500 10px/15px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(20, 16, 42, .66); }
.about-sheet .as-foot a { justify-self: start; font: 400 14px/21px var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(20, 16, 42, .15); padding-bottom: 4px; }
.about-sheet .as-foot a:hover { border-bottom-color: var(--ink); }
body.about-open { overflow: hidden; }
@media (max-width: 900px) { .about-sheet .as-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 72px; } .about-sheet h1 { max-width: 8em; font-size: clamp(38px, 9vw, 56px); } .about-sheet .as-line { font-size: 17px; } .about-sheet dd { font-size: 16px; } }
@media (max-width: 600px) { .about-sheet .as-head { padding: 0 20px; } .about-sheet .as-body { padding: 36px 20px 56px; } .about-sheet dl > div { grid-template-columns: 38% 1fr; } }
