/* ============================================================
   THE GANTRY — DUMBO warehouse conversion
   Palette: ink #1A1D24 · brick #9E4A32 · amber #D8A052
            fog #B9C4CC · cream #EDE8DD
   Type: Bricolage Grotesque / Source Sans 3 / Overpass Mono
   ============================================================ */

:root {
  --ink: #1A1D24;
  --brick: #9E4A32;
  --amber: #D8A052;
  --fog: #B9C4CC;
  --cream: #EDE8DD;
  --cream-deep: #E3DCCB;
  --ink-soft: #262B35;
  --line: rgba(26, 29, 36, .28);
  --line-strong: rgba(26, 29, 36, .82);
  --disp: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", sans-serif;
  --mono: "Overpass Mono", "Courier New", monospace;
  --ease-hoist: cubic-bezier(.22, 1, .32, 1);
  --ease-thunk: cubic-bezier(.34, 1.42, .52, 1);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain over the light sections */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--ink); }

.mono { font-family: var(--mono); }

a { color: inherit; }

section[id] { scroll-margin-top: 3.4rem; }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: 2px;
}
.riverlight :focus-visible, .bones :focus-visible, .foot :focus-visible {
  outline-color: var(--amber);
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .5rem 1rem; font-family: var(--mono); font-size: .8rem;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--disp);
  font-optical-sizing: auto;
  line-height: .98;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem);
  font-weight: 750;
  margin-bottom: .5em;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.2em; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: .9em;
}
.eyebrow-amber { color: var(--amber); }

.section-dek { max-width: 34em; }

/* ============================== MASTHEAD ============================== */
.mast {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: baseline; gap: 2rem;
  padding: .8rem var(--gutter) .7rem;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .45s var(--ease-hoist);
}
.mast.hidden { transform: translateY(-110%); }

.mast-mark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-decoration: none;
}
.mast-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.mast-nav a {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: .15rem;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.mast-nav a:hover { border-bottom-color: var(--brick); }
.mast-cta { color: var(--brick); font-weight: 600; }
.mast-addr {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(26,29,36,.62);
}
@media (max-width: 900px) {
  .mast-addr { display: none; }
  .mast-nav { gap: 1rem; }
}
@media (max-width: 560px) {
  .mast-nav a:not(.mast-cta) { display: none; }
}

/* ============================== HERO ============================== */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 9vh, 7rem) var(--gutter) clamp(2.5rem, 6vh, 5rem);
}
.hero-inner {
  width: min(100%, 1060px);
  display: flex; flex-direction: column;
}

