/* MAISON CLASSIQUE — light, symmetrical editorial family for neoclassical residences.
   Tokens come from core.css + the per-project theme (<style id="pdx-theme">).
   Typography: the site's FactorA only — light weights, widely spaced capitals (inscriptions). */

html[data-design="maison-classique"] { --pdx-footer: var(--pdx-ink); background: var(--pdx-footer); } /* below the footer keeps the footer ground */
.mc { background: var(--pdx-bg); overflow-x: clip; --pdx-gutter: clamp(20px, 4.6vw, 80px); }
.mc.js-ready [data-reveal] { transform: translate3d(0, 16px, 0); transition-duration: 1.4s, 1.6s; }

/* ---------- atoms ---------- */
.mc-kicker {
  font: 500 11px/1.4 var(--pdx-font-text);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pdx-accent);
}
.mc-numeral { font: 300 15px/1 var(--pdx-font-text); letter-spacing: .32em; color: var(--pdx-accent); padding-left: .32em; }
.mc-title {
  max-width: 24ch;
  font: 300 clamp(24px, 2.4vw, 40px)/1.28 var(--pdx-font-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--pdx-ink);
}
.mc-ornament { display: inline-flex; align-items: center; gap: 12px; color: var(--pdx-accent); }
.mc-ornament i { width: clamp(36px, 4vw, 64px); height: 1px; background: currentColor; opacity: .6; }
.mc-ornament b { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.mc-head { display: grid; justify-items: center; gap: 16px; text-align: center; }

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--pdx-ink);
  border-radius: 0;
  font: 500 11px/1 var(--pdx-font-text);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .4s, color .4s, border-color .4s;
}
.mc .mc-btn--solid { background: var(--pdx-ink); color: var(--pdx-surface); }
.mc .mc-btn--solid:hover { background: var(--pdx-accent); border-color: var(--pdx-accent); }
.mc .mc-btn--line { background: transparent; color: var(--pdx-ink); }
.mc .mc-btn--line:hover { background: var(--pdx-ink); color: var(--pdx-surface); }
.mc-btn--block { width: 100%; }
.mc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font: 500 11px/1 var(--pdx-font-text);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pdx-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--pdx-accent) 50%, transparent);
}
.mc-link span { color: var(--pdx-accent); transition: transform .4s var(--pdx-ease); }
.mc-link:hover span { transform: translateX(4px); }

/* framed images: ivory mat, outer hairline, inner brass rule */
.mc-plate, .mc-frame {
  position: relative;
  display: block;
  margin: 0;
  padding: clamp(8px, .9vw, 16px);
  background: var(--pdx-surface);
  border: 1px solid var(--pdx-line);
  box-shadow: 0 50px 80px -60px rgba(20, 26, 36, .55);
}
.mc-plate::after, .mc-frame::after {
  content: '';
  position: absolute;
  inset: calc(clamp(8px, .9vw, 16px) - 5px);
  border: 1px solid color-mix(in srgb, var(--pdx-accent) 42%, transparent);
  pointer-events: none;
}

/* ---------- hero: frieze + plate ---------- */
.mc-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.4vh, 28px);
  padding: clamp(92px, 14vh, 150px) var(--pdx-gutter) clamp(56px, 9vh, 110px);
  text-align: center;
}
.mc-logo { position: absolute; top: clamp(22px, 3.6vh, 36px); left: var(--pdx-gutter); width: clamp(104px, 9vw, 140px); }
.mc-logo img { width: 100%; height: auto; filter: brightness(0); opacity: .82; }
.mc-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
.mc-hero__meta li { display: inline-flex; align-items: center; font: 500 11px/1.4 var(--pdx-font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--pdx-muted); }
.mc-hero__meta li + li::before { content: ''; width: 4px; height: 4px; margin: 0 16px; border-radius: 50%; background: var(--pdx-accent); }
.mc-hero__title {
  max-width: 100%;
  padding-left: .26em; /* balances the trailing letter-spacing so the inscription centres */
  font: 300 min(7vw, 120px, calc(88vw / (var(--len, 12) * .92)))/1.02 var(--pdx-font-display);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--pdx-ink);
  overflow-wrap: anywhere;
}
.mc-hero__foot { display: grid; justify-items: center; gap: clamp(20px, 3vh, 30px); max-width: 760px; }
.mc-hero__subtitle { font: 300 clamp(18px, 1.6vw, 24px)/1.5 var(--pdx-font-text); color: var(--pdx-ink); text-wrap: balance; }
.mc-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.mc-hero .mc-plate { width: 100%; max-width: 1560px; margin-top: clamp(14px, 2vh, 26px); }
.mc-plate__img { overflow: hidden; aspect-ratio: 2 / 1; background: var(--pdx-ink); }
.mc-plate__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pdx-hero-focus, 50% 50%); transform: scale(1.08); }
.mc-hero .mc-plate__img { will-change: transform; }

/* ---------- prologue: letter with a drop cap ---------- */
.mc-prologue { display: grid; justify-items: center; gap: 30px; padding: clamp(40px, 8vh, 90px) var(--pdx-gutter) clamp(80px, 12vh, 140px); }
.mc-prologue__text { max-width: 680px; font: 300 clamp(19px, 1.45vw, 22px)/1.75 var(--pdx-font-text); color: var(--pdx-ink); }
.mc-prologue__text p + p { margin-top: 1em; }
.mc-prologue__text p:first-child::first-letter {
  float: left;
  margin: .06em .14em 0 0;
  font: 300 4.4em/.78 var(--pdx-font-text);
  color: var(--pdx-accent);
}

/* ---------- contents plate ---------- */
.mc-contents { display: grid; justify-items: center; gap: 28px; padding: 0 var(--pdx-gutter) clamp(90px, 14vh, 160px); }
.mc-contents__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1180px;
  border-top: 1px solid var(--pdx-line);
}
.mc-contents__list li { flex: 0 1 25%; min-width: 220px; border-bottom: 1px solid var(--pdx-line); }
.mc-contents__list a {
  display: grid;
  justify-items: center;
  gap: 8px;
  height: 100%;
  padding: 26px 18px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--pdx-ink);
  transition: background-color .4s;
}
.mc-contents__list a:hover { background: var(--pdx-surface); }
.mc-contents__no { font: 300 13px/1 var(--pdx-font-text); letter-spacing: .3em; color: var(--pdx-accent); }
.mc-contents__label { font: 500 12px/1.4 var(--pdx-font-text); letter-spacing: .2em; text-transform: uppercase; }
.mc-contents__title { font-size: 11px; line-height: 1.5; letter-spacing: .06em; color: var(--pdx-muted); max-width: 30ch; }

