:root {
  --bg: #F2E3C2;
  --accent: #2E446B;
  --accent2: #734F33;
  --text: #1F242E;
  --muted: #736B61;
  --wash: #E0CC9F;
  --rail: 4.5rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(46, 68, 107, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(115, 79, 51, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--wash) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

a {
  color: var(--accent);
}

/* —— Rail tabs (desktop left / mobile bottom dock) —— */
.rail {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: var(--rail);
  top: 0;
  left: 0;
  bottom: 0;
  padding: 1.25rem 0.5rem;
  background: rgba(242, 227, 194, 0.92);
  border-right: 1px solid rgba(115, 79, 51, 0.18);
  backdrop-filter: blur(10px);
}

.rail__brand {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
}

.rail__tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.rail__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.rail__tab:hover,
.rail__tab:focus-visible {
  color: var(--accent);
  background: rgba(46, 68, 107, 0.08);
  outline: none;
}

.rail__tab.is-active {
  color: var(--accent);
  background: rgba(46, 68, 107, 0.12);
}

.rail__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.page {
  padding-left: var(--rail);
  max-width: 72rem;
  margin: 0 auto;
}

/* —— Hero collage_overlap —— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 2rem 3.5rem;
  min-height: min(88vh, 52rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero__tagline {
  margin: 0;
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--text);
}

.collage {
  position: relative;
  height: min(52vw, 28rem);
  min-height: 18rem;
}

.collage__shot {
  position: absolute;
  object-fit: cover;
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(31, 36, 46, 0.18);
  border: 3px solid rgba(242, 227, 194, 0.85);
}

.collage__shot--hero {
  width: 68%;
  height: 78%;
  left: 8%;
  top: 8%;
  z-index: 2;
  transform: rotate(-3deg);
}

.collage__shot--a {
  width: 38%;
  height: 42%;
  right: 2%;
  top: 0;
  z-index: 3;
  transform: rotate(6deg);
}

.collage__shot--b {
  width: 36%;
  height: 40%;
  right: 6%;
  bottom: 4%;
  z-index: 4;
  transform: rotate(-7deg);
}

.collage__shot--c {
  width: 32%;
  height: 34%;
  left: 0;
  bottom: 0;
  z-index: 1;
  transform: rotate(4deg);
}

/* —— Bands & alternating intros —— */
.band {
  padding: 3.5rem 2rem;
}

.band__intro {
  max-width: 36rem;
  margin-bottom: 2rem;
}

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

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

.band__intro h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--accent);
  line-height: 1.15;
}

.band__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Features icon_grid —— */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.icon-tile {
  padding: 1.35rem 1.2rem;
  background: rgba(255, 252, 245, 0.55);
  border: 1px solid rgba(115, 79, 51, 0.14);
  border-radius: 1rem;
}

.icon-tile__glyph {
  display: inline-block;
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
  color: var(--accent2);
}

.icon-tile h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

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

/* —— Screens carousel_peek —— */
.peek {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.peek__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.peek__slide {
  flex: 0 0 min(72%, 18rem);
  margin: 0;
  scroll-snap-align: start;
}

.peek__slide img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 1.1rem;
  border: 2px solid rgba(46, 68, 107, 0.2);
  box-shadow: 0 12px 28px rgba(31, 36, 46, 0.14);
  background: var(--wash);
}

.peek__slide figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.peek__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 68, 107, 0.25);
  background: rgba(255, 252, 245, 0.8);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.peek__btn:hover,
.peek__btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.peek__hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* —— Legal tab_switch —— */
.legal-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  background: rgba(224, 204, 159, 0.55);
  border-radius: 999px;
  border: 1px solid rgba(115, 79, 51, 0.16);
}

.legal-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.legal-tabs__btn.is-active {
  background: var(--accent);
  color: var(--bg);
}

.legal-panel {
  display: none;
  max-width: 40rem;
  padding: 1.5rem 1.35rem;
  background: rgba(255, 252, 245, 0.6);
  border: 1px solid rgba(115, 79, 51, 0.14);
  border-radius: 1rem;
}

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

.legal-panel h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent);
}

.legal-panel p {
  margin: 0 0 0.9rem;
  color: var(--text);
}

.legal-panel p:last-child {
  margin-bottom: 0;
}

.support-mail {
  font-weight: 600;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

.foot {
  padding: 2rem;
  border-top: 1px solid rgba(115, 79, 51, 0.16);
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Responsive: rail → bottom dock —— */
@media (max-width: 900px) {
  :root {
    --rail: 0;
  }

  .rail {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(115, 79, 51, 0.18);
  }

  .rail__brand {
    display: none;
  }

  .rail__tabs {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    overflow-x: auto;
    gap: 0.25rem;
  }

  .rail__tab {
    min-width: 4.2rem;
    flex: 1;
  }

  .page {
    padding-left: 0;
    padding-bottom: 5.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    min-height: 0;
  }

  .collage {
    height: 22rem;
    order: -1;
  }

  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band__intro--right {
    text-align: left;
    margin-left: 0;
  }

  .peek__slide {
    flex-basis: min(78%, 16rem);
  }
}

@media (max-width: 560px) {
  .band,
  .hero {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

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

  .peek__btn {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
