/**
 * Campaign landing pages. Plain CSS, no build step.
 *
 * Adjust the design from the tokens below first: they drive every component.
 * Breakpoints match the theme: 768, 992, 1440, 1880.
 */
.campaign-page {
  /* Colour: theme values from common/_variables.scss */
  --cmp-white: #fff;
  --cmp-off-white: #f7f5f4;
  --cmp-gold: #d0c1a0;
  --cmp-gold-deep: #7e6f50; /* gold dark enough for small text on white and off-white, 4.5:1 or better */
  --cmp-dark-grey: #424242;
  --cmp-off-black: #222;
  --cmp-rule: rgb(66 66 66 / 18%);
  --cmp-media-placeholder: rgb(208 193 160 / 25%);

  /* Type */
  --cmp-font-display: "Helvetica Neue LT Pro", "Helvetica Neue", helvetica, arial, sans-serif;
  --cmp-font-label: "Helvetica Neue", helvetica, arial, sans-serif;
  --cmp-font-body: "Noto Serif JP", georgia, serif;
  --cmp-hero-size: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  --cmp-title-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.8125rem);
  --cmp-gateway-title-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  --cmp-statement-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.9375rem);

  /* Space: sections use the theme's .sp-8 classes (100 / 80 / 60 / 48 / 40px).
     Between archetypes: two .sp-8 steps when stacked, one and a half side by side,
     where the scroll-linked drift adds the rest. */
  --cmp-gateway-space: 80px;
  --cmp-gap: clamp(0.5rem, 0.2rem + 0.8vw, 1rem);
  --cmp-stack: clamp(1.25rem, 1rem + 1vw, 2rem);
  --cmp-gateway-copy-gutter: clamp(3rem, 6vw, 7rem);
  --cmp-gateway-text-top: 1.75rem;
  --cmp-page-pad: 16px; /* matches the theme's .container padding at each breakpoint, set below */

  /* Proportions: change these to rebalance the page hierarchy */
  --cmp-hero-height: 100svh;
  --cmp-gateway-copy-share: 47fr;
  --cmp-gateway-image-share: 53fr;
  --cmp-gateway-text-width: 26.25rem; /* the column in the Residences reference */
  --cmp-gateway-text-tablet-width: 34rem;
  --cmp-gateway-ratio: 5 / 4;
  --cmp-gateway-ratio-tablet: 16 / 10;
  --cmp-gateway-ratio-mobile: 1 / 1;
  --cmp-gateway-max-height: 90svh;

  /* Availability highlights: the brand gold, solid and outlined once selected */
  --cmp-av-background: var(--cmp-white);
  --cmp-av-highlight-opacity: 0.8;
  --cmp-av-subdued-opacity: 0.45;
  --cmp-av-type-a: #839580; /* olive stone: APA1, APA3, APC2 */
  --cmp-av-type-b: #718b9c; /* Aegean slate: APA2, APB2, APC1 */
  --cmp-av-type-opacity: 0.65; /* multiplied over the drawing, so the linework reads through */
  --cmp-av-selected-opacity: 0.7;
  --cmp-av-selected: #c8b68d; /* champagne gold */
  --cmp-av-pan-width: 1100px;
  --cmp-av-lozenges-width: 62rem; /* keeps the six in two balanced rows on wide screens */

  /* Archetype pages */
  --cmp-atmosphere-base: #2b3138; /* slate, and the only colour here without a theme source */
  --cmp-atmosphere-deep: #171a1e;
  --cmp-atmosphere-glow: rgb(101 118 126 / 42%);
  --cmp-atmosphere-warm: rgb(208 193 160 / 7%);
  --cmp-atmosphere-duration: 36s;
  --cmp-bronze: 168 124 80; /* sunlit louvre */
  --cmp-champagne: 214 197 160; /* its brightest catch, near the theme's gold */
  --cmp-limestone: #d8d0bf;
  --cmp-limestone-ink: #2f2a24; /* warm charcoal */
  --cmp-limestone-sun: 250 243 226;
  --cmp-limestone-shade: 122 104 80;
  --cmp-sunlit-shade: #6c6a64; /* limestone grey in shadow, sets the headline's depth */
  --cmp-sunlit-stone: #93918a;
  --cmp-sunlit-lit: #b2afa6;
  --cmp-sunlit-champagne: 244 234 212;
  --cmp-sunlit-bronze: 172 142 110;
  --cmp-sunlit-olive: 206 210 184; /* sun through champagne glass, off nearby foliage */
  --cmp-golden-bronze: #94702f;
  --cmp-golden-amber: #bd9240;
  --cmp-golden-champagne: #e4d2a6;
  --cmp-golden-limestone: #ebe3cf;
  --cmp-golden-light: 250 236 196;
  --cmp-golden-glow: 226 176 86;
  --cmp-golden-olive: 186 188 140;
  --cmp-sunlit-sweep: 36s; /* the champagne pool's diagonal crossing; lower is faster */
  --cmp-sunlit-drift: 58s; /* the softer bronze behind it */
  --cmp-editorial-h1-size: clamp(2.25rem, 4.8vw, 5.5rem);
  --cmp-editorial-measure: 41rem;
  --cmp-editorial-space: clamp(70px, 10vw, 150px); /* above and below a section's content */
  --cmp-editorial-gap: clamp(4rem, 8vw, 8rem); /* headline to photograph */
  --cmp-immersive-space: clamp(6rem, 14vw, 13rem);
  --cmp-axo-margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  --cmp-axo-icon-size: clamp(1.5rem, 1.2rem + 0.65vw, 2.125rem);
  --cmp-axo-icon-gap: clamp(0.875rem, 0.7rem + 0.4vw, 1.25rem);

  /* Motion */
  --cmp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cmp-reveal-distance: 24px;
  --cmp-reveal-duration: 900ms;
  /* Scroll-linked drift, same curve as the reference at a quarter of its strength: higher factors move further and widen the gaps */
  --cmp-gateway-image-travel: 0.1;
  --cmp-gateway-text-travel: 0.05;
}

@media (min-width: 374px) { .campaign-page { --cmp-page-pad: 28px; } }
@media (min-width: 768px) { .campaign-page { --cmp-gateway-space: 96px; --cmp-av-pan-width: 1400px; } }
@media (min-width: 992px) { .campaign-page { --cmp-page-pad: 40px; --cmp-gateway-space: 90px; } }
@media (min-width: 1440px) { .campaign-page { --cmp-page-pad: 98px; --cmp-gateway-space: 120px; } }
@media (min-width: 1880px) { .campaign-page { --cmp-page-pad: 124px; --cmp-gateway-space: 150px; } }

/* Shared */
.cmp-eyebrow {
  margin: 0 0 var(--cmp-stack);
  font-family: var(--cmp-font-label);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cmp-gold-deep);
}

.cmp-js [data-cmp-reveal] {
  opacity: 0;
  transform: translateY(var(--cmp-reveal-distance));
}

/* Transition only on the way in, so elements don't visibly fade out when the script first runs */
.cmp-js [data-cmp-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--cmp-reveal-duration) var(--cmp-ease),
    transform var(--cmp-reveal-duration) var(--cmp-ease);
}

/* Hero */
.cmp-hero {
  position: relative;
  display: flex;
  height: var(--cmp-hero-height);
  min-height: 480px;
  overflow: hidden;
  background: var(--cmp-off-black);
}

.cmp-hero__media,
.cmp-hero__media::after {
  position: absolute;
  inset: 0;
}

.cmp-hero__media img,
.cmp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.cmp-hero__video {
  opacity: 0;
  transition: opacity 1200ms ease;
}

.cmp-hero__video.is-playing {
  opacity: 1;
}

.cmp-hero__media::after {
  content: "";
  background: linear-gradient(180deg, rgb(0 0 0 / var(--cmp-overlay-top, 0.25)) 0%, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / var(--cmp-overlay-bottom, 0.3)) 100%), rgb(0 0 0 / var(--cmp-overlay-base, 0.2));
}

.cmp-overlay--none { --cmp-overlay-top: 0; --cmp-overlay-bottom: 0; --cmp-overlay-base: 0; }
.cmp-overlay--strong { --cmp-overlay-top: 0.4; --cmp-overlay-bottom: 0.5; --cmp-overlay-base: 0.25; }

.cmp-hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-block: clamp(10rem, 22vh, 13rem) clamp(2.5rem, 8vh, 5rem);
}

.cmp-hero--center .cmp-hero__text { align-items: center; justify-content: center; text-align: center; }
.cmp-hero--bottom-left .cmp-hero__text { align-items: flex-start; justify-content: flex-end; text-align: left; }
.cmp-hero--bottom-center .cmp-hero__text { align-items: center; justify-content: flex-end; text-align: center; }

.cmp-hero .cmp-hero__heading {
  max-width: 18ch;
  margin: 0;
  font-family: var(--cmp-font-display);
  font-weight: 300;
  font-size: var(--cmp-hero-size);
  line-height: 1.08;
  letter-spacing: 0.05em;
  text-align: inherit;
  text-transform: uppercase;
  color: var(--cmp-white);
  text-shadow: 0 1px 24px rgb(0 0 0 / 25%);
}

/* Tracked capitals leave a comma and its space twice as wide as a word gap: closes it optically */
.cmp-comma {
  margin-right: -0.14em;
}

.cmp-hero .cmp-eyebrow {
  margin-bottom: 1.25rem;
  text-align: inherit;
  color: var(--cmp-white);
}

/* Light logo while the header sits over the film */
.campaign-page header .header-logo {
  display: none;
}

.campaign-page header .header-logo-light {
  display: inline-block;
}

/* No gold rule under the logo on campaign pages */
.campaign-page header .header-content .row .under div::after {
  content: none;
}

/* Menu icon follows the background beneath it: see campaign.js. The open menu is always dark. */
/* The menu icon on the campaign's page margin at every desktop width. The theme fixes it without a left offset, so
   it sat wherever the header's centred 1880 px container put it: on the margin up to about 1880 px, then inset by the
   container's centring (144 px at 1920, 464 px at 2560). The Enquire button already follows the right-hand margin. */
@media (min-width: 768px) {
  .campaign-page header .navbar-toggler {
    left: var(--cmp-page-pad);
  }
}

.campaign-page header .navbar-toggler-icon .line {
  background: var(--cmp-off-white); /* the logo's white */
}

.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-light .navbar-toggler-icon .line {
  background: var(--cmp-dark-grey);
}

/* Hover and keyboard focus: the lighter gold on dark, the deep gold on light. Moving sunlight
   runs too wide for any line colour, so there the icon brings its own charcoal surface, as the
   Enquire button does. */
.campaign-page header:not(.menu-opened) .navbar-toggler:focus-visible .navbar-toggler-icon .line {
  background: var(--cmp-gold) !important;
}

.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-light:hover .navbar-toggler-icon .line,
.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-light:focus-visible .navbar-toggler-icon .line {
  background: var(--cmp-gold-deep) !important;
}

.campaign-page header:not(.menu-opened) .navbar-toggler .navbar-toggler-icon::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(50% - 3.5px); /* centres on the lines, which sit above the icon's middle */
  left: 50%;
  width: 2.75rem; /* the Enquire button's height */
  height: 2.75rem;
  border-radius: 50%;
  background: var(--cmp-dark-grey);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-sunlit:hover .navbar-toggler-icon .line,
.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-sunlit:focus-visible .navbar-toggler-icon .line {
  background: var(--cmp-off-white) !important;
}

.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-sunlit:hover .navbar-toggler-icon::before,
.campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-sunlit:focus-visible .navbar-toggler-icon::before {
  opacity: 1;
}

/* Introduction */
.cmp-intro {
  background: var(--cmp-off-white);
}

.cmp-intro__inner {
  max-width: 46rem;
  margin-inline: auto;
}

.cmp-intro .cmp-eyebrow {
  text-align: center;
}

.cmp-intro__statement {
  margin: 0;
  font-weight: 300;
  font-size: var(--cmp-statement-size);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Gateways: stacked editorial sections, image running to the page edge, sides alternating.
   Heading, copy and spacing follow the theme's Links To Three Pages block; margins use its .sp-* classes. */
.cmp-gateways {
  background: var(--cmp-off-white);
}

.cmp-gateway {
  min-width: 0;
}

.cmp-gateway + .cmp-gateway {
  margin-top: var(--cmp-gateway-space);
}

.cmp-gateway__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--cmp-gateway-ratio-mobile);
  background: var(--cmp-media-placeholder);
}

