/* Refined hero + marquee — scoped, drops in over original style.css */

.hero-r {
  --r-ink: #1c1a17;
  --r-paper: #f5f0e8;
  --r-accent-soft: #e2cd99;
  --r-white: #fbf8f2;
  --r-font-display: 'Shippori Mincho B1', 'Noto Serif JP', 'YuMincho', serif;
  --r-font-mono: 'IBM Plex Mono', 'Menlo', monospace;
  --r-ease: cubic-bezier(.22,.61,.36,1);

  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--r-ink);
  font-feature-settings: "palt";
}
.hero-r .hero-r-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.08);
  transition: transform 12s var(--r-ease);
  filter: brightness(.85) saturate(.92);
}
.hero-r.loaded .hero-r-bg { transform: scale(1); }
.hero-r::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 20% 70%, rgba(0,0,0,.55), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}

.hero-r .hero-r-grid {
  position: relative; z-index: 2;
  width: min(1280px, calc(100% - 2 * clamp(1.25rem, 4vw, 3rem)));
  margin-inline: auto;
  padding-block: 7rem 4rem;
  align-self: end;
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: end;
}
.hero-r .hero-r-copy { max-width: 740px; }
.hero-r .hero-r-eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--r-font-mono);
  font-size: .7rem; letter-spacing: .3em;
  color: var(--r-accent-soft);
  margin-bottom: 1.75rem;
}
.hero-r .hero-r-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--r-accent-soft);
}
.hero-r .hero-r-title {
  font-family: var(--r-font-display);
  font-size: clamp(2.2rem, 6.4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .03em;
  color: var(--r-white);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.hero-r .hero-r-title .accent { color: var(--r-accent-soft); font-style: normal; }
.hero-r .hero-r-title .small {
  display: block;
  font-size: .42em; letter-spacing: .24em; font-weight: 400;
  color: rgba(251,248,242,.7);
  margin-top: 1.1rem;
  font-family: var(--r-font-mono);
}
.hero-r .hero-r-sub {
  font-size: clamp(.9rem, 1.2vw, 1rem);
  color: rgba(251,248,242,.78);
  line-height: 2;
  margin-bottom: 2.5rem;
  max-width: 38ch;
  font-family: 'Noto Sans JP', sans-serif;
}
.hero-r .hero-r-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-r-btn {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 1.6rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .82rem; letter-spacing: .14em; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--r-ease), background .3s var(--r-ease), color .3s var(--r-ease), border-color .3s var(--r-ease);
}
.hero-r-btn .arrow {
  width: 18px; height: 1px; background: currentColor; position: relative;
  transition: width .3s var(--r-ease);
}
.hero-r-btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg); transform-origin: right center;
}
.hero-r-btn:hover .arrow { width: 26px; }
.hero-r-btn--solid { background: var(--r-white); color: var(--r-ink); }
.hero-r-btn--solid:hover { background: var(--r-accent-soft); color: var(--r-ink); }
.hero-r-btn--ghost  { background: transparent; color: var(--r-white); border-color: rgba(251,248,242,.5); }
.hero-r-btn--ghost:hover { border-color: var(--r-white); background: rgba(251,248,242,.08); }

.hero-r .hero-r-caption {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  writing-mode: vertical-rl;
  font-family: var(--r-font-display);
  font-size: .82rem; letter-spacing: .35em;
  color: rgba(251,248,242,.7);
  padding-bottom: .5rem;
}
.hero-r .hero-r-caption .dot {
  writing-mode: horizontal-tb;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--r-accent-soft);
}
.hero-r .hero-r-scroll {
  position: absolute; bottom: 1.6rem; left: clamp(1.25rem, 4vw, 3rem); z-index: 2;
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--r-font-mono);
  font-size: .62rem; letter-spacing: .32em;
  color: rgba(251,248,242,.6);
}
.hero-r .hero-r-scroll .line {
  width: 32px; height: 1px; background: currentColor; position: relative; overflow: hidden;
}
.hero-r .hero-r-scroll .line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--r-accent-soft);
  animation: hero-r-slide 2.4s var(--r-ease) infinite;
}
@keyframes hero-r-slide {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Marquee under hero */
.marquee-r {
  position: relative; z-index: 2;
  background: #15130f;
  border-block: 1px solid rgba(226,205,153,.25);
  overflow: hidden;
  padding-block: .85rem;
}
.marquee-r-track {
  display: flex; gap: 4rem; white-space: nowrap; width: max-content;
  animation: marquee-r 38s linear infinite;
  font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  font-size: .82rem; letter-spacing: .3em;
  color: rgba(251,248,242,.8);
}
.marquee-r-track span { display: inline-flex; align-items: center; gap: 4rem; }
.marquee-r-track span::after { content: '◆'; color: #e2cd99; font-size: .6em; }
@keyframes marquee-r {
  to { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .hero-r .hero-r-grid { grid-template-columns: 1fr; padding-block: 7rem 3rem; }
  .hero-r .hero-r-caption { display: none; }
}
