/* ==========================================================================
   RHYDE — Indoor Cycling
   Design tokens
   ========================================================================== */

:root {
  --bg:          #0b0908;
  --bg-panel:    #14100c;
  --bg-panel-2:  #1c1611;
  --line:        #2b2319;
  --line-soft:   #1e1811;

  --accent:      #cf9a52;
  --accent-2:    #f0c383;
  --accent-dim:  rgba(207, 154, 82, 0.35);
  --accent-glow: rgba(207, 154, 82, 0.55);

  --text:        #ece4d8;
  --text-muted:  #948c7e;
  --text-faint:  #665f54;

  --display:     "Montserrat", sans-serif;
  --body:        "Inter", sans-serif;
  --mono:        "JetBrains Mono", monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 100;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Eyebrow / labels
   ========================================================================== */

.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   Signature motif — the light spine
   The studio's real identity is edge-lit vertical strips of amber light
   framing a dark room. We carry that as a running "spine" that lights up
   next to section headings, instead of a decorative rule.
   ========================================================================== */

.spine {
  position: relative;
  padding-left: 28px;
}

.spine::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  box-shadow: 0 0 14px 1px var(--accent-glow);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand .mark {
  width: 22px;
  height: auto;
  flex-shrink: 0;
  display: inline-block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text); }

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-cta {
  border: 1px solid var(--line);
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2) !important;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover { border-color: var(--accent); background: rgba(207,154,82,0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 40px; height: 40px;
  cursor: pointer;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-book-btn {
  display: none;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2) !important;
  border: 1px solid var(--line);
  padding: 8px 12px;
  white-space: nowrap;
}
.mobile-book-btn:hover { border-color: var(--accent); }

@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column;
    align-items: stretch; justify-content: flex-start; padding: 20px var(--gutter) 40px; gap: 0;
    transform: translateX(100%); transition: transform 0.35s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 200;
    letter-spacing: 0.04em;
    text-transform: none;
    text-align: left;
    padding: 22px 4px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text-muted);
  }
  .main-nav a[aria-current="page"] { color: var(--accent-2); background: none; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav .nav-cta {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-family: var(--body);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
  }
  .main-nav .nav-cta:hover { border-color: var(--accent); color: var(--accent-2); }
  .nav-toggle { display: block; }
  .mobile-book-btn { display: inline-block; }
  .site-header { background: var(--bg); backdrop-filter: none; }
}

/* Fully opaque header while the mobile menu is open, so no page content shows through */
.site-header.nav-open {
  background: var(--bg);
  backdrop-filter: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b0908;
}
.btn-primary:hover { box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--accent-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-bg::after {
  content: "";
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,9,8,0.15) 0%, rgba(11,9,8,0.35) 45%, var(--bg) 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 0.1em;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
  color: var(--accent-2);
  max-width: 20ch;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-2);
}

