/* ==========================================================================
   Ralliepoint — Design Tokens
   Editorial / photography-led direction
   ========================================================================== */
:root {
  /* Ink (photography sections) */
  --ink: #0a0a0a;
  --ink-elevated: #131313;
  --on-ink: #f7f5f0;
  --on-ink-muted: rgba(247, 245, 240, 0.66);
  --on-ink-faint: rgba(247, 245, 240, 0.4);
  --hairline-ink: rgba(247, 245, 240, 0.14);

  /* Paper (editorial breather sections) */
  --paper: #f3efe6;
  --on-paper: #17140f;
  --on-paper-muted: rgba(23, 20, 15, 0.62);
  --hairline-paper: rgba(23, 20, 15, 0.14);

  /* Brand accent — used only for emphasis, never as a base color */
  --accent: #d4192e;
  --accent-bright: #ef2c3f;

  /* Type */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --container: 1360px;
  --measure: 620px;
  --header-h: 96px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 260ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body, h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-3); }
}

/* ==========================================================================
   Typography
   ========================================================================== */
.kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

.on-paper .kicker,
.section--paper .kicker { color: var(--on-paper); }

.lede {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 42ch;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 8, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  transition: background var(--dur) var(--ease), height var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline-ink);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-action {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-ink);
  cursor: pointer;
}

.header-action svg { width: 20px; height: 20px; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 46px;
  width: auto;
  transition: height var(--dur) var(--ease);
}

.site-header.is-scrolled .brand img { height: 40px; }

@media (max-width: 640px) {
  .brand img { height: 38px; }
  .site-header.is-scrolled .brand img { height: 34px; }
}

/* ==========================================================================
   Nav overlay
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 8, 8, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms var(--ease);
}

.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  color: var(--on-ink);
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease);
}

.nav-overlay a:hover { opacity: 1; }

.nav-overlay-close {
  position: absolute;
  top: 25px;
  right: var(--space-4);
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-ink);
  cursor: pointer;
}

.nav-overlay-close svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .nav-overlay-close { right: var(--space-3); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,6,6,0.5) 0%, rgba(6,6,6,0) 28%, rgba(6,6,6,0) 55%, rgba(6,6,6,0.75) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-6);
  padding-top: calc(var(--header-h) + var(--space-4));
}

.hero-title {
  font-size: clamp(3rem, 8.5vw, 7rem);
  color: var(--on-ink);
}

.hero-sub {
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
}

.hero-scroll-cue .stem {
  width: 1px;
  height: 34px;
  background: var(--on-ink-faint);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue .stem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-bright);
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (max-width: 640px) {
  .hero-scroll-cue { display: none; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */
.section--paper {
  background: var(--paper);
  color: var(--on-paper);
}

.section--ink { background: var(--ink); color: var(--on-ink); }

/* ==========================================================================
   Intro statement (pull-quote breather)
   ========================================================================== */
.intro {
  padding-block: var(--space-6);
  text-align: center;
}

.intro blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  max-width: 18ch;
  margin-inline: auto;
  color: var(--on-paper);
}

/* ==========================================================================
   Editorial split panels (Discover / Drive / Connect)
   ========================================================================== */
.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  border-top: 1px solid var(--hairline-ink);
}

.panel:first-of-type { border-top: 0; }

.panel-media {
  position: relative;
  overflow: hidden;
  min-height: 46vh;
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 900ms var(--ease);
}

.panel:hover .panel-media img { transform: scale(1); }

.panel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-5);
}

.panel-text .kicker { margin-bottom: var(--space-2); }

.panel-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: var(--space-3);
}

.panel-text p {
  font-size: 1.0625rem;
  color: var(--on-ink-muted);
  max-width: 38ch;
  line-height: 1.75;
}

.panel-text .tags {
  margin-top: var(--space-3);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.panel-text .tags span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  border: 1px solid var(--hairline-ink);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.panel.is-reversed { grid-template-columns: 1fr 1fr; }
.panel.is-reversed .panel-media { order: 2; }
.panel.is-reversed .panel-text { order: 1; }

@media (max-width: 900px) {
  .panel, .panel.is-reversed {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .panel-media { order: 1 !important; min-height: 60vh; }
  .panel-text { order: 2 !important; padding: var(--space-5) var(--space-3); }
}

/* ==========================================================================
   Full-bleed breather
   ========================================================================== */
.breather {
  position: relative;
  height: 78vh;
  min-height: 420px;
  overflow: hidden;
}

.breather img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Organizer — full-bleed with overlay text
   ========================================================================== */
.organizer {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.organizer-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.organizer-media img { width: 100%; height: 100%; object-fit: cover; }

.organizer-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(6,6,6,0.86) 0%, rgba(6,6,6,0.35) 45%, rgba(6,6,6,0.05) 70%);
}

.organizer-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-6);
}

.organizer-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-block: var(--space-2);
}

.organizer-content p {
  max-width: 46ch;
  color: var(--on-ink-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.organizer-list {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.organizer-list span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink);
  border-bottom: 1px solid var(--hairline-ink);
  padding-bottom: 0.3rem;
}

.organizer-note {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--on-ink-muted);
}

/* ==========================================================================
   Sponsor — very small band
   ========================================================================== */
.sponsor {
  padding-block: var(--space-5);
  text-align: center;
}

.sponsor .container { max-width: 640px; }

.sponsor h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: var(--space-2);
}

.sponsor p {
  margin-top: var(--space-2);
  color: var(--on-paper-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Mobile apps
   ========================================================================== */
.apps {
  padding-block: var(--space-6);
  text-align: center;
}

.apps h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-top: var(--space-2);
}

.apps p { margin-top: var(--space-2); color: var(--on-ink-muted); }

.store-badges {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1rem;
  background: var(--on-ink);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  cursor: default;
}

.store-badge-img { display: block; height: 40px; width: auto; }

.store-badge .soon-pill {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212, 25, 46, 0.08);
  border: 1px solid rgba(212, 25, 46, 0.24);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  white-space: nowrap;
}

/* ==========================================================================
   About / final brand promise
   ========================================================================== */
.about {
  padding-block: var(--space-7);
}

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}

.about-media {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-media img { width: 100%; height: 100%; object-fit: cover; }

.about-text blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  color: var(--on-paper);
}

.about-text blockquote em {
  font-style: italic;
  color: var(--accent);
}

.about-text p {
  margin-top: var(--space-3);
  color: var(--on-paper-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 48ch;
}

@media (max-width: 860px) {
  .about .container { grid-template-columns: 1fr; }
  .about-media { max-width: 340px; margin-inline: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: var(--space-4);
  border-top: 1px solid var(--hairline-ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-brand img { height: 24px; }

.footer-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--on-ink-muted);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--on-ink); }

.footer-meta {
  width: 100%;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-ink);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: 0.78rem;
  color: var(--on-ink-faint);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Hidden only once JS confirms it can animate them back in (see main.js).
   Without JS, content stays fully visible instead of stuck at opacity:0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
