/* LED photo frames: split hero, comparison section, phone-friendly comparison tables.
   Loaded after led-photo-frames.css. Scoped to new classes so nothing else on the page changes. */

/* ---------- Hero: text in empty space, photograph never covered ---------- */
.led-hero-split {
  --led-g: 255, 196, 120;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 4rem) clamp(3.5rem, 8vw, 6rem);
  background: #0c0a08;
  color: #f4eee4;
}

.led-hero-split__halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(46% 72% at 72% 50%, rgba(var(--led-g), 0.26), transparent 72%);
  transition: background 0.7s;
}

.led-hero-split__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
}

.led-hero-split__kicker {
  display: block;
  font-family: var(--led-font-body, 'Inter', system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgb(var(--led-g));
  transition: color 0.7s;
}

.led-hero-split__display {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.75rem, 5.4vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #f4eee4;
}

.led-hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.led-hw > span {
  display: inline-block;
  transform: translateY(108%);
  animation: ledWordUp 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.5s + var(--i, 0) * 0.1s);
}

.led-hero-split__lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #cfc6b4;
}

.led-hero-split__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.led-hero-split__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 2rem 0 0;
  color: #cfc6b4;
}

.led-hero-split__price strong {
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.led-hero-split__price s {
  margin-right: 0.5rem;
  color: #8f877a;
}

.led-hero-split__trust {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: #d9d0bf;
}

.led-hero-split__points {
  display: grid;
  gap: 0.75rem 2rem;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  font-size: 1rem;
  color: #d9d0bf;
}

.led-hero-split__points li {
  position: relative;
  padding-left: 1.6rem;
}

.led-hero-split__points li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid rgb(var(--led-g));
  border-bottom: 2px solid rgb(var(--led-g));
  transform: rotate(-45deg);
}

.led-hero-split__points--mobile {
  display: grid;
}

.led-hero-split__points--desktop {
  display: none;
}

.led-hero-split__frame {
  position: relative;
  margin: 0 auto;
  max-width: 34rem;
  outline: 2px solid rgba(var(--led-g), 0.85);
  animation: ledBreathe 5.5s ease-in-out infinite;
}

.led-hero-split__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  animation: ledLightsOn 2.2s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both;
}

.led-hero-split__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: ledKenBurns 26s ease-out 1.5s both;
}

.led-hero-split__chips {
  position: absolute;
  inset: auto 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ledFadeIn 1.2s ease-out 2.4s both;
}

.led-hero-split__chips li {
  padding: 0.4rem 0.75rem;
  background: rgba(12, 10, 8, 0.78);
  font-size: 0.875rem;
  color: #f4eee4;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.led-hero-split__tone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 34rem;
  margin: 1.25rem auto 0;
}

.led-hero-split__tone-label {
  flex-basis: 100%;
  font-size: 1rem;
  color: #a69f93;
}

.led-hero-split__tone-btn {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #a69f93;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.led-hero-split__tone-btn:hover {
  color: #fff;
}

.led-hero-split__tone-btn[aria-checked='true'] {
  border-color: #d4af37;
  color: #e8d48b;
}

.led-hero-split__tone-btn:focus-visible,
.led-hero-split .led-btn:focus-visible {
  outline: 2px solid #e8d48b;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .led-hero-split__tone-label {
    flex-basis: auto;
    margin-right: 0.5rem;
  }
}

@media (min-width: 768px) {
  .led-hero-split__grid {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }

  .led-hero-split__frame,
  .led-hero-split__tone {
    max-width: none;
  }

  .led-hero-split__photo {
    aspect-ratio: 6 / 7;
  }

  .led-hero-split__points--desktop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .led-hero-split__points--mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .led-hero-split__grid {
    min-height: calc(100svh - 11rem);
  }
}

/* ---------- Regular frame vs LED frame ---------- */
.led-compare {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  background: #0c0a08;
  color: #f4eee4;
}

.led-compare .led-container {
  max-width: 76rem;
  margin: 0 auto;
}