.hero-sub {
  margin-top: 26px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 400;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Elegant slide-in reveal for the hero content */
@keyframes hero-slide-in {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta-top {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.hero-kicker,
.hero h1,
.hero-tagline,
.hero-cta-top,
.hero-sub,
.hero-actions {
  opacity: 0;
  animation: hero-slide-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-kicker    { animation-delay: 0.6s; }
.hero h1        { animation-delay: 0.6s; }
.hero-tagline   { animation-delay: 0.85s; }
.hero-cta-top   { animation-delay: 1.05s; }
.hero-sub       { animation-delay: 1.25s; }
.hero-actions   { animation-delay: 1.25s; }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero h1, .hero-tagline, .hero-cta-top, .hero-sub, .hero-actions {
    animation: none;
    opacity: 1;
  }
}

.home-hero .hero-bg {
  filter: none;
}
.home-hero .hero-fade {
  background: none;
}

@media (max-width: 720px) {
  .home-hero .hero-bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 145vh;
    background-position: 50% 100%;
  }
}

.home-hero h1 {
  font-family: "Poppins", sans-serif;
}
.page-hero {
  min-height: 46vh;
}
.page-hero .hero-content { padding: 60px 0; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); }

/* Homepage hero — push subtext/buttons below the fold, heading stays visible on load */
.home-hero {
  min-height: 0;
  align-items: flex-start;
}
.home-hero .hero-content { padding-top: 0; padding-bottom: 70px; }
.home-hero h1 { margin-top: -20px; }
.home-hero .hero-tagline { margin-top: 2px; }
.home-hero .hero-sub { margin-top: 120vh; }

@media (min-width: 721px) {
  .home-hero .hero-sub { font-size: 27px; max-width: 60ch; margin-top: calc(120vh - 140px); }
}

@media (max-width: 720px) {
  .home-hero .hero-sub { margin-top: 87vh; font-size: 15px; }
  .home-hero .hero-content { padding-bottom: 24px; }
  .home-hero .hero-tagline { margin-top: 6px; }
  .home-hero h1 {
    font-size: clamp(40px, 11.5vw, 58px);
    letter-spacing: 0.03em;
    margin-top: 4px;
  }
  .hero-cta-top { margin-top: 18px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 18px;
  max-width: 14ch;
}

.section-head p {
  max-width: 38ch;
  color: var(--text-muted);
  padding-bottom: 6px;
}

@media (max-width: 720px) {
  section { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
}

/* ==========================================================================
   Philosophy / stats strip
   ========================================================================== */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 40px var(--gutter);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }

.stat .num {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent-2);
}
.stat .label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 780px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Cards — classes / pricing
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.card {
  background: var(--bg);
  padding: 40px 34px;
  transition: background 0.25s ease;
}

.card:hover { background: var(--bg-panel); }

.card .index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.card h3 {
  margin-top: 20px;
  font-size: 22px;
}

.card p.desc {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.card .meta {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

.swipe-hint { display: none; }

.grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  .grid-5 { gap: 8px; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .grid-2 { gap: 8px; }
}

/* Pricing */

.price-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 40px -10px var(--accent-glow);
}

.price-card .tag {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: #0b0908;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
}

.price-card h3 { font-size: 20px; min-height: 56px; display: flex; align-items: flex-start; }

.price-card .price {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 42px;
  color: var(--accent-2);
}
.price-card .price span {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--body);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.price-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.price-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.price-card .btn { margin-top: 34px; width: 100%; justify-content: center; }

/* ==========================================================================
   Schedule / departure board (rooster.html)
   ========================================================================== */

.board {
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.board-row {
  display: grid;
  grid-template-columns: 90px 1fr 140px 100px;
  align-items: center;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}

.board-row:last-child { border-bottom: none; }

.board-row.head {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 14px;
  padding-bottom: 14px;
}

.board-row .time { color: var(--accent-2); font-size: 15px; }
.board-row .class-name { font-family: var(--body); color: var(--text); font-size: 15px; }
.board-row .class-name small { display: block; font-family: var(--mono); color: var(--text-faint); font-size: 11px; margin-top: 4px; letter-spacing: 0.04em; }
.board-row .coach { color: var(--text-muted); font-size: 13px; }
.board-row .status { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.board-row .status.open { color: #7fae7a; }
.board-row .status.full { color: #a8695c; }

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.day-tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
}

.day-tab.active, .day-tab:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.day-panel { display: none; }
.day-panel.active { display: block; }

@media (max-width: 700px) {
  .board-row { grid-template-columns: 60px 1fr 70px; padding: 16px var(--gutter); gap: 6px; }
  .board-row .coach { display: none; }
  .board-row.head span:nth-child(3) { display: none; }
}

/* ==========================================================================
   Split image/text blocks
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img { width: 100%; height: 560px; object-fit: cover; }

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split img { height: 340px; }
}

/* ==========================================================================
   Accordion — FAQ questions that expand on click
   ========================================================================== */

.accordion {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.accordion-question:hover { color: var(--accent-2); }

.accordion-icon {
  flex-shrink: 0;
  color: var(--accent-2);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.open .accordion-answer {
  opacity: 1;
}

.accordion-answer p {
  padding: 0 4px 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 65ch;
}

/* ==========================================================================
   Values list (over-ons)
   ========================================================================== */

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 32px;
}

.value {
  background: var(--bg);
  padding: 24px;
}

.value .num { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.value h4 { margin-top: 14px; font-size: 19px; }
.value p { margin-top: 12px; color: var(--text-muted); font-size: 14px; }

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

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.contact-grid > div { background: var(--bg); padding: 32px; }

.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.field input, .field textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 14.5px;
  resize: vertical;
}

.field input:focus, .field textarea:focus { border-color: var(--accent); }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-faint); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; align-self: center; }
.info-row .v { color: var(--text); text-align: right; }

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

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cta-band h2 { font-size: clamp(28px, 5vw, 48px); max-width: 20ch; margin: 0 auto; }
.cta-band .btn { margin-top: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-brand p { max-width: 32ch; color: var(--text-muted); font-size: 14px; margin-top: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--accent-2); }

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Coverflow carousel — center slide flat, side slides tilted in 3D
   ========================================================================== */

.coverflow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 420px;
  margin-top: 56px;
  perspective: 1400px;
  overflow: hidden;
}

.coverflow-track {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  transform-style: preserve-3d;
}

.coverflow-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 380px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease, filter 0.55s ease;
  will-change: transform;
}

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

.coverflow-arrow {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.coverflow-arrow:hover { border-color: var(--accent); color: var(--accent-2); }

.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.coverflow-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.coverflow-dots .dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .coverflow { height: 320px; gap: 8px; }
  .coverflow-slide { width: 240px; height: 280px; }
  .coverflow-arrow { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .coverflow-slide { transition: none !important; }
}

/* ==========================================================================
   Homepage opening animation — a curtain splits open from the center
   ========================================================================== */

.page-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.page-intro-overlay .panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--bg);
}

.page-intro-overlay .panel.left {
  left: 0;
  animation: curtain-left 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: 0.5s;
}

.page-intro-overlay .panel.right {
  right: 0;
  animation: curtain-right 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes curtain-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes curtain-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .page-intro-overlay { display: none; }
}

/* ==========================================================================
   Sfeer box — a bordered panel with a slow, breathing gold glow
   ========================================================================== */

.sfeer-box {
  position: relative;
  border: 1px solid var(--line);
  padding: 70px var(--gutter);
  overflow: hidden;
  background: var(--bg-panel);
}

.sfeer-box-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.35;
  animation: sfeer-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sfeer-breathe {
  0%, 100% { opacity: 0.22; transform: translate(-50%, -50%) scale(0.9); }
  50%      { opacity: 0.42; transform: translate(-50%, -50%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .sfeer-box-glow { animation: none; opacity: 0.3; }
}

/* ==========================================================================
   Newsletter signup popup
   ========================================================================== */

.newsletter-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11, 9, 8, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.newsletter-overlay.open {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 44px 36px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-overlay.open .newsletter-modal {
  transform: translateY(0) scale(1);
}

.newsletter-modal h3 {
  font-size: 24px;
}

.newsletter-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}
.newsletter-close:hover { color: var(--accent-2); }

.newsletter-form input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 14.5px;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); outline: none; }

.newsletter-dismiss {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  cursor: pointer;
}
.newsletter-dismiss:hover { color: var(--text-muted); }

@media (max-width: 480px) {
  .newsletter-modal { padding: 36px 26px; }
}

@media (max-width: 700px) {
  .price-card { padding: 14px 10px; }
  .price-card h3 { font-size: 13px; min-height: 34px; }
  .price-card .price { font-size: 20px; margin-top: 8px; }
  .price-card .price span { font-size: 10px; display: block; }
  .price-card ul { gap: 8px; margin-top: 14px; }
  .price-card li { font-size: 10.5px; padding-left: 14px; }
  .price-card .btn { margin-top: 16px; padding: 10px 8px; font-size: 10px; }
  .price-card .tag { font-size: 8px; padding: 4px 6px; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
