/* ==========================================================
   HOME PAGE STYLES
   ========================================================== */

/* ---------- Image placeholders & media ---------- */
.ph {
  background: radial-gradient(120% 80% at 20% 10%, #2e2a25 0%, #161513 60%, #0f0f0f 100%);
}

.media {
  position: relative;
  overflow: hidden;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  object-position: var(--focus, 50% 50%);
}

/* ==========================================================
   HERO SLIDESHOW
   ========================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh; /* accounts for mobile browser toolbars */
  min-height: 560px;
  overflow: hidden;
  touch-action: pan-y; /* vertical scroll still works while swiping sideways */
  background: var(--black);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide.is-leaving {
  z-index: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  -webkit-user-drag: none;
  user-select: none;
}

/* Ken Burns slow zoom. The leaving slide keeps zooming while it fades out. */
.hero-slide.is-active img,
.hero-slide.is-leaving img {
  animation: kenburns 9s ease-out forwards;
}

/* Dark gradient so text stays readable on any photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0.2) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(15, 15, 15, 0.45) 0%, transparent 25%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(8.5rem, 20vh, 12rem);
}

.hero-title {
  margin-top: 1.25rem;
}

.hero-content p {
  max-width: 46ch;
  margin-top: 1.5rem;
  color: rgba(247, 245, 242, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

/* ---------- Hero controls ---------- */
.hero-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.hero-caption {
  min-height: 3.2rem;
}

.hero-count {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.hero-count b {
  font-weight: 400;
  color: var(--text);
}

.hero-caption-text {
  display: block;
  margin-top: 0.35rem;
}
.hero-caption-text.is-in {
  animation: fadeUp 0.9s var(--ease);
}

.hero-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-light);
  margin-right: 0.75rem;
}

.hero-place {
  font-size: var(--fs-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.75);
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-arrow {
  display: none; /* phones use swipe */
}

.hero-bars {
  display: flex;
  gap: 0.5rem;
}

.hero-bar {
  position: relative;
  width: clamp(26px, 5vw, 56px);
  height: 24px;
}

.hero-bar::before,
.hero-bar span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.hero-bar::before {
  background: rgba(247, 245, 242, 0.25);
}
.hero-bar span {
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-bar.is-done span {
  transform: scaleX(1);
}
.hero-bar.is-active span {
  animation: progress var(--interval, 6000ms) linear forwards;
}

/* Pause icon / play icon swap */
.hero-toggle .icon-play { display: none; }
.hero-toggle.is-paused .icon-play { display: block; }
.hero-toggle.is-paused .icon-pause { display: none; }

/* Pause animations when the slideshow is paused or off-screen */
.hero.is-paused .hero-slide img,
.hero.is-paused .hero-bar span {
  animation-play-state: paused;
}

/* ==========================================================
   MARQUEE (scrolling text strip)
   ========================================================== */
.marquee {
  overflow: hidden;
  padding-block: clamp(0.75rem, 1.5vw, 1.25rem);   /* was clamp(1.25rem, 3vw, 2.25rem) */
  border-block: 1px solid var(--line);
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
}

.marquee-group span {
  padding-right: clamp(1.25rem, 2.5vw, 2.25rem);   /* was clamp(1.5rem, 3vw, 3rem) */
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);             /* was clamp(2.5rem, 7vw, 6rem) */
  line-height: 1.1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 245, 242, 0.4);
}
.marquee-group span.star {
  font-size: clamp(0.8rem, 1.6vw, 1.25rem);        /* was clamp(1.25rem, 3vw, 2.25rem) */
  color: var(--accent);
  -webkit-text-stroke: 0;
}

/* ==========================================================
   FEATURED WORK STRIP (drag / swipe)
   ========================================================== */
.strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.strip-head .section-head {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.strip-controls {
  display: none; /* touch devices just swipe */
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.work-strip {
  --edge: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
   --h: clamp(180px, 42vw, 300px);   /* card image height shared by all cards */
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 0 var(--edge) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.work-strip::-webkit-scrollbar {
  display: none;
}
.work-strip.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}
.work-strip.is-linked {
  scroll-snap-type: none;
}

.work-card {
  --ar: 0.667;                       /* default: portrait (2:3) */
  flex: 0 0 auto;
  width: calc(var(--h) * var(--ar));
  scroll-snap-align: start;
  user-select: none;
}
.work-card--portrait  { --ar: 0.667; }
.work-card--landscape { --ar: 1.5; }
.work-card--square    { --ar: 1; }
.work-card--wide      { --ar: 2; }

.work-card .media {
  width: 100%;
  height: var(--h);
}
.work-card:hover img {
  transform: scale(1.06);
}

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.work-meta h3 {
  font-size: 1.35rem;
}
.work-meta span {
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================
   COLLECTION TEASERS
   ========================================================== */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.collection-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.collection-card .media {
  position: absolute;
  inset: 0;
}
.collection-card:hover img {
  transform: scale(1.07);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

.collection-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.collection-num {
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  color: var(--gold-light);
}

.collection-info h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem);
}

.collection-info p {
  margin-top: 0.4rem;
  color: rgba(247, 245, 242, 0.75);
}

.collection-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}

/* On devices with a mouse, "Explore" slides in on hover.
   Touch screens always show it. */
@media (hover: hover) {
  .collection-more {
    opacity: 0;
    transform: translateY(10px);
  }
  .collection-card:hover .collection-more,
  .collection-card:focus-visible .collection-more {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   INTRO / ABOUT TEASER
   ========================================================== */
.intro {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.intro .media {
  aspect-ratio: 4 / 5;
  max-width: 520px;
}

.intro-text h2 {
  margin-top: 1rem;
}
.intro-text p {
  max-width: 52ch;
  margin-top: 1.5rem;
  color: var(--text-muted);
}
.intro-text .link-arrow {
  margin-top: 2.25rem;
}

/* ==========================================================
   CALL TO ACTION
   ========================================================== */
.cta {
  text-align: center;
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.cta h2 {
  max-width: 16ch;
  margin: 1.25rem auto 0;
}
.cta p {
  max-width: 48ch;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

/* ==========================================================
   TABLET: 601px and up
   ========================================================== */
@media (min-width: 601px) {
  .hero-ui {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .hero-arrow {
    display: grid;
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .collection-card:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================
   DESKTOP: 901px and up
   ========================================================== */
@media (min-width: 901px) {
  .strip-controls {
    display: flex;
  }

  /* Staggered heights: the offset scales with the card size */
  .work-card:nth-child(even) {
    margin-top: calc(var(--h) * 0.18);
  }
  .work-strip {
    padding-bottom: calc(var(--h) * 0.18 + 1rem);
  }

  .collection-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .collection-card:nth-child(-n + 2) {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }
  .collection-card:nth-child(n + 3) {
    grid-column: span 2;
    aspect-ratio: 3 / 4;
  }

  .intro {
    grid-template-columns: 5fr 6fr;
  }
}