.led-compare__head {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.led-compare__head h2 {
  margin: 0;
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.led-compare__head p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #a69f93;
}

.led-compare__figure {
  position: relative;
  margin: 2.5rem 0 0;
}

.led-compare__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Phones: captions sit under the photo so they never cover the faces. */
.led-compare__figure figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0 0;
  font-size: 1rem;
}

.led-compare__figure figcaption strong {
  color: #e8d48b;
}

.led-compare__figure small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: #cfc6b4;
}

@media (min-width: 768px) {
  .led-compare__head {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }

  .led-compare__figure::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(to top, rgba(12, 10, 8, 0.88), transparent);
    pointer-events: none;
  }

  .led-compare__figure figcaption {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 2rem;
    font-size: 1.125rem;
  }
}

/* ---------- Day/night demo: one clean night photo, daylight simulated ---------- */
.led-day-night-demo img.led-day-night-day {
  filter: brightness(1.7) saturate(0.7) contrast(0.85);
}

/* ---------- Comparison tables become labelled rows on phones ---------- */
@media (max-width: 767px) {
  .led-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .led-comparison-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .led-comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .led-comparison-table tbody,
  .led-comparison-table tr {
    display: block;
  }

  .led-comparison-table tr {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--led-border, rgba(255, 255, 255, 0.14));
  }

  .led-comparison-table tbody th[scope='row'] {
    display: block;
    padding: 0 0 0.5rem;
    border: 0;
    font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.4rem;
    white-space: normal;
  }

  .led-comparison-table td {
    display: block;
    padding: 0.35rem 0;
    border: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .led-comparison-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--led-gold-light, #e8d48b);
  }
}

/* ---------- Motion ---------- */
@keyframes ledWordUp {
  from { transform: translateY(108%); }
  to { transform: translateY(0); }
}

@keyframes ledLightsOn {
  0% { filter: brightness(0.18) saturate(0.6); }
  55% { filter: brightness(0.4) saturate(0.8); }
  100% { filter: brightness(1) saturate(1); }
}

@keyframes ledKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

@keyframes ledFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ledBreathe {
  0%, 100% { box-shadow: 0 0 70px 12px rgba(var(--led-g), 0.3), 0 0 160px 40px rgba(var(--led-g), 0.12); }
  50% { box-shadow: 0 0 100px 24px rgba(var(--led-g), 0.5), 0 0 220px 60px rgba(var(--led-g), 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .led-hw > span,
  .led-hero-split__photo,
  .led-hero-split__img,
  .led-hero-split__chips,
  .led-hero-split__frame {
    animation: none;
  }

  .led-hw > span {
    transform: none;
  }

  .led-hero-split__halo,
  .led-hero-split__kicker,
  .led-hero-split__tone-btn {
    transition: none;
  }
}

/* =====================================================================
   Section upgrades: editorial layouts that reuse the page's own palette.
   Everything is scoped to #led-page-root so other pages are unaffected.
   ===================================================================== */

/* ---------- Built to last: one compact row, not four full-screen beats ---------- */
#led-page-root .pex-cinematic {
  display: grid;
  gap: 2.5rem 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem);
}

#led-page-root .pex-cinematic__intro {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

#led-page-root .pex-cinematic__intro .led-section-title-center {
  margin-left: 0;
  text-align: left;
}

#led-page-root .pex-cinematic__beat {
  display: block;
  min-height: 0;
  padding: 0;
}

#led-page-root .pex-cinematic__beat-media {
  max-height: none;
  aspect-ratio: 3 / 4;
}

#led-page-root .pex-cinematic__beat-media img {
  max-height: none;
}

#led-page-root .pex-cinematic__beat-copy {
  max-width: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
}

#led-page-root .pex-cinematic__beat-sentence {
  font-size: 1.25rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  #led-page-root .pex-cinematic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  #led-page-root .pex-cinematic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #led-page-root .pex-cinematic__beat:nth-of-type(even) {
    margin-top: 3rem;
  }
}

