/* GitHub Signals public site: "Swiss signal" style, Swiss red palette (operator pick, Nov 29, 2026; was Night orange).
   Source of truth: docs/public-site-swiss.md. Colours are tokens so a
   palette swap is a :root edit (the canvas reads them at runtime too). */

:root {
  /* Swiss red */
  --paper: #F4F2EE;
  --ink: #0D0D0D;
  --sig: #E3201B;
  --ink-rgb: 13, 13, 13;
  --paper-rgb: 244, 242, 238;
  --sig-rgb: 227, 32, 27;
  --on-sig: #FFFFFF;
  --sig-text: var(--sig);
  /* derived, as the approved prototype's palette script does */
  --paper2: rgba(var(--ink-rgb), .05);
  --ink2: rgba(var(--ink-rgb), .68);
  --ink3: rgba(var(--ink-rgb), .45);
  --rule: rgba(var(--ink-rgb), .16);
  --rule2: rgba(var(--ink-rgb), .06);

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: 16px; --gap: 12px; --cols: 4; --tgap: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gut: 32px; --gap: 24px; --cols: 12; --tgap: 4px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
html.lock, html.lock body { overflow: hidden; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px;
  line-height: 1.45; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  font-variation-settings: "wdth" 100; min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--sig); color: var(--on-sig); }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only, .discover-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--sig); color: var(--on-sig);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px;
}
.skip-link:focus { top: 8px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.wrap { padding: 0 var(--gut); position: relative; z-index: 1; }
.g { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); }
.sq { width: 10px; height: 10px; background: var(--sig); display: inline-block; flex: none; }

/* visible column guides */
.guides {
  position: fixed; inset: 0; padding: 0 var(--gut); display: grid;
  grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gap); pointer-events: none; z-index: 0;
}
.guides i { border-left: 1px solid var(--rule2); border-right: 1px solid var(--rule2); }
.guides i:nth-child(n+5) { display: none; }
@media (min-width: 760px) { .guides i:nth-child(n+5) { display: block; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top-row { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: none; gap: 22px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--sig-text); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sig); }
.k, .menu-btn {
  border: 1px solid var(--ink); padding: 5px 9px; background: none; cursor: pointer; line-height: 1.2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.k:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.nav-tools { display: flex; gap: 6px; }
.menu {
  border-top: 1px solid var(--rule); padding: 8px var(--gut) 18px; display: none;
}
.top.open .menu { display: block; }
.menu a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 8px; border-bottom: 1px solid var(--rule);
  font-weight: 800; font-size: 30px; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 96;
}
.menu a[aria-current] { color: var(--sig-text); }
.menu a .mono { color: var(--ink3); font-weight: 400; letter-spacing: .06em; }
@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .menu-btn, .top.open .menu { display: none; }
}

/* header search panel (pages without their own search box) */
.hsearch { border-top: 1px solid var(--rule); padding: 14px var(--gut) 18px; max-height: calc(100vh - 48px); overflow-y: auto; }
@media (min-width: 760px) { .hsearch .search { max-width: 760px; } }

/* ---------- search box (shared) ---------- */
.search { position: relative; }
.search label.lab, .search .lab {
  display: flex; justify-content: space-between; gap: 12px; color: var(--ink2); margin-bottom: 8px;
}
.search .lab .eng { display: none; color: var(--ink3); }
@media (min-width: 760px) { .search .lab .eng { display: inline; } }
.qrow { display: flex; align-items: stretch; border: 2px solid var(--ink); background: var(--paper); position: relative; }
.qrow:focus-within { box-shadow: 4px 4px 0 var(--sig); }
.qrow .pr { font-family: var(--mono); font-size: 18px; padding: 0 0 0 14px; display: flex; align-items: center; color: var(--sig-text); font-weight: 500; }
.qrow input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 20px;
  font-weight: 500; letter-spacing: -.01em; padding: 14px 10px; color: var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.qrow input::-webkit-search-cancel-button { display: none; }
