/* editorial-home.css - Home page specific styles */
/* Design tokens imported from css/base/_variables.css */


.editorial-home {
  background-color: var(--color-background);
  color: var(--color-text-primary);
}

.editorial-section {
  padding-block: clamp(7rem, 18vh, 11rem);
  padding-inline: clamp(2.5rem, 10vw, 8rem);
}

.hero {
  margin-top: 7rem;
  position: relative;
  min-height: calc(100vh - 7rem);
  display: flex;
  align-items: flex-start;
  padding-inline: clamp(2rem, 7vw, 6rem);
  padding-bottom: clamp(5rem, 14vh, 9rem);
  padding-top: clamp(8rem, 15vh, 10rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

/* Hero poster image - shown immediately as LCP, video layers behind */
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: opacity 0.8s ease-out;
}

.hero-poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.15) 0%, rgba(12, 12, 12, 0.65) 90%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(68vw, 840px);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--color-background);
  text-transform: none;
}

.hero__headline span {
  display: block;
}

.hero__scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 6vh, 4rem);
  transform: translateX(-50%) !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.75);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: rgba(249, 248, 246, 0.75);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-background);
  transform: translateY(-100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  40% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Note: philosophy section now uses grid-layout + content-block + media-block components */
/* Note: section-intro now uses content-block component */

.stories-carousel {
  display: block;
  padding-inline: 0;
  margin-block: 0;
  margin-inline: calc(clamp(0.5rem, 1vw, 1rem) * -1);
  overflow-x: clip; /* Prevent horizontal page scroll while allowing visible overflow for arrows */
}

/* CSS Slider overrides for stories carousel */
.stories-carousel .css-slider__track {
  align-items: stretch;
  overflow-y: hidden;
  min-height: 0;
}

.stories-carousel .css-slider__slide {
  height: auto;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(0.5rem, 1vw, 1rem);
}

.story-card {
  position: relative;
  height: 100%;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}

.story-card:last-of-type {
  background-color: unset;
}

.story-card:hover, .story-card:focus-within {
  background-color: #f9f8f6;
  transition: all 0.3s ease-in-out;
}

.story-card article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.story-card__figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-border);
  border-radius: 0;
}

.story-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.story-card:hover .story-card__figure img,
.story-card:focus-within .story-card__figure img {
  transform: scale(1.04);
}

.story-card__meta {
  padding-block: 1.2rem;
  padding-inline: 1rem;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  box-shadow: inset 0 0 0 1px rgb(234, 232, 228);
}

.story-card__meta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}

.story-card__meta p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.story-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.story-card--cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(2.4rem, 4vw, 3rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-height: 100%;
}

.story-card__cta {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.story-card__cta-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.story-card__cta-arrow {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}

.story-card--cta .story-card__link {
  inset: -1px;
}

.story-card--cta:hover,
.story-card--cta:focus-within {
  color: var(--color-accent-primary);
  border-color: rgba(8, 59, 16, 0.3);
}

.story-card--simple-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  margin: auto;
}

.simple-portfolio-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.simple-portfolio-link:hover {
  color: var(--color-accent-primary);
}

/* CSS Slider arrow positioning for stories carousel */
.stories-carousel .css-slider__arrow {
  top: 35%; /* Center vertically on the aspect-ratio images, above the metadata */
}

.stories-carousel .css-slider__dots {
  margin-top: 2.5rem;
}

.stories-carousel .css-slider__arrow--prev {
  left: -20px;
}

.stories-carousel .css-slider__arrow--next {
  right: -20px;
}

/* On mobile, arrows are often hidden by slider default, but if shown, reset top */
@media (max-width: 768px) {
  .stories-carousel .css-slider__arrow {
    top: 50%;
  }
}

.artist-collage {
  padding-block-end: clamp(8rem, 22vh, 13rem);
}

.split-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.collage-statement {
  grid-column: 2 / span 4;
  align-self: start;
  position: relative;
}

.collage-statement h2 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.collage-statement h2 span {
  display: block;
}