/* ---------- Craft timeline: heading on the left, steps on the right ---------- */
@media (min-width: 900px) {
  #led-craft-timeline .led-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 5rem;
    align-items: start;
    max-width: 76rem;
  }

  #led-craft-timeline .led-container > :not(.led-craft-timeline__track) {
    grid-column: 1;
    margin-left: 0;
    text-align: left;
  }

  #led-craft-timeline .led-craft-timeline__track {
    grid-column: 2;
    grid-row: 1 / span 6;
  }
}

/* ---------- Stats: one ledger row, no boxed cards ---------- */
#led-stats .led-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 76rem;
  margin: 0 auto;
  border-top: 1px solid rgba(26, 22, 18, 0.18);
}

#led-stats .led-stat-card {
  padding: 1.75rem 1.25rem;
  border: 0;
  border-bottom: 1px solid rgba(26, 22, 18, 0.18);
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

#led-stats .led-stat-value {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.05;
}

@media (min-width: 900px) {
  #led-stats .led-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #led-stats .led-stat-card {
    border-bottom: 0;
    border-right: 1px solid rgba(26, 22, 18, 0.18);
  }

  #led-stats .led-stat-card:last-child {
    border-right: 0;
  }
}

/* ---------- Memory stories: flat columns ---------- */
#led-memory-stories .led-memory-stories__grid {
  display: grid;
  gap: 0;
  max-width: 76rem;
  margin: 0 auto;
  border-top: 1px solid var(--led-border, rgba(255, 255, 255, 0.14));
}

#led-memory-stories .led-memory-card {
  padding: 2rem 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--led-border, rgba(255, 255, 255, 0.14));
  border-radius: 0;
  background: none;
  box-shadow: none;
}

@media (min-width: 900px) {
  #led-memory-stories .led-memory-stories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #led-memory-stories .led-memory-card {
    border-bottom: 0;
    border-right: 1px solid var(--led-border, rgba(255, 255, 255, 0.14));
  }

  #led-memory-stories .led-memory-card:last-child {
    border-right: 0;
  }
}

/* ---------- FAQ: heading beside a ruled list, not a wall of cards ---------- */
#led-faq .led-faq-list--cards {
  display: block;
}

#led-faq .led-faq-card {
  padding: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--led-border, rgba(255, 255, 255, 0.14));
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#led-faq .led-faq-card:last-child {
  border-bottom: 1px solid var(--led-border, rgba(255, 255, 255, 0.14));
}

#led-faq .led-faq-card__icon {
  display: none;
}

#led-faq .led-faq-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

@media (min-width: 900px) {
  #led-faq .led-container {
    display: grid;
    grid-template-columns: 4fr 8fr;
    column-gap: 5rem;
    align-items: start;
    max-width: 76rem;
  }

  #led-faq .led-container > h2,
  #led-faq .led-container > p {
    grid-column: 1;
    margin-left: 0;
    text-align: left;
  }

  #led-faq .led-faq-list {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* ---------- Tables: ledger rows on larger screens ---------- */
@media (min-width: 768px) {
  .led-table-wrap {
    border: 0;
    border-radius: 0;
  }

  .led-comparison-table {
    font-size: 1.0625rem;
  }

  .led-comparison-table thead th {
    background: none;
    border-bottom: 1px solid var(--led-border, rgba(255, 255, 255, 0.18));
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--led-muted, #a69f93);
  }

  .led-comparison-table tbody th[scope='row'] {
    padding: 1.25rem 1.5rem 1.25rem 0;
    font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.5rem;
    font-weight: 500;
    white-space: normal;
  }

  .led-comparison-table td {
    padding: 1.25rem 1.5rem 1.25rem 0;
    line-height: 1.55;
  }
}

/* ---------- Gift ideas: photo mosaic ---------- */
.led-occ {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  background: #0c0a08;
  color: #f4eee4;
}

.led-occ__wrap {
  max-width: 76rem;
  margin: 0 auto;
}