/* ---------- colonnade (features) ---------- */
.mc-colonnade { padding: clamp(40px, 6vh, 80px) var(--pdx-gutter) clamp(100px, 15vh, 180px); }
.mc-columns {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  max-width: 1240px;
  margin: clamp(44px, 7vh, 80px) auto 0;
}
.mc-column { position: relative; display: grid; justify-items: center; align-content: start; gap: 22px; padding: 6px clamp(14px, 2vw, 34px) 0; text-align: center; }
.mc-column + .mc-column::before { /* pilaster: a double hairline between columns */
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 5px;
  border-left: 1px solid var(--pdx-line);
  border-right: 1px solid var(--pdx-line);
}
.mc-cameo {
  display: grid;
  place-items: center;
  width: clamp(118px, 11vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #2e3949 0%, #141a23 72%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pdx-accent) 55%, transparent), 0 0 0 8px var(--pdx-surface), 0 0 0 9px var(--pdx-line), 0 30px 50px -30px rgba(20, 26, 36, .6);
}
.mc-cameo img { width: 82%; height: auto; transition: transform 1.2s var(--pdx-ease); }
.mc-column:hover .mc-cameo img { transform: scale(1.06); }
.mc-column__title { max-width: 19ch; font: 500 12px/1.6 var(--pdx-font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--pdx-ink); }
.mc-column__text { max-width: 26ch; font-size: 14px; line-height: 1.6; color: var(--pdx-muted); }

/* ---------- chapters (salon) ---------- */
.mc-chapter { padding: clamp(90px, 14vh, 170px) var(--pdx-gutter); }
.mc-chapter + .mc-chapter { padding-top: clamp(40px, 6vh, 80px); }
.mc-chapter__body { color: var(--pdx-muted); font-size: 17px; line-height: 1.75; }
.mc-chapter__body p + p { margin-top: .9em; }
button.mc-frame {
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .8s var(--pdx-ease), box-shadow .9s var(--pdx-ease);
}
button.mc-frame:hover { --lift: -6px; box-shadow: 0 60px 90px -60px rgba(20, 26, 36, .7); }
button.mc-frame.is-tilting { transition: transform .15s linear, box-shadow .9s var(--pdx-ease); }
.mc-frame img { width: 100%; height: 100%; object-fit: cover; }

/* arcade: portrait frames in a row, tallest at the centre */
.mc-arcade {
  --gap: clamp(12px, 1.8vw, 30px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--gap);
  max-width: 1440px;
  margin: clamp(44px, 7vh, 80px) auto clamp(40px, 6vh, 70px);
}
.mc-arcade .mc-frame {
  flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) * var(--rise, 1));
  max-width: calc(44vh * var(--rise, 1));
  aspect-ratio: 2 / 3;
}
.mc-chapter--arcade .mc-chapter__body { max-width: 980px; margin: 0 auto; columns: 2 340px; column-gap: 56px; }

/* folio: a text page beside a hang led by the landscape plate */
.mc-folio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; max-width: 1440px; margin: 0 auto; }
.mc-folio__text { grid-column: 1 / span 5; position: sticky; top: 14vh; display: grid; gap: 30px; }
.mc-folio__text .mc-head { justify-items: start; text-align: left; }
.mc-folio__hang { grid-column: 7 / span 6; display: grid; gap: clamp(16px, 1.8vw, 28px); }
.mc-frame--lead { aspect-ratio: 3 / 2; }
.mc-folio__row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.mc-folio__row .mc-frame { aspect-ratio: 2 / 3; }

/* inscription: a chapter without images */
.mc-chapter--inscription { display: grid; justify-items: center; gap: clamp(32px, 5vh, 56px); }
.mc-chapter--inscription .mc-title { max-width: 22ch; font-size: clamp(28px, 3vw, 52px); }
.mc-chapter--inscription .mc-chapter__body { max-width: 720px; font-size: 18px; }

/* ---------- location: clock dials + engraved plate ---------- */
.mc-location { display: grid; justify-items: center; gap: clamp(36px, 6vh, 64px); padding: clamp(90px, 14vh, 170px) var(--pdx-gutter); }
.mc-location .mc-title { font-size: clamp(30px, 3.6vw, 60px); letter-spacing: .2em; padding-left: .2em; }
.mc-dials { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 5vw, 96px); }
.mc-dial { display: grid; justify-items: center; gap: 18px; width: clamp(150px, 14vw, 210px); text-align: center; }
.mc-dial__face, .mc-dial__value { grid-area: 1 / 1; }
.mc-dial__face { width: 100%; height: auto; overflow: visible; }
.mc-dial__ring { fill: var(--pdx-surface); stroke: var(--pdx-line); stroke-width: 1; }
.mc-dial__ticks line { stroke: color-mix(in srgb, var(--pdx-ink) 40%, transparent); stroke-width: 1; }
.mc-dial__arc {
  fill: none;
  stroke: var(--pdx-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--off);
}
.pdx.js-ready .mc-dial__arc { stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.8s var(--pdx-ease); transition-delay: calc(.3s + var(--d, 0) * .2s); }
.pdx.js-ready .mc-dials.is-in .mc-dial__arc { stroke-dashoffset: var(--off); }
.mc-dial__value { place-self: center; font: 300 clamp(44px, 4.2vw, 64px)/1 var(--pdx-font-text); letter-spacing: -.01em; color: var(--pdx-ink); }
.mc-dial--clock .mc-dial__value { margin-top: 4px; }
.mc-dial__label { max-width: 18ch; font: 500 11px/1.5 var(--pdx-font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--pdx-muted); }
.mc .mc-plate--map { width: 100%; max-width: 1240px; height: clamp(380px, 60vh, 640px); }
.mc-map__canvas { width: 100%; height: 100%; }
.mc-map__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 26px;
  margin-top: calc(clamp(36px, 6vh, 64px) * -.4);
  font: 500 11px/1.4 var(--pdx-font-text);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pdx-muted);
}
.mc-map__caption span + span { color: var(--pdx-accent); }

/* ---------- contact: invitation card ---------- */
.mc-contact { display: grid; justify-items: center; padding: clamp(60px, 10vh, 120px) var(--pdx-gutter) clamp(110px, 16vh, 190px); }
.mc-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(720px, 100%);
  padding: clamp(40px, 5vw, 76px) clamp(22px, 5vw, 84px);
  background: var(--pdx-surface);
  border: 1px solid var(--pdx-line);
  box-shadow: 0 60px 100px -70px rgba(20, 26, 36, .6);
  text-align: center;
}
.mc-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--pdx-accent) 40%, transparent); pointer-events: none; }
.mc-card__text { color: var(--pdx-muted); font-size: 17px; }
.mc-card__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 6px; }
.mc .pd-form-box.mc-form {
  display: block; /* projects-detail.css hides .pd-form-box under 768px */
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--pdx-ink);
  text-align: left;
  backdrop-filter: none;
}
.mc .mc-form form { display: grid; gap: 24px; }
.mc .mc-form .mc-field { display: grid; gap: 6px; margin: 0; }
.mc .mc-form .mc-field__label { font: 500 10px/1 var(--pdx-font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--pdx-accent); }
.mc .mc-form .mc-field__row { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--pdx-line); transition: border-color .3s; }
.mc .mc-form input {
  width: 100%;
  margin: 0;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--pdx-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pdx-ink);
  font: 300 clamp(18px, 1.4vw, 21px)/1.2 var(--pdx-font-text);
  transition: border-color .3s;
}
.mc .mc-form .mc-field__row input { border-bottom: 0; }
.mc .mc-form input::placeholder { color: color-mix(in srgb, var(--pdx-ink) 38%, transparent); }
.mc .mc-form input:focus { outline: none; border-bottom-color: var(--pdx-accent); }
.mc .mc-form .mc-field__row:focus-within { border-bottom-color: var(--pdx-accent); }
.mc .mc-form .pd-phone-prefix { position: static; padding: 0; margin: 0; color: var(--pdx-accent); font: 300 clamp(18px, 1.4vw, 21px)/1.2 var(--pdx-font-text); transform: none; }
.mc .mc-form button[type="submit"] { margin-top: 6px; min-height: 58px; border-radius: 0; }
.mc .mc-form .mc-form__consent { margin: 0; color: var(--pdx-muted); font-size: 12px; line-height: 1.5; text-align: center; }
/* projects-form.js replaces the form with a white "thank you" message: keep it readable on ivory */
.mc .mc-form .pd-form-success h3, .mc .mc-form .pd-form-success p { color: var(--pdx-ink) !important; }

