@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* metric-matched fallbacks keep layout still while the fonts load */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"); size-adjust: 96%; ascent-override: 96%; descent-override: 26%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"), local("Liberation Sans"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }

:root {
  --signal: #1f2bd1; --signal-2: #1824b4; --lime: #d7ff3c; --on-signal: #ffffff; --on-signal-2: #dfe3ff;
  --paper: #edf0f3; --white: #ffffff; --ink: #0e1116; --ink2: #3d4651; --line: #c9d0d8;
  /* gate hues: bright on the blue stage, deep on paper */
  --id-b: #d7ff3c; --auth-b: #5cf2c0; --pay-b: #ffc23d; --ver-b: #ff9cc0;
  --id: #4b6400; --auth: #00735a; --pay: #8a5700; --ver: #b0245e; --std: #4d5966; --deal: #0e1116; --prod: #1f2bd1;
  --display: "Bricolage", "Bricolage Fallback", "Arial Narrow", sans-serif;
  --text: "Atkinson", "Atkinson Fallback", Arial, sans-serif;
}
.c-id { --c: var(--id); --cb: var(--id-b); } .c-auth { --c: var(--auth); --cb: var(--auth-b); } .c-pay { --c: var(--pay); --cb: var(--pay-b); }
.c-ver { --c: var(--ver); --cb: var(--ver-b); } .c-std { --c: var(--std); --cb: #c3cad6; } .c-deal { --c: var(--deal); --cb: #ffffff; } .c-prod { --c: var(--prod); --cb: var(--lime); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
main a, .foot a { padding: 4px 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.hero :focus-visible { outline-color: var(--lime); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p, li, dd { text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.linkbtn { font: inherit; color: var(--signal); background: none; border: 0; padding: 12px 2px; min-height: 48px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ================= hero ================= */
.hero { background: var(--signal); color: var(--on-signal); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { font: 700 18px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; padding: 8px 0; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; }
.brand::before { content: ""; width: 22px; height: 11px; border-radius: 6px; background: var(--lime); }
.navlinks { display: flex; }
.navlinks a { font-size: 16px; text-decoration: none; padding: 8px 9px; min-height: 48px; display: inline-flex; align-items: center; color: var(--on-signal-2); }
.navlinks a:hover { color: #fff; text-decoration: underline; }
.intro { padding-top: 14px; padding-bottom: 14px; }
.intro h1 { font-size: clamp(40px, 10.4vw, 128px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.93; max-width: 11ch; }
.dek { margin: 12px 0 0; font-size: 18px; line-height: 1.4; color: var(--on-signal-2); max-width: 38ch; }

.request { position: relative; }
.stage { position: relative; }
.stage-in { display: grid; gap: 12px; padding-top: 10px; padding-bottom: 28px; }

/* ticket: the request */
.ticket { background: #eadfc4 url(img/ticket-strip.webp) top center / 100% 100% no-repeat; aspect-ratio: 780 / 399; color: var(--ink); border-radius: 8px; padding: 30px 22px 12px 24px; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.t-h { margin: 0 0 8px 34px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.t-chip { font: 700 13px var(--display); background: var(--ink); color: var(--lime); padding: 2px 8px; border-radius: 4px; }
.t-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stamps li { font-size: 13px; line-height: 1.3; color: #2c343e; display: grid; justify-items: center; text-align: center; gap: 1px; }
.s-seal { width: 56px; height: 56px; display: block; opacity: .38; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.stamps li.on .s-seal, .stage[data-step="all"] .stamps li .s-seal { opacity: 1; filter: none; }
.stamps .s-v { display: none; }
.stamps li.on { color: var(--ink); }
.stamps li.on .s-k { font-weight: 700; }
.t-note { display: none; }

/* track: the gates */
.track { list-style: none; margin: 0; padding: 0; position: relative; }
.g { border-top: 1px solid rgba(255,255,255,.28); padding: 9px 0 9px; position: relative; }
.g::before { content: ""; position: absolute; left: -20px; top: -1px; bottom: 0; width: 5px; background: transparent; transition: background-color .4s; }
.g.is-passed::before { background: var(--cb); opacity: .45; }
.g.is-active::before { background: var(--cb); opacity: 1; }
.g-head { display: grid; grid-template-columns: 26px 1fr auto; align-items: baseline; gap: 8px; }
.g-n { font: 800 22px/1 var(--display); color: var(--cb, #fff); }
.g-deal { --cb: var(--lime); }
.g-q { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.g-count { font-size: 14px; color: var(--on-signal-2); white-space: nowrap; }
.g-count b { font: 800 18px var(--display); color: #fff; }
.g-dots { list-style: none; margin: 6px 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.g-dots li { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--cb, #fff); transition: background-color .35s, transform .35s; }
.g.is-passed .g-dots li, .g.is-active .g-dots li { background: var(--cb, #fff); }
.g-more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s cubic-bezier(.3,.7,.2,1), visibility 0s .55s; }
.g.is-active .g-more { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s cubic-bezier(.3,.7,.2,1), visibility 0s 0s; }
.g-inner { min-height: 0; overflow: hidden; padding-left: 34px; }
.g-carry { margin: 8px 0 8px; font-size: 15px; line-height: 1.4; color: var(--on-signal-2); max-width: 46ch; }
.g-carry a { color: #fff; padding: 3px 0; }
.g-names { list-style: none; margin: 0; padding: 0 0 2px; display: flex; flex-wrap: wrap; gap: 5px; }
.g-names a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 5px 10px 5px 8px; font-size: 14px; line-height: 1.3; text-decoration: none; color: #fff; background: rgba(8,12,90,.55); border-radius: 999px; }
.g-names a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cb); flex: none; }
.g-names a:hover { background: rgba(8,12,90,.85); text-decoration: underline; }
.g-names li { transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; transition-delay: calc(var(--i) * 28ms + .15s); }

.merges { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.merges li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.m-pair { display: inline-flex; align-items: center; }
.m-from, .m-to { font: 700 16px/1 var(--display); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.m-from { border: 2px solid #fff; color: #fff; margin-right: 10px; transition: margin .7s cubic-bezier(.6,0,.2,1), background-color .4s .5s, color .4s .5s, border-color .4s .5s, border-radius .4s .5s; transition-delay: calc(var(--i) * .25s + .2s); }
.m-to { background: var(--lime); color: var(--ink); border: 2px solid var(--lime); }
.merges li:not(.pending) .m-from { }
.g-deal.is-active .merges li:not(.pending) .m-from, .stage[data-step="all"] .merges li:not(.pending) .m-from { margin-right: 0; background: var(--lime); color: var(--ink); border-color: var(--lime); border-radius: 999px 0 0 999px; padding-right: 6px; }
.g-deal.is-active .merges li:not(.pending) .m-to, .stage[data-step="all"] .merges li:not(.pending) .m-to { border-radius: 0 999px 999px 0; padding-left: 6px; border-left-color: var(--ink); }
.merges .pending .m-from, .merges .pending .m-to { background: transparent; color: #fff; border: 2px dashed #fff; }
.m-src { font-size: 14px; color: var(--on-signal-2); padding: 3px 0; }


/* static mode (no JS, reduced motion): everything open */
.stage[data-step="all"] .g-more { grid-template-rows: 1fr; visibility: visible; }
.stage[data-step="all"] .g-dots li { background: var(--cb, #fff); }
.stage[data-step="all"] .stamps li { color: var(--ink); }

/* ================= paper sections ================= */
.week { padding-top: 48px; }
.week-grid { display: grid; gap: 28px; }
.week h2, .full-h h2, .block > h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.lede { max-width: 36em; color: var(--ink2); margin: 8px 0 20px; }
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.week-list li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.week-list li::before { display: none; }
.wd { font: 700 16px var(--display); color: var(--c); }
.c-std .wd { color: var(--std); }
.pace { margin: 14px 0 0; max-width: 760px; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(6px, 1fr)); gap: 3px; align-items: end; height: 84px; border-bottom: 2px solid var(--ink); }
.weeks li { display: flex; flex-direction: column-reverse; gap: 3px; min-width: 0; }
.sq { display: inline-block; width: 100%; aspect-ratio: 1; max-width: 18px; border-radius: 2px; background: var(--c); }
.pace figcaption { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.pace figcaption b { color: var(--ink); }
.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-left: 4px; }
.legend .sq { width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }

.full-h { padding-top: 64px; }
.tools { padding-top: 6px; padding-bottom: 8px; display: grid; gap: 14px; }
.search label { display: block; font-weight: 700; margin-bottom: 6px; }
.search input { width: 100%; max-width: 560px; font: 17px var(--text); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); }
.search input::placeholder { color: #59626e; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: 15px; cursor: pointer; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.chip.on .n { color: #d5dae0; }
.chip.on::before { background: var(--cb, #fff); }
.chip:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.chip .n { font-size: 13px; color: var(--ink2); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tog { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 16px; cursor: pointer; }
.tog input { width: 24px; height: 24px; margin: 0; accent-color: var(--signal); }
.status { margin: 0; font-size: 15px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.none-all { margin: 0; padding: 14px 16px; background: var(--white); border: 1.5px dashed var(--ink2); border-radius: 8px; display: flex; gap: 16px; align-items: center; }
.none-all[hidden] { display: none; }
.none-all .empty-chart { width: 120px; height: 120px; flex: 0 0 120px; object-fit: contain; }
.none-all p { margin: 0; }

.gate { padding: 44px 0 8px; }
.gate-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.gate-num { margin: 0; font: 800 60px/.82 var(--display); color: var(--c); letter-spacing: -0.04em; }
.gate h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.gate-sub { margin: 6px 0 4px; color: var(--ink2); max-width: 36em; }
.count { margin: 0; font-size: 14px; color: var(--ink2); }
.gate.dim .gate-head { opacity: .6; }
.empty { color: var(--ink2); margin: 0 0 20px; display: flex; gap: 10px; align-items: center; }
.empty[hidden] { display: none; }
.empty-mini { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }

.entries { list-style: none; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.entry { border-bottom: 1px solid var(--line); padding: 4px 0 4px 18px; position: relative; transition: background .4s; }
.entry::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.entry.target { background: #dfe4ff; }
.entry details > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: 40px; padding: 7px 64px 5px 0; box-sizing: border-box; position: relative; }
.entry details > summary::-webkit-details-marker { display: none; }
.e-name { font: 700 17px/1.3 var(--display); letter-spacing: -0.01em; }
.entry summary::after { content: "+"; font: 700 20px/1 var(--display); color: var(--ink2); position: absolute; right: 50px; top: 50%; margin-top: -10px; }
.e-ico { position: absolute; right: 0; top: 0; width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--signal); text-decoration: none; font: 700 19px/1 var(--display); }
.e-ico:hover { background: #dfe4ff; }
.js [data-cap]:not(.open) .over { display: none; }
.more-wrap { margin: -12px 0 24px; }
.more-wrap[hidden] { display: none; }
.more-wrap:has(+ .tape) { margin: 0 0 14px; }
.more { font: 700 16px/1.2 var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 10px 18px; min-height: 48px; cursor: pointer; }
.more:hover { background: #dfe4ff; }
html:not(.js) .more-wrap { display: none; }
.entry details[open] summary::after { content: "−"; }
.e-kind { font-size: 14px; color: var(--c); }
.e-body { padding: 2px 0 8px; max-width: 38em; }
.e-body p { margin: 0 0 8px; }
.e-note { font-size: 15px; color: var(--ink2); }
.e-links { font-size: 15px; }
.sep { color: var(--ink2); margin: 0 4px; }
.e-meta { margin: 4px 0 0; font-size: 14px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 0 14px; line-height: 1.6; }
.e-meta .nodate { font-style: italic; }
.e-meta .src { color: var(--ink); padding: 3px 0; }
.e-meta .src::after { content: " ↗"; }
.tag { font-size: 14px; }
.tag-os { font-weight: 700; color: var(--auth); }
.permalink { color: var(--signal); }

.block { padding-top: 40px; padding-bottom: 16px; }
.ribbon-wrap { overflow-x: auto; background: var(--white); border-radius: 10px; margin-bottom: 14px; padding: 6px 14px; }
.ribbon { border-collapse: collapse; width: 100%; font-size: 15px; }
.ribbon th, .ribbon td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ribbon thead th { font: 700 14px var(--display); color: var(--ink2); white-space: nowrap; }
.ribbon thead th[class] { color: var(--c); text-align: center; }
.ribbon tbody th { font-weight: 400; min-width: 210px; }
.ribbon tbody th a { text-decoration: none; }
.ribbon tbody th a:hover { text-decoration: underline; }
.ribbon td { text-align: center; width: 13%; position: relative; }
.ribbon td:nth-child(2) { --g: var(--id); } .ribbon td:nth-child(3) { --g: var(--auth); } .ribbon td:nth-child(4) { --g: var(--pay); } .ribbon td:nth-child(5) { --g: var(--ver); }
.ribbon td.join::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: color-mix(in srgb, var(--g) 25%, transparent); }
.ribbon .dot { position: relative; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--g); background: var(--white); vertical-align: middle; }
.ribbon td.home .dot { background: var(--g); }
.std-list h3 { font-size: 22px; margin: 0 0 6px; }

.tape { list-style: none; margin: 0 0 36px; padding: 0; border-top: 2px solid var(--ink); }
.month { padding: 8px 0 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.month .mo { margin: 0; font: 700 16px var(--display); }
.month.quiet .mo, .month .none { color: #59626e; }
.month .none { margin: 0; font-size: 15px; font-style: italic; }
.month ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ev { background: var(--white); border-radius: 8px; padding: 7px 12px 8px; }
.ev p { margin: 0; }
.ev-d { font-size: 14px; color: var(--ink2); }
.ev-type { font-weight: 700; color: var(--c); margin-right: 6px; }
.ev-t { font-size: 16px; line-height: 1.4; margin-top: 2px !important; }
.merge-static { margin: 6px 0 4px !important; font-size: 15px; }
.merge-static .from, .merge-static .to { font: 700 15px var(--display); padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--ink); }
.merge-static .to { background: var(--ink); color: #fff; }

.about .cols { display: grid; gap: 28px; }
.about h3 { font-size: 22px; margin: 22px 0 6px; }
.about p { margin: 0 0 10px; max-width: 36em; }
.labels dt { font-weight: 700; margin-top: 10px; }
.labels dd { margin: 2px 0 0; color: var(--ink2); max-width: 36em; }
.foot { margin-top: 24px; background: var(--ink); color: #d5dae0; padding: 28px 0 36px; font-size: 15px; }
.foot p { margin: 0 0 10px; max-width: 38em; }
.foot .sale a { color: #fff; }

/* ================= wide screens ================= */
@media (min-width: 960px) {
  .intro { padding-top: 34px; padding-bottom: 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .intro h1 { max-width: 12ch; }
  .dek { font-size: 21px; max-width: 26ch; margin-bottom: 8px; }
  .stage-in { grid-template-columns: 290px minmax(0, 1fr); column-gap: 40px; padding-top: 24px; }
  .ticket { align-self: start; aspect-ratio: 627 / 931; background-image: url(img/ticket.webp); padding: 56px 26px 36px 34px; border-radius: 10px; grid-row: 1; }
  .t-h { font-size: 13px; gap: 6px; margin: 0 0 14px 22px; }
  .stamps { grid-template-columns: 1fr; gap: 8px; }
  .stamps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 10px; align-items: center; justify-items: start; text-align: left; padding: 2px 0; font-size: 15px; }
  .s-seal { grid-row: span 2; width: 56px; height: 56px; }
  .stamps .s-v { display: block; color: var(--ink2); font-size: 14px; }
  .stamps li:not(.on) .s-v { color: #555c66; }
  .stage[data-step="all"] .stamps li .s-v { color: var(--ink2); }
  .t-note { display: block; margin: 12px 0 0; font-size: 13px; color: var(--ink2); }
  .track { display: flex; gap: 0; align-items: stretch; grid-column: 2; grid-row: 1; min-height: 0; }
  .g { flex: 1 1 0; min-width: 0; border-top: 0; border-left: 1px solid rgba(255,255,255,.28); padding: 4px 16px 0; transition: flex-grow .6s cubic-bezier(.3,.7,.2,1); overflow: hidden; }
  .g::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 6px; }
  .g { padding-top: 18px; }
  .g.is-active { flex-grow: 3.4; }
  .g-head { grid-template-columns: 1fr; gap: 4px; }
  .g-n { font-size: 56px; letter-spacing: -0.04em; }
  .g-q { font-size: 24px; min-height: 2.1em; }
  .g-dots { margin: 12px 0 0; }
  .g-inner { padding-left: 0; }
  .g-names a { font-size: 15px; }
  .stage[data-step="all"] .track { flex-wrap: wrap; row-gap: 28px; }
  .stage[data-step="all"] .g { flex-basis: 30%; }
  .week-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
  .about .cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .month { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .month ol { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* === generated art === */
.intro { position: relative; overflow: hidden; min-height: 260px; color: var(--ink); background: #f3ead8; padding: 0; }
.intro-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }
.intro-copy { position: relative; z-index: 1; padding: 28px 20px 36px; max-width: 1240px; margin: 0 auto; }
.intro h1 { color: var(--ink); max-width: 10ch; }
.intro .dek { color: #3d3328; }
.intro :focus-visible { outline-color: var(--signal); }
.g-head { grid-template-columns: 26px 40px 1fr auto; align-items: center; }
.g-emblem { width: 40px; height: 41px; display: block; object-fit: contain; }
.gate-head { grid-template-columns: auto 72px 1fr; align-items: center; }
.gate-emblem { width: 72px; height: 74px; display: block; object-fit: contain; }
.sec-emblem { width: 44px; height: 45px; vertical-align: middle; margin-right: 8px; object-fit: contain; }
.map-banner-wrap { background: #f3ead8; line-height: 0; }
.map-banner { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; object-position: center; }
@media (min-width: 960px) {
  .intro { display: block; min-height: 440px; padding: 0; }
  .intro-copy { padding: 48px 20px 64px; }
  .map-banner { max-height: 220px; }
  .g-head { grid-template-columns: 1fr; }
  .g-emblem { width: 48px; height: 50px; margin: 4px 0; }
}
@media (max-width: 959px) {
  .g-head { grid-template-columns: 26px 40px 1fr auto; }
  .g-n { font-size: 22px; }
}


/* === share card buttons (wow pass) === */
.hero-cta { margin: 18px 0 0; }
.cardbtn { font: 700 16px/1.2 var(--text); color: #fff; background: var(--signal); border: 0; border-radius: 8px; padding: 12px 18px; min-height: 48px; cursor: pointer; }
.cardbtn:hover { background: var(--signal-2); }
.cardbtn:disabled { cursor: progress; }
html:not(.js) .js-card { display: none; }
@media (min-width: 960px) { .intro .dek { max-width: 34ch; } }

/* Quiet zone for the hero type: the chart fades into the cream paper under the
   words, so contour lines recede instead of sitting in the letters. The dek
   stays in that column, leaving the compass its own corner. No extra image
   and no layout shift (the art is already position:absolute). */
.intro-art {
  -webkit-mask-image: linear-gradient(102deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.16) 42%,
    rgba(0,0,0,.34) 58%,
    rgba(0,0,0,.82) 74%,
    #000 90%);
  mask-image: linear-gradient(102deg,
    rgba(0,0,0,.10) 0%,
    rgba(0,0,0,.16) 42%,
    rgba(0,0,0,.34) 58%,
    rgba(0,0,0,.82) 74%,
    #000 90%);
}
.intro .dek { max-width: min(34ch, calc(100% - 6.25rem)); }
@media (min-width: 960px) {
  .intro-art {
    -webkit-mask-image: linear-gradient(90deg,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.46) 24%,
      rgba(0,0,0,.84) 44%,
      #000 58%);
    mask-image: linear-gradient(90deg,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.46) 24%,
      rgba(0,0,0,.84) 44%,
      #000 58%);
  }
  .intro .dek { max-width: 34ch; }
}

/* phone: tighter section spacing */
@media (max-width: 959px) {
  .gate { padding-top: 28px; }
  .block { padding-top: 24px; }
  .week { padding-top: 32px; }
  .gate-sub { display: none; }
}

/* ---------- x402 definition and per-gate answer pages ---------- */
.def { grid-column: 1 / -1; margin: 0 0 14px; max-width: 40em; padding: 12px 14px; background: var(--white); border-left: 4px solid var(--cb); }
.def b { font-family: var(--display); }
.pagelink { margin: 2px 0 0; font-size: 15px; }
.catp { padding-top: 28px; padding-bottom: 8px; max-width: 860px; }
.catp-head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.catp h1 { font-size: clamp(28px, 6vw, 46px); font-weight: 800; }
.catp-a { font-size: 19px; max-width: 36em; margin: 0 0 22px; }
.catp-a a { font-weight: 700; }
.catp-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--ink); }
.catp-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.catp-list li a { font-weight: 700; padding: 6px 0; }
.catp-list .m { font-size: 15px; color: var(--ink2); }
.catp-go { margin: 0 0 8px; }
.catp-go a { display: inline-block; text-decoration: none; padding: 14px 18px; }
@media (min-width: 700px) { .catp-list li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 24px; } .catp-list .m { text-align: right; } }

/* Phone compaction (11/27): the gate story keeps its question, count and sentence; the full names live in the map below. */
.brand img { display: block; height: 26px; width: auto; }
@media (min-width: 700px) { .brand img { height: 32px; } }
.brand::before { content: none; }
.g-names { display: none; }
.merges li:nth-child(n+4):not(.pending) { display: none; }
.g-jump { margin: 8px 0 4px; font-size: 15px; }
.g-jump a { color: #fff; display: inline-block; padding: 12px 0; min-height: 48px; }
.about-d > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.about-d > summary::-webkit-details-marker { display: none; }
.about-d > summary h2 { margin: 0; }
.about-d > summary::after { content: "+"; font: 700 28px/1 var(--display); margin-left: auto; padding: 0 6px; }
.about-d[open] > summary::after { content: "\2212"; }
@media (min-width: 960px) {
  .g-names { display: flex; }
  .merges li:nth-child(n+4):not(.pending) { display: flex; }
  .g-jump { display: none; }
  .about-d > summary { cursor: default; pointer-events: none; }
  .about-d > summary::after { content: none; }
}