.label-top {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(26,29,36,.68);
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: .55rem .2rem;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.label-no { color: var(--brick); font-weight: 600; }
@media (max-width: 560px) { .label-top span:last-child { display: none; } }

.hero-frame { position: relative; }
.hero-media {
  position: relative;
  border: 3px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  max-height: 50svh;
  width: 100%;
  overflow: hidden;
}
.hero-video, .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-poster { display: none; }
.no-motion .hero-video { display: none; }
.no-motion .hero-poster { display: block; }

.hero-stamp {
  position: absolute; top: 7%; right: 5%;
  transform: rotate(8deg) scale(1);
  color: #F0654A;
  border: 2.5px double #F0654A;
  border-radius: 6px;
  padding: .5rem .9rem;
  font-size: clamp(.62rem, .5rem + .5vw, .82rem);
  line-height: 1.35;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 14px rgba(26,29,36,.55);
  opacity: .92;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.6' intercept='-0.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='90' height='90' fill='white' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: 90px 90px;
}

.hero-cargo {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(26,29,36,.68);
  border-bottom: 1px solid var(--line);
  padding: .6rem .2rem .55rem;
}
.hero-cargo .blank {
  font-style: normal;
  color: var(--brick);
  border-bottom: 1px solid var(--brick);
  padding: 0 1.2em;
}

.hero-title {
  font-size: clamp(4.2rem, 1.6rem + 11.5vw, 9.8rem);
  font-weight: 800;
  font-stretch: 95%;
  letter-spacing: -.03em;
  line-height: .9;
  margin-top: clamp(1.2rem, 4vh, 2.4rem);
  text-transform: uppercase;
}
.sm-only { display: none; }
@media (max-width: 560px) { .sm-only { display: block; } }

.hero-dek {
  max-width: 30em;
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  color: rgba(26,29,36,.85);
}
/* load choreography */
.hero .label-top, .hero .hero-frame, .hero .hero-title, .hero .hero-dek {
  opacity: 0;
  transform: translateY(22px);
  animation: hoist .9s var(--ease-hoist) forwards;
}
.hero .hero-frame  { animation-delay: .12s; }
.hero .hero-title  { animation-delay: .28s; }
.hero .hero-dek    { animation-delay: .42s; }
.hero-stamp {
  opacity: 0;
  animation: stamp .5s var(--ease-thunk) .95s forwards;
}
@keyframes hoist { to { opacity: 1; transform: none; } }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(8deg) scale(1.7); }
  100% { opacity: .92; transform: rotate(8deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .label-top, .hero .hero-frame, .hero .hero-title,
  .hero .hero-dek, .hero-stamp {
    animation: none; opacity: 1; transform: none;
  }
  .hero-stamp { transform: rotate(8deg); opacity: .92; }
}

/* ============================== MANIFEST ============================== */
.manifest {
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  max-width: 1160px;
  margin: 0 auto;
}
.lede {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2.1vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 24em;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.manifest-cols {
  columns: 2; column-gap: 3.5rem;
  max-width: 62em;
}
.manifest-cols p { break-inside: avoid; margin-bottom: 1.2rem; }
@media (max-width: 760px) { .manifest-cols { columns: 1; } }

.manifest-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line-strong);
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.manifest-stats > div {
  padding: 1rem .2rem 0;
  border-right: 1px solid var(--line);
}
.manifest-stats > div:last-child { border-right: 0; }
.manifest-stats dt {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(26,29,36,.6);
}
.manifest-stats dd {
  font-size: clamp(1rem, .8rem + 1vw, 1.5rem);
  font-weight: 600;
  margin-top: .2rem;
}
@media (max-width: 640px) {
  .manifest-stats { grid-template-columns: 1fr 1fr; }
  .manifest-stats > div { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .manifest-stats > div:nth-child(2n) { border-right: 0; }
}

/* ============================== THE BONES ============================== */
.bones {
  background: var(--ink);
  color: var(--cream);
}
.bones-scroll { height: 340vh; }
.bones-stage {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(3.6rem, 7vh, 5rem) var(--gutter) clamp(1rem, 3vh, 2rem);
  overflow: hidden;
}
.bones-head h2 { color: var(--cream); margin-bottom: .2em; }
.bones-hint {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(185,196,204,.72);
}
.bones-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 0;
}
.bones-fig { min-width: 0; height: 100%; display: flex; align-items: center; }
#bonesSvg { width: 100%; height: auto; max-height: 100%; }

/* svg member styling */
#bonesSvg .ln, #bonesSvg .courses, #bonesSvg .hatch, #bonesSvg .leader {
  stroke: var(--fog);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
#bonesSvg .thick { stroke-width: 3.5; }
#bonesSvg .fine { stroke-width: 1.4; }
#bonesSvg .courses, #bonesSvg .hatch { stroke-width: 1; opacity: .55; }
#bonesSvg .brick .ln, #bonesSvg .brick .courses { stroke: var(--brick); }
#bonesSvg .timber .ln { stroke: var(--amber); }
#bonesSvg .joists .ln, #bonesSvg .joists .courses { stroke: var(--amber); }
#bonesSvg .steel .ln { stroke: var(--fog); }
#bonesSvg .leader { stroke: rgba(185,196,204,.6); stroke-width: 1; }

#bonesSvg .m path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-hoist);
}
#bonesSvg .m.on path { stroke-dashoffset: 0; }

#bonesSvg .ann {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .7s ease, transform .7s var(--ease-hoist);
}
#bonesSvg .ann.on { opacity: 1; transform: none; }

