:root {
  --bg: #141018;
  --bg-deep: #0a080c;
  --gold: #ffd700;
  --gold-deep: #c9a200;
  --purple: #804080;
  --zen: #4cc9f0;
  --text: #f5f0ff;
  --muted: #9a8fb8;
  --cork: #6b4f2a;
  --note: #fff9e6;
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #2a1538 0%, var(--bg-deep) 55%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Margin dot nav */
.margin-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.margin-dots .dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.margin-dots .dot span {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.margin-dots .dot.is-active,
.margin-dots .dot:hover {
  border-color: var(--gold);
  transform: scale(1.15);
}

.margin-dots .dot.is-active span,
.margin-dots .dot:hover span {
  background: var(--gold);
}

.margin-dots .dot::after {
  content: attr(data-label);
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.margin-dots .dot:hover::after,
.margin-dots .dot:focus-visible::after {
  opacity: 1;
}

@media (max-width: 720px) {
  .margin-dots {
    right: 0.65rem;
    gap: 0.65rem;
  }

  .margin-dots .dot::after {
    display: none;
  }
}

/* Hero window frame */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 4rem clamp(1.25rem, 5vw, 4rem) 3rem;
  padding-right: 3.5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.1) contrast(1.05);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--zen);
  margin: 0 0 0.75rem;
}

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

.hero h1 .serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

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

.window-frame {
  position: relative;
  z-index: 2;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(128, 64, 128, 0.35);
  background: #1a1220;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #2a2030, #1a1220);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.chrome-dot:nth-child(2) {
  background: var(--gold-deep);
}

.chrome-dot:nth-child(3) {
  background: var(--zen);
}

.chrome-title {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.window-frame > img {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .window-frame {
    max-width: 280px;
  }
}

/* Sections */
.band {
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
  padding-right: 3.5rem;
}

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

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

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

.section-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: var(--gold);
}

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

/* Cork board */
.band--cork {
  background: linear-gradient(165deg, #1e1428 0%, var(--bg) 40%);
}

.cork-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(107, 79, 42, 0.15) 0 4px,
      rgba(90, 65, 35, 0.2) 4px 8px
    ),
    linear-gradient(145deg, #5c4224, #3d2a16);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.cork-note {
  background: var(--note);
  color: #2a2218;
  padding: 1.25rem 1.35rem;
  border-radius: 4px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt, -1deg));
}

.cork-note--tilt-a {
  --tilt: -2.5deg;
}

.cork-note--tilt-b {
  --tilt: 1.8deg;
}

.cork-note--tilt-c {
  --tilt: -0.8deg;
}

.cork-note h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #4a1020;
}

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

.pushpin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pushpin--gold {
  background: radial-gradient(circle at 30% 30%, #fff4aa, var(--gold-deep));
  top: 12%;
  left: 8%;
}

.pushpin--blue {
  background: radial-gradient(circle at 30% 30%, #aaf0ff, #2080a0);
  bottom: 18%;
  right: 12%;
}

/* Device pair */
.device-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
}

.device-shell {
  margin: 0;
  text-align: center;
}

.device-shell img {
  width: min(260px, 42vw);
  border-radius: 28px;
  box-shadow:
    0 0 0 2px rgba(76, 201, 240, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

.device-shell--offset {
  transform: translateY(24px);
}

.device-shell figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.gallery-trio img {
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 720px) {
  .gallery-trio {
    grid-template-columns: 1fr;
  }
}

/* Legal footer sheet */
.legal-sheet {
  margin: 2rem clamp(1rem, 4vw, 2rem) 3rem;
  padding-right: 2.5rem;
}

.sheet-inner {
  background: linear-gradient(180deg, rgba(42, 32, 48, 0.95), rgba(20, 16, 24, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 24px 24px 8px 8px;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.sheet-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--gold);
}

.sheet-meta {
  margin: 0.35rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.sheet-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sheet-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--zen);
}

.sheet-panel p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: rgba(245, 240, 255, 0.88);
}

.mailto-link {
  color: var(--gold);
  font-weight: 600;
}

.sheet-foot {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
}

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

  .legal-sheet {
    padding-right: 1rem;
  }
}
