:root {
  --bg: #050e1c;
  --bg-elev: #0c2348;
  --royal: #1769e8;
  --vivid: #268bff;
  --cyan: #42c9f5;
  --text: #f4f8ff;
  --muted: #a9c0dc;
  --cork: #c4a574;
  --cork-dark: #8b6b42;
  --pin: #e23b3b;
  --radius: 18px;
  --spine: 220px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse 120% 80% at 10% 0%, #0e3f86 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

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

.spine {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 2rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(7, 26, 53, 0.95), rgba(5, 14, 28, 0.98));
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.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);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.65rem;
}

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

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

main {
  padding: 2.5rem 2rem 4rem;
  max-width: calc(var(--max) + var(--spine));
}

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

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

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

.hero-copy .sub {
  font-size: 1.15rem;
  color: var(--cyan);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(66, 201, 245, 0.25);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(7, 26, 53, 0.55));
  pointer-events: none;
}

.cork-board {
  position: relative;
  background: linear-gradient(145deg, var(--cork) 0%, #b89562 50%, var(--cork-dark) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 4rem;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cork-board::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23000' stroke-width='0.5'/%3E%3C/svg%3E");
  border-radius: inherit;
  pointer-events: none;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

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

.note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pin);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.note h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

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

.mosaic .tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-elev);
}

.mosaic .tile.large {
  grid-row: span 2;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.mosaic figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(7, 26, 53, 0.85);
}

.legal-band {
  background: rgba(12, 35, 72, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tab-bar button {
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

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

.tab-panel {
  display: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.tab-panel h3 {
  color: var(--text);
  margin-top: 0;
}

.tab-panel p,
.tab-panel ul {
  max-width: 65ch;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

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

  .spine {
    position: relative;
    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;
    width: 100%;
  }

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

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

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

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

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

  .mosaic .tile.large {
    grid-row: span 1;
  }
}
