/* Sessùn rhythm on XINVEN tokens. Only the four brand pages. */

.ed { background: var(--paper); color: var(--navy); }

/* Fullscreen opener sits under the fixed homepage header */
html.site-frame body.ed-has-hero #main { padding-top: 0; }

/* Dark opener: same white chrome as the homepage image slides, only while the bar is still transparent */
body.ed-hero-dark .site-header.is-over-hero .nav a,
body.ed-hero-dark .site-header.is-over-hero .brand__name,
body.ed-hero-dark .site-header.is-over-hero .header-search__icon,
body.ed-hero-dark .site-header.is-over-hero .header-icon,
body.ed-hero-dark .site-header.is-over-hero .lang-switch,
body.ed-hero-dark .site-header.is-over-hero .lang-switch__current,
body.ed-hero-dark .site-header.is-over-hero .lang-switch__sep,
body.ed-hero-dark .site-header.is-over-hero .nav-toggle {
  color: rgba(255, 255, 255, 0.88);
}
/* Dropdown sits on a white panel — never inherit the opener's white chrome */
body.ed-hero-dark .site-header.is-over-hero .lang-switch__menu,
body.ed-hero-dark .site-header.is-over-hero .lang-switch__menu button {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
body.ed-hero-dark .site-header.is-over-hero .lang-switch__menu button[aria-selected="true"] {
  color: var(--bronze);
  -webkit-text-fill-color: var(--bronze);
}
body.ed-hero-dark .site-header.is-over-hero .brand__mark-ink { opacity: 0; }
body.ed-hero-dark .site-header.is-over-hero .brand__mark-gilt { opacity: 1; }
body.ed-hero-dark .site-header.is-over-hero .header-search {
  border-bottom-color: rgba(255, 255, 255, 0.42);
}
body.ed-hero-dark .site-header.is-over-hero .header-search input {
  color: rgba(255, 255, 255, 0.92);
}
body.ed-hero-dark .site-header.is-over-hero .header-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Header over a fullscreen opener */
body.ed-has-hero .pv-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
body.ed-has-hero.is-scrolled .pv-header {
  background: rgba(251, 253, 254, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}
.pv-mark--gilt { display: none; }
body.ed-hero-dark:not(.is-scrolled) .pv-mark--ink { display: none; }
body.ed-hero-dark:not(.is-scrolled) .pv-mark--gilt { display: block; }
body.ed-hero-dark:not(.is-scrolled) .pv-nav a,
body.ed-hero-dark:not(.is-scrolled) .pv-brand,
body.ed-hero-dark:not(.is-scrolled) .pv-header .lang-switch button,
body.ed-hero-dark:not(.is-scrolled) .pv-header .lang-switch span {
  color: rgba(255, 255, 255, 0.82);
}
body.ed-hero-dark:not(.is-scrolled) .pv-nav a.is-active,
body.ed-hero-dark:not(.is-scrolled) .pv-nav a:hover,
body.ed-hero-dark:not(.is-scrolled) .pv-header .lang-switch button[aria-pressed="true"] {
  color: var(--gilt-bright);
}
body.ed-hero-dark:not(.is-scrolled) .pv-icon img { filter: brightness(0) invert(1); }
body.ed-hero-light:not(.is-scrolled) .pv-header {
  background: linear-gradient(to bottom, rgba(251, 253, 254, 0.72), rgba(251, 253, 254, 0));
}

/* Sticky opener: the next section scrolls over the film, then both leave */
.ed-curtain { position: relative; }

/* Fullscreen opener — same frame as the homepage hero */
.ed-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.ed-curtain > .ed-hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
.ed-curtain > .ed-split,
.ed-curtain > .ed-interlude--overture {
  position: relative;
  z-index: 1;
  height: auto;
  max-height: none;
  margin-bottom: 0;
  background: var(--paper);
}
.ed-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-hero--still .ed-hero__media {
  animation: ed-drift 22s var(--ease) infinite alternate;
}
.ed-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.8rem, 4.5vh, 3rem);
  z-index: 4;
  display: flex;
  justify-content: center;
  max-width: none;
}
.ed-hero__copy .hero__explore {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: none;
}
.ed-hero__copy .hero__explore.is-enter {
  animation: hero-fade-in-up 1s ease-out 0.2s forwards;
  pointer-events: auto;
}

@keyframes ed-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* Same half-and-half frame as the homepage split rows: each side is a square. */
.ed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 0;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  column-gap: 0;
  align-items: stretch;
  background: var(--paper);
}
/* Team / experts only. The copy column takes the former center gap and meets the image.
   Image width and row height stay as they were before that gap was closed. */
