/* ============================================================================
   Azure Stone Villas — this install's own styles.
   Loaded after theme/css/theme.css (layout.blade.php), so everything here
   wins. Plain CSS, no build step.

   Palette, type scale and radius taken from the reference site
   (azurestonevillas.gr → assets/style.css :root).

   The reference is a DARK site: body { background: var(--azure-deep) } with
   light text, and occasional light "stone" bands on top. That is the opposite
   of the theme's default (light page, dark bands), so the page ground is
   flipped here and the stone band re-declares the tokens it needs.
   ========================================================================= */

:root {
    /* ---- Ground and text ------------------------------------------------ */
    --color-bg: #7f969e; /* --azure-deep: the main colour */
    --color-text: #f4f7fb; /* --light */
    --color-ink: #f4f7fb; /* "text on the page ground" in the theme */
    --color-muted: rgb(244 247 251 / 0.74); /* --light-soft */
    --color-border: rgb(244 247 251 / 0.14);
    --color-border-strong: rgb(244 247 251 / 0.34);

    /* Cards and insets sit slightly above the ground, never white. */
    --color-surface: #4c4444; /* --azure-mid */
    --color-surface-2: #617379; /* --azure-night */

    /* ---- Section bands (Φόντο in the Ενότητα block) --------------------- */
    --color-soft: #f3eee6; /* --stone: the light band */
    --color-dark: #7f969e; /* the deep band — same as the ground */
    --color-dark-ink: #f4f7fb;
    --color-brand: #0c1a2b; /* if any section is still set to "brand" */
    --color-brand-ink: #f4f7fb;

    /* ---- Accent: gold, used sparingly ---------------------------------- */
    --color-accent: #c9a96a; /* --gold — 7.7:1 on the deep ground */
    --color-accent-hover: #d8bd85;
    --color-accent-contrast: #0c1a2b; /* text on a gold fill — 8.5:1 */
    --color-accent-soft: rgb(201 169 106 / 0.18);
    --color-sage: var(--color-accent); /* legacy alias in the theme */

    /* ---- Typeface -------------------------------------------------------
       Gentium Book Plus (4/11/2026, closest free web font to the logo's
       Book Antiqua, with proper Greek accents; SIL Open Font License),
       loaded from Google Fonts by the tags in site_settings.head_code. It
       has 400 and 700 (+ italics); the 300/500 weights used below fall back
       to 400. If Google Fonts is slow or blocked, Book Antiqua / Palatino
       (on most computers) keep the same look.
       Before: "Geom", "Google Sans", … sans-serif (until 4/11/2026), then
       "Tinos" for a few hours on 4/11/2026.
       ------------------------------------------------------------------- */
    --font-body: "Gentium Book Plus", "Book Antiqua", "Palatino Linotype",
        Palatino, Georgia, serif;
    --font-heading: var(--font-body);

    /* ---- Type scale ----------------------------------------------------- */
    --fs-base: 1rem; /* reference body is 16px */
    --fs-sm: 0.875rem;
    --fs-xs: 0.75rem;
    --fs-lg: 1.125rem;
    --fs-h1: clamp(2rem, 4.4vw, 3.6rem);
    --fs-h2: clamp(1.5rem, 3.6vw, 2rem);
    --fs-h3: clamp(1.3rem, 2.3vw, 1.85rem);
    --fs-h4: clamp(1.2rem, 1.9vw, 1.5rem);

    /* ---- Shape and measure --------------------------------------------- */
    --radius: 2px;
    --radius-lg: 2px;
    --radius-pill: 2px; /* the reference has no rounded shapes */
    --container: 1240px; /* --max; --wide follows this */
    --shadow: 0 24px 60px rgb(3 10 20 / 0.5);
}

/* The reference runs a looser body line-height than the theme's 1.6. */
body {
    line-height: 1.7;
}

/* ---------------------------------------------------------------------------
   The scrollbar: a slim gold bar on the night ground, square like the rest
   of the site. Chrome, Edge and Safari take the ::-webkit-scrollbar rules
   (which allow the inset look); Firefox, which has no such selector, takes
   scrollbar-color. Both are not given to the same browser on purpose: in
   Chrome 121+ scrollbar-color would switch the ::-webkit-scrollbar rules off.
   ------------------------------------------------------------------------ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-2);
}

::-webkit-scrollbar-thumb {
    background: rgb(201 169 106 / 0.55); /* --gold, softened */
    border: 2px solid var(--color-surface-2); /* the gap around the bar */
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-accent-hover);
}

::-webkit-scrollbar-thumb:active {
    background-color: var(--color-accent);
}

::-webkit-scrollbar-corner {
    background: var(--color-surface-2);
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: rgb(201 169 106 / 0.6) var(--color-surface-2);
        scrollbar-width: thin;
    }
}

/* ---------------------------------------------------------------------------
   The light "stone" band. The theme only sets its background, so on a dark
   page its text would stay light and vanish. Re-declaring the tokens inside
   the band lets every element in it (cards, captions, muted text, links)
   adapt without naming them one by one.
   ------------------------------------------------------------------------ */
.section--bg-soft {
    --color-text: #0f1e30; /* --ink */
    --color-ink: #0f1e30;
    --color-muted: #46505e; /* --ink-soft */
    --color-border: rgb(15 30 48 / 0.14);
    --color-border-strong: rgb(15 30 48 / 0.3);
    --color-surface: #e8dfd1; /* --stone-2 */
    --color-surface-2: #dcd0bc; /* --stone-3 */
    --color-accent: #7d6129; /* --gold-ink: gold is only 2:1 on
                                                 stone; this is 5.1:1 (AA) */
    --color-accent-hover: #5f4a1f;
    --color-accent-contrast: #f3eee6;
    --shadow: 0 18px 40px rgb(15 30 48 / 0.12);
    color: var(--color-text);
}

/* ---------------------------------------------------------------------------
   Buttons on a deep band. The theme inverts them to the page background,
   which on a dark page means a dark button on a dark band. Gold instead.
   ------------------------------------------------------------------------ */
.section:is(.section--bg-brand, .section--bg-dark, .section--bg-image)
    .button:not(.button--ghost) {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

.section:is(.section--bg-brand, .section--bg-dark, .section--bg-image)
    .button:not(.button--ghost):hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* ===========================================================================
   HERO — full viewport, looped video, gradient shade over it, title on top.

   What the theme renders (theme/blocks/section.blade.php), with the settings
   01-home-design.sql writes:

     .hero
       section.section.section--bg-video.section--w-bleed.section--h-screen
         .section__bg.section__bg--video      <- the <video>, plus its ::after
         button.section__video-toggle          <- pause/play
         .section__inner > .section__col
           .block.el-heading.el--maxw-text.el--align-center
             p.eyebrow / h1.el-heading__title--xl / p.el-heading__subtitle

   The loop, autoplay and muted attributes come from the block settings, not
   from here: «Βίντεο: επανάληψη» and «Βίντεο: αυτόματη αναπαραγωγή», both
   turned on by the patch. theme/js/base.js only attaches the source and
   plays it when it should (never under "reduce motion", and on phones only
   when «Βίντεο στο κινητό» says so).
   ======================================================================== */

/* Take the whole screen. The theme subtracts --header-height because its
   header is sticky and occupies space; here the header floats over the hero. */
.hero .section--h-screen {
    min-height: 100vh;
    min-height: 100svh;
}

/* The theme tucks a hero up under the sticky header by --main-pad. With the
   header fixed and transparent, the hero starts at the very top instead. */
.hero > .section:first-child {
    margin-top: 0;
}

/* Since the update the theme pads <main> top and bottom by --main-pad
   (clamp(2rem, 5vw, 4rem)). A page that opens with the hero or the inner-page
   head brings its own top space, so that padding was an empty band above it. */
main:has(.hero > .section, .page-intro) {
    padding-top: 0;
}

/* The shade. The theme paints a flat rgb(0 0 0 / var(--overlay)) on this same
   ::after; the reference layers a radial over a vertical gradient, which keeps
   the centre of the frame clear while darkening the top for the header and the
   bottom for the section that follows. */
.hero .section--bg-video > .section__bg::after {
    background:
        radial-gradient(
            ellipse at center,
            transparent 0%,
            rgb(8 18 35 / 0.5) 100%
        ),
        linear-gradient(
            to bottom,
            rgb(15 30 55 / 0.65),
            rgb(15 30 55 / 0.45) 50%,
            rgb(8 18 35 / 0.9)
        );
}

/* The title sits absolutely over the video, rather than being laid out by the
   section grid, so the hero's height never depends on its content. */
.hero .section--bg-video > .section__inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    align-content: center;
    padding-block: calc(var(--header-height) + 2rem) 4rem;
    padding-inline: var(--edge);
    text-align: center;
}

/* 48px on a phone, 96px on a desktop — the reference's two sizes. */
.hero .section--bg-video .el-heading__title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* The title's last word, in gold — "Azure Stone Villas" → "Villas". «Τίτλος»
   is one plain-text field, so there is no element in the markup to select
   just that word; site.js wraps it in this span on page load. Scoped to
   .hero rather than .hero-accent alone, so a heading block elsewhere on the
   site that happens to reuse el-heading__title is never affected. */
.hero .el-heading__title .hero-accent {
    color: var(--color-accent);
}

/* The gold, widely tracked line above the title. */
.hero .section--bg-video .eyebrow {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

.hero .section--bg-video .el-heading__subtitle {
    max-width: 36rem;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.8);
}

/* ===========================================================================
   HEADER — transparent over the hero, a blurred backdrop once you scroll.

   The backdrop stays on .site-header::before, which the theme already uses as
   a separate layer: a backdrop-filter on the header itself would make it the
   containing block for the full-screen phone menu. public/site/site.js adds
   .is-scrolled past 40px, the same threshold as the reference site.
   ======================================================================== */

.site-header {
    border-bottom: 0;
}

/* Fixed only on a page that has a hero (or an inner page's image, INNER
   PAGES) to float over. Elsewhere the theme's sticky header is right: it
   occupies its space and nothing slides under it. */
body:is(:has(.hero .section), :has(.page-intro--image)) .site-header {
    position: fixed;
    inset: 0 0 auto 0;
}

