/* =========================================================
   RiderPulse — custom.css
   Light editorial luxury · cream / charcoal-ink / soft gold
   Dark register reserved for cinematic hero + night band only.
   Mobile-first, 320px – 3840px, no horizontal overflow.
   ========================================================= */

:root {
  --paper: #F7F3EC;
  --paper-deep: #EDE7DC;
  --ink: #2B2622;
  --ink-soft: #5F564C;
  --ink-mute: #9C9186;
  --gold: #9C7B3E;
  --gold-soft: #C9A962;
  --gold-bright: #D4B978;
  --noir: #141110;
  --noir-soft: #1E1A17;
  --cream: #F1ECE2;
  --cream-mid: #C7BFB2;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

body.rp {
  background-color: var(--paper);
  color: var(--ink-soft);
  overflow-x: hidden;
  cursor: none;
}

body.rp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.rp.is-touch,
body.rp.no-custom-cursor {
  cursor: auto;
}

::selection {
  background: rgba(156, 123, 63, 0.22);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--gold-soft);
  color: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  cursor: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Scroll progress ─── */
.rp-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.rp-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 10px rgba(156, 123, 63, 0.3);
}

/* ─── Custom cursor — soft gold ring ─── */
.rp-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rp-cursor.is-on { opacity: 1; }

.rp-cursor__ring {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid rgba(156, 123, 63, 0.4);
  border-radius: 50%;
  transition: transform 0.25s ease, border-color 0.3s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

.rp-cursor.is-hover .rp-cursor__ring {
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-color: rgba(156, 123, 63, 0.7);
}

.rp-cursor.is-dark .rp-cursor__ring {
  border-color: rgba(212, 185, 120, 0.55);
}

.rp-cursor__dot {
  position: absolute;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}

.rp-cursor.is-dark .rp-cursor__dot {
  background: var(--gold-bright);
}

/* =========================================================
   NAVIGATION — rp-edit-nav
   Transparent over hero → solid cream on scroll
   ========================================================= */
.rp-edit-nav {
  --nav-fg: var(--cream);
  --nav-fg-mute: rgba(241, 236, 226, 0.68);
  --nav-line: rgba(241, 236, 226, 0.3);
  --nav-bg: transparent;
  background: var(--nav-bg);
  transition: background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
  color: var(--nav-fg);
}

/* default: solid on every page except the homepage hero */
.rp-edit-nav {
  --nav-fg: var(--ink);
  --nav-fg-mute: rgba(43, 38, 34, 0.62);
  --nav-line: rgba(43, 38, 34, 0.1);
  --nav-bg: rgba(247, 243, 236, 0.94);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-page="index.php"] .rp-edit-nav:not(.is-scrolled),
body[data-page="about.php"] .rp-edit-nav:not(.is-scrolled) {
  --nav-fg: var(--cream);
  --nav-fg-mute: rgba(241, 236, 226, 0.7);
  --nav-line: rgba(241, 236, 226, 0.28);
  --nav-bg: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rp-edit-nav.is-scrolled {
  box-shadow: 0 12px 32px -18px rgba(43, 38, 34, 0.25);
}

.rp-edit-nav__hairline {
  height: 1px;
  background: var(--nav-line);
  transition: background 0.5s var(--ease-soft);
}

.rp-edit-nav__brand {
  color: var(--nav-fg);
  transition: opacity 0.3s;
}

.rp-edit-nav__brand:hover {
  opacity: 0.82;
}

.rp-edit-nav__link {
  position: relative;
  color: var(--nav-fg-mute);
  transition: color 0.35s;
  padding-bottom: 3px;
}

.rp-edit-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: width 0.4s var(--ease-soft);
}

.rp-edit-nav__link:hover,
.rp-edit-nav__link.is-active {
  color: var(--nav-fg);
}

.rp-edit-nav__link:hover::after,
.rp-edit-nav__link.is-active::after {
  width: 100%;
}

.rp-edit-nav__toggle span {
  background: var(--nav-fg);
  transition: background 0.35s, transform 0.35s, opacity 0.35s;
}

.rp-edit-nav__toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.rp-edit-nav__toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ─── Mobile slide-down panel ─── */
.rp-edit-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 6.5rem 2rem 3rem;
  background: var(--paper);
  border-bottom: 1px solid rgba(43, 38, 34, 0.08);
  box-shadow: 0 24px 48px -24px rgba(43, 38, 34, 0.22);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.45s var(--ease-soft), transform 0.5s var(--ease-soft), visibility 0.45s;
  max-height: 100vh;
  overflow-y: auto;
}

