/* ─────────────────────────────────────────────────────────────
   MANNIE — The court that shows its work
   Palette: obsidian / bone / brass verdict / phosphor machine
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #05070a;
  --ink-2: #0a0e14;
  --ink-3: #10161f;
  --bone: #ece5d6;
  --bone-dim: #a9a294;
  --bone-faint: #5f5a51;
  --brass: #d9a441;
  --brass-hot: #ffd27a;
  --phosphor: #7fe3d4;
  --phosphor-dim: #3c8f84;
  --dissent: #e0644f;
  --line: rgba(236, 229, 214, 0.1);
  --line-strong: rgba(236, 229, 214, 0.22);

  --display: "Fraunces", Georgia, serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 96px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── Grain ─────────────────────────────────────────────────── */

.grain-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.055;
  filter: url(#grain);
  mix-blend-mode: screen;
  animation: grain-shift 1.2s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ─── Nav ───────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-glyph {
  width: 14px;
  height: 14px;
  border: 1px solid var(--bone);
  transform: rotate(45deg);
  position: relative;
}

.wordmark-glyph::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bone);
}

.wordmark-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.docket-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.docket-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-hot);
  box-shadow: 0 0 10px var(--brass-hot);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links,
  .docket-status {
    display: none;
  }
}

/* ─── Buttons ───────────────────────────────────────────────── */

.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 10px 18px;
  font-size: 12px;
  text-transform: uppercase;
}

