/* =========================================================================
   Philharmonia by Jean Nouvel — main.css
   Modern minimalist design, mobile-first, no framework.
   ========================================================================= */

/* ---- Reset & base --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'kern', 'liga', 'ss01';
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}
a:hover { opacity: .8; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

/* ---- Theme tokens --------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #86868b;
  --accent: #0066cc;
  --border: #d2d2d7;

  --container: 1100px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --t-fast: .2s ease;
  --t-base: .35s ease;
  --t-slow: .8s cubic-bezier(.2, .8, .2, 1);
}

/* ---- Layout primitives ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 9vw, 7rem);
}

.section--alt   { background: var(--bg-alt); }
.section--dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark .muted { color: var(--text-on-dark-muted); }

.section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.muted { color: var(--text-muted); }

/* ---- Typography helpers --------------------------------------------------- */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); font-weight: 200; }
.h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 300; }
.h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 60ch;
}

.section--dark .lead { color: var(--text-on-dark-muted); }

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn--primary {
  background: var(--text); color: var(--bg);
}
.btn--primary:hover { background: #2c2c2e; }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.section--dark .btn--ghost { border-color: rgba(255, 255, 255, .25); color: var(--text-on-dark); }
.btn--ghost:hover { background: rgba(0, 0, 0, .04); }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); }

.btn--inline {
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
}

/* Inline chevron link — blue, no underline. */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: .15rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #0066cc;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.link-arrow:hover { opacity: .8; }
.link-arrow .arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  margin-left: .1rem;
  text-decoration: none;
  transition: transform var(--t-fast);
}
.link-arrow:hover .arrow { transform: translateX(2px); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / Nav --------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: background var(--t-base), border-color var(--t-base);
}

.header--on-dark {
  background: rgba(29, 29, 31, .72);
  border-bottom-color: rgba(255, 255, 255, .08);
  color: var(--text-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nav__brand {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.nav__list {
  display: none;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__lang {
  display: flex;
  gap: .35rem;
  font-size: .8rem;
  align-items: center;
}
.nav__lang a { color: var(--text-muted); }
.nav__lang a.active { color: var(--text); font-weight: 500; }
.header--on-dark .nav__lang a { color: var(--text-on-dark-muted); }
.header--on-dark .nav__lang a.active { color: var(--text-on-dark); }

/* Hamburger button — mobile only */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  z-index: 102;
}
.nav__burger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
}
.header--on-dark .nav__burger-line { background: var(--text-on-dark); }

.nav__burger[aria-expanded="true"] .nav__burger-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  align-items: flex-start;
  padding: 100px var(--gutter) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__nav {
  width: 100%;
}
.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu__list li {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.mobile-menu__list a {
  display: block;
  padding: 18px 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}
.mobile-menu__lang {
  display: flex;
  gap: 1.25rem;
  margin-top: 32px;
  padding-top: 8px;
}
.mobile-menu__lang a {
  font-size: 1rem;
  color: var(--text-muted);
}
.mobile-menu__lang a.active {
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav__burger { display: none; }
  .mobile-menu { display: none; }
  .nav__list { display: flex; }
  .nav__list a { font-size: .85rem; color: inherit; }
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  top: 0; bottom: -100px; left: 0; right: 0;
  z-index: -1;
  background-color: #000;
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  max-width: 800px;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 200;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(245, 245, 247, .85);
  max-width: 50ch;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  opacity: .8;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 8px;
  background: rgba(255, 255, 255, .8);
  border-radius: 1px;
  animation: scroll-hint 1.8s infinite;
}
@keyframes scroll-hint {
  0%   { transform: translate(-50%, 0); opacity: 0; }
  30%  { opacity: 1; }
  60%  { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll::after { animation: none; }
}

/* ---- Parallax break sections (between content) --------------------------- */

/* Parallax break (between content sections) — outer clips, inner moves.
   Sized generously so the photography is the hero, not a strip. Content
   sections keep their own min-height so neither dominates. */
.parallax {
  position: relative;
  height: clamp(420px, 75vh, 820px);
  overflow: hidden;
  isolation: isolate;
}
.parallax__bg {
  position: absolute;
  top: -70px; bottom: -70px; left: 0; right: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
.parallax::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, .12);
  pointer-events: none;
}

@media (max-width: 734px) {
  .parallax {
    height: 300px;
  }
}

/* ---- Product cards (used on home page) ----------------------------------- */

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
}

.product-card__image {
  margin-block: 1rem;
  max-width: min(560px, 90vw);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .15));
}