.cmp-gateway__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-gateway__text {
  padding: var(--cmp-gateway-text-top) var(--cmp-page-pad) 0;
  text-align: left;
}

.cmp-gateway .cmp-eyebrow {
  margin-bottom: 0.75rem;
  text-align: left;
}

.cmp-gateway h2 {
  font-size: 1.625rem;
  letter-spacing: 0.1em;
  line-height: 2.125rem;
  text-align: left;
  color: var(--cmp-dark-grey);
}

/* The theme's .sp-6-m-b widens between 992 and 1440px; hold the 1440px step down to the tablet one */
@media (min-width: 992px) and (max-width: 1439.98px) {
  .cmp-gateway h2 {
    margin-bottom: 32px;
  }
}

.cmp-gateway__description {
  text-align: left;
}

/* Second gateway swaps the factors, as the reference does when its image is on the left */
.cmp-gateway:nth-of-type(even) {
  --cmp-gateway-image-travel: 0.05;
  --cmp-gateway-text-travel: 0.1;
}

/* Link: matches the theme's a.cta, dark at rest, gold with the underline drawing in on hover */
.cmp-cta {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--cmp-font-label);
  font-size: 0.75rem;
  line-height: 1.375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cmp-dark-grey);
}

.cmp-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-bottom: 1px solid var(--cmp-gold);
  visibility: hidden;
  transform-origin: bottom left;
  transition: all 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.cmp-cta:hover {
  color: var(--cmp-gold-deep);
}

.cmp-cta:hover::after {
  width: 100%;
  visibility: visible;
}

.cmp-cta:focus-visible {
  outline: 2px solid var(--cmp-gold-deep);
  outline-offset: 4px;
}

.cmp-cta--inactive {
  cursor: default;
}

@media (min-width: 768px) {
  .cmp-gateway__media {
    aspect-ratio: var(--cmp-gateway-ratio-tablet);
  }

  .cmp-gateway__text {
    max-width: calc(var(--cmp-gateway-text-tablet-width) + 2 * var(--cmp-page-pad));
  }

  .cmp-gateway h2 {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .cmp-gateway {
    display: grid;
    grid-template-columns: minmax(0, var(--cmp-gateway-copy-share)) minmax(0, var(--cmp-gateway-image-share));
    align-items: center;
  }

  .cmp-gateway__media {
    grid-area: 1 / 2;
    aspect-ratio: var(--cmp-gateway-ratio);
    max-height: var(--cmp-gateway-max-height);
    width: 100%;
    will-change: transform;
  }

  .cmp-gateway__text {
    grid-area: 1 / 1;
    max-width: none;
    padding: 0 var(--cmp-gateway-copy-gutter) 0 var(--cmp-page-pad);
  }

  .cmp-gateway__text > * {
    max-width: var(--cmp-gateway-text-width);
  }

  /* Second gateway reverses: image left, copy right */
  .cmp-gateway:nth-of-type(even) {
    grid-template-columns: minmax(0, var(--cmp-gateway-image-share)) minmax(0, var(--cmp-gateway-copy-share));
  }

  .cmp-gateway:nth-of-type(even) .cmp-gateway__media {
    grid-area: 1 / 1;
  }

  .cmp-gateway:nth-of-type(even) .cmp-gateway__text {
    grid-area: 1 / 2;
    padding: 0 var(--cmp-page-pad) 0 var(--cmp-gateway-copy-gutter);
  }
}

/* Availability: the complete composition, with residences selected from it or the lozenges */
.cmp-availability {
  background: var(--cmp-av-background);
}

.cmp-availability__header {
  max-width: 46rem;
  margin: 0 auto var(--cmp-stack);
}

.cmp-availability__header .cmp-eyebrow {
  text-align: center;
}

.cmp-availability__header h2 {
  color: var(--cmp-dark-grey);
}

.cmp-availability__header p:last-child {
  margin: 0;
}

/* Wider than the screen below 992px, so the drawing stays legible: pans sideways only */
.cmp-av__stage {
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cmp-av__stage::-webkit-scrollbar {
  display: none;
}

.cmp-av__stage:focus-visible {
  outline: 2px solid var(--cmp-gold-deep);
  outline-offset: -2px;
}

.cmp-av__illustration {
  position: relative;
  width: var(--cmp-av-pan-width);
  isolation: isolate;
}

.cmp-av__illustration img {
  display: block;
  height: auto;
}

.cmp-av__illustration svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply; /* as the highlight layers in the PSD, so the linework stays visible */
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Highlights wait for the artwork, so they never show as blocks on an empty page */
.cmp-av__illustration.is-loaded svg {
  opacity: 1;
}

.cmp-av__shape {
  fill: var(--cmp-gold);
  fill-opacity: var(--cmp-av-highlight-opacity);
  stroke: var(--cmp-white);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.4s ease, fill-opacity 0.4s ease, stroke 0.4s ease;
}

.cmp-av__shape:hover {
  fill-opacity: 1;
}

.cmp-av.has-selection .cmp-av__shape {
  fill-opacity: var(--cmp-av-subdued-opacity);
}

.cmp-av.has-selection .cmp-av__shape:hover {
  fill-opacity: var(--cmp-av-highlight-opacity);
}

.cmp-av.has-selection .cmp-av__shape.is-selected {
  fill-opacity: 1;
  stroke: var(--cmp-gold-deep);
  stroke-width: 1.5px;
}

/* Residence types, where the block shows them: each type keeps its colour, and the selected residence turns champagne gold. */
.cmp-av__shape--type-a {
  fill: var(--cmp-av-type-a);
  fill-opacity: var(--cmp-av-type-opacity);
}

.cmp-av__shape--type-b {
  fill: var(--cmp-av-type-b);
  fill-opacity: var(--cmp-av-type-opacity);
}

.cmp-av__shape--type-a:hover,
.cmp-av__shape--type-b:hover {
  fill-opacity: var(--cmp-av-selected-opacity);
}

.cmp-av.has-selection .cmp-av__shape--type-a,
.cmp-av.has-selection .cmp-av__shape--type-b {
  fill-opacity: var(--cmp-av-type-opacity); /* the type colours stay legible beside a selection */
}

.cmp-av.has-selection .cmp-av__shape--type-a:hover,
.cmp-av.has-selection .cmp-av__shape--type-b:hover,
.cmp-av.has-selection .cmp-av__shape--type-a.is-selected,
.cmp-av.has-selection .cmp-av__shape--type-b.is-selected {
  fill-opacity: var(--cmp-av-selected-opacity);
}

.cmp-av.has-selection .cmp-av__shape--type-a.is-selected,
.cmp-av.has-selection .cmp-av__shape--type-b.is-selected {
  fill: var(--cmp-av-selected);
}

.cmp-av__pan-hint {
  margin: 0.25rem 0 0;
  font-family: var(--cmp-font-label);
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cmp-gold-deep);
}

.cmp-av__pan-hint[hidden],
.cmp-av__prompt[hidden],
.cmp-av__details[hidden] {
  display: none;
}

/* Lozenges: the theme's .btn, sized to their names */
.cmp-av__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin: 1.25rem 0 0;
  padding: 0 0 0.75rem; /* a little more room above the residence buttons (padding, so it adds to their margin) */
  list-style: none;
  font-family: var(--cmp-font-label);
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cmp-gold-deep);
}

.cmp-av__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* the same between swatch, label and references in every group */
  line-height: 1;
  white-space: nowrap;
}

/* Uppercase labels: trim the line box to the capitals, so the swatch centres on the letters themselves */
.cmp-av__legend-label,
.cmp-av__legend-refs {
  display: block;
  text-box: trim-both cap alphabetic;
}

@supports not (text-box: trim-both cap alphabetic) {
  .cmp-av__legend-label,
  .cmp-av__legend-refs {
    padding-top: 0.25em; /* close to the same result where trimming is not supported */
  }
}

.cmp-av__legend-refs {
  color: var(--cmp-dark-grey);
  opacity: 0.7;
}

.cmp-av__legend-swatch {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
}

.cmp-av__legend-swatch--type-a {
  background: var(--cmp-av-type-a);
  opacity: var(--cmp-av-type-opacity); /* as the colour reads on the drawing */
}

.cmp-av__legend-swatch--type-b {
  background: var(--cmp-av-type-b);
  opacity: var(--cmp-av-type-opacity);
}

.cmp-av__legend-swatch--selected {
  background: var(--cmp-av-selected);
  opacity: var(--cmp-av-selected-opacity);
}

@media (max-width: 575.98px) {
  .cmp-av__legend {
    gap: 0.5rem 1.5rem;
  }
}

.cmp-av__lozenges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: var(--cmp-av-lozenges-width);
  margin: var(--cmp-stack) auto 0;
}

.btn.cmp-av__lozenge {
  display: block;
  width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 0.6875rem 0.375rem 0.4375rem; /* the font sits high, as in the theme's .btn */
  line-height: 1.25rem;
  color: var(--cmp-dark-grey);
  background: transparent;
  cursor: pointer;
}

.btn.cmp-av__lozenge[aria-pressed="true"] {
  border-color: var(--cmp-gold-deep);
  background: var(--cmp-gold);
  color: var(--cmp-dark-grey);
  box-shadow: 0 0 0 2px var(--cmp-av-background), 0 0 0 3px var(--cmp-gold-deep);
}

/* Touch screens keep hover after a tap, which would look like a selection */
@media (hover: hover) {
  .btn.cmp-av__lozenge:hover {
    border-color: var(--cmp-gold-deep);
  }
}

.btn.cmp-av__lozenge:focus-visible {
  outline: 2px solid var(--cmp-dark-grey);
  outline-offset: 3px;
}

/* Phones: the six residences in one row that swipes sideways, starting on the page's content margin
   and running to the screen's edge. Each takes 80 % of the content width, in the proportions of the
   Submit Enquiry button, so one shows in full with a quarter or so of the next. The row keeps a
   little room above and below for the selected ring and the focus outline. */
@media (max-width: 767.98px) {
  .cmp-av__lozenges {
    display: flex;
    gap: 1rem;
    max-width: none;
    margin: calc(var(--cmp-stack) - 6px) calc(var(--cmp-page-pad) * -1) 0;
    padding: 6px var(--cmp-page-pad);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--cmp-page-pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cmp-av__lozenges::-webkit-scrollbar {
    display: none;
  }

  .btn.cmp-av__lozenge {
    flex: 0 0 80%;
    padding-inline: 1rem;
    text-align: center;
    scroll-snap-align: start;
  }
}

/* Selected residence: name and areas with the story alongside, stacked below 992px */
.cmp-av__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  margin-top: var(--cmp-stack);
  border-top: 1px solid var(--cmp-rule);
  border-bottom: 1px solid var(--cmp-rule);
}

.cmp-av__prompt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75rem;
}

.cmp-av__details {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  padding-block: 1.5rem;
  text-align: left;
}

.cmp-av__reference {
  margin: 0 0 0.5rem;
  font-family: var(--cmp-font-label);
  font-size: 0.75rem;
  line-height: 1.375rem;
  letter-spacing: 0.2em;
  text-align: left;
  color: var(--cmp-gold-deep);
}

.campaign-page .cmp-av__name {
  margin: 0 0 1.75rem;
  font-family: var(--cmp-font-display);
  font-weight: 300;
  font-size: 1.625rem;
  line-height: 2.125rem;
  letter-spacing: 0.1em;
  color: var(--cmp-dark-grey);
}

.cmp-av__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  margin: 0;
}

.cmp-av__facts--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 575.98px) {
  .cmp-av__facts--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }
}

.cmp-av__fact dt {
  margin-bottom: 0.25rem;
  font-family: var(--cmp-font-label);
  font-size: 0.6875rem;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cmp-gold-deep);
}

.cmp-av__fact dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--cmp-dark-grey);
}

.cmp-av__fact dd.is-placeholder {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.375rem;
}

.cmp-av__story p {
  margin: 0 0 1.75rem;
  text-align: left;
}

.cmp-av__story p:empty {
  display: none;
}