.rp-edit-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rp-edit-mobile a {
  color: var(--ink);
  transition: color 0.3s;
}

.rp-edit-mobile a.is-active,
.rp-edit-mobile a:hover {
  color: var(--gold);
}

.rp-edit-mobile__rule {
  width: 2.5rem;
  height: 1px;
  background: rgba(156, 123, 63, 0.4);
  margin: 2rem auto;
}

/* =========================================================
   LINKS / CTA — rp-link-cta (soft gold text, underline morph)
   ========================================================= */
.rp-link-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: none;
  border: none;
  padding: 0 0 0.35rem;
  cursor: pointer;
  appearance: none;
  transition: color 0.35s;
}

.rp-link-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.5s var(--ease-soft);
}

.rp-link-cta:hover {
  color: var(--ink);
}

.rp-link-cta:hover::after {
  right: 0;
}

.rp-link-cta--dark {
  color: var(--gold-bright);
}

.rp-link-cta--dark:hover {
  color: var(--cream);
}

.rp-link-cta--boxed {
  padding: 0.85rem 1.6rem 0.8rem;
  border: 1px solid rgba(156, 123, 63, 0.35);
}

.rp-link-cta--boxed::after {
  display: none;
}

.rp-link-cta--boxed:hover {
  border-color: var(--gold);
  background: rgba(156, 123, 63, 0.06);
}

.btn-magnetic {
  will-change: transform;
}

/* ─── Play CTA (hero) ─── */
.play-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.play-cta__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 185, 120, 0.4);
  background: rgba(30, 26, 23, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
  transition: border-color 0.35s, transform 0.35s var(--ease-soft);
}

.play-cta__ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 185, 120, 0.18);
  animation: playRingPulse 3s ease-in-out infinite;
}

@keyframes playRingPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.play-cta__icon {
  color: var(--gold-bright);
  font-size: 0.7rem;
  transform: translateX(1px);
}

.play-cta:hover .play-cta__ring {
  border-color: rgba(212, 185, 120, 0.8);
  transform: scale(1.06);
}

/* ─── Rules / lines ─── */
.rp-rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.rp-rule--center {
  margin-left: auto;
  margin-right: auto;
  background: var(--gold-soft);
  width: 2.5rem;
}

.rp-rule--sm {
  width: 1.75rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .rp-rule--sm { margin-left: 0; margin-right: 0; }
}

.gold-line-draw__path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.gold-line-draw.is-drawn .gold-line-draw__path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease-soft);
}

/* ─── Eyebrow label ─── */
.rp-eyebrow {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Sections ─── */
.rp-section {
  position: relative;
  background: var(--paper);
}

.rp-section--deep {
  background: var(--paper-deep);
}

/* ─── Images ─── */
.img-warm {
  filter: saturate(1.04) contrast(1.02) brightness(1.01) sepia(0.03);
}

.img-night {
  filter: saturate(0.75) contrast(1.1) brightness(0.8) sepia(0.04);
}

/* =========================================================
   1. CINEMATIC HERO (dark register)
   ========================================================= */
.cine-hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--noir);
}

.cine-hero__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cine-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}

.cine-hero__img {
  width: 112%;
  height: 112%;
  object-fit: cover;
  margin: -6%;
  transform: scale(1);
  transition: none;
}

.cine-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 17, 16, 0.5) 0%,
    rgba(20, 17, 16, 0.22) 30%,
    rgba(20, 17, 16, 0.5) 62%,
    rgba(20, 17, 16, 0.92) 100%
  );
}

.cine-hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(20, 17, 16, 0.6) 100%);
}

.cine-hero__letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 3vh;
  min-height: 18px;
  background: #0a0908;
  z-index: 6;
  pointer-events: none;
}

.cine-hero__letterbox--top { top: 0; }
.cine-hero__letterbox--bottom { bottom: 0; }

.cine-hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 9rem;
}

.cine-hero__title {
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.5);
}