.led-occ__title {
  max-width: 40rem;
  margin: 0;
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.led-occ__grid {
  display: grid;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.led-occ__card {
  display: block;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.led-occ__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.led-occ__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.led-occ__card:hover .led-occ__media img {
  transform: scale(1.04);
}

.led-occ__copy {
  display: block;
  padding: 1.1rem 0 0.5rem;
}

.led-occ__name {
  display: block;
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.6rem;
  line-height: 1.15;
}

.led-occ__text {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #cfc6b4;
}

.led-occ__go {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e8d48b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.led-occ__card:focus-visible {
  outline: 2px solid #e8d48b;
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .led-occ__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .led-occ__grid > li:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
  }

  .led-occ__grid > li:nth-child(n + 2) {
    grid-column: span 5;
  }

  .led-occ__card {
    position: relative;
    min-height: 18rem;
  }

  .led-occ__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .led-occ__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 10, 8, 0.9), rgba(12, 10, 8, 0.15) 60%, transparent);
    pointer-events: none;
  }

  .led-occ__copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .led-occ__media img {
    transition: none;
  }

  .led-occ__card:hover .led-occ__media img {
    transform: none;
  }
}

/* ---------- Fixes found while reviewing ---------- */
#led-page-root .pex-cinematic__beat-media img {
  aspect-ratio: 3 / 4;
  height: auto;
}

#led-page-root .pex-cinematic__intro .led-section-eyebrow {
  text-align: left;
}

@media (min-width: 900px) {
  #led-craft-timeline .led-container > h2 {
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.06;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (min-width: 768px) {
  .led-comparison-table tbody th[scope="row"] {
    min-width: 9.5rem;
  }
}

/* =====================================================================
   Remaining sections, matched to the approved design
   ===================================================================== */

/* ---------- Pricing: featured cards open with a room photo ---------- */
.led-price-card__photo {
  order: -1;
  width: calc(100% + 2.3rem);
  margin: -1.15rem -1.15rem 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.led-price-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- How it works: ruled columns with large numerals ---------- */
#led-how-it-works .led-how__list {
  gap: 0;
  max-width: 76rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#led-how-it-works .led-how__step {
  padding: 1.5rem 1.25rem 1.75rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: none;
}

#led-how-it-works .led-how__num {
  width: auto;
  height: auto;
  margin-bottom: 0.5rem;
  border: 0;
  border-radius: 0;
  font-size: 3rem;
  line-height: 1;
  color: var(--led-gold-light, #e8d48b);
}

@media (min-width: 1024px) {
  #led-how-it-works .led-how__step {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  #led-how-it-works .led-how__step:first-child {
    padding-left: 0;
  }

  #led-how-it-works .led-how__step:last-child {
    border-right: 0;
  }
}

/* ---------- Featured story: photo beside the quote ---------- */
@media (min-width: 900px) {
  #led-featured-story {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 4rem;
    align-items: center;
    max-width: 76rem;
    text-align: left;
  }

  #led-featured-story .pex-editorial-story__photo {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0;
  }

  #led-featured-story > :not(.pex-editorial-story__photo) {
    grid-column: 2;
  }

  #led-featured-story .pex-editorial-story__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  #led-featured-story .pex-editorial-story__quote {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
  }
}

/* ---------- Gallery: a later cream-chapter rule made the titles dark on a dark card ---------- */
#led-gallery .led-gallery-content h3 {
  color: #f4eee4;
}

#led-gallery .led-gallery-content p {
  color: #cfc6b4;
}

/* ---------- Difference: cards size to their content ---------- */
.led-difference-stages {
  align-items: start;
}

/* ---------- Cross-sell: ruled rows with a small thumbnail ---------- */
#led-cross-sell .led-cross-sell-grid {
  display: block;
  max-width: 76rem;
  margin: 0 auto;
  border-top: 1px solid rgba(26, 22, 18, 0.18);
}

#led-cross-sell .led-cross-sell-card {
  border: 0;
  border-bottom: 1px solid rgba(26, 22, 18, 0.18);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#led-cross-sell .led-cross-sell-card > a {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
}

#led-cross-sell .led-cross-sell-card img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
}

#led-cross-sell .led-cross-sell-body {
  padding: 0;
}

#led-cross-sell .led-cross-sell-body h3 {
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.4rem;
  font-weight: 500;
}