/* Enquire: an outline in the deep gold, filling with the brand gold like a selected residence */
.btn.cmp-av__enquire {
  padding-inline: 2.5rem;
  border-color: var(--cmp-gold-deep);
  background: transparent;
  color: var(--cmp-gold-deep);
  transition: background 0.4s ease, color 0.4s ease;
}

.btn.cmp-av__enquire:hover,
.btn.cmp-av__enquire:active {
  background: var(--cmp-gold);
  color: var(--cmp-dark-grey);
}

/* Touch screens keep hover after a tap, so only the press itself fills the button */
@media (hover: none) {
  .btn.cmp-av__enquire:hover {
    background: transparent;
    color: var(--cmp-gold-deep);
  }

  .btn.cmp-av__enquire:active {
    background: var(--cmp-gold);
    color: var(--cmp-dark-grey);
  }
}

.btn.cmp-av__enquire:focus-visible {
  outline: 2px solid var(--cmp-dark-grey);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .cmp-av__lozenges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn.cmp-av__lozenge {
    flex: 0 1 auto;
    width: auto;
    height: 48px;
    padding: 14px 1.75rem 10px;
    line-height: 22px;
    white-space: nowrap;
  }

  .cmp-av__story p {
    max-width: 38rem;
  }
}

@media (min-width: 992px) {
  .cmp-av__stage {
    overflow: visible;
  }

  .cmp-av__illustration {
    width: 100%;
  }

  .cmp-av__details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
    padding-block: 2.5rem;
  }

  .campaign-page .cmp-av__name {
    font-size: 2rem;
  }
}

/* Fixed Enquire button: paired with the menu icon, in its colour and line weight */
.cmp-enquire-lozenge {
  position: fixed;
  z-index: 90;
  top: 3.5rem;
  right: var(--cmp-page-pad);
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0.0625rem 1.625rem 0; /* capitals sit high in their line */
  font-family: var(--cmp-font-label);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-indent: 0.18em; /* balances the tracking after the last letter */
  text-transform: uppercase;
  color: var(--cmp-off-white);
  background: transparent;
  border: 1px solid currentcolor;
  border-radius: 999px;
  transition: color 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), background-color 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), border-color 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), opacity 0.3s ease, visibility 0s; /* colours keep time with the menu lines */
}

/* Hidden is unreachable too: visibility takes it out of pointer and keyboard use */
.cmp-enquire-lozenge.is-past {
  visibility: hidden;
  opacity: 0;
  transition: color 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), background-color 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), border-color 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99), opacity 0.3s ease, visibility 0s 0.3s;
}

.cmp-enquire-lozenge.cmp-on-light {
  color: var(--cmp-dark-grey);
}

/* Hover mirrors the menu icon: outline and letters change colour, with no fill. Touch screens
   keep hover after a tap, so it applies only where hover is real. */
@media (hover: hover) {
  .cmp-enquire-lozenge:hover {
    color: var(--cmp-gold);
  }

  .cmp-enquire-lozenge.cmp-on-light:hover {
    color: var(--cmp-gold-deep);
  }

  .cmp-enquire-lozenge.cmp-on-sunlit:hover {
    color: var(--cmp-off-white);
    background: var(--cmp-dark-grey);
    border-color: var(--cmp-dark-grey);
  }
}

.cmp-enquire-lozenge:focus-visible {
  color: var(--cmp-gold);
  outline: 1px solid var(--cmp-off-white);
  outline-offset: 3px;
}

.cmp-enquire-lozenge.cmp-on-light:focus-visible {
  color: var(--cmp-gold-deep);
  outline-color: var(--cmp-dark-grey);
}

.cmp-enquire-lozenge.cmp-on-sunlit:focus-visible {
  color: var(--cmp-off-white);
  background: var(--cmp-dark-grey);
  border-color: var(--cmp-dark-grey);
  outline-color: var(--cmp-dark-grey);
}

/* On phones the hero logo narrows just enough to clear the pair's shared line */
@media (max-width: 539.98px) {
  .campaign-page:has(.cmp-enquire-lozenge) header .header-logo,
  .campaign-page:has(.cmp-enquire-lozenge) header .header-logo-light {
    width: min(34vw, 9rem);
  }
}

/* The smallest phones: a touch narrower still, so the identity keeps clear air on both sides */
@media (max-width: 359.98px) {
  .campaign-page:has(.cmp-enquire-lozenge) header .header-logo,
  .campaign-page:has(.cmp-enquire-lozenge) header .header-logo-light {
    width: 32vw;
  }
}

/* Phones: a quieter Enquire button that defers to the identity. Smaller, more closely tracked
   capitals in a 37 px pill; its touch area stays at 56 px (see ::after). Tablet and desktop keep
   the full-size button. */
@media (max-width: 767.98px) {
  .cmp-enquire-lozenge {
    height: 2.3125rem;
    padding: 0.0625rem 0.6875rem 0;
    font-size: 0.625rem;
    letter-spacing: 0.09em;
    text-indent: 0.09em; /* balances the tracking after the last letter */
  }
}

/* A comfortable touch target, larger than the outline */
.cmp-enquire-lozenge::after {
  content: "";
  position: absolute;
  inset: -0.6rem -0.4rem;
}

body:has(header.menu-opened) .cmp-enquire-lozenge {
  visibility: hidden;
  opacity: 0;
}

/* The menu keeps the visitor's place (20 Nov): its panel is held to the screen rather than to the
   top of the page, and the page is held still beneath it (the theme's lock collapses the page to
   one screen, which is why the theme took the visitor to the top). See campaign.js. */
.campaign-page header.menu-opened,
.campaign-page header.cmp-menu-closing {
  position: fixed;
}

.campaign-page header.menu-opened .header-content {
  opacity: 1; /* the theme fades the logo once the visitor is past the first screen */
  pointer-events: auto;
}

.campaign-page header.cmp-menu-closing:not(.menu-opened) .header-content {
  visibility: hidden; /* no dark logo across the page while the panel fades */
}

html:has(> body.campaign-page.fixed) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