.ed--inset { container-type: inline-size; }
.ed--inset > .ed-split {
  --ed-gutter: clamp(1.5rem, 3.5vw, 3.5rem);
  --ed-media: calc((100% - 4 * var(--ed-gutter)) / 2);
  width: auto;
  margin-inline: clamp(1.625rem, 3.25vw, 3.5rem);
  column-gap: 0;
  grid-template-columns: var(--ed-media) minmax(0, 1fr);
  aspect-ratio: auto;
  height: calc((100cqw - 2 * var(--ed-gutter)) / 2);
}
.ed--inset > .ed-split--rev {
  grid-template-columns: minmax(0, 1fr) var(--ed-media);
}
.ed--inset > .ed-split + .ed-split {
  margin-top: clamp(3.5rem, 8vh, 6rem);
}
.ed-split--rev figure { order: 2; }
.ed-split figure {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--mist) center / cover no-repeat;
}
.ed-split img,
.ed-split video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}
/* Until decoded frames exist, keep video transparent so figure poster shows through. */
video.is-awaiting-frame {
  opacity: 0;
}
.ed-split.is-in img,
.ed-split figure.is-in img,
.ed-split.is-in video,
.ed-split figure.is-in video { transform: scale(1); }
.ed-split__veil {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.ed-split > .ed-copy {
  align-self: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.8rem, 5.5vw, 5.5rem);
  box-sizing: border-box;
}
.ed-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  text-align: center;
}
.ed-copy h2 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
.ed-kicker {
  margin: 0 0 0.9rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
}
.ed-copy .ed-kicker { text-align: center; }
.ed-copy p {
  max-width: 34rem;
  text-wrap: pretty;
  margin: 1.05rem 0 0;
  font-size: 15px;
  line-height: 1.75;
  text-align: center;
  color: rgba(18, 52, 76, 0.72);
}
.ed-copy p + p { margin-top: 0.75rem; }

.ed-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.ed-more::after {
  content: "";
  position: absolute;
  left: calc(100% + 0.85rem);
  top: 50%;
  width: 4.2rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%) scaleX(0.45);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.ed-more:hover::after,
.ed-more:focus-visible::after { transform: translateY(-50%) scaleX(1); }
.ed-more:focus-visible { outline: 1px solid var(--bronze); outline-offset: 6px; }

.ed-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.ed-line li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
  color: var(--bronze);
}

.ed-interlude {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem;
}
.ed-campaign-gap {
  position: sticky;
  top: 0;
  height: var(--header-h);
  margin-top: calc(-1 * var(--header-h));
  background: var(--white);
  pointer-events: none;
}
.ed-interlude--bridge {
  padding-top: clamp(7.5rem, 14vh, 11rem);
  padding-bottom: clamp(8.5rem, 18vh, 13rem);
}
.ed-interlude--bridge p + p { margin-top: 1.85rem; }
.ed-interlude.ed-interlude--coda {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(6.5rem, 14vh, 10rem) 1.5rem clamp(9rem, 20vh, 15rem);
  background: var(--paper);
  text-align: center;
}
.ed-interlude.ed-interlude--coda p {
  margin: 0 auto;
  font-size: 15px;
  line-height: 2.2;
  text-align: center;
  text-wrap: balance;
  color: rgba(18, 52, 76, 0.72);
}
.ed-interlude.ed-interlude--coda p + p { margin-top: 2.75rem; }
.ed-interlude.ed-interlude--coda .ed-coda__wide { max-width: 38rem; }
.ed-interlude.ed-interlude--coda .ed-coda__mid { max-width: 24rem; }
.ed-interlude.ed-interlude--coda .ed-coda__narrow { max-width: 14rem; }
.ed-coda__rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: clamp(3.4rem, 7vh, 5rem);
}
.ed-coda__rule::before,
.ed-coda__rule::after {
  content: "";
  width: 1px;
  background: var(--bronze);
}
.ed-coda__rule::before { height: 4.75rem; }
.ed-coda__rule::after { height: 0.55rem; }
/* Coda turned over: rule first, short stub above the long stroke, copy short to long. */
.ed-interlude.ed-interlude--overture {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(9rem, 20vh, 15rem) 1.5rem clamp(6.5rem, 14vh, 10rem);
  background: var(--paper);
  text-align: center;
}
.ed-interlude.ed-interlude--overture p {
  margin: 0 auto;
  font-size: 15px;
  line-height: 2.2;
  text-align: center;
  text-wrap: balance;
  color: rgba(18, 52, 76, 0.72);
}
.ed-interlude.ed-interlude--overture p + p { margin-top: 2.75rem; }
.ed-interlude.ed-interlude--overture .ed-coda__wide { max-width: 38rem; }
.ed-interlude.ed-interlude--overture .ed-coda__mid { max-width: 24rem; }
.ed-interlude.ed-interlude--overture .ed-coda__narrow { max-width: 14rem; }
.ed-interlude--overture .ed-coda__rule {
  margin-top: 0;
  margin-bottom: clamp(3.4rem, 7vh, 5rem);
}
.ed-interlude--overture .ed-coda__rule::before { height: 0.55rem; }
.ed-interlude--overture .ed-coda__rule::after { height: 4.75rem; }
.ed-interlude h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
}
.ed-interlude p {
  margin: 1.1rem 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(18, 52, 76, 0.72);
}
/* Ingredient lines — same centered column as .ed-interlude--bridge */
.ed-spec {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(7.5rem, 14vh, 11rem) 1.5rem clamp(8.5rem, 18vh, 13rem);
  text-align: center;
}
.ed-spec h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
  text-align: center;
}
.ed-spec ul {
  margin: 1.85rem 0 0;
  padding: 0;
  list-style: none;
}
.ed-spec li {
  display: block;
  padding: 0;
  border: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.75;
}
.ed-spec li + li { margin-top: 1.85rem; }
.ed-spec li > b {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--bronze);
}
.ed-spec li div b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
  color: var(--navy);
}
.ed-spec p {
  margin: 0.55rem auto 0;
  max-width: 34rem;
  color: rgba(18, 52, 76, 0.72);
}