/* ---------- Technology and safety: compact hero plus a three-up grid ---------- */
#led-tech-trust .pex-tech-hero {
  min-height: 0;
  height: clamp(18rem, 38vw, 28rem);
}

@media (min-width: 900px) {
  #led-tech-trust .pex-tech-supporting {
    max-width: 76rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }

  #led-tech-trust .pex-tech-supporting__item img {
    aspect-ratio: 4 / 3;
  }

  #led-tech-trust .pex-tech-supporting__sentence {
    font-size: 1.25rem;
    text-align: left;
  }
}

/* ---------- Footer call to action: large and left-aligned ---------- */
#led-footer-cta .led-container {
  max-width: 76rem;
  margin: 0 auto;
  text-align: left;
}

#led-footer-cta h2 {
  max-width: 16ch;
  margin-left: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: left;
}

#led-footer-cta .led-footer-cta-emotional__sub,
#led-footer-cta .led-footer-cta-emotional__trust {
  max-width: 34rem;
  margin-left: 0;
  text-align: left;
}

/* Featured story: consistent left edge and a readable ghost button on cream */
@media (min-width: 900px) {
  #led-featured-story > :not(.pex-editorial-story__photo) {
    max-width: 34rem;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }
}

#led-featured-story .led-btn-ghost {
  color: #1a1814;
  border-color: rgba(26, 24, 20, 0.4);
}

#led-featured-story .led-btn-ghost:hover {
  border-color: #7a5f0a;
  color: #7a5f0a;
}

/* Contrast on cream: an earlier chapter rule forces light text on this button; prices were pale gold */
#led-featured-story .led-btn-ghost {
  color: #1a1814 !important;
}

#led-featured-story .led-btn-ghost:hover {
  color: #7a5f0a !important;
}

#led-cross-sell .led-cross-sell-sale,
#led-cross-sell .led-cross-sell-price {
  color: #7a5f0a;
}

#led-cross-sell .led-cross-sell-mrp {
  color: #6f6a62;
}

/* =====================================================================
   Global rhythm: one heading scale, one padding scale, one dark tone.
   Matches the approved design (68px left-aligned headings, 112px bands,
   pure ink and warm paper, no chapter title bars or all-caps labels).
   ===================================================================== */

/* ---------- Chapter title bars: kept for screen readers, removed visually ---------- */
#led-page-root .led-chapter-header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- All-caps gold labels above headings ---------- */
#led-page-root .led-section-eyebrow,
#led-page-root .led-price-showcase__eyebrow {
  display: none;
}

/* ---------- One heading scale, left-aligned ---------- */
#led-page-root section > .led-container > h2,
#led-page-root section > h2,
#led-page-root .led-price-showcase__title,
#led-page-root .pex-cinematic__intro h2,
#led-page-root .led-packaging > .led-container > h2,
#led-page-root .led-bridge-upload h2 {
  max-width: 22ch;
  margin-left: 0;
  margin-right: auto;
  font-family: var(--led-font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-align: left;
}

#led-page-root .led-section-title-center,
#led-page-root .led-section-sub-center,
#led-page-root .led-price-showcase__header,
#led-page-root .led-price-showcase__sub {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

#led-page-root section > .led-container > .led-section-sub,
#led-page-root .led-price-showcase__sub {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- One padding scale ---------- */
#led-page-root .led-section,
#led-page-root .led-price-showcase,
#led-page-root .led-day-night-demo,
#led-page-root .led-the-difference,
#led-page-root .led-stats,
#led-page-root .led-memory-stories,
#led-page-root .led-craft-timeline,
#led-page-root .led-packaging,
#led-page-root .led-bridge-upload {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* ---------- Content width: the same measure as the design ---------- */
#led-page-root .led-container {
  max-width: 76rem;
}