/* ---------- mobile dock ---------- */
.mc-dock { display: none; }

/* ---------- tablet & phone ---------- */
@media (max-width: 899px) {
  .pdx.mc { font-size: 16px; }
  .mc-hero { padding-top: clamp(84px, 12vh, 120px); }
  .mc-hero__title { font-size: min(10vw, calc(90vw / (var(--len, 12) * .92))); letter-spacing: .2em; padding-left: .2em; }
  .mc-plate__img { aspect-ratio: 4 / 5; }
  .mc-hero .mc-plate { margin-left: calc(var(--pdx-gutter) * -.5); margin-right: calc(var(--pdx-gutter) * -.5); width: calc(100% + var(--pdx-gutter)); }
  .mc-contents__list li { flex-basis: 50%; min-width: 0; }
  .mc-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .mc-column:nth-child(odd)::before { display: none; }
  .mc-arcade {
    justify-content: flex-start;
    align-items: flex-end;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: calc(var(--pdx-gutter) * -1);
    margin-right: calc(var(--pdx-gutter) * -1);
    padding: 10px var(--pdx-gutter) 30px;
  }
  .mc-arcade::-webkit-scrollbar { display: none; }
  .mc-arcade .mc-frame { flex: 0 0 calc(64% * var(--rise, 1)); max-width: none; scroll-snap-align: center; }
  .mc-chapter--arcade .mc-chapter__body { columns: 1; }
  .mc-folio { display: flex; flex-direction: column; gap: 40px; }
  .mc-folio__text { position: static; }
  .mc-folio__text .mc-head { justify-items: center; text-align: center; }
  .mc-dials { width: 100%; flex-wrap: nowrap; gap: 12px; }
  .mc-dial { width: calc((100% - 24px) / 3); min-width: 0; gap: 12px; }
  .mc-dial__value { font-size: clamp(30px, 9vw, 44px); }
  .mc-dial__label { font-size: 9px; letter-spacing: .12em; }
  .mc .mc-plate--map { height: clamp(340px, 58svh, 520px); }
  .mc-contact { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .mc-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: color-mix(in srgb, var(--pdx-surface) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--pdx-line);
    box-shadow: 0 20px 40px -20px rgba(20, 26, 36, .5);
    transform: translateY(calc(100% + 24px));
    transition: transform .55s var(--pdx-ease);
  }
  .mc-dock.is-visible { transform: none; }
  .mc-dock .mc-btn { min-height: 46px; padding: 0 10px; letter-spacing: .16em; }
}
@media (max-width: 559px) {
  .mc-hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .mc-hero__actions .mc-btn { width: 100%; }
  .mc-hero__actions .mc-link { align-self: center; }
  .mc-contents__list li { flex-basis: 100%; }
  .mc-contents__list a { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; padding: 18px 6px; }
  .mc-contents__title { grid-column: 2; }
  .mc-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .mc-column { gap: 16px; padding: 4px 8px 0; }
  .mc-medallion { width: 108px; }
  .mc-column__title { font-size: 11px; letter-spacing: .12em; }
}

/* ---------- motion preferences ---------- */
.mc[data-motion="none"] *, .mc[data-motion="none"] *::before, .mc[data-motion="none"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mc-plate__img img { transform: none; }
}

/* location continuing the chapter of the same name: tighter join, no second numeral */
.mc-chapter--inscription + .mc-location--continued,
.mc-chapter + .mc-location--continued { padding-top: clamp(20px, 4vh, 48px); }

/* =====================================================================
   Interactions & choreography. All of it is switched off by reduced motion
   and data-motion="none"; pointer effects only exist on hover-capable devices.
   ===================================================================== */

/* ---------- hero: engraved letters, drawn crown & ornament, curtain plate ---------- */
.mc-word { display: inline-block; white-space: nowrap; }
.mc-ch { display: inline-block; }
.pdx.js-ready .mc-ch { opacity: 0; transform: translateY(.35em); filter: blur(6px); animation: mc-engrave 1.1s var(--pdx-ease) forwards; animation-delay: calc(.25s + var(--i) * 45ms); }
@keyframes mc-engrave { to { opacity: 1; transform: none; filter: blur(0); } }
.pdx.js-ready .mc-hero__title::before { animation: mc-unveil-x 1.4s var(--pdx-ease) .05s both; }
.pdx.js-ready .mc-hero__meta { animation: mc-fade 1.2s var(--pdx-ease) .15s both; }
.pdx.js-ready .mc-hero > .mc-ornament i { animation: mc-grow-x 1.2s var(--pdx-ease) .9s both; }
.pdx.js-ready .mc-hero > .mc-ornament b { animation: mc-pop .8s var(--pdx-ease) 1.2s both; }
.pdx.js-ready .mc-hero__foot { animation: mc-rise 1.2s var(--pdx-ease) 1s both; }
.pdx.js-ready .mc-plate--hero { animation: mc-curtain 1.8s var(--pdx-ease) 1.2s both; }
@keyframes mc-unveil-x { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(-4px); } }
@keyframes mc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mc-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mc-pop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes mc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mc-curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-80px); } }
.mc-ornament i:first-child { transform-origin: right; }
.mc-ornament i:last-child { transform-origin: left; }

/* the plate "unframes" while scrolling in and leans toward the pointer */
.mc-plate--hero {
  transform: perspective(1800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(calc(.9 + .1 * var(--unframe, 1)));
  transform-origin: 50% 0;
  transition: transform .6s var(--pdx-ease);
}
.mc-plate--hero.is-tilting { transition: transform .2s linear; }

/* ---------- section titles: words rise from behind a line; ornaments draw ---------- */
.mc-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.mc-w > span { display: inline-block; }
.pdx.js-ready .mc-head .mc-w > span { transform: translateY(110%); transition: transform 1.1s var(--pdx-ease); transition-delay: calc(.15s + var(--i) * 70ms); }
.pdx.js-ready .mc-head.is-in .mc-w > span { transform: none; }
.pdx.js-ready .mc-head .mc-ornament i { transform: scaleX(0); transition: transform 1.2s var(--pdx-ease) .5s; }
.pdx.js-ready .mc-head.is-in .mc-ornament i { transform: scaleX(1); }
.pdx.js-ready .mc-head .mc-ornament b { scale: 0; transition: scale .7s var(--pdx-ease) .8s; }
.pdx.js-ready .mc-head.is-in .mc-ornament b { scale: 1; }

/* ---------- colonnade: drawn icons in medallions between an architrave and a base ---------- */
.mc-order { position: relative; max-width: 1240px; margin: clamp(44px, 7vh, 80px) auto 0; padding: clamp(36px, 5vh, 56px) 0; }
.mc-order::before, .mc-order::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-top: 1px solid var(--pdx-line);
  border-bottom: 1px solid var(--pdx-line);
}
.mc-order::before { top: 0; }
.mc-order::after { bottom: 0; }
.mc-order .mc-columns { margin: 0; max-width: none; }
.pdx.js-ready .mc-order::before, .pdx.js-ready .mc-order::after { transform: scaleX(0); transition: transform 1.6s var(--pdx-ease); }
.pdx.js-ready .mc-order.is-in::before, .pdx.js-ready .mc-order.is-in::after { transform: scaleX(1); }
.pdx.js-ready .mc-order .mc-column { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--pdx-ease), transform 1.1s var(--pdx-ease); transition-delay: calc(.35s + var(--d) * .14s); }
.pdx.js-ready .mc-order.is-in .mc-column { opacity: 1; transform: none; }