.product-card__cta {
  display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center;
  margin-top: .5rem;
}

/* ---- Product page: feature sections + techspecs ------------------------- */

.feature {
  padding-block: clamp(2.5rem, 5vw, 4rem);   /* tighter vertical rhythm */
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: center;
}
.feature--alt {
  background: var(--bg-alt);
}

.feature__inner {
  max-width: 1500px;       /* wider — uses the page width on big screens */
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .8rem;
}

.feature__title {
  font-size: clamp(1.55rem, 3.7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin: 0 0 .75rem;
  text-align: center;
  max-width: 100%;
  /* Monochrome gradient — Apple "macOS / Powering possibility" feel.
     More pronounced top→bottom fade for a stronger tech identity. */
  background: linear-gradient(180deg, #1d1d1f 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* For the "most tech" catch sentences — same clip-text trick, but with a
   subtle multi-color gradient. Reserved use: power / processing / DSP /
   connectivity headings. Apply via section.accent: true in content JSON. */
.feature__title--accent {
  background: linear-gradient(90deg, #0071e3 0%, #6e6cff 50%, #ff3b8a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* On gray-bg .feature--alt sections, slightly darken the bottom stop so
   the title doesn't fade into the bg. */
.feature--alt .feature__title:not(.feature__title--accent) {
  background: linear-gradient(180deg, #1d1d1f 0%, #86868b 100%);
  -webkit-background-clip: text;
          background-clip: text;
}

.feature__body {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 .9rem;
  width: 100%;
  max-width: 100%;          /* fill .feature__inner column entirely */
  text-align: center;
}

/* "En savoir plus" toggle (native <details>/<summary>) — same width as body */
.feature__toggle {
  margin-top: .75rem;
  padding-top: 1rem;
  text-align: center;
  width: 100%;
  max-width: 100%;          /* matches .feature__body — same container column */
}
.feature__toggle:last-of-type { margin-bottom: 0; }
.feature__toggle + .feature__toggle { margin-top: .25rem; padding-top: .5rem; }

.feature__toggle-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .25rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #0066cc;
  user-select: none;
  transition: color var(--t-fast);
}
.feature__toggle-summary::-webkit-details-marker { display: none; }
.feature__toggle-summary:hover { color: #0077ed; }

.feature__toggle-icon {
  display: inline-block;
  width: 14px; height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--t-base);
}
.feature__toggle[open] .feature__toggle-icon {
  transform: rotate(225deg);
  margin-top: 3px;
}

.feature__toggle-body {
  padding-top: .75rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;          /* matches .feature__body width exactly */
  margin-inline: auto;
  text-align: center;
}
.feature__toggle-body p { margin: 0 0 .8rem; }
.feature__toggle-body p:last-child { margin-bottom: 0; }

/* ---- Hero (product pages) — minimal, title only ------------------------- */

.page-product .hero { color: var(--text-on-dark); }
.page-product .hero__title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}
.page-philharmonia .hero__bg {
  background-position: center calc(100% + 100px);
}

@media (max-width: 734px) {
  .page-product .hero {
    min-height: 40vh;
    min-height: 40svh;
  }
  .page-product .hero__bg {
    bottom: 0;
    background-size: 100% auto;
    background-position: center center;
  }
  .page-philharmonia .hero {
    min-height: 70vh;
    min-height: 70svh;
  }
  .page-philharmonia .hero__bg {
    background-size: 140% auto;
    background-position: center bottom;
  }
  .page-mini .hero {
    min-height: 70vh;
    min-height: 70svh;
  }
  .page-mini .hero__bg {
    background-size: 180% auto;
    background-position: center bottom;
  }
}

/* ---- Tech specs (Apple MacBook Neo specs pattern) ----------------------- */

/* The techspecs section now reuses .feature for its title block, so the
   only spacing we need to add is the gap between the title and the table. */
.feature.techspecs {
  flex-direction: column;
  align-items: stretch;
}
.feature.techspecs .feature__inner {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.techspecs__table {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.techspecs__category {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.techspecs__category:last-of-type {
  margin-bottom: 0;
}
.techspecs__category-title {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0 0 .25rem;
  padding-bottom: .75rem;
  text-align: left;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, .15);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.techspecs__category .techspecs-section:first-of-type {
  border-top: none;
}
.techspecs-section {
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.techspecs-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
}
@media (min-width: 768px) {
  .techspecs-row {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }
}
@media (min-width: 1069px) {
  .techspecs-row {
    grid-template-columns: 280px 1fr;
  }
}
.techspecs-rowheader {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
  line-height: 1.2;
}
.techspecs-column { display: flex; flex-direction: column; gap: .35rem; }

.techspecs-subheader {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.005em;
  line-height: 1.2;
  margin: 0;
}
.techspecs-copy {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ---- Testimonials (Press + Users) -------------------------------------- */

.testimonials {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--bg-alt);
  color: var(--text);
}

/* Testimonials head reuses .feature__inner for the block-title styling.
   We just add the bottom margin needed before the filter row. */
.testimonials__head {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.testimonials__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
}

.testimonials__filter {
  padding: .5rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, .15);
  background: transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.testimonials__filter:hover {
  background: rgba(0, 0, 0, .05);
}
.testimonials__filter.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.testimonials__count {
  opacity: .7;
  margin-left: .15rem;
  font-weight: 400;
}

.testimonials__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonials__list { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 1100px) {
  .testimonials__list { grid-template-columns: 1fr 1fr 1fr; }
}

.testimonial-card {
  background: var(--bg);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: opacity var(--t-base), transform var(--t-base), height var(--t-base);
}

.testimonial-card[hidden] { display: none !important; }

.testimonial-card__quote {
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  position: relative;
  padding-left: 0;
  quotes: "“" "”" "‘" "’";
}
.testimonial-card__quote::before { content: open-quote; }
.testimonial-card__quote::after  { content: close-quote; }

.testimonial-card__author {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: .01em;
}
.testimonial-card__author a {
  color: #0066cc;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
}
.testimonial-card__author a:hover { text-decoration: underline; }
.testimonial-card__author a span { font-size: .9em; }

/* ---- Footer --------------------------------------------------------------- */

.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding-block: 3rem;
  font-size: .85rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer__credits {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.footer__credits a { color: var(--text-on-dark); font-weight: 500; }

.footer__bottom {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  width: 100%;
}

/* ---- Scroll-reveal animations -------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Home — apple.com/fr "heroes" pattern -------------------------------- */
/* Direct replication of the markup + CSS values found in apple.com/fr's
   homepage-section.collection-module[data-module-template="heroes"].
   Selectors and font-size/line-height/letter-spacing match Apple's exactly. */

.page-home main { padding-top: 0; }

.homepage-section {
  margin: 0;
  padding: 0;
}

[data-module-template="heroes"] {
  display: flex;
  flex-direction: column;
}

[data-module-template="heroes"] [data-unit-id] {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #f5f5f7;
}

[data-module-template="heroes"] .module-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

[data-module-template="heroes"] .unit-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 0;     /* horizontal padding handled per-child so the image goes edge-to-edge */
  position: relative;
  overflow: visible;     /* let the image extend the section vertically */
}

@media (min-width: 735px) {
  [data-module-template="heroes"] .unit-wrapper { padding-top: 72px; }
}
@media (min-width: 1069px) {
  [data-module-template="heroes"] .unit-wrapper { padding-top: 88px; }
}

.unit-link {
  position: absolute; inset: 0; z-index: 1;
  text-indent: -9999px; overflow: hidden;
}

[data-module-template="heroes"] .unit-copy-wrapper {
  position: relative; z-index: 2;
  max-width: 920px;
  display: flex; flex-direction: column; align-items: center;
  padding-inline: 22px;   /* re-add horizontal padding only on text — image stays full-width */
  width: 100%;
}

/* Apple-exact typography (matched from apple.com/fr inline CSS) */
[data-module-template="heroes"] [data-unit-id] .unit-copy-wrapper > *.headline {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin: 0;
  text-align: center;
}
[data-module-template="heroes"] [data-unit-id] .unit-copy-wrapper > *.subhead {
  font-size: 19px;
  line-height: 1.21053;
  font-weight: 400;
  letter-spacing: 0.012em;
  margin: 6px 0 0;
  text-align: center;
}
@media (min-width: 735px) {
  [data-module-template="heroes"] [data-unit-id] .unit-copy-wrapper > *.headline {
    font-size: 48px;
    line-height: 1.08349;
    letter-spacing: -0.002em;
  }
  [data-module-template="heroes"] [data-unit-id] .unit-copy-wrapper > *.subhead {
    font-size: 24px;
    line-height: 1.16667;
    letter-spacing: 0.009em;
  }
}
@media (min-width: 1069px) {
  [data-module-template="heroes"] [data-unit-id] .unit-copy-wrapper > *.headline {
    font-size: 56px;
    line-height: 1.07143;
    letter-spacing: -0.005em;
  }
  [data-module-template="heroes"] [data-unit-id] .unit-copy-wrapper > *.subhead {
    font-size: 28px;
    line-height: 1.14286;
    letter-spacing: 0.007em;
  }
}

/* Both heroes are on a dark bg, so default text colors apply. */
[data-module-template="heroes"] [data-unit-id] .headline,
[data-module-template="heroes"] [data-unit-id] .subhead {
  color: #f5f5f7;
}

/* Philharmonia title — Apple-like red gradient nodding at the iconic
   "Philharmonia by Jean Nouvel" red wordmark. */
[data-module-template="heroes"] [data-unit-id="philharmonia"] .headline {
  background: linear-gradient(90deg, #ff8a5b 0%, #ff453a 45%, #ff0000 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* CTA buttons: button-elevated + primary/tertiary */
[data-module-template="heroes"] .cta-links {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center;
  margin-top: 24px;
  position: relative; z-index: 3;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
  white-space: nowrap;
}

.button-primary {
  background: #0066cc;
  color: #fff;
  border: 1px solid #0066cc;
}
.button-primary:hover { background: #0077ed; border-color: #0077ed; opacity: 1; }

.button-tertiary {
  background: transparent;
  color: #0066cc;
  border: 1px solid #0066cc;
}
.button-tertiary:hover { background: #0066cc; color: #fff; opacity: 1; }

/* Dark theme buttons (on Mini's black background) */
[data-module-template="heroes"] [data-unit-id] .button-primary {
  background: #2997ff;
  color: #000;
  border-color: #2997ff;
}
[data-module-template="heroes"] [data-unit-id] .button-primary:hover { background: #4eaaff; border-color: #4eaaff; }

[data-module-template="heroes"] [data-unit-id] .button-tertiary {
  background: transparent;
  color: #2997ff;
  border-color: #2997ff;
}
[data-module-template="heroes"] [data-unit-id] .button-tertiary:hover { background: #2997ff; color: #000; }

/* Image — FULL WIDTH, edge-to-edge, with subtle parallax on scroll.
   The .unit-image-wrapper carries [data-parallax]; main.js updates the
   --parallax-y custom property on each scroll frame. We translate the
   inner .unit-image so the picture drifts slower than the surrounding
   text — an Apple-like "depth" effect. */
[data-module-template="heroes"] .unit-image-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  min-height: 0;
  overflow: hidden;
}
[data-module-template="heroes"] .unit-image {
  margin: 0;
  width: 100%;                  /* edge-to-edge */
  display: block;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
[data-module-template="heroes"] .unit-image img {
  width: 100%;                  /* edge-to-edge */
  height: auto;                 /* preserve native aspect ratio */
  display: block;
  max-width: none;
  max-height: none;
}

@media (max-width: 734px) {
  [data-module-template="heroes"] .unit-image img {
    width: 140%;
    max-width: 140%;
    margin-left: -20%;
  }
}

/* ---- Utilities ------------------------------------------------------------ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
