:root {
  --bg: #3c1e6e;
  --bg-deep: #2a1450;
  --accent: #ff6b35;
  --accent2: #934cf3;
  --text: #f5f0ff;
  --muted: #c9b8e8;
  --card: rgba(36, 20, 65, 0.92);
  --spine-w: 11rem;
  --radius: 18px;
  --font: "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--spine-w) 1fr;
}

.spine {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 2rem 1.25rem 2rem 1.5rem;
  background: linear-gradient(180deg, #5c21a5 0%, var(--bg) 55%, #2a1450 100%);
  border-right: 1px solid rgba(245, 240, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spine-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.spine-brand span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.35rem;
}

.spine-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spine-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.15s, border-color 0.15s;
}

.spine-nav a:hover,
.spine-nav a:focus-visible {
  color: var(--text);
  border-left-color: var(--accent);
}

.spine-foot {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

main {
  padding: 0  clamp(1.25rem, 4vw, 3.5rem) 4rem;
  max-width: 56rem;
}

.hero-diagonal {
  position: relative;
  margin: 2rem 0 3rem;
  padding: 3rem 2rem 3.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.hero-diagonal::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -30%;
  height: 140%;
  background: linear-gradient(125deg, var(--accent2) 0%, var(--accent) 42%, transparent 68%);
  opacity: 0.55;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(42%, 280px);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-copy .kicker {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-copy p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: block;
}

.section-intro {
  text-align: left;
  margin-bottom: 1.75rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.bento-tile {
  background: var(--card);
  border: 1px solid rgba(245, 240, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.bento-tile:nth-child(1) {
  grid-column: span 4;
}

.bento-tile:nth-child(2) {
  grid-column: span 2;
}

.bento-tile:nth-child(3) {
  grid-column: span 3;
}

.bento-tile:nth-child(4) {
  grid-column: span 3;
  background: linear-gradient(145deg, rgba(147, 76, 243, 0.35), var(--card));
}

.bento-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.bento-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.92;
}

.screens-inline {
  margin-bottom: 3.5rem;
}

.screens-inline figure {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: min(220px, 38%) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.screens-inline img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.screens-inline figcaption {
  padding-top: 0.5rem;
}

.screens-inline figcaption strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.screens-inline figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-dropcap {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(245, 240, 255, 0.06);
}

.legal-dropcap h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.legal-dropcap .dropcap::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.85;
  font-weight: 900;
  color: var(--accent);
  padding-right: 0.35rem;
}

.legal-dropcap p,
.legal-dropcap ul {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-dropcap ul {
  padding-left: 1.2rem;
}

.site-footer {
  padding: 2rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(245, 240, 255, 0.1);
}

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

  .spine {
    position: relative;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .spine-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .spine-nav a {
    border-left: none;
    padding-left: 0;
  }

  .spine-foot {
    width: 100%;
    margin-top: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .bento-tile:nth-child(n) {
    grid-column: span 6;
  }

  .gallery-row {
    grid-template-columns: 1fr 1fr;
  }

  .screens-inline figure {
    grid-template-columns: 1fr;
  }
}