.site-header {
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header::before {
    background:var(--color-surface-2);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Opaque once scrolled, and always while the phone menu is open. */
.site-header.is-scrolled::before,
.site-header[data-nav-open]::before {
    opacity: 1;
}

/* The shadow only once scrolled, coming in with the backdrop: at the top
   the header floats over the photo with nothing under it. */
.site-header.is-scrolled {
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header::before {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   The logo.

   There are two files — gold (logo-bright-…png, for dark backgrounds) and
   black (logo-…png, for light ones) — but the theme renders only ONE of them:
   site_profile.logo_media_id (layout.blade.php:15). «Λογότυπο για σκούρο
   φόντο» is saved by the admin form and read nowhere on the public site, so
   whatever is in it has no effect.

   So: put the GOLD file in the main «Λογότυπο» field. It is the one that has
   to work over the hero video, which is where the header spends most of its
   time. No filter is applied there — the gold is the brand colour and should
   stay gold.

   The black treatment belongs on a LIGHT bar. brightness(0) turns the same
   artwork black (alpha untouched, so the PNG stays transparent), which is
   what the second file is anyway. It is keyed to .is-stone rather than
   .is-scrolled on purpose: today's scrolled backdrop is deep navy, and a
   black logo on navy is invisible. The class arrives with the stone header
   bar; until then the logo stays gold throughout, which is correct.
   ------------------------------------------------------------------------ */
.site-logo__img {
    height: 104px;
    width: auto;
    max-height: none;
    transition:
        filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-stone .site-logo__img {
    filter: brightness(0);
}

/* Smaller logo once the menu collapses to the burger. There is no media
   query for that: nav.js sets data-nav-mode="mobile" below 1024px, or when
   the desktop row doesn't fit. It measures in desktop mode, so this size
   doesn't feed back into the decision. */
.site-header[data-nav-mode="mobile"] .site-logo__img {
    height: 65px;
    padding-bottom: 10px;
}

/* Smaller again once scrolled (.is-scrolled, site.js job 2), so the bar
   takes less of the page; back to full size at the top. Not while the phone
   menu is open: its logo sits where the header row's was. */
.site-header.is-scrolled:not([data-nav-open]) .site-logo__img {
    height: 44px;
}

.site-header[data-nav-mode="mobile"].is-scrolled:not([data-nav-open]) .site-logo__img {
    height: 36px;
    padding-bottom: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .site-logo__img {
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   The menu in the middle: logo left, nav centred, language switcher right.

   The nav and the switcher both live inside .site-menu, which is a sibling of
   the logo, so centring the nav means reaching across that wrapper. It is done
   with subgrid rather than `display: contents`, on purpose: nav.js chooses
   between the desktop row and the burger by measuring whether .site-menu's
   right edge runs past the header's (nav.js:103-105), and an element with
   `display: contents` has no box to measure — that check would always say "it
   fits" and the menu would stop collapsing on narrow desktops. With subgrid
   .site-menu keeps a real box, so if the row ever gets too long the grid
   overflows and the measurement still trips.

   The two 1fr columns are equal, so the middle one is centred in the header
   rather than in whatever space the logo leaves over.
   ------------------------------------------------------------------------ */
@supports (grid-template-columns: subgrid) {
    [data-nav-mode="desktop"] .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
                width: 100%;
        padding: 0px 10px;
        padding-bottom: 10px;
        max-width: 1800px;
    }

    [data-nav-mode="desktop"] .site-logo {
        justify-self: start;
    }

    [data-nav-mode="desktop"] .site-menu {
        display: grid;
        grid-template-columns: subgrid;
        grid-column: 2 / 4;
        align-items: center;
        margin-left: 0;
        padding-top: 5px;
    }

    /* Subgrid renumbers locally: 1 is the header's middle column, 2 its last. */
    [data-nav-mode="desktop"] .site-menu > .site-nav {
        grid-column: 1;
        justify-self: center;
    }

    [data-nav-mode="desktop"] .site-menu > .language-switcher {
        grid-column: 2;
        justify-self: end;
    }
}

/* The wordmark, when no logo image is set: small, uppercase, widely tracked. */
.site-logo__text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

[data-nav-mode="desktop"]
    .site-nav__list
    > .site-nav__item
    > .site-nav__row
    > a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-muted);
    transition: color 0.3s ease;
}

[data-nav-mode="desktop"]
    .site-nav__list
    > .site-nav__item
    > .site-nav__row
    > a:hover,
[data-nav-mode="desktop"]
    .site-nav__list
    > .site-nav__item
    > .site-nav__row
    > a[aria-current] {
    background: none;
    color: var(--color-accent);
}

/* The submenu panel is opaque in the theme; keep it readable on the dark ground. */
[data-nav-mode="desktop"] .site-nav__submenu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

/* ===========================================================================
   LANGUAGE SWITCHER — the reference's inline "EN / EL" pair.

   The theme renders a <details> disclosure: the current code in the <summary>,
   both languages in a <ul> that drops down. The reference instead shows both
   codes side by side, separated by a slash, the current one bright.

   Flattening it is done in CSS, not by forcing the <details> open: nav.js
   removes the open attribute from [data-lang-switch] details whenever the
   desktop menu is active (nav.js:110-113), so an attribute would not survive.
   ::details-content is presentational, so it is not fought over.

   Everything sits behind @supports, and inside it the summary is hidden. On an
   engine without ::details-content the whole block is skipped and the theme's
   dropdown remains, rather than leaving a switcher with nothing visible.

   Desktop only: in the phone menu nav.js opens the <details> and the theme
   already lays the languages out as a row.
   ======================================================================== */

/* The update added a flag beside each language; this site shows codes only. */
.language-switcher__flag {
    display: none;
}

.language-switcher summary {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted);
}

.language-switcher summary:hover {
    color: var(--color-text);
}

@supports selector(details::details-content) {
    [data-nav-mode="desktop"] .language-switcher__menu > summary {
        display: none;
    }

    [data-nav-mode="desktop"] .language-switcher__menu::details-content {
        content-visibility: visible;
    }

    /* Was an absolute dropdown panel; now just a row. */
    [data-nav-mode="desktop"] .language-switcher__menu > ul {
        position: static;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        min-width: 0;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
        font-size: 0.8125rem;
        font-weight: 500;
    }

    [data-nav-mode="desktop"] .language-switcher__item {
        display: flex;
        align-items: center;
    }

    /* The separator, between items only. */
    [data-nav-mode="desktop"]
        .language-switcher__item
        + .language-switcher__item::before {
        content: "/";
        margin-right: 0.4rem;
        color: rgb(244 247 251 / 0.35);
    }

    /* The link shows its language code instead of its full name. The real name
       stays in the markup for screen readers; attr(lang) means a language added
       later needs no new CSS. For the Greek letters "ΕΛ" rather than "EL", add:
         [data-nav-mode="desktop"] .language-switcher__item a[lang="el"]::after
             { content: "ΕΛ"; }  */
    [data-nav-mode="desktop"] .language-switcher__item a {
        display: block;
        padding: 1px 4px;
        font-size: 0;
        color: var(--color-muted);
        transition: color 0.3s ease;
    }

    [data-nav-mode="desktop"] .language-switcher__item a::after {
        content: attr(lang);
        font-size: 0.8125rem;
        text-transform: uppercase;
    }

    /* The reference brightens the current language and mutes the other. */
    [data-nav-mode="desktop"]
        .language-switcher__item
        a[aria-current="page"] {
        color: var(--color-text);
        font-weight: 500;
    }

    [data-nav-mode="desktop"] .language-switcher__item a:hover {
        color: var(--color-accent);
    }

    [data-nav-mode="desktop"] .language-switcher__item a:focus-visible {
        outline: var(--focus-ring);
        outline-offset: 3px;
    }
}

/* ===========================================================================
   PHONE MENU — the full-screen panel behind the burger.

   The panel (theme.css:722) is position: fixed over the whole screen, inside
   the header, so it covers the logo. Rather than add a second logo to the
   theme's markup, the header's own logo is lifted above the panel (both share
   the header's stacking context) and the panel's top row keeps only the ✕.
   Its padding matches .container's --edge and its height the header row's, so
   the logo and the ✕ sit exactly where the logo and the burger were.

   The logo goes back to gold while the panel is open: the panel is navy even
   when the header has turned into the stone bar.
   ======================================================================== */

.site-header[data-nav-open] .site-logo {
    position: relative;
    z-index: 101; /* the panel is 100 */
}

.site-header[data-nav-open] .site-logo__img {
    filter: none;
}

[data-nav-mode="mobile"][data-nav-open] .site-menu {
    padding: 0 var(--edge) max(var(--space-6), env(safe-area-inset-bottom));
    background:
        radial-gradient(
            120% 55% at 100% 100%,
            rgb(201 169 106 / 0.09),
            transparent 65%
        ),
        var(--color-bg);
}

[data-nav-mode="mobile"] .site-menu__top {
    margin-bottom: 0;
    border-bottom: 0;
}

/* The logo stands in for the name; hidden, not removed, so the ✕ stays right. */
[data-nav-mode="mobile"] .site-menu__name {
    visibility: hidden;
}

[data-nav-mode="mobile"] .site-menu__close {
    color: var(--color-text);
    transition: color 0.3s ease;
}

[data-nav-mode="mobile"] .site-menu__close:hover {
    background: none;
    color: var(--color-accent);
}

/* ---- The links: large, light, on hairlines ------------------------------ */

[data-nav-mode="mobile"] .site-menu > .site-nav {
    margin-top: clamp(1.5rem, 6vh, 3.5rem);
}

[data-nav-mode="mobile"] .site-nav__list {
    border-top: 1px solid rgb(244 247 251 / 0.08);
}

[data-nav-mode="mobile"] .site-nav__row {
    border-bottom-color: rgb(244 247 251 / 0.08);
}

[data-nav-mode="mobile"] .site-nav a,
[data-nav-mode="mobile"] .site-nav__heading {
    min-height: 64px;
    padding: 0.75rem 0;
    font-size: clamp(1.5rem, 6.5vw, 2.125rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: color 0.3s ease;
}

[data-nav-mode="mobile"] .site-nav a:hover {
    color: var(--color-accent);
}

[data-nav-mode="mobile"] .site-nav a[aria-current="page"],
[data-nav-mode="mobile"] [data-active-trail] > .site-nav__row > a {
    font-weight: 300;
}

[data-nav-mode="mobile"] .site-nav__toggle {
    border-left: 0;
    color: var(--color-muted);
}

[data-nav-mode="mobile"] .site-nav__toggle .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

[data-nav-mode="mobile"] .site-nav__toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

/* Sub-items: smaller and muted, under their parent's line. */
[data-nav-mode="mobile"] .site-nav__submenu {
    padding: 0 0 0.75rem;
    border-bottom: 1px solid rgb(244 247 251 / 0.08);
}

[data-nav-mode="mobile"] .site-nav__submenu .site-nav__row {
    border-bottom: 0;
}

[data-nav-mode="mobile"] .site-nav__submenu a {
    min-height: 44px;
    padding: 0.4rem 0;
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--color-muted);
}

/* ---- Languages: small outlined codes at the foot ------------------------ */

[data-nav-mode="mobile"] .site-menu > .language-switcher {
    padding-top: var(--space-7);
}

[data-nav-mode="mobile"] .language-switcher__menu > ul a {
    min-height: 40px;
    padding: 0 1rem;
    border-color: var(--color-border);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

[data-nav-mode="mobile"] .language-switcher__menu > ul a:hover {
    background: none;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

[data-nav-mode="mobile"] .language-switcher__menu > ul a[aria-current="page"] {
    background: none;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ---- Opening: the panel fades in, the links rise one after another ------
   The panel goes from display: none to flex on open, so the animations replay
   every time without any JS. */
@media (prefers-reduced-motion: no-preference) {
    [data-nav-mode="mobile"][data-nav-open] .site-menu {
        animation: site-menu-fade 0.35s ease both;
    }

    [data-nav-mode="mobile"][data-nav-open] .site-nav__list > .site-nav__item,
    [data-nav-mode="mobile"][data-nav-open] .site-menu > .language-switcher {
        animation: site-menu-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: calc(0.08s + var(--i, 8) * 0.05s);
    }

    .site-nav__list > .site-nav__item:nth-child(1) { --i: 0; }
    .site-nav__list > .site-nav__item:nth-child(2) { --i: 1; }
    .site-nav__list > .site-nav__item:nth-child(3) { --i: 2; }
    .site-nav__list > .site-nav__item:nth-child(4) { --i: 3; }
    .site-nav__list > .site-nav__item:nth-child(5) { --i: 4; }
    .site-nav__list > .site-nav__item:nth-child(6) { --i: 5; }
    .site-nav__list > .site-nav__item:nth-child(7) { --i: 6; }
}

@keyframes site-menu-fade {
    from { opacity: 0; }
}

@keyframes site-menu-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

/* ===========================================================================
   SCROLL-DRIVEN HERO

   The shape of it: .hero becomes a tall track and the section inside is
   sticky, so the hero stays still while ~120vh of scrolling happens "through"
   it. site.js turns that into --hero-p (0 → 1) on <html> and everything below
   is calc() off that one number — scrubbed to scroll position, not to time.

   Four things move, on their own slices of the scroll:
     --p-word  0    → 0.45   the title rises inside its own box and is erased
     --p-card  0.15 → 0.85   the video shrinks into an inset card
     --p-bar   0.35 → 0.70   the stone bar slides down from above
     .is-stone past 0.50     header text and logo flip to ink (set in JS)

   The hero itself never travels. It is pinned for the whole track, and the
   content after it is lifted by one screen (.rows margin-top) so it rides up
   OVER the pinned hero like a curtain — the hero is fully covered at the exact
   moment it would otherwise start to unpin, so it is never seen moving.

   Nothing here applies without html.hero-scroll, which site.js only adds when
   the hero exists and "reduce motion" is off. So no JS, or reduced motion,
   means the plain full-screen hero and the header exactly as before.
   ======================================================================== */

.hero-scroll {
    /* Sub-ranges of the scroll, each clamped to 0–1. clamp() with unitless
       numbers is how a slice of the timeline becomes its own 0 → 1. */
    --p: var(--hero-p, 0);
    --p-word: clamp(0, calc(var(--p) / 0.45), 1);
    --p-card: clamp(0, calc((var(--p) - 0.15) / 0.7), 1);
    --p-bar: clamp(0, calc((var(--p) - 0.35) / 0.35), 1);
}

/* The track: 200vh total, of which one screen is the hero itself, so the
   animation is scrubbed over 100vh of scrolling. Change this one number to
   make the whole thing faster or slower — but keep .rows' negative margin at
   exactly one screen less than it, or the curtain will mistime. */
.hero-scroll .hero {
    height: 200svh; /* svh throughout, so the pin, the track and the curtain
                       agree on what "one screen" means on a phone */
    position: relative;
    z-index: 0;
}

.hero-scroll .hero > .section {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0; /* beats .section--h-screen's min-height */
    overflow: hidden;
}

/* The curtain. Everything after the hero is lifted by one screen and given a
   solid background and a higher layer, so it scrolls up over the pinned hero
   instead of the hero scrolling away under it. It reaches the top of the
   viewport exactly when the sticky hero would begin to unpin, so the hero is
   already fully covered by the time it moves. */
.hero-scroll .rows {
    position: relative;
    z-index: 1;
    margin-top: -100svh;
    background: var(--color-bg);
}

/* ---- The wordmark ------------------------------------------------------ */

/* Bottom-aligned instead of centred, and full width instead of --measure. */
.hero-scroll .hero .section--bg-video > .section__inner {
    align-content: end;
    padding-block: calc(var(--header-height) + 2rem) clamp(1rem, 3vh, 2.5rem);
}

/* The block itself stays exactly where it is — nothing here scrolls. */
.hero-scroll .hero .section__col > .el {
    max-width: none; /* beats .el--maxw-text */
    /* The block carries «Εμφάνιση με κύλιση» (el--animate-fade), and the theme
       puts a 0.7s transition on opacity and transform for it (theme.css:3209).
       On a scrubbed animation that lags the scroll by 0.7s, so it goes. This
       rule also wins over the :not(.is-in) opacity: 0, so the hero is visible
       from the first paint instead of waiting for base.js. */
    transition: none;
    opacity: 1;
}

/* The erase. The title slides up inside its own box, which is clipped — so the
   top of the letters is cut off the instant it starts moving, rather than the
   whole line travelling up the screen. -102% is its own height plus a sliver,
   so nothing is left behind at the end. */
.hero-scroll .hero .el-heading {
    overflow: hidden;
}

.hero-scroll .hero .el-heading__title {
    font-size: clamp(1.75rem, 7.5vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    /* transform: translateY(calc(var(--p-word) * -102%)); */
    will-change: transform;
}

/* The subtitle has no mask of its own, so it simply fades, a little faster. */
.hero-scroll .hero .el-heading__subtitle {
    opacity: calc(1 - var(--p-word) * 1.6);
    transition: none;
}

/* ---- The video becoming a card ----------------------------------------- */

/* scale(0.95) insets it ~2.5% a side; the translate pushes the top edge clear
   of the header. Transform, not inset, so a playing video is not relaid out
   every frame. The gradient shade is inside .section__bg, so it comes along. */
.hero-scroll .hero .section--bg-video > .section__bg {
    transform: translateY(calc(var(--p-card) * var(--header-height) * 0.5))
        scale(calc(1 - var(--p-card) * 0.5));
    border-radius: calc(var(--p-card) * var(--radius-lg));
    will-change: transform;
}

/* The pause button belongs to the full-bleed state; it fades with the title. */
.hero-scroll .hero .section__video-toggle {
    opacity: calc(1 - var(--p-word));
}

/* ---- The stone bar ----------------------------------------------------- */

/* The header itself never moves — its backdrop layer slides down behind the
   links, so nothing reflows and the transparent nav is there from the start.
   No blur: the bar is opaque, so it would cost GPU for nothing. */
.hero-scroll .site-header::before {
    background: #f3eee6;
    opacity: 1;
    transform: translateY(calc((var(--p-bar) - 1) * 100%));
    transition: none; /* scrubbed, so a transition would lag the scroll */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Ink on stone. Redefining the tokens flips the links, the switcher and the
   separators together, the same way the stone band does. The logo follows
   through the .site-header.is-stone rule further up.
   Not while the phone menu is open: that panel sits inside the header but on
   the navy --color-bg, so ink there would be dark on dark. */
.site-header.is-stone:not([data-nav-open]) {
    --color-text: #0f1e30;
    --color-muted: #46505e;
    --color-accent: #7d6129;
    --color-border: rgb(15 30 48 / 0.14);
    --color-border-strong: rgb(15 30 48 / 0.3);
    color: var(--color-text);
}

/* ===========================================================================
   GALLERY — the reference's layout: each render full width, stacked, at its
   own shape, with a slow zoom on hover.

   The theme's grid is auto-fit tiles of min 160px, so three renders sat side
   by side as small strips. Here: one column. Height comes from the image
   itself (the «gallery» size no longer forces a ratio — sql-patches/09), so
   nothing is cropped.
   ======================================================================== */

.gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.gallery-item {
    border-radius: 0;
    background: var(--color-surface);
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    height: auto;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Since the update the theme gives every tile a shape (aspect-ratio:
   var(--ratio, 1), a square by default) and stretches the photo over it
   (.gallery-grid .gallery-item img { height: 100%; object-fit: cover }),
   which made the renders square and taller than they are. Back to each
   photo's own shape. Not on a dragged row, where the tiles must match. */
.gallery-grid:not(.gallery-grid--slider) .gallery-item {
    aspect-ratio: auto;
}

.gallery-grid:not(.gallery-grid--slider) .gallery-item img {
    display: block;
    height: auto;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }
}

/* ===========================================================================
   RETREAT — the reference's ".intro": heading + build status on the left,
   a large statement and two quieter paragraphs on the right.

   What the theme renders (section anchored "retreat", Στήλες 1-2, stone band):

     section#retreat.section--cols-1-2.section--bg-soft
       .section__col
         .el.el--animate-rise > .el-heading > h2      <- "Now being built…"
         .el.el--mt-m > .el-cards.el-cards--cols-2    <- the four status pairs
           article.el-card > .el-card__body > p.eyebrow + h3.el-card__title
         .el.Mirabello > figure.block-image           <- the photo (below)
       .section__col
         .el > .block-text > p                         <- the statement
         .el > .block-text > p + p                     <- the two paragraphs

   Values from reference assets/style.css (.intro, .status, .statement).
   ======================================================================== */

/* Same width as the reference's .container: 1240 including its gutters, so
   the content is 1240 − 2 × gutter (--edge is the same clamp as --gutter). */
#retreat {
    --col-gap: clamp(40px, 7vw, 112px);
}

#retreat > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

/* 5 : 7 rather than the theme's 1 : 2. */
@media (min-width: 768px) {
    #retreat > .section__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* The heading: light, not the theme's 600. */
#retreat .el-heading__title {
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

/* The status pairs: a plain two-column list, on phones too. */
#retreat .el-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

#retreat .el-card__body {
    padding-top: 0;
}

#retreat .el-card .eyebrow {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: var(--color-muted); /* --ink-soft on the stone band */
}

#retreat .el-card__title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: normal;
    color: var(--color-ink);
}

/* The text column. */
#retreat .section__col:last-child {
    padding-top: 8px;
}

/* The statement's own margin spaces it from the next block, as in the
   reference, so the column's 1.5rem between blocks would double it. */
#retreat .section__col:last-child > * + * {
    margin-top: 0;
}

#retreat .section__col:last-child .block-text p {
    max-width: 58ch;
    color: var(--color-muted);
}

/* The first paragraph is the statement: large, light, full ink. */
#retreat .section__col:last-child > .el:first-child .block-text > p:first-child {
    max-width: none;
    margin-bottom: 1.2em;
    font-size: clamp(1.1rem, 2.3vw, 1.85rem);
    font-weight: 300;
    line-height: 1.38;
    letter-spacing: -0.015em;
    color: var(--color-ink);
}

/* ---------------------------------------------------------------------------
   The photo that drops down from behind the heading and the cards.

   The image block carries the design class "Mirabello" (its «CSS class»
   field), so the theme renders it as div.el.Mirabello > figure.block-image.
   site.js adds .is-drop and scrubs --drop-p 0 → 1 with the scroll. (The
   render in #design comes in square by square instead: DESIGN below.)

   The wrapper keeps its full height from the start, so nothing below it jumps,
   and clips whatever sits outside it. At 0 the figure is one full height up —
   above the clip edge, i.e. behind the cards — and at 1 it is in place. A
   slight zoom settling to 1 gives it some depth on the way down.
   ======================================================================== */

.el.is-drop {
    overflow: hidden;
    overflow: clip;
}

.el.is-drop > .block-image {
    transform: translateY(calc((var(--drop-p, 0) - 1) * 100%));
    will-change: transform;
}

.el.is-drop > .block-image img {
    transform: scale(calc(1.12 - var(--drop-p, 0) * 0.12));
    transform-origin: 50% 0;
}

/* ---------------------------------------------------------------------------
   The logo's frame on the photos after the hero: a thin gold line just
   inside the edge, open in the middle of the left and right sides, like the
   two squares in the logo.

   On the <picture>, not the figure, so it travels with the photo as it drops
   in and never runs around the caption under the #design render. Top and
   bottom are a border; each side is two background strokes of 45%, leaving
   the middle 10% open — the logo's proportion. The gold is the bright one
   on purpose, also in the stone band (where --color-accent is darker): it
   sits on the photo, not on the band.

   To frame another photo, add its selector to the list below.
   ------------------------------------------------------------------------ */
:is(#retreat .Mirabello, #design .block-image, #villas .el-card__media, .category-list .card__media, .related .card__media) picture {
    --frame: #c9a96a; /* --gold */
    --frame-inset: clamp(10px, 1.8vw, 22px);
    position: relative;
    display: block;
}

:is(#retreat .Mirabello, #design .block-image, #villas .el-card__media, .category-list .card__media, .related .card__media) picture::after {
    content: "";
    position: absolute;
    inset: var(--frame-inset);
    border-block: 1px solid var(--frame);
    background:
        linear-gradient(var(--frame), var(--frame)) left top / 1px 45% no-repeat,
        linear-gradient(var(--frame), var(--frame)) left bottom / 1px 45% no-repeat,
        linear-gradient(var(--frame), var(--frame)) right top / 1px 45% no-repeat,
        linear-gradient(var(--frame), var(--frame)) right bottom / 1px 45% no-repeat;
    pointer-events: none;
}

/* ===========================================================================
   DESIGN — the reference's wide render with its caption, then ".design":
   the heading on the left, three paragraphs and a gold line on the right.

   What the theme renders (section anchored "design", one column, deep band):

     section#design.section--cols-1.section--bg-dark
       .section__col
         .el.el--animate-fade > figure.block-image     <- render + figcaption
         .el-cards.el-cards--cols-2
           article.el-card > h3.el-card__title          <- the heading
           article.el-card > h3.el-card__title > a      <- the 1st paragraph
                           + .el-card__text > p + p      <- the 2nd and 3rd
                           + span.el-card__more          <- the gold line

   So the second card's title is restyled as body text, and its "more" label
   as the reference's .pull. Values from reference assets/style.css (.render,
   .design, .h2, .pull, p).
   ======================================================================== */

/* The reference's container width, as in #retreat. */
#design > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

/* The caption under the render. */
#design .block-image figcaption {
    margin-top: 12px;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgb(244 247 251 / 0.56); /* --light-mute */
}