.qrow input::placeholder { color: var(--ink3); font-weight: 400; }
.qrow .x { border: 0; background: none; padding: 0 10px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink2); }
.qrow .go {
  border: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; padding: 0 16px; cursor: pointer;
}
.qrow .go:hover { background: var(--sig); color: var(--on-sig); }
.qrow.sm input { font-size: 18px; padding: 11px 8px; }
.qrow.sm .pr { font-size: 16px; padding-left: 12px; }
@media (min-width: 760px) {
  .qrow.lg input { font-size: 26px; padding: 18px 12px; }
  .qrow.lg .pr { font-size: 22px; padding-left: 18px; }
  .qrow .go { padding: 0 22px; }
}
.pbar { height: 2px; position: relative; overflow: hidden; margin-top: -2px; }
.pbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sig); transition: width .2s; }
.pbar.busy i { width: 30% !important; animation: busy 1s linear infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.status { margin-top: 10px; color: var(--ink2); min-height: 16px; line-height: 1.6; }
.status b { color: var(--ink); font-weight: 500; }
.status .dot { width: 7px; height: 7px; background: var(--ink3); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.status.on .dot { background: var(--sig); }
.status .cbtn { font: inherit; border: 1px solid currentColor; background: none; color: inherit; padding: 2px 8px; cursor: pointer; margin-left: 4px; text-transform: inherit; letter-spacing: inherit; }
.status .cbtn.on { background: var(--sig); color: var(--on-sig); border-color: var(--sig); }
.hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hints button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; border: 1px solid var(--rule);
  background: transparent; padding: 6px 9px; cursor: pointer; color: var(--ink);
}
.hints button:nth-child(n+4) { display: none; }
@media (min-width: 760px) { .hints button:nth-child(n+4) { display: inline-block; } }
.hints button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.search.has .hints { display: none; }

.results { margin-top: 18px; border-top: 2px solid var(--ink); }
.results:empty { display: none; }
.res { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); animation: rin .35s var(--ease) both; }
@keyframes rin { from { opacity: 0; transform: translateY(8px); } }
.res-main { grid-column: 1 / -1; display: block; }
.res-name { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; word-break: break-word; }
.res-own { color: var(--ink3); margin-left: 8px; font-size: 10px; }
.res p { color: var(--ink2); font-size: 14.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; color: var(--ink3); }
.res-meta a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.res-meta a:hover { color: var(--sig-text); border-color: var(--sig); }
.res-meta .rel { width: 44px; height: 3px; background: var(--rule); position: relative; }
.res-meta .rel i { position: absolute; inset: 0 auto 0 0; background: var(--sig); }
.res-main:hover .res-name { color: var(--sig-text); }
.more, .morebtn {
  margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: none; border: 1px solid var(--ink); padding: 9px 12px; cursor: pointer;
}
.more:hover, .morebtn:hover { background: var(--ink); color: var(--paper); }

/* ---------- section heads ---------- */
.sec { padding-top: 64px; }
.sh { align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 22px; }
.sh .no { grid-column: 1 / 2; align-self: start; padding-top: 10px; }
.sh h1, .sh h2 {
  grid-column: 1 / -1; font-weight: 800; font-size: 19vw; line-height: .82; letter-spacing: -.055em;
  margin-top: 6px; font-variation-settings: "wdth" 96; overflow-wrap: anywhere;
}
.sh .note { grid-column: 1 / -1; color: var(--ink2); margin-top: 12px; }
.sh .note a { border-bottom: 1px solid var(--ink); color: var(--ink); }
.sh .note a:hover { color: var(--sig-text); border-color: var(--sig); }
@media (min-width: 760px) {
  .sec { padding-top: 120px; }
  .sh h1, .sh h2 { grid-column: 2 / 10; font-size: min(11.5vw, 176px); margin: 0; }
  .sh .note { grid-column: 10 / 13; text-align: right; margin: 0 0 8px; }
}
/* smaller section heads for inner pages */
.sh.sm h1, .sh.sm h2 { font-size: 15vw; }
@media (min-width: 760px) { .sh.sm h1, .sh.sm h2 { font-size: min(8vw, 120px); } }

/* mini head: mono label row with a heavy rule */
.mh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding: 0 0 7px; margin: 22px 0 0; }
.mh b { font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mh span, .mh a { color: var(--ink3); }
.mh a:hover { color: var(--sig-text); }

/* ---------- buttons, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase;
  font-weight: 500; border: 2px solid var(--ink); text-align: center; line-height: 1.2; background: none; cursor: pointer;
}
.btn.pri { background: var(--ink); color: var(--paper); }
.btn.pri:hover { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.btn:not(.pri):hover { background: var(--ink); color: var(--paper); }
.btn[aria-pressed="true"] { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--rule);
  padding: 5px 8px; line-height: 1.2; color: var(--ink2);
}
a.tag { color: var(--ink); border-color: var(--ink); }
a.tag:hover { background: var(--ink); color: var(--paper); }
.ulink { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.ulink:hover { color: var(--sig-text); border-color: var(--sig); }

/* ---------- media frames ---------- */
.media { position: relative; background: var(--paper2); overflow: hidden; aspect-ratio: 16 / 10; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.media.poster img { object-position: center 30%; }
.type {
  background: var(--ink); color: var(--paper); container-type: inline-size; display: flex; align-items: flex-end; padding: 8%;
}
.type span { font-weight: 800; letter-spacing: -.05em; line-height: .86; font-size: min(36cqw, calc(150cqw / var(--n, 8))); font-variation-settings: "wdth" 90; overflow-wrap: anywhere; }
.type .sq { position: absolute; top: 8%; right: 8%; width: 9%; height: auto; aspect-ratio: 1; }
.corner { position: absolute; width: 5px; height: 5px; background: var(--sig); z-index: 2; }
.corner.a { left: 6px; top: 6px; } .corner.b { right: 6px; top: 6px; }
.stretch::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- homepage hero ---------- */
.hero { padding-top: 28px; align-items: start; }
.hero-l { grid-column: 1 / -1; position: relative; min-width: 0; }
.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--ink2); flex-wrap: wrap; }
.eyebrow b { font-weight: 500; color: var(--ink); }
.mark { font-weight: 800; font-size: 25.8vw; line-height: .8; letter-spacing: -.058em; margin: 22px 0 0 -.04em; font-variation-settings: "wdth" 96; }
.mark > span { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .11em; margin-bottom: -.11em; }
.mark > span + span { margin-top: -.02em; }
.mark .ln { display: inline-block; font-weight: inherit; }
.js .mark .ln { transform: translateY(102%); animation: up .9s cubic-bezier(.2, .75, .15, 1) forwards; }
.js .mark > span:nth-child(2) .ln { animation-delay: .08s; }
@keyframes up { to { transform: none; } }
.mark .live { display: inline-block; width: .16em; height: .16em; background: var(--sig); margin-left: .06em; vertical-align: baseline; animation: live 2.4s steps(1) infinite; }
@keyframes live { 0%, 62% { opacity: 1; } 63%, 100% { opacity: .15; } }
.lede { font-size: 22px; line-height: 1.15; letter-spacing: -.018em; font-weight: 500; margin-top: 22px; max-width: 17em; }
.lede em { font-style: normal; color: var(--ink3); }
.hero .search { margin-top: 28px; }
@media (min-width: 760px) {
  .hero { padding-top: 40px; }
  .hero-l { grid-column: 1 / 8; }
  .mark { font-size: min(14.6vw, 226px); margin-top: 30px; }
  .lede { font-size: clamp(24px, 2.3vw, 34px); margin-top: 30px; }
}

