:root {
  --ink: #101012;
  --ink-soft: #18181b;
  --panel: #202024;
  --paper: #f3eee5;
  --paper-soft: #d4cec4;
  --muted: #aaa49b;
  --gold: #c9aa70;
  --gold-bright: #e0c48f;
  --red: #b92d30;
  --line: rgba(201, 170, 112, 0.2);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font: 700 0.78rem var(--mono);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 18, 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  flex: 0 0 auto;
  color: var(--paper);
  font: 700 clamp(1rem, 2vw, 1.25rem) var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.site-nav a {
  color: var(--paper-soft);
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.55rem 0.8rem;
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: 64vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 6.25rem 0 5.25rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(circle at 50% 38%, rgba(185, 45, 48, 0.13), transparent 28rem),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(201, 170, 112, 0.035) 48px 49px);
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.eyebrow,
.section-label,
.card-label,
.report-number {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font: 700 0.68rem var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.75rem, 6.4vw, 5.3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  margin-top: 0.45rem;
  color: var(--gold);
  font: 700 clamp(0.85rem, 2vw, 1.25rem) var(--mono);
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 690px;
  margin: 1.5rem auto 0;
  color: var(--paper-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.75rem 1.3rem;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

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

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(185, 45, 48, 0.23);
}

.button-primary:hover {
  background: #9e2528;
}

.button-secondary {
  border-color: rgba(201, 170, 112, 0.55);
  color: var(--gold-bright);
}

.button-secondary:hover {
  border-color: var(--gold-bright);
  background: rgba(201, 170, 112, 0.08);
}

.button-gold {
  background: var(--gold);
  color: #111;
}

.button-gold:hover {
  background: var(--gold-bright);
}

.section {
  padding: clamp(3.75rem, 6vw, 5.75rem) 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--ink-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.section-head-centered {
  margin-inline: auto;
  text-align: center;
}

.section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-intro,
.page-lead {
  margin: 1rem 0 0;
  color: var(--paper-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

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

.ecosystem-card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.ecosystem-card::after {
  content: "";
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: -5rem;
  bottom: -5rem;
  border: 1px solid rgba(201, 170, 112, 0.14);
  transform: rotate(45deg);
}

.ecosystem-card:hover {
  border-color: rgba(201, 170, 112, 0.55);
  transform: translateY(-4px);
}

.ecosystem-card h3 {
  margin: 0.15rem 0 1rem;
  color: var(--gold-bright);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
}

.ecosystem-card p {
  margin: 0;
  color: var(--paper-soft);
}

.ecosystem-card .card-action {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--gold);
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.works-grid,
.feature-grid,
.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.book-cover,
.author-photo {
  width: min(100%, 350px);
  margin-inline: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.book-cover {
  height: auto;
  object-fit: contain;
}

.orchestra-cover {
  aspect-ratio: auto;
}

.feature-copy h3,
.author-copy h2,
.catalogue-callout h2 {
  margin: 0 0 1rem;
  color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.feature-copy p,
.author-copy p,
.catalogue-callout p {
  color: var(--paper-soft);
}

.status-box,
.note-box {
  margin-top: 1.6rem;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem 1.2rem;
  color: var(--paper-soft);
}

.status-box strong,
.note-box strong {
  color: var(--gold-bright);
}

.human-bridge {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.bridge-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.bridge-step {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  align-items: start;
}

.bridge-step span {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 700 0.75rem var(--mono);
}

.bridge-step h3 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 1.15rem;
}

.bridge-step p {
  margin: 0.35rem 0 0;
  color: var(--paper-soft);
}

.featured-reports,
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.report-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.report-card img {
  width: 100%;
  height: clamp(280px, 26vw, 340px);
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: #0c0c0d;
}

.report-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.report-content h3 {
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.25;
}

.report-content p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 0.92rem;
}

.report-content .button {
  width: 100%;
  margin-top: auto;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.report-price {
  display: block;
  margin: 1.2rem 0 0.8rem;
  color: var(--paper);
  font: 700 0.88rem var(--mono);
}

.report-status {
  display: block;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--gold-bright);
  font: 700 0.84rem var(--mono);
}

.report-status + .button {
  margin-top: 0.8rem;
}

.catalogue-callout {
  margin-top: 2rem;
  border: 1px solid rgba(201, 170, 112, 0.45);
  background: linear-gradient(135deg, rgba(201, 170, 112, 0.09), rgba(185, 45, 48, 0.05));
  padding: clamp(1.7rem, 4vw, 3rem);
  text-align: center;
}

.cultural-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.8rem;
}

.cultural-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.cultural-card:hover {
  border-color: rgba(201, 170, 112, 0.55);
  transform: translateY(-3px);
}

.cultural-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 0.45rem;
  background: #e8e4dc;
}

.cultural-card div {
  padding: 1.3rem;
}

.cultural-card h3 {
  margin: 0 0 0.6rem;
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 400;
}

.cultural-card p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 0.9rem;
}

.author-photo {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.author-quote {
  margin: 1.8rem 0;
  border-left: 2px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1.4rem;
  color: var(--paper);
  font-size: 1.12rem;
  font-style: italic;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1.7rem, 4vw, 3rem);
}

.contact-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--paper-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #09090a;
  padding: 2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  color: var(--muted);
  font: 400 0.7rem var(--mono);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--paper-soft);
  text-decoration: none;
}

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

.page-hero {
  padding: clamp(4.75rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 10%, rgba(185, 45, 48, 0.13), transparent 24rem),
    var(--ink-soft);
}

.page-hero .container {
  max-width: 900px;
}

.catalogue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.catalogue-meta span {
  border: 1px solid var(--line);
  color: var(--paper-soft);
  padding: 0.45rem 0.7rem;
  font: 700 0.67rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reports-section {
  padding: clamp(3.75rem, 6vw, 5.5rem) 0;
}

.reports-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pack-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1.3fr;
  overflow: hidden;
  margin-top: 2.5rem;
  border: 1px solid rgba(201, 170, 112, 0.45);
  background: linear-gradient(135deg, #21170e, #111113);
}

.pack-card img {
  width: 100%;
  height: 360px;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background: #0c0c0d;
}

.pack-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 5vw, 4rem);
}