/* The render coming in square by square (site.js job 12): squares in the
   band's colour over the photo, 16 across (8 on phones; the extra rows are
   clipped), each fading out after its own random delay (--d, 0 → 1) once
   the wrapper is .is-revealed. Inside the <picture>, under the gold frame,
   which is there from the start. The caption follows as they finish. */
#design .block-image .tiles {
    --cols: 16;
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    align-content: start;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 700px) {
    #design .block-image .tiles {
        --cols: 8;
    }
}

#design .block-image .tiles span {
    aspect-ratio: 1;
    background: var(--color-dark);
    box-shadow: 0 0 0 1px var(--color-dark); /* no hairline seams */
}

#design .el.is-revealed .tiles span {
    animation: design-tile-out 0.5s cubic-bezier(0.65, 0, 0.35, 1)
        calc(var(--d, 0) * 0.9s) both;
}

#design .el.is-tiled figcaption {
    opacity: 0;
    transition: opacity 0.6s ease 0.9s;
}

#design .el.is-revealed figcaption {
    opacity: 1;
}

/* The theme's «Εμφάνιση με κύλιση» fade on the wrapper: the squares
   replace it. */
.js #design .el.is-tiled {
    opacity: 1;
    transform: none;
    transition: none;
}

@keyframes design-tile-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Heading and text: 5 : 6 from 861px, stacked below. */
#design .el-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    margin-top: clamp(56px, 7vw, 96px);
}

@media (min-width: 861px) {
    #design .el-cards {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    /* The heading stays beside its text while the text scrolls. align-self:
       start keeps the card its own height instead of stretching to the row,
       and a grid item's sticky range is its grid area — this row — so it is
       held exactly as long as the text on the right lasts, then leaves
       with it. */
    #design .el-card:first-child {
        position: sticky;
        top: calc(var(--header-height) + clamp(24px, 5vh, 56px));
        align-self: start;
    }
}

#design .el-card__body {
    padding-top: 0;
}

/* The heading (first card). */
#design .el-card:first-child .el-card__title {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

/* The text column (second card): body copy, at most 560px wide. */
#design .el-card + .el-card .el-card__body {
    max-width: 560px;
}

#design .el-card + .el-card .el-card__title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    color: var(--color-muted); /* --light-soft */
}

/* The title is a link in the CMS, which makes the whole card clickable. Keep
   that, but drop the theme's hover underline so it reads as a paragraph. */
#design .el-card:has(.el-card__link):hover .el-card__title {
    text-decoration: none;
}