/* ---------- One dark: pure ink instead of grey-charcoal ---------- */
#led-page-root .led-chapter--craftsmanship,
#led-page-root .led-chapter--see-at-home,
#led-page-root .led-chapter--confidence,
#led-page-root .led-craft-timeline,
#led-page-root .pex-cinematic,
#led-page-root .led-day-night-demo,
#led-page-root .led-faq,
#led-page-root #led-tone-guide,
#led-page-root .led-price-showcase,
#led-page-root .led-chapter-experience,
#led-page-root .led-chapter--experience {
  background-color: #0c0a08;
}

/* ---------- Heading scale: bring the remaining outliers onto the same size ---------- */
#led-page-root .pex-why-exists__headline,
#led-page-root .led-compare__head h2,
#led-page-root .led-occ__title,
#led-page-root #led-story-emotional h2,
#led-page-root #led-studio h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.015em;
}

#led-page-root .pex-why-exists__headline,
#led-page-root #led-studio h2 {
  text-align: left;
}

/* Headings inside the configurator panel are UI labels, not section titles */
#led-page-root .led-config h2,
#led-page-root .led-studio-panel h2 {
  max-width: none;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0;
}

/* New photo set */
.led-compare__figure img {
  aspect-ratio: 3 / 2;
}

#led-page-root .pex-cinematic__beat:nth-of-type(4) .pex-cinematic__beat-media img {
  object-position: 78% 40%;
}

/* Story banner: keep the faces clear of the headline by cropping to the calm lower part of the photo */
#led-page-root #led-story-emotional img {
  object-position: 50% 90%;
}

/* Hero cutout: the couple sits inside the LED frame on a warm backdrop that follows the chosen light tone */
.led-hero-split__frame--cutout .led-hero-split__photo {
  background:
    radial-gradient(70% 62% at 50% 40%, rgba(var(--led-g), 0.6), rgba(var(--led-g), 0.14) 72%),
    #1a130c;
  transition: background 0.7s;
}

.led-hero-split__frame--cutout .led-hero-split__img {
  object-fit: contain;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .led-hero-split__frame--cutout .led-hero-split__photo {
    transition: none;
  }
}

/* =====================================================================
   No cropping: every showcase photo is shown whole.
   Boxes size to the picture (or letterbox it on a dark ground); the two
   full-bleed banners become a split layout with the whole photo beside the text.
   Photos inside the studio editor are left alone: those are the customer's own uploads.
   ===================================================================== */

/* ---------- Hero ---------- */
.led-hero-split__img {
  object-fit: contain;
}

/* ---------- Comparison ---------- */
.led-compare__figure img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Pricing cards: one box size, whole photo inside on a dark ground ---------- */
.led-price-card__photo {
  aspect-ratio: 3 / 2;
  background: #0d0b09;
}

.led-price-card__photo img {
  object-fit: contain;
}

/* ---------- Built to last: each photo at its own proportions ---------- */
#led-page-root .pex-cinematic {
  align-items: start;
}

#led-page-root .pex-cinematic__beat-media {
  aspect-ratio: auto;
  max-height: none;
}

#led-page-root .pex-cinematic__beat-media img,
#led-page-root .pex-cinematic__beat:nth-of-type(4) .pex-cinematic__beat-media img {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: 50% 50%;
}

/* ---------- Gift ideas: three whole photos with the text underneath ---------- */
.led-occ__grid {
  align-items: start;
}

.led-occ__media img {
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .led-occ__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .led-occ__grid > li:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .led-occ__card {
    position: static;
    min-height: 0;
  }

  .led-occ__media {
    position: relative;
    inset: auto;
    aspect-ratio: auto;
  }

  .led-occ__card::after {
    display: none;
  }

  .led-occ__copy {
    position: static;
    padding: 1.1rem 0 0.5rem;
  }
}

/* ---------- Story photos ---------- */
#led-featured-story .pex-editorial-story__photo img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

#led-page-root .pex-why-exists__media img {
  aspect-ratio: auto;
  object-fit: contain;
}

.led-memory-story__image img,
.led-memory-card .led-memory-story__image img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Gallery, difference, cross-sell ---------- */
#led-page-root .led-gallery-image-wrap img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: 50% 50%;
}

#led-page-root .led-difference-stage__visual,
#led-page-root .led-difference-stage__visual img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