.mc-medallion {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(118px, 10.5vw, 158px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pdx-surface);
  color: var(--pdx-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pdx-accent) 45%, transparent), 0 26px 44px -30px rgba(20, 26, 36, .55);
  transition: transform .8s var(--pdx-ease), box-shadow .8s var(--pdx-ease), background-color .6s;
}
.mc-bezel { position: absolute; inset: -11px; width: calc(100% + 22px); height: calc(100% + 22px); animation: mc-spin 36s linear infinite; animation-play-state: paused; }
.mc-bezel circle { fill: none; stroke: var(--pdx-accent); stroke-width: .9; stroke-dasharray: 1.2 4.4; opacity: .6; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-column:hover .mc-medallion { transform: translateY(-8px); background: #fff; box-shadow: 0 0 0 1px var(--pdx-accent), 0 40px 60px -34px rgba(20, 26, 36, .6); }
.mc-column:hover .mc-bezel { animation-play-state: running; }
.mc-icon { width: 62%; height: auto; overflow: visible; }
.mc-icon .ic-roof, .mc-icon .ic-finial, .mc-icon .ic-pin, .mc-icon .ic-p, .mc-icon .ic-arrow, .mc-icon .ic-lens,
.mc-icon .ic-crown, .mc-icon .ic-awning, .mc-icon .ic-leaf, .mc-icon .ic-petals, .mc-icon .ic-car, .mc-icon .ic-terrace { stroke: var(--pdx-accent); }
.mc-icon .ic-nodraw { stroke-dasharray: .03 .035; opacity: .55; } /* path units: strokes use pathLength="1" */
.mc-icon .ic-spot { fill: var(--pdx-accent); stroke: none; }
.mc-icon .ic-win { fill: transparent; transition: fill .35s; transition-delay: calc(var(--i) * 70ms); }

/* drawn on when the colonnade arrives */
.pdx.js-ready .mc-order .mc-icon :not(.ic-nodraw):not(g) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s var(--pdx-ease), fill .35s; transition-delay: calc(.6s + var(--d) * .16s), calc(var(--i, 0) * 70ms); }
.pdx.js-ready .mc-order.is-in .mc-icon :not(.ic-nodraw):not(g) { stroke-dashoffset: 0; }

/* each icon has its own small gesture on hover */
.mc-icon [class^="ic-"] { transform-box: fill-box; transform-origin: 50% 50%; }
.mc-column:hover .ic-col { animation: mc-col-rise .9s var(--pdx-ease) calc(var(--i) * 90ms); }
@keyframes mc-col-rise { 50% { transform: translateY(-3px); } }
.mc-column:hover .ic-finial { fill: var(--pdx-accent); }
/* location: the pin lifts, taps the ground and a ripple runs out from the spot */
.mc-icon .ic-pin { transform-origin: 50% 100%; }
.mc-column:hover .ic-pin { animation: mc-drop 1.15s var(--pdx-ease); }
@keyframes mc-drop { 30% { transform: translateY(-6px); } 55% { transform: translateY(3px) scale(1.07, .9); } 72% { transform: translateY(-1.5px); } }
.mc-column:hover .ic-ground { animation: mc-ground 1.15s var(--pdx-ease); }
@keyframes mc-ground { 0%, 46% { transform: none; } 60% { transform: scale(1.12, 1.08); } }
.mc-icon .ic-ripple { opacity: 0; }
.mc-column:hover .ic-ripple { animation: mc-ripple 1.15s ease-out; }
@keyframes mc-ripple { 0%, 52% { opacity: 0; transform: none; } 62% { opacity: .85; } 100% { opacity: 0; transform: scale(1.8, 1.5); } }
.mc-column:hover .ic-win { fill: var(--pdx-accent); }
.mc-icon .ic-tree, .mc-icon .ic-crown { transform-origin: 50% 100%; }
.mc-column:hover .ic-tree, .mc-column:hover .ic-crown { animation: mc-sway 1.6s ease-in-out; }
@keyframes mc-sway { 25% { transform: rotate(-5deg); } 75% { transform: rotate(4deg); } }
.mc-column:hover .ic-car { animation: mc-drive 1.6s var(--pdx-ease); }
@keyframes mc-drive { 0% { transform: none; } 35% { transform: translateX(-30px); opacity: 0; } 36% { transform: translateX(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mc-icon .ic-door-l, .mc-icon .ic-door-r { transition: transform .9s var(--pdx-ease); }
.mc-column:hover .ic-door-l { transform: translateX(-5px); }
.mc-column:hover .ic-door-r { transform: translateX(5px); }
.mc-column:hover .ic-arrow { animation: mc-bob 1.2s ease-in-out infinite; }
@keyframes mc-bob { 50% { transform: translateY(-3px); } }
.mc-column:hover .ic-lens { animation: mc-scan 1.8s ease-in-out; }
@keyframes mc-scan { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mc-icon .ic-leaf { transform-box: view-box; transform-origin: var(--o); transition: transform .9s var(--pdx-ease); }
.mc-column:hover .ic-leaf { transform: rotate(-28deg); }
.mc-icon .ic-petals { transform-box: view-box; transform-origin: 32px 32px; transition: transform 1.2s var(--pdx-ease); }
.mc-column:hover .ic-petals { transform: rotate(45deg); }
.mc-column__title { transition: color .4s; }
.mc-column:hover .mc-column__title { color: var(--pdx-accent); }

/* ---------- salon frames: rise into place, lean toward the pointer, catch the light ---------- */
/* the reveal is driven by the (never clipped) container: a fully clipped element can report
   zero visible area to IntersectionObserver and would never be revealed */
.pdx.js-ready .mc-arcade .mc-frame, .pdx.js-ready .mc-folio__hang .mc-frame, .pdx.js-ready .mc-enfilade .mc-frame {
  clip-path: inset(100% -80px -80px -80px);
  transition: clip-path 1.4s var(--pdx-ease), transform .8s var(--pdx-ease), box-shadow .9s var(--pdx-ease);
  transition-delay: calc(.1s + var(--d) * .13s), 0s, 0s;
}
.pdx.js-ready .mc-arcade.is-in .mc-frame, .pdx.js-ready .mc-folio__hang.is-in .mc-frame, .pdx.js-ready .mc-enfilade.is-in .mc-frame { clip-path: inset(-80px); }
.pdx.js-ready .mc-arcade .mc-frame.is-tilting, .pdx.js-ready .mc-folio__hang .mc-frame.is-tilting, .pdx.js-ready .mc-enfilade .mc-frame.is-tilting {
  transition: clip-path 1.4s var(--pdx-ease), transform .15s linear, box-shadow .9s var(--pdx-ease);
  transition-delay: 0s;
}
.mc-frame__sheen {
  position: absolute;
  inset: clamp(8px, .9vw, 16px);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.mc-frame.is-tilting .mc-frame__sheen { opacity: 1; }

/* ---------- contents: hover, floating preview, chapter indicator ---------- */
.mc-contents__list a { position: relative; }
.mc-contents__list a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 1px;
  background: var(--pdx-accent);
  transition: left .5s var(--pdx-ease), right .5s var(--pdx-ease);
}
.mc-contents__list a:hover::after, .mc-contents__list a[aria-current="true"]::after { left: 18%; right: 18%; }
.mc-contents__no { transition: letter-spacing .5s var(--pdx-ease); }
.mc-contents__list a:hover .mc-contents__no { letter-spacing: .5em; }
.mc-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10030;
  width: 210px;
  aspect-ratio: 4 / 5;
  margin: -150px 0 0 28px;
  padding: 8px;
  background: var(--pdx-surface);
  border: 1px solid var(--pdx-line);
  box-shadow: 0 40px 70px -40px rgba(20, 26, 36, .6);
  pointer-events: none;
  opacity: 0;
  scale: .82;
  transition: opacity .3s, scale .45s var(--pdx-ease);
}
.mc-preview.is-on { opacity: 1; scale: 1; }
.mc-preview img { width: 100%; height: 100%; object-fit: cover; }

.mc-indicator {
  position: fixed;
  left: var(--pdx-gutter);
  bottom: 26px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(360px, 40vw);
  padding: 12px 18px 12px 14px;
  background: color-mix(in srgb, var(--pdx-surface) 94%, transparent);
  border: 1px solid var(--pdx-line);
  box-shadow: 0 24px 40px -28px rgba(20, 26, 36, .45);
  color: var(--pdx-ink);
  text-decoration: none;
  font: 500 10px/1.3 var(--pdx-font-text);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  translate: 0 18px;
  pointer-events: none;
  transition: opacity .5s, translate .6s var(--pdx-ease), border-color .4s;
}
.mc-indicator.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.mc-indicator:hover { border-color: var(--pdx-accent); }
.mc-indicator__no { min-width: 2.6em; padding-right: 12px; border-right: 1px solid var(--pdx-line); color: var(--pdx-accent); font-weight: 300; font-size: 12px; letter-spacing: .24em; }
.mc-indicator__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-indicator.is-swap .mc-indicator__label, .mc-indicator.is-swap .mc-indicator__no { animation: mc-swap .6s var(--pdx-ease); }
@keyframes mc-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- dials: hands sweep to the minute, faces lift on hover ---------- */
/* a short pointer on the rim (keeps the digits clear), rotating around the dial centre */
.mc-dial__hand { transform-box: view-box; transform-origin: 60px 60px; transform: rotate(var(--deg)); }
.mc-dial__hand line { stroke: var(--pdx-ink); stroke-width: 1.6; stroke-linecap: round; }
.mc-dial__hand circle { fill: var(--pdx-accent); }
.pdx.js-ready .mc-dial__hand { transform: rotate(0deg); transition: transform 2s var(--pdx-ease); transition-delay: calc(.3s + var(--d, 0) * .2s); }
.pdx.js-ready .mc-dials.is-in .mc-dial__hand { transform: rotate(var(--deg)); }
.mc-dial__face { transition: transform .8s var(--pdx-ease), filter .8s; }
.mc-dial:hover .mc-dial__face { transform: scale(1.05); filter: drop-shadow(0 18px 24px rgba(20, 26, 36, .18)); }
.mc-dial__value { font-variant-numeric: tabular-nums; }

/* ---------- contact: the card unfolds, its inner rule draws, fields underline from the centre ---------- */
.pdx.js-ready .mc-card[data-reveal] { opacity: 0; transform: perspective(1400px) rotateX(12deg) translateY(40px); transform-origin: 50% 0; transition: opacity 1.2s var(--pdx-ease), transform 1.4s var(--pdx-ease); }
.pdx.js-ready .mc-card[data-reveal].is-in { opacity: 1; transform: none; }
.pdx.js-ready .mc-card::before { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--pdx-ease) .7s; }
.pdx.js-ready .mc-card.is-in::before { clip-path: inset(0); }
.mc .mc-form input { background-image: linear-gradient(var(--pdx-accent), var(--pdx-accent)); background-repeat: no-repeat; background-position: 50% 100%; background-size: 0% 1px; transition: border-color .3s, background-size .6s var(--pdx-ease); }
.mc .mc-form input:focus { background-size: 100% 1px; }
.mc .mc-form .mc-field__row input:focus { background-size: 0 1px; }

@media (max-width: 899px) {
  .mc-indicator { display: none; }
  .mc-plate--hero { transform: none; }
  .pdx.js-ready .mc-arcade .mc-frame { clip-path: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-plate--hero, button.mc-frame { transform: none !important; }
  .mc-bezel { animation: none; }
}

/* =====================================================================
   Composition variants (profiles pick them; Havas Premium uses the defaults above)
   ===================================================================== */

/* ---------- hero: arch — a text page beside a plate with an arched top ---------- */
.mc-hero--arch {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  column-gap: clamp(32px, 5vw, 110px);
  min-height: 100svh;
  padding-top: clamp(100px, 15vh, 160px);
  text-align: left;
}
.mc-hero__copy { display: grid; justify-items: start; align-content: center; gap: clamp(18px, 2.6vh, 30px); }
.mc-hero--arch .mc-hero__meta { justify-content: flex-start; }
.mc-hero--arch .mc-hero__title { padding-left: 0; font-size: min(5.6vw, 100px, calc(42vw / (var(--len, 12) * .92))); line-height: 1.08; }
.mc-hero--arch .mc-hero__foot { justify-items: start; }
.mc-hero--arch .mc-hero__actions { justify-content: flex-start; }
.mc-hero--arch .mc-plate,
.mc-hero--portal .mc-plate { margin: 0; max-width: none; border-radius: 999px 999px 0 0; padding: clamp(10px, 1vw, 18px); }
.mc-hero--arch .mc-plate::after,
.mc-hero--portal .mc-plate::after { border-radius: 999px 999px 0 0; }
.mc-hero--arch .mc-plate__img { aspect-ratio: 4 / 5; max-height: 80svh; border-radius: 999px 999px 0 0; }

/* ---------- hero: portal — the inscription over a tall arched window, text on both sides ---------- */
.mc-hero--portal {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(30vw, 440px)) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 80px);
  align-items: center;
}
.mc-hero--portal > .mc-hero__meta,
.mc-hero--portal > .mc-hero__title,
.mc-hero--portal > .mc-ornament { grid-column: 1 / -1; }
.mc-hero--portal .mc-hero__foot { display: contents; }
.mc-hero--portal .mc-hero__subtitle { grid-column: 1; grid-row: 4; justify-self: end; max-width: 26ch; padding-bottom: 12px; text-align: right; }
.mc-hero--portal .mc-plate { grid-column: 2; grid-row: 4; width: 100%; }
.mc-hero--portal .mc-plate__img { aspect-ratio: 3 / 4; max-height: 52svh; border-radius: 999px 999px 0 0; }
.mc-hero--portal .mc-hero__title { font-size: min(5.4vw, 92px, calc(88vw / (var(--len, 12) * .92))); }
.mc-hero--portal { gap: clamp(12px, 1.8vh, 22px); padding-top: clamp(80px, 11vh, 120px); }
.mc-hero--portal .mc-hero__actions { grid-column: 3; grid-row: 4; flex-direction: column; align-items: flex-start; justify-self: start; padding-bottom: 12px; }
.pdx.js-ready .mc-hero--portal .mc-hero__subtitle,
.pdx.js-ready .mc-hero--portal .mc-hero__actions { animation: mc-rise 1.2s var(--pdx-ease) 1.5s both; }

/* ---------- hero: pilasters — the render seen between piers that open one by one ---------- */
.mc-hero--pilasters .mc-plate__img { aspect-ratio: 21 / 9; }
.mc-slices {
  --g: clamp(8px, 1.1vw, 18px);
  position: absolute;
  inset: clamp(8px, .9vw, 16px);
  z-index: 1;
  display: flex;
  gap: var(--g);
  pointer-events: none;
}
.mc-slices i { position: relative; flex: 1 1 0; }
.mc-slices i + i::after { content: ''; position: absolute; top: -1px; bottom: -1px; right: 100%; width: var(--g); background: var(--pdx-surface); }
.mc-slices i::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pdx-surface);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.pdx.js-ready .mc-slices i::before { animation: mc-pier-open 1.4s var(--pdx-ease) both; animation-delay: calc(1.25s + var(--k, 0) * .14s); }
.mc-slices i:nth-child(1) { --k: 2; }
.mc-slices i:nth-child(2) { --k: 1; }
.mc-slices i:nth-child(3) { --k: 0; }
.mc-slices i:nth-child(4) { --k: 1; }
.mc-slices i:nth-child(5) { --k: 2; }
@keyframes mc-pier-open { from { transform: scaleY(1); } to { transform: scaleY(0); } }
.pdx.js-ready .mc-hero--pilasters .mc-plate--hero { animation: mc-fade 1s var(--pdx-ease) 1.1s both; }

/* ---------- hero: bay — a three-pane bay window ---------- */
.mc-bay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 22px);
  width: 100%;
  max-width: 1500px;
  margin: clamp(14px, 2vh, 26px) 0 0;
  perspective: 1800px;
  transform: perspective(2200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--pdx-ease);
}
.mc-bay__pane {
  position: relative;
  height: clamp(340px, 58svh, 680px);
  padding: clamp(6px, .7vw, 12px);
  background: var(--pdx-surface);
  border: 1px solid var(--pdx-line);
  box-shadow: 0 50px 80px -60px rgba(20, 26, 36, .55);
  overflow: hidden;
}
.mc-bay__pane img { width: 100%; height: 100%; object-fit: cover; }
.mc-bay__pane--c img { object-position: var(--pdx-hero-focus, 50% 50%); }
.mc-bay__pane--l { transform-origin: 100% 50%; transform: rotateY(24deg); }
.mc-bay__pane--r { transform-origin: 0 50%; transform: rotateY(-24deg); }
.mc-bay__pane--l img { object-position: 8% 50%; filter: saturate(.85) brightness(.86); }
.mc-bay__pane--r img { object-position: 92% 50%; filter: saturate(.85) brightness(.86); }
.pdx.js-ready .mc-bay__pane--c { animation: mc-curtain 1.6s var(--pdx-ease) 1.15s both; }
.pdx.js-ready .mc-bay__pane--l { animation: mc-bay-l 1.8s var(--pdx-ease) 1.5s both; }
.pdx.js-ready .mc-bay__pane--r { animation: mc-bay-r 1.8s var(--pdx-ease) 1.5s both; }
@keyframes mc-bay-l { from { opacity: 0; transform: rotateY(80deg); } to { opacity: 1; transform: rotateY(24deg); } }
@keyframes mc-bay-r { from { opacity: 0; transform: rotateY(-80deg); } to { opacity: 1; transform: rotateY(-24deg); } }