#design .el-card__text {
    margin-top: 1.1em;
    color: var(--color-muted);
}

#design .el-card__text > * + * {
    margin-top: 1.1em;
}

/* The gold line — the reference's .pull. */
#design .el-card__more {
    display: block;
    margin-top: 1.8em;
    border-bottom: 0;
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-accent);
}

/* ===========================================================================
   VILLAS — the reference's centred head, then the two villas side by side,
   the second one lower (set by the scroll: site.js job 6).

   What the theme renders (section anchored "villas", one column, stone band):

     section#villas.section--cols-1.section--bg-soft
       .section__col
         .el > .el-heading > h2 + p.el-heading__subtitle   <- head + lede
         .el > .el-cards.el-cards--cols-2
           article.el-card
             .el-card__media > picture > img                <- the render
             .el-card__body
               p.eyebrow                                     <- "Architectural render"
               h3.el-card__title                             <- "Villa Thalassa"
               .el-card__text
                 p.villa-meaning (optional)                  <- classes from
                 p.specs__title                                 site.js job 5
                 ul.specs > li.spec > svg + .spec__value + .spec__label
         .el > .el-heading > h3 …                           <- "The plan" (next)

   The eyebrow sits straight under the photo, so it is styled as the
   reference's figcaption. Values from reference assets/style.css
   (.section-head, .villas, .villa, .specs).
   ======================================================================== */

#villas > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

/* ---- The head ---------------------------------------------------------- */

#villas .section__col > .el:first-child .el-heading__title {
    font-size: clamp(1.4rem, 4.4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

#villas .section__col > .el:first-child .el-heading__subtitle {
    max-width: 600px;
    margin: 20px auto 0; /* the reference's .35em under its h2 */
    font-size: 17px;
    line-height: 1.7;
    opacity: 1;
    color: var(--color-muted);
}

/* ---- The two villas ---------------------------------------------------- */

/* Two travels, deliberately larger than the reference's static 120px:
     --villa-shift  how far the second villa sinks (it moves slower than the
                    page) — also its final offset
     --villa-lead   how far below its place the first villa starts (it moves
                    faster than the page, rising into place)
   The shift is reserved below the row as padding, so the lowered card never
   runs into what follows; the lead fits inside that same space. */
#villas .el-cards {
    --villa-shift: clamp(0px, 16vw, 240px);
    --villa-lead: clamp(0px, 6vw, 96px);
    grid-template-columns: minmax(0, 1fr);
    gap: 40px clamp(32px, 6vw, 96px);
    padding-bottom: var(--villa-shift);
}

@media (min-width: 761px) {
    #villas .el-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* At rest (no JS, reduced motion) --villa-p is unset, i.e. 1: the first villa
   in place, the second at its full offset. */
#villas .el-cards > .el-card:nth-child(1) {
    transform: translateY(calc((1 - var(--villa-p, 1)) * var(--villa-lead)));
}

#villas .el-cards > .el-card:nth-child(2) {
    transform: translateY(calc(var(--villa-p, 1) * var(--villa-shift)));
}

#villas .el-cards.is-parallax > .el-card {
    will-change: transform;
}

/* The render at its own shape (820 × 788), not the theme's 4:3 crop. */
#villas .el-card__media img {
    aspect-ratio: auto;
    height: auto;
}

#villas .el-card__body {
    padding-top: 0;
}

/* "Architectural render", as a caption. */
#villas .el-card .eyebrow {
    display: block;
    margin: 12px 0 28px;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-muted);
}

/* "Villa Thalassa" */
#villas .el-card__title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

#villas .el-card__text {
    margin-top: 0;
}

#villas .el-card__text > * + * {
    margin-top: 0;
}

/* "θάλασσα, the sea" */
#villas .villa-meaning {
    margin-top: 6px;
    font-size: 15px;
    color: var(--color-muted);
}

/* "Planned specification" — gold ink on stone. */
#villas .specs__title {
    margin: 36px 0 18px;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* The grid: three across, as wide as their content. */
#villas .specs {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 22px clamp(28px, 4vw, 52px);
    margin: 0;
    padding: 0;
    list-style: none;
}

#villas .spec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
}

#villas .spec__icon {
    width: 20px;
    height: 20px;
    margin-bottom: 10px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#villas .spec__value {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--color-ink);
}

#villas .spec__label {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* ===========================================================================
   WELLBEING — the reference's full-screen ".banner": the photo behind, a dark
   card on the left, the quote on the right, a caption in the corner.

   Added by sql-patches/10-wellbeing.sql. What the theme renders:

     section#wellbeing.section--cols-1-1.section--bg-image.section--h-screen
       .section__bg > picture > img + ::after          <- Sanctuary.jpg + shade
       .section__inner
         .section__col                                  <- styled as the card
           .el > .el-heading > h2                       <- Ευεξία & Ιδιωτικότητα
           .block-text > p + p
         .section__col
           .el > blockquote.block-quote > p             <- the quote
           .el.wellbeing-caption > .block-text > p      <- "Αρχιτεκτονική απεικόνιση"

   Values from reference assets/style.css (.banner*).
   ======================================================================== */

#wellbeing {
    min-height: 100vh;
    min-height: 100svh;
}

/* The reference's shade: darker on the left behind the card and at the
   bottom, the middle of the photo left clear. Replaces the theme's flat
   overlay (the section's «Σκίαση» is set to 0%). */
#wellbeing > .section__bg::after {
    background:
        linear-gradient(to bottom, rgb(8 18 35 / 0) 35%, rgb(8 18 35 / 0.6) 100%),
        linear-gradient(100deg, rgb(8 18 35 / 0.78) 0%, rgb(8 18 35 / 0.3) 60%, rgb(8 18 35 / 0.55) 100%);
}

#wellbeing > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
    gap: 48px;
    align-items: end;
    gap: 10rem;
}

@media (min-width: 861px) {
    #wellbeing > .section__inner {
        grid-template-columns: minmax(0, 500px) 1fr;
    }
}

@media (max-width: 860px) {
    #wellbeing > .section__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- The card ---------------------------------------------------------- */

#wellbeing .section__col:first-child {
    padding: clamp(32px, 4vw, 52px);
    background: rgb(8 18 35 / 0.78);
    box-shadow: 0 24px 60px -24px rgb(5 10 20 / 0.7);
}

/* Following the scroll (site.js job 10): --follow-p 0 → 1 over the banner's
   pass, 0.5 when it is centred on screen, which is the card's own place.
   From --follow above it to --follow below it. */
#wellbeing .section__col:first-child.is-following {
    --follow: clamp(70px, 22vh, 240px);
    transform: translateY(calc((var(--follow-p, 0.5) - 0.5) * 2 * var(--follow)));
    will-change: transform;
}

#wellbeing .section__col:first-child > * + * {
    margin-top: clamp(1.1rem, 2.4vw, 2rem); /* the reference's .55em under its h2 */
}

#wellbeing .el-heading__title {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

#wellbeing .section__col:first-child .block-text p {
    color: var(--color-muted); /* --light-soft */
}

#wellbeing .section__col:first-child .block-text > * + * {
    margin-top: 1.1em;
}

/* ---- The quote: large, light, right-aligned, no quotation mark --------- */

#wellbeing .block-quote {
    max-width: 12em;
    margin: 0 0 0 auto;
    padding-top: 0;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-align: right;
    color: #f4f7fb;
    text-shadow: 0 2px 30px rgb(8 18 35 / 0.55);
}

#wellbeing .block-quote::before {
    content: none;
}

#wellbeing .block-quote p {
    margin: 0;
}

@media (max-width: 860px) {
    #wellbeing .block-quote {
        margin-left: 0;
        text-align: left;
    }
}

/* ---- The caption, pinned to the banner's bottom right ------------------ */

#wellbeing .wellbeing-caption {
    position: absolute;
    right: var(--edge);
    bottom: 18px;
    margin: 0;
}

#wellbeing .wellbeing-caption p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
}

/* ===========================================================================
   EXPERIENCES — the reference's left-aligned head with its gold note, the
   four experiences two by two, then a closing paragraph and a gold line.

   What the theme renders (section anchored "experiences", deep band):

     section#experiences.section--cols-1.section--bg-dark
       .section__col
         .el > .el-heading > h2 + p.el-heading__subtitle   <- head + lede
         .el > .block-text > p                              <- the gold note
         section.block-entry-feed                           <- «Ροή περιεχομένου»
           ul.cards > li.card > .card__body > h3.card__title > a + p.card__intro
         .el-cards.el-cards--cols-2
           article.el-card > h3.el-card__title              <- closing paragraph
           article.el-card > h3.el-card__title              <- the gold line

   The four experiences are articles pulled in by the feed block, so they
   lose the theme's boxed card look here and become plain title + line.
   Values from reference assets/style.css (.section-head, .experiences,
   .exp-close, .pull).
   ======================================================================== */

#experiences > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

/* ---- The head: left-aligned, not centred as set in the CMS ------------- */

#experiences .section__col > .el:nth-child(-n + 2) {
    max-width: 760px;
    margin-left: 0;
    text-align: left;
}

#experiences .section__col > .el:first-child .el-heading__title {
    font-size: clamp(2rem, 4.4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

#experiences .section__col > .el:first-child .el-heading__subtitle {
    max-width: 600px;
    margin-top: 20px;
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 1;
    color: var(--color-muted);
}

/* The note: small, gold. */
#experiences .section__col > .el:nth-child(2) {
    margin-top: 17px;
}

#experiences .section__col > .el:nth-child(2) p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
}

/* ---- The four experiences ---------------------------------------------- */

#experiences .block-entry-feed {
    margin-top: clamp(48px, 7vw, 88px);
}

#experiences .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 5vw, 64px) clamp(32px, 6vw, 96px);
}

@media (min-width: 761px) {
    #experiences .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* No box: no fill, border, radius or lift on hover. */
#experiences .card {
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
}

#experiences .card:hover {
    box-shadow: none;
    transform: none;
}

#experiences .card__body {
    gap: 8px;
    padding: 0;
}

#experiences .card__title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

#experiences .card__title a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

/* Each one links to its article, so a quiet gold on hover says so. */
#experiences .card:hover .card__title a {
    color: var(--color-accent);
}

#experiences .card__intro {
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- The close: paragraph left, gold line right, bottoms aligned ------- */

#experiences .el-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: end;
    margin-top: clamp(72px, 9vw, 120px);
}

@media (min-width: 761px) {
    #experiences .el-cards {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    }
}

#experiences .el-card__body {
    padding-top: 0;
}

#experiences .el-card:first-child .el-card__title {
    max-width: 56ch;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    color: var(--color-muted);
}

#experiences .el-card + .el-card .el-card__title {
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-accent);
}

/* ===========================================================================
   PROJECT — the reference's left-aligned head, then the renders, which here
   stack on top of each other as the page scrolls, under a title that stays.

   What the theme renders (section anchored "project", deep band), and the
   wrapper site.js job 7 adds:

     section#project.section--cols-1.section--bg-dark
       .section__col
         .project-stack                                      <- added by site.js
           .el > .el-heading > h2 + p.el-heading__subtitle   <- head + lede
           .el > .block-gallery
             .gallery-grid > button.gallery-item > picture > img   (× 3)
             .gallery-lightbox                               <- on click
         .el#location …                                      <- the location
                                                                part (not yet)

   The head stays: it is sticky under the header, on the band's own colour
   and above the renders. It is bounded by .project-stack — without that
   wrapper its sticky range would be the whole column, and the location part
   would scroll up underneath it. site.js measures it into --project-head.

   The stack: every render is sticky just under the head, each one 18px lower
   than the one before (--stack-i), so the next render slides up over the
   one already stuck and their top edges stay visible like a pile of prints.
   site.js also writes --stack-d, how many renders now lie on top of this one
   (0 → 2, fractional while one is arriving); the covered ones shrink and
   darken by it. When the gallery ends the pile slides up under the head, and
   then the head leaves too.

   The grid becomes a flex column on purpose: a grid item's sticky range is
   its own grid cell, so it could never stick; a flex item's is the whole
   container. Nothing above this section clips overflow, which would also
   stop sticky.

   Without JS: no wrapper and no --project-head, so the head scrolls normally
   and the renders stick under the header — still a stack, just no title.

   Values for the head from reference assets/style.css (.section-head--left).
   ======================================================================== */

#project > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

/* ---- The head: left-aligned, not centred as set in the CMS ------------- */

/* :is(…) because site.js moves the head and the gallery into .project-stack. */
#project :is(.section__col, .project-stack) > .el:first-child {
    max-width: 760px;
    margin-left: 0;
    text-align: left;
}

