@font-face {
  font-family: "Inter"; src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --a: #86d67a;  --b: #b295f7;            /* agent A / B on dark */
  --a-ink: #4f8a43; --b-ink: #7a5bb5;     /* agent A / B on light */
  --blue: #0071e3;
  --ink: #1d1d1f; --dim: #86868b; --fog: #f5f5f7; --hair: rgba(0,0,0,.08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body {
  margin: 0; background: #000; color: var(--ink);
  font: 400 17px/1.47 "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .eyebrow, .stat b, .brand {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}
img, video { display: block; max-width: 100%; }
p { margin: 0; }
::selection { background: rgba(178,149,247,.35); }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 780px; }
section { padding-block: clamp(88px, 12vw, 152px); position: relative; overflow: hidden; }
.dark { background: #000; color: var(--fog); }
.light { background: var(--fog); }
.white { background: #fff; }
.grad { background: linear-gradient(90deg, var(--a) 10%, var(--b) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--dim); }

/* ── type ── */
.eyebrow { font-size: 19px; font-weight: 600; color: var(--dim); letter-spacing: -0.01em; margin-bottom: 14px; text-align: center; }
h1 { font-size: clamp(52px, 9.4vw, 124px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; margin: 0; text-align: center; }
h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; }
h4 { font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 14px; color: var(--dim); }
h5 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 64px 0 18px; }
.sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--dim); max-width: 720px; margin: 24px auto 0; text-align: center; letter-spacing: -0.015em; font-weight: 500; }
.note { font-size: 14px; line-height: 1.5; color: var(--dim); max-width: 720px; margin: 24px auto 0; text-align: center; }

/* ── nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: 56px; background: rgba(0,0,0,.76);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: background .4s, border-color .4s; }
.nav-inner { max-width: 1180px; height: 100%; margin-inline: auto; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-left { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; color: #f5f5f7; text-decoration: none; flex-shrink: 0; }
.brand svg.logo { width: 26px; height: 26px; flex: none; }
.navlogos { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 2px 10px rgba(0,0,0,.18); overflow: hidden; font-size: 0; line-height: 0;
  transition: background .35s, border-color .35s, box-shadow .35s, padding .35s, border-radius .35s; }
.navlogos img { height: 25px; width: auto; object-fit: contain; flex: none; }
.navlogos img.logo-wide { height: 22px; }
.nav-links { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(245,245,247,.84); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav.on-light { background: rgba(255,255,255,.88); border-bottom-color: var(--hair); }
.nav.on-light .brand { color: var(--ink); }
.nav.on-light .navlogos { background: transparent; border-color: transparent; border-left: 1px solid rgba(0,0,0,.12);
  box-shadow: none; border-radius: 0; padding: 0 0 0 14px; }
.nav.on-light .nav-links a { color: rgba(0,0,0,.74); }
.nav.on-light .nav-links a:hover { color: #000; }

/* ── hero ── */
.hero { padding: clamp(112px, 15vh, 168px) 24px clamp(72px, 9vw, 116px); text-align: center; position: relative; overflow: hidden; }
.glow { position: absolute; left: 50%; top: -22%; width: 1200px; height: 760px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side at 36% 50%, rgba(134,214,122,.22), transparent 70%),
              radial-gradient(closest-side at 66% 46%, rgba(178,149,247,.26), transparent 70%);
  filter: blur(40px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-54%) scale(1); } to { transform: translateX(-46%) scale(1.12); } }