/* the map */
.hero-r { grid-column: 1 / -1; margin: 34px calc(-1 * var(--gut)) 0; display: none; }
.js .hero-r { display: block; }
.field { position: relative; aspect-ratio: 1 / 1; background: var(--sig); overflow: hidden; cursor: crosshair; touch-action: manipulation; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flabels { position: absolute; inset: 0; pointer-events: none; }
.flabels span {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-sig); background: var(--sig); padding: 1px 4px; white-space: nowrap; transition: opacity .3s;
}
.field.lit .flabels span { opacity: 0; }
.tip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px;
  padding: 5px 8px; white-space: nowrap; transform: translate(10px, -130%); opacity: 0; transition: opacity .12s; z-index: 3;
}
.tip.on { opacity: 1; }
.fcap { display: flex; justify-content: space-between; gap: 24px; line-height: 1.5; padding: 10px var(--gut) 0; color: var(--ink2); }
.fcap b { color: var(--ink); font-weight: 500; }
.fcap .fh { flex: none; color: var(--ink); max-width: 45%; text-align: right; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) {
  .hero-r { grid-column: 8 / 13; margin: 34px 0 0; position: sticky; top: 72px; }
  .fcap { padding: 12px 0 0; }
}

/* ticker */
.ticker { margin-top: 56px; background: var(--ink); color: var(--paper); overflow: hidden; position: relative; z-index: 2; }
.ticker .tl {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; background: var(--sig); color: var(--on-sig); display: flex;
  align-items: center; padding: 0 12px; font-weight: 500;
}
.track { display: flex; width: max-content; animation: tick 90s linear infinite; padding: 14px 0; }
.ticker:hover .track, .ticker:focus-within .track { animation-play-state: paused; }
.track > span { display: flex; }
.track a { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; display: flex; align-items: center; }
.track a::after { content: ""; width: .32em; height: .32em; background: var(--sig); margin: 0 .55em; display: inline-block; }
.track a:hover { color: var(--sig); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (min-width: 760px) { .track a { font-size: 64px; } .track { padding: 20px 0; } .ticker { margin-top: 96px; } }

/* popular cards */
.pop { row-gap: 40px; }
.pcard { grid-column: 1 / -1; position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard .media { margin: 0 calc(-1 * var(--gut)); }
.pcard .band {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--sig); color: var(--on-sig); padding: 9px 12px;
  display: flex; justify-content: space-between; transform: translateY(101%); transition: transform .35s var(--ease); z-index: 2;
}
.pcard:hover .media img, .pcard:hover .media video { transform: scale(1.035); }
.pcard:hover .band, .pcard:focus-within .band { transform: none; }
.cbody { padding-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.cname { font-weight: 800; font-size: 38px; line-height: .95; letter-spacing: -.045em; overflow-wrap: anywhere; font-variation-settings: "wdth" 96; }
.cown { color: var(--ink3); align-self: start; padding-top: 4px; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdesc { grid-column: 1 / -1; color: var(--ink2); font-size: 15px; line-height: 1.35; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 36em; }
.clinks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.clinks a { border-bottom: 1px solid var(--ink); padding-bottom: 1px; position: relative; z-index: 2; }
.clinks a:hover { color: var(--sig-text); border-color: var(--sig); }
.cname a { position: relative; }
.cname a:hover { color: var(--sig-text); }
@media (min-width: 760px) {
  .pop { row-gap: 56px; }
  .pcard .media { margin: 0; }
  .pcard { grid-column: span 4; }
  .pcard.big { grid-column: span 6; }
  .pcard.big .cname { font-size: clamp(40px, 4.4vw, 68px); }
  .pcard .cname { font-size: clamp(28px, 2.7vw, 42px); }
}

/* latest rows */
.lat { border-top: 0; }
.lrow { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; isolation: isolate; }
.lrow .th { grid-row: 1 / 4; width: 104px; aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: var(--paper2); }
.lrow .th img, .lrow .th video { width: 100%; height: 100%; object-fit: cover; }
.lrow .th.type { padding: 10%; }
.lrow .th.type .sq { width: 10%; }
.lrow .date { color: var(--ink3); display: flex; gap: 10px; }
.lrow .nm { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.04em; margin-top: 4px; overflow-wrap: anywhere; font-variation-settings: "wdth" 92; }
.lrow .ow { color: var(--ink3); margin-top: 6px; }
.lrow .ds { color: var(--ink2); font-size: 14px; line-height: 1.35; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lrow .lk { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.lrow .lk a { position: relative; z-index: 2; border-bottom: 1px solid var(--ink); }
.lrow::after { content: ""; position: absolute; inset: 0 calc(-1 * var(--gut)); background: var(--sig); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease); }
.lrow:hover::after { transform: scaleY(1); }
.lrow:hover { color: var(--on-sig); }
.lrow:hover .ds, .lrow:hover .date, .lrow:hover .ow { color: var(--on-sig); }
.lrow:hover .lk a { border-color: var(--on-sig); }
@media (min-width: 760px) {
  .lrow { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); padding: 16px 0; align-items: center; }
  .lrow .date { grid-column: 1 / 2; grid-row: 1; align-self: start; padding-top: 6px; flex-direction: column; gap: 4px; }
  .lrow .th { grid-column: 2 / 5; grid-row: 1; width: 100%; aspect-ratio: 16 / 10; }
  .lrow .tx { grid-column: 5 / 11; grid-row: 1; min-width: 0; }
  .lrow .nm { font-size: clamp(30px, 3.6vw, 56px); margin: 0; }
  .lrow .ds { font-size: 16px; max-width: 42em; }
  .lrow .lk { grid-column: 11 / 13; grid-row: 1; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; }
}
.after { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* channel rows */
.ch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0 8px; border-bottom: 1px solid var(--ink); overflow: hidden; isolation: isolate; }
.ch .cn { font-weight: 800; font-size: 15vw; line-height: .9; letter-spacing: -.05em; font-variation-settings: "wdth" 96; transition: transform .4s var(--ease); display: flex; align-items: center; gap: .18em; }
.ch .cn svg { width: .42em; height: .42em; flex: none; }
.ch .hd { color: var(--ink2); text-align: right; }
.ch .ar { font-size: .5em; display: inline-block; transition: transform .3s; align-self: flex-start; margin-top: .1em; }
.ch::before { content: ""; position: absolute; inset: 0; background: var(--sig); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1; }
.ch:hover::before, .ch:focus-visible::before { transform: none; }
.ch:hover, .ch:focus-visible { color: var(--on-sig); }
.ch:hover .cn { transform: translateX(.12em); }
.ch:hover .ar { transform: translate(.1em, -.1em); }
.ch:hover .hd { color: var(--on-sig); }
.ch .cn { min-width: 0; }
@media (max-width: 559px) { .ch .cn { font-size: 13vw; } .ch .cn svg { display: none; } .ch .hd { font-size: 10px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (min-width: 760px) { .ch .cn { font-size: min(9.6vw, 150px); } .ch { padding: 14px 0 10px; } }

/* ---------- footer ---------- */
.foot { margin-top: 72px; background: var(--ink); color: var(--paper); padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); position: relative; z-index: 1; }
.foot .g { row-gap: 18px; }
.foot .fl { grid-column: 1 / -1; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; max-width: 22em; }
.foot .fr { grid-column: 1 / -1; color: rgba(var(--paper-rgb), .72); line-height: 1.9; }
.foot .fr a { border-bottom: 1px solid rgba(var(--paper-rgb), .35); color: var(--paper); }
.foot .fr a:hover { border-color: var(--sig); color: var(--sig); }
.foot .fr .row { display: flex; flex-wrap: wrap; gap: 0 14px; }
.foot :focus-visible { outline-color: var(--sig); }
@media (min-width: 760px) {
  .foot { margin-top: 120px; }
  .foot .fl { grid-column: 1 / 7; font-size: 28px; }
  .foot .fr { grid-column: 8 / 13; align-self: end; }
  .foot .fr .row { justify-content: flex-end; }
  .foot .fr { text-align: right; }
}

/* reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- inner pages ---------- */
.page-top { padding-top: 28px; }
@media (min-width: 760px) { .page-top { padding-top: 40px; } }
.crumb { color: var(--ink3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--ink2); border-bottom: 1px solid var(--rule); }
.crumb a:hover { color: var(--sig-text); }
/* sized to its column: --n is the name length (min 5), so one word never breaks */
.fitbox { container-type: inline-size; }
.big-name { font-weight: 800; font-size: clamp(30px, calc(165cqw / var(--n, 8)), 220px); line-height: .86; letter-spacing: -.058em; margin: 18px 0 0 -.04em; font-variation-settings: "wdth" 96; overflow-wrap: anywhere; }
.big-name.long { line-height: .9; }
.big-name.xlong { font-size: clamp(30px, calc(350cqw / var(--n, 8)), 120px); line-height: 1; }
.owner-line { margin-top: 14px; color: var(--ink2); }
.owner-line b { color: var(--ink); font-weight: 500; }
.lead { font-size: 22px; line-height: 1.2; letter-spacing: -.018em; font-weight: 500; margin-top: 22px; max-width: 30em; }
@media (min-width: 760px) { .lead { font-size: clamp(24px, 2.2vw, 32px); } }
.pg-text { font-size: 17px; line-height: 1.5; color: var(--ink2); max-width: 38em; }

/* project page */
.proj { row-gap: 28px; align-items: start; }
.proj-l { grid-column: 1 / -1; min-width: 0; }
.proj-r { grid-column: 1 / -1; min-width: 0; }
.proj .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; max-width: 560px; }
.proj .acts .btn { padding: 0 8px; font-size: 11px; letter-spacing: .03em; }
.proj .acts .solo, .proj .acts .save { grid-column: 1 / -1; }
.proj .tags { margin-top: 24px; }
.proj .note { margin-top: 10px; color: var(--ink3); }
.fig { margin: 0 calc(-1 * var(--gut)); }
.fig .media { aspect-ratio: 16 / 10; }
.fig .media.tall { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.fig figcaption { padding: 10px var(--gut) 0; color: var(--ink2); display: flex; justify-content: space-between; gap: 16px; }
.fig figcaption b { color: var(--ink); font-weight: 500; }
@media (min-width: 760px) {
  .proj .acts .btn { font-size: 12px; letter-spacing: .06em; }
  .fig { margin: 0; }
  .fig figcaption { padding: 12px 0 0; }
}
@media (min-width: 1000px) {
  .proj-l { grid-column: 1 / 7; }
  .proj-r { grid-column: 7 / 13; position: sticky; top: 72px; }
  .proj-r.tall { grid-column: 8 / 12; }
  .proj.nofig .proj-l { grid-column: 1 / 11; }
}
.psearch { margin-top: 0; }
@media (min-width: 760px) { .psearch { max-width: 640px; } }

/* similar grid */
.sim { row-gap: 0; }
.scard { grid-column: 1 / -1; position: relative; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scard .ow { color: var(--ink3); }
.scard h3 { font-weight: 800; font-size: 30px; line-height: .95; letter-spacing: -.045em; overflow-wrap: anywhere; font-variation-settings: "wdth" 94; }
.scard p { color: var(--ink2); font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scard:hover h3 { color: var(--sig-text); }
@media (min-width: 760px) {
  .sim { row-gap: 0; }
  .scard { grid-column: span 6; }
}
@media (min-width: 1000px) { .scard { grid-column: span 3; } .scard h3 { font-size: clamp(26px, 2.4vw, 36px); } }

/* ---------- explore / saved / topic collections ---------- */
.discover { padding-top: 28px; }
.dx-head { align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 14px; row-gap: 14px; }
.dx-head .dx-copy { grid-column: 1 / -1; min-width: 0; }
.dx-head h1 { font-weight: 800; font-size: clamp(48px, 15vw, 176px); line-height: .82; letter-spacing: -.055em; margin-top: 16px; font-variation-settings: "wdth" 96; overflow-wrap: anywhere; }
.dx-head .discover-intro { margin-top: 18px; font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; max-width: 30em; color: var(--ink2); }
.dx-head .discover-back { display: inline-block; margin-top: 14px; }
.dx-art { grid-column: 1 / -1; color: var(--sig); max-width: 260px; }
.dx-art span { display: block; color: var(--ink3); margin-top: 6px; }
@media (min-width: 760px) {
  .dx-head .dx-copy { grid-column: 1 / 10; }
  .dx-art { grid-column: 10 / 13; justify-self: end; width: 100%; }
}
.discover-tabs { display: flex; gap: 0; margin-top: 18px; border-bottom: 1px solid var(--rule); }
.discover-tabs a { padding: 10px 14px 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; color: var(--ink2); }
.discover-tabs a[aria-current] { border-color: var(--rule); background: var(--paper); color: var(--ink); box-shadow: inset 0 2px 0 var(--sig); }
.discover-tabs a:hover { color: var(--sig-text); }
.discover-controls { margin-top: 18px; }
.discover-filter-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; align-items: center; color: var(--ink2); }
.discover-filter-bar label { display: flex; gap: 8px; align-items: center; }
.discover-filter-bar select {
  background: var(--paper); border: 1px solid var(--ink); padding: 6px 28px 6px 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; max-width: 100%;
}
.discover-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.discover-topics a { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--rule); padding: 5px 8px; color: var(--ink2); }
.discover-topics a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 759px) {
  .discover-topics { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); scrollbar-width: none; }
  .discover-topics::-webkit-scrollbar { display: none; }
  .discover-topics a { flex: none; white-space: nowrap; }
}
.discover-topics a[aria-current] { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.discover-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; border-bottom: 2px solid var(--ink); padding-bottom: 7px; color: var(--ink2); flex-wrap: wrap; }
.discover-views { display: flex; gap: 0; }
.discover-views button { border: 1px solid var(--rule); background: none; padding: 4px 9px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.discover-views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.discover-notice { margin-top: 12px; color: var(--ink2); }
[data-discover-retry] { margin-top: 10px; }
.discover-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); }
@media (min-width: 760px) { .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .discover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.discover-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
.discover-card { position: relative; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.discover-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink3); }
.discover-card h2 { font-weight: 800; font-size: 30px; line-height: .98; letter-spacing: -.045em; overflow-wrap: anywhere; font-variation-settings: "wdth" 94; }
.discover-card h2 .o { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; font-weight: 400; color: var(--ink3); vertical-align: .9em; margin-right: .35em; }
.discover-card h2 .n { display: inline; }
.discover-card h2 a:hover .n { color: var(--sig-text); }
.discover-description { color: var(--ink2); font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.discover-card-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.discover-card-topics a { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--rule); padding: 3px 6px; color: var(--ink2); }
.discover-card-topics a:hover { border-color: var(--ink); color: var(--ink); }
.discover-card-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.discover-card-footer a { border-bottom: 1px solid var(--ink); }
.discover-card-footer a:hover { color: var(--sig-text); border-color: var(--sig); }
.discover-save { border: 1px solid var(--ink); background: none; padding: 3px 8px; cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.discover-save:hover { background: var(--ink); color: var(--paper); }
.discover-save[aria-pressed="true"] { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.discover-grid[data-view="list"] .discover-card { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .discover-grid[data-view="list"] .discover-card { grid-template-columns: 2fr 3fr auto; align-items: center; column-gap: var(--gap); }
  .discover-grid[data-view="list"] .discover-card-top { grid-column: 3; grid-row: 1; }
  .discover-grid[data-view="list"] .discover-card h2 { grid-column: 1; grid-row: 1 / 4; }
  .discover-grid[data-view="list"] .discover-description { grid-column: 2; }
  .discover-grid[data-view="list"] .discover-card-topics, .discover-grid[data-view="list"] .discover-card-footer { grid-column: 2; }
}
.discover-empty { grid-column: 1 / -1; padding: 28px 0; color: var(--ink2); font-size: 17px; }
.discover-empty a { color: var(--ink); border-bottom: 1px solid var(--ink); margin-left: 4px; }
.discover-more { margin-top: 18px; }
.discover-pagination, .pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; border-top: 2px solid var(--ink); padding-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.discover-pagination a, .pager a { color: var(--ink); border: 1px solid var(--ink); padding: 8px 12px; }
.discover-pagination a:hover, .pager a:hover { background: var(--ink); color: var(--paper); }
.discover-storage-note { margin-top: 8px; color: var(--ink3); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }

/* topic directory */
.trows { border-top: 0; }
.topics-page .sh { margin-bottom: 0; }
.trow { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 14px 0 12px; border-bottom: 1px solid var(--ink); overflow: hidden; isolation: isolate; }
.trow .no { color: var(--ink3); }
.trow h2 { font-weight: 800; font-size: 10vw; line-height: .9; letter-spacing: -.05em; font-variation-settings: "wdth" 96; overflow-wrap: anywhere; transition: transform .4s var(--ease); }
.trow p { grid-column: 2 / -1; color: var(--ink2); font-size: 15px; line-height: 1.35; }
.trow .ar { color: var(--ink2); display: none; }
@media (min-width: 760px) { .trow .ar { display: block; } }
.trow::before { content: ""; position: absolute; inset: 0; background: var(--sig); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1; }
.trow:hover::before, .trow:focus-visible::before { transform: none; }
.trow:hover, .trow:focus-visible { color: var(--on-sig); }
.trow:hover p, .trow:hover .no, .trow:hover .ar { color: var(--on-sig); }
.trow:hover h2 { transform: translateX(.08em); }
@media (min-width: 760px) {
  .trow { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: 18px 0 14px; }
  .trow .no { grid-column: 1; }
  .trow h2 { grid-column: 2 / 9; font-size: min(4.6vw, 68px); }
  .trow p { grid-column: 9 / 12; }
  .trow .ar { grid-column: 12; justify-self: end; }
}

/* ---------- /projects/ gallery ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); padding: 6px 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.social-link svg { width: 13px; height: 13px; }
.social-link:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.social-link--lead { border-color: var(--ink); }
.gallery-tools { margin-top: 26px; display: grid; gap: 10px; }
@media (min-width: 760px) { .gallery-tools { grid-template-columns: 1fr minmax(0, 460px); align-items: end; } }
.gallery-tools__label { color: var(--ink2); }
.navsearch { display: flex; align-items: center; gap: 0; border: 2px solid var(--ink); background: var(--paper); }
.navsearch:focus-within { box-shadow: 4px 4px 0 var(--sig); }
.navsearch svg { margin-left: 12px; color: var(--sig-text); flex: none; }
.navsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; padding: 11px 10px; -webkit-appearance: none; appearance: none; border-radius: 0; }
.navsearch input::placeholder { color: var(--ink3); font-weight: 400; }
.section-mark { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding: 0 0 7px; margin: 30px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.section-mark__title { font-weight: 500; }
.section-mark__count { color: var(--ink3); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); margin-top: 16px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery .card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--paper2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--sig); transition: border-width .15s; }
.card__media:hover::after, .card__media:focus-visible::after { border-width: 4px; }
.card__media:hover img { transform: scale(1.03); }
.card__play { position: absolute; left: 0; bottom: 0; background: var(--sig); color: var(--on-sig); padding: 6px; display: flex; z-index: 1; }
.card__overlay { position: absolute; top: 6px; left: 6px; z-index: 1; }
.card__pill { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 10px; padding: 3px 6px; }
.card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__repo { font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; font-variation-settings: "wdth" 94; }
.card__repo-link:hover { color: var(--sig-text); }
.card__repo-arrow { font-size: .7em; margin-left: .15em; color: var(--ink3); }
.card__desc, .card__headline { color: var(--ink2); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__watch, .discover-card-tools a { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--ink); align-self: flex-start; }
.card__watch:hover, .discover-card-tools a:hover { color: var(--sig-text); border-color: var(--sig); }
.discover-card-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.discover-card-tools button { border: 1px solid var(--ink); background: none; padding: 3px 8px; cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.discover-card-tools button[aria-pressed="true"] { background: var(--sig); border-color: var(--sig); color: var(--on-sig); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--rule); padding: 3px 6px; color: var(--ink2); }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--ai { border-color: var(--sig); color: var(--sig-text); }
.engage { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.empty-state { padding: 28px 0; color: var(--ink2); font-size: 17px; }
.back-link { margin-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.back-link a { border-bottom: 1px solid var(--ink); }

/* ---------- prose: about, legal, notices ---------- */
.prose { padding-top: 28px; max-width: 760px; font-size: 17px; line-height: 1.55; color: var(--ink2); }
.prose .eyebrow { color: var(--ink2); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.prose .eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--sig); }
.prose h1 { color: var(--ink); font-weight: 800; font-size: clamp(44px, 12vw, 120px); line-height: .86; letter-spacing: -.055em; margin: 18px 0 22px -.03em; font-variation-settings: "wdth" 96; overflow-wrap: anywhere; }
.prose h1 em { font-style: normal; color: var(--sig-text); }
.prose h2 { color: var(--ink); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.04em; margin: 40px 0 12px; padding-top: 12px; border-top: 2px solid var(--ink); }
.prose h3 { color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--sig); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--sig); }
.prose a:hover { color: var(--sig-text); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper2); padding: 1px 5px; }
.legal-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.legal-notice { border: 2px solid var(--sig); padding: 14px 16px; margin: 18px 0; color: var(--ink); }
.prose .btn { margin-top: 10px; border-bottom: 2px solid var(--ink); }
.prose .btn.pri { color: var(--paper); }
.warn-block { border: 2px solid var(--sig); padding: 18px; margin-top: 18px; }
.warn-block p { color: var(--ink); }