.pack-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
}

.pack-copy ul {
  color: var(--paper-soft);
}

.legal-content {
  max-width: 860px;
  padding: 4rem 0 6rem;
}

.legal-content h2 {
  margin-top: 2.4rem;
  color: var(--gold-bright);
  font-size: 1.5rem;
  font-weight: 400;
}

.legal-content p,
.legal-content li {
  color: var(--paper-soft);
}

.pending-data {
  border: 1px solid var(--red);
  background: rgba(185, 45, 48, 0.08);
  padding: 1rem 1.2rem;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.65rem;
  }

  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 16, 18, 0.99);
    padding: 0.8rem 1.25rem 1.25rem;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(201, 170, 112, 0.09);
    padding: 0.9rem 0.2rem;
    font-size: 0.72rem;
  }

  .nav-cta {
    border: 0;
  }

  .ecosystem-grid,
  .featured-reports,
  .cultural-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-card {
    min-height: 16rem;
  }

  .works-grid,
  .feature-grid,
  .author-grid,
  .human-bridge {
    grid-template-columns: 1fr;
  }

  .reverse-mobile .feature-media {
    order: -1;
  }

  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-card {
    grid-template-columns: 1fr;
  }

  .pack-card img {
    max-height: 520px;
    min-height: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
    line-height: 1.02;
  }

  .section {
    padding: 3.5rem 0;
  }

  .book-cover {
    width: min(82%, 280px);
  }

  .author-photo {
    width: min(78%, 270px);
  }

  .report-card img {
    height: 270px;
  }

  .cultural-card img {
    height: 190px;
  }

  .button-row,
  .button-row .button,
  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .footer-wrap {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