#bonesSvg .note, #bonesSvg .lvl, #bonesSvg .stamp, #bonesSvg .titleblock {
  font-family: var(--mono);
  fill: var(--fog);
  font-size: 14px;
  letter-spacing: .04em;
}
#bonesSvg .titleblock { font-size: 11.5px; fill: rgba(185,196,204,.55); letter-spacing: .1em; }
@media (max-width: 640px) {
  #bonesSvg .note, #bonesSvg .leader, #bonesSvg .stampbox, #bonesSvg .titleblock { display: none; }
}
#bonesSvg .lvl { fill: rgba(185,196,204,.5); font-size: 12px; letter-spacing: .15em; }
#bonesSvg .anchor-mid { text-anchor: middle; }
#bonesSvg .anchor-end { text-anchor: end; }
#bonesSvg .stampbox rect { stroke: #C4573A; stroke-width: 1.5; fill: rgba(26,29,36,.55); transform: rotate(-2deg); transform-origin: 749px 472px; }
#bonesSvg .stamp { fill: #E0745A; font-size: 10.5px; letter-spacing: .18em; transform: rotate(-2deg); transform-origin: 749px 472px; }

/* window glow — the last members to arrive are the lights */
#bonesSvg .wg rect {
  fill: var(--amber);
  opacity: 0;
  transition: opacity 1.4s ease;
}
#bonesSvg .wg.on rect { opacity: .33; }

#bonesSvg .bay {
  fill: var(--amber);
  fill-opacity: 0;
  stroke: var(--amber);
  stroke-opacity: 0;
  stroke-dasharray: 5 5;
  cursor: pointer;
  transition: fill-opacity .35s, stroke-opacity .35s;
  pointer-events: none;
}
#bonesSvg .bay.armed { pointer-events: auto; }
#bonesSvg .bay.lit { fill-opacity: .16; stroke-opacity: .9; }

/* residence list beside section */
.bones-list-head {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(185,196,204,.25);
  padding-bottom: .6rem;
  margin-bottom: .4rem;
}
.bones-list ul { list-style: none; }
.bones-list li { border-bottom: 1px solid rgba(185,196,204,.18); }
.bay-link {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  grid-template-areas: "no name" "no spec";
  gap: 0 .8em;
  width: 100%;
  text-align: left;
  background: none; border: 0; color: inherit;
  padding: .85rem .4rem;
  cursor: pointer;
  font-size: .8rem;
  transition: background .3s;
}
.bay-link .bl-no { grid-area: no; color: var(--amber); font-weight: 600; letter-spacing: .06em; }
.bay-link .bl-name { grid-area: name; font-family: var(--disp); font-weight: 650; font-size: 1.02rem; letter-spacing: 0; }
.bay-link .bl-spec { grid-area: spec; color: rgba(185,196,204,.65); font-size: .72rem; letter-spacing: .08em; margin-top: .15rem; }
.bay-link.lit, .bay-link:hover { background: rgba(216,160,82,.12); }
.bones-note {
  margin-top: 1.2rem;
  font-size: .72rem; line-height: 1.7; letter-spacing: .04em;
  color: rgba(185,196,204,.78);
  max-width: 30em;
}

