:root {
  --bg: #09070e;
  --bg-deep: #130d20;
  --panel: #1d142e;
  --accent: #7635f5;
  --accent-soft: #be9bff;
  --flare: #ffd42a;
  --text: #ffffff;
  --muted: #a9a0ba;
  --rule: #332843;
  --cork: #5c4a32;
  --cork-light: #7a6244;
  --font: "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  --spine-w: 11.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
}

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

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

.spine {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-mark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-mark span {
  display: block;
  color: var(--flare);
  font-size: 0.85rem;
  font-weight: 700;
}

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

.spine nav a {
  color: var(--muted);
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}

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

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

main {
  overflow-x: hidden;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.section-intro {
  max-width: 38rem;
  margin-left: auto;
  text-align: right;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

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

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: min(88vh, 720px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
}

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

.hero-tagline {
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(118, 53, 245, 0.25);
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% 12%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(255, 212, 42, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.cork-board {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06), transparent 45%),
    repeating-linear-gradient(
      92deg,
      var(--cork) 0,
      var(--cork-light) 2px,
      var(--cork) 4px
    );
  border-radius: 1rem;
  padding: 2.5rem 2rem 3rem;
  position: relative;
  min-height: 320px;
}

.cork-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.note {
  background: #f4ecd8;
  color: #2a2218;
  padding: 1.25rem 1.1rem 1.5rem;
  border-radius: 2px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--rot, -1deg));
  position: relative;
}

.note::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #c0392b;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.note:nth-child(2) {
  --rot: 2deg;
}

.note:nth-child(3) {
  --rot: -2.5deg;
}

.note h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

.note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid var(--rule);
  display: block;
  background: var(--panel);
}

.mosaic .tile-large {
  grid-row: span 2;
  min-height: 420px;
}

.mosaic .tile {
  min-height: 200px;
}

.legal-wrap {
  max-width: 52rem;
  margin-left: auto;
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: flex-end;
}

.tab-bar button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--panel);
  color: var(--muted);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-bar button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.legal-panel {
  display: none;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
}

.legal-panel.active {
  display: block;
}

.legal-panel h3 {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

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

.site-footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

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

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

  .spine nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

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

  .spine-footer {
    width: 100%;
  }

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

  .section-intro {
    text-align: left;
    margin-left: 0;
  }

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

  .mosaic .tile-large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .tab-bar {
    justify-content: flex-start;
  }

  .legal-wrap {
    margin-left: 0;
  }
}