#project :is(.section__col, .project-stack) > .el:first-child .el-heading__title {
    font-size: clamp(1.5rem, 4.4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

#project :is(.section__col, .project-stack) > .el:first-child .el-heading__subtitle {
    max-width: 600px;
    margin-top: 20px;
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 1;
    color: var(--color-muted);
}

#location h2{
color: var(--color-accent-text);
font-size: clamp(1.2rem, 3.6vw, 1.5rem);
}

#project :is(.section__col, .project-stack) > .el:first-child + .el {
    margin-top: clamp(48px, 7vw, 88px);
}

/* Out of .section__col, the theme's "no own margins in a column" reset
   (.section__col > .el > .block) no longer reaches the two blocks. */
#project .project-stack > .el > .block {
    margin-block: 0;
}

/* ---- The head staying in view ------------------------------------------ */

/* Only where there is height for the head and a render under it. The full
   column width, so a render sliding under it is covered edge to edge; the
   text keeps its own measure from the rules above. */
@media (min-height: 640px) {
    #project .project-stack > .el:first-child {
        position: sticky;
        top: var(--header-height);
        z-index: 2;
        max-width: none;
        /* Breathing room between the header and the title while it is stuck.
           The negative margin takes the same space back out of the band's
           top padding, so where it sits before sticking does not change. */
        --head-air: clamp(28px, 5vh, 56px);
        margin-top: calc(-1 * var(--head-air));
        padding-top: var(--head-air);
        background: var(--color-dark);
    }

    #project .project-stack > .el:first-child .el-heading {
        max-width: 760px;
    }

    /* A soft edge under the head, so renders fade as they slide beneath it. */
    #project .project-stack > .el:first-child::after {
        content: "";
        position: absolute;
        inset: 100% 0 auto;
        height: 24px;
        background: linear-gradient(var(--color-dark), transparent);
        pointer-events: none;
    }
}

/* ---- The stack --------------------------------------------------------- */

#project .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#project .gallery-item {
    position: sticky;
    top: calc(
        var(--header-height) + var(--project-head, 0px) + 24px +
            var(--stack-i, 0) * 18px
    );
    transform-origin: 50% 0;
    /* A shadow on the top edge, so each render reads as lying on the last. */
    box-shadow: 0 -18px 40px -18px rgb(3 10 20 / 0.75);
}

@media (prefers-reduced-motion: no-preference) {
    #project .gallery-item.is-stacking {
        transform: scale(calc(1 - var(--stack-d, 0) * 0.05));
        filter: brightness(calc(1 - var(--stack-d, 0) * 0.3));
        will-change: transform, filter;
    }
}

/* ===========================================================================
   HERO ENTRANCE — the eyebrow, the title and the subtitle come in on page
   load, one after another, and stay.

   Plain CSS keyframes on load (the hero is already on screen, so there is
   nothing to wait for). `backwards`, not `both`: the start state holds
   during the delay, but once finished the animation lets go — the subtitle's
   opacity is scrubbed by the scroll (SCROLL-DRIVEN HERO), and a fill that
   stayed would pin it at 1. `translate`, not `transform`, for the same
   reason. The eyebrow also opens its letter-spacing out to the 0.5em the
   rule above gives it.
   ======================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .hero .section--bg-video .eyebrow {
        animation: hero-track 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
    }

    .hero .section--bg-video .el-heading__title {
        animation: hero-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
    }

    .hero .section--bg-video .el-heading__subtitle {
        animation: hero-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.75s backwards;
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        translate: 0 0.35em;
    }
}

@keyframes hero-track {
    from {
        opacity: 0;
        letter-spacing: 1.2em;
    }
}

/* ===========================================================================
   INTRO — the logo on a navy screen, the first time the home page opens in a
   session. site/views/theme/partials/intro.blade.php decides in <head> and
   sets html.intro (plus --intro-logo, the «Λογότυπο» file), then .intro-out
   once the page has loaded; both are removed when the fade is over.

   Two layers on <html> itself, so there is no markup to add and nothing to
   clean up: ::before the ground, ::after the logo. The hero entrance above
   waits underneath (paused in its `backwards` start state) and plays as the
   screen lifts, so it is seen rather than spent behind the intro.
   ======================================================================== */

html.intro::before,
html.intro::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000; /* over everything the theme stacks (its highest is 1000) */
}

html.intro::before {
    background: var(--color-bg);
}