.btn-ghost:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn-solid {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn-solid:hover::before {
  transform: translateX(120%);
}

.btn-text {
  border-color: transparent;
  padding-left: 6px;
  padding-right: 6px;
  color: var(--bone-dim);
}

.btn-text:hover {
  color: var(--bone);
  transform: none;
}

.btn-text span {
  transition: transform 0.3s var(--ease-out);
}

.btn-text:hover span {
  transform: translateX(4px);
}

/* ─── Type ──────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(56px, 10.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.display em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.display .line {
  display: block;
  overflow: hidden;
}

h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 350;
  line-height: 1.55;
  color: var(--bone-dim);
  margin: 28px 0 36px;
}

.section-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 22px;
}

.section-head {
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 46ch);
  gap: 48px;
  align-items: end;
}

.section-head p {
  margin: 0;
  color: var(--bone-dim);
  font-weight: 350;
  font-size: 17px;
}

.section-head .section-num {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ─── Reveal ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.display.reveal .line > * ,
.display.reveal .line {
  display: block;
}

.display .line {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}

.display.in .line {
  transform: translateY(0);
}

.display.in .line:nth-child(2) {
  transition-delay: 0.12s;
}

/* ─── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 140px var(--gutter) 40px;
  isolation: isolate;
}

.quorum-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 72% 45%, rgba(217, 164, 65, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(127, 227, 212, 0.05), transparent 70%);
}

.hero-inner {
  align-self: center;
  max-width: 900px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 22px;
  gap: 24px;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.meta-v {
  font-size: 14px;
  color: var(--bone-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-v b {
  color: var(--bone);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.consensus-bar {
  display: inline-block;
  width: 90px;
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.consensus-bar i {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--phosphor-dim), var(--brass-hot));
  transition: width 0.4s var(--ease-out);
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
}

.hero-scroll span {
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--brass);
  animation: scroll-hint 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-hint {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 440px;
  }
  .hero-inner {
    align-self: start;
  }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }
  .hero-scroll {
    display: none;
  }
}

/* ─── Marquee strip ─────────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.marquee {
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 48s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--bone-dim);
  white-space: nowrap;
}

.marquee-track i {
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ─── Sections common ───────────────────────────────────────── */

section {
  position: relative;
}

.deliberation,
.record,
.articles,
.procedure,
.jurisdiction {
  padding: clamp(96px, 12vw, 180px) 0;
}

/* ─── Deliberation ──────────────────────────────────────────── */

.court {
  margin: 0 var(--gutter);
  max-width: 1500px;
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2px;
}

.case-file,
.transcript {
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.case-file {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cf-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.cf-id {
  color: var(--brass);
}

.case-file h3 {
  font-size: 30px;
  margin: 0;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 80, "WONK" 1;
}

.cf-facts {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.cf-facts div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.cf-facts dt {
  color: var(--bone-faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 3px;
}

.cf-facts dd {
  margin: 0;
  color: var(--bone-dim);
}

.cf-facts .mono {
  color: var(--phosphor-dim);
  text-transform: none;
}

.seats {
  display: grid;
  gap: 6px;
}

.seat {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  transition: background 0.3s, border-color 0.3s;
}

.seat i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bone-faint);
  transition: background 0.3s, box-shadow 0.3s;
}

.seat small {
  color: var(--bone-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seat.speaking {
  border-color: rgba(127, 227, 212, 0.4);
  background: rgba(127, 227, 212, 0.05);
}

.seat.speaking i {
  background: var(--phosphor);
  box-shadow: 0 0 12px var(--phosphor);
}

.seat.for i {
  background: var(--brass);
}

.seat.against i {
  background: var(--dissent);
}

.replay {
  margin-top: auto;
  padding: 12px 16px;
  background: transparent;
  color: var(--bone-dim);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.replay:hover {
  background: var(--bone);
  color: var(--ink);
}

.transcript {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 720px;
}

.tr-head,
.tr-foot {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  color: var(--bone-faint);
  border-bottom: 1px solid var(--line);
}

.tr-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.tr-clock {
  color: var(--phosphor);
  font-variant-numeric: tabular-nums;
}

.tr-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.tr-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  animation: line-in 0.6s var(--ease-out) both;
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tr-who {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-who b {
  color: var(--bone-dim);
  font-weight: 500;
}

.tr-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--bone);
  font-weight: 350;
}

.tr-text cite {
  font-style: normal;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border: 1px solid rgba(127, 227, 212, 0.25);
  border-radius: 3px;
  margin: 0 2px;
  white-space: nowrap;
}

.tr-line.clerk .tr-text {
  color: var(--bone-dim);
  font-style: italic;
  font-family: var(--display);
  font-size: 17px;
}

.tr-line.verdict {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.09), rgba(217, 164, 65, 0.02));
  grid-template-columns: 1fr;
}

.tr-line.verdict .tr-who {
  color: var(--brass);
}

.tr-line.verdict .tr-text {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
}

.tr-line.dissent .tr-text::before {
  content: "Dissent";
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dissent);
  border: 1px solid rgba(224, 100, 79, 0.4);
  padding: 2px 6px;
  margin-right: 10px;
  vertical-align: 2px;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: -0.15em;
  background: var(--phosphor);
  margin-left: 2px;
  animation: blink 0.9s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1000px) {
  .court {
    grid-template-columns: 1fr;
  }
  .transcript {
    min-height: 520px;
  }
  .tr-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ─── The Record ────────────────────────────────────────────── */

.record {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.record-copy p {
  color: var(--bone-dim);
  font-weight: 350;
  max-width: 52ch;
}

.record-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}

.record-points li {
  padding-left: 22px;
  position: relative;
  color: var(--bone-dim);
  font-size: 15px;
}

.record-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
}

.record-points b {
  color: var(--bone);
  font-weight: 600;
}

.ledger {
  position: relative;
  height: 560px;
  border: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}

.ledger-head {
  display: grid;
  grid-template-columns: 64px 110px 130px 1fr;
  gap: 16px;
  padding: 14px 20px;
  color: var(--bone-faint);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: relative;
  z-index: 2;
}

.ledger-scroll {
  display: flex;
  flex-direction: column;
}

.ledger-row {
  display: grid;
  grid-template-columns: 64px 110px 130px 1fr;
  gap: 16px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(236, 229, 214, 0.05);
  color: var(--bone-dim);
  animation: ledger-in 0.5s var(--ease-out) both;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes ledger-in {
  from { opacity: 0; transform: translateY(-8px); background: rgba(127, 227, 212, 0.12); }
  to { opacity: 1; transform: none; background: transparent; }
}

.ledger-row .seq {
  color: var(--bone-faint);
}

.ledger-row .type {
  color: var(--phosphor);
}

.ledger-row .type.verdict {
  color: var(--brass);
}

.ledger-row .type.dissent {
  color: var(--dissent);
}

.ledger-row .digest {
  color: var(--bone-faint);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}

@media (max-width: 1000px) {
  .record-grid {
    grid-template-columns: 1fr;
  }
  .ledger {
    height: 420px;
  }
  .ledger-head,
  .ledger-row {
    grid-template-columns: 50px 90px 100px 1fr;
    gap: 10px;
  }
}

/* ─── Articles ──────────────────────────────────────────────── */

.articles {
  overflow: hidden;
}

.article-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 1500px;
  border-top: 1px solid var(--line);
}

.article {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.article::before {
  content: "";
  position: absolute;
  left: -100vw;
  right: -100vw;
  top: 0;
  bottom: 0;
  background: rgba(217, 164, 65, 0.035);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.article:hover::before,
.article.open::before {
  opacity: 1;
}

.article-toggle {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  width: 100%;
  padding: 44px 0;
  cursor: pointer;
  position: relative;
  transition: padding-left 0.5s var(--ease-out);
}

.article-toggle:focus-visible {
  outline: 1px solid var(--phosphor);
  outline-offset: 8px;
}

.article:hover .article-toggle,
.article.open .article-toggle {
  padding-left: 16px;
}

.art-num {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.8;
  font-weight: 300;
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -0.04em;
}

.art-head h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  margin-bottom: 14px;
}

.art-head p {
  margin: 0;
  color: var(--bone-dim);
  font-weight: 350;
  max-width: 62ch;
  font-size: 17px;
}

.art-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.art-cue i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--phosphor);
  transform: rotate(45deg);
  transition: transform 0.5s var(--ease-out), background 0.3s;
}

.art-cue-close {
  display: none;
}

.article.open .art-cue-open {
  display: none;
}

.article.open .art-cue-close {
  display: inline;
}

.article.open .art-cue i {
  transform: rotate(225deg);
  background: var(--phosphor);
}

.art-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease-out);
}

