:root {
  --bg: #121a2b;
  --bg-soft: #1a2438;
  --gold: #c9a227;
  --crimson: #8b1e3f;
  --teal: #1e5f74;
  --amber: #d4a017;
  --paper: #e8e4dc;
  --muted: #8a9aab;
  --panel: 280px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--paper);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

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

.side-panel {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #0d1422 0%, #151f33 100%);
  border-right: 1px solid rgba(201, 162, 39, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.side-mark {
  width: 10px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--crimson));
  flex-shrink: 0;
}

.side-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 700;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  color: var(--paper);
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(201, 162, 39, 0.22);
  text-decoration: none;
}

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

.main-column {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 4rem 3rem 3rem;
}

.hero-band {
  position: absolute;
  inset: 0 0 35% 0;
  background: linear-gradient(135deg, rgba(139, 30, 63, 0.55) 0%, rgba(30, 95, 116, 0.35) 42%, transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 0 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-headline {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-tagline {
  margin: 0;
  max-width: 34rem;
  color: rgba(232, 228, 220, 0.88);
  font-size: 1.05rem;
}

.hero-visual {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.18);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.intro-left {
  text-align: left;
}

.intro-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.intro-right {
  text-align: right;
  margin-left: auto;
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-intro h2 {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

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

.capabilities {
  padding: 2rem 3rem 4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-tile {
  grid-column: span 4;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(26, 36, 56, 0.92);
  border: 1px solid rgba(138, 154, 171, 0.16);
  min-height: 180px;
}

.bento-tile.tile-wide {
  grid-column: span 8;
}

.bento-tile.tile-tall {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 100%;
}

.bento-tile.tile-accent {
  background: linear-gradient(145deg, rgba(139, 30, 63, 0.28), rgba(26, 36, 56, 0.95));
  border-color: rgba(139, 30, 63, 0.35);
}

.tile-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.bento-tile h3 {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.bento-tile p {
  margin: 0;
  color: rgba(232, 228, 220, 0.86);
  font-size: 0.96rem;
}

.screens {
  padding: 1rem 3rem 4rem;
}

.polaroid-field {
  position: relative;
  min-height: 520px;
  margin-bottom: 2.5rem;
}

.polaroid {
  position: absolute;
  width: min(280px, 42vw);
  margin: 0;
  padding: 0.75rem 0.75rem 2.4rem;
  background: #f4efe4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.polaroid img {
  width: 100%;
  border-radius: 4px;
}

.polaroid figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  color: #2a3140;
}

.polaroid.p1 {
  top: 0;
  left: 4%;
  transform: rotate(-7deg);
}

.polaroid.p2 {
  top: 48px;
  left: 34%;
  transform: rotate(4deg);
  z-index: 2;
}

.polaroid.p3 {
  top: 120px;
  right: 4%;
  transform: rotate(-3deg);
}

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

.gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.14);
}

.legal-sheet {
  margin: 0 3rem 3rem;
  padding: 2rem 2.2rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(21, 31, 51, 0.98));
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: inset 0 1px 0 rgba(232, 228, 220, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.legal-block h2 {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.legal-block p {
  margin: 0 0 0.85rem;
  color: rgba(232, 228, 220, 0.88);
  font-size: 0.95rem;
}

.support-line {
  font-size: 1.05rem;
}

.legal-copy {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 154, 171, 0.18);
  font-size: 0.82rem;
  color: var(--muted);
}

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

  .side-panel {
    position: relative;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  }

  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-foot {
    margin-top: 0;
  }

  .hero-inner,
  .legal-sheet,
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .hero,
  .capabilities,
  .screens {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .legal-sheet {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .bento-tile,
  .bento-tile.tile-wide,
  .bento-tile.tile-tall {
    grid-column: span 12;
    grid-row: auto;
  }

  .polaroid-field {
    min-height: auto;
    display: grid;
    gap: 1rem;
    padding-top: 0.5rem;
  }

  .polaroid {
    position: relative;
    width: min(320px, 100%);
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto;
  }
}