html.intro::after {
    background: var(--intro-logo) center / min(220px, 52vw) auto no-repeat;
    animation: intro-logo 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

html.intro-out::before {
    animation: intro-out 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

html.intro-out::after {
    animation: intro-out-logo 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

html.intro-out::before,
html.intro-out::after {
    pointer-events: none;
}

html.intro:not(.intro-out) .hero :is(.eyebrow, .el-heading__title, .el-heading__subtitle) {
    animation-play-state: paused;
}

/* "Reduce motion": the same fades, without the logo moving. */
@media (prefers-reduced-motion: reduce) {
    html.intro::after {
        animation-name: intro-fade-in;
    }

    html.intro-out::after {
        animation-name: intro-out;
    }
}

@keyframes intro-fade-in {
    from {
        opacity: 0;
    }
}

@keyframes intro-logo {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
}

@keyframes intro-out {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes intro-out-logo {
    to {
        opacity: 0;
        transform: translateY(-16px);
        visibility: hidden;
    }
}

/* ===========================================================================
   TEXT REVEAL — site.js job 8 marks text .reveal and adds .is-revealed once
   it scrolls into view; it fades up from 18px below and then stays.

   `translate`, not `transform`, so it never fights a transform something
   else puts on the same element (the cards' own hover rules, the parallax).
   Rows (status pairs, specs, experiences) step 110ms apart, paragraphs in
   one block 80ms — --reveal-i is the place in the row.
   ======================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transition:
            opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
            translate 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--reveal-i, 0) * 110ms);
    }

    .reveal--text {
        transition-delay: calc(var(--reveal-i, 0) * 80ms);
    }

    .reveal:not(.is-revealed) {
        opacity: 0;
        translate: 0 18px;
    }
}

/* ===========================================================================
   EXPERIENCES DRIFT — site.js job 9: the column starts higher than its
   place (up over the bottom of the wellbeing banner) and settles into place
   slower than the page scrolls. --drift-p 0 → 1.

   The section is lifted above the banner so the column can overlap it.
   ======================================================================== */

#experiences {
    z-index: 1;
}

#experiences .section__col.is-drifting {
    --drift: clamp(60px, 12vw, 180px); /* how much higher it starts */
    transform: translateY(calc((var(--drift-p, 1) - 1) * var(--drift)));
    will-change: transform;
}

/* ===========================================================================
   FOOTER — logo left, menu right, © and legal underneath.

   The logo and menu are a shared section in the theme's "footer" area
   (sql-patches/08-footer.sql), tagged with design classes footer-main /
   footer-logo / footer-menu so these rules never touch the page's own
   sections. The bottom bar is the theme's.
   ======================================================================== */

.site-footer {
    margin-top: 0; /* the last section's band runs straight into it */
    background: var(--color-surface-2); /* --azure-night, a step below the ground */
    border-top: 1px solid rgb(201 169 106 / 0.25); /* a gold hairline */
    color: var(--color-muted);
}

.site-footer .footer-main {
    align-items: center;
}

/* The logo: gold on the night ground, never full width. */
.site-footer .footer-logo {
    margin: 0;
}

.site-footer .footer-logo img {
    width: auto;
    max-width: 11rem;
    height: auto;
}

/* The menu: one line of small, widely tracked links, pushed right. */
.site-footer .footer-menu .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
}

.site-footer .footer-menu a {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a[aria-current] {
    color: var(--color-accent);
    text-decoration: none;
}

/* The bottom bar: quieter still, hairline above. */
.site-footer__bottom {
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgb(244 247 251 / 0.45);
}

.site-footer__bottom a,
.site-footer__consent {
    color: rgb(244 247 251 / 0.6);
}

.site-footer__bottom a:hover,
.site-footer__consent:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Phones: everything centred and stacked. */
@media (max-width: 767.98px) {
    .site-footer .footer-main,
    .site-footer__bottom {
        text-align: center;
        justify-content: center;
    }

    .site-footer .footer-logo img {
        margin-inline: auto;
    }

    .site-footer .footer-menu .site-nav__list {
        justify-content: center;
    }
}

/* ===========================================================================
   CONTACT & FAQ — the contact page: the form in a card on the left, the
   questions on the right (sql-patches/11 builds the section, class
   contact-faq).

   The form and the accordion styles are not scoped to that section: they are
   the site's look for any form or FAQ. Only the two-column page layout is.

   Form markup (theme/blocks/form): .block-form > form.block-form__fields >
   .form-row.form-row--{type} (label + control), then the button. The spam
   guard's honeypot is position: absolute and its token a hidden input, so
   neither takes a grid cell. The accordion is <details>/<summary>.
   ======================================================================== */

/* ---- The two titles ----------------------------------------------------- */

.contact-faq .eyebrow {
    margin-bottom: 1.25rem;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.contact-faq .el-heading__title {
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.contact-faq .el-heading__subtitle {
    max-width: 30rem;
    margin-inline: auto;
    color: var(--color-muted);
    font-size: 1rem;
    opacity: 1;
}

/* Title to card / title to questions. */
.contact-faq .section__col > .el + .el {
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---- The form: a hairline card, small tracked labels ---------------------- */

.block-form {
    max-width: none;
    padding: clamp(1.25rem, 3vw, 2.25rem);
   background: rgba(95, 86, 86, 0.45);
    border: 1px solid var(--color-border);
}

/* Name and email side by side, everything else full width. */
.block-form__fields {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
}

.block-form__fields > * {
    grid-column: 1 / -1;
}

/* The email row and the text row right before it (the name). If the email
   field is ever moved, the pair simply goes back to full width. */
.block-form__fields > .form-row--text:has(+ .form-row--email),
.block-form__fields > .form-row--text + .form-row--email {
    grid-column: auto;
}

@media (max-width: 599.98px) {
    .block-form__fields > .form-row--text:has(+ .form-row--email),
    .block-form__fields > .form-row--text + .form-row--email {
        grid-column: 1 / -1;
    }
}

.form-row > label:not(.choice),
.block-form legend {
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* The asterisk in gold: red reads as an error before anything went wrong. */
.block-form .required {
    color: var(--color-accent);
}

.block-form
    :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    min-height: 50px;
    padding: 0.75rem 1rem;
    background:rgba(95, 86, 86, 0.5); /* --azure-night, thinned */
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.block-form
    :is(input:not([type="checkbox"], [type="radio"]), select, textarea):hover {
    border-color: var(--color-border-strong);
}

.block-form :is(input, select, textarea):focus {
    border-color: var(--color-accent);
    box-shadow: none;
    background-color: rgb(8 18 35 / 0.8);
}

.block-form ::placeholder {
    color: var(--color-muted);
    opacity: 0.55;
}

.block-form textarea {
    min-height: 160px;
}

/* The consent line: quieter than the fields. */
.block-form .choice {
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.block-form .choice a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
}

.block-form .choice a:hover {
    color: var(--color-accent);
}

/* On navy the theme's dark red is unreadable. */
.block-form .field-error {
    color: #f2a49c;
}

.block-form :is(input, select, textarea)[aria-invalid="true"] {
    border-color: #f2a49c;
}

.block-form :is(input, select, textarea)[aria-invalid="true"]:focus {
    box-shadow: none;
}

/* The answer after sending, in the site's colours instead of green/red. */
.block-form .form-status {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
    color: var(--color-text);
    font-weight: 400;
}

.block-form .form-status--error {
    border-color: #f2a49c;
    background: rgb(242 164 156 / 0.1);
}

/* Full width, gold, small tracked capitals. */
.block-form [data-form-submit] {
    justify-self: stretch;
    min-height: 54px;
    margin-top: 0.25rem;
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-contrast);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.block-form [data-form-submit]:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* ---- The questions: separate boxes, + turning into ×, open one in stone --- */

.block-accordion {
    display: grid;
    gap: 0.75rem;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
}

.block-accordion__item,
.block-accordion__item + .block-accordion__item {
    border: 1px solid var(--color-border);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.block-accordion__item:hover {
    border-color: var(--color-border-strong);
}

.block-accordion__item summary {
    padding: 1.35rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.block-accordion__item summary:hover {
    background: none;
    color: var(--color-accent);
}

.block-accordion__item summary:focus-visible {
    outline: var(--focus-ring);
    outline-offset: -2px;
}

/* The theme's chevron becomes a plus; rotated 45° it is the ×. */
.block-accordion__item summary::after {
    width: 1rem;
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E");
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.block-accordion__item[open] summary::after {
    transform: rotate(45deg);
}

/* The open question: the stone of the light bands, ink on it. */
.block-accordion__item[open] {
    background: #f3eee6;
    border-color: #f3eee6;
    color: #0f1e30;
}

.block-accordion__item[open] summary:hover {
    color: #7d6129; /* gold-ink: plain gold is 2:1 on stone */
}

.block-accordion__answer {
    padding: 0 1.5rem 1.5rem;
    color: #46505e;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.block-accordion__answer a {
    color: #0f1e30;
}

.block-accordion__answer strong {
    color: #0f1e30;
}

@media (prefers-reduced-motion: reduce) {
    .block-accordion__item,
    .block-accordion__item summary,
    .block-accordion__item summary::after {
        transition: none;
    }
}

/* ===========================================================================
   INNER PAGES — one look for every page, article and category: the image,
   the trail, the title, then the intro beside the description.

   What site/views/theme/partials/page-intro.blade.php renders:

     header.page-intro.page-intro--image       (--plain: no image)
       .page-intro__media > picture > img       <- «Κύρια εικόνα», full width
       .page-intro__inner                        <- bottom left, over the image
         nav.breadcrumbs
         h1.page-intro__title                    <- last word gold (site.js 1)
     section.page-body.page-body--split          (--lead-only: no description)
       p.page-body__lead                         <- «Εισαγωγή»: the statement
       .page-body__content.content               <- «Περιεχόμενο»

   The home page's measures: the 1240 container, #retreat's 5 : 7 split, the
   light 300 headings, the gold line, the hero's shade over the image.
   ======================================================================== */

.page-intro,
.page-body {
    --inner-width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

.page-intro__inner,
.page-body {
    width: var(--inner-width);
    margin-inline: auto;
}

/* ---- The image: full width, the header floating over it ---------------- */

.page-intro--image {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(26rem, 78svh, 54rem);
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
    background: var(--color-surface-2); /* while the photo loads */
}

.page-intro__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-intro__media picture,
.page-intro__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.page-intro__media img {
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

/* The shade: dark at the top behind the header, and at the bottom running
   into the page ground itself, so the photo melts into the text below
   rather than stopping at an edge. */
.page-intro__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgb(8 18 35 / 0.6), rgb(8 18 35 / 0) 34%),
        linear-gradient(
            to top,
            var(--color-bg) 0%,
            rgb(12 26 43 / 0.78) 24%,
            rgb(12 26 43 / 0) 64%
        );
}

.page-intro--image .page-intro__inner {
    padding-block: calc(var(--header-height) + 4rem) clamp(1.5rem, 4vw, 3rem);
    text-shadow: 0 1px 18px rgb(8 18 35 / 0.35);
}

/* ---- No image: the same trail and title on the ground ------------------- */

.page-intro--plain .page-intro__inner {
    padding-block: clamp(3rem, 9vw, 7rem) clamp(1.5rem, 4vw, 3rem);
}

/* ---- The trail: small, tracked capitals, gold hairlines between ---------- */

.page-intro .breadcrumbs {
    margin: 0 0 clamp(1rem, 2.2vw, 1.75rem);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.page-intro .breadcrumbs ol {
    gap: 0 0.9rem;
}

/* After «Αρχική» a vertical hairline; between the steps after it, horizontal
   dashes. Both come in on load (INNER PAGES, coming in, below). */
.page-intro .breadcrumbs li:not(:last-child)::after {
    content: "";
    width: 1.25rem;
    height: 1px;
    margin-left: 0.9rem;
    background: var(--color-accent);
}

.page-intro .breadcrumbs li:first-child:not(:last-child)::after {
    width: 1px;
    height: 0.9em;
}

.page-intro .breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-intro .breadcrumbs a:hover,
.page-intro .breadcrumbs [aria-current="page"] {
    color: var(--color-accent);
}

/* ---- The title: the home hero's light, tight face ------------------------ */

.page-intro__title {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.6rem, 6.4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--color-ink);
    text-wrap: balance;
    overflow-wrap: break-word;
}

.page-intro__title .hero-accent {
    color: var(--color-accent);
}

/* ---- The body: the intro beside the description -------------------------- */

.page-body {
    padding-block: clamp(3rem, 7vw, 6.5rem);
}

/* After the image the title is already close; no second large gap. */
.page-intro + .page-body {
    padding-top: clamp(2rem, 4.5vw, 4rem);
}

/* minmax(0, 1fr), not the implicit auto column: that one grows to the
   description's max-width and runs off the side of a phone. */
.page-body--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3rem);

}

@media (min-width: 861px) {
    .page-body--split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: clamp(40px, 7vw, 112px);
        align-items: start;
    }

    /* The intro stays beside the text while it scrolls, as #design's
       heading does on the home page; the grid row is its sticky range. */
    .page-body--split .page-body__lead {
        position: sticky;
        top: calc(var(--header-height) + 4.5rem);
    }
}

/* The statement: large, light, full ink, under a short gold line. */
.page-body__lead {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 300;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    text-wrap: balance;
}

.page-body__lead::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
}

.page-body--lead-only .page-body__lead {
    max-width: 30ch;
}

/* The description: body copy at a reading width. Without an intro it keeps
   the title's left edge rather than centring. */
.page-body__content {
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-muted);
}

.page-body__content > :first-child {
    margin-top: 0;
}

.page-body__content > * + * {
    margin-top: 1.25em;
}

/* Its opening paragraph a step up, in full ink. */
.page-body__content > p:first-child {
    font-size: var(--fs-lg);
    line-height: 1.7;
    color: var(--color-ink);
}

.page-body__content :is(h2, h3, h4) {
    margin-top: 2.2em;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.page-body__content h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.page-body__content :is(h3, h4) {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 400;
}

.page-body__content > :is(h2, h3, h4) + * {
    margin-top: 0.8em;
}

.page-body__content strong {
    font-weight: 500;
    color: var(--color-ink);
}

.page-body__content a {
    text-underline-offset: 0.2em;
}

/* Lists as the home page's spec rows: hairlines, a gold dash for a bullet,
   or a gold figure (01, 02…) for a number. */
.page-body__content :is(ul, ol) {
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
}

.page-body__content :is(ul, ol) > li {
    position: relative;
    margin: 0;
    padding: 0.7em 0 0.7em 1.75rem;
}

.page-body__content ul > li::before {
    content: "";
    position: absolute;
    top: 1.6em; /* the middle of the first line: 0.7em + 1.8em / 2 */
    left: 0;
    width: 0.75rem;
    height: 1px;
    background: var(--color-accent);
}

/* Its own counter rather than list-item: the same on every browser. */
.page-body__content ol {
    counter-reset: content-step;
}

.page-body__content ol > li {
    padding-left: 2.75rem;
    counter-increment: content-step;
}

.page-body__content ol > li::before {
    content: counter(content-step, decimal-leading-zero);
    position: absolute;
    top: 0.7em;
    left: 0;
    font-size: 0.8em;
    font-weight: 500;
    line-height: 2.25; /* the text's 1.8em line at 0.8em: sits on the first line */
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: var(--color-accent);
}

.page-body__content blockquote {
	color: var(--color-accent);
	border:none;
	text-align:center;
}
.text_section_3 .el-cards{
	display:flex !important;
	justify-content:center;
}

.text_section_3 .eyebrow{
margin-bottom: 1rem !important;
}

.page-body__content img {
    border-radius: 0;
}

/* ---- Coming in: the photo settles, the trail and the title rise --------- */

@media (prefers-reduced-motion: no-preference) {
    .page-intro__media img {
        animation: page-intro-settle 2.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }

    .page-intro .breadcrumbs {
        animation: hero-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
    }

    /* The hairline after «Αρχική» slides in from the right to its place. */
    .page-intro .breadcrumbs li:first-child::after {
        animation: crumb-from-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards;
    }

    /* Then the rest of the trail slides in from the left, one step after
       another, each carrying its dash with it. */
    .page-intro .breadcrumbs li:not(:first-child) {
        animation: crumb-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.95s backwards;
    }

    .page-intro .breadcrumbs li:nth-child(3) {
        animation-delay: 1.07s;
    }

    .page-intro .breadcrumbs li:nth-child(4) {
        animation-delay: 1.19s;
    }

    .page-intro .breadcrumbs li:nth-child(n + 5) {
        animation-delay: 1.31s;
    }

    /* The description comes in as the trail does, on load: each paragraph
       slides in from the left, 120ms after the one before, starting while
       the trail is still arriving. Pure CSS from the first paint, because
       the text is already on screen when the page opens: a scroll reveal
       (job 8) would fire at once, before there is anything to see.
       Only the first six; from the seventh on, a long page's text is below
       the fold and site.js job 8 reveals it on scroll instead. */
    /* The intro, with its gold line, first: on screen at load as well. */
    .page-body__lead {
        animation: crumb-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.75s backwards;
    }

    .page-body__content > :nth-child(-n + 6) {
        animation: crumb-in 0.9s cubic-bezier(0.16, 1, 0.3, 1)
            calc(0.9s + var(--content-i, 0) * 0.12s) backwards;
    }

    .page-body__content > :nth-child(2) { --content-i: 1; }
    .page-body__content > :nth-child(3) { --content-i: 2; }
    .page-body__content > :nth-child(4) { --content-i: 3; }
    .page-body__content > :nth-child(5) { --content-i: 4; }
    .page-body__content > :nth-child(6) { --content-i: 5; }

    /* The ones job 8 reveals on scroll slide in from the left too. */
    .page-body__content > .reveal:not(.is-revealed) {
        translate: -1.25rem 0;
    }

    .page-intro__title {
        animation: hero-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards;
    }
}

@keyframes crumb-from-right {
    from {
        opacity: 0;
        translate: 1.5rem 0;
    }
}

@keyframes crumb-in {
    from {
        opacity: 0;
        translate: -1.25rem 0;
    }
}

@keyframes page-intro-settle {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
}

/* ===========================================================================
   CATEGORY CARDS — a category's articles (Βίλες, Εμπειρίες) one per row:
   the photo and the text side by side, swapping sides on every other row,
   both in the logo's frame (see "The logo's frame" under RETREAT), so each
   card reads as the logo's two squares.

   What site/views/theme/category-show.blade.php renders (the theme's
   partials/article-cards, «main» image size, no date):

     .container.category-list > section.cards-section
       ul.cards > li.card
         .card__media > picture > img
         .card__body > p.card__category + h2.card__title > a + p.card__intro

   The title's link covers the whole card (theme), so all of it is
   clickable. Stacked, photo first, below 768px.
   ======================================================================== */

.category-list {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
    padding-bottom: clamp(4rem, 9vw, 8rem);
}

.category-list .cards-section {
    margin-top: 0;
}

.category-list .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

/* ---- The card itself, shared with RELATED below ------------------------- */

/* No box: no fill, border, radius or lift. */
:is(.category-list, .related) .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 1.6vw, 20px); /* between the two squares, as in the logo */
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
}

:is(.category-list, .related) .card:hover {
    box-shadow: none;
    transform: none;
}

:is(.category-list, .related) .card__media {
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

:is(.category-list, .related) .card__media picture {
    height: 100%;
}

:is(.category-list, .related) .card__media img {
    border-radius: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

:is(.category-list, .related) .card:hover .card__media img {
    transform: scale(1.04);
}

/* The text square.

   Its frame is the photo's gold, but on the square's own edges rather than
   inset: then the text square is exactly the photo's size and lines up
   with its edges. Drawn as backgrounds rather than a ::after:
   that would need position: relative here, and then the title link's
   whole-card ::after would stop at this half and the photo would no
   longer be clickable. Top and bottom lines, then the four side strokes
   of 45% each, open in the middle — the logo's proportion. */
:is(.category-list, .related) .card__body {
    --frame: #c9a96a; /* --gold */
    --frame-inset: 0px; /* a unit, not 0: it goes into calc() below */
    --frame-w: calc(100% - 2 * var(--frame-inset));
    --frame-h: calc((100% - 2 * var(--frame-inset)) * 0.45);
    gap: 0;
    background:
        linear-gradient(var(--frame), var(--frame)) left var(--frame-inset) top var(--frame-inset) / var(--frame-w) 1px no-repeat,
        linear-gradient(var(--frame), var(--frame)) left var(--frame-inset) bottom var(--frame-inset) / var(--frame-w) 1px no-repeat,
        linear-gradient(var(--frame), var(--frame)) left var(--frame-inset) top var(--frame-inset) / 1px var(--frame-h) no-repeat,
        linear-gradient(var(--frame), var(--frame)) left var(--frame-inset) bottom var(--frame-inset) / 1px var(--frame-h) no-repeat,
        linear-gradient(var(--frame), var(--frame)) right var(--frame-inset) top var(--frame-inset) / 1px var(--frame-h) no-repeat,
        linear-gradient(var(--frame), var(--frame)) right var(--frame-inset) bottom var(--frame-inset) / 1px var(--frame-h) no-repeat;
}

:is(.category-list, .related) .card__category {
    margin-bottom: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
}

:is(.category-list, .related) .card__title a {
    transition: color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    :is(.category-list, .related) .card__media img {
        transition: none;
    }
}

/* ---- The category's own layout: one per row, alternating ----------------- */

/* The text square, frame and all, slides in from the left as it scrolls
   into view — the trail's and the description's movement (crumb-in). The
   cards are below the fold, so this waits for them: site.js job 8 marks
   it .reveal and adds .is-revealed when it shows; TEXT REVEAL's
   transition does the rest, only the direction is changed here. */
@media (prefers-reduced-motion: no-preference) {
    .category-list .card__body.reveal:not(.is-revealed) {
        translate: -1.25rem 0;
    }
}

/* The text centred in its square, well inside the frame. */
.category-list .card__body {
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.category-list .card__title {
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

/* The whole intro, not the theme's three-line clamp. */
.category-list .card__intro {
    display: block;
    max-width: 36ch;
    margin-top: 1.25rem;
    overflow: visible;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

/* Side by side from 768px: two equal squares with a narrow gap, like the
   logo; every other card has the photo on the right. */
@media (min-width: 768px) {
    .category-list .card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-list .card:nth-child(even) .card__media {
        order: 2;
    }
}

/* ===========================================================================
   RELATED — "Σχετικά άρθρα" under an article: the category cards' look
   (CATEGORY CARDS: framed photo square, framed text square) three across,
   each card standing up — photo above, text below — so the row reads as
   three logo marks.

   What site/views/theme/article.blade.php renders (no date):

     aside.related > .container
       h2#related-title
       ul.cards > li.card > .card__media + .card__body (h3.card__title)

   Three across from 900px; between 560 and 900 each card lies on its side
   (photo left, text right, as in a category); stacked on phones.
   ======================================================================== */

.related {
    margin-top: 0;
    padding-block: clamp(4rem, 8vw, 7rem);
    border-top: 1px solid var(--color-border);
}

.related > .container {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

/* The heading: the page titles' light, tight face, a size down. */
.related h2 {
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.related .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 3.5rem) clamp(20px, 2.5vw, 32px);
}

/* Photo on top, the text square taking the rest, so all three in a row
   end level however long their text. */
.related .card {
    grid-template-rows: auto 1fr;
}

.related .card__body {
    padding: clamp(1.5rem, 2.6vw, 2.25rem);
}

.related .card__title {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* The theme's three-line clamp stays: it keeps the row even. */
.related .card__intro {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (min-width: 560px) and (max-width: 899.98px) {
    .related .card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .related .card__body {
        justify-content: center;
    }
}

@media (min-width: 900px) {
    .related .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===========================================================================
   GALLERY MASONRY — a Gallery block on an inner page (Το Έργο) as a
   masonry, Macy.js's layout: every photo uncropped at its own shape, each
   placed in the shortest column, 3 / 2 / 1 columns.

   site.js job 11 adds .is-masonry (so without JS the GALLERY stack above
   still holds) and gives each .gallery-item its column and the number of
   2px rows it spans. Row gap 0 on purpose: the vertical gap is counted
   into each item's span, and the item sits at the top of its area at its
   natural height, so the leftover is the gap — exact, nothing cropped.

   The home page's gallery (#project) is never touched: job 11 only looks
   after .page-intro.
   ======================================================================== */

.gallery-grid.is-masonry {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 2px; /* job 11 reads this as the row unit */
    column-gap: clamp(10px, 1.4vw, 18px); /* and this as the gap, both ways */
    row-gap: 0;
}

@media (min-width: 600px) {
    .gallery-grid.is-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .gallery-grid.is-masonry {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gallery-grid.is-masonry > .gallery-item {
    align-self: start;
}

.gallery-grid.is-masonry .gallery-item img {
    display: block;
    height: auto;
}

/* The logo's frame, coming in on hover and keyboard focus. */
.gallery-grid.is-masonry .gallery-item picture {
    --frame: #c9a96a; /* --gold */
    --frame-inset: clamp(10px, 1.4vw, 18px);
    position: relative;
    display: block;
}

.gallery-grid.is-masonry .gallery-item picture::after {
    content: "";
    position: absolute;
    inset: var(--frame-inset);
    border-block: 1px solid var(--frame);
    background:
        linear-gradient(var(--frame), var(--frame)) left top / 1px 45% no-repeat,
        linear-gradient(var(--frame), var(--frame)) left bottom / 1px 45% no-repeat,
        linear-gradient(var(--frame), var(--frame)) right top / 1px 45% no-repeat,
        linear-gradient(var(--frame), var(--frame)) right bottom / 1px 45% no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-grid.is-masonry .gallery-item:is(:hover, :focus-visible) picture::after {
    opacity: 1;
}

/* Scroll reveal (job 8): staggered by column, so a row comes in left to
   right, rather than by place in the list. */
@media (prefers-reduced-motion: no-preference) {
    .gallery-grid.is-masonry > .reveal {
        transition-delay: calc(var(--col, 0) * 110ms);
    }
}

/* ---------------------------------------------------------------------------
   NOT DONE YET — needs a look in the browser:
     - the "Υπό κατασκευή" status line the reference keeps in its header:
       there is no field for it in the header, so it needs a Snippet or a
       global block, not CSS
     - the reference's two-tone hero title ("Azure Stone" with "Villas" under
       it in gold). The Τίτλος field is plain text, so one h1 cannot hold two
       colours. Either leave it as one line, or put "Azure Stone" in the
       eyebrow and "Villas" in the heading — then the gold eyebrow rule above
       gives you the gold word.
     - Geom is now loaded from Google Fonts (head_code) and set above. Two
       things still open on it:
         · the theme's layout preloads two self-hosted Google Sans woff2 files
           on every page (layout.blade.php:26-27). Those are now only the
           fallback, so they are fetched and usually unused. Removing them
           means forking the layout, so it may not be worth it.
         · serving the font from Google's CDN sends every visitor's IP to
           Google, which is the part EU regulators have taken issue with, and
           this site has a consent banner. Self-hosting the six woff2 files in
           public/site/fonts/ avoids that and removes a third-party
           connection. Say the word and I will do it.
   ------------------------------------------------------------------------ */

/* Card titles: no underline on hover (was a change in the CMS theme.css, moved here 2/11/2026 so updates keep it). */
.el-card:has(.el-card__link):hover .el-card__title { text-decoration: none; }

/* ===========================================================================
   CLIENT CHANGES 4/11/2026 — the client's email: the right-hand texts all in
   one size ("3 different fonts tire"), the two-line "Two villas one
   philosophy." heading, «Exclusivity by Design», the location as bullets.
   ======================================================================== */

/* RETREAT: the statement is no longer bigger than the two paragraphs. */
#retreat .section__col:last-child .block-text p,
#retreat .section__col:last-child > .el:first-child .block-text > p:first-child {
    max-width: 58ch;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    color: var(--color-muted);
}

/* DESIGN: the heading's first line is the card's «Επικεφαλίδα» (eyebrow),
   shown exactly like the title under it. */
#design .el-card:first-child .eyebrow {
    display: block;
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--color-text);
}

/* DESIGN: intro, paragraphs and the gold line in one size (the line keeps
   its gold: it is the link to the page). */
#design .el-card + .el-card :is(.el-card__title, .el-card__text, .el-card__more) {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
}

#design .el-card + .el-card .el-card__more {
    margin-top: 1.1em;
}

/* INNER PAGES: the description's first paragraph no longer a step up. */
.page-body__content > p:first-child {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.page-body__content{
	margin:auto;
}

/* EXCLUSIVITY (new section, anchored "exclusivity", stone band): the villas'
   centred head, the text in one size, the closing line in gold. */
#exclusivity > .section__inner {
    width: calc(min(100%, var(--container)) - 2 * var(--edge));
}

#exclusivity .section__col > .el:first-child .el-heading__title {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

#exclusivity .section__col > .el:first-child .el-heading__subtitle,
#exclusivity .block-text p {
    max-width: 600px;
    margin-inline: auto;
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 1;
    color: var(--color-muted);
}

#exclusivity .section__col > .el:first-child .el-heading__subtitle {
    margin-top: 20px;
}

#exclusivity .section__col > .el + .el {
    margin-top: 1.1em;
}

#exclusivity .section__col > .el.exclusivity-note {
    margin-top: clamp(28px, 4vw, 48px);
}

#exclusivity .exclusivity-note p {
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-accent);
}

/* LOCATION (home): the places as one quiet line, like the breadcrumbs —
   small spaced capitals, thin gold rules between them and above/below.
   On phones a centred column without the rules between. */
#project .el.location-places {
    max-width: 980px;
    margin-inline: auto;
}

#project .location-places ol {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 14px 0;
    margin: clamp(28px, 4vw, 44px) 0 0;
    padding: 22px 0;
    list-style: none;
    border-block: 1px solid rgb(201 169 106 / 0.3);
}

#project .location-places li {
    margin: 0;
    padding: 0 20px;
    white-space: nowrap;
   font-size: 1.125rem;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text);
}

