/*
 * L’Empreinte du Prestige — the whole site's stylesheet (every block loads it; pages load it once).
 * The mockup's design: cream paper crossed by long sand waves in two tones, photographs with soft corners laid over
 * one another (the one in front framed in white) and sinking into the next wave, a portrait in an arch outlined in
 * gold, a gold rule under the titles, a dark brown footer under a wave. Newsreader for the titles (the theme's
 * "empreinte-prestige" pairing) and Inter for the text, in the theme's blue-grey. Every colour comes from the theme
 * (Admin › Theme); the light sands, the hairlines, the white of the frames and the brown of the footer are mixes of it.
 */
:root {
    --ep-cream: var(--cms-background, #fcfaf6);
    --ep-sand: var(--cms-surface, #f2e9da);
    --ep-ink: var(--cms-text, #302b26);
    /* The titles: the text's colour, deeper (the mockup's near-black). */
    --ep-title: color-mix(in oklab, var(--ep-ink) 72%, black);
    --ep-muted: var(--cms-muted, #60657a);
    --ep-gold: var(--cms-accent, #8a6230);
    --ep-button: var(--cms-brand, #8b6331);
    --ep-on-button: var(--cms-brand-contrast, #fff);
    --ep-button-hover: color-mix(in oklab, var(--ep-button) 80%, black);
    --ep-line: color-mix(in oklab, var(--ep-gold) 26%, var(--ep-sand));
    --ep-pale: color-mix(in oklab, var(--ep-sand) 60%, var(--ep-cream));
    /* The waves' second tone: a lighter sand along the edge of the sand. */
    --ep-dune: color-mix(in oklab, var(--ep-sand) 62%, var(--ep-cream));
    /* The white frame of a photo laid over another. */
    --ep-frame: color-mix(in oklab, var(--ep-cream) 30%, white);
    --ep-dark: color-mix(in oklab, var(--ep-ink) 54%, var(--ep-gold));
    --ep-on-dark: color-mix(in oklab, var(--ep-cream) 88%, var(--ep-gold));
    --ep-on-dark-muted: color-mix(in oklab, var(--ep-on-dark) 80%, var(--ep-dark));
    --ep-dark-line: color-mix(in oklab, var(--ep-gold) 55%, var(--ep-dark));
    --ep-field: #fff;
    --ep-field-line: color-mix(in oklab, var(--ep-ink) 14%, white);
    --ep-serif: var(--cms-font-heading);
    --ep-sans: var(--cms-font-body);
    --ep-ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* The soft corner of the photographs. */
    --ep-round: 14px;
    /* The height of a sand section's waved edge, and how far its lighter ribbon rises above it. */
    --ep-wave: 96px;
    --ep-ribbon: 34px;
    /* The design's wave shapes (masks: the colours are the theme's). Long swells, as in the mockup. */
    --ep-wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62C230 8 470 92 780 52S1230 2 1440 38V100H0Z'/%3E%3C/svg%3E");
    --ep-ribbon-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 46C300 92 580 14 920 56S1300 90 1440 28V100H0Z'/%3E%3C/svg%3E");
    --ep-wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath transform='rotate(180 720 50)' d='M0 58C260 100 560 18 900 56S1280 96 1440 44V100H0Z'/%3E%3C/svg%3E");
    --ep-ribbon-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath transform='rotate(180 720 50)' d='M0 34C320 0 640 88 980 44S1330 6 1440 62V100H0Z'/%3E%3C/svg%3E");
    --ep-wave-foot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 46C260 4 560 84 900 50S1290 8 1440 34V100H0Z'/%3E%3C/svg%3E");
    /* The opening: the sand that runs under the logo (and its lighter edge), the two waves its photos sink into. */
    --ep-hero-sand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath d='M0 78C90 120 200 150 330 150C470 150 590 118 700 96C760 84 810 76 870 70C805 98 730 130 640 160C520 200 380 226 250 220C150 215 70 195 0 172Z'/%3E%3C/svg%3E");
    --ep-hero-dune: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath d='M0 150C110 190 230 214 360 210C520 205 650 160 780 122C850 102 920 90 1000 84C930 116 850 158 750 196C610 248 450 276 300 270C180 266 80 244 0 222Z'/%3E%3C/svg%3E");
    --ep-hero-ribbon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath d='M0 76C250 28 470 118 760 94S1170 20 1440 60V180H0Z'/%3E%3C/svg%3E");
    --ep-hero-floor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath d='M0 120C280 80 500 158 800 132S1200 68 1440 102V180H0Z'/%3E%3C/svg%3E");
    /* The wide photo's top: a wave rising from the left, under the button. */
    --ep-cut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 230C160 222 300 170 450 112C590 58 720 18 1000 0V1000H0Z'/%3E%3C/svg%3E");
}

@layer components {
    /* ---------- Page ---------- */
    /* `.site.site`: as heavy as the core's own selectors, without a :has() on the page (one anchored on <body>, such
       as .site:has(.ep-foot), made the browser restyle every element the page adds while it loads: mobile
       Lighthouse 41 → 97). This stylesheet only loads on this site's pages. */
    .site.site { background: var(--ep-cream); color: var(--ep-ink); font: 16px/1.65 var(--ep-sans); overflow-x: clip; }
    /* The sections' entrances (site kit, data-kit-reveal: one per block, a list comes in as a whole): short and close,
       so that no text is ever read half transparent while scrolling, nor still coming in after a jump to an anchor. */
    .site.site { --kit-duration: 0.6s; --kit-rise: 12px; }
    html { scroll-behavior: smooth; scroll-padding-top: 35px; scrollbar-color: color-mix(in oklab, var(--ep-gold) 45%, var(--ep-sand)) var(--ep-cream); }
    .site.site :focus-visible { outline: 2px solid var(--ep-gold); outline-offset: 5px; }
    /* The browser's own surfaces carry the palette too: selected text, the caret. */
    .site.site ::selection { background: color-mix(in oklab, var(--ep-gold) 26%, var(--ep-cream)); color: var(--ep-ink); }
    .site.site :is(input, textarea) { caret-color: var(--ep-gold); }
    :where([class^='ep-'], [class*=' ep-']) :where(h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; }
    :where([class^='ep-'], [class*=' ep-']) :where(ul, ol) { padding: 0; list-style: none; }
    :where([class^='ep-'], [class*=' ep-']) :where(button, input, textarea) { font: inherit; color: inherit; }
    :where([class^='ep-'], [class*=' ep-']) :where(h1, h2, h3) { color: var(--ep-title); font-family: var(--ep-serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.022em; }
    /* The titles break between words, never inside one (the core hyphenates long words): a word too long for the
       line still breaks rather than overflow. */
    .site.site :where([class^='ep-'], [class*=' ep-']) :where(h1, h2, h3) { hyphens: manual; overflow-wrap: break-word; }
    .ep-wrap { width: min(1280px, 90%); margin-inline: auto; }
    /* Sections that are size containers: how far a photo goes past the content to reach the edge of the screen
       (the content's margin, at most 160px on very wide screens). */
    :is(.ep-attentions, .ep-place, .ep-contact) { --ep-bleed: max(calc((min(1280px, 90cqw) - 100cqw) / 2), -160px); container-type: inline-size; }
    /* The opening's photos reach the screen's edges up to 1920 px wide (beyond, they stop 320 px past the content). */
    .ep-hero__inner { --ep-bleed: max(calc((min(1280px, 90cqw) - 100cqw) / 2), -320px); }
    /* Where the tall photo starts, as a share of the content's width: the photo and the text beside it share it, so
       the text always stops short of the photo. */
    .ep-hero__inner { --ep-door-k: 0.5905; }

    /* Photographs fill their box; the box gives the size and the shape. */
    :is(.ep-hero__photo, .ep-hero__living, .ep-intro__tall, .ep-intro__small, .ep-about__photo, .ep-services__image, .ep-attentions__photo, .ep-place__photo, .ep-contact__photo) {
        display: block; overflow: hidden; background: var(--ep-sand);
    }
    :is(.ep-hero__photo, .ep-hero__living, .ep-intro__tall, .ep-intro__small, .ep-about__photo, .ep-services__image, .ep-attentions__photo, .ep-place__photo, .ep-contact__photo) img {
        display: block; width: 100%; height: 100%; object-fit: cover;
    }
    :is(.ep-signature, .ep-foot__logo) { display: block; }
    :is(.ep-signature, .ep-foot__logo) img { display: block; width: 100%; height: 100%; object-fit: contain; }

    /* ---------- Type ---------- */
    .ep-title { font-size: clamp(38px, 4.8vw, 70px); }
    :is(.ep-title, .ep-hero__title, .ep-foot__title) em { font-style: italic; color: var(--ep-gold); }
    .ep-eyebrow { margin-bottom: 14px; font: 600 13px/1.4 var(--ep-serif); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ep-gold); }
    .ep-rule { display: block; width: 46px; height: 2px; margin: 26px 0; background: var(--ep-gold); }
    .ep-text { color: var(--ep-muted); font-size: clamp(16px, 1.4vw, 20.5px); line-height: 1.6; }
    .ep-text p + p { margin-top: 16px; }
    .ep-lead { max-width: 420px; font: 400 clamp(22px, 2vw, 29px)/1.3 var(--ep-serif); letter-spacing: -0.01em; color: var(--ep-muted); }
    .ep-button {
        display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 60px; padding: 15px 34px;
        border: 0; border-radius: 5px; background: var(--ep-button); color: var(--ep-on-button); font: 400 21px/1.2 var(--ep-serif);
        letter-spacing: -0.005em; text-decoration: none; cursor: pointer; box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--ep-dark) 70%, transparent);
        transition: background-color 0.2s, transform 0.2s;
    }
    .ep-button:hover { background: var(--ep-button-hover); color: var(--ep-on-button); transform: translateY(-2px); }
    .ep-button:disabled { cursor: wait; opacity: 0.8; transform: none; }
    .ep-arrow { flex: none; width: 20px; height: 12px; transition: transform 0.3s var(--ep-ease); }
    :is(.ep-button, .ep-outline):hover .ep-arrow { transform: translateX(3px); }

    /* ---------- Sections and sand bands ---------- */
    .ep-section { --ep-bg: var(--ep-cream); padding-block: calc(var(--ep-pt, 95px) + var(--cms-header-room, 0px)) var(--ep-pb, 95px); }
    /* Sand: the wave of the design at the top and at the bottom, inside the section, each with a lighter ribbon
       along it (the second tone of the mockup's waves), rising a little beyond the section. */
    .ep-band { --ep-bg: var(--ep-sand); position: relative; isolation: isolate; padding-block: calc(var(--ep-wave) + var(--ep-pt, 30px) + var(--cms-header-room, 0px)) calc(var(--ep-wave) + var(--ep-pb, 30px)); }
    .ep-band--light { --ep-bg: var(--ep-pale); --ep-dune: color-mix(in oklab, var(--ep-pale) 45%, var(--ep-cream)); }
    .ep-band::before, .ep-band::after { content: ''; position: absolute; pointer-events: none; }
    .ep-band::before {
        inset: 0; z-index: -1; background: var(--ep-bg);
        -webkit-mask: var(--ep-wave-top) top / 100% var(--ep-wave) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--ep-wave) + 2px) no-repeat, var(--ep-wave-bottom) bottom / 100% var(--ep-wave) no-repeat;
        mask: var(--ep-wave-top) top / 100% var(--ep-wave) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--ep-wave) + 2px) no-repeat, var(--ep-wave-bottom) bottom / 100% var(--ep-wave) no-repeat;
    }
    .ep-band::after {
        inset: calc(-1 * var(--ep-ribbon)) 0; z-index: -2; background: var(--ep-dune);
        -webkit-mask: var(--ep-ribbon-top) top / 100% var(--ep-wave) no-repeat, var(--ep-ribbon-bottom) bottom / 100% var(--ep-wave) no-repeat;
        mask: var(--ep-ribbon-top) top / 100% var(--ep-wave) no-repeat, var(--ep-ribbon-bottom) bottom / 100% var(--ep-wave) no-repeat;
    }
    /* A page section beside a sand one: its wave already makes room. */
    .cms-section:has(> .ep-band) + .cms-section > .ep-section:not(.ep-band) { padding-top: max(40px, calc(var(--ep-pt, 95px) - var(--ep-wave))); }
    .cms-section:has(+ .cms-section > .ep-band) > .ep-section:not(.ep-band) { padding-bottom: max(40px, calc(var(--ep-pb, 95px) - var(--ep-wave))); }

    /* ---------- Opening ---------- */
    /* The header sits over it (Header › Over the first section): the opening keeps its height free at the top
       (--cms-header-room), and its sand wave runs under the logo. */
    .ep-hero { position: relative; isolation: isolate; padding-top: var(--cms-header-room, 0px); container-type: inline-size; }
    .ep-hero::before, .ep-hero::after { content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: 300px; pointer-events: none; }
    /* A brush of sand from the left edge, under the logo, thinning towards the tall photo; a paler one under it. */
    .ep-hero::before { z-index: -1; background: var(--ep-sand); -webkit-mask: var(--ep-hero-sand) 0 0 / 100% 100% no-repeat; mask: var(--ep-hero-sand) 0 0 / 100% 100% no-repeat; }
    .ep-hero::after { z-index: -2; background: color-mix(in oklab, var(--ep-sand) 45%, var(--ep-cream)); -webkit-mask: var(--ep-hero-dune) 0 0 / 100% 100% no-repeat; mask: var(--ep-hero-dune) 0 0 / 100% 100% no-repeat; }
    /* The waves the photos sink into, over them: a sand ribbon, then the paper the next section starts on. */
    .ep-hero__waves { position: absolute; inset: auto 0 -1px; z-index: 5; height: 150px; pointer-events: none; }
    .ep-hero__waves::before, .ep-hero__waves::after { content: ''; position: absolute; inset: 0; }
    .ep-hero__waves::before { background: var(--ep-dune); -webkit-mask: var(--ep-hero-ribbon) 0 0 / 100% 100% no-repeat; mask: var(--ep-hero-ribbon) 0 0 / 100% 100% no-repeat; }
    .ep-hero__waves::after { background: var(--ep-cream); -webkit-mask: var(--ep-hero-floor) 0 0 / 100% 100% no-repeat; mask: var(--ep-hero-floor) 0 0 / 100% 100% no-repeat; }
    .ep-hero__inner { position: relative; height: 1150px; }
    /* Above the photos and clear of them: the title stops short of the tall one, the button above the wide one. */
    .ep-hero__copy { position: relative; z-index: 4; width: max-content; max-width: calc(var(--ep-door-k) * min(1280px, 90cqw) - 28px); padding-top: 96px; }
    .ep-hero__title { font-size: clamp(36px, 5.1vw, 74px); line-height: 1.02; letter-spacing: -0.03em; }
    /* The small line opens the h1 (what and where, for search engines) and keeps its look. */
    .ep-hero__kicker { display: block; margin-bottom: 22px; font-size: 14px; line-height: 1.4; letter-spacing: 0.3em; }
    /* It stands out from the sand in the footer's dark brown, bolder (a colour of the site already: no other). */
    .site.site .ep-hero__kicker { color: var(--ep-dark); font-weight: 700; }
    /* The main action and, beside it, what happens next. */
    .ep-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
    .ep-hero__note { font-size: 13.5px; line-height: 1.45; color: var(--ep-muted); }
    .ep-hero__text { margin-bottom: 34px; color: var(--ep-muted); font-size: clamp(17px, 1.52vw, 22px); line-height: 1.5; }
    /* Its left edge where the design put it (--ep-door-k), its right edge on the screen's. */
    .ep-hero__door {
        position: absolute; right: var(--ep-bleed); top: 0; width: calc(100% - var(--ep-door-k) * 100% - var(--ep-bleed)); height: 100%; margin: 0; overflow: hidden;
        border-radius: var(--ep-round) 0 0 0;
    }
    .ep-hero__photo { width: 100%; height: 100%; }
    .ep-hero__caption { position: absolute; right: 36px; bottom: 150px; z-index: 6; color: #fff; font: 400 26px/1.08 var(--ep-serif); letter-spacing: -0.01em; text-align: right; text-shadow: 0 1px 12px color-mix(in srgb, var(--ep-ink) 70%, transparent); }
    /* The wide photo, laid over the bottom of the tall one: framed in white where it meets it, its top a wave. */
    .ep-hero__living {
        --ep-sofa-right: 68.45%;
        position: absolute; left: var(--ep-bleed); bottom: 0; z-index: 3; width: calc(var(--ep-sofa-right) - var(--ep-bleed)); height: 540px;
        border: 6px solid var(--ep-frame); border-left: 0; border-bottom: 0;
        border-radius: 0 var(--ep-round) 0 0; -webkit-mask: var(--ep-cut) 0 0 / 100% 100% no-repeat; mask: var(--ep-cut) 0 0 / 100% 100% no-repeat;
        /* How far below its place the wavy top edge starts (the entrance, in Motion). */
        --ep-emerge: 70px;
    }

    /* ---------- Text beside two photos, and the portrait in an arch: as first designed ----------
       Both keep the validated design's composition and type sizes (only the theme's typefaces and colours follow the
       rest of the site): the two photos within the content, one with a soft corner, the other framed in the page's
       colour; the arch drawn in gold on the portrait, the sand band's own waves, in one tone. */
    .ep-intro { --ep-pt: 80px; --ep-pb: 140px; --ep-wave: 80px; }
    .ep-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
    .ep-intro__copy { max-width: 470px; }
    .ep-signature { width: 108px; height: 88px; margin-top: 24px; }
    .ep-intro__images { position: relative; min-height: 440px; }
    .ep-intro__tall { position: absolute; right: -11%; top: -25px; width: 67%; height: 440px; border-radius: 7px 7px 60px 7px; }
    .ep-intro__small { position: absolute; left: -4%; bottom: -15px; width: 53%; height: 295px; border: 7px solid var(--ep-bg); border-radius: 15px; }

    .ep-about {
        --ep-pt: 35px; --ep-pb: 35px; --ep-wave: 80px;
        --ep-wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 65C180 145 350 -35 550 25S880 140 1060 80S1280 25 1440 55V100H0Z'/%3E%3C/svg%3E");
        --ep-wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath transform='rotate(180 720 50)' d='M0 65C240 10 300 110 550 55S850 0 1080 55S1320 125 1440 35V100H0Z'/%3E%3C/svg%3E");
    }
    .ep-about.ep-band::after { content: none; }
    .ep-about__grid { display: grid; grid-template-columns: 1.05fr 1fr 0.65fr; gap: 5%; align-items: center; }
    .ep-about__grid--text { grid-template-columns: 1fr 1fr; }
    .ep-about__portrait { position: relative; margin: -55px 0 0; }
    .ep-about__photo { height: 470px; border: 1px solid color-mix(in oklab, var(--ep-gold) 70%, var(--ep-sand)); border-radius: 48% 49% 0 0 / 34% 58% 0 0; }
    .ep-about__photo img { object-position: var(--cms-focal, 50% 30%); }
    .ep-about__portrait figcaption { padding-top: 7px; font-size: 12px; text-align: center; color: var(--ep-muted); }
    :is(.ep-intro, .ep-about) .ep-title { font-size: clamp(36px, 4.2vw, 63px); }
    :is(.ep-intro, .ep-about) .ep-eyebrow { margin-bottom: 16px; font: 700 12px/1.4 var(--ep-serif); letter-spacing: 0.23em; }
    :is(.ep-intro, .ep-about) .ep-rule { width: 43px; margin: 25px 0; }
    :is(.ep-intro, .ep-about) .ep-text { font-size: 15px; line-height: 1.65; }
    :is(.ep-intro, .ep-about) .ep-text p + p { margin-top: 18px; }
    .ep-about .ep-lead { max-width: 325px; font: 400 24px/1.3 var(--ep-serif); letter-spacing: 0; }
    .ep-about .ep-about__text { font-size: 17px; }

    /* ---------- Numbered services ---------- */
    .ep-services { --ep-pt: 130px; --ep-pb: 120px; }
    .ep-services .ep-title { font-size: clamp(38px, 5.2vw, 76px); }
    .ep-services__grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px 72px; align-items: start; margin-top: 26px; }
    .ep-services__cta { grid-column: 1; grid-row: 2; margin: 10px 0 0; }
    .ep-services__photo { grid-column: 2; grid-row: 1 / span 2; }
    .ep-services__grid--wide .ep-services__photo { grid-column: auto; grid-row: auto; }
    .ep-services__grid--wide { grid-template-columns: 1fr; }
    .ep-service { display: grid; grid-template-columns: 62px 1.05fr 1fr; gap: 22px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--ep-line); }
    .ep-service:last-child { border-bottom: 0; }
    .ep-service__number { font: 400 32px/1.1 var(--ep-serif); color: var(--ep-gold); white-space: nowrap; }
    .ep-service h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; }
    .ep-service p { font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.6; color: var(--ep-muted); }
    .ep-services__photo { margin: 0; }
    .ep-services__image { height: 285px; border-radius: 12px; }
    /* The caption under its own short gold line. */
    .ep-services__caption { margin-top: 18px; font: italic 400 27px/1.16 var(--ep-serif); letter-spacing: -0.015em; color: var(--ep-gold); }
    .ep-services__caption::before { content: ''; display: block; width: 46px; height: 2px; margin-bottom: 12px; background: currentColor; }

    /* ---------- Three photos and options ---------- */
    /* Its photos run nearly from one edge of the screen to the other. */
    .ep-attentions { --ep-pt: 26px; --ep-pb: 40px; }
    .ep-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 70px; margin-bottom: 34px; }
    .ep-heading > .ep-text { max-width: 500px; padding-bottom: 8px; }
    .ep-attentions .ep-title { font-size: clamp(36px, 4.1vw, 60px); }
    .ep-attentions__photos { display: grid; grid-template-columns: 1.15fr 1.15fr 0.85fr; gap: 10px; margin-inline: calc(var(--ep-bleed) + 8px); }
    .ep-attentions__photos--2 { grid-template-columns: 1fr 1fr; }
    .ep-attentions__photos--1 { grid-template-columns: 1fr; }
    .ep-attentions__photo { position: relative; height: 260px; border-radius: 6px; }
    .ep-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; margin-top: 26px; }
    .ep-pack { padding-inline: 28px; border-right: 1px solid var(--ep-line); }
    .ep-pack:nth-child(4n + 1) { padding-left: 0; }
    .ep-pack:nth-child(4n), .ep-pack:last-child { padding-right: 0; border-right: 0; }
    .ep-pack h3 { font-size: clamp(22px, 2vw, 29px); letter-spacing: -0.02em; }
    .ep-pack p { margin-top: 8px; font-size: clamp(14px, 1.08vw, 15.5px); line-height: 1.6; color: var(--ep-muted); }

    /* ---------- Photo beside a text ---------- */
    /* The photo runs to the edge of the screen on its side. */
    .ep-place { --ep-pt: 90px; --ep-pb: 120px; }
    .ep-place__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
    .ep-place__grid--text { grid-template-columns: minmax(0, 640px); }
    .ep-place--right .ep-place__media { order: 2; }
    .ep-place__media { margin-left: var(--ep-bleed); }
    .ep-place--right .ep-place__media { margin-left: 0; margin-right: var(--ep-bleed); }
    .ep-place__photo { height: 400px; border-radius: 0 var(--ep-round) var(--ep-round) 0; }
    .ep-place--right .ep-place__photo { border-radius: var(--ep-round) 0 0 var(--ep-round); }
    .ep-place .ep-title { font-size: clamp(36px, 4vw, 58px); }
    /* Before a sand section: the photo sinks into its wave. */
    .cms-section:has(+ .cms-section > .ep-band) > .ep-place .ep-place__media { margin-bottom: -110px; }
    .cms-section:has(+ .cms-section > .ep-band) > .ep-place .ep-place__copy { margin-bottom: -40px; }

    /* ---------- Reviews ---------- */
    .ep-reviews { --ep-pt: 30px; --ep-pb: 40px; }
    .ep-reviews .ep-title { font-size: clamp(36px, 4vw, 58px); }
    .ep-reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; margin-top: 30px; }
    .ep-reviews__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ep-reviews__list--1 { grid-template-columns: minmax(0, 1fr); }
    .ep-reviews__list > li { padding: 0 34px; border-right: 1px solid var(--ep-line); }
    .ep-reviews__list > li:nth-child(3n), .ep-reviews__list > li:last-child { border-right: 0; }
    .ep-reviews__list--2 > li:nth-child(2n) { border-right: 0; }
    .ep-review { margin: 0; text-align: center; }
    .ep-review__mark { display: block; height: 0.42em; font: 700 64px/0.8 var(--ep-serif); color: var(--ep-gold); }
    .ep-review blockquote { margin-top: 14px; color: var(--ep-title); font: 400 21px/1.38 var(--ep-serif); letter-spacing: -0.012em; }
    .ep-review blockquote p + p { margin-top: 10px; }
    .ep-review figcaption { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--ep-muted); }

    /* ---------- Quote request ---------- */
    /* The photo runs to the left edge of the screen. */
    .ep-contact { --ep-pt: 130px; --ep-pb: 150px; }
    .ep-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
    /* The title's block, on the page's colour, sits over the top of the photo: the photo runs on under it. */
    .ep-contact__intro { position: relative; }
    /* Its paper runs to the left edge of the screen too, over the photo's. */
    .ep-contact__copy { position: relative; z-index: 2; display: inline-block; max-width: calc(88% - var(--ep-bleed)); margin-left: var(--ep-bleed); padding: 0 48px 36px calc(-1 * var(--ep-bleed)); border-bottom-right-radius: 48px; background: var(--ep-bg); }
    .ep-contact__intro--text .ep-contact__copy { max-width: none; margin-left: 0; padding: 0; }
    .ep-contact .ep-title { font-size: clamp(38px, 4.3vw, 62px); }
    .ep-contact__text { margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--ep-muted); }
    .ep-contact__media { margin-top: -120px; margin-left: var(--ep-bleed); }
    .ep-contact__photo { width: 100%; height: clamp(380px, 38vw, 540px); border-radius: 0 150px 0 0; }

    /* The form: a white card, framed fields, the kind of home as buttons, the site's button to send. */
    .ep-card {
        position: relative; padding: 44px 44px 38px; border-radius: 20px; background: #fff;
        box-shadow: 0 1px 2px color-mix(in srgb, var(--ep-dark) 6%, transparent), 0 34px 80px -34px color-mix(in srgb, var(--ep-dark) 34%, transparent);
    }
    .ep-card__title { margin-bottom: 26px; font-size: 30px; }
    .ep-card__text { margin: -14px 0 28px; font-size: 15px; line-height: 1.55; color: var(--ep-muted); }
    .ep-call { margin-top: 16px; font-size: 15px; color: var(--ep-muted); }
    .ep-call a { display: inline-block; padding-block: 4px; color: var(--ep-gold); font: 400 19px/1.3 var(--ep-serif); text-decoration: underline; text-underline-offset: 3px; }
    .ep-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
    .ep-field { position: relative; min-width: 0; }
    .ep-field--wide { grid-column: 1 / -1; }
    .ep-field > label, .ep-choices legend { display: block; color: var(--ep-title); font: 600 13.5px/1.4 var(--ep-sans); letter-spacing: 0; }
    .ep-req { color: var(--ep-gold); }
    .ep-field :is(input:not([type='checkbox']):not([type='radio']), textarea) {
        display: block; width: 100%; margin-top: 7px; padding: 11px 14px; border: 1px solid var(--ep-field-line); border-radius: 6px;
        background: color-mix(in oklab, var(--ep-cream) 45%, white); color: var(--ep-ink); font: 400 16px/1.4 var(--ep-sans); box-shadow: 0 0 0 0 transparent;
        transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    }
    .ep-field :is(input, textarea)::placeholder { color: color-mix(in oklab, var(--ep-muted) 88%, white); opacity: 1; }
    /* The states repeat the fields' selector: shorter ones (`.ep-field input:focus`) weighed less than it and never
       showed (no gold edge on focus, no red one on an error). */
    .ep-field :is(input:not([type='checkbox']):not([type='radio']), textarea):hover { border-color: color-mix(in oklab, var(--ep-gold) 45%, var(--ep-field-line)); }
    /* The field shows its focus itself (gold edge and halo): no second ring around it. */
    .site.site .ep-field :is(input, textarea):focus-visible { outline: none; }
    .ep-field :is(input:not([type='checkbox']):not([type='radio']), textarea):focus { outline: none; border-color: var(--ep-gold); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ep-gold) 24%, transparent); }
    .ep-field:focus-within > label { color: var(--ep-gold); }
    .ep-field textarea { min-height: 96px; resize: vertical; field-sizing: content; }
    .ep-field.is-invalid :is(input:not([type='checkbox']):not([type='radio']), textarea) { border-color: #b3261e; box-shadow: 0 0 0 3px rgb(179 38 30 / 0.12); /* cms-theme: keep (a field to correct is red) */ }
    .ep-error { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: #b3261e; /* cms-theme: keep (an error is red) */ }
    .ep-error:empty { display: none; }
    /* The kind of home: radio buttons drawn as pills. */
    .ep-choices { margin: 0; padding: 0; border: 0; }
    .ep-choices legend { padding: 0; }
    .ep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .ep-chip { position: relative; cursor: pointer; }
    .ep-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
    .ep-chip span {
        display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border: 1px solid var(--ep-field-line); border-radius: 999px;
        background: color-mix(in oklab, var(--ep-cream) 45%, white); color: var(--ep-ink); font: 400 15px/1.2 var(--ep-sans); transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    }
    .ep-chip:hover span { border-color: var(--ep-gold); }
    .ep-chip input:checked + span { border-color: var(--ep-button); background: var(--ep-button); color: var(--ep-on-button); }
    .ep-chip input:focus-visible + span { outline: 2px solid var(--ep-gold); outline-offset: 3px; }
    .ep-consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
    .ep-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ep-button); }
    .ep-consent label { flex: 1; color: var(--ep-ink); font: 13.5px/1.5 var(--ep-sans); letter-spacing: 0; text-transform: none; }
    .ep-consent .ep-error { flex-basis: 100%; }
    .ep-form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
    /* The site's button: its arrow after the words. */
    .ep-send {
        display: inline-flex; align-items: center; gap: 22px; min-height: 56px; padding: 12px 28px; border: 0; border-radius: 5px;
        background: var(--ep-button); color: var(--ep-on-button); font: 400 19px/1.2 var(--ep-serif); cursor: pointer;
        box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--ep-dark) 70%, transparent); transition: background-color 0.25s, transform 0.25s;
    }
    .ep-send__icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; color: currentColor; transition: transform 0.35s var(--ep-ease); }
    .ep-send:hover { background: var(--ep-button-hover); transform: translateY(-1px); }
    .ep-send:hover .ep-send__icon { transform: translateX(3px); }
    .ep-send:disabled { cursor: wait; opacity: 0.75; transform: none; }
    .ep-form__note { flex: 1 1 200px; font-size: 12.5px; line-height: 1.55; color: var(--ep-muted); }
    .ep-form__note a { display: inline-block; padding-block: 4px; color: var(--ep-gold); text-decoration: underline; text-underline-offset: 2px; }
    .ep-form .form__status { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--ep-pale); font-size: 14px; line-height: 1.5; }
    .ep-form .form__status:empty { display: none; }
    .ep-form .form__status[data-state='error'] { color: #b3261e; /* cms-theme: keep (an error is red) */ }
    .ep-form .form__note { margin-top: 12px; font-size: 12px; color: var(--ep-muted); }

    /* The thanks, once the request has left. */
    dialog.ep-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 44px 36px 34px; border: 0; border-radius: 14px; background: var(--ep-cream); color: var(--ep-ink); box-shadow: 0 30px 80px color-mix(in srgb, var(--ep-dark) 35%, transparent); }
    dialog.ep-dialog::backdrop { background: color-mix(in srgb, var(--ep-dark) 55%, transparent); }
    .ep-dialog .ep-title { padding-right: 40px; font-size: 36px; }
    .ep-dialog .ep-text { margin-top: 14px; }
    .ep-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ep-sand); font-size: 22px; line-height: 1; cursor: pointer; }
    .ep-dialog__close:hover { background: color-mix(in oklab, var(--ep-sand) 80%, var(--ep-gold)); }
    .ep-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin-top: 22px; padding: 18px 20px; border-radius: 8px; background: #fff; font-size: 14px; line-height: 1.5; }
    .ep-summary dt { color: var(--ep-muted); }
    .ep-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

    /* ---------- Page title, and the simple pages it opens (rich text, legal notice: the reading column) ---------- */
    .ep-page-title { --ep-pt: 100px; --ep-pb: 20px; }
    .ep-page-title__inner { width: min(100% - 2 * var(--gutter, 5vw), 46rem); }
    .ep-page-title .ep-title { font-size: clamp(42px, 5.2vw, 70px); }
    .ep-page-title .ep-lead { max-width: 34rem; }
    .cms-section:has(> .ep-page-title) + .cms-section > :is(.rich-text, .cms-legal-notice) { padding-top: 10px; }
    .site.site .prose { font-size: 16.5px; line-height: 1.7; color: color-mix(in oklab, var(--ep-muted) 55%, var(--ep-ink)); }
    .site.site .prose :is(h2, h3) { margin-top: 1.7em; color: var(--ep-title); font-size: clamp(25px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
    .site.site .prose > :first-child { margin-top: 0; }
    .site.site .prose a { color: var(--ep-gold); text-decoration: underline; text-underline-offset: 2px; }
    .site.site .cms-legal-notice__title { color: var(--ep-title); font-size: clamp(42px, 5.2vw, 70px); line-height: 1.04; letter-spacing: -0.022em; }
    .site.site .cms-legal-notice__title::after { content: ''; display: block; width: 46px; height: 2px; margin-top: 26px; background: var(--ep-gold); }
    .site.site .cms-legal-notice { padding-top: calc(100px + var(--cms-header-room, 0px)); }
    .site.site .cms-legal-notice__row dt { color: var(--ep-muted); }
    /* The page not found: its button is the site's. */
    .site.site .status-page .btn {
        min-height: 56px; padding: 14px 30px; border: 0; border-radius: 5px; background: var(--ep-button); color: var(--ep-on-button);
        font: 400 19px/1.2 var(--ep-serif); letter-spacing: 0; box-shadow: 0 14px 30px -20px color-mix(in srgb, var(--ep-dark) 70%, transparent);
    }
    .site.site .status-page .btn:hover { background: var(--ep-button-hover); color: var(--ep-on-button); }

    /* ---------- Footer ---------- */
    .ep-foot { position: relative; isolation: isolate; padding: 34px 0 22px; color: var(--ep-on-dark); }
    /* The brown under a wave, rising over the bottom of the section above (as in the design), a lighter ribbon along it. */
    .ep-foot::before, .ep-foot::after { content: ''; position: absolute; pointer-events: none; }
    .ep-foot::before {
        inset: -79px 0 0; z-index: -1; background: var(--ep-dark);
        -webkit-mask: var(--ep-wave-foot) top / 100% 80px no-repeat, linear-gradient(#000 0 0) 0 79px / 100% calc(100% - 79px) no-repeat;
        mask: var(--ep-wave-foot) top / 100% 80px no-repeat, linear-gradient(#000 0 0) 0 79px / 100% calc(100% - 79px) no-repeat;
    }
    .ep-foot::after {
        inset: -101px 0 auto; z-index: -2; height: 80px; background: var(--ep-dune);
        -webkit-mask: var(--ep-ribbon-top) top / 100% 80px no-repeat; mask: var(--ep-ribbon-top) top / 100% 80px no-repeat;
    }
    .ep-foot a { color: inherit; text-decoration: none; }
    .ep-foot a:hover { color: #fff; }
    .ep-foot__grid { display: grid; grid-template-columns: 170px 1.35fr 0.8fr 0.85fr 0.75fr; gap: 34px; align-items: center; }
    .ep-foot__grid--text { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.7fr; }
    .ep-foot__grid > :not(.ep-foot__brand) { min-height: 110px; padding-left: 34px; border-left: 1px solid var(--ep-dark-line); }
    .ep-foot__grid--text > :first-child { padding-left: 0; border-left: 0; }
    .ep-foot__brand { display: block; width: 150px; }
    .ep-foot__logo { width: 150px; height: 150px; }
    .ep-foot__title { color: #fff; font-size: 38px; line-height: 1.06; }
    .ep-foot h3 { margin-bottom: 12px; color: var(--ep-on-dark); font-size: 20px; line-height: 1.2; }
    .ep-foot__col { font-size: 14px; line-height: 1.6; }
    .ep-foot__col li a { display: inline-flex; align-items: center; gap: 10px; padding-block: 3px; }
    /* A social network's mark beside its name (Site settings › social links). */
    .ep-foot__network { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 6px; background: color-mix(in oklab, var(--ep-gold) 55%, var(--ep-on-dark)); color: var(--ep-dark); }
    .ep-foot__contact { margin-top: 6px; }
    .ep-foot__note { margin-top: 4px; font-size: 12.5px; color: var(--ep-on-dark-muted); }
    .ep-outline {
        display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 18px; padding: 9px 18px; border: 1px solid color-mix(in oklab, var(--ep-gold) 70%, var(--ep-on-dark));
        border-radius: 5px; font: 400 16px/1.3 var(--ep-serif); transition: background-color 0.2s;
    }
    .ep-outline:hover { background: color-mix(in srgb, var(--ep-on-dark) 10%, transparent); }
    .ep-foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--ep-dark-line); font-size: 12.5px; color: var(--ep-on-dark-muted); }
    .ep-foot__bottom ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
    .ep-foot__bottom li + li { padding-left: 18px; border-left: 1px solid var(--ep-dark-line); }
    .ep-foot__bottom a { display: inline-block; padding-block: 4px; }

    /* ---------- Motion (not in the editor; never for visitors who ask for less) ---------- */
    @keyframes ep-rise { from { opacity: 0; transform: translateY(22px); } }
    /* The opening's photo moves from an already visible state: it shows from the first frame (what a search engine
       measures as the largest paint), then settles. */
    @keyframes ep-settle { from { transform: scale(1.04); } }
    @keyframes ep-arrive { from { opacity: 0; transform: translateY(12px); } }
    @keyframes ep-emerge { from { -webkit-mask-position: 0 var(--ep-emerge); mask-position: 0 var(--ep-emerge); } }
    @media (prefers-reduced-motion: no-preference) {
        /* The opening's text comes in once, quickly (never greyed for long): the title at once, then the rest. */
        .site:not([data-cms-editor]) .ep-hero__copy > * { animation: ep-arrive 0.7s var(--ep-ease) both; }
        .site:not([data-cms-editor]) .ep-hero__copy > :nth-child(2) { animation-delay: 0.07s; }
        .site:not([data-cms-editor]) .ep-hero__copy > :nth-child(3) { animation-delay: 0.14s; }
        .site:not([data-cms-editor]) .ep-hero__copy > :nth-child(n + 4) { animation-delay: 0.21s; }
        .site:not([data-cms-editor]) .ep-hero__door img { animation: ep-settle 1.6s var(--ep-ease) both; }
        /* The wide photo rises out of the waves: its wavy top edge comes up into place. Its mask moves, not the photo
           (moved, it showed under the waves at the bottom of the opening; fading, it let the door show through it). */
        .site:not([data-cms-editor]) .ep-hero__living { animation: ep-emerge 1.3s var(--ep-ease) 0.3s both; }
        dialog.ep-dialog[open] { animation: ep-rise 0.4s var(--ep-ease); }
    }
    /*
     * The opening in depth (parallax), driven by the scroll (no script): while the photo of the door leaves the screen,
     * the picture drifts down in its frame — it seems further away, scrolling slower than the page; the caption stays
     * on the frame. It moves only once the frame's top has left the screen: the opening is as designed at the top of
     * the page and no empty edge ever shows. (The living room's photo stays put: rising, it would run into the button.)
     */
    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            /* The frame's passage, not the picture's (inside a frame that clips, view() would follow the frame's own
               scroll, which never moves), over the whole screen: the scroll padding kept for the header is ignored. */
            .site:not([data-cms-editor]) .ep-hero__door { view-timeline: --ep-door block; view-timeline-inset: 0px; }
            .site:not([data-cms-editor]) .ep-hero__door img {
                animation: ep-settle 1.6s var(--ep-ease) both, ep-hero-drift linear both;
                animation-timeline: auto, --ep-door; animation-range: normal, exit;
            }
        }
    }
    @keyframes ep-hero-drift { to { translate: 0 30%; } }
    /*
     * The quote request's photo comes out from under the form as the section comes up the screen, and settles in its
     * place once in the middle of it (beside the form on wide screens, above it on narrower ones). The form stays
     * still and opaque while the photo passes under it.
     */
    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            .site:not([data-cms-editor]) .ep-contact__photo {
                animation: ep-from-form linear both; animation-timeline: view(block 0px); animation-range: entry 0% cover 50%;
            }
            @media (max-width: 1000px) {
                .site:not([data-cms-editor]) .ep-contact__photo { animation-name: ep-from-form-below; }
            }
        }
    }
    @keyframes ep-from-form { from { transform: translateX(30%); animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1); } }
    @keyframes ep-from-form-below { from { transform: translateY(32%); animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1); } }
    /*
     * The options' photos in depth, driven by the scroll (no script): coming up the screen, the three open like a
     * triptych — the side ones turned on their inner edge, the middle one standing up —, they face the visitor in the
     * middle of the screen and lean back a little as they leave. Browsers without scroll-driven animations show them
     * still. Each photo follows its own passage across the screen (on phones the third, under the others, comes after).
     */
    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            .site:not([data-cms-editor]) .ep-attentions__photos { perspective: 1500px; }
            .site:not([data-cms-editor]) .ep-attentions__photo {
                view-timeline: --ep-photo block; view-timeline-inset: 0px; transform-origin: 50% 100%;
                animation: ep-stand linear both; animation-timeline: --ep-photo; animation-range: cover 0% cover 100%;
            }
            .site:not([data-cms-editor]) .ep-attentions__photo img {
                animation: ep-drift linear both; animation-timeline: --ep-photo; animation-range: cover 0% cover 100%;
            }
            /* The light leaves a photo turned away from it. */
            .site:not([data-cms-editor]) .ep-attentions__photo::after {
                content: ''; position: absolute; inset: 0; background: var(--ep-dark); opacity: 0; pointer-events: none;
                animation: ep-shade linear both; animation-timeline: --ep-photo; animation-range: cover 0% cover 100%;
            }
            .site:not([data-cms-editor]) .ep-attentions__photos:not(.ep-attentions__photos--1) > .ep-attentions__photo:first-child { transform-origin: 100% 50%; animation-name: ep-wing-left; }
            .site:not([data-cms-editor]) :is(.ep-attentions__photos--2, .ep-attentions__photos--3) > .ep-attentions__photo:last-child { transform-origin: 0 50%; animation-name: ep-wing-right; }
            /* Phones: the first two, side by side, open from their inner edges; the third, under them, stands up. */
            @media (max-width: 680px) {
                .site:not([data-cms-editor]) .ep-attentions__photos { perspective: 900px; }
                .site:not([data-cms-editor]) .ep-attentions__photos--3 > .ep-attentions__photo:nth-child(2) { transform-origin: 0 50%; animation-name: ep-wing-right; }
                .site:not([data-cms-editor]) .ep-attentions__photos--3 > .ep-attentions__photo:last-child { transform-origin: 50% 100%; animation-name: ep-stand; }
            }
        }
    }
    @keyframes ep-wing-left {
        0% { transform: translateY(30px) rotateY(44deg) rotateX(12deg) scale(0.93); }
        48%, 54% { transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1); }
        100% { transform: translateY(-34px) rotateY(-16deg) rotateX(-6deg) scale(0.97); }
    }
    @keyframes ep-wing-right {
        0% { transform: translateY(30px) rotateY(-44deg) rotateX(12deg) scale(0.93); }
        48%, 54% { transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1); }
        100% { transform: translateY(-34px) rotateY(16deg) rotateX(-6deg) scale(0.97); }
    }
    @keyframes ep-stand {
        0% { transform: translateY(40px) rotateX(52deg) scale(0.9); }
        48%, 54% { transform: translateY(0) rotateX(0deg) scale(1); }
        100% { transform: translateY(-42px) rotateX(-14deg) scale(0.96); }
    }
    @keyframes ep-drift {
        from { transform: translateY(-5%) scale(1.12); }
        to { transform: translateY(5%) scale(1.12); }
    }
    @keyframes ep-shade {
        0% { opacity: 0.26; }
        48%, 54% { opacity: 0; }
        100% { opacity: 0.1; }
    }
    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        :is(.ep-button, .ep-arrow) { transition: none; }
    }

    /* ---------- Very wide screens: the presentation's photo stays within the content ---------- */
    @media (min-width: 1500px) {
        .ep-intro__tall { right: 0; }
    }

    /* ---------- Small laptops and tablets: the quote request's photo above its title, the footer on two rows ---------- */
    @media (max-width: 1180px) {
        .ep-service { grid-template-columns: 48px 1fr; gap: 6px 15px; }
        .ep-service p { grid-column: 2; }
    }
    @media (max-width: 1100px) {
        .ep-about__grid:not(.ep-about__grid--text) { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); grid-template-areas: 'head photo' 'text photo'; gap: 26px 7%; }
        .ep-about__grid:not(.ep-about__grid--text) > .ep-about__head { grid-area: head; align-self: end; }
        .ep-about__grid:not(.ep-about__grid--text) > .ep-about__portrait { grid-area: photo; }
        .ep-about__grid:not(.ep-about__grid--text) > .ep-about__text { grid-area: text; align-self: start; }
        .ep-about .ep-about__text { font-size: 16px; }
        .ep-hero__inner { height: 1000px; }
        .ep-hero__living { height: 400px; }
        .ep-contact__grid { gap: 44px; }
        .ep-card { padding: 38px 34px 32px; }
        .ep-foot__grid { grid-template-columns: 120px 1.5fr 1fr; gap: 26px; }
        .ep-foot__grid > :not(.ep-foot__brand) { padding-left: 22px; }
        .ep-foot__grid > :nth-child(4) { grid-column: 2; }
        .ep-foot__grid--text { grid-template-columns: 1.5fr 1fr; }
        .ep-foot__grid--text > :nth-child(4) { grid-column: auto; }
        .ep-foot__brand, .ep-foot__logo { width: 120px; }
        .ep-foot__logo { height: 120px; }
    }

    /* ---------- Tablets ---------- */
    @media (max-width: 1000px) {
        :root { --ep-wave: 70px; --ep-ribbon: 20px; }
        .ep-hero::before, .ep-hero::after { height: 200px; }
        .ep-hero__waves { height: 130px; }
        .ep-hero__inner { height: 860px; }
        .ep-hero__inner { --ep-door-k: 0.6255; }
        .ep-hero__living { height: 330px; }
        .ep-hero__caption { bottom: 120px; font-size: 22px; }
        .ep-hero__copy { padding-top: 50px; }
        .ep-hero__text { max-width: 420px; font-size: 17px; }
        .ep-hero__text.ep-flow br { display: none; }
        .ep-intro__grid { gap: 5%; }
        .ep-intro__copy { max-width: 350px; }
        .ep-about__photo { height: 420px; }
        .ep-lead { font-size: 22px; }
        .ep-about .ep-lead { font-size: 21px; }
        .ep-text { font-size: 16px; }
        .ep-services__grid { grid-template-columns: 1fr 230px; gap: 18px 34px; }
        .ep-services__grid--wide { grid-template-columns: 1fr; }
        .ep-service__number { font-size: 28px; }
        .ep-service h3 { font-size: 27px; }
        .ep-services__image { height: 240px; }
        .ep-services__caption { font-size: 21px; }
        .ep-heading { display: block; margin-bottom: 30px; }
        .ep-heading > .ep-text { max-width: 520px; margin-top: 18px; padding-bottom: 0; }
        .ep-attentions__photo { height: 230px; }
        .ep-pack { padding-inline: 16px; }
        .ep-pack h3 { font-size: 24px; }
        .ep-place__photo { height: 330px; }
        .ep-reviews__list > li { padding-inline: 20px; }
        .ep-review blockquote { font-size: 18px; }
        .ep-contact__grid { grid-template-columns: 1fr; gap: 48px; }
        .ep-contact__photo { height: clamp(320px, 52vw, 460px); }
    }

    /* ---------- Phones ---------- */
    @media (max-width: 680px) {
        :root { --ep-wave: 50px; --ep-ribbon: 14px; --ep-round: 12px; }
        :is(.ep-attentions, .ep-place, .ep-contact) { --ep-bleed: -6cqw; }
        .site.site { font-size: 15px; }
        .ep-wrap { width: 88%; }
        .ep-section { --ep-pt: 65px; --ep-pb: 65px; }
        .ep-flow br { display: none; }
        .ep-eyebrow { font-size: 11.5px; letter-spacing: 0.24em; }
        .ep-rule { margin: 22px 0; }
        .ep-text { font-size: 15.5px; }
        .ep-button { min-height: 52px; padding: 13px 24px; font-size: 18px; }

        .ep-hero::before, .ep-hero::after { height: 150px; }
        .ep-hero__waves { height: 80px; }
        .ep-hero__inner { display: grid; grid-template-columns: 1fr 1fr; height: auto; padding-bottom: 30px; }
        .ep-hero__copy { grid-column: 1 / -1; width: auto; max-width: none; padding: 30px 0 38px; }
        .ep-hero__title { font-size: clamp(38px, 10.6vw, 60px); }
        .ep-hero__kicker { margin-bottom: 16px; }
        .ep-hero__text { max-width: 330px; font-size: 16px; margin-bottom: 24px; }
        .ep-hero__door { position: relative; right: auto; top: auto; grid-column: 2; grid-row: 2; width: 114%; height: 420px; border-radius: var(--ep-round) 0 0 0; }
        .ep-hero__caption { right: 12px; bottom: 74px; max-width: calc(72% - 22px); font-size: 16px; }
        .ep-hero__living { position: relative; left: -14%; bottom: auto; grid-column: 1; grid-row: 2; width: 145%; max-width: none; height: 250px; margin-top: 170px; border-width: 4px; --ep-emerge: 40px; }

        .ep-intro { --ep-pb: 100px; --ep-wave: 55px; }
        .ep-intro__grid { grid-template-columns: 1fr; gap: 35px; }
        .ep-intro__copy { max-width: none; }
        .ep-intro__images { min-height: 350px; }
        .ep-intro__tall { right: 0; top: 0; width: 57%; height: 340px; }
        .ep-intro__small { left: 0; bottom: 0; width: 53%; height: 225px; }
        .ep-signature { width: 85px; height: 65px; }
        :is(.ep-intro, .ep-about) .ep-eyebrow { font-size: 11px; }
        :is(.ep-intro, .ep-about) .ep-text { font-size: 15.5px; }

        .ep-about { --ep-pt: 20px; --ep-pb: 20px; --ep-wave: 55px; }
        .ep-about__grid, .ep-about__grid:not(.ep-about__grid--text) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'photo' 'text'; gap: 30px; }
        .ep-about__grid--text { grid-template-areas: none; }
        .ep-lead { max-width: none; font-size: 22px; }
        .ep-about .ep-lead { max-width: none; font-size: 23px; }
        .ep-about__portrait { width: min(100%, 300px); margin: 0 auto; }
        .ep-about__photo { height: 390px; }
        .ep-about__portrait figcaption { font-size: 11px; }
        .ep-about .ep-about__text { font-size: 15.5px; }

        .ep-services { --ep-pt: 110px; --ep-pb: 110px; }
        .ep-services__grid { grid-template-columns: 1fr; gap: 28px; }
        .ep-services__cta, .ep-services__photo { grid-column: auto; grid-row: auto; }
        .ep-service { grid-template-columns: 44px 1fr; padding: 20px 0; }
        .ep-service h3 { font-size: 25px; }
        .ep-service p { font-size: 15px; }
        .ep-services__photo { display: flex; align-items: center; gap: 22px; }
        .ep-services__image { flex: none; width: 46%; height: 170px; }
        .ep-services__caption { margin: 0; font-size: 22px; }

        .ep-attentions { --ep-pt: 20px; --ep-pb: 35px; }
        .ep-heading { margin-bottom: 28px; }
        .ep-heading > .ep-text { max-width: 340px; }
        .ep-attentions__photos { grid-template-columns: 1fr 1fr; gap: 8px; margin-inline: calc(var(--ep-bleed) + 6px); }
        .ep-attentions__photos--1 { grid-template-columns: 1fr; }
        .ep-attentions__photo { height: 170px; }
        .ep-attentions__photos--3 .ep-attentions__photo:last-child { grid-column: 1 / -1; height: 185px; }
        .ep-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; margin-top: 26px; }
        .ep-pack, .ep-pack:nth-child(4n + 1) { padding-inline: 16px; }
        .ep-pack:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--ep-line); }
        .ep-pack:nth-child(even) { padding-right: 0; border-right: 0; }
        .ep-pack:last-child { border-right: 0; }
        .ep-pack h3 { font-size: 23px; }

        .ep-place { --ep-pt: 100px; --ep-pb: 100px; }
        .ep-place__grid { grid-template-columns: 1fr; gap: 32px; }
        .ep-place--right .ep-place__media { order: 0; margin-right: 0; margin-left: var(--ep-bleed); }
        .ep-place__photo, .ep-place--right .ep-place__photo { height: 280px; margin-right: 0; border-radius: 0 var(--ep-round) var(--ep-round) 0; }
        .cms-section:has(+ .cms-section > .ep-band) > .ep-place .ep-place__media { margin-bottom: 0; }
        .cms-section:has(+ .cms-section > .ep-band) > .ep-place .ep-place__copy { margin-bottom: 0; }

        .ep-reviews { --ep-pt: 20px; --ep-pb: 35px; }
        .ep-reviews__list, .ep-reviews__list--2 { grid-template-columns: 1fr; gap: 30px; }
        .ep-reviews__list > li { padding: 0 0 26px; border-right: 0; border-bottom: 1px solid var(--ep-line); }
        .ep-reviews__list > li:last-child { padding-bottom: 0; border-bottom: 0; }
        .ep-review blockquote { font-size: 20px; }

        .ep-contact { --ep-pt: 110px; --ep-pb: 120px; }
        .ep-contact__grid { grid-template-columns: 1fr; gap: 36px; }
        .ep-contact__copy { max-width: calc(94% - var(--ep-bleed)); padding: 0 24px 22px calc(-1 * var(--ep-bleed)); border-bottom-right-radius: 30px; }
        .ep-contact .ep-title { font-size: clamp(34px, 9.4vw, 44px); }
        .ep-contact__text { font-size: 15.5px; }
        .ep-contact__media { margin-top: -64px; }
        .ep-contact__photo { height: clamp(260px, 78vw, 340px); border-radius: 0 80px 0 0; }
        .ep-card { padding: 30px 22px 26px; border-radius: 18px; }
        .ep-card__title { margin-bottom: 22px; font-size: 26px; }
        .ep-card__text { margin: -12px 0 22px; }
        .ep-chip span { min-height: 44px; }
        .ep-form__grid { gap: 18px 14px; }
        .ep-send { min-height: 54px; padding-inline: 24px; font-size: 18px; }
        /* At least 16 px: a phone does not zoom into the field it focuses. */
        .ep-field :is(input:not([type='checkbox']):not([type='radio']), textarea) { font-size: 16px; }
        dialog.ep-dialog { padding: 40px 22px 26px; }
        .ep-dialog .ep-title { font-size: 31px; }

        .ep-foot { padding-top: 22px; }
        .ep-foot::before { inset-block-start: -49px; -webkit-mask-size: 100% 50px, 100% calc(100% - 49px); mask-size: 100% 50px, 100% calc(100% - 49px); -webkit-mask-position: top, 0 49px; mask-position: top, 0 49px; }
        .ep-foot::after { inset-block-start: -63px; height: 50px; -webkit-mask-size: 100% 50px; mask-size: 100% 50px; }
        .ep-foot__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
        .ep-foot__brand, .ep-foot__logo { width: 115px; }
        .ep-foot__logo { height: 115px; }
        .ep-foot__title { font-size: clamp(26px, 7.4vw, 32px); }
        .ep-foot__grid > :not(.ep-foot__brand) { min-height: 70px; padding-left: 16px; }
        .ep-foot__grid > .ep-foot__invite { grid-column: 1 / -1; min-height: 0; padding-left: 0; border-left: 0; }
        .ep-foot__grid > :nth-child(3) { padding-left: 0; border-left: 0; }
        .ep-foot__grid > :last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
        .ep-foot__bottom { flex-direction: column; align-items: flex-start; }
        .ep-outline { gap: 12px; padding: 8px 12px; font-size: 15px; }
    }
    @media (max-width: 480px) {
        .ep-summary { grid-template-columns: minmax(0, 1fr); gap: 2px; }
        .ep-summary dt { font-size: 12.5px; }
        .ep-summary dt:not(:first-child) { margin-top: 10px; }
    }
    @media (max-width: 420px) {
        .ep-form__grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 380px) {
        .ep-hero__note { font-size: 12.5px; }
    }
    @media (min-width: 1601px) {
        .ep-place__photo, .ep-place--right .ep-place__photo { border-radius: var(--ep-round); }
        .ep-contact__photo { border-radius: var(--ep-round) 150px var(--ep-round) var(--ep-round); }
    }
    @media (min-width: 1921px) {
        .ep-hero__door { border-radius: var(--ep-round) var(--ep-round) 0 0; }
        .ep-hero__living { border-left-width: 6px; }
    }
}