.article.open .art-body {
  grid-template-rows: 1fr;
}

.art-body-inner {
  overflow: hidden;
  min-height: 0;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 0 0 48px 220px;
  border: 1px solid rgba(217, 164, 65, 0.25);
  background: rgba(217, 164, 65, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.7s var(--ease-out) 0.15s;
}

.article.open .art-grid {
  opacity: 1;
  transform: none;
}

.art-grid section {
  background: var(--ink);
  padding: 28px 30px 32px;
}

.art-grid h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

.art-grid p {
  margin: 0;
  color: var(--bone);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .article-toggle {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .art-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
}

/* ─── Procedure ─────────────────────────────────────────────── */

.procedure {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-inline: var(--gutter);
  max-width: none;
  padding: 0;
}

@media (min-width: 1600px) {
  .steps {
    max-width: 1500px;
    margin-inline: auto;
  }
}

.step {
  background: var(--ink-2);
  padding: 36px 32px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.step::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}

.step:hover {
  background: var(--ink-3);
}

.step:hover::after {
  border-color: rgba(217, 164, 65, 0.5);
  transform: rotate(45deg) scale(1.15);
}

.step-n {
  display: block;
  color: var(--brass);
  margin-bottom: 40px;
  font-size: 12px;
}

.step h3 {
  font-size: 30px;
  margin-bottom: 14px;
}

.step p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 15px;
  font-weight: 350;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ─── Jurisdiction ──────────────────────────────────────────── */

.juris-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
}

.juris-copy p {
  color: var(--bone-dim);
  font-weight: 350;
  max-width: 54ch;
  font-size: 18px;
}

.juris-cases {
  display: grid;
  gap: 2px;
  align-self: center;
}

.jc {
  padding: 26px 28px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  transition: border-color 0.3s, background 0.3s;
}

.jc:hover {
  border-color: rgba(127, 227, 212, 0.35);
  background: rgba(127, 227, 212, 0.03);
}

.jc-k {
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
  font-variation-settings: "SOFT" 80, "WONK" 1;
}

.jc p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 15px;
  font-weight: 350;
}

@media (max-width: 1000px) {
  .juris-inner {
    grid-template-columns: 1fr;
  }
  .jc {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ─── Docket / CTA ──────────────────────────────────────────── */

.docket {
  padding: clamp(120px, 16vw, 240px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.docket::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vw, 1400px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(217, 164, 65, 0.14), transparent 45%),
    repeating-radial-gradient(circle at center, transparent 0 60px, rgba(236, 229, 214, 0.04) 60px 61px);
  pointer-events: none;
  animation: rings 40s linear infinite;
}

@keyframes rings {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.docket-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.docket .display {
  font-size: clamp(44px, 7.4vw, 120px);
}

.docket-form {
  margin: 48px auto 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
}

.docket-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  background: rgba(236, 229, 214, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.docket-form input:focus {
  border-color: var(--phosphor);
  background: rgba(127, 227, 212, 0.05);
}

.docket-form input::placeholder {
  color: var(--bone-faint);
}

.docket-note {
  color: var(--bone-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin: 0;
}

@media (max-width: 640px) {
  .docket-form {
    flex-direction: column;
  }
}

/* ─── Footer ────────────────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--bone-faint);
  flex-wrap: wrap;
  gap: 16px;
}

.foot-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.foot-left .wordmark-text {
  color: var(--bone);
}

.foot-right {
  display: flex;
  gap: 24px;
}

.foot-right a:hover {
  color: var(--bone);
}

/* ─── Reduced motion ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .display .line {
    opacity: 1;
    transform: none;
  }
  .grain {
    display: none;
  }
}
