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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* ───────── HERO A — Full-bleed cinematic ───────── */

.hero-a {
  min-height: 100vh;
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 10vh;
}
.hero-a__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-a__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlideshow 18s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero-a__bg-img:nth-child(1) {
  animation-delay: 0s;
  transform-origin: center;
}
.hero-a__bg-img:nth-child(2) {
  animation-delay: 6s;
  transform-origin: 30% 60%;
}
.hero-a__bg-img:nth-child(3) {
  animation-delay: 12s;
  transform-origin: 70% 40%;
}

/* Ken Burns slideshow:
   each image fades in (1s), holds while slowly zooming (5s),
   fades out (1s) overlapping next image's fade-in for crossfade. */
@keyframes heroSlideshow {
  0%   { opacity: 0; transform: scale(1.0); }
  6%   { opacity: 1; }
  33%  { opacity: 1; transform: scale(1.10); }
  39%  { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-a__bg-img {
    animation: none;
    opacity: 1;
  }
  .hero-a__bg-img:nth-child(2),
  .hero-a__bg-img:nth-child(3) { display: none; }
}
.hero-a__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,36,32,.45) 0%, rgba(42,36,32,.55) 40%, rgba(42,36,32,.85) 100%);
}
.hero-a__content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.hero-a__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-a__label {
  font-family: var(--serif-jp);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.18em;
  color: rgba(250, 247, 242, 0.88);
  font-weight: 500;
}
.hero-a__head {
  color: var(--bg);
  font-size: clamp(30px, 4.8vw, 64px);
  margin: 0 0 36px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.hero-a__sub-line {
  display: block;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 400;
  opacity: .92;
  margin-top: 8px;
  line-height: 1.5;
}
.hero-a__sub {
  color: rgba(250,247,242,.85);
  margin-bottom: 48px;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.04em;
}
.hero-a__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-a__btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.hero-a__btn-primary::before { background: var(--ink); }
.hero-a__btn-primary:hover { color: var(--bg); }

.hero-a__btn-secondary {
  border-color: rgba(250,247,242,.6);
  color: var(--bg);
}
.hero-a__btn-secondary::before { background: var(--bg); }
.hero-a__btn-secondary:hover { color: var(--ink); border-color: var(--bg); }

.hero-a__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 10vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(250,247,242,.6);
}
.hero-a__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(250,247,242,.6) 0 30%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero-a__scroll-line::after {
  content: '';
  position: absolute;
  top: -60px; left: 0;
  width: 1px; height: 30px;
  background: var(--bg);
  animation: scrollBar 2.2s ease-in-out infinite;
}
@keyframes scrollBar {
  0% { top: -30px; }
  100% { top: 60px; }
}
.hero-a__marker {
  position: absolute;
  top: 30px; right: var(--gutter);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-a { padding: 120px var(--gutter) 120px; min-height: 100svh; justify-content: flex-end; }
  .hero-a__scroll, .hero-a__marker { display: none; }
  .hero-a__ctas { flex-direction: column; align-items: stretch; }
  .hero-a__ctas .btn { width: 100%; justify-content: space-between; }
}

/* ───────── HERO B — Asymmetric magazine ───────── */

.hero-b {
  padding: 120px var(--gutter) 0;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-b__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  flex: 1;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  padding: 40px 0 60px;
}
.hero-b__left { padding-right: 20px; }
.hero-b__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-b__rule {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--ink-3);
}
.hero-b__head {
  font-size: clamp(36px, 5.4vw, 78px);
  margin: 0 0 36px;
  font-weight: 400;
  line-height: 1.35;
}
.hero-b__head-sub {
  font-size: clamp(16px, 1.8vw, 26px);
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 1.7;
}
.hero-b__sub {
  margin-bottom: 44px;
  line-height: 2.2;
}
.hero-b__ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-b__right {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 600px;
  justify-self: end;
}
.hero-b__photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
}
.hero-b__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-b__caption {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  max-width: 60%;
}
.hero-b__caption .eyebrow-num { color: rgba(250,247,242,.55); font-size: 10px; }
.hero-b__ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--bg-2);
  margin: 0 calc(var(--gutter) * -1);
}
.hero-b__ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.hero-b__ticker-track span { flex-shrink: 0; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hero-b { padding: 110px var(--gutter) 0; }
  .hero-b__grid { grid-template-columns: 1fr; gap: 48px; padding: 20px 0 40px; }
  .hero-b__left { padding-right: 0; }
  .hero-b__right { aspect-ratio: 3/4; max-width: 100%; }
  .hero-b__caption { left: 0; bottom: -20px; max-width: 80%; }
}