#project .location-places li::before,
#project .location-places li::marker {
    content: none;
}

#project .location-places li + li {
    border-left: 1px solid rgb(201 169 106 / 0.55);
}

@media (max-width: 860px) {
    #project .location-places ol {
        flex-direction: column;
        gap: 14px;
    }

    #project .location-places li + li {
        border-left: 0;
    }
}

/* «More than a villa…» smaller, so it takes 2–3 lines (user 4/11/2026):
   the home #retreat heading and every inner page's statement (the Azure
   Stone page, Location, the villas). */
#retreat .el-heading__title {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.page-body__lead {
    font-size: clamp(1.3rem, 1.9vw, 1.7rem);
    line-height: 1.3;
}

/* The header menu links at 18px, the size of the page text (user 4/11/2026). */
[data-nav-mode="desktop"]
    .site-nav__list
    > .site-nav__item
    > .site-nav__row
    > a {
    font-size: 1.125rem;
}

/* DESIGN: «Two villas one philosophy. / Framed by Sea, Stone and Light» at
   the size of «More than a villa…» (#retreat), so in English each sentence
   is one line (user 4/11/2026). */
#design .el-card:first-child .eyebrow,
#design .el-card:first-child .el-card__title {
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

/* Every heading breaks into even lines, never one word left alone on the
   last line; paragraphs avoid a lone last word (user 4/11/2026). Browsers
   without text-wrap simply wrap as before. */
:is(h1, h2, h3, h4),
.el-heading__title,
.el-heading__subtitle,
.el-card__title,
.card__title,
.page-intro__title,
.page-body__lead,
#design .el-card:first-child .eyebrow,
.block-quote p {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

/* …except the paragraph-style card titles, which read as body text. */
#design .el-card + .el-card .el-card__title,
#experiences .el-card:first-child .el-card__title {
    text-wrap: pretty;
}

/* Body paragraphs centred in their column (user 4/11/2026: "paragraphs
   text center"): the home sections' texts, the inner pages' description,
   the cards' texts. Headings keep their own alignment. */
:is(.block-text, .page-body__content, .el-card__text) p,
#design .el-card + .el-card .el-card__title,
#design .el-card + .el-card .el-card__more,
#experiences .el-card:first-child .el-card__title {
    text-align: center;
    margin-inline: auto;
}

/* The Azure Stone page (/the-retreat) only: its statement «More than a
   villa…» centred in its column, like the text beside it (user 4/11/2026).
   The page has no class of its own, so its canonical link picks it. */
html:has(link[rel="canonical"][href$="/the-retreat"]) .page-body__lead {
    text-align: center;
}

html:has(link[rel="canonical"][href$="/the-retreat"]) .page-body__lead::before {
    margin-inline: auto;
}

/* All content headings centred, like the paragraphs (user 4/11/2026). The
   page titles over the photo stay left with their breadcrumbs. */
.page-body__lead {
    text-align: center;
}

.page-body__lead::before {
    margin-inline: auto;
}

#retreat .el-heading,
#wellbeing .el-heading,
#design .el-card:first-child .el-card__body {
    text-align: center;
}

#experiences .section__col > .el:nth-child(-n + 2),
#project :is(.section__col, .project-stack) > .el:first-child,
#project .project-stack > .el:first-child .el-heading {
    margin-inline: auto;
    text-align: center;
}

#experiences .section__col > .el:first-child .el-heading__subtitle,
#project :is(.section__col, .project-stack) > .el:first-child .el-heading__subtitle {
    margin-inline: auto;
}

#experiences .card__body {
    align-items: center;
    text-align: center;
}

#experiences .card__intro {
    margin-inline: auto;
}

#experiences .el-card + .el-card .el-card__title {
    text-align: center;
}

/* FOOTER: «Αρ. ΓΕΜΗ / GEMI No.» under the logo, quiet like the © line
   (block with design class footer-gemi, user 4/11/2026). */