@media (max-width: 900px) {
  .bones-scroll { height: auto; }
  .bones-stage { position: static; height: auto; overflow: visible; }
  .bones-body { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .bones-fig { height: auto; }
}

/* ============================== RESIDENCES — CARGO TAGS ============================== */
.residences {
  padding: clamp(4rem, 10vh, 8rem) var(--gutter) clamp(5rem, 12vh, 9rem);
  max-width: 1280px;
  margin: 0 auto;
}
.tags {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 2.2vw, 2.4rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  align-items: start;
}
@media (max-width: 1180px) { .tags { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .tags { grid-template-columns: 1fr; } }
.tag { position: relative; padding-top: 42px; }
.tag-string {
  position: absolute; top: 0; left: 50%;
  width: 120px; height: 60px;
  transform: translateX(-50%);
  z-index: 1;
}
.tag-string path {
  stroke: var(--brick);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
}
.tag-card {
  position: relative;
  background: #F6F2E7;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px 8px 10px 10px;
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 100%, 0 100%, 0 7%);
  padding: 3rem 1.5rem 1.4rem;
  box-shadow: 0 14px 28px -18px rgba(26,29,36,.45);
  transition: transform .5s var(--ease-hoist), box-shadow .5s var(--ease-hoist);
}
.tags > li:nth-child(odd) .tag-card { transform: rotate(-1.1deg); }
.tags > li:nth-child(even) .tag-card { transform: rotate(1deg); }
.tag-card { transform-origin: 50% -30px; } /* swing from the string, not the center */
.tag:hover .tag-card, .tag:focus-within .tag-card {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 22px 34px -18px rgba(26,29,36,.5);
}
.eyelet {
  position: absolute; top: 14px; left: 50%;
  width: 22px; height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid #A79980;
  box-shadow: inset 0 0 0 2px rgba(26,29,36,.35);
}
.tag-no {
  position: absolute; top: 1.05rem; right: 1.3rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  color: var(--brick);
  border: 1.5px solid var(--brick);
  border-radius: 3px;
  padding: .18rem .5rem;
  transform: rotate(2deg);
}
.tag h3 {
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem);
  font-weight: 750;
  margin-bottom: .55rem;
}
.tag-desc { font-size: .95rem; color: rgba(26,29,36,.8); min-height: 4.5em; }
.tag-specs {
  margin: 1.1rem 0 1rem;
  border-top: 1px dashed var(--line-strong);
}
.tag-specs > div {
  display: flex; justify-content: space-between; gap: .8rem;
  padding: .42rem .1rem;
  border-bottom: 1px dashed var(--line);
  font-size: .68rem;
  letter-spacing: .04em;
}
.tag-specs dt { text-transform: uppercase; color: rgba(26,29,36,.6); }
.tag-specs dd { font-weight: 600; text-align: right; white-space: nowrap; }
.tag-price {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--disp);
  font-weight: 750;
  font-size: 1.35rem;
}
.tag-side {
  font-size: .62rem; font-weight: 600; letter-spacing: .22em;
  color: var(--cream);
  background: var(--ink);
  padding: .28rem .55rem .22rem;
  border-radius: 2px;
}
/* target flash when arriving from the bones list */
.tag.flash .tag-card {
  animation: tagflash 1.6s ease .25s;
}
@keyframes tagflash {
  0%, 100% { background: #F6F2E7; }
  25% { background: #F3E3C4; }
}

/* ============================== RIVER LIGHT ============================== */
.riverlight {
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  align-items: center;
}
.rl-frame { position: relative; max-width: 560px; margin-left: auto; }
.rl-frame img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(185,196,204,.35);
}
.rl-shimmer {
  position: absolute; inset: 0 0 2.2rem 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(216,160,82,.16) 46%,
    rgba(185,196,204,.13) 52%,
    transparent 68%);
  background-size: 320% 100%;
  animation: shimmer 13s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes shimmer {
  0%   { background-position: 110% 0; }
  55%  { background-position: -10% 0; }
  100% { background-position: -10% 0; }
}
@media (prefers-reduced-motion: reduce) { .rl-shimmer { animation: none; opacity: 0; } }
.rl-frame figcaption {
  margin-top: .7rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(185,196,204,.6);
}
.rl-copy h2 { color: var(--cream); }
.rl-copy p { max-width: 33em; margin-bottom: 1.1rem; color: rgba(237,232,221,.88); }
.rl-specs {
  margin-top: 2rem;
  border-top: 1px solid rgba(185,196,204,.3);
  max-width: 36em;
}
.rl-specs > div {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(185,196,204,.18);
  font-size: .78rem; letter-spacing: .04em;
}
.rl-specs dt { text-transform: uppercase; letter-spacing: .18em; color: var(--amber); }
.rl-specs dd { color: rgba(237,232,221,.85); }
@media (max-width: 860px) {
  .riverlight { grid-template-columns: 1fr; }
  .rl-frame { margin: 0 auto; }
}

/* ============================== LEDGER ============================== */
.ledger {
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
  max-width: 1160px;
  margin: 0 auto;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.ledger-table th {
  text-align: left;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(26,29,36,.6);
  border-bottom: 2px solid var(--line-strong);
  padding: 0 1rem .6rem 0;
}
.ledger-table td {
  vertical-align: baseline;
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 1.5rem 1.05rem 0;
  max-width: 42em;
  transition: background .3s;
}
.ledger-table tbody tr:hover td { background: rgba(158,74,50,.06); }
.ledger-table .ly {
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
  font-weight: 600;
  color: var(--brick);
  white-space: nowrap;
  padding-right: 2rem;
}
.ledger-table .lc {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .2em;
  white-space: nowrap;
  color: var(--ink);
  padding-right: 0;
  text-align: right;
}
@media (max-width: 640px) {
  .ledger-table thead { display: none; }
  .ledger-table tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .ledger-table td { display: block; border: 0; padding: 0; max-width: none; }
  .ledger-table .ly { padding-bottom: .3rem; }
  .ledger-table .lc { text-align: left; padding-top: .5rem; color: var(--brick); }
}

/* ============================== VIEWING SLIP ============================== */
.viewing {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
}
.slip {
  max-width: 620px;
  margin: 0 auto;
  background: #F6F2E7;
  border: 1.5px solid var(--line-strong);
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
  box-shadow: 0 20px 40px -24px rgba(26,29,36,.4);
}
/* perforated top edge */
.slip::before {
  content: "";
  position: absolute; top: -7px; left: 12px; right: 12px; height: 12px;
  background-image: radial-gradient(circle at 6px 6px, var(--cream-deep) 4.5px, transparent 5px);
  background-size: 22px 12px;
}
.slip-no {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1rem;
}
.slip h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.slip-dek { color: rgba(26,29,36,.75); margin-bottom: 2rem; max-width: 32em; }
.slip-row {
  display: grid;
  grid-template-columns: 9em 1fr;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.slip-row label, .slip-slots legend {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(26,29,36,.62);
}
.slip input[type="text"], .slip input[type="email"], .slip select {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  background: transparent;
  font-family: var(--body);
  font-size: 1.05rem;
  padding: .35rem .1rem;
  border-radius: 0;
  color: var(--ink);
}
.slip select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.slip input:focus, .slip select:focus {
  outline: none;
  border-bottom-color: var(--brick);
  box-shadow: 0 1.5px 0 var(--brick);
}
.slip input::placeholder { color: rgba(26,29,36,.4); }
.slip-slots {
  border: 0;
  margin: 1.6rem 0;
  display: grid; gap: .5rem;
}
.slip-slots legend { margin-bottom: .7rem; }
.slip-slots label {
  display: flex; align-items: center; gap: .8rem;
  cursor: pointer;
  font-size: .85rem;
}
.slip-slots input {
  appearance: none;
  width: 17px; height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  display: grid; place-content: center;
  cursor: pointer;
}
.slip-slots input::after {
  content: "✕";
  font-size: 12px; line-height: 1;
  color: var(--brick);
  transform: scale(0);
  transition: transform .18s var(--ease-thunk);
}
.slip-slots input:checked::after { transform: scale(1); }
.slip-slots input:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.slip-submit {
  font-family: var(--mono);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: background .3s, transform .18s var(--ease-thunk);
}
.slip-submit:hover { background: var(--brick); }
.slip-submit:active { transform: scale(.97); }
.slip-filed[hidden] { display: none; }
.slip-filed {
  margin-top: 1.2rem;
  font-size: .78rem; letter-spacing: .14em;
  color: var(--brick);
  border: 2px double var(--brick);
  border-radius: 4px;
  display: inline-block;
  padding: .6rem 1rem;
  transform: rotate(-1.5deg);
}
@media (max-width: 560px) {
  .slip-row { grid-template-columns: 1fr; gap: .3rem; }
}

/* ============================== FOOTER ============================== */
.foot {
  background: var(--ink);
  color: var(--fog);
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(185,196,204,.2);
}
.foot-mark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--cream);
}
.foot-col p { font-size: .78rem; line-height: 1.8; letter-spacing: .05em; margin-bottom: 1.2rem; color: rgba(185,196,204,.8); }
.credit {
  max-width: 1160px;
  margin: 1.6rem auto 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(185,196,204,.55);
}
.credit a { color: rgba(185,196,204,.8); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* general reveal helper */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease-hoist); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  #bonesSvg .m path { stroke-dashoffset: 0; transition: none; }
  #bonesSvg .ann { opacity: 1; transform: none; transition: none; }
  #bonesSvg .wg rect { transition: none; }
  .tag .tag-card, .tag:hover .tag-card { transition: none; }
  .tag.flash .tag-card { animation: none; }
  .mast { transition: none; }
}