.cine-hero__line-inner {
  display: block;
  /* Visible by default; GSAP fromTo enhances when available */
  transform: none;
}

[data-hero-fade] {
  opacity: 1;
  visibility: visible;
}

.cine-hero__stats {
  position: absolute;
  z-index: 5;
  bottom: 5.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .cine-hero__stats {
    bottom: 6.25rem;
    gap: 2.75rem;
  }
}

.hero-stat {
  text-align: center;
}

.hero-stat--divide {
  position: relative;
  padding-left: 1.5rem;
}

.hero-stat--divide::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(241, 236, 226, 0.18);
}

@media (min-width: 640px) {
  .hero-stat--divide { padding-left: 2.75rem; }
}

.cine-hero__scroll {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .cine-hero__scroll { display: flex; }
}

.cine-hero__scroll-line {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold-bright), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 639px) {
  .cine-hero__content {
    padding-top: 7rem;
    padding-bottom: 11rem;
  }
}

/* =========================================================
   STORY — pull quote
   ========================================================= */
.rp-pull-quote {
  position: relative;
}

.rp-pull-quote::before {
  content: '"';
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: rgba(156, 123, 63, 0.2);
  font-size: 4.5rem;
  line-height: 0;
  margin-bottom: -1.25rem;
}

/* =========================================================
   LIFESTYLE — asymmetric 60/40 editorial rows
   ========================================================= */
.rp-editorial-stack {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .rp-editorial-stack { padding: 0 2rem; gap: 7rem; }
}

.rp-editorial-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .rp-editorial-row {
    grid-template-columns: 6fr 4fr;
    gap: 4.5rem;
  }
  .rp-editorial-row.is-reversed {
    grid-template-columns: 4fr 6fr;
  }
  .rp-editorial-row.is-reversed .rp-editorial-row__media {
    order: 2;
  }
  .rp-editorial-row.is-reversed .rp-editorial-row__text {
    order: 1;
    text-align: right;
  }
  .rp-editorial-row.is-reversed .rp-editorial-row__text > * {
    margin-left: auto;
  }
}

/* ─── Borderless folio card — image + caption only ─── */
.rp-folio-card {
  display: block;
}

.rp-folio-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.rp-folio-card__frame img {
  transition: transform 1s var(--ease-soft);
}

.rp-editorial-row:hover .rp-folio-card__frame img,
.rp-folio-card:hover .rp-folio-card__frame img {
  transform: scale(1.045);
}

.rp-folio-card__cap {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.rp-folio-card__accent {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold-soft);
  flex-shrink: 0;
}

/* =========================================================
   GALLERY — soft masonry
   ========================================================= */
.rp-soft-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .rp-soft-masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
  }
}

.rp-folio-card--gallery:nth-child(3n+2) {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .rp-folio-card--gallery:nth-child(5n+3) {
    margin-top: 3.5rem;
  }
}

/* ─── Night band ─── */
.rp-night-band {
  position: relative;
  background: var(--noir);
  overflow: hidden;
}

.rp-night-strip {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  padding: 0 1.25rem 1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rp-night-strip::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .rp-night-strip {
    padding: 0 2rem 1rem;
    justify-content: center;
  }
}

.rp-night-strip__item {
  flex: 0 0 72%;
  scroll-snap-align: center;
  max-width: 340px;
}

@media (min-width: 640px) {
  .rp-night-strip__item {
    flex: 0 0 28%;
    max-width: 320px;
  }
}

.rp-night-strip__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 226, 0.1);
}

.rp-night-strip__frame img {
  transition: transform 1s var(--ease-soft);
}

.rp-night-strip__item:hover .rp-night-strip__frame img {
  transform: scale(1.05);
}

/* =========================================================
   COMMUNITY — borderless member cards
   ========================================================= */
.rp-member-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.rp-member-card__frame img {
  transition: transform 0.9s var(--ease-soft);
}

.rp-member-card:hover .rp-member-card__frame img {
  transform: scale(1.05);
}

/* ─── Quiet quotes ─── */
.rp-quiet-quote {
  padding: 0;
}

.rp-quiet-quote__avatar {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(156, 123, 63, 0.25);
}

/* =========================================================
   ARTICLES — magazine list
   ========================================================= */
.rp-article-list {
  display: flex;
  flex-direction: column;
}