/*
 * Outside the layer on purpose: the core's header and dialog styles are not layered, so what must beat them (the
 * header's look, the menu on phones, centred dialogs, the legal pages' titles) lives here.
 */
.site.site .site-header { border-bottom: 0; background: var(--ep-cream); }
/* Over the opening, until the page moves: the opening's sand runs under the logo. */
.site.site .site-header--overlay:not([data-cms-scrolled]) { background: transparent; }
.site.site .site-header__inner { box-sizing: border-box; width: min(1280px, 90%); max-width: none; min-height: 88px; margin-inline: auto; padding-inline: 0; }
/* Once the page moves, a hairline and a soft shadow lift the bar off the text passing under it (no script). */
@supports (animation-timeline: scroll()) {
    .site.site .site-header--sticky { animation: ep-header-lift linear both; animation-timeline: scroll(); animation-range: 0 120px; }
}
/* The quote button in the bar, and beside the Menu toggle on phones: the site's button, smaller. */
.site.site .site-nav a.site-nav__button, .site.site .site-header__cta {
    min-height: 44px; padding: 10px 20px; border: 0; border-radius: 5px; background: var(--ep-button); color: var(--ep-on-button);
    font: 400 17px/1.2 var(--ep-serif); letter-spacing: 0; box-shadow: none; align-items: center;
}
.site.site .site-nav a.site-nav__button:hover, .site.site .site-header__cta:hover { background: var(--ep-button-hover); color: var(--ep-on-button); }
/* Reading down, the bar slides away with its shadow. */
.site.site .site-header[data-cms-hidden] { transform: translateY(calc(-100% - 48px)); }
@keyframes ep-header-lift {
    from { box-shadow: 0 1px 0 transparent, 0 18px 36px -28px transparent; }
    to { box-shadow: 0 1px 0 var(--ep-line), 0 18px 36px -28px color-mix(in srgb, var(--ep-dark) 50%, transparent); }
}
.site.site .site-nav__list { gap: 6px 46px; }
.site.site .site-nav a { padding-block: 6px; border-bottom: 0; color: var(--ep-muted); font: 400 18px/1.3 var(--ep-serif); letter-spacing: -0.005em; }
.site.site .site-nav a:hover, .site.site .site-nav a[aria-current='page'] { color: var(--ep-gold); }
.site.site .site-menu__toggle { font: 400 17px/1 var(--ep-serif); color: var(--ep-title); }
.site.site .site-menu__panel { padding-inline: 6%; background: var(--ep-cream); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--ep-dark) 60%, transparent); }
/* The menu open: the page dims under the panel (a click on it closes the menu: the CMS's menu.js) and the bar takes
   its paper back (over the opening it was see-through). Both are drawn under the bar's content, the paper over the
   veil: the bar's own background would be under it. */