/* ---------- hero: cartouche — the name engraved on a cartouche under a wide plate ---------- */
.mc-hero--cartouche .mc-plate { margin-top: 0; }
.mc-hero--cartouche .mc-plate__img { aspect-ratio: 2.3 / 1; }
.mc-cartouche {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: min(94%, 1120px);
  margin-top: calc(-1 * clamp(56px, 8vw, 128px));
  padding: clamp(22px, 3vw, 42px) clamp(26px, 5vw, 84px);
  background: var(--pdx-surface);
  border: 1px solid var(--pdx-line);
  box-shadow: 0 0 0 6px var(--pdx-surface), 0 0 0 7px color-mix(in srgb, var(--pdx-accent) 50%, transparent), 0 50px 80px -50px rgba(20, 26, 36, .5);
}
.mc-hero--cartouche .mc-hero__title { font-size: min(5.2vw, 90px, calc(78vw / (var(--len, 12) * .92))); }
.pdx.js-ready .mc-cartouche { animation: mc-rise 1.2s var(--pdx-ease) 1.6s both; }

/* ---------- features: tablets — stone tablets with an arched niche ---------- */
.mc-tablets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); max-width: 1180px; margin: clamp(44px, 7vh, 80px) auto 0; }
.mc-tablet {
  position: relative;
  display: grid;
  grid-template-columns: clamp(86px, 8vw, 124px) minmax(0, 1fr);
  grid-auto-rows: min-content;
  column-gap: clamp(20px, 2.4vw, 38px);
  align-content: start;
  padding: clamp(24px, 3vw, 44px);
  background: var(--pdx-surface);
  border: 1px solid var(--pdx-line);
  box-shadow: inset 0 0 0 6px var(--pdx-surface), inset 0 0 0 7px color-mix(in srgb, var(--pdx-accent) 30%, transparent);
  transition: transform .8s var(--pdx-ease), box-shadow .8s var(--pdx-ease);
}
.mc-tablet__niche { grid-row: 1 / span 3; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; background: var(--pdx-bg); border: 1px solid color-mix(in srgb, var(--pdx-accent) 40%, transparent); color: var(--pdx-ink); }
.mc-tablet__niche .pdx-icon { width: 68%; height: auto; stroke-width: 1.3; }
.mc-tablet__no { align-self: end; font: 300 13px/1 var(--pdx-font-text); letter-spacing: .32em; color: var(--pdx-accent); }
.mc-tablet__title { margin-top: 12px; font: 500 13px/1.55 var(--pdx-font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--pdx-ink); }
.mc-tablet__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--pdx-muted); }
.pdx.js-ready .mc-tablet { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--pdx-ease), transform 1.1s var(--pdx-ease), box-shadow .8s; transition-delay: calc(var(--d) * .12s), calc(var(--d) * .12s), 0s; }
.pdx.js-ready .mc-tablets.is-in .mc-tablet { opacity: 1; transform: none; }
.mc-tablets .mc-tablet:hover,
.pdx.js-ready .mc-tablets.is-in .mc-tablet:hover { transform: translateY(-6px); transition-delay: 0s; box-shadow: inset 0 0 0 6px var(--pdx-surface), inset 0 0 0 7px var(--pdx-accent), 0 40px 60px -40px rgba(20, 26, 36, .45); }