.rp-article-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(43, 38, 34, 0.1);
}

.rp-article-list .rp-article-row:first-child {
  border-top: none;
}

@media (min-width: 640px) {
  .rp-article-row {
    grid-template-columns: 7rem 1fr;
    gap: 2rem;
  }
}

.rp-article-row__date {
  font-size: 1.5rem;
  color: rgba(156, 123, 63, 0.4);
  line-height: 1;
}

.rp-drop-cap::first-letter {
  float: left;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 3rem;
  line-height: 0.8;
  padding-right: 0.5rem;
  color: var(--gold);
}

/* =========================================================
   PAGE MASTHEAD — cream band (news / services / contact)
   ========================================================= */
.rp-page-masthead {
  position: relative;
  background: linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 100%);
  padding: 9.5rem 0 5rem;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .rp-page-masthead { padding: 11rem 0 6rem; }
}

.rp-page-masthead__mark {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13rem;
  line-height: 1;
  color: rgba(156, 123, 63, 0.06);
  pointer-events: none;
  white-space: nowrap;
}

.rp-page-masthead__inner {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ABOUT HERO — cinematic photo banner + motion
   ========================================================= */
.rp-about-hero {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--noir);
  padding: 7.5rem 0 5rem;
}

@media (min-width: 768px) {
  .rp-about-hero {
    min-height: 78vh;
    min-height: 78svh;
    padding: 8.5rem 0 5.5rem;
  }
}

.rp-about-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rp-about-hero__img {
  width: 112%;
  height: 112%;
  margin: -6%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.72);
  will-change: transform;
}

.rp-about-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 16, 0.55) 0%, rgba(20, 17, 16, 0.35) 40%, rgba(20, 17, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 17, 16, 0.35) 0%, transparent 45%, rgba(20, 17, 16, 0.35) 100%);
}

.rp-about-hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.rp-about-hero__letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 2.4rem;
  z-index: 2;
  background: var(--noir);
  pointer-events: none;
}

.rp-about-hero__letterbox--top { top: 0; }
.rp-about-hero__letterbox--bottom { bottom: 0; }

.rp-about-hero__content {
  position: relative;
  z-index: 3;
}

.rp-about-hero__line-inner {
  transform: translateY(110%);
}

.rp-about-hero__scroll {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.rp-about-hero__scroll-line {
  display: block;
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, rgba(212, 185, 120, 0.75), transparent);
  animation: rpAboutScroll 1.8s ease-in-out infinite;
}

@keyframes rpAboutScroll {
  0%, 100% { opacity: 0.35; transform: scaleY(0.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.rp-about-team__photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(156, 123, 63, 0.28);
  box-shadow: 0 12px 32px rgba(43, 38, 34, 0.12);
  transition: transform 0.55s var(--ease-soft), box-shadow 0.55s var(--ease-soft);
}

.rp-about-team:hover .rp-about-team__photo {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(43, 38, 34, 0.18);
}

.rp-about-card {
  transition: transform 0.45s var(--ease-soft), border-color 0.35s ease;
}

.rp-about-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 639px) {
  .rp-about-hero__letterbox { height: 1.4rem; }
  .rp-about-hero__scroll { bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-about-hero__scroll-line { animation: none; }
  .rp-about-hero__img { width: 100%; height: 100%; margin: 0; }
  .rp-about-hero__line-inner { transform: none; }
}

/* ─── Crew row (services.php) ─── */
.rp-crew-row {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
  align-items: center;
}

@media (min-width: 1024px) {
  .rp-crew-row {
    grid-template-columns: 4rem 1fr 280px;
    gap: 3rem;
  }
}

.rp-crew-row__num {
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(156, 123, 63, 0.22);
}

.rp-crew-row__visual {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .rp-crew-row__visual {
    order: -1;
  }
}

/* ─── Culture thumbs (story chapter images) ─── */
.rp-culture-thumb {
  border: 1px solid rgba(43, 38, 34, 0.08);
  max-width: 18rem;
}

/* ─── Upcoming rides list ─── */
.rp-ride-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(43, 38, 34, 0.1);
}

.rp-ride-row {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(43, 38, 34, 0.1);
  align-items: start;
}

@media (min-width: 768px) {
  .rp-ride-row {
    grid-template-columns: 7.5rem 8.5rem 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: 2rem 0;
  }
}

.rp-ride-row__date {
  display: block;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.1;
}

.rp-ride-row__time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

.rp-ride-row__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(43, 38, 34, 0.08);
}

