:root {
  color-scheme: dark;
  --bg: #080312;
  --bg-soft: #10071d;
  --panel: #160b28;
  --panel-2: #21103e;
  --text: #f7f3fb;
  --muted: #c9bad8;
  --line: rgba(226, 198, 255, .17);
  --purple: #9818e7;
  --magenta: #d500f9;
  --gold: #ffc529;
  --gold-soft: #ffdf7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 7%, rgba(143, 20, 215, .15), transparent 34rem),
    linear-gradient(180deg, #090416, #080312 38rem, #0d0618);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-soft); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--gold); color: #13051f; padding: .75rem 1rem; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,3,18,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: var(--shell); min-height: 70px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-link img { width: 150px; max-height: 48px; object-fit: contain; object-position: left center; }
.nav-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; }
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--gold); border-radius: 2px; }
.site-nav { display: none; position: absolute; inset: 70px 16px auto; padding: .75rem; background: rgba(18,8,35,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav ul, .site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-nav a { display: block; padding: .8rem .95rem; color: var(--text); text-decoration: none; border-radius: 10px; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(157,31,235,.18); color: var(--gold-soft); }

.breadcrumbs { padding-block: 1rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: #806b91; }

.hero { position: relative; overflow: hidden; padding: clamp(3.4rem, 8vw, 6.8rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: url('/assets/images/pavilion88-background-only.webp') center/cover no-repeat; opacity: .22; }
.hero-glow { position: absolute; width: 40rem; height: 40rem; right: -20rem; top: -18rem; border-radius: 50%; background: rgba(185,37,255,.16); filter: blur(50px); }
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero-copy { max-width: 680px; }
.eyebrow, .section-kicker { margin: 0 0 .65rem; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.45rem, 8vw, 5.2rem); letter-spacing: -.045em; }
.hero-intro { margin-top: 1.35rem; font-size: clamp(1rem, 2vw, 1.18rem); color: #e8dff0; }
.hero-intro p { margin-block: 0 .85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.65rem; }
.cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .82rem 1.15rem; border: 1px solid transparent; border-radius: 12px; font-weight: 850; text-decoration: none; }
.cta-primary { background: linear-gradient(135deg, var(--gold), #ff9f1a); color: #220826; box-shadow: 0 12px 32px rgba(255,184,25,.22); }
.cta-secondary { border-color: rgba(210,108,255,.5); background: rgba(128,21,193,.2); color: #fff; }
.hero-note { margin-top: 1.15rem; color: var(--muted); font-size: .88rem; }
.hero-note p { margin: 0; }
.hero-visual { margin: 0; border: 1px solid rgba(241,208,255,.2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #100720; }
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-compact .hero-grid { max-width: 880px; }
.hero-compact { padding-bottom: 3.3rem; }

.task-strip { padding-block: 3rem 1rem; }
.task-strip h2 { margin: 0 0 1.25rem; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.task-grid { display: grid; gap: .85rem; }
.task-card { position: relative; display: grid; gap: .3rem; padding: 1rem 3.25rem 1rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(35,14,65,.92), rgba(18,8,34,.92)); color: var(--text); text-decoration: none; }
.task-card strong { color: var(--gold-soft); }
.task-card span:not(.task-arrow) { color: var(--muted); font-size: .92rem; }
.task-arrow { position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; }
.task-card:hover { transform: translateY(-2px); border-color: rgba(255,198,46,.38); }

.content-layout { display: grid; gap: 2rem; padding-block: 3rem 5rem; }
.toc { align-self: start; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(20,9,38,.78); }
.toc h2 { margin: 0 0 .7rem; font-size: 1rem; color: var(--gold-soft); }
.toc ol { display: grid; gap: .4rem; margin: 0; padding-left: 1.2rem; font-size: .88rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.article-body { min-width: 0; max-width: 820px; }
.prose { color: #e9e1f0; }
.prose h2 { scroll-margin-top: 100px; margin: 3rem 0 1rem; font-size: clamp(1.55rem, 4vw, 2.35rem); color: #fff; }
.prose h3 { scroll-margin-top: 100px; margin: 2rem 0 .75rem; font-size: clamp(1.18rem, 3vw, 1.48rem); color: var(--gold-soft); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: .7rem 0 1.2rem; }
.prose li { margin-block: .35rem; }
.prose strong { color: #fff; }
.prose code { overflow-wrap: anywhere; color: var(--gold-soft); background: rgba(255,255,255,.07); padding: .15rem .35rem; border-radius: 6px; }
.prose blockquote { margin: 1.25rem 0; padding: 1rem 1.15rem; border-left: 4px solid var(--gold); background: rgba(255,197,41,.07); }
.table-scroll { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 580px; background: rgba(18,8,34,.72); }
.data-table th, .data-table td { padding: .78rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--gold-soft); background: rgba(78,18,122,.22); }
.editorial-figure { margin: 1.2rem 0 1.7rem; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.editorial-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.editorial-figure figcaption { padding: .75rem .9rem; color: var(--muted); font-size: .85rem; }
.external-link::after { content: " ↗"; font-size: .8em; }

.site-footer { border-top: 1px solid var(--line); background: #07020d; padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 180px; max-height: 58px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 430px; color: var(--muted); }
.site-footer h2 { margin: 0 0 .7rem; font-size: 1rem; color: var(--gold-soft); }
.site-footer li { margin-block: .42rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2.3rem; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); color: #9f8bab; font-size: .82rem; }
.footer-bottom p { margin: 0; }

@media (min-width: 720px) {
  :root { --shell: min(1180px, calc(100% - 56px)); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: .15rem; }
  .site-nav a { padding: .65rem .8rem; font-size: .92rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr); }
  .hero-compact .hero-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 220px minmax(0, 820px); justify-content: center; align-items: start; }
  .content-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 820px); }
  .toc { position: sticky; top: 92px; }
  .task-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.faq-list { display: grid; gap: .8rem; margin: 1.2rem 0 2rem; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(35,14,65,.9), rgba(15,6,29,.94)); overflow: hidden; }
.faq-item summary { position: relative; cursor: pointer; list-style: none; padding: 1rem 3.25rem 1rem 1.1rem; color: #fff; font-weight: 800; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; font-weight: 500; }
.faq-item[open] summary { color: var(--gold-soft); border-bottom: 1px solid var(--line); }
.faq-item[open] summary::after { content: "−"; }
.faq-item > :not(summary) { margin-inline: 1.1rem; }
.faq-item > p:first-of-type { margin-top: 1rem; }
.faq-item > p:last-child { margin-bottom: 1.1rem; }