.site.site .site-header:has(.site-menu[open]) { background: transparent; }
.site.site .site-header:has(.site-menu[open])::before,
.site.site .site-header:has(.site-menu[open])::after { content: ''; z-index: -1; pointer-events: none; }
.site.site .site-header:has(.site-menu[open])::before { position: fixed; inset: 0; background: color-mix(in srgb, var(--ep-dark) 30%, transparent); pointer-events: auto; }
.site.site .site-header:has(.site-menu[open])::after { position: absolute; inset: 0; background: var(--ep-cream); box-shadow: 0 1px 0 var(--ep-line); }
.site.site .site-menu__panel li + li { border-top-color: var(--ep-line); }
.site.site .site-menu__panel a { color: var(--ep-title); font: 400 22px/1.3 var(--ep-serif); letter-spacing: -0.015em; }
.site.site :is(.hero__title, .status-page__title, .prose h2, .prose h3, .legal-notice h1, .legal-notice h2, .legal-notice h3) { font-family: var(--ep-serif); font-weight: 400; letter-spacing: -0.02em; }
:is(.ep-hero, .ep-section, .ep-dialog) a.ep-button { text-decoration: none; }
dialog.ep-dialog { position: fixed; inset: 0; margin: auto; text-align: left; }
@media (max-width: 1000px) {
    .site.site .site-nav__list { gap: 6px 26px; }
}
@media (max-width: 680px) {
    .site.site .site-header__inner { width: 88%; min-height: 68px; }
    .site.site .site-brand__logo img { height: min(var(--brand-h, 50px), 50px); }
}