/* ---------- operator dashboard (runtime preview only) ---------- */
.hero__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding-top: 28px; }
.hero__title { font-weight: 800; font-size: clamp(40px, 9vw, 110px); line-height: .86; letter-spacing: -.055em; margin-top: 14px; }
.hero__title em { font-style: normal; color: var(--sig-text); }
.hero__sub { color: var(--ink2); margin-top: 14px; max-width: 40em; }
.section-mark__num { color: var(--sig-text); margin-right: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--rule); }
.stat { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.stat__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.stat__value { font-weight: 800; font-size: 44px; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.stat__sub { color: var(--ink3); font-size: 13px; margin-top: 4px; }
.panels { display: grid; gap: var(--gap); margin-top: 24px; }
@media (min-width: 900px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--rule); padding: 16px; min-width: 0; overflow-x: auto; }
.panel__title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.top-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.top-table th, .top-table td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); }
.bar-chart { color: var(--sig); }


/* ---------- /instagram/ (link-in-bio feed) ---------- */
.ig .page { padding-top: 16px; }
.ig .aside { min-width: 0; }
.ig .ig-mark, .ig .ig-lede, .ig .follow-d { display: none; }
.ig .search .ig-lab { color: var(--ink); font-weight: 500; }
.ig .search .lab .eng { display: inline; color: var(--ink3); font-weight: 400; }
@media (min-width: 1000px) {
  .ig .page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: 40px; align-items: start; }
  .ig .aside { grid-column: 1 / 5; position: sticky; top: 88px; }
  .ig .main { grid-column: 5 / 13; min-width: 0; }
  .ig .ig-mark { display: block; font-size: min(7.4vw, 112px); margin-top: 18px; }
  .ig .ig-mark > span { overflow: visible; }
  .ig .ig-lede { display: block; font-size: clamp(20px, 1.7vw, 26px); margin-top: 24px; max-width: 15em; }
  .ig .search { margin-top: 32px; }
  .ig .follow-d { display: block; margin-top: 36px; border-top: 2px solid var(--ink); }
  .ig .follow-d a { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding: 8px 0 6px; font-weight: 800; font-size: 28px; letter-spacing: -.04em; line-height: 1; font-variation-settings: "wdth" 96; }
  .ig .follow-d a .mono { font-weight: 400; color: var(--ink3); letter-spacing: .06em; }
  .ig .follow-d a:hover { color: var(--sig-text); }
  .ig .main .mh:first-child, .ig #grid > .mh:first-child { margin-top: 0; }
  .ig-chan { display: none; }
}
@media (min-width: 760px) and (max-width: 999px) { .ig .page { max-width: 935px; margin: 0 auto; padding-top: 28px; } }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tgap); margin: var(--tgap) calc(-1 * var(--gut)) 0; }
@media (min-width: 760px) { .feed { margin: var(--tgap) 0 0; } }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper2); outline-offset: -3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--sig); transition: border-width .15s; }
.tile:hover::after, .tile:focus-visible::after { border-width: 4px; }
.tile:focus-visible { outline: 2px solid var(--ink); }
.tile .pin { position: absolute; top: 0; right: 0; background: var(--sig); color: var(--on-sig); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 5px 3px; line-height: 1; z-index: 2; }
.tile .gl { position: absolute; top: 5px; right: 5px; width: 14px; height: 14px; z-index: 2; color: #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; z-index: 1; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
@media (hover: hover) and (min-width: 760px) { .tile:hover img { transform: scale(1.03); } }
.res-list li { border-bottom: 1px solid var(--rule); }
.res-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; }
.res-list .nm { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.res-list .ow { color: var(--ink3); align-self: center; }
.res-list p { grid-column: 1 / -1; color: var(--ink2); font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-list a:hover .nm { color: var(--sig-text); }
.none { color: var(--ink2); padding: 12px 0; font-size: 15px; }
.ig-chan { margin-top: 48px; border-top: 2px solid var(--ink); }
.ig-chan .ch .cn { font-size: 15vw; }
@media (min-width: 760px) { .ig-chan .ch .cn { font-size: min(9vw, 96px); } }
.ig .foot { margin-top: 40px; }
@media (min-width: 1000px) { .ig .foot { margin-top: 96px; } }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; height: calc(100% - 28px); z-index: 10001; background: var(--paper); border-top: 2px solid var(--ink); transform: translateY(102%); transition: transform .32s var(--ease); display: flex; flex-direction: column; visibility: hidden; }
html.open .scrim { opacity: 1; pointer-events: auto; }
html.open .sheet { transform: none; visibility: visible; }
.sheet.drag { transition: none; }
.sheet:focus { outline: 0; }
.grab { flex: none; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); border-bottom: 1px solid var(--rule); cursor: grab; touch-action: none; position: relative; }
.grab .bar2 { position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; background: var(--ink3); }
.grab .mono { color: var(--ink2); }
.close { border: 0; background: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 8px 0 8px 12px; display: flex; gap: 6px; align-items: center; }
.close:hover { color: var(--sig-text); }
.close:focus { outline: 0; } .close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sb { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px var(--gut) calc(28px + env(safe-area-inset-bottom)); }
.st { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 14px; align-items: start; }
.cov { aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden; position: relative; }
.cov img { width: 100%; height: 100%; object-fit: cover; }
.cov.type { display: flex; align-items: flex-end; padding: 10%; container-type: inline-size; color: var(--paper); }
.cov.type span { font-weight: 800; letter-spacing: -.05em; line-height: .86; font-size: min(34cqw, calc(150cqw / var(--n))); font-variation-settings: "wdth" 90; word-break: break-word; }
.cov.type .sq { position: absolute; top: 10%; right: 10%; width: 12%; height: auto; aspect-ratio: 1; }
.meta { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.nm2 { font-weight: 800; line-height: .9; letter-spacing: -.045em; font-variation-settings: "wdth" 94; word-break: break-word; font-size: min(64px, calc(165cqw / var(--n))); }
.own { color: var(--ink2); word-break: break-all; }
.hook { font-size: 15px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin-top: auto; border-top: 1px solid var(--rule); padding-top: 10px; }
.desc { font-size: 16px; line-height: 1.4; color: var(--ink); margin-top: 16px; max-width: 34em; }
.sheet .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sheet .btn { padding: 0 8px; font-size: 11px; letter-spacing: .03em; }
.sheet .btn.solo, .sheet .btn.wide { grid-column: 1 / -1; }
.rel { margin-top: 26px; }
.rel .mh { margin: 0; }
.rl { display: grid; grid-template-columns: 1fr; gap: 0; }
.rl a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.rl .th { grid-row: 1 / 3; width: 48px; aspect-ratio: 3 / 4; background: var(--ink); overflow: hidden; position: relative; }
.rl .th img { width: 100%; height: 100%; object-fit: cover; }
.rl .th.t { display: flex; align-items: flex-end; padding: 4px 5px; color: var(--paper); font-weight: 800; font-size: 30px; letter-spacing: -.05em; line-height: .8; text-transform: lowercase; }
.rl .th.t::before { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; background: var(--sig); }
.rl .n { font-weight: 700; font-size: 19px; letter-spacing: -.03em; line-height: 1.05; word-break: break-word; align-self: end; }
.rl .d { color: var(--ink2); font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.rl a:hover .n { color: var(--sig-text); }
.sheet .morebtn { width: 100%; }
@media (min-width: 760px) {
  .sheet .btn { font-size: 12px; letter-spacing: .06em; }
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: min(960px, calc(100vw - 64px)); height: min(780px, calc(100vh - 64px)); transform: translate(-50%, -46%); opacity: 0; border: 2px solid var(--ink); transition: transform .3s var(--ease), opacity .2s; }
  html.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .grab { height: 40px; cursor: default; }
  .grab .bar2 { display: none; }
  .sb { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0 32px; padding: 24px 32px; overflow: hidden; min-height: 0; }
  .st { display: contents; }
  .cov { grid-row: 1 / 3; height: calc(min(780px, 100vh - 64px) - 44px - 48px); width: auto; align-self: start; }
  .rcol { overflow-y: auto; min-height: 0; padding-right: 4px; }
  .meta { gap: 10px; }
  .nm2 { font-size: min(84px, calc(170cqw / var(--n))); }
  .hook { margin-top: 6px; font-size: 18px; }
  .desc { font-size: 17px; }
  .rl { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .mark .ln { transform: none; }
  .track { flex-wrap: wrap; width: auto; }
  .track > span[aria-hidden] { display: none; }
}
