/* ============================================================
   Home page redesign — Cinematic Immersive
   Scoped with .hp- prefixes so it only affects index.html.
   Reuses tokens from index.css (:root) — palette, fonts, shells.
   ============================================================ */

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn::after { content: "→"; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(180, 154, 106, 0.3); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-ghost::after { color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* ============================================================
   HERO — full-bleed cinematic
   ============================================================ */
.hp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hp-hero__media { position: absolute; inset: 0; z-index: 0; }
.hp-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.08);
  animation: hpKenburns 24s ease-out forwards;
}
.hp-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 56%, rgba(9, 9, 8, 0.5) 82%, rgba(9, 9, 8, 0.92) 100%);
}
@keyframes hpKenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.hp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-top: 140px;
  padding-bottom: clamp(52px, 7vw, 104px);
  padding-inline: clamp(24px, 6vw, 96px);
}
.hp-hero__panel {
  width: fit-content;
  max-width: min(100%, 720px);
  padding: clamp(26px, 3.4vw, 48px);
  background: rgba(9, 9, 8, 0.34);
  border: 1px solid rgba(233, 226, 214, 0.12);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(233, 226, 214, 0.05);
}

.hp-hero h1 {
  margin: 22px 0 26px;
  max-width: 15ch;
  font-size: clamp(3.4rem, 9vw, 10rem);
  line-height: 0.95;
}
.hp-hero__intro {
  max-width: 560px;
  color: var(--paper-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  margin-bottom: 38px;
}
.hp-hero__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hp-hero__meta a { transition: color var(--ease); }
.hp-hero__meta a:hover { color: var(--accent); }

.hp-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--paper-soft);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hp-scroll::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--accent), transparent);
  animation: hpScroll 2.1s ease-in-out infinite;
}
@keyframes hpScroll {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   FEATURED — interactive Selected Work rotator
   ============================================================ */
.hp-featured { padding: clamp(80px, 9vw, 152px) 0; border-bottom: 1px solid var(--line); }
.hp-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.hp-stage {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 12px;
  background: rgba(233, 226, 214, 0.025);
}
.hp-stage__viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #191814;
}
.hp-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  filter: saturate(0.92) contrast(1.04);
  transition: opacity 800ms ease, transform 1400ms ease;
}
.hp-stage__img.is-active { opacity: 1; transform: scale(1); }
.hp-stage__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  background: rgba(9, 9, 8, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hp-stage__tag em { color: var(--accent); font-style: normal; }

.hp-featured__side h2 { margin: 20px 0 16px; font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
.hp-featured__side > p { max-width: 440px; color: var(--paper-soft); margin-bottom: 8px; }
.hp-thumbs { display: grid; gap: 10px; margin: 26px 0 30px; }
.hp-thumb {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(233, 226, 214, 0.012);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.hp-thumb:hover { transform: translateX(3px); }
.hp-thumb.is-active,
.hp-thumb:hover { border-color: rgba(180, 154, 106, 0.5); background: rgba(233, 226, 214, 0.05); }
.hp-thumb img { width: 88px; height: 62px; object-fit: cover; background: #191814; }
.hp-thumb__title { display: grid; gap: 3px; min-width: 0; }
.hp-thumb__title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hp-thumb__title span { color: var(--muted); font-size: 0.74rem; }
.hp-thumb__num { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.14em; }

/* ============================================================
   STATS band + awards marquee
   ============================================================ */
.hp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hp-stat {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(233, 226, 214, 0.012);
}
.hp-stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.hp-stat strong .hp-plus { color: var(--accent); }
.hp-stat span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hp-marquee {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hp-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(46px, 6vw, 96px);
  width: max-content;
  animation: hpMarquee 34s linear infinite;
}
.hp-marquee:hover .hp-marquee__track { animation-play-state: paused; }
.hp-marquee__track img {
  width: auto;
  height: clamp(30px, 4vw, 44px);
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(1) brightness(1.7);
  transition: opacity var(--ease), filter var(--ease);
}
.hp-marquee__track img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
@keyframes hpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Home page — tighter section rhythm
   ============================================================ */
.section {
  padding: clamp(52px, 6vw, 96px) 0;
}
.statement {
  padding: clamp(52px, 7vw, 100px) 0;
}
.contact-panel {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 96px);
}
#journal.section {
  padding-bottom: clamp(32px, 4vw, 56px);
}
.section-intro {
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.split-feature {
  gap: clamp(28px, 5vw, 72px);
}
.hp-marquee {
  margin-top: clamp(24px, 3vw, 40px);
}
.museum-note {
  margin-top: 24px;
  padding-top: 18px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1060px) {
  .hp-featured__grid { grid-template-columns: 1fr; }
  .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hp-hero { min-height: 92svh; }
  .hp-hero__inner { padding-top: 124px; }
  .hp-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hp-scroll { display: none; }
  .hp-thumb { grid-template-columns: 72px 1fr auto; }
  .hp-thumb img { width: 72px; height: 52px; }

  .section { padding: 44px 0 !important; }
  .statement { padding: 48px 0; }
  .contact-panel { padding: 40px 0 52px; }
}

/* ============================================================
   Reduced motion — disable all home animations
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hp-hero__media img { animation: none; transform: none; }
  .hp-scroll::after { animation: none; }
  .hp-marquee__track { animation: none; }
  .hp-stage__img { transition: opacity 200ms ease; transform: none; }
}