body.campaign-page.fixed {
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* Legibility over uneven imagery: a soft shadow behind the light lines and outline, a soft glow
   behind the charcoal ones. Neither shows on flat colour. Phones and tablets only. */
@media (max-width: 991.98px) {
  .campaign-page header:not(.menu-opened) .navbar-toggler .navbar-toggler-icon .line,
  .cmp-enquire-lozenge {
    filter: drop-shadow(0 0 0.3rem rgb(0 0 0 / 38%));
  }

  .campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-light .navbar-toggler-icon .line,
  .cmp-enquire-lozenge.cmp-on-light {
    filter: drop-shadow(0 0 0.3rem rgb(255 255 255 / 55%));
  }
}

/* The narrowest phones (375 px and below): the full-size floor-plan drawing runs under the menu icon. Over the
   drawing only, the icon's own disc becomes a soft white pad that masks the linework beneath the lines, so the icon
   reads cleanly; the drawing keeps its size and the icon its position, colour and behaviour. */
@media (max-width: 375.98px) {
  .campaign-page header:not(.menu-opened) .navbar-toggler.cmp-on-plan .navbar-toggler-icon::before {
    background: radial-gradient(closest-side, rgb(255 255 255 / 96%) 55%, rgb(255 255 255 / 70%) 78%, rgb(255 255 255 / 0%));
    opacity: 1;
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* A 44 px touch target for the menu icon, larger than the lines, with no visible change.
   The icon is fixed by the theme, which already anchors this area to it. */
.campaign-page header .navbar-toggler::after {
  content: "";
  position: absolute;
  inset: -0.1875rem; /* 41 px icon button, plus 3 px all round */
}

/* Phones: the fixed enquiry bar (campaign.js) replaces the header's Enquire button. The whole bar
   is the button: the footer's charcoal, the word centred, nothing else. Laid over the page so it
   never moves anything, 58 px tall plus the home-indicator allowance. Shown past the first screen,
   hidden while a floor-plan sequence holds the screen and while the enquiry section is on screen. Without script the header
   button stays, so there is always a way to enquire. */
.cmp-enquire-bar {
  display: none;
}

@media (max-width: 767.98px) {
  .cmp-js .cmp-enquire-lozenge {
    display: none;
  }

  .cmp-js .cmp-enquire-bar {
    position: fixed;
    z-index: 95;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(3.625rem + env(safe-area-inset-bottom, 0px));
    padding: 0.0625rem 0 env(safe-area-inset-bottom, 0px); /* capitals sit high in their line */
    font-family: var(--cmp-font-label);
    font-size: 0.71875rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-indent: 0.14em; /* balances the tracking after the last letter */
    text-decoration: none;
    text-transform: uppercase;
    color: var(--cmp-off-white);
    background: var(--cmp-off-black); /* the footer's */
    -webkit-tap-highlight-color: transparent;
    visibility: hidden;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s, color 0.2s ease;
  }

  .cmp-js .cmp-enquire-bar.is-shown {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s, color 0.2s ease;
  }

  /* Anything the page scrolls into view stops above the bar */
  .cmp-js:has(.cmp-enquire-bar) {
    scroll-padding-bottom: calc(3.625rem + env(safe-area-inset-bottom, 0px));
  }

  /* The open menu covers the page; the bar waits beneath it */
  body:has(header.menu-opened) .cmp-enquire-bar {
    visibility: hidden;
  }

  .cmp-js .cmp-enquire-bar:active {
    color: var(--cmp-gold);
  }

  .cmp-js .cmp-enquire-bar:focus-visible {
    color: var(--cmp-gold);
    outline: 1px solid var(--cmp-off-white);
    outline-offset: -5px;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .cmp-js .cmp-enquire-bar,
  .cmp-js .cmp-enquire-bar.is-shown {
    transform: none;
    transition: none;
  }
}

/* Enquiry: form styling comes from the theme's .contact rules */

/* C02: the browser's own dropdowns on campaign forms, in place of the theme's drawn ones, so phones
   show their native picker and keyboards and screen readers can use them. Styled as the theme's:
   the champagne field, 16 px type, its small dark triangle. */
.cmp-enquiry .select-selected,
.cmp-enquiry .select-items {
  display: none !important;
}

.cmp-enquiry [class*="custom-select"] select {
  display: block !important;
  width: 100%;
  height: 2.6875rem;
  margin: 0;
  padding: 0 2.25rem 0 0.625rem;
  font-family: var(--cmp-font-label);
  font-size: 1rem;
  color: var(--cmp-dark-grey);
  background: var(--cmp-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0h12L6 6z' fill='%23424242'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 0;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

.cmp-enquiry [class*="custom-select"] select:focus-visible {
  outline: 2px solid var(--cmp-off-white);
  outline-offset: 2px;
}






/* C01: field messages in sentence case, beside their fields; the summary above the form */
.cmp-enquiry .wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-family: var(--cmp-font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f2b8a8;
}

.cmp-enquiry .wpcf7 form .wpcf7-response-output {
  margin: 0 0 1.5rem;
}
.cmp-enquiry {
  background: var(--cmp-off-black);
}

.cmp-enquiry__inner.contact {
  max-width: 44rem;
  margin-inline: auto;
  padding-bottom: 0;
  background: transparent;
}

.cmp-enquiry .cmp-eyebrow {
  margin-bottom: var(--cmp-stack);
  text-align: center;
  color: var(--cmp-gold);
}

.cmp-enquiry h2 {
  margin-bottom: var(--cmp-stack);
}

.cmp-enquiry .cmp-enquiry__intro {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  font-size: 1rem;
  line-height: 1.75;
}

/* One rhythm for every field: each label sits closer to its own field than to the one
   above, as on the site's form, and stays level with its neighbour when a tip appears */
.cmp-enquiry form p:has(label) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 24px;
  align-items: start;
  padding-bottom: 12px;
}

.cmp-enquiry form p:has(label) br {
  display: none;
}

.cmp-enquiry form label > span.wpcf7-form-control-wrap {
  margin-bottom: 0;
}

.cmp-enquiry form label input,
.cmp-enquiry form label textarea,
.cmp-enquiry form .custom-select-2 {
  display: block;
  margin-top: 0;
}

/* Field text in charcoal: white on the theme's gold is too faint to read */
.cmp-enquiry.cmp-enquiry form input:not([type="submit"]),
.cmp-enquiry.cmp-enquiry form textarea,
.cmp-enquiry.cmp-enquiry form .select-selected,
.cmp-enquiry.cmp-enquiry form .select-items div {
  color: var(--cmp-dark-grey);
}

.cmp-enquiry form textarea {
  line-height: 1.4; /* the theme's is tighter than the type, so wrapped lines collide */
}

.cmp-enquiry form input::placeholder,
.cmp-enquiry form textarea::placeholder {
  color: var(--cmp-dark-grey);
}

.cmp-enquiry.cmp-enquiry form .select-selected::after {
  border-top-color: var(--cmp-dark-grey);
}

.cmp-enquiry.cmp-enquiry form .select-selected.select-arrow-active::after {
  border-top-color: transparent;
  border-bottom-color: var(--cmp-dark-grey);
}

.cmp-enquiry.cmp-enquiry form .select-items div:hover,
.cmp-enquiry.cmp-enquiry form .same-as-selected {
  color: var(--cmp-dark-grey);
}

/* The consent line, centred and discreet beneath the form */
.cmp-enquiry .final {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

/* Pairs short fields so the form doesn't dominate the close of the page */
@media (min-width: 768px) {
  .cmp-enquiry form p:has(label) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  }

  .cmp-enquiry form label:has(textarea) {
    grid-column: 1 / -1;
  }
}

/* The enquiry section and the footer share a background, so no rule between them */
.campaign-page footer {
  border-top: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .cmp-enquire-lozenge,
  .cmp-enquire-lozenge.is-past {
    transition: none;
  }

  .cmp-hero__video,
  .cmp-av__illustration svg,
  .cmp-av__shape,
  .btn.cmp-av__enquire {
    transition: none;
  }

  .cmp-js [data-cmp-reveal],
  .cmp-js [data-cmp-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Axonometric: dark logo, as the page opens on white */
.cmp-page-light header .header-logo {
  display: inline-block;
}

.cmp-page-light header .header-logo-light {
  display: none;
}

/* Finished composition by default; campaign-axonometric.js animates into it */
.cmp-axo {
  background: var(--cmp-white);
}

.cmp-axo__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(170px, 22vh, 240px) 0 60px; /* clears the logo */
  overflow: hidden;
  background: var(--cmp-white);
}

.cmp-axo__artboard {
  position: relative;
  width: min(90vw, calc(86vh * 3059 / 5053));
}

.cmp-axo__layer {
  position: absolute;
  max-width: none;
  height: auto;
}

/* A rendered figure: one frame of its sprite shows at a time */
.cmp-axo__figure {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.cmp-axo__figure img {
  display: block;
  max-width: none;
  height: 100%;
}

.cmp-axo.is-animated .cmp-axo__frame {
  display: block;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  padding: 0;
}

.cmp-axo.is-animated .cmp-axo__camera {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.cmp-axo.is-ready .cmp-axo__camera {
  opacity: 1;
}

.cmp-axo.is-animated .cmp-axo__layer {
  will-change: transform;
}

.cmp-axo__statements {
  margin: 0;
  padding: 2.5rem var(--cmp-page-pad) 0;
  list-style: none;
  text-align: center;
}

.cmp-axo__statement {
  font-family: var(--cmp-font-display);
  font-weight: 300;
  font-size: var(--cmp-title-size); /* the editorial H2 */
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cmp-dark-grey);
}

.cmp-axo__frame {
  flex-direction: column;
}

/* In the drawing's empty corner: its diamond leaves the upper left clear at every stage */
/* All four share one anchor at the bottom left: the headline's last line never moves, and
   a longer one wraps upwards. Width is kept clear of the compass on narrow screens. */
.cmp-axo.is-animated .cmp-axo__statements {
  position: absolute;
  bottom: var(--cmp-axo-margin-bottom);
  left: var(--cmp-page-pad);
  width: calc(100% - var(--cmp-page-pad) * 2);
  padding: 0;
  text-align: left;
  text-wrap: balance;
}

.cmp-axo.is-animated .cmp-axo__statement {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Supplied icons, redrawn as fine lines: a small annotation above the headline, level with
   its left edge. It belongs to the statement, so fades with it and has no movement of its own. */
.cmp-axo__icon {
  display: block;
  width: var(--cmp-axo-icon-size);
  margin: 0 auto var(--cmp-axo-icon-gap);
  color: var(--cmp-dark-grey);
}

.cmp-axo.is-animated .cmp-axo__icon {
  position: absolute;
  bottom: calc(100% + var(--cmp-axo-icon-gap));
  left: 0;
  margin: 0;
}

.cmp-axo__icon svg {
  display: block;
  width: 100%;
  height: auto;
}

/* A fixed hairline at any icon size, to sit with the headline's light strokes */
.cmp-axo__icon path {
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
}

/* Compass: a third icon in the same system, its crosshair the width of the bed and heart and
   its letters outside that, so its box is larger. The box's left edge meets the text's. */
.cmp-axo__icon--compass {
  width: calc(var(--cmp-axo-icon-size) * 1.65);
}

.cmp-axo__compass {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cmp-axo__caption-line {
  display: block;
  white-space: nowrap;
}

/* Larger screens: in the white space beside the opening between the floors, clear of the
   finished drawing, whose half-width is the smaller of 44vw and 26svh */
@media (min-width: 768px) and (orientation: landscape) {
  .cmp-axo.is-animated .cmp-axo__statement--right {
    right: auto;
    bottom: calc(50vh - var(--cmp-axo-margin-bottom) - 2.4em);
    left: calc(50vw - var(--cmp-page-pad) + min(44vw, 26vh) + 3rem);
    width: max-content;
  }
}

/* Phones: the shorter floor-plan sequence. The section is two screens taller than its frame and the
   frame sticks to the top while it plays, so nothing changes layout position as it starts or ends. */
.cmp-axo__key {
  display: none;
}

/* The smallest phones: a caption line may wrap rather than run off the screen */
@media (max-width: 359.98px) {
  .cmp-axo__caption-line {
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  /* The theme hides sideways overflow on both html and body, which makes body its own scroll box
     and stops anything sticking. Clip does the same job without that, so the frame can stick.
     Not while the menu is open, so the theme's scroll lock stands. */
  body.campaign-page:not(:has(header.menu-opened)) {
    overflow-x: clip;
    overflow-y: visible;
  }

  .cmp-axo.is-animated.is-short {
    height: 300vh;
    height: 300svh;
  }

  .cmp-axo.is-animated.is-short .cmp-axo__frame {
    position: sticky;
    top: 0;
  }

  /* Which residence, and its floors: top right, level with the menu icon, where the drawing leaves
     space and the header's Enquire button used to be */
  .cmp-axo.is-short .cmp-axo__key:not([hidden]) {
    position: absolute;
    z-index: 2;
    top: 3.4rem;
    right: var(--cmp-page-pad);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.625rem;
  }
}

/* The key fades in (phones: as the floors part; tablets and desktops: as the frame pins); while resting it takes no
   pointer, but keyboard focus brings it in */
.cmp-axo__key {
  opacity: var(--cmp-axo-key-shown, 1);
}

.cmp-axo__key.is-resting {
  pointer-events: none;
}

/* Keyboard focus only: a click leaves focus on the button, which must not hold the key on screen */
.cmp-axo__key:has(:focus-visible) {
  opacity: 1;
  pointer-events: auto;
}

/* The residence key and its Ground / First toggle, at every width (19 Nov: desktop and tablet too). Placed per
   width below: phones as above (compact on the smallest), tablets and desktops under the Enquire button. */
.cmp-axo__key-residence {
  margin: 0;
  font-family: var(--cmp-font-label);
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-align: right;
  text-transform: uppercase;
  color: var(--cmp-gold-deep);
}

.cmp-axo__key-residence [data-cmp-axo-key-name] {
  display: block;
  color: var(--cmp-dark-grey);
}

.cmp-axo__levels {
  display: flex;
  border: 1px solid var(--cmp-gold);
  border-radius: 999px;
  overflow: hidden;
}

.cmp-axo__level {
  position: relative;
  min-width: 4rem;
  height: 2rem;
  margin: 0;
  padding: 0.0625rem 0.75rem 0;
  font-family: var(--cmp-font-label);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cmp-dark-grey);
  background: rgb(255 255 255 / 85%);
  border: 0;
  cursor: pointer;
}

.cmp-axo__level + .cmp-axo__level {
  border-left: 1px solid var(--cmp-gold);
}

.cmp-axo__level[aria-pressed="true"] {
  background: var(--cmp-gold);
}

.cmp-axo__level:focus-visible {
  outline: 2px solid var(--cmp-dark-grey);
  outline-offset: 2px;
}

/* A 44 px touch target, taller than the outline. The pair is rounded on its two ends rather
   than clipped, so the touch area beyond the outline isn't clipped with it. */
.cmp-axo__level::after {
  content: "";
  position: absolute;
  inset: -0.375rem 0;
}

.cmp-axo .cmp-axo__levels {
  overflow: visible;
}

.cmp-axo__level:first-child {
  border-radius: 999px 0 0 999px;
}

.cmp-axo__level:last-child {
  border-radius: 0 999px 999px 0;
}

/* Small phones: the key as one compact line on the statements' icon row (placed by the script) */
.cmp-axo.is-short .cmp-axo__key.cmp-axo__key--compact:not([hidden]) {
  top: var(--cmp-axo-key-top);
  left: var(--cmp-axo-key-left);
  right: var(--cmp-page-pad);
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.cmp-axo__key--compact .cmp-axo__key-residence {
  text-align: left;
  white-space: nowrap;
}

/* The name stays for screen readers */
.cmp-axo__key--compact .cmp-axo__key-residence [data-cmp-axo-key-name] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cmp-axo__key--compact .cmp-axo__level {
  height: 1.5rem;
  padding: 0 0.7rem;
  font-size: 0.5625rem;
}

.cmp-axo__key--compact .cmp-axo__level::after {
  inset: -0.625rem 0;
}

/* Tablets and desktops (revised 19 Nov): bottom right of the floor-plan frame, on the right-hand content margin and
   the statements' baseline, beside the drawing's foot. The residence and the toggle share one right edge. Nothing
   else in the layout moves. */
@media (min-width: 768px) {
  .cmp-axo.is-animated .cmp-axo__key:not([hidden]) {
    position: absolute;
    z-index: 2;
    right: var(--cmp-page-pad);
    bottom: var(--cmp-axo-key-bottom, var(--cmp-axo-margin-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }

  /* Arrives with a restrained fade as the frame pins, before the floors part (opacity only: no layout shift) */
  .cmp-axo.is-animated:not(.is-short) .cmp-axo__key {
    --cmp-axo-key-shown: 0;
    transition: opacity 0.6s ease;
  }

  .cmp-axo.is-animated.is-keyed:not(.is-short) .cmp-axo__key {
    --cmp-axo-key-shown: 1;
  }

  .cmp-axo__key-residence {
    text-align: right;
  }

  /* The toggle as a sibling of the Enquire button above it: the same 44 px height, full rounding and fine charcoal
     outline, with a matching divider. Two equal segments; champagne when chosen, white otherwise; the label type
     unchanged. Phones keep their own gold-outlined treatment. */
  .cmp-axo .cmp-axo__levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
    height: 2.75rem;
    border: 1px solid var(--cmp-dark-grey);
    border-radius: 999px;
  }

  .cmp-axo__level {
    height: 100%;
    min-width: 5.5rem;
    padding: 0.0625rem 1.25rem 0;
  }

  .cmp-axo__level + .cmp-axo__level {
    border-left: 1px solid var(--cmp-dark-grey);
  }

}

@media (hover: hover) {
  .cmp-axo__level:not([aria-pressed="true"]):hover {
    background: rgb(var(--cmp-champagne) / 30%);
  }
}

.cmp-axo__compass line {
  stroke: currentcolor;
  stroke-width: 1px; /* as the menu's lines */
  vector-effect: non-scaling-stroke;
}

.cmp-axo__compass text {
  fill: currentcolor;
  font-family: var(--cmp-font-label);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: central;
}

.cmp-axo__compass text.is-north {
  font-weight: 500;
}

/* Atmosphere: a slow shift of light behind a section. Paused off screen by campaign-motion.js */
[data-cmp-atmosphere] {
  position: relative;
  overflow: hidden;
  background-color: var(--cmp-atmosphere-base);
  isolation: isolate;
}

[data-cmp-atmosphere]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -25%;
  background:
    radial-gradient(60% 50% at 30% 72%, var(--cmp-atmosphere-glow), transparent 100%),
    radial-gradient(45% 40% at 78% 26%, var(--cmp-atmosphere-warm), transparent 100%);
  animation: cmp-atmosphere var(--cmp-atmosphere-duration) ease-in-out infinite alternate paused;
  will-change: transform;
}

[data-cmp-atmosphere].is-moving::before {
  animation-play-state: running;
}

@keyframes cmp-atmosphere {
  from { transform: translate3d(-7%, 5%, 0) scale(1); }
  to { transform: translate3d(7%, -6%, 0) scale(1.1); }
}

/* Bronze light: sun grazing the louvres, seen only as what it leaves on a slate wall. Long,
   shallow pools rather than bands, set unevenly and tilted, on three unrelated slow clocks
   so no repeat can be seen. Fine grain keeps the falloff photographic and free of banding. */
[data-cmp-light] {
  position: relative;
  overflow: hidden;
  background-color: var(--cmp-atmosphere-base);
  isolation: isolate;
}

.cmp-light,
.cmp-light i,
.cmp-light::after {
  position: absolute;
}

.cmp-light {
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cmp-light i {
  inset: -30% -20%;
  animation: cmp-light-a 97s ease-in-out infinite alternate paused;
  will-change: transform, opacity;
}

/* The broad fall of light from the upper right, and the shade it leaves below */
.cmp-light i:nth-child(1) {
  background:
    radial-gradient(70% 50% at 84% 22%, rgb(var(--cmp-bronze) / 13%), rgb(var(--cmp-bronze) / 8%) 34%, rgb(var(--cmp-bronze) / 3%) 68%, transparent),
    radial-gradient(70% 40% at 14% 84%, rgb(14 17 21 / 30%), transparent);
}

/* Long grazing pools of bronze, uneven in length, height and strength */
.cmp-light i:nth-child(2) {
  background:
    radial-gradient(80% 15% at 70% 31%, rgb(var(--cmp-bronze) / 11%), rgb(var(--cmp-bronze) / 5%) 50%, transparent),
    radial-gradient(58% 12% at 26% 43%, rgb(var(--cmp-bronze) / 6%), rgb(var(--cmp-bronze) / 2.5%) 52%, transparent),
    radial-gradient(72% 17% at 84% 58%, rgb(var(--cmp-bronze) / 8%), rgb(var(--cmp-bronze) / 3.5%) 50%, transparent);
  transform: rotate(-3deg);
  animation-name: cmp-light-b;
  animation-duration: 139s;
}

/* The faintest champagne where the light catches most directly */
.cmp-light i:nth-child(3) {
  background:
    radial-gradient(48% 11% at 76% 27%, rgb(var(--cmp-champagne) / 7%), rgb(var(--cmp-champagne) / 3%) 52%, transparent),
    radial-gradient(36% 9% at 90% 49%, rgb(var(--cmp-champagne) / 4%), transparent);
  transform: rotate(-3deg);
  animation-name: cmp-light-c;
  animation-duration: 181s;
}

.cmp-light::after {
  content: "";
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

[data-cmp-light].is-moving .cmp-light i {
  animation-play-state: running;
}

@keyframes cmp-light-a {
  from { transform: translate3d(-1.5%, 0, 0); opacity: 0.86; }
  to { transform: translate3d(1.5%, 1%, 0); opacity: 1; }
}

@keyframes cmp-light-b {
  from { transform: translate3d(2.5%, -0.8%, 0) rotate(-3deg); opacity: 1; }
  to { transform: translate3d(-2.5%, 0.8%, 0) rotate(-2.4deg); opacity: 0.78; }
}

@keyframes cmp-light-c {
  from { transform: translate3d(-3.5%, 0.6%, 0) rotate(-3deg); opacity: 0.6; }
  to { transform: translate3d(3%, -0.6%, 0) rotate(-3.5deg); opacity: 1; }
}

/* Warm limestone: the same light and clocks on a pale mineral surface, where sun lifts the
   stone and bronze only tints it. A feathered shade at the top eases out of the darker hero. */
[data-cmp-light].cmp-editorial--limestone {
  background-color: var(--cmp-limestone);
}

.cmp-editorial--limestone .cmp-light::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(44vh, 26rem);
  background: linear-gradient(180deg, rgb(var(--cmp-limestone-shade) / 22%), rgb(var(--cmp-limestone-shade) / 12%) 30%, rgb(var(--cmp-limestone-shade) / 4%) 66%, transparent);
}

.cmp-editorial--limestone .cmp-light i:nth-child(1) {
  background:
    radial-gradient(78% 56% at 84% 22%, rgb(var(--cmp-limestone-sun) / 42%), rgb(var(--cmp-limestone-sun) / 22%) 38%, rgb(var(--cmp-limestone-sun) / 7%) 72%, transparent),
    radial-gradient(76% 46% at 12% 86%, rgb(var(--cmp-limestone-shade) / 13%), rgb(var(--cmp-limestone-shade) / 5%) 56%, transparent);
}

.cmp-editorial--limestone .cmp-light i:nth-child(2) {
  background:
    radial-gradient(84% 16% at 68% 38%, rgb(var(--cmp-bronze) / 7%), rgb(var(--cmp-bronze) / 3%) 52%, transparent),
    radial-gradient(60% 13% at 24% 50%, rgb(var(--cmp-bronze) / 4%), rgb(var(--cmp-bronze) / 1.5%) 54%, transparent),
    radial-gradient(74% 18% at 86% 62%, rgb(var(--cmp-bronze) / 5%), rgb(var(--cmp-bronze) / 2%) 52%, transparent);
}

.cmp-editorial--limestone .cmp-light i:nth-child(3) {
  background:
    radial-gradient(54% 12% at 74% 31%, rgb(var(--cmp-limestone-sun) / 26%), rgb(var(--cmp-limestone-sun) / 10%) 54%, transparent),
    radial-gradient(42% 10% at 34% 24%, rgb(var(--cmp-limestone-sun) / 12%), rgb(var(--cmp-limestone-sun) / 4%) 56%, transparent),
    radial-gradient(46% 11% at 88% 54%, rgb(var(--cmp-champagne) / 12%), transparent);
}

/* Grain darkens rather than lifts here, reading as the stone's fine surface */
.cmp-editorial--limestone .cmp-light::after {
  opacity: 0.07;
  filter: invert(1);
}

.cmp-editorial--limestone h1,
.cmp-editorial--limestone h2,
.cmp-editorial--limestone p {
  color: var(--cmp-limestone-ink);
}

/* Settles the photograph on the stone, as its pale edges would otherwise dissolve into it */
.cmp-editorial--limestone .cmp-editorial__image {
  box-shadow: 0 1.5rem 5rem rgb(var(--cmp-limestone-shade) / 18%);
}

/* Sunlit limestone: one continuous stone surface, deepest at the headline. A broad pool of
   champagne light crosses it diagonally with a softer bronze behind, each entering and leaving
   beyond the section's edges, so the light moves on rather than repeating or pulsing. */
[data-cmp-light].cmp-editorial--sunlit {
  --cmp-sunlit-headline-end: calc(var(--cmp-editorial-space) + var(--cmp-editorial-h1-size) * 2.3);
  background-color: var(--cmp-sunlit-stone);
  background-image: linear-gradient(180deg, var(--cmp-sunlit-shade), var(--cmp-sunlit-shade) var(--cmp-sunlit-headline-end), var(--cmp-sunlit-stone) calc(var(--cmp-sunlit-headline-end) + 26%), var(--cmp-sunlit-lit) calc(var(--cmp-sunlit-headline-end) + 56%));
}

/* The stone itself holds the headline's depth. The light simply fades as it nears the words,
   so nothing darker sits behind them when it has moved on. */
.cmp-editorial--sunlit .cmp-light {
  --cmp-sunlit-mask: radial-gradient(
    74% calc(var(--cmp-editorial-space) * 0.9 + var(--cmp-editorial-h1-size) * 3.4) at 50% calc(var(--cmp-editorial-space) + var(--cmp-editorial-h1-size) * 1.12),
    rgb(0 0 0 / 16%),
    rgb(0 0 0 / 16%) 44%,
    rgb(0 0 0 / 34%) 58%,
    rgb(0 0 0 / 62%) 74%,
    rgb(0 0 0 / 88%) 90%,
    #000
  );
  -webkit-mask-image: var(--cmp-sunlit-mask);
  mask-image: var(--cmp-sunlit-mask);
}

/* Phones wrap the headline onto more lines across the full width, and show less of the
   stone, so the light crosses in less time to read as clearly */
@media (max-width: 539.98px) {
  [data-cmp-light].cmp-editorial--sunlit {
    --cmp-sunlit-headline-end: calc(var(--cmp-editorial-space) + var(--cmp-editorial-h1-size) * 4.6);
  }

  .cmp-sunlit {
    --cmp-sunlit-sweep: 24s;
    --cmp-sunlit-drift: 38s;
    --cmp-sunlit-sweep-from: 0%; /* a steeper path, reaching the stone below the photograph */
    --cmp-sunlit-sweep-to: 27%;
    --cmp-sunlit-drift-from: -3%;
    --cmp-sunlit-drift-to: 23%;
  }

  .cmp-editorial--sunlit .cmp-light {
    --cmp-sunlit-mask: radial-gradient(
      120% calc(var(--cmp-editorial-space) * 0.9 + var(--cmp-editorial-h1-size) * 4.8) at 50% calc(var(--cmp-editorial-space) + var(--cmp-editorial-h1-size) * 1.9),
      rgb(0 0 0 / 14%),
      rgb(0 0 0 / 14%) 50%,
      rgb(0 0 0 / 36%) 64%,
      rgb(0 0 0 / 66%) 78%,
      rgb(0 0 0 / 90%) 92%,
      #000
    );
  }
}

/* The surface's own light, gathered around the photograph */
.cmp-sunlit .cmp-light i:nth-child(1) {
  inset: 0;
  background: radial-gradient(76% 52% at 44% 66%, rgb(var(--cmp-sunlit-champagne) / 22%), rgb(var(--cmp-sunlit-champagne) / 11%) 48%, rgb(var(--cmp-sunlit-champagne) / 3%) 80%, transparent);
  transform: none;
  animation: none;
}

.cmp-sunlit .cmp-light i:nth-child(2),
.cmp-sunlit .cmp-light i:nth-child(3) {
  inset: -35% auto -35% 0;
  width: 110%;
  animation: none;
}

/* At rest, as reduced motion sees it: a pool of light either side of the photograph */
.cmp-sunlit .cmp-light i:nth-child(2) {
  background:
    radial-gradient(40% 17% at 50% 45%, rgb(var(--cmp-sunlit-champagne) / 62%), rgb(var(--cmp-sunlit-champagne) / 48%) 18%, rgb(var(--cmp-sunlit-champagne) / 29%) 38%, rgb(var(--cmp-sunlit-champagne) / 13%) 60%, rgb(var(--cmp-sunlit-champagne) / 4%) 82%, transparent),
    radial-gradient(22% 7% at 63% 56%, rgb(var(--cmp-sunlit-champagne) / 20%), rgb(var(--cmp-sunlit-champagne) / 7%) 56%, transparent);
  transform: translate3d(-42%, -4%, 0) rotate(-22deg);
}

.cmp-sunlit .cmp-light i:nth-child(3) {
  background:
    radial-gradient(44% 19% at 50% 50%, rgb(var(--cmp-sunlit-bronze) / 38%), rgb(var(--cmp-sunlit-bronze) / 24%) 30%, rgb(var(--cmp-sunlit-bronze) / 12%) 58%, rgb(var(--cmp-sunlit-bronze) / 3%) 84%, transparent),
    radial-gradient(20% 8% at 40% 44%, rgb(var(--cmp-sunlit-champagne) / 14%), rgb(var(--cmp-sunlit-champagne) / 4%) 58%, transparent);
  transform: translate3d(44%, 3%, 0) rotate(-14deg);
}

@media (prefers-reduced-motion: no-preference) {
  .cmp-sunlit .cmp-light i:nth-child(2) {
    animation: cmp-sunlit-sweep var(--cmp-sunlit-sweep) linear -13s infinite paused;
  }

  .cmp-sunlit .cmp-light i:nth-child(3) {
    animation: cmp-sunlit-drift var(--cmp-sunlit-drift) linear -34s infinite paused;
  }
}

/* Runs only on screen, as the paused state above would otherwise win */
.cmp-sunlit.is-moving .cmp-light i:nth-child(n) {
  animation-play-state: running;
}

@keyframes cmp-sunlit-sweep {
  from { transform: translate3d(-100%, var(--cmp-sunlit-sweep-from, -9%), 0) rotate(-22deg); }
  to { transform: translate3d(91%, var(--cmp-sunlit-sweep-to, 9%), 0) rotate(-22deg); }
}

@keyframes cmp-sunlit-drift {
  from { transform: translate3d(-100%, var(--cmp-sunlit-drift-from, -6%), 0) rotate(-14deg); }
  to { transform: translate3d(91%, var(--cmp-sunlit-drift-to, 8%), 0) rotate(-14deg); }
}

/* Warmth passing once across the letters on arrival. Removed afterwards, leaving plain white. */
.cmp-editorial--sunlit .is-catching-light {
  background-image: linear-gradient(112deg, var(--cmp-white) 36%, #f4e8d0 50%, var(--cmp-white) 64%);
  background-position: var(--cmp-glint, 100%) 0;
  background-repeat: no-repeat;
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cmp-editorial--sunlit .is-catching-light .cmp-editorial__line {
  color: transparent;
}

.cmp-sunlit .cmp-light::after {
  opacity: 0.07;
}

/* Golden light: the same layers and clocks as the sunlit limestone, in Mediterranean sun on
   bronze. Colour runs from warm shadow through amber to champagne, with a brighter, broader
   pool crossing on a steeper diagonal. The headline's band stays deep at any moment. */
[data-cmp-light].cmp-editorial--golden {
  background-color: var(--cmp-golden-bronze);
  background-image:
    linear-gradient(180deg, rgb(102 72 22 / 74%), rgb(102 72 22 / 74%) var(--cmp-sunlit-headline-end), rgb(102 72 22 / 34%) calc(var(--cmp-sunlit-headline-end) + 12%), rgb(102 72 22 / 0%) calc(var(--cmp-sunlit-headline-end) + 30%)),
    linear-gradient(112deg, var(--cmp-golden-bronze), var(--cmp-golden-amber) 38%, var(--cmp-golden-champagne) 74%, var(--cmp-golden-limestone));
}

.cmp-sunlit:is(.cmp-editorial--golden, .cmp-diptych--golden) {
  --cmp-sunlit-sweep: 30s;
  --cmp-sunlit-drift: 46s;
  --cmp-sunlit-sweep-from: -13%;
  --cmp-sunlit-sweep-to: 13%;
}

.cmp-editorial--golden .cmp-light i:nth-child(1) {
  background: radial-gradient(78% 54% at 54% 66%, rgb(var(--cmp-golden-light) / 58%), rgb(var(--cmp-golden-light) / 32%) 46%, rgb(var(--cmp-golden-light) / 9%) 78%, transparent);
}

.cmp-sunlit:is(.cmp-editorial--golden, .cmp-diptych--golden) .cmp-light i:nth-child(2) {
  background:
    radial-gradient(44% 21% at 50% 45%, rgb(var(--cmp-golden-light) / 76%), rgb(var(--cmp-golden-light) / 58%) 18%, rgb(var(--cmp-golden-light) / 34%) 38%, rgb(var(--cmp-golden-light) / 15%) 60%, rgb(var(--cmp-golden-light) / 4%) 82%, transparent),
    radial-gradient(26% 9% at 62% 58%, rgb(var(--cmp-golden-light) / 26%), rgb(var(--cmp-golden-light) / 9%) 56%, transparent);
}

.cmp-sunlit:is(.cmp-editorial--golden, .cmp-diptych--golden) .cmp-light i:nth-child(3) {
  background:
    radial-gradient(46% 24% at 50% 52%, rgb(var(--cmp-golden-glow) / 50%), rgb(var(--cmp-golden-glow) / 32%) 30%, rgb(var(--cmp-golden-glow) / 14%) 58%, rgb(var(--cmp-golden-glow) / 4%) 84%, transparent);
}

/* The diptych: paler and cooler, with olive-champagne low on the left, after the glasses */
[data-cmp-light].cmp-diptych.cmp-diptych--golden {
  background-color: #b09c66;
  background-image: linear-gradient(112deg, #87723f, #b09c66 38%, #d4c7a0 72%, #e6dfc8);
}

.cmp-diptych.cmp-diptych--golden .cmp-light i:nth-child(1) {
  background:
    radial-gradient(60% 46% at 26% 76%, rgb(var(--cmp-golden-olive) / 34%), rgb(var(--cmp-golden-olive) / 18%) 46%, rgb(var(--cmp-golden-olive) / 5%) 78%, transparent),
    radial-gradient(52% 38% at 62% 26%, rgb(var(--cmp-golden-light) / 24%), rgb(var(--cmp-golden-light) / 8%) 60%, transparent);
}

.cmp-diptych.cmp-diptych--golden.cmp-sunlit .cmp-light i:nth-child(3) {
  background: radial-gradient(46% 24% at 50% 52%, rgb(var(--cmp-golden-light) / 34%), rgb(var(--cmp-golden-light) / 20%) 34%, rgb(var(--cmp-golden-light) / 7%) 62%, transparent);
}

/* Deep Aegean into stone (Athens, As Home, Section 02; provisional, for creative review): the diptych's
   mineral blue behind the headline, warming through grey-blue stone to champagne at the foot, where the
   photograph's gold reflections sit. The louvre light keeps its shapes and timing, faint, as on the diptych.
   Typography, image size and spacing are the louvre tone's own. */
[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean {
  --cmp-louvre-sun: 240 222 184;
  --cmp-louvre-gold: 224 198 146;
  background-color: #5d6a6e;
  background-image:
    radial-gradient(60% 30% at 8% 4%, rgb(20 34 44 / 55%), transparent),
    radial-gradient(50% 26% at 90% 10%, rgb(24 40 52 / 40%), transparent),
    radial-gradient(70% 30% at 30% 92%, rgb(214 196 160 / 38%), transparent),
    linear-gradient(180deg, #223847 0%, #2a4150 22%, #3d5260 38%, #66706f 56%, #9a9282 76%, #c2b393 92%, #cdbd9c 100%);
}

[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light {
  opacity: 0.32;
}

/* Athens, As Home Section 02 (19 Nov): organic drift for the Aegean light, under the static grain. Three broad, diffused fields instead of angled bands. Each drifts a few per cent along an irregular path,
   easing into and out of rest, so long near-still passages alternate with gentle shifts. Unrelated loop lengths (89, 131 and
   67 s) keep the fields out of step; each loop ends where it began, so there is no jump. Transform and opacity only. */
[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(n) { inset: -20% -20% -20% -20%; width: auto; }
[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(1) {
  background: radial-gradient(48% 36% at 46% 44%, rgb(var(--cmp-louvre-sun) / 52%), rgb(var(--cmp-louvre-sun) / 26%) 40%, rgb(var(--cmp-louvre-sun) / 8%) 70%, transparent 100%),
              radial-gradient(30% 24% at 64% 58%, rgb(var(--cmp-louvre-gold) / 30%), rgb(var(--cmp-louvre-gold) / 10%) 55%, transparent 100%);
  transform: translate3d(-5%, -2%, 0) scale(1); opacity: 0.72;
}
[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(2) {
  background: radial-gradient(56% 40% at 36% 62%, rgb(196 206 204 / 34%), rgb(196 206 204 / 14%) 50%, transparent 100%),
              radial-gradient(34% 26% at 72% 34%, rgb(var(--cmp-louvre-sun) / 22%), transparent 100%);
  transform: translate3d(4%, 1%, 0) scale(1.04); opacity: 0.6;
}
[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(3) {
  background: radial-gradient(26% 20% at 54% 50%, rgb(var(--cmp-louvre-gold) / 60%), rgb(var(--cmp-louvre-gold) / 22%) 45%, transparent 100%);
  transform: translate3d(0, 0, 0) scale(1); opacity: 0.12;
}
@media (prefers-reduced-motion: no-preference) {
  [data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(1) { animation: cmp-aegean-drift-a 89s cubic-bezier(0.45, 0, 0.55, 1) -31s infinite paused; }
  [data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(2) { animation: cmp-aegean-drift-b 131s cubic-bezier(0.45, 0, 0.55, 1) -74s infinite paused; }
  [data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean .cmp-light i:nth-child(3) { animation: cmp-aegean-bloom 67s cubic-bezier(0.45, 0, 0.55, 1) -12s infinite paused; }
  [data-cmp-light].cmp-editorial--aegean.is-moving .cmp-light i:nth-child(n) { animation-play-state: running; }
}
@keyframes cmp-aegean-drift-a {
  0%   { transform: translate3d(-5%, -2%, 0) scale(1);       opacity: 0.72; }
  16%  { transform: translate3d(-4.2%, -1.6%, 0) scale(1.01); opacity: 0.76; }
  27%  { transform: translate3d(-3.8%, -1.2%, 0) scale(1.015); opacity: 0.74; }
  43%  { transform: translate3d(2.6%, 1.4%, 0) scale(1.05);   opacity: 0.96; }
  57%  { transform: translate3d(3.2%, 1.7%, 0) scale(1.045);  opacity: 0.9; }
  79%  { transform: translate3d(6.4%, -0.6%, 0) scale(1.03);  opacity: 0.64; }
  88%  { transform: translate3d(5.6%, -1%, 0) scale(1.02);    opacity: 0.66; }
  100% { transform: translate3d(-5%, -2%, 0) scale(1);       opacity: 0.72; }
}
@keyframes cmp-aegean-drift-b {
  0%   { transform: translate3d(4%, 1%, 0) scale(1.04);  opacity: 0.6; }
  21%  { transform: translate3d(3.4%, 0.6%, 0) scale(1.04); opacity: 0.62; }
  38%  { transform: translate3d(-2.8%, 2.4%, 0) scale(1.08); opacity: 0.8; }
  49%  { transform: translate3d(-3.2%, 2.6%, 0) scale(1.08); opacity: 0.78; }
  71%  { transform: translate3d(-6%, -0.8%, 0) scale(1.02); opacity: 0.52; }
  86%  { transform: translate3d(0.6%, -1.4%, 0) scale(1.03); opacity: 0.58; }
  100% { transform: translate3d(4%, 1%, 0) scale(1.04);  opacity: 0.6; }
}
@keyframes cmp-aegean-bloom {
  0%   { transform: translate3d(0, 0, 0) scale(1);      opacity: 0.12; }
  34%  { transform: translate3d(1.5%, -0.5%, 0) scale(1.02); opacity: 0.14; }
  46%  { transform: translate3d(3%, -1%, 0) scale(1.06);  opacity: 0.62; }
  55%  { transform: translate3d(4%, -1.2%, 0) scale(1.08); opacity: 0.5; }
  68%  { transform: translate3d(5%, -1%, 0) scale(1.06);  opacity: 0.16; }
  100% { transform: translate3d(0, 0, 0) scale(1);      opacity: 0.12; }
}

/* Fine photographic grain over the ground (option B, chosen 19 Nov): generated to the measured character of the
   Section 02 photograph as displayed (about one device pixel, lightly clumped, mostly luminance with colour grain at
   about half), not taken from it. Static, one 60 KB tile that repeats seamlessly, about 2 levels in 255 as rendered.
   It sits over the ground and the light, under the headline and the photograph, which keeps its own grain and edges. */
[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean {
  isolation: isolate;
}

[data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("textures/s02-grain.jpg");
  background-size: 384px 384px;
  mix-blend-mode: overlay;
  opacity: 0.093;
}

/* Device pixels: the tile is drawn 1:1 on screens of 1.5x and above too */
@media (min-resolution: 1.5dppx) {
  [data-cmp-light].cmp-editorial--louvre.cmp-editorial--aegean::after {
    background-size: 192px 192px;
  }
}

.cmp-editorial--aegean .container,
.cmp-editorial--aegean .cmp-editorial__image {
  position: relative;
  z-index: 2;
}

/* Sunlight through louvres: limestone with no bands or fixed shading, and no shade held behind
   the headline. Broad pools of warm shade and light dissolve in every direction, and three
   irregular areas of sun cross on one diagonal at different speeds and strengths, brightening
   and easing as they go. Only transform and opacity move, and nothing crosses the photograph. */
[data-cmp-light].cmp-editorial--louvre {
  --cmp-louvre-sun: 255 241 208;
  --cmp-louvre-gold: 244 208 138;
  background-color: #a98f68;
  background-image:
    radial-gradient(40% 34% at 6% 6%, rgb(88 66 38 / 42%), rgb(88 66 38 / 12%) 62%, transparent),
    radial-gradient(44% 30% at 94% 90%, rgb(134 102 60 / 40%), rgb(134 102 60 / 10%) 66%, transparent),
    radial-gradient(60% 38% at 24% 82%, rgb(244 230 198 / 66%), rgb(244 230 198 / 22%) 58%, transparent),
    radial-gradient(40% 28% at 80% 56%, rgb(248 230 188 / 50%), rgb(248 230 188 / 14%) 62%, transparent),
    linear-gradient(128deg, #b8a282, #d0bfa2 48%, #bba585);
}

/* The sun fades gradually near the words: two wide, offset falloffs combined, so the fade has
   no shape of its own to read as a halo when light passes */
.cmp-editorial--louvre .cmp-light {
  --cmp-louvre-fade-y: calc(var(--cmp-editorial-space) + var(--cmp-editorial-h1-size) * 1.12);
  --cmp-louvre-fade-reach: calc(var(--cmp-editorial-space) * 0.72 + var(--cmp-editorial-h1-size) * 4.2);
  --cmp-sunlit-mask:
    radial-gradient(72% var(--cmp-louvre-fade-reach) at 43% var(--cmp-louvre-fade-y), rgb(0 0 0 / 14%), rgb(0 0 0 / 18%) 38%, rgb(0 0 0 / 34%) 54%, rgb(0 0 0 / 58%) 68%, rgb(0 0 0 / 80%) 82%, rgb(0 0 0 / 94%) 93%, #000),
    radial-gradient(62% calc(var(--cmp-louvre-fade-reach) * 0.86) at 59% calc(var(--cmp-louvre-fade-y) * 0.96), rgb(0 0 0 / 14%), rgb(0 0 0 / 20%) 40%, rgb(0 0 0 / 42%) 58%, rgb(0 0 0 / 68%) 73%, rgb(0 0 0 / 90%) 89%, #000);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 539.98px) {
  .cmp-editorial--louvre .cmp-light {
    --cmp-louvre-fade-y: calc(var(--cmp-editorial-space) + var(--cmp-editorial-h1-size) * 2);
    --cmp-louvre-fade-reach: calc(var(--cmp-editorial-space) * 1.1 + var(--cmp-editorial-h1-size) * 7);
    --cmp-sunlit-mask:
      radial-gradient(150% var(--cmp-louvre-fade-reach) at 44% var(--cmp-louvre-fade-y), rgb(0 0 0 / 12%), rgb(0 0 0 / 14%) 34%, rgb(0 0 0 / 34%) 52%, rgb(0 0 0 / 62%) 68%, rgb(0 0 0 / 88%) 86%, #000),
      radial-gradient(130% calc(var(--cmp-louvre-fade-reach) * 0.9) at 58% var(--cmp-louvre-fade-y), rgb(0 0 0 / 12%), rgb(0 0 0 / 16%) 34%, rgb(0 0 0 / 40%) 54%, rgb(0 0 0 / 70%) 72%, #000);
  }
}

.cmp-sunlit:is(.cmp-editorial--louvre, .cmp-diptych--louvre) .cmp-light i:nth-child(n) {
  inset: -35% auto -35% 0;
  width: 110%;
}

/* Sun through the louvres: uneven patches, the brightest and longest */
.cmp-editorial--louvre.cmp-sunlit .cmp-light i:nth-child(1) {
  background:
    radial-gradient(27% 7% at 44% 40%, rgb(var(--cmp-louvre-sun) / 92%), rgb(var(--cmp-louvre-sun) / 57%) 30%, rgb(var(--cmp-louvre-sun) / 22%) 62%, rgb(var(--cmp-louvre-sun) / 5%) 86%, transparent),
    radial-gradient(20% 5% at 63% 47%, rgb(var(--cmp-louvre-sun) / 70%), rgb(var(--cmp-louvre-sun) / 43%) 30%, rgb(var(--cmp-louvre-sun) / 17%) 62%, rgb(var(--cmp-louvre-sun) / 4%) 86%, transparent),
    radial-gradient(15% 4% at 27% 33%, rgb(var(--cmp-louvre-gold) / 62%), rgb(var(--cmp-louvre-gold) / 38%) 30%, rgb(var(--cmp-louvre-gold) / 15%) 62%, rgb(var(--cmp-louvre-gold) / 3%) 86%, transparent),
    radial-gradient(11% 3% at 76% 53%, rgb(var(--cmp-louvre-sun) / 48%), rgb(var(--cmp-louvre-sun) / 30%) 30%, rgb(var(--cmp-louvre-sun) / 12%) 62%, rgb(var(--cmp-louvre-sun) / 2%) 86%, transparent);
  transform: translate3d(-40%, 0%, 0) rotate(-24deg);
}

/* A broader, softer gold, moving more slowly behind */
.cmp-editorial--louvre.cmp-sunlit .cmp-light i:nth-child(2) {
  background:
    radial-gradient(38% 17% at 50% 55%, rgb(var(--cmp-louvre-gold) / 62%), rgb(var(--cmp-louvre-gold) / 38%) 30%, rgb(var(--cmp-louvre-gold) / 15%) 62%, rgb(var(--cmp-louvre-gold) / 3%) 86%, transparent),
    radial-gradient(20% 6% at 36% 63%, rgb(var(--cmp-louvre-sun) / 38%), rgb(var(--cmp-louvre-sun) / 24%) 30%, rgb(var(--cmp-louvre-sun) / 9%) 62%, rgb(var(--cmp-louvre-sun) / 2%) 86%, transparent),
    radial-gradient(16% 5% at 68% 46%, rgb(var(--cmp-louvre-gold) / 34%), rgb(var(--cmp-louvre-gold) / 21%) 30%, rgb(var(--cmp-louvre-gold) / 8%) 62%, rgb(var(--cmp-louvre-gold) / 2%) 86%, transparent);
  transform: translate3d(44%, 0%, 0) rotate(-22deg);
}

/* A smaller, quicker passage of champagne */
.cmp-editorial--louvre.cmp-sunlit .cmp-light i:nth-child(3) {
  background:
    radial-gradient(18% 4.5% at 48% 46%, rgb(var(--cmp-louvre-sun) / 76%), rgb(var(--cmp-louvre-sun) / 47%) 30%, rgb(var(--cmp-louvre-sun) / 18%) 62%, rgb(var(--cmp-louvre-sun) / 4%) 86%, transparent),
    radial-gradient(12% 3% at 66% 53%, rgb(var(--cmp-louvre-sun) / 50%), rgb(var(--cmp-louvre-sun) / 31%) 30%, rgb(var(--cmp-louvre-sun) / 12%) 62%, rgb(var(--cmp-louvre-sun) / 2%) 86%, transparent),
    radial-gradient(10% 3% at 33% 40%, rgb(var(--cmp-louvre-gold) / 44%), rgb(var(--cmp-louvre-gold) / 27%) 30%, rgb(var(--cmp-louvre-gold) / 11%) 62%, rgb(var(--cmp-louvre-gold) / 2%) 86%, transparent);
  transform: translate3d(-4%, 8%, 0) rotate(-26deg);
}

/* One system, set per section: each layer's duration, starting point, angle and travel */
@media (prefers-reduced-motion: no-preference) {
  .cmp-sunlit:is(.cmp-editorial--louvre, .cmp-diptych--louvre) .cmp-light i:nth-child(1) {
    animation: cmp-louvre-long var(--cmp-louvre-long, 22s) linear var(--cmp-louvre-long-start, -7s) infinite paused;
  }

  .cmp-sunlit:is(.cmp-editorial--louvre, .cmp-diptych--louvre) .cmp-light i:nth-child(2) {
    animation: cmp-louvre-broad var(--cmp-louvre-broad, 31s) linear var(--cmp-louvre-broad-start, -19s) infinite paused;
  }

  .cmp-sunlit:is(.cmp-editorial--louvre, .cmp-diptych--louvre) .cmp-light i:nth-child(3) {
    animation: cmp-louvre-glint var(--cmp-louvre-glint, 17s) linear var(--cmp-louvre-glint-start, -2s) infinite paused;
  }

  .cmp-sunlit:is(.cmp-editorial--louvre, .cmp-diptych--louvre).is-moving .cmp-light i:nth-child(n) {
    animation-play-state: running;
  }
}

@media (max-width: 767.98px) {
  [data-cmp-light].cmp-editorial--louvre {
    --cmp-louvre-long: 15s;
    --cmp-louvre-broad: 21s;
    --cmp-louvre-glint: 11s;
  }
}

@keyframes cmp-louvre-long {
  0% { opacity: 0.55; transform: translate3d(-100%, var(--cmp-louvre-long-from, -14%), 0) rotate(var(--cmp-louvre-long-angle, -24deg)); }
  30% { opacity: 1; }
  58% { opacity: 0.68; }
  80% { opacity: 1; }
  100% { opacity: 0.55; transform: translate3d(91%, var(--cmp-louvre-long-to, 14%), 0) rotate(var(--cmp-louvre-long-angle, -24deg)); }
}

@keyframes cmp-louvre-broad {
  0% { opacity: 0.8; transform: translate3d(-100%, var(--cmp-louvre-broad-from, -8%), 0) rotate(var(--cmp-louvre-broad-angle, -22deg)); }
  45% { opacity: 0.55; }
  72% { opacity: 1; }
  100% { opacity: 0.7; transform: translate3d(91%, var(--cmp-louvre-broad-to, 11%), 0) rotate(var(--cmp-louvre-broad-angle, -22deg)); }
}

@keyframes cmp-louvre-glint {
  0% { opacity: 0.4; transform: translate3d(-100%, var(--cmp-louvre-glint-from, -10%), 0) rotate(var(--cmp-louvre-glint-angle, -26deg)); }
  26% { opacity: 0.95; }
  48% { opacity: 0.5; }
  70% { opacity: 1; }
  100% { opacity: 0.4; transform: translate3d(91%, var(--cmp-louvre-glint-to, 16%), 0) rotate(var(--cmp-louvre-glint-angle, -26deg)); }
}

/* The diptych's expression of the same light: a paler stone with a trace of olive-gold, a
   gentler angle, a broader spread, and its own timings, so it never falls in step with the
   opening section. There's no headline here, so nothing fades. */
[data-cmp-light].cmp-diptych.cmp-diptych--louvre {
  --cmp-louvre-sun: 255 243 212;
  --cmp-louvre-gold: 238 216 158;
  --cmp-louvre-long: 27s;
  --cmp-louvre-long-start: -18s;
  --cmp-louvre-long-angle: -15deg;
  --cmp-louvre-long-from: -7%;
  --cmp-louvre-long-to: 9%;
  --cmp-louvre-broad: 41s;
  --cmp-louvre-broad-start: -6s;
  --cmp-louvre-broad-angle: -12deg;
  --cmp-louvre-broad-from: 6%;
  --cmp-louvre-broad-to: -5%;
  --cmp-louvre-glint: 23s;
  --cmp-louvre-glint-start: -13s;
  --cmp-louvre-glint-angle: -17deg;
  --cmp-louvre-glint-from: -5%;
  --cmp-louvre-glint-to: 11%;
  background-color: #bda98b;
  background-image:
    radial-gradient(62% 42% at 4% 8%, rgb(92 68 38 / 58%), rgb(92 68 38 / 30%) 50%, rgb(92 68 38 / 7%) 84%, transparent),
    radial-gradient(48% 30% at 42% 96%, rgb(104 78 44 / 46%), rgb(104 78 44 / 16%) 60%, transparent),
    radial-gradient(34% 26% at 96% 8%, rgb(112 90 54 / 30%), rgb(112 90 54 / 8%) 66%, transparent),
    radial-gradient(54% 38% at 20% 70%, rgb(186 180 126 / 24%), rgb(186 180 126 / 11%) 52%, rgb(186 180 126 / 3%) 82%, transparent),
    radial-gradient(52% 34% at 36% 24%, rgb(246 234 200 / 56%), rgb(246 234 200 / 18%) 60%, transparent),
    linear-gradient(118deg, #b6a383, #d4c7ac 50%, #c0b093);
}

/* Broad, soft sun, in fewer and wider patches than the opening section's */
.cmp-diptych--louvre.cmp-sunlit .cmp-light i:nth-child(1) {
  background:
    radial-gradient(32% 9% at 42% 44%, rgb(var(--cmp-louvre-sun) / 76%), rgb(var(--cmp-louvre-sun) / 50%) 32%, rgb(var(--cmp-louvre-sun) / 21%) 64%, rgb(var(--cmp-louvre-sun) / 5%) 87%, transparent),
    radial-gradient(22% 6% at 66% 50%, rgb(var(--cmp-louvre-sun) / 52%), rgb(var(--cmp-louvre-sun) / 34%) 32%, rgb(var(--cmp-louvre-sun) / 15%) 64%, rgb(var(--cmp-louvre-sun) / 3%) 87%, transparent),
    radial-gradient(18% 5% at 22% 38%, rgb(var(--cmp-louvre-gold) / 50%), rgb(var(--cmp-louvre-gold) / 33%) 32%, rgb(var(--cmp-louvre-gold) / 14%) 64%, rgb(var(--cmp-louvre-gold) / 3%) 87%, transparent);
  transform: translate3d(-36%, 0%, 0) rotate(-15deg);
}

/* The widest wash, with the olive-gold */
.cmp-diptych--louvre.cmp-sunlit .cmp-light i:nth-child(2) {
  background:
    radial-gradient(44% 20% at 52% 50%, rgb(var(--cmp-louvre-gold) / 50%), rgb(var(--cmp-louvre-gold) / 33%) 32%, rgb(var(--cmp-louvre-gold) / 14%) 64%, rgb(var(--cmp-louvre-gold) / 3%) 87%, transparent),
    radial-gradient(22% 7% at 30% 58%, rgb(var(--cmp-louvre-sun) / 28%), rgb(var(--cmp-louvre-sun) / 18%) 32%, rgb(var(--cmp-louvre-sun) / 8%) 64%, rgb(var(--cmp-louvre-sun) / 2%) 87%, transparent);
  transform: translate3d(46%, 0%, 0) rotate(-12deg);
}

/* A slower, smaller passage */
.cmp-diptych--louvre.cmp-sunlit .cmp-light i:nth-child(3) {
  background:
    radial-gradient(24% 6% at 52% 48%, rgb(var(--cmp-louvre-sun) / 60%), rgb(var(--cmp-louvre-sun) / 40%) 32%, rgb(var(--cmp-louvre-sun) / 17%) 64%, rgb(var(--cmp-louvre-sun) / 4%) 87%, transparent),
    radial-gradient(14% 4% at 30% 42%, rgb(var(--cmp-louvre-gold) / 40%), rgb(var(--cmp-louvre-gold) / 26%) 32%, rgb(var(--cmp-louvre-gold) / 11%) 64%, rgb(var(--cmp-louvre-gold) / 2%) 87%, transparent);
  transform: translate3d(-6%, 6%, 0) rotate(-17deg);
}

@media (max-width: 767.98px) {
  [data-cmp-light].cmp-diptych.cmp-diptych--louvre {
    --cmp-louvre-long: 19s;
    --cmp-louvre-broad: 29s;
    --cmp-louvre-glint: 16s;
  }
}

/* Editorial: heading and copy to the measure of the Black Badge sections */
.cmp-editorial {
  padding-block: var(--cmp-editorial-space);
  background: var(--cmp-off-white);
}

/* Headline over photograph: the same visible space at the boundary, headline and photograph.
   The headline's line box adds about 0.3 of its size below the letters. The sunlight's shade
   is placed from these values too, so it stays with the headline. */
.cmp-editorial--sunlit {
  --cmp-editorial-h1-size: var(--cmp-title-size); /* the same scale as the other editorial headings */
  --cmp-editorial-space: calc(var(--cmp-editorial-gap) + var(--cmp-editorial-h1-size) * 0.3);
}

.cmp-editorial--atmosphere,
.cmp-editorial--bronze {
  background-color: var(--cmp-atmosphere-base);
}

.cmp-editorial__text {
  max-width: var(--cmp-editorial-measure);
  margin-inline: auto;
  text-align: center;
}

.cmp-editorial--h1 .cmp-editorial__text {
  max-width: 64rem;
}

.cmp-editorial h1,
.cmp-editorial h2 {
  margin: 0;
  font-family: var(--cmp-font-display);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cmp-dark-grey);
}

.cmp-editorial h1 {
  font-size: var(--cmp-editorial-h1-size);
  line-height: 1.2;
}

.cmp-editorial h2 {
  font-size: var(--cmp-title-size);
  line-height: 1.2;
}

.cmp-editorial p {
  margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
  font-family: var(--cmp-font-body);
  font-size: 0.9375rem;
  line-height: 2;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--cmp-dark-grey);
}

.cmp-editorial--atmosphere h1,
.cmp-editorial--atmosphere h2,
.cmp-editorial--atmosphere p,
.cmp-editorial--bronze h1,
.cmp-editorial--bronze h2,
.cmp-editorial--bronze p,
.cmp-editorial--sunlit h1,
.cmp-editorial--sunlit h2,
.cmp-editorial--sunlit p {
  color: var(--cmp-white);
}

.cmp-editorial--louvre h1 {
  color: var(--cmp-off-white);
}

/* A Life by the Sea, Section 02 (19 Nov): the headline in warm charcoal, answering the dark silhouette in the
   photograph, on the unchanged champagne light. Only the louvre tone, which only this section uses; Athens, As Home
   (the Aegean tone) keeps its white headline. Its one arrival glint runs through a warm bronze instead of white. */
.cmp-editorial--louvre:not(.cmp-editorial--aegean) h1 {
  color: #343330;
}

.cmp-editorial--louvre:not(.cmp-editorial--aegean) .is-catching-light {
  background-image: linear-gradient(112deg, #343330 36%, #7a6446 50%, #343330 64%);
}

.cmp-editorial__image {
  width: min(66vw, 96rem);
  margin: var(--cmp-editorial-gap) auto 0;
  aspect-ratio: 3 / 2;
  background: var(--cmp-media-placeholder);
}

.cmp-editorial__image img,
.cmp-diptych__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .cmp-editorial__image {
    width: calc(100% - var(--cmp-page-pad) * 2);
  }
}

/* Section 02's portrait photograph, uncropped. Wide screens keep the height of the 3:2 frame,
   so the section keeps its height; narrower ones need the extra height to stay legible. */
.cmp-editorial--louvre .cmp-editorial__image {
  width: 72vw;
  aspect-ratio: 1568 / 2124;
}

@media (min-width: 768px) {
  .cmp-editorial--louvre .cmp-editorial__image {
    width: 44vw;
  }
}

@media (min-width: 992px) {
  .cmp-editorial--louvre .cmp-editorial__image {
    width: calc(min(66vw, 96rem) / 1.5 * 1568 / 2124 * 1.12);
  }
}

/* A heading's fixed line breaks hold wherever they fit; on phones it wraps evenly */
.cmp-editorial h1,
.cmp-editorial h2 {
  text-wrap: balance;
}

@media (min-width: 540px) {
  .cmp-editorial__line {
    display: block;
    white-space: nowrap;
  }
}

/* Full-width media */
.cmp-media__frame {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--cmp-off-black);
}

.cmp-media__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* Keeps the menu icon legible over bright skies */
.cmp-media__frame::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22%;
  background: linear-gradient(180deg, rgb(0 0 0 / 22%), rgb(0 0 0 / 0));
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .cmp-media__frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* Diptych: two images to the page edges, offset, contrasting in shape, on the same sunlit
   stone as the opening. Paler with no headline to protect, neutral throughout but for one
   area of faint green-champagne low on the left, which the reflections pass across. */
[data-cmp-light].cmp-diptych {
  --cmp-sunlit-bronze: 200 195 182;
  background-color: var(--cmp-sunlit-stone);
  background-image: linear-gradient(172deg, var(--cmp-sunlit-stone), var(--cmp-sunlit-lit) 58%, #a7a69f);
}

.cmp-diptych .cmp-light i:nth-child(1) {
  background:
    radial-gradient(58% 44% at 26% 76%, rgb(var(--cmp-sunlit-olive) / 30%), rgb(var(--cmp-sunlit-olive) / 15%) 46%, rgb(var(--cmp-sunlit-olive) / 4%) 78%, transparent),
    radial-gradient(56% 40% at 62% 22%, rgb(var(--cmp-sunlit-champagne) / 12%), rgb(var(--cmp-sunlit-champagne) / 4%) 60%, transparent);
}

.cmp-diptych {
  display: grid;
  grid-template-columns: 46fr 8fr 46fr;
  align-items: start;
  padding-block: var(--cmp-immersive-space);
}

.cmp-diptych__image {
  margin: 0;
  aspect-ratio: 2 / 3;
  background: var(--cmp-media-placeholder);
}

/* Two portraits, unequal on purpose: the larger rides high, the smaller starts well below it
   and finishes just beyond its foot, so neither edge lines up */
.cmp-diptych__image--low {
  grid-column: 1;
  grid-row: 1;
  width: 78%;
  margin-top: 44%;
}

.cmp-diptych__image--high {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 767.98px) {
  .cmp-diptych {
    grid-template-columns: 1fr;
    row-gap: 4rem;
  }

  .cmp-diptych__image--low {
    grid-row: 2;
    grid-column: 1;
    width: 64%;
    margin-top: 0;
  }

  .cmp-diptych__image--high {
    grid-row: 1;
    grid-column: 1;
    width: 82%;
    margin-left: auto;
  }
}

/* A statement that concludes the photographs: part of the same section, so the background and
   light simply carry on. It sits a little closer to the photographs than to the section's end. */
.cmp-diptych:has(.cmp-diptych__statement) {
  padding-bottom: var(--cmp-editorial-space);
}

.cmp-diptych__statement {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: calc(var(--cmp-editorial-space) * 0.82) 0 0;
  padding-inline: var(--cmp-page-pad);
  font-family: var(--cmp-font-display);
  font-size: clamp(1.25rem, 3.3vw, 3.625rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--cmp-dark-grey);
}

.cmp-diptych__statement span {
  display: block;
  text-wrap: balance;
}

.cmp-diptych--aegean .cmp-diptych__statement {
  color: var(--cmp-off-white);
}

@media (max-width: 767.98px) {
  .cmp-diptych__statement {
    grid-row: 3;
    margin-top: calc(var(--cmp-editorial-space) * 0.82 - 4rem - 0.25em); /* less the grid's own gap */
    font-size: clamp(1.25rem, 7vw, 2rem);
  }
}

/* Deep Aegean: the louvre light's shapes and timing, as faint warm light on mineral blue. The
   two portraits come closer in scale and sit inside the page edges, a little off centre. */
[data-cmp-light].cmp-diptych.cmp-diptych--aegean {
  --cmp-louvre-sun: 240 222 184;
  --cmp-louvre-gold: 224 198 146;
  background-color: #243b49;
  background-image:
    radial-gradient(70% 50% at 8% 10%, rgb(22 37 47 / 62%), transparent),
    radial-gradient(60% 40% at 82% 96%, rgb(20 34 44 / 56%), transparent),
    radial-gradient(56% 44% at 48% 42%, rgb(54 80 94 / 26%), transparent);
}

.cmp-diptych--aegean .cmp-light {
  opacity: 0.3;
}

.cmp-diptych--aegean {
  grid-template-columns: 6fr 41fr 5fr 43fr 5fr;
}

.cmp-diptych--aegean .cmp-diptych__image--low {
  grid-column: 2;
  width: auto;
  margin-top: 24%;
}

.cmp-diptych--aegean .cmp-diptych__image--high {
  grid-column: 4;
}

@media (max-width: 767.98px) {
  .cmp-diptych--aegean {
    grid-template-columns: 1fr;
  }

  .cmp-diptych--aegean .cmp-diptych__image--low {
    grid-column: 1;
    width: 72%;
    margin-top: 0;
  }

  .cmp-diptych--aegean .cmp-diptych__image--high {
    grid-column: 1;
    width: 78%;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-cmp-atmosphere]::before,
  .cmp-light i {
    animation: none;
  }
}