.collage-grid {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.collage-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Artist Collage Refinements */

/* 1. Fix Stretching on Desktop: Use aspect-ratio instead of fixed min-heights */
.collage-item--portrait {
  grid-column: 7 / span 6; /* Right half (in 12-col grid) */
  grid-row: 1 / span 4;
  min-height: 0;
  aspect-ratio: 3 / 4;
  z-index: 1;
  /* Visual tweak: Align right */
  justify-self: end;
  width: 100%;
}

.collage-item--landscape {
  grid-column: 1 / span 9; /* Overlaps portrait (which starts at 7) */
  grid-row: 3 / span 3; /* Start row 3 to underlap portrait */
  min-height: 0;
  aspect-ratio: 4 / 3;
  z-index: 2;
  width: 90%; /* Slightly smaller as requested */
}

.collage-item--note {
  /* Position:
     - Move down to Row 7 to clear the bulk of Landscape.
     - Pull up significantly with negative margin for "light overlap".
     - Scaled pulling up for larger screens to maintain aesthetic balance.
     - Precision placement using 12-column grid.
  */
  grid-column: 2 / 12; /* Not in line with either outer edge */
  grid-row: 6; /* Move up one row to eliminate empty gap */
  margin-top: clamp(-6rem, -11.5vw, -7.5rem); /* Pull up even more initially and then scale higher */

  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2.2rem, 3.5vw, 2.8rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.collage-item--note p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* Increase text box width on smaller desktop screens to prevent squashing */
@media (max-width: 1400px) {
  .collage-item--note {
    grid-column: 2 / 12;
  }
}


@media (max-width: 1180px) {
  .collage-statement {
    grid-column: 1 / span 5;
  }
  .collage-grid {
    grid-column: 5 / -1;
    margin-top: -150px; /* Shift up closer to heading as requested */
  }
}

/* 2. Tablet Overlapping Layout (Max 960px) */
@media (max-width: 960px) {
  .hero {
    min-height: calc(100vh - 5rem);
    padding-inline: clamp(1.5rem, 6vw, 4rem);
  }
  .section-intro {
    margin-inline: clamp(1.5rem, 6vw, 4rem);
  }
  .philosophy__grid {
    grid-template-columns: 1fr;
  }

  /* Reset split collage grid to 8 columns for overlap calculation */
  .split-collage {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .collage-statement {
    grid-column: 1 / span 8;
    margin-bottom: 2rem; /* Add spacing below text */
  }
  .collage-grid {
    grid-column: 1 / span 8;
    margin-top: 0; /* Managed by statement margin */
    /* Create a 12-column inner grid for precision overlap on tablet/mobile */
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
  }

  /* Overlapping Pattern for Tablet/Mobile - Matching Desktop Layout */
  .collage-item--portrait {
    grid-column: 7 / span 6; /* Right side */
    grid-row: 1 / span 4;
    aspect-ratio: 3 / 4;
    justify-self: end;
    width: 100%;
  }

  .collage-item--landscape {
    grid-column: 1 / span 9; /* Left side */
    grid-row: 3 / span 3; /* Overlaps bottom of portrait */
    z-index: 2;
    aspect-ratio: 4 / 3; /* Reset to desktop aspect ratio */
    margin-top: 0; /* Reset mobile offsets */
    width: 90%;
  }

  .collage-item--note {
    grid-column: 2 / 12; /* Offset from edges for organic look */
    grid-row: 6;
    margin-top: -4rem; /* Higher initial overlap on mobile/tablet */
    min-height: auto;
    padding: clamp(1.5rem, 4vw, 2.2rem); /* Slightly reduced padding on mobile */
    gap: 1.5rem;
  }

  /* Adjust cover items if they exist in this grid (context check: they are in collage-grid?)
     Code shows collage-item--cover is used? It was in the css file but maybe not in HTML snippet for artist?
     Artist collage HTML uses item--portrait, item--landscape, item--note.
     I will leave generic cover rules alone or reset them if they break.
     The previous CSS had media queries for them. */
}

/* 3. Mobile Tweaks (Max 720px) */
@media (max-width: 720px) {
  .editorial-section {
    padding-inline: clamp(1.5rem, 8vw, 2.5rem);
    padding-block: clamp(5.5rem, 16vh, 7rem);
  }
  .hero {
    padding-inline: clamp(1.4rem, 7vw, 2.5rem);
    align-items: flex-start;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__headline {
    font-size: clamp(2.2rem, 9vw, 3.8rem);
  }
  .hero__scroll-indicator {
    font-size: 0.6rem;
    letter-spacing: 0.32em;
  }
  .stories-carousel {
    grid-auto-columns: minmax(70vw, 82vw);
    padding-inline: clamp(1.5rem, 6vw, 2.5rem);
  }
  .story-card__meta p {
    letter-spacing: 0.12em;
  }

  /* Refine overlapping for smaller screens */
  .collage-grid {
    gap: 1rem;
  }

  /* Inherit Desktop-like layout from 960px block (Portrait Right, Landscape Left) */
  /* We remove the column overrides here to let the 960px rules cascade */

  .collage-item--cover,
  .collage-item--cover-secondary {
    grid-column: span 12; /* Full width on small screens */
    min-height: 260px;
  }

  .luxury-footer {
    padding-inline: clamp(1.6rem, 8vw, 2.6rem);
  }
}

@media (max-width: 520px) {
  .story-card__meta h3 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
  .collage-item--cover,
  .collage-item--cover-secondary {
    grid-column: span 12;
  }
  .cover-brand {
    letter-spacing: 0.28em;
  }
  .featured-on__list {
    gap: 1.4rem;
    letter-spacing: 0.24em;
  }
  /* Remove excessive shift on very small screens, let grid handle it */
  .collage-item--landscape {
     margin-left: 0;
     margin-top: 0;
  }
}

/* Focus Collage - Media Left variant */
.focus-collage {
  position: relative;
  min-height: clamp(24rem, 44vw, 32rem);
  width: 100%;
}

.focus-collage figure {
  position: absolute;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.1);
}

.focus-collage figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-collage__portrait {
  width: 60%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  top: 0;
  left: 0;
  z-index: 1;
}

.focus-collage__landscape {
  width: 70%; /* Reduced from 75% to balance width */
  max-width: 440px;
  aspect-ratio: 16 / 9;
  top: 20%;
  left: 40%; /* Adjusted to reduce overlap to 20% while keeping bleed consistent */
  z-index: 2;
}

@media (max-width: 960px) {
  .focus-collage {
    min-height: 55vw;
    margin-top: 2rem;
    position: relative;
  }

  .focus-collage figure {
    width: 55%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .focus-collage__portrait {
    width: 60%;
    top: 0;
    left: 0;
    right: auto;
    z-index: 1;
  }

  .focus-collage__landscape {
    width: 70%;
    top: 35%;
    right: 0;
    left: auto;
    z-index: 2;
  }
}

@media (max-width: 640px) {
  .focus-collage {
    min-height: 85vw;
  }
  .focus-collage figure {
    width: 65%;
  }
}

/* Philosophy Collage - Overlapping image layout with clamped sizing */
.philosophy-collage {
  position: relative;
  /* Match about.html logic: min-height based on view width */
  min-height: clamp(24rem, 44vw, 32rem);
  width: 100%;
}

.philosophy-collage figure {
  position: absolute;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.1);
}

.philosophy-collage figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait image (3:4 aspect ratio) - Anchored RIGHT to avoid cutoff */
.philosophy-collage__portrait {
  /* Width logic from about.css (approx 60% of container) */
  width: 60%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  top: 0;
  right: 0; /* Anchor to right edge */
  left: auto;
  z-index: 1; /* Sit behind landscape if we want overlap style, or change to 2 if front */
}

/* Landscape image (16:9 aspect ratio) - Overlaps to the LEFT */
.philosophy-collage__landscape {
  /* Wider relative width to compensate for shorter height of 16:9 */
  width: 75%;
  max-width: 440px;
  aspect-ratio: 16 / 9;

  /* Positioning relative to container */
  top: 20%; /* Slightly overlap vertically */
  right: 35%; /* Push it leftwards away from the right edge */

  /*
     Logic explanation:
     If portrait is at right: 0 and ~60% width.
     We want landscape to be to the left of it, overlapping slightly.
     right: 35% pushes it far enough left to overlap the remaining 40% space + some of the image.
  */

  z-index: 2; /* Sit on top */
}

/* Mobile: Stack images vertically */
@media (max-width: 960px) {
  .philosophy-collage {
    display: block; /* context for absolute children reset below? No, we want flow layout */
    min-height: auto;
    margin-top: 2rem;
    position: relative;
    /* Reset height constraint */
    min-height: 55vw;
  }

  .philosophy-collage figure {
    /* Keep absolute for consistency with about.css mobile logic or switch to flow?
       about.css uses absolute on mobile too for the overlap effect. */
    width: 55%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  /* Reset positions for mobile overlap */
  .philosophy-collage__portrait {
    width: 60%;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
  }

  .philosophy-collage__landscape {
    width: 70%;
    top: 35%; /* Push down */
    left: 0; /* Anchor left */
    right: auto;
    z-index: 2;
  }
}

@media (max-width: 640px) {
    .philosophy-collage {
        min-height: 85vw;
    }

    .philosophy-collage figure {
        width: 65%;
    }

    .philosophy-collage__landscape {
        top: 45%;
    }
}

/* Testimonials Slider - Restored & Refined Styles */
.luxury-footer {
  background-color: #f2f2f2; /* CTA Gray */
  padding-block: clamp(6rem, 15vh, 10rem);
  text-align: center;
}

/* Match content-block__title style */
.luxury-footer h3 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  margin-bottom: 3rem;
  display: block;
}

.testimonial-slider {
  max-width: 1200px; /* Increased to allow full span */
  margin-inline: auto;
  padding-bottom: 4rem; /* More space for dots */
}

.testimonial-slide figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.testimonial-slide blockquote p {
  font-family: var(--font-display);
  /* Reduced font size by approx 25% (previously clamp(1.8rem, 4vw, 2.8rem)) */
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--color-text-primary);

  /* Span across slider with requested padding */
  max-width: none;
  padding-inline: clamp(2.5rem, 10vw, 8rem);
  margin-inline: auto;
}

.testimonial-slide figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-slide figcaption img {
  /* Doubled size (60px -> 120px) */
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  /* Removed grayscale filter */
  filter: none;
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* CSS Slider overrides for testimonial slider */
.testimonial-slider .css-slider__dots {
  margin-top: 2rem;
}

/* Testimonial Slide Responsive Heights */
.testimonial-slide {
  height: auto;
  min-height: 250px;
  width: auto;
}

@media (min-width: 768px) {
  .testimonial-slide {
    min-height: 350px;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    min-height: 450px;
  }
}


/* Testimonial figure spacing adjustments for mobile */
@media (max-width: 767px) {
  .testimonial-slide figure {
    gap: 1.5rem;
  }

  .testimonial-slide figcaption {
    gap: 0.75rem;
  }

  .testimonial-slide blockquote p {
    padding-inline: 0.5rem;
    font-size: 1.25rem;
  }

  .luxury-footer {
    padding-block: 4rem;
  }
}


.mt-2 {
  margin-top: 0.5rem;
}