/* ---------- features: band — an inverted frieze band of drawn icons ---------- */
.mc-band {
  margin: clamp(44px, 7vh, 80px) calc(-1 * var(--pdx-gutter)) 0;
  padding: clamp(48px, 8vh, 90px) var(--pdx-gutter);
  background: var(--pdx-ink);
  color: var(--pdx-surface);
  border-top: 1px solid var(--pdx-accent);
  border-bottom: 1px solid var(--pdx-accent);
  box-shadow: inset 0 6px 0 -5px var(--pdx-accent), inset 0 -6px 0 -5px var(--pdx-accent);
  --pdx-icon-accent: var(--pdx-band-accent, var(--pdx-accent));
}
.mc-band__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); max-width: 1320px; margin: 0 auto; }
.mc-band__item { position: relative; display: grid; justify-items: center; align-content: start; gap: 18px; padding: 6px clamp(14px, 2vw, 34px); text-align: center; }
.mc-band__item + .mc-band__item::before { content: ''; position: absolute; left: -4px; top: clamp(34px, 3vw, 44px); width: 7px; height: 7px; border: 1px solid var(--pdx-icon-accent); transform: rotate(45deg); }
.mc-band__icon { width: clamp(66px, 6vw, 92px); transition: transform .8s var(--pdx-ease); }
.mc-band__icon .pdx-icon { width: 100%; height: auto; stroke-width: 1.2; }
.mc-band__item:hover .mc-band__icon { transform: translateY(-6px); }
.mc-band__title { max-width: 20ch; font: 500 12px/1.6 var(--pdx-font-text); letter-spacing: .18em; text-transform: uppercase; }
.mc-band__text { max-width: 26ch; font-size: 13.5px; line-height: 1.6; color: color-mix(in srgb, var(--pdx-surface) 70%, transparent); }
.pdx.js-ready .mc-band__item { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--pdx-ease), transform 1.1s var(--pdx-ease); transition-delay: calc(.2s + var(--d) * .14s); }
.pdx.js-ready .mc-band.is-in .mc-band__item { opacity: 1; transform: none; }