.site-footer .footer-gemi {
    margin-top: 1rem;
}

.site-footer .footer-gemi p {
    margin: 0;
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-align: start;
    color: rgb(244 247 251 / 0.45);
}

@media (max-width: 767.98px) {
    .site-footer .footer-gemi p {
        text-align: center;
    }
}

/* EXPERIENCES (home): three experiences in one row of three columns
   (block #60 shows 3, user 4/11/2026); one column below 900px, where three
   would be too narrow. */
#experiences .cards {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
    #experiences .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #experiences .card__title {
        font-size: clamp(1.2rem, 2vw, 1.4rem);
  
    }
}

/* EXPERIENCES (home): when the closing cards block has a single card (the
   gold line, user 4/11/2026), it spans the row, centred, in its gold style. */
#experiences .el-cards:has(> .el-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

#experiences .el-card:only-child .el-card__title {
    max-width: none;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-accent);
    text-align: center;
}

/* VILLA PAGES: the spec list as icon · label · value rows, no numbers and
   no dashes (site.js job 13, user 4/11/2026). */
.page-body__content .spec-rows > li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-left: 0;
    border-bottom: 1px solid var(--color-border);
    text-align: start;
}

.page-body__content .spec-rows > li::before {
    content: none;
}

.page-body__content .spec-rows__icon {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-body__content .spec-rows__value {
    margin-left: auto;
    color: var(--color-ink);
    white-space: nowrap;
}

/* HERO SHADES lighter, about a third less (user 4/11/2026). Was: home video
   radial 0.5 + vertical 0.65 / 0.45 / 0.9; inner pages top 0.6, bottom
   0.78 at 24% fading out by 64%. The very bottom still runs into the page
   ground, so the photo melts into the text as before. */
.hero .section--bg-video > .section__bg::after {
    background:
        radial-gradient(
            ellipse at center,
            transparent 0%,
            rgb(8 18 35 / 0.32) 100%
        ),
        linear-gradient(
            to bottom,
            rgb(15 30 55 / 0.45),
            rgb(15 30 55 / 0.25) 50%,
            rgb(8 18 35 / 0.75)
        );
}

.page-intro__media::after {
    background:
        linear-gradient(to bottom, rgb(8 18 35 / 0.42), rgb(8 18 35 / 0) 30%),
        linear-gradient(
            to top,
            var(--color-bg) 0%,
            rgb(12 26 43 / 0.55) 22%,
            rgb(12 26 43 / 0) 56%
        );
}

/* ===========================================================================
   COLOURS 9/11/2026 — light blue #D2E3FC and light grey #F1F3F4.

   Grey is the page ground, blue the bands (what was stone) and the footer.
   Both are too pale to read as text, so they are paired with near-black
   text and one deep shade of the same blue for links, buttons and thin
   lines. On photos and video it is the other way round: white text and the
   light blue as the highlight.

   Everything is in this block: delete from here to the end of the file and
   the previous look (slate ground, stone bands, gold) is back.
   ======================================================================== */

:root {
    --pale-blue: #d2e3fc;
    --pale-grey: #f1f3f4;
    --ink: #202124;
    --ink-soft: #4a4f57;
    --deep-blue: #174ea6;
    --deep-blue-hover: #123d82;

    --color-bg: var(--pale-grey);
    --color-text: var(--ink);
    --color-ink: var(--ink);
    --color-muted: var(--ink-soft);
    --color-border: rgb(32 33 36 / 0.16);
    --color-border-strong: rgb(32 33 36 / 0.34);
    --color-surface: #ffffff;
    --color-surface-2: #e8eaed;

    --color-soft: var(--pale-blue);
    --color-dark: var(--pale-grey);
    --color-dark-ink: var(--ink);
    --color-brand: var(--pale-blue);
    --color-brand-ink: var(--ink);

    --color-accent: var(--deep-blue);
    --color-accent-hover: var(--deep-blue-hover);
    --color-accent-contrast: #ffffff;
    --color-accent-soft: var(--pale-blue);
    --color-accent-text: var(--deep-blue);
    --color-accent-text-hover: var(--deep-blue-hover);

    --shadow: 0 18px 40px rgb(32 33 36 / 0.12);
}

/* ---- On a light surface inside something that is otherwise on a photo ---- */
.section--bg-soft,
.site-header.is-stone:not([data-nav-open]),
[data-nav-mode="desktop"] .site-nav__submenu,
#wellbeing .section__col:first-child {
    --color-text: var(--ink);
    --color-ink: var(--ink);
    --color-muted: var(--ink-soft);
    --color-border: rgb(32 33 36 / 0.16);
    --color-border-strong: rgb(32 33 36 / 0.34);
    --color-accent: var(--deep-blue);
    --color-accent-hover: var(--deep-blue-hover);
    --color-accent-contrast: #ffffff;
    --color-accent-text: var(--deep-blue);
    --color-accent-text-hover: var(--deep-blue-hover);
    color: var(--color-text);
}

.section--bg-soft {
    --color-surface: #ffffff;
    --color-surface-2: #e8f0fe;
    --shadow: 0 18px 40px rgb(32 33 36 / 0.12);
}

/* ---- On a photo or video: white text, the light blue as the highlight ----
   The two header lines: the transparent header over the hero or an inner
   page's image, until its light bar arrives. With the scroll-driven hero
   the bar comes with .is-stone, not .is-scrolled. --color-dark is what
   shows while the photo loads. */
.section--bg-video,
.section--bg-image,
.section--bg-slides,
.section--on-dark,
.group--bg-image,
.el-cards--overlay .el-card,
.page-intro--image,
body:is(:has(.hero .section), :has(.page-intro--image)) .site-header:not(.is-scrolled, .is-stone, [data-nav-open]),
html.hero-scroll .site-header:not(.is-stone, [data-nav-open]) {
    --color-text: #ffffff;
    --color-ink: #ffffff;
    --color-muted: rgb(255 255 255 / 0.82);
    --color-border: rgb(255 255 255 / 0.22);
    --color-border-strong: rgb(255 255 255 / 0.48);
    --color-accent: var(--pale-blue);
    --color-accent-hover: #ffffff;
    --color-accent-contrast: var(--ink);
    --color-accent-text: var(--pale-blue);
    --color-accent-text-hover: #ffffff;
    --color-dark: var(--deep-blue);
    --focus-ring: 2px solid var(--pale-blue);
}

.page-intro--image {
    background: var(--deep-blue);
}

/* Around the hero's shrinking video: the light blue, so it runs straight
   into the band that follows. The video's own box stays dark until it
   loads, for the white title. The shrinking now starts at 0.5 (was 0.15):
   that is when the header turns dark (.is-stone), so its white links are
   never left on the light blue. */
.hero .section--bg-video {
    --color-dark: var(--pale-blue);
}

.hero .section--bg-video > .section__bg {
    background: var(--deep-blue);
}

.hero-scroll {
    --p-card: clamp(0, calc((var(--p) - 0.5) / 0.5), 1);
}

/* The phone menu's top row: the bar, in place, behind the black logo. */
.site-header[data-nav-open]::before {
    opacity: 1;
    transform: none;
}

/* The theme fills these buttons with the page ground; here, the accent. */
.section:is(.section--bg-video, .section--bg-slides, .section--on-dark) .button:not(.button--ghost),
.group:is(.group--bg-brand, .group--bg-dark, .group--bg-image) .button:not(.button--ghost) {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

.section:is(.section--bg-video, .section--bg-slides, .section--on-dark) .button:not(.button--ghost):hover,
.group:is(.group--bg-brand, .group--bg-dark, .group--bg-image) .button:not(.button--ghost):hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* The cookie bar's second button was white, for a dark bar. */
.consent .button--ghost,
.consent .button--ghost:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.consent .button--ghost:hover {
    background: var(--color-surface-2);
}

/* ---- Scrollbar ---------------------------------------------------------- */
::-webkit-scrollbar-thumb {
    background: rgb(23 78 166 / 0.45);
    background-clip: padding-box;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: rgb(23 78 166 / 0.5) var(--color-surface-2);
    }
}

/* ---- Header -------------------------------------------------------------- */
.site-header::before,
.hero-scroll .site-header::before {
    background: var(--pale-grey);
}

/* The gold logo cannot be read on these colours: black (its other version)
   on anything light, as it is by filter, the file's transparency untouched.
   As it was only over a photo. */
.site-logo__img,
.site-header[data-nav-open] .site-logo__img,
.site-footer .footer-logo img {
    filter: brightness(0);
}

body:is(:has(.hero .section), :has(.page-intro--image)) .site-header:not(.is-scrolled, .is-stone, [data-nav-open]) .site-logo__img,
html.hero-scroll .site-header:not(.is-stone, [data-nav-open]) .site-logo__img {
    filter: none;
}

html.intro::after {
    filter: brightness(0);
}

@supports selector(details::details-content) {
    [data-nav-mode="desktop"]
        .language-switcher__item
        + .language-switcher__item::before {
        color: var(--color-border-strong);
    }
}

/* Where the language list is still a dropdown, it sits on a white panel. */
@supports not selector(details::details-content) {
    [data-nav-mode="desktop"] .language-switcher__menu > ul {
        --color-text: var(--ink);
        --color-muted: var(--ink-soft);
        --color-accent-text: var(--deep-blue);
    }
}

/* ---- Phone menu ---------------------------------------------------------- */
[data-nav-mode="mobile"][data-nav-open] .site-menu {
    background:
        radial-gradient(
            120% 55% at 100% 100%,
            rgb(210 227 252 / 0.75),
            transparent 65%
        ),
        var(--color-bg);
}

[data-nav-mode="mobile"] .site-nav__list,
[data-nav-mode="mobile"] .site-nav__submenu {
    border-color: var(--color-border);
}

[data-nav-mode="mobile"] .site-nav__row {
    border-bottom-color: var(--color-border);
}

/* ---- Inner pages: the image used to melt into the dark ground; a light
   ground would wash out the white title, so the shade stays dark. -------- */
.page-intro__media::after {
    background:
        linear-gradient(to bottom, rgb(8 18 35 / 0.42), rgb(8 18 35 / 0) 30%),
        linear-gradient(
            to top,
            rgb(12 26 43 / 0.72) 0%,
            rgb(12 26 43 / 0.48) 26%,
            rgb(12 26 43 / 0) 62%
        );
}

/* ---- The logo's frame: light blue on photos, deep blue on the page ------- */
:is(#retreat .Mirabello, #design .block-image, #villas .el-card__media, .category-list .card__media, .related .card__media) picture,
.gallery-grid.is-masonry .gallery-item picture {
    --frame: var(--pale-blue);
}

:is(.category-list, .related) .card__body {
    --frame: var(--deep-blue);
}

/* ---- Home sections -------------------------------------------------------- */
#design .block-image figcaption {
    color: var(--color-muted);
}

#project .gallery-item {
    box-shadow: 0 -18px 40px -18px rgb(32 33 36 / 0.35);
}

#project .location-places ol {
    border-block-color: rgb(23 78 166 / 0.3);
}

#project .location-places li + li {
    border-left-color: rgb(23 78 166 / 0.5);
}

@media (max-width: 860px) {
    #project .location-places li + li {
        border-left-color: transparent;
    }
}

/* Wellbeing: the card over the photo becomes the light grey. */
#wellbeing .section__col:first-child {
    background: rgb(241 243 244 / 0.95);
    box-shadow: 0 24px 60px -24px rgb(5 10 20 / 0.45);
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
    background: var(--pale-blue);
    border-top: 1px solid var(--color-border);
}

.site-footer__bottom,
.site-footer__bottom a,
.site-footer__consent,
.site-footer .footer-gemi p {
    color: var(--color-muted);
}

/* ---- Forms --------------------------------------------------------------- */
.block-form {
    background: #ffffff;
}

.block-form
    :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    background: var(--pale-grey);
}

.block-form :is(input, select, textarea):focus {
    background-color: #ffffff;
}

.block-form ::placeholder {
    opacity: 0.8;
}

.block-form .field-error {
    color: var(--color-error);
}

.block-form :is(input, select, textarea)[aria-invalid="true"] {
    border-color: var(--color-error);
}

.block-form .form-status--error {
    border-color: var(--color-error);
    background: var(--color-error-bg);
}

/* ---- The questions: the open one in light blue --------------------------- */
.block-accordion__item[open] {
    background: var(--pale-blue);
    border-color: var(--pale-blue);
    color: var(--ink);
}

.section--bg-soft .block-accordion__item[open] {
    background: var(--pale-grey);
    border-color: var(--pale-grey);
}

.block-accordion__item[open] summary:hover {
    color: var(--deep-blue);
}

.block-accordion__answer {
    color: var(--ink-soft);
}

.block-accordion__answer a,
.block-accordion__answer strong {
    color: var(--ink);
}
