:root {
  --chalk: #eef1f6;
  --sheet: #f7f8fc;
  --ink: #161b3a;
  --mute: #5c647e;
  --line: rgba(22, 27, 58, 0.14);
  --copper: #c87941;
  --copper-deep: #9a5a2a;
  --indigo: #161b3a;
  --indigo-soft: #2a3158;
  --fog: rgba(238, 241, 246, 0.92);
  --max: 1180px;
  --rail: 4.5rem;
  --display: "Futura", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ui: "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 300;
  background: var(--copper);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-family: var(--ui);
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 40;
  background: var(--indigo);
  color: #eef1f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-right: 1px solid rgba(200, 121, 65, 0.45);
}

.rail-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--copper);
}

.rail-dots {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rail-dots a {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(238, 241, 246, 0.55);
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.rail-dots a:hover,
.rail-dots a.is-active {
  background: var(--copper);
  border-color: var(--copper);
  transform: scale(1.25);
}

.rail-age {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar {
  margin-left: var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--fog);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand i {
  font-style: normal;
  color: var(--copper);
}

.menu {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 600;
}

.menu a {
  color: var(--mute);
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.menu a:hover::after,
.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--sheet);
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.stage {
  margin-left: var(--rail);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--indigo);
  color: #eef1f6;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 34rem;
  color: rgba(238, 241, 246, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-stamp {
  position: absolute;
  left: 8%;
  bottom: 12%;
  z-index: 2;
  width: min(42%, 220px);
  aspect-ratio: 1;
  border: 2px solid rgba(200, 121, 65, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eef1f6;
  background: rgba(22, 27, 58, 0.45);
  backdrop-filter: blur(4px);
  transform: rotate(-12deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease;
}

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

.btn-copper {
  background: var(--copper);
  color: #fff;
}

.btn-copper:hover {
  background: var(--copper-deep);
}

.btn-line {
  background: transparent;
  color: #eef1f6;
  outline: 1px solid rgba(238, 241, 246, 0.4);
}

.btn-ink {
  background: var(--indigo);
  color: #eef1f6;
  width: 100%;
}

.btn-ink:hover {
  background: var(--indigo-soft);
}

.chapter {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
}

.chapter-alt {
  background: var(--sheet);
}

.chapter-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: end;
  margin-bottom: 2.5rem;
  max-width: 52rem;
}

.chapter-num {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.8;
  color: var(--copper);
  letter-spacing: -0.06em;
}

.chapter-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.chapter-head p {
  grid-column: 2;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 38rem;
}

.dossier {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.dossier-note {
  border-top: 3px solid var(--indigo);
  padding-top: 1.25rem;
  display: grid;
  gap: 1rem;
  color: var(--mute);
}

.dossier-note strong {
  color: var(--ink);
  font-family: var(--ui);
}

.ledger {
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(200, 121, 65, 0.08) 0 4.5rem, transparent 4.5rem),
    var(--sheet);
}

.ledger-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  border-bottom: 1px solid var(--line);
  min-height: 4.25rem;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-idx {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--copper);
}

.ledger-body {
  padding: 0.95rem 1.1rem;
}

.ledger-body h3 {
  font-family: var(--ui);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.ledger-body p {
  font-size: 0.92rem;
  color: var(--mute);
}

.tickets {
  display: grid;
  gap: 1.15rem;
}

.ticket {
  display: grid;
  grid-template-columns: 160px 1fr 170px;
  background: var(--sheet);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--chalk);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.ticket::before {
  left: -9px;
  box-shadow: inset -1px 0 0 var(--line);
}

.ticket::after {
  right: -9px;
  box-shadow: inset 1px 0 0 var(--line);
}

.ticket:hover {
  transform: translateX(8px) rotate(-0.3deg);
  box-shadow: 12px 16px 0 rgba(22, 27, 58, 0.08);
}

.ticket-logo {
  background: #0a0a0a;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-right: 1px dashed rgba(238, 241, 246, 0.25);
}

.ticket-logo img {
  max-height: 40px;
  width: auto;
}

.ticket-main {
  padding: 1.15rem 1.25rem;
}

.ticket-main h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.ticket-meta {
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0.35rem 0 0.7rem;
}

.ticket-main ul {
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.ticket-main li {
  font-size: 0.92rem;
  color: var(--mute);
  padding-left: 0.9rem;
  position: relative;
}

.ticket-main li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}

.ticket-cta {
  padding: 1rem;
  display: grid;
  align-content: center;
  gap: 0.55rem;
  border-left: 1px dashed var(--line);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 6px,
      rgba(200, 121, 65, 0.08) 6px,
      rgba(200, 121, 65, 0.08) 7px
    );
}

.ticket-cta small {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}

.spine {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.spine-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.spine-item:last-child {
  border-bottom: 1px solid var(--line);
}

.spine-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--copper);
  letter-spacing: -0.04em;
}

.spine-item h3 {
  font-family: var(--ui);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.spine-item p {
  color: var(--mute);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.mosaic article {
  background: var(--indigo);
  color: #eef1f6;
  padding: 1.6rem;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.mosaic article:nth-child(2),
.mosaic article:nth-child(3) {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
}

.mosaic article:nth-child(4) {
  background: var(--copper);
  color: #fff;
}

.mosaic h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
  max-width: 16ch;
}

.mosaic p {
  opacity: 0.88;
  font-size: 0.98rem;
}

.mosaic article::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.guard {
  background: var(--indigo);
  color: #eef1f6;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.guard .chapter-num {
  color: var(--copper);
}

.guard .chapter-head p {
  color: rgba(238, 241, 246, 0.75);
}

.guard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}

.guard-row img {
  height: 52px;
  width: auto;
  background: #fff;
  padding: 0.3rem;
}

.guard-row img[src*="badge-a"],
.guard-row img[src*="badge-c"],
.seal img[src*="badge-a"],
.seal img[src*="badge-c"],
.footer-regs img[src*="badge-a"],
.footer-regs img[src*="badge-c"],
.help-card img[src*="badge-a"],
.help-card img[src*="badge-c"] {
  background: #0b0e1a;
  padding: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(238, 241, 246, 0.22);
}

.guard-row img[src*="badge-b"],
.seal img[src*="badge-b"],
.footer-regs img[src*="badge-b"],
.help-card img[src*="badge-b"] {
  background: #fff;
}

.seal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.seal {
  border: 1px solid rgba(238, 241, 246, 0.18);
  padding: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.seal:hover {
  transform: translateY(-5px);
  border-color: var(--copper);
}

.seal img {
  height: 58px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 0.45rem;
}

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--ui);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--copper);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 0.75rem;
  color: var(--mute);
  max-width: 46rem;
}

.page-hero {
  margin-left: var(--rail);
  padding: 3rem 0 2rem;
  border-bottom: 1px dashed var(--line);
  background: var(--sheet);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0.35rem 0 0.7rem;
}

.page-hero p {
  color: var(--mute);
  max-width: 40rem;
}

.page-hero .kicker {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
}

.site-footer {
  margin-left: var(--rail);
  background: #0f1328;
  color: rgba(238, 241, 246, 0.72);
  padding: 2.75rem 0 2rem;
  font-family: var(--ui);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.site-footer .brand {
  color: #eef1f6;
  margin-bottom: 0.65rem;
}

.footer-title {
  color: #eef1f6;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--copper);
}

.footer-bottom {
  border-top: 1px solid rgba(238, 241, 246, 0.12);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
  font-size: 0.82rem;
}

.footer-regs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.footer-regs img {
  height: 36px;
  width: auto;
  background: #fff;
  padding: 0.2rem;
}

.disclose {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  background: rgba(200, 121, 65, 0.08);
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--mute);
}

.disclose strong {
  color: var(--ink);
}

.disclose a {
  color: var(--copper-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.help-card {
  border: 1px solid var(--line);
  background: var(--sheet);
  padding: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.help-card img {
  height: 48px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 0.35rem;
  justify-self: start;
}

.help-card h3 {
  font-family: var(--ui);
  font-size: 1.05rem;
}

.help-card p,
.help-card li {
  color: var(--mute);
  font-size: 0.95rem;
}

.help-card ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.help-card .tel {
  font-family: var(--ui);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.authority-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--copper);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.guard .authority-note {
  color: rgba(238, 241, 246, 0.85);
}

.guard .authority-note a {
  color: var(--copper);
  text-decoration: underline;
}

.guard-link {
  color: var(--copper);
  text-decoration: underline;
}

.stack-gap {
  margin-top: 1.75rem;
}

.stack-gap-sm {
  margin-top: 1.5rem;
}

.stack-gap-md {
  margin-top: 2rem;
}

.measure {
  max-width: 46rem;
}

.text-mute {
  color: var(--mute);
}

@media (max-width: 980px) {
  .help-grid,
  .hero,
  .dossier,
  .mosaic,
  .seal-grid,
  .footer-grid,
  .ticket {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    clip-path: none;
    min-height: 240px;
    order: -1;
  }

  .ticket-cta {
    border-left: 0;
    border-top: 1px dashed var(--line);
  }

  .chapter-head,
  .spine-item {
    grid-template-columns: 1fr;
  }

  .chapter-head p {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.3s var(--ease),
      opacity 0.25s ease,
      visibility 0.25s ease;
    z-index: 25;
  }

  .menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