/* ---------- chapters: folio with the text on the right, and the enfilade ---------- */
.mc-folio--r .mc-folio__text { grid-column: 8 / span 5; grid-row: 1; }
.mc-folio--r .mc-folio__hang { grid-column: 1 / span 6; grid-row: 1; }
.mc-enfilade { display: grid; gap: clamp(14px, 1.6vw, 26px); max-width: 1320px; margin: clamp(44px, 7vh, 80px) auto clamp(40px, 6vh, 70px); }
.mc-frame--axis { aspect-ratio: 21 / 9; }
.mc-enfilade__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 40%), 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.mc-enfilade__row .mc-frame { aspect-ratio: 4 / 3; }
.mc-chapter--enfilade .mc-chapter__body { max-width: 980px; margin: 0 auto; columns: 2 340px; column-gap: 56px; }

/* ---------- tone: dark (nocturne) ---------- */
.mc[data-tone="dark"] .mc-logo img { filter: none; opacity: .92; }
.mc[data-tone="dark"] .mc-plate,
.mc[data-tone="dark"] .mc-frame,
.mc[data-tone="dark"] .mc-bay__pane { box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .85); }
.mc[data-tone="dark"] .mc-column:hover .mc-medallion { background: color-mix(in srgb, var(--pdx-surface) 80%, var(--pdx-ink)); }
.mc[data-tone="dark"] .mc-frame__sheen { mix-blend-mode: screen; }
.mc[data-tone="dark"] .mc-frame.is-tilting .mc-frame__sheen { opacity: .5; }

/* ---------- variants on tablets and phones ---------- */
@media (max-width: 899px) {
  .mc-hero--arch { grid-template-columns: minmax(0, 1fr); min-height: 0; row-gap: 36px; }
  .mc-hero--arch .mc-hero__title { font-size: min(10vw, calc(88vw / (var(--len, 12) * .92))); }
  .mc-hero--portal { grid-template-columns: minmax(0, 1fr); }
  .mc-hero--portal .mc-hero__title { font-size: min(10vw, calc(90vw / (var(--len, 12) * .92))); }
  .mc-hero--portal .mc-hero__subtitle,
  .mc-hero--portal .mc-plate,
  .mc-hero--portal .mc-hero__actions { grid-column: 1; grid-row: auto; justify-self: center; text-align: center; }
  .mc-hero--portal .mc-plate { width: min(100%, 420px); }
  .mc-hero--portal .mc-hero__actions { align-items: center; }
  .mc-hero--pilasters .mc-plate__img { aspect-ratio: 4 / 5; }
  .mc-slices i:nth-child(n + 4) { display: none; }
  .mc-bay { grid-template-columns: minmax(0, .55fr) minmax(0, 2fr) minmax(0, .55fr); gap: 8px; }
  .mc-bay__pane { height: clamp(300px, 54svh, 520px); }
  .mc-hero--cartouche .mc-plate__img { aspect-ratio: 4 / 5; }
  .mc-cartouche { margin-top: -48px; max-width: 100%; }
  .mc-hero--cartouche .mc-hero__title { font-size: min(9vw, calc(80vw / (var(--len, 12) * .92))); }
  .mc-tablets { grid-template-columns: minmax(0, 1fr); }
  .mc-band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .mc-band__item:nth-child(odd)::before { display: none; }
  .mc-folio--r .mc-folio__text, .mc-folio--r .mc-folio__hang { grid-row: auto; }
  .mc-frame--axis { aspect-ratio: 4 / 3; }
  .mc-enfilade__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-chapter--enfilade .mc-chapter__body { columns: 1; }
}
@media (max-width: 559px) {
  .mc-tablet { grid-template-columns: 72px minmax(0, 1fr); padding: 22px; }
}
.mc[data-motion="none"] .mc-slices i::before { animation: none !important; transform: scaleY(0); }

/* =====================================================================
   Features: elevation — the facade itself. Glazed bays with crowned frames stand between
   fluted stone piers, under a dentil cornice and over a plinth. The facade is built from the
   plinth up when it arrives, the glass fills, the crowns draw; light runs across the glass as
   the page scrolls (--sun, maison-classique.js) and a window lights up warm under the pointer.
   Colours: --mc-glass-* can be set by a project stylesheet.
   ===================================================================== */
.mc-elev {
  --pier: clamp(16px, 1.9vw, 30px);
  --mc-stone: color-mix(in srgb, var(--pdx-ink) 9%, var(--pdx-surface));
  --mc-stone-d: color-mix(in srgb, var(--pdx-ink) 17%, var(--pdx-surface));
  --mc-wall: color-mix(in srgb, var(--pdx-ink) 3%, var(--pdx-surface));
  --mc-frame: var(--pdx-surface);
  --mc-glass-a: var(--mc-glass-top, #c6d5da);
  --mc-glass-b: var(--mc-glass-mid, #7e98a2);
  --mc-glass-c: var(--mc-glass-low, #42606b);
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: clamp(44px, 7vh, 80px) auto 0;
}
.mc-elev__cornice {
  height: 34px;
  margin: 0 calc(var(--pier) * -.7);
  background:
    linear-gradient(var(--pdx-accent), var(--pdx-accent)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--mc-stone-d), var(--mc-stone-d)) 0 6px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--mc-stone-d) 0 11px, transparent 11px 19px) 0 20px / 100% 10px no-repeat;
}
.mc-elev__bays {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  column-gap: var(--pier);
  padding: 0 var(--pier);
  border-top: 12px solid var(--mc-stone-d);   /* architrave */
  border-bottom: 10px solid var(--mc-stone-d); /* base course */
  /* the piers: what shows between the bays */
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, color-mix(in srgb, var(--pdx-ink) 7%, transparent) 4px 5px),
    var(--mc-stone);
}
.mc-elev__plinth {
  height: 22px;
  margin: 0 calc(var(--pier) * -.7);
  background: linear-gradient(var(--pdx-ink), var(--pdx-ink)) 0 0 / 100% 1px no-repeat, var(--mc-stone-d);
  box-shadow: 0 24px 40px -30px rgba(20, 26, 36, .5);
}