/* ───────── HERO C — Fragments grid ───────── */

.hero-c {
  padding: 120px var(--gutter) 60px;
  background: var(--bg);
  min-height: auto;
}
.hero-c__head {
  max-width: 1400px;
  margin: 0 auto 48px;
  padding: 40px 0 20px;
}
.hero-c__eyebrow {
  margin-bottom: 24px;
}
.hero-c__title {
  font-size: clamp(30px, 5vw, 64px);
  margin: 0;
  line-height: 1.3;
  font-weight: 400;
}
.hero-c__title-faint {
  font-size: clamp(18px, 2.2vw, 30px);
  color: var(--ink-3);
  margin-top: 16px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.hero-c__gallery {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.4fr;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  height: 60vh;
  min-height: 480px;
}
.hero-c__cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.hero-c__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}
.hero-c__cell:hover img { transform: scale(1.04); }
.hero-c__tag {
  position: absolute;
  left: 20px; bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--bg);
  font-family: var(--serif-jp);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: rgba(42,36,32,.72);
  padding: 8px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-c__tag .eyebrow-num { color: rgba(250,247,242,.7); font-size: 11px; }
.hero-c__cell--tall  { grid-row: 1; aspect-ratio: auto; }
.hero-c__cell--mid   { margin-top: 10%; }
.hero-c__cell--wide  { margin-bottom: 5%; }

.hero-c__foot {
  max-width: 1400px;
  margin: 60px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-c__sub {
  max-width: 420px;
  font-size: clamp(15px, 1.2vw, 17px);
}
.hero-c__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-c { padding: 110px var(--gutter) 60px; }
  .hero-c__gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }
  .hero-c__cell--tall { grid-row: 1; grid-column: 1 / 2; aspect-ratio: 3/4; }
  .hero-c__cell--mid { grid-row: 1; grid-column: 2 / 3; aspect-ratio: 3/4; margin-top: 0; }
  .hero-c__cell--wide { grid-column: 1 / 3; aspect-ratio: 16/9; margin: 0; }
  .hero-c__foot { flex-direction: column; align-items: stretch; }
  .hero-c__ctas { flex-direction: column; }
  .hero-c__ctas .btn { width: 100%; justify-content: space-between; }
}

/* ───────── Hero A — Long sub paragraphs ───────── */
.hero-a__sub p {
  margin: 0 0 14px;
}
.hero-a__sub p:last-child {
  margin-bottom: 0;
}

/* ───────── Hero A — Dynamic rotating badge ───────── */
.hero-a__badge {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 22vh;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-a__badge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: heroBadgeRotate calc(22s / var(--anim-speed)) linear infinite;
}

.hero-a__badge-curve {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  fill: rgba(250, 247, 242, 0.85);
}

.hero-a__badge-core {
  position: relative;
  z-index: 2;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(42, 36, 32, 0.28);
  animation: heroBadgePulse calc(3.6s / var(--anim-speed)) var(--ease) infinite;
}

.hero-a__badge-eyebrow {
  font-family: var(--serif-jp);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 500;
}

.hero-a__badge-big {
  font-family: var(--serif-num);
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: 0;
}

.hero-a__badge-unit {
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 500;
  margin-left: 2px;
}

.hero-a__badge-suffix {
  font-family: var(--serif-jp);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  font-weight: 500;
}

@keyframes heroBadgeRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes heroBadgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@media (max-width: 900px) {
  .hero-a__badge {
    bottom: auto;
    top: 96px;
    right: 5vw;
    width: 124px;
    height: 124px;
  }
  .hero-a__badge-core {
    width: 92px;
    height: 92px;
  }
  .hero-a__badge-big { font-size: 24px; }
  .hero-a__badge-eyebrow { font-size: 10px; }
  .hero-a__badge-suffix { font-size: 10px; }
  .hero-a__badge-curve { font-size: 10px; letter-spacing: 0.14em; }
}

@media (max-width: 480px) {
  .hero-a__badge {
    width: 108px;
    height: 108px;
    top: 80px;
    right: 4vw;
  }
  .hero-a__badge-core {
    width: 80px;
    height: 80px;
  }
  .hero-a__badge-big { font-size: 20px; }
}