.rp-ride-row__media img {
  transition: transform 0.7s var(--ease-soft);
}

.rp-ride-row:hover .rp-ride-row__media img {
  transform: scale(1.05);
}

/* ─── Community pillars ─── */
.rp-pillar {
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid rgba(43, 38, 34, 0.08);
  background: rgba(255, 255, 255, 0.35);
  transition: border-color 0.4s, transform 0.45s var(--ease-soft);
}

.rp-pillar:hover {
  border-color: rgba(156, 123, 63, 0.35);
  transform: translateY(-3px);
}

.rp-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold);
  font-size: 1rem;
  border: 1px solid rgba(156, 123, 63, 0.28);
}

/* ─── FAQ accordion ─── */
.rp-faq__item {
  border: 1px solid rgba(43, 38, 34, 0.1);
  background: rgba(247, 243, 236, 0.55);
  padding: 0;
}

.rp-faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

.rp-faq__q::-webkit-details-marker { display: none; }

.rp-faq__icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease-soft);
}

.rp-faq__item[open] .rp-faq__icon {
  transform: rotate(45deg);
}

.rp-faq__a {
  padding: 0 1.15rem 1.15rem;
  margin: 0;
}

.rp-process-list__item {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(43, 38, 34, 0.06);
}

.rp-process-list__item:last-child {
  border-bottom: none;
}

/* ─── Forms ─── */
.rp-input {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(43, 38, 34, 0.16);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rp-input:focus {
  border-color: rgba(156, 123, 63, 0.55);
  box-shadow: 0 0 0 3px rgba(156, 123, 63, 0.08);
}

textarea.rp-input {
  min-height: 8rem;
  resize: vertical;
}

select.rp-input {
  cursor: pointer;
}

/* ─── Soft cards (used on retheme'd inner pages) ─── */
.rp-soft-panel {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(43, 38, 34, 0.08);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.rp-soft-panel:hover {
  border-color: rgba(156, 123, 63, 0.28);
  box-shadow: 0 16px 40px -24px rgba(43, 38, 34, 0.2);
}

/* ─── FAQ ─── */
.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item.is-open {
  border-color: rgba(156, 123, 63, 0.35) !important;
}

/* ─── Reveal clip ─── */
.reveal-clip__inner {
  overflow: hidden;
}

.reveal-clip__inner img {
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-soft);
}

.reveal-clip.is-revealed .reveal-clip__inner img {
  transform: scale(1);
}

/* ─── Colophon footer ─── */
.rp-colophon {
  background: var(--paper-deep);
  border-top: 1px solid rgba(43, 38, 34, 0.08);
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.rp-colophon__rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: rgba(156, 123, 63, 0.35);
  margin: 3.5rem auto;
}

.rp-colophon__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink-mute);
  font-size: 0.85rem;
  transition: color 0.3s, transform 0.3s;
}

.rp-colophon__social:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── Fade up fallback ─── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}

.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  body.rp { cursor: auto; }
  body.rp::before { display: none; }
  .rp-cursor { display: none; }
  .cine-hero__line-inner { transform: none; }
  .reveal-clip__inner { clip-path: none !important; }
  .fade-up { opacity: 1; transform: none; }
  .gold-line-draw__path { stroke-dashoffset: 0; }
  .play-cta__ring::before { animation: none; }
  .cine-hero__scroll-line { animation: none; }
}

/* ─── Visibility safety (blank section fix) ─── */
.hero-stat,
.rp-editorial-row,
.rp-member-card,
.rp-quiet-quote,
.rp-folio-card,
.rp-article-row,
.rp-night-strip__item,
.cine-hero__line-inner,
[data-hero-fade] {
  opacity: 1;
  visibility: visible;
}

/* Delayed net: fade-ups stay animatable via IO, but recover if never intersecting */
@keyframes rp-vis-safety {
  to { opacity: 1; transform: none; visibility: visible; }
}

.fade-up:not(.is-in) {
  animation: rp-vis-safety 0.01s linear 2.5s forwards;
}

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

html,
body.rp {
  overflow-x: hidden;
}