/* High-tech readout — dark field, gilt grid, large figures */
.ed-lab {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5.5rem);
  background: var(--ink);
  color: var(--gilt-bright);
}
.ed-lab__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(231, 217, 186, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 217, 186, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 20% 40%, #000 10%, transparent 72%);
  pointer-events: none;
}
.ed-lab__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(231, 217, 186, 0.07), transparent);
  animation: ed-scan 7.5s linear infinite;
  pointer-events: none;
}
@keyframes ed-scan {
  from { top: -30%; }
  to { top: 100%; }
}
.ed-lab__inner { position: relative; max-width: 1180px; margin: 0 auto; }
.ed-lab__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.ed-lab__day {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5rem, 12vw, 8.5rem);
  line-height: 0.8;
  color: #fff;
}
.ed-lab__day span {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gilt);
}
.ed-lab__head p {
  margin: 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.ed-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(231, 217, 186, 0.22);
  border: 1px solid rgba(231, 217, 186, 0.22);
}
.ed-readout article {
  min-height: 9.5rem;
  padding: 1.4rem 1.2rem 1.3rem;
  background: rgba(8, 20, 32, 0.72);
}
.ed-readout b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ed-readout span {
  display: block;
  margin-top: 0.7rem;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(231, 217, 186, 0.78);
}
.ed-lab__aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1px;
  background: rgba(231, 217, 186, 0.22);
  border: 1px solid rgba(231, 217, 186, 0.22);
  border-top: 0;
}
.ed-lab__aside div {
  padding: 1.2rem 1.2rem 1.3rem;
  background: rgba(8, 20, 32, 0.55);
  text-align: center;
}
.ed-lab__aside em {
  display: block;
  margin-bottom: 0.35rem;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gilt);
}
.ed-lab__aside strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #fff;
}
.ed-lab__aside p { margin: 0.35rem 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.62); }
.ed-lab__note {
  margin: 1.3rem 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.ed-zero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #081420;
  color: #fff;
}
.ed-zero article {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(231, 217, 186, 0.16);
  text-align: center;
}
.ed-zero article:last-child { border-right: 0; }
.ed-zero b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 0.85;
  color: var(--gilt-bright);
}
.ed-zero span {
  display: block;
  margin-top: 0.6rem;
  letter-spacing: 0.22em;
  font-size: 13px;
  text-transform: uppercase;
}
.ed-zero article > span {
  padding-left: 0.22em;
}
.ed-zero__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(231, 217, 186, 0.16), transparent);
  animation: ed-sweep 6.5s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ed-sweep {
  from { left: -20%; }
  to { left: 110%; }
}

.ed-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.ed-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .ed-curtain > .ed-split {
    height: auto;
  }
  .ed-split,
  .ed-split--rev,
  .ed--inset > .ed-split,
  .ed--inset > .ed-split--rev {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    row-gap: 0;
    margin-bottom: 0;
    padding: 0;
  }
  .ed-split figure,
  .ed-split--rev figure {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .ed-split > .ed-copy {
    padding: clamp(2.8rem, 10vw, 4rem) clamp(1.4rem, 6vw, 2.2rem);
    min-height: clamp(280px, 70vw, 420px);
  }
  .ed-readout,
  .ed-lab__aside,
  .ed-zero,
  .ed-lab__head { grid-template-columns: 1fr 1fr; }
  .ed-lab__head { grid-template-columns: 1fr; }
  .ed-spec li { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-hero__copy .hero__explore.is-enter {
    animation: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .ed-reveal { opacity: 1; transform: none; transition: none; }
  .ed-split img,
  .ed-split video,
  .ed-hero--still .ed-hero__media { animation: none; transform: none; }
  .ed-lab__scan,
  .ed-zero__scan { animation: none; display: none; }
}