#led-cross-sell .led-cross-sell-card img {
  object-fit: contain;
}

/* ---------- Technology and safety ---------- */
#led-tech-trust .pex-tech-hero {
  position: relative;
  height: auto;
  min-height: 0;
  max-width: 60rem;
  margin-inline: auto;
}

#led-tech-trust .pex-tech-hero__media {
  position: relative;
  inset: auto;
}

#led-tech-trust .pex-tech-hero__media img {
  height: auto;
  object-fit: contain;
}

#led-tech-trust .pex-tech-supporting {
  align-items: start;
}

#led-tech-trust .pex-tech-supporting__item img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Packaging ---------- */
#led-page-root .led-built-screen__media {
  min-height: 0;
  aspect-ratio: auto;
}

#led-page-root .led-built-screen__media img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* ---------- Day/night demo: the box takes the photo's own proportions ---------- */
#led-page-root .led-day-night-demo .led-day-night-slider {
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: 0;
  max-height: none;
}

#led-page-root .led-day-night-demo img.led-day-night-day {
  object-fit: contain;
}

#led-page-root .led-day-night-night {
  background-size: contain;
}

/* ---------- Story banner: whole photo beside the text instead of behind it ---------- */
#led-page-root .led-story-emotional {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 0;
  padding: clamp(3rem, 8vw, 6rem) max(1.25rem, calc((100% - 76rem) / 2));
  background: #0c0a08;
}

#led-page-root .led-story-emotional__media {
  position: relative;
  inset: auto;
  margin: 0;
}

#led-page-root .led-story-emotional__media img,
#led-page-root .led-story-emotional__media .led-parallax-img {
  height: auto;
  object-fit: contain;
  transform: none !important;
}

#led-page-root .led-story-emotional__overlay {
  display: none;
}

#led-page-root .led-story-emotional__copy {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  text-align: left;
}

#led-page-root .led-story-emotional__copy h2 {
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  text-align: left;
}

@media (min-width: 900px) {
  #led-page-root .led-story-emotional {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

/* ---------- Footer banner: whole photo beside the call to action ---------- */
#led-page-root .led-footer-cta-emotional {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 0;
  padding: clamp(3rem, 8vw, 6rem) max(1.25rem, calc((100% - 76rem) / 2));
  background: #0c0a08;
  overflow: hidden;
}

#led-page-root .led-footer-cta-emotional::before {
  content: '';
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  order: 2;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--led-footer-bg, none) center / contain no-repeat;
  filter: none;
  animation: none;
}

#led-page-root .led-footer-cta-emotional::after,
#led-page-root .led-footer-cta-emotional__overlay {
  display: none;
}

#led-page-root .led-footer-cta-emotional > .led-container {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
}

@media (min-width: 900px) {
  #led-page-root .led-footer-cta-emotional {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  #led-page-root .led-footer-cta-emotional::before {
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }

  #led-page-root .led-footer-cta-emotional > .led-container {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .led-compare__figure img,
  .led-occ__media img {
    transition: none;
  }
}

/* ---------- Day/night: solid daylight layer + evening layer + a glow that rises with the slider ----------
   The script fades the two layers against each other, which dips to a dim blend in the middle.
   Keeping the daylight layer fully opaque turns it into a true crossfade; the ::after bloom lifts the
   frame's bright areas as the room darkens, so the glow actually rises. */
#led-page-root .led-day-night-demo img.led-day-night-day {
  opacity: 1 !important;
  filter: brightness(1.45) saturate(0.8) contrast(0.92);
}

#led-page-root .led-day-night-demo .led-day-night-night {
  filter: brightness(0.3) saturate(0.95);
}

#led-page-root .led-day-night-demo .led-day-night-slider::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: 3;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.78), transparent);
  pointer-events: none;
}

#led-page-root .led-day-night-demo .led-day-night-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--led-night-image, none) center / contain no-repeat;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(1.3) saturate(1.2);
  opacity: calc(var(--led-day-night-mix, 0) * 1);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #led-page-root .led-day-night-demo .led-day-night-night {
    transition: none;
  }
}
