/* 360 Degrees Interactive - cabinet.css
   Flat kebab-case class names, is- prefixed state classes.
   Dark surface, serif display, no monospace anywhere. */

:root {
  --night: #12101A;
  --night-lift: #1A1724;
  --night-sink: #0C0A12;
  --marquee-glow: #E8A33D;
  --token: #7A6BC4;
  --chalk: #EDE9F2;
  --chalk-soft: #B4AEC2;
  --chalk-faint: #77718A;
  --edge: rgba(237, 233, 242, 0.13);
  --edge-bright: rgba(237, 233, 242, 0.26);
  --round-s: 8px;
  --round-m: 16px;
  --round-l: 28px;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1240px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--marquee-glow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #F4C079; }

img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--marquee-glow);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-to-main {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marquee-glow);
  color: var(--night-sink);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--round-s) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-to-main:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- marquee (site header) ---------- */

.marquee {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 16, 26, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--edge);
}

.marquee-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}

.marquee-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  text-decoration: none;
  color: var(--chalk);
  flex-shrink: 0;
}

.marquee-disc { width: 34px; height: 34px; flex-shrink: 0; }

.marquee-name {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.marquee-ways ul {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.marquee-link {
  color: var(--chalk-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.marquee-link:hover,
.marquee-link.is-current { color: var(--chalk); border-bottom-color: var(--marquee-glow); }

.marquee-latch {
  display: none;
  background: none;
  border: 1px solid var(--edge-bright);
  border-radius: var(--round-s);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.marquee-slat { display: block; width: 17px; height: 1.5px; background: var(--chalk); transition: transform 0.2s ease, opacity 0.2s ease; }
.marquee-latch[aria-expanded="true"] .marquee-slat:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.marquee-latch[aria-expanded="true"] .marquee-slat:nth-child(2) { opacity: 0; }
.marquee-latch[aria-expanded="true"] .marquee-slat:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .marquee-latch { display: flex; }
  .marquee-ways {
    position: absolute;
    inset: 76px 0 auto 0;
    background: var(--night-lift);
    border-bottom: 1px solid var(--edge);
    display: none;
    padding: 0.75rem var(--gutter) 1.5rem;
  }
  .marquee-ways.is-open { display: block; }
  .marquee-ways ul { flex-direction: column; align-items: stretch; gap: 0; }
  .marquee-link { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--edge); }
  .marquee-link.is-current { border-bottom-color: var(--marquee-glow); }
}

/* ---------- hero ---------- */

.bezel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
}

.bezel-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bezel-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Measured, not eyeballed. The scrim was composited over the decoded hero
     at every sampled pixel under the text band, accounting for the crop that
     object-fit: cover applies at this hero height. Worst case is 5.05:1 for
     the dimmest text colour (measured 5.05:1), and the right-hand arcs stay
     visible because the last stop is fully transparent. Raising the hero
     height again would re-crop the image and invalidate this. */
  background:
    linear-gradient(97deg, rgba(12, 10, 18, 0.96) 0%, rgba(12, 10, 18, 0.92) 42%, rgba(12, 10, 18, 0.74) 62%, rgba(12, 10, 18, 0) 100%),
    linear-gradient(to bottom, rgba(12, 10, 18, 0.06), rgba(12, 10, 18, 0.20));
}

/* .bezel-inner shares an element with .shell, so declaring max-width here
   would beat .shell's 1240px and centre the hero copy instead of aligning it
   with the header. The measure lives on a child instead. */
.bezel-inner { padding-block: clamp(3.25rem, 7vw, 5rem); }
.bezel-copy { max-width: 46rem; }

.bezel-title {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  margin-bottom: 1.4rem;
}

.bezel-line {
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  color: var(--chalk-soft);
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.bezel-acts { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- buttons ---------- */

.press {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}
.press:hover { transform: translateY(-1px); }
.press.is-lit { background: var(--marquee-glow); color: #1A1206; }
.press.is-lit:hover { background: #F4C079; color: #1A1206; }
.press.is-ghost { border-color: var(--edge-bright); color: var(--chalk); }
.press.is-ghost:hover { border-color: var(--chalk-soft); color: var(--chalk); }

/* ---------- generic band ---------- */

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band.is-lifted { background: var(--night-lift); border-block: 1px solid var(--edge); }
.band.is-sunk { background: var(--night-sink); border-block: 1px solid var(--edge); }

.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.band-title { font-size: clamp(1.85rem, 3.9vw, 2.8rem); margin-bottom: 0.9rem; }
.band-line { color: var(--chalk-soft); max-width: var(--measure); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--marquee-glow);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---------- title shelf (horizontally overflowing) ---------- */

.shelf {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--edge-bright) transparent;
}
.shelf::-webkit-scrollbar { height: 7px; }
.shelf::-webkit-scrollbar-track { background: var(--edge); border-radius: 99px; }
.shelf::-webkit-scrollbar-thumb { background: var(--edge-bright); border-radius: 99px; }

.slot {
  flex: 0 0 clamp(238px, 30vw, 300px);
  scroll-snap-align: start;
  background: var(--night-lift);
  border: 1px solid var(--edge);
  border-radius: var(--round-l);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.slot-face {
  width: 54px;
  height: 54px;
  border-radius: var(--round-m);
  background: linear-gradient(150deg, rgba(232, 163, 61, 0.22), rgba(122, 107, 196, 0.24));
  border: 1px solid var(--edge-bright);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}
.slot-name { font-size: 1.24rem; }
.slot-note { color: var(--chalk-soft); font-size: 0.94rem; margin: 0; }
.slot-foot { margin-top: auto; padding-top: 0.9rem; }

.chip {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--edge-bright);
  color: var(--chalk-faint);
}
.chip.is-building { border-color: rgba(232, 163, 61, 0.5); color: var(--marquee-glow); }
.chip.is-early { border-color: rgba(122, 107, 196, 0.55); color: #A99AEB; }
.chip.is-empty { border-style: dashed; }

/* ---------- 2-up listing ---------- */

.listing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.15rem;
}

.entry {
  background: var(--night-lift);
  border: 1px solid var(--edge);
  border-radius: var(--round-l);
  padding: clamp(1.6rem, 3vw, 2.35rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.entry-name { font-size: clamp(1.3rem, 2.4vw, 1.62rem); }
.entry-body { color: var(--chalk-soft); }
.entry-body p:last-child { margin-bottom: 0; }

.entry-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.entry-facts li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.85rem;
  font-size: 0.93rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--edge);
}
.entry-facts dt, .entry-facts .fact-key { color: var(--chalk-faint); }
.entry-facts .fact-val { color: var(--chalk); min-width: 0; }
@media (max-width: 520px) {
  .entry-facts li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- prose / stacked notes ---------- */

.stack { display: grid; gap: 1.6rem; max-width: var(--measure); }
.stack-item { padding-top: 1.5rem; border-top: 1px solid var(--edge); }
.stack-item:first-child { padding-top: 0; border-top: 0; }
.stack-name { font-size: 1.32rem; margin-bottom: 0.55rem; }
.stack-body { color: var(--chalk-soft); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 2.6rem 0 0.9rem; }
.prose h3 { font-size: 1.2rem; margin: 1.9rem 0 0.6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--chalk-soft); padding-left: 1.15rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--chalk); font-weight: 600; }

.lede { font-size: 1.14rem; color: var(--chalk-soft); }

/* ---------- legal document ---------- */

.dockets {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
@media (max-width: 980px) { .dockets { grid-template-columns: 1fr; } }

.docket-index {
  position: sticky;
  top: 100px;
  border: 1px solid var(--edge);
  border-radius: var(--round-m);
  padding: 1.3rem 1.25rem;
  background: var(--night-lift);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
@media (max-width: 980px) { .docket-index { position: static; max-height: none; } }

.docket-index-title {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.docket-index-ol { list-style: none; margin: 0; padding: 0; counter-reset: dq; }
.docket-index-ol li { counter-increment: dq; }
.docket-index-a {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.4rem;
  padding: 0.4rem 0;
  color: var(--chalk-soft);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
}
.docket-index-a::before { content: counter(dq); color: var(--chalk-faint); }
.docket-index-a:hover { color: var(--marquee-glow); }

.docket-doc { min-width: 0; }

.docket-head { margin-bottom: 2.5rem; }
.docket-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 1rem; }
.docket-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--chalk-faint);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--edge);
}

.clause { margin-bottom: 2.75rem; scroll-margin-top: 100px; }
.clause-title {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.5rem;
  font-size: clamp(1.32rem, 2.6vw, 1.68rem);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--edge);
}
.clause-no { color: var(--marquee-glow); }
.clause-body { color: var(--chalk-soft); max-width: var(--measure); }
.clause-body h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: var(--chalk); margin: 1.6rem 0 0.55rem; }
.clause-body ul, .clause-body ol { padding-left: 1.15rem; margin: 0 0 1.1em; }
.clause-body li { margin-bottom: 0.5rem; }
.clause-body strong { color: var(--chalk); font-weight: 600; }
.clause-body a { overflow-wrap: anywhere; }