.hero > *:not(.glow) { position: relative; }
.hero-title { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-acronym { display: block; font-size: clamp(54px, 7.2vw, 88px); font-weight: 780; letter-spacing: -0.045em; line-height: 0.98; }
.hero-fulltitle { display: block; font-size: clamp(23px, 3.05vw, 39px); font-weight: 660; letter-spacing: -0.028em; line-height: 1.22; color: #f5f5f7; }
.hero-tagline { font-size: clamp(16px, 1.45vw, 20px); font-weight: 550; line-height: 1.35; letter-spacing: -0.01em; color: #a1a1a6; margin: 18px auto 0; }
.author-block { max-width: 960px; margin: 26px auto 0; }
.authors { font-size: 16.5px; font-weight: 500; line-height: 1.75; color: #f5f5f7; letter-spacing: -0.01em; }
.authors span { display: inline-block; margin-inline: 8px; white-space: nowrap; }
.authors sup, .affil sup, .affil-note sup { font-size: .64em; line-height: 0; margin-left: 1px; color: #b8b8bf; }
.affil { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #a1a1a6; }
.affil span { display: inline-block; margin-inline: 10px; white-space: nowrap; }
.affil-note { margin-top: 4px; font-size: 13.5px; color: #86868b; }
.affil-note a { color: #9da3ae; text-decoration: none; transition: color .2s; }
.affil-note a:hover { color: #f5f5f7; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none; font-size: 15.5px; font-weight: 600; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: #0077ed; transform: scale(1.025); }
.btn-paper { background: #f5f5f7; color: #0b0b0c; }
.btn-paper:hover { background: #ffffff; transform: scale(1.025); }
.btn-ghost { background: rgba(255,255,255,.06); color: #d2d2d7; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #ffffff; transform: scale(1.025); }
.btn-ghost.off { color: #8e8e93; border-color: rgba(255,255,255,.14); cursor: default; }
.btn-ghost.off:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #8e8e93; transform: none; }
.film-wrap { max-width: 1280px; margin: clamp(56px, 8vw, 96px) auto 0; transform-origin: 50% 0; will-change: transform; }
.film { width: 100%; aspect-ratio: 16/9; border-radius: var(--r); background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px rgba(134,150,240,.16); }

/* load-in */
.rise { opacity: 0; transform: translateY(26px); filter: blur(10px); animation: rise 1.2s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(44px) scale(.985); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── bento ── */
.bento { display: grid; gap: 20px; margin-top: clamp(44px, 5.5vw, 72px); }
.bento.three { grid-template-columns: repeat(3, 1fr); }
.bento.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: #fff; border-radius: var(--r); padding: 32px 30px 34px; transition: opacity 1s var(--ease) var(--d, 0s), transform .6s var(--ease), box-shadow .6s var(--ease); }
.tile.reveal:not(.in) { transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.tile:hover { transform: translateY(-6px) scale(1.012); box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.tile p { font-size: 16px; line-height: 1.45; color: #6e6e73; }
.tile.soft { background: var(--fog); }
.tile.glass { background: #161617; }
.tile.glass:hover { box-shadow: none; background: #1d1d1f; }
.tile.glass p { color: #a1a1a6; }
.tile.feature { background: #000; color: #f5f5f7; position: relative; overflow: hidden; }
.tile.feature::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side at 30% 50%, rgba(134,214,122,.3), transparent), radial-gradient(closest-side at 72% 40%, rgba(178,149,247,.36), transparent); filter: blur(30px); }
.tile.feature > * { position: relative; }
.tile.feature p { color: #c7c7cc; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; font-weight: 700; margin-bottom: 36px; }
.mark.no { background: var(--fog); color: var(--dim); }
.mark.yes { background: linear-gradient(135deg, var(--a), var(--b)); color: #000; }

/* ── figure cards ── */
.figcard { margin: clamp(40px, 5vw, 64px) 0 0; background: #fff; border-radius: var(--r); padding: clamp(18px, 3.4vw, 40px); }
.figcard.flat { background: var(--fog); }
.figcard.flat img { mix-blend-mode: multiply; }
.figcard img { width: 100%; }

/* ── animated MAWAM architecture flow (Point 14) ── */
.arch-stage { position: relative; width: 100%; }
.arch-stage img { width: 100%; display: block; mix-blend-mode: multiply; }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.arch-svg .fl { fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 10 38; animation: archFlow 2.6s linear infinite; filter: url(#fglow); opacity: .88; }
.arch-svg .fl-a { stroke: #4f8a43; }
.arch-svg .fl-b { stroke: #7a5bb5; }
.arch-svg .fl-c { stroke: #c9772c; }
.arch-svg .fl-g { stroke: #2d5f8b; stroke-dasharray: 8 28; animation-duration: 2.2s; }
.arch-svg .fl-sync { stroke: #1d5bd6; stroke-width: 1.1; stroke-dasharray: 5 20; animation-duration: 1.9s; opacity: .65; }
.arch-svg .fl-loop { stroke: #0071e3; stroke-width: 1.45; stroke-dasharray: 12 42; animation-duration: 3.1s; }
.arch-svg .d1 { animation-delay: -.65s; }
.arch-svg .d2 { animation-delay: -1.3s; }
.arch-svg .d3 { animation-delay: -1.95s; }
@keyframes archFlow { from { stroke-dashoffset: 96; } to { stroke-dashoffset: 0; } }

/* ── dynamic co-evolution trace card in Harness (Point 18) ── */
.coev-card { margin-top: 24px; background: #fff; border-radius: var(--r); padding: clamp(22px, 3.4vw, 38px); }
.coev-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.coev-kicker { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); margin-bottom: 4px; }
.coev-title h3 { margin: 0; font-size: 24px; }
.coev-title h3 i { font-style: normal; font-weight: 500; font-size: 16px; color: var(--dim); margin-left: 8px; }
.coev-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--fog); padding: 4px; border-radius: 999px; }
.coev-tabs button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 15px; border: 0; border-radius: 999px;
  background: transparent; color: #6e6e73; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.coev-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.coev-prog { height: 3px; border-radius: 2px; background: rgba(0,0,0,.07); margin: 18px 0 24px; overflow: hidden; }
.coev-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a-ink), var(--b-ink)); }
.coev-prog i.run { width: 100%; transition: width 3.8s linear; }
.coev-body { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; align-items: stretch; }
.coev-stage { position: relative; border-radius: 20px; overflow: hidden; background: var(--fog); aspect-ratio: 16/11; }
.coev-stage img { width: 100%; height: 100%; object-fit: cover; animation: softIn .45s var(--ease); }
.coev-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.coev-chip { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #fff; backdrop-filter: blur(8px); }
.coev-flow { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.coev-step { border-radius: 18px; padding: 18px 20px; border: 1px solid rgba(0,0,0,.06); animation: softIn .45s var(--ease); }
.coev-step.audit { background: #fdf3f0; border-color: rgba(165,78,57,.18); }
.coev-step.audit.blue { background: #eef4fb; border-color: rgba(45,95,139,.18); }
.coev-step.repair { background: #eef4fb; border-color: rgba(45,95,139,.18); }
.coev-step.repair.terra { background: #fdf3f0; border-color: rgba(165,78,57,.18); }
.coev-step.conv { background: #eef6ec; border-color: rgba(79,138,67,.24); }
.coev-badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; padding: 3px 10px; border-radius: 999px; background: #fff; margin-bottom: 8px; }
.coev-step h4 { margin: 0 0 6px; font-size: 17px; font-weight: 650; text-transform: none; letter-spacing: -0.015em; color: var(--ink); }
.coev-step p { font-size: 14.5px; line-height: 1.45; color: #515154; }
.coev-arrow { text-align: center; font-size: 15px; font-weight: 700; color: var(--dim); line-height: 1; }
@keyframes softIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Shared 3D Imagination experiment (Point 15) ── */
.exp-tray { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); align-items: stretch; }
.tray-vid-card, .tray-chart-card { background: #161617; border-radius: var(--r); padding: 22px 24px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.tray-vid-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 600; color: #a1a1a6; margin-bottom: 14px; }
.tray-vid-head i { font-style: normal; color: #f5f5f7; }
.tray-leg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d2d2d7; }
.tray-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tray-leg .la { background: var(--a); } .tray-leg .lb-dot { background: var(--b); margin-left: 6px; }
.tray-vid-box { position: relative; border-radius: 18px; overflow: hidden; background: #111; }
.tray-vid-box video { width: 100%; aspect-ratio: 960/620; object-fit: cover; display: block; }
.tv-tag { position: absolute; left: 12px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  color: #f5f5f7; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); pointer-events: none; }
.tv-top { top: 12px; } .tv-bot { top: calc(50% + 8px); }
.tray-readout b { color: var(--a); font-weight: 700; }
.tray-svg-wrap { width: 100%; flex: 1; display: flex; align-items: center; }
.tray-svg-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.tray-cleg { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 12.5px; color: #a1a1a6; }
.tray-cleg span { display: inline-flex; align-items: center; gap: 7px; }
.tray-cleg i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.tray-cleg b { color: #f5f5f7; font-weight: 650; }

/* ── MA-Bench ── */
.bench { padding-top: clamp(88px, 12vw, 152px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 8vw, 100px); text-align: center; }
.stat b { display: block; font-size: clamp(64px, 10vw, 128px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 17px; color: var(--dim); max-width: 240px; margin-inline: auto; line-height: 1.3; }

.rail-wrap { margin-top: clamp(56px, 8vw, 100px); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(24px, calc((100vw - 1072px) / 2)); scroll-padding-inline: max(24px, calc((100vw - 1072px) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.task { flex: 0 0 min(560px, 82vw); scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: #161617; cursor: pointer; transition: transform .6s var(--ease); }
.task:hover { transform: scale(1.015); }
.task .stage { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.task .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 2.4s ease-out; }
.task .stage img.on { opacity: 1; transform: scale(1); }
.task .bars { position: absolute; left: 20px; right: 20px; top: 16px; display: flex; gap: 6px; }
.task .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(0,0,0,.18); overflow: hidden; }
.task .bars i::after { content: ""; display: block; height: 100%; width: 0; background: #1d1d1f; }
.task .bars i.done::after { width: 100%; }
.task.play .bars i.on::after { width: 100%; transition: width 1.8s linear; }
.task .body { padding: 26px 28px 30px; }
.task h3 { font-size: 28px; margin: 0 0 6px; }
.task .team { font-size: 15px; font-weight: 600; }
.task .team .ta { color: var(--a); } .task .team .tb { color: var(--b); }
.task .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; }
.task .tags span { font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: #2a2a2d; color: #d2d2d7; }
.task p { font-size: 15px; line-height: 1.45; color: #a1a1a6; }
.rail-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.rail-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #1d1d1f; color: #f5f5f7; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, opacity .2s; padding-bottom: 3px; }
.rail-nav button:hover { background: #2a2a2d; }
.rail-nav button:disabled { opacity: .3; cursor: default; }

.clip { position: relative; margin-top: 28px; border-radius: var(--r); overflow: hidden; background: #161617; }
.clip video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.clip-cap { position: absolute; left: 24px; bottom: 24px; max-width: min(460px, calc(100% - 48px)); padding: 20px 24px; border-radius: 20px; color: #f5f5f7;
  background: rgba(22,22,23,.66); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); }
.clip-cap h3 { font-size: 21px; margin-bottom: 6px; }
.clip-cap p { font-size: 15px; line-height: 1.4; color: #d2d2d7; }
.ca { color: var(--a); } .cb { color: var(--b); }
.metrics { margin-top: 20px; }
.axes h3, .metrics h3 { font-size: 22px; }
.metrics h3 i, .metrics h3 sub { font-weight: 500; color: var(--dim); }

/* ── tables ── */
.tablecard { background: var(--fog); border-radius: var(--r); padding: 10px 18px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 8px; text-align: center; border-bottom: 1px solid var(--hair); }
th { font-weight: 600; vertical-align: bottom; }
th small { display: block; font-weight: 400; color: var(--dim); font-size: 11px; margin-top: 2px; }
td:first-child, th:first-child, td.l, th.l { text-align: left; }
td.grp { color: var(--dim); }
td.na { color: #c7c7cc; }
tr:last-child td { border-bottom: 0; }
tr.ours td { font-weight: 650; }
tr.ours td.l, tr.ours td:first-child { color: var(--b-ink); }

/* ── cite ── */
#cite h2 { margin-bottom: 44px; }
.bib { position: relative; background: #161617; border-radius: var(--r); }
.bib pre { margin: 0; padding: 30px; overflow-x: auto; font: 13px/1.7 "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d2d2d7; }
.bib button { position: absolute; top: 16px; right: 16px; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 0; background: #2a2a2d; color: #f5f5f7; cursor: pointer; transition: background .2s; }
.bib button:hover { background: #3a3a3d; }

footer { padding: 28px 0 40px; border-top: 1px solid #1d1d1f; font-size: 12px; color: #6e6e73; text-align: center; }

/* ── responsive ── */
@media (max-width: 900px) {
  .bento.three, .coev-body, .exp-tray { grid-template-columns: 1fr; }
  .bento.four { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: 44px; }
  .mark { margin-bottom: 24px; }
  .clip-cap { position: static; max-width: none; border-radius: 0; background: none; backdrop-filter: none; }
  .au-br { display: none; }
  .navlogos img { height: 21px; }
  .navlogos img.logo-wide { height: 18px; }
}
@media (max-width: 680px) {
  .navlogos { display: none; }
}
@media (max-width: 560px) {
  .bento.four { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  :root { --r: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .glow, .arch-svg .fl { animation: none; }
}

/* ── film → wall (Point 10: smooth full-frame outer-perimeter fade-out, NO ugly center square shrink!) ── */
.stagebox { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; }
.stagebox .film { position: absolute; inset: 0; height: 100%; z-index: 3; transform-origin: 50% 50%; cursor: pointer;
  transition: opacity .85s var(--ease), transform 1.05s var(--ease); }
.stagebox.started .film { cursor: default; }
.stagebox.walled .film { opacity: 0; transform: scale(1.035); pointer-events: none; }
.film-play { position: absolute; left: 18px; bottom: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 inherit; font-family: inherit; color: #fff; background: rgba(20,20,22,.82);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 18px 9px 11px; cursor: pointer;
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .25s var(--ease), background .2s, opacity .35s; }
.film-play:hover { background: #0071e3; border-color: rgba(255,255,255,.3); transform: scale(1.03); }
.film-play .fp-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #0071e3; color: #fff; transition: background .2s, color .2s; }
.film-play:hover .fp-ic { background: #fff; color: #0071e3; }
.film-play svg { width: 14px; height: 14px; margin-left: 1px; }
.stagebox.started .film-play, .stagebox.walled .film-play { opacity: 0; pointer-events: none; }
.wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr);
  gap: 6px; z-index: 2; pointer-events: none; }
.stagebox.walled .wall { pointer-events: auto; }
.tile-w { position: relative; grid-column: span 2; border-radius: 10px; overflow: hidden; background: #111; cursor: zoom-in;
  border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; appearance: none;
  opacity: 0; transform: scale(.92); transition: opacity .75s var(--ease), transform .85s var(--ease), box-shadow .3s; }
.stagebox.walled .tile-w { opacity: 1; transform: none; transition-delay: var(--dl, 0s); }
.tile-w video, .tile-w img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-w .tl { position: absolute; left: 8px; bottom: 7px; right: 8px; font-size: 11px; font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em;
  text-shadow: 0 0 6px rgba(255,255,255,.95), 0 0 2px #fff; opacity: 0; transform: translateY(4px); transition: .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-w.real .tl { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tile-w:hover { box-shadow: 0 0 0 2px #f5f5f7; z-index: 4; }
.tile-w:hover .tl { opacity: 1; transform: none; }
.tile-w.centre { grid-column: 5 / span 4; grid-row: 2 / span 4; background: #f5f5f7; cursor: default; }
.tile-w.centre .tl { opacity: 1; transform: none; text-align: center; font-size: 13px; bottom: 10px; }
.filmbar { position: absolute; right: 18px; bottom: 16px; z-index: 5; display: flex; gap: 8px; transition: opacity .35s, top .35s, bottom .35s; }
.stagebox.started .filmbar { bottom: auto; top: 16px; }
.stagebox.walled .filmbar { opacity: 0; pointer-events: none; }
.filmbar button, .wallbar button { font: 600 13.5px/1 inherit; font-family: inherit; color: #1d1d1f; background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 10px 16px; cursor: pointer; backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12); transition: transform .2s var(--ease), background .2s; }
.filmbar button:hover, .wallbar button:hover { background: #fff; transform: scale(1.03); }
.wallbar { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--dim); font-size: 14px;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.film-wrap.walled .wallbar { opacity: 1; transition: opacity .6s .45s; pointer-events: auto; }
.wallbar button { background: #f5f5f7; }

/* ── lightbox (clean: no cluttered small notes) ── */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.88); backdrop-filter: blur(14px); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb-in { width: min(1280px, 92vw); }
.lb-in video { width: 100%; aspect-ratio: 16/9; border-radius: 16px; background: #000; object-fit: contain; }
.lb-cap { color: #f5f5f7; margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.lb-cap h3 { font-size: 26px; margin: 0; }
.lb-cap p { color: #a1a1a6; font-size: 15px; }
.lb-x, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 44px; height: 44px;
  font-size: 22px; cursor: pointer; }
.lb-x { top: 22px; right: 22px; font-size: 16px; }
.lb-nav { top: 50%; margin-top: -22px; } .lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }

@media (max-width: 760px) {
  .stagebox.walled { aspect-ratio: auto; }
  .stagebox.walled .wall { position: relative; inset: auto; }
  .wall { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: 5px; }
  .tile-w { grid-row: auto !important; grid-column: span 1 !important; aspect-ratio: 16 / 9; }
  .tile-w.centre { grid-column: 1 / -1 !important; aspect-ratio: 960 / 1080; order: -1; }
  .tile-w .tl { opacity: 1; transform: none; font-size: 10px; }
  .wallbar { flex-direction: column; gap: 10px; align-items: flex-start; }
}
