/* Nítido · work.html only. Builds on tokens.css and site.css. One breakpoint: 960px. */

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- what each one includes: ledger with time brackets ---------- */
.inc-intro { display: grid; gap: 24px; align-content: start; margin-bottom: 56px; }
@media (min-width: 960px) {
  .inc-intro { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}
.inc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  column-gap: 0;
}
@media (min-width: 960px) { .inc { grid-template-columns: minmax(0, 1fr) 11rem; } }
.inc .ledger__row { grid-column: 1; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: clamp(18px, 2vw, 26px); }
@media (min-width: 960px) { .inc .ledger__row { grid-template-columns: 4rem minmax(0, 1fr); } }
.inc .ledger__row:last-child::after { display: none; }
.inc__brk {
  grid-column: 2;
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  margin-left: 14px;
  padding-left: 14px;
  border: 1px solid var(--ink);
  border-left: 0;
  margin-block: 14px;
  text-align: right;
}
.inc__brk .mono { font-weight: 700; padding-right: 10px; }
.inc__brk--a { grid-row: 1 / 7; }
.inc__brk--b { grid-row: 7; }
.inc__total {
  grid-column: 1 / -1;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding-block: clamp(22px, 2.4vw, 32px) 0;
}
.inc__total [data-fx="guide.chalk-line"] { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.inc__total .t-32 { color: var(--accent); font-weight: 700; }
.inc__total .mono { color: var(--muted); }

/* ---------- the seven: hairline index ---------- */
.idx-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); }
.idx { display: grid; border-bottom: 1px solid var(--rule); }
.idx__row {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 56px;
  grid-template-areas: "n name thumb" "n meta thumb" "n chips thumb";
  gap: 6px 14px;
  align-items: center;
  padding-block: 22px;
  text-decoration: none;
  min-height: 44px;
}
.idx__row [data-fx="guide.chalk-line"] { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.idx__row .ledger__n { grid-area: n; align-self: start; padding-top: .7em; }
.idx__name {
  grid-area: name;
  font-size: clamp(48px, 8vw, 128px);
  text-transform: lowercase;
  transition: color var(--dur-quick) var(--ease-stop);
}
.idx__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.idx__tag { font-weight: 700; border: 1px solid currentColor; border-radius: 2px; padding: 2px 6px 1px; }
.idx__trade { font-size: 17px; color: var(--muted); }
.idx__chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.idx__thumb { grid-area: thumb; width: 56px; align-self: center; }
.idx__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-label), monospace; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.chip i { width: 12px; height: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(18, 19, 23, .22); }
@media (min-width: 960px) {
  .idx__row {
    grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 15rem) 11rem;
    grid-template-areas: "n name meta chips";
    min-height: 14vh;
    padding-block: 18px;
    gap: 0 var(--gut);
  }
  .idx__row .ledger__n { align-self: center; padding-top: 0; }
  .idx__meta { flex-direction: column; gap: 10px; align-items: flex-start; }
  .idx__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .idx__thumb { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .idx__row:hover .idx__name, .idx__row:focus-visible .idx__name { color: var(--hi); }
}
.idx__sub {
  display: flex; align-items: center; gap: 16px;
  padding: clamp(40px, 5vw, 72px) 0 14px; font-weight: 700; text-transform: uppercase; color: var(--muted);
}
.idx__sub-rule { flex: 1; height: 1px; background: var(--rule); }
.idx-float {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 22vw; aspect-ratio: 3 / 4;
  pointer-events: none;
  overflow: hidden;
  background: #D3CFC9;
}
.idx-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.idx-float img.is-on { opacity: 1; }

/* ---------- the chapters ---------- */
.ch__band {
  background: var(--c-bg);
  color: var(--c-ink);
  padding-block: clamp(72px, 9vw, 140px);
  row-gap: 40px;
  align-items: end;
}
.ch__text { display: grid; gap: clamp(20px, 2.4vw, 32px); align-content: end; }
.ch__label { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 3px 9px 2px;
  background: var(--c-ink); color: var(--ink);
  border-radius: 2px;
  font-family: var(--font-label), monospace; font-weight: 700;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.tag--ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1px currentColor; }
.ch__name { font-size: clamp(64px, 12vw, 200px); text-transform: lowercase; padding-bottom: .04em; }
.ch__line { font-size: clamp(20px, 1.6vw, 22px); line-height: 1.42; max-width: 50ch; }
.ch--spade .ch__line { font-size: 24px; font-weight: 500; }
.ch__palette {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--c-ink); color: var(--ink);
  border-radius: 2px;
}
.ch__palette li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 10px; padding: 12px 14px; align-items: center; }
.ch__palette li + li { box-shadow: inset 1px 0 0 rgba(18, 19, 23, .14); }
.ch__palette li:nth-child(3) { box-shadow: inset 0 1px 0 rgba(18, 19, 23, .14); }
.ch__palette li:nth-child(4) { box-shadow: inset 1px 1px 0 rgba(18, 19, 23, .14); }
.ch__palette i { grid-row: 1 / 3; width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(18, 19, 23, .25); }
.ch__palette .mono { font-size: 12px; line-height: 1.3; }
.ch__palette .mono + .mono { color: var(--muted); }
@media (min-width: 960px) {
  .ch__palette { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 46rem; }
  .ch__palette li:nth-child(3) { box-shadow: inset 1px 0 0 rgba(18, 19, 23, .14); }
  .ch__palette li:nth-child(4) { box-shadow: inset 1px 0 0 rgba(18, 19, 23, .14); }
}
.ch__film { position: relative; max-width: 420px; width: 100%; }
@media (min-width: 960px) { .ch__film { max-width: none; } }
.ch__film .tag { position: absolute; left: 12px; top: 12px; }

.ch__world { padding-block: clamp(72px, 9vw, 140px) clamp(88px, 11vw, 168px); }
.ch__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--gut);
  align-items: start;
}
.ch__grid > :nth-child(even) { margin-top: 7vh; }
@media (min-width: 960px) {
  .ch__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 5vw; row-gap: 72px; padding-inline: 2vw; }
  .ch__grid > :nth-child(even) { margin-top: 0; }
  .ch__grid > :nth-child(3n+2) { margin-top: 8vh; }
  .ch__grid > :nth-child(3n+3) { margin-top: 16vh; }
  .ch--flip .ch__grid > :nth-child(3n+1) { margin-top: 16vh; }
  .ch--flip .ch__grid > :nth-child(3n+3) { margin-top: 0; }
}
.cap__name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.cap__name em { font-style: normal; font-weight: 400; color: var(--muted); }
.cap .cap__rule[data-fx="guide.chalk-line"] { background: var(--rule); }

.ch__pair { margin-top: clamp(96px, 14vw, 200px); row-gap: 56px; align-items: end; }
.ch__panel {
  display: grid; place-items: center;
  background: var(--c-bg);
}
.ch__phone { height: 88%; aspect-ratio: 433 / 882; }
.ch__pair-note { display: grid; gap: 14px; align-content: end; }
@media (min-width: 960px) {
  .ch--flip .ch__pair > .ch__idea { grid-column: 7 / 12; grid-row: 1; }
  .ch--flip .ch__pair > .ch__reel { grid-column: 2 / 6; grid-row: 1; }
}

/* ---------- the ask ---------- */
.ask .t-ask { max-width: 15ch; }
.ask__fan { width: clamp(44px, 4.4vw, 64px); }