.mc-elev__bay {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: clamp(28px, 3vw, 46px) clamp(12px, 1.4vw, 24px) clamp(28px, 3.2vw, 48px);
  text-align: center;
  background: var(--mc-wall);
  /* recessed between the piers */
  box-shadow: inset 9px 0 14px -11px rgba(20, 26, 36, .35), inset -9px 0 14px -11px rgba(20, 26, 36, .35), inset 0 10px 14px -12px rgba(20, 26, 36, .3);
}
.mc-elev__window { position: relative; display: grid; width: min(100%, 210px); margin-bottom: 12px; }
.mc-elev__crown { display: block; width: 100%; height: clamp(20px, 2.2vw, 30px); overflow: visible; fill: none; stroke: var(--pdx-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: transform .6s var(--pdx-ease); }
.mc-elev__crown circle { fill: var(--pdx-accent); stroke: none; transition: transform .6s var(--pdx-ease); transform-box: fill-box; transform-origin: center; }
.mc-elev__glass {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  border: clamp(5px, .5vw, 8px) solid var(--mc-frame);
  outline: 1px solid color-mix(in srgb, var(--pdx-ink) 22%, transparent);
  background:
    radial-gradient(120% 40% at 30% 100%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--mc-glass-a), var(--mc-glass-b) 48%, var(--mc-glass-c));
  box-shadow: 0 18px 30px -22px rgba(20, 26, 36, .55);
}
/* warm interior light, centred on the pointer */
.mc-elev__glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(75% 60% at var(--mx, 50%) var(--my, 65%), rgba(255, 219, 160, .95), rgba(240, 170, 90, .45) 45%, transparent 78%);
  opacity: 0;
  transition: opacity .6s var(--pdx-ease);
}
/* glazing bars: a transom with a divided light above it; the lower pane is one sheet */
.mc-elev__glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), var(--mc-frame) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) 0 0 / 100% 30% no-repeat,
    linear-gradient(180deg, transparent calc(30% - 1.5px), var(--mc-frame) calc(30% - 1.5px) calc(30% + 1.5px), transparent calc(30% + 1.5px));
  box-shadow: inset 0 10px 16px -10px rgba(10, 20, 26, .45);
  pointer-events: none;
}
/* sunlight across the glass, moving with the scroll; each bay a little behind the previous */
.mc-elev__light {
  position: absolute;
  inset: -10%;
  z-index: 3;
  --s: calc(var(--sun, .45) * 170% - 60% - var(--d, 0) * 9%);
  background: linear-gradient(118deg, transparent calc(var(--s) - 16%), rgba(255, 255, 255, .5) var(--s), rgba(255, 255, 255, .12) calc(var(--s) + 6%), transparent calc(var(--s) + 14%));
  mix-blend-mode: screen;
  pointer-events: none;
}
.mc-elev__glass .pdx-icon {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 63%;
  width: 52%;
  height: auto;
  padding: 11%;
  border-radius: 50%;
  color: #fff;
  --pdx-icon-accent: #f6e5c4;
  stroke-width: 1.5;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 24px -12px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transform: translate(-50%, -50%);
  transition: background-color .5s, box-shadow .5s;
}
.mc-elev__sill { display: block; height: 9px; margin: 0 -12px; background: var(--mc-stone-d); box-shadow: 0 8px 12px -8px rgba(20, 26, 36, .4); }
.mc-elev__no { font: 300 13px/1 var(--pdx-font-text); letter-spacing: .32em; padding-left: .32em; color: var(--pdx-accent); }
.mc-elev__title { max-width: 22ch; font: 500 12.5px/1.55 var(--pdx-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--pdx-ink); text-wrap: balance; transition: color .4s; }
.mc-elev__text { max-width: 28ch; font-size: 14px; line-height: 1.6; color: var(--pdx-muted); }

/* hover: the window lights up, its crown lifts, the pane's medallion glows */
.mc-elev__bay:hover .mc-elev__glass::after { opacity: 1; }
.mc-elev__bay:hover .mc-elev__crown { transform: translateY(-5px); }
.mc-elev__bay:hover .mc-elev__crown circle { transform: scale(1.6); }
.mc-elev__bay:hover .mc-elev__glass .pdx-icon { background: rgba(255, 255, 255, .26); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 0 30px 4px rgba(255, 214, 150, .55); }
.mc-elev__bay:hover .mc-elev__title { color: var(--pdx-accent); }

/* arrival: built from the plinth up, then the glass fills and the crowns draw */
.pdx.js-ready .mc-elev__bays { clip-path: inset(100% -40px 0 -40px); transition: clip-path 1.6s var(--pdx-ease) .15s; }
.pdx.js-ready .mc-elev.is-in .mc-elev__bays { clip-path: inset(-40px); }
.pdx.js-ready .mc-elev__cornice { transform: scaleX(0); transition: transform 1.3s var(--pdx-ease) .9s; }
.pdx.js-ready .mc-elev.is-in .mc-elev__cornice { transform: none; }
.pdx.js-ready .mc-elev__plinth { transform: scaleX(.2); opacity: 0; transition: transform 1s var(--pdx-ease), opacity .6s; }
.pdx.js-ready .mc-elev.is-in .mc-elev__plinth { transform: none; opacity: 1; }
.pdx.js-ready .mc-elev__glass { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--pdx-ease); transition-delay: calc(.7s + var(--d) * .14s); }
.pdx.js-ready .mc-elev.is-in .mc-elev__glass { clip-path: inset(0); }
.pdx.js-ready .mc-elev__crown path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--pdx-ease); transition-delay: calc(1.2s + var(--d) * .14s); }
.pdx.js-ready .mc-elev.is-in .mc-elev__crown path { stroke-dashoffset: 0; }
.pdx.js-ready .mc-elev__no, .pdx.js-ready .mc-elev__title, .pdx.js-ready .mc-elev__text { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--pdx-ease), transform .9s var(--pdx-ease), color .4s; transition-delay: calc(1.1s + var(--d) * .12s), calc(1.1s + var(--d) * .12s), 0s; }
.pdx.js-ready .mc-elev.is-in .mc-elev__no, .pdx.js-ready .mc-elev.is-in .mc-elev__title, .pdx.js-ready .mc-elev.is-in .mc-elev__text { opacity: 1; transform: none; }
.mc-elev { --draw-delay: 1.1s; }

@media (max-width: 899px) {
  .mc-elev { --pier: 12px; }
  .mc-elev__bays { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; padding-top: 0; }
  .mc-elev__cornice, .mc-elev__plinth { margin: 0 -8px; }
  .mc-elev__bay { padding: 22px 10px 24px; gap: 8px; }
  .mc-elev__window { width: min(100%, 150px); margin-bottom: 6px; }
  .mc-elev__title { font-size: 11px; letter-spacing: .1em; overflow-wrap: break-word; hyphens: auto; }
  .mc-elev__text { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-elev__light { --s: 40%; }
}
.mc[data-motion="none"] .mc-elev__light { --s: 40%; }