.callout {
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-left-width: 3px;
  border-radius: var(--round-s);
  background: rgba(232, 163, 61, 0.07);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--chalk);
}
.callout p:last-child { margin-bottom: 0; }

.ledger-scroll {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--edge);
  border-radius: var(--round-s);
  -webkit-overflow-scrolling: touch;
}
.ledger { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 34rem; }
.ledger caption {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--chalk-faint);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--edge);
}
.ledger th, .ledger td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
.ledger thead th { color: var(--chalk); font-weight: 700; font-size: 0.79rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--night-sink); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger td { color: var(--chalk-soft); }

/* ---------- contact routes ---------- */

.routes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.route {
  border: 1px solid var(--edge);
  border-radius: var(--round-m);
  padding: 1.5rem 1.45rem;
  background: var(--night-lift);
}
.route-name { font-size: 1.15rem; margin-bottom: 0.5rem; }
.route-note { color: var(--chalk-soft); font-size: 0.94rem; margin-bottom: 0.85rem; }
.route-link { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- footer ---------- */

.footlight {
  background: var(--night-sink);
  border-top: 1px solid var(--edge);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  font-size: 0.9rem;
}
.footlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footlight-grid { grid-template-columns: 1fr 1fr; } }
.footlight-brand { grid-column: 1 / -1; }
@media (min-width: 701px) { .footlight-brand { grid-column: auto; } }
.footlight-sign { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footlight-blurb { color: var(--chalk-faint); max-width: 26rem; }
.footlight-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.footlight-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footlight-col a { color: var(--chalk-soft); text-decoration: none; }
.footlight-col a:hover { color: var(--marquee-glow); }

.footlight-legal {
  border-top: 1px solid var(--edge);
  padding-top: 1.75rem;
  color: var(--chalk-faint);
  font-size: 0.84rem;
  line-height: 1.7;
  display: grid;
  gap: 0.5rem;
}
.footlight-legal p { margin: 0; }

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .lift { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .lift.is-shown { opacity: 1; transform: none; }
}

/* ---------- figure plate ---------- */

.plate { margin: 2rem 0 0; }
.plate img {
  width: 100%;
  border-radius: var(--round-l);
  border: 1px solid var(--edge);
}
.plate-cap {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--chalk-faint);
  line-height: 1.55;
  max-width: 34rem;
}
