/* ==========================================================================
   Eagle Luxury Car Rental — foundation
   ==========================================================================

   Identity: BLACK · GOLD · WHITE.

   The client's logo is a gold car mark over "EAGLE", supplied in black-letter
   and white-letter variants. Gold IS the brand here, so the system commits to
   it rather than treating it as an accent to be rationed.

   Gold is never a flat swatch. Real gold is a gradient — a dark edge, a bright
   band, a warm mid — and that is what separates an expensive-looking gold from
   a cheap yellow one. `--e-gold-metal` is the fill used on every major surface
   that carries the colour.

   THEMING
   Light is the default: white paper, near-black type, gold accents, black
   feature sections. Dark is a full second design on near-black grounds with
   the gold lifted, because a gold that carries on white is invisible on black
   and vice versa. Both are measured, not eyeballed.
   ========================================================================== */

:root {
    /* ── Brand constants ────────────────────────────────────────────────── */

    /* The gold ramp. Dark edge → bright band → warm mid, so any surface it
       fills has a direction of light rather than a single tone. */
    --e-gold-deep: #8a6a12;
    --e-gold: #d4af37;
    --e-gold-bright: #f2dc9a;
    --e-gold-metal: linear-gradient(135deg, #a8801a 0%, #d4af37 26%, #f2dc9a 48%, #d4af37 70%, #9c7616 100%);
    --e-gold-metal-soft: linear-gradient(135deg, #c39c2a 0%, #e6c85e 45%, #c39c2a 100%);

    --e-wa: #25d366;

    /* Display is a high-contrast serif — the thing that actually makes a
       luxury page read as luxury rather than as a dashboard. UI stays a
       grotesque so forms, nav and specs remain operational. */
    --e-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
    --e-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
    --e-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --e-radius: 4px;
    --e-radius-lg: 10px;
    --e-radius-pill: 999px;

    --e-gutter: clamp(1.25rem, 5vw, 4.5rem);
    --e-section: clamp(4rem, 8vw, 8rem);
    --e-measure: 68ch;
    --e-max: 1440px;

    --e-ease: cubic-bezier(.22, .61, .36, 1);
    --e-fast: 160ms;
    --e-mid: 320ms;
    --e-slow: 620ms;

    --e-z-dropdown: 40;
    --e-z-header: 100;
    --e-z-float: 150;
    --e-z-notice: 180;
    --e-z-drawer: 200;
}

/* ==========================================================================
   LIGHT — the default
   ========================================================================== */

:root, [data-theme='light'] {
    color-scheme: light;

    --e-paper: #ffffff;
    --e-surface: #ffffff;
    --e-surface-2: #faf6ee;    /* ivory band */
    --e-surface-champagne: #f2e8d5;  /* champagne band — the brand's own warmth, not grey */
    --e-surface-3: #ece0c8;    /* field wells */

    --e-ink: #0a0a0a;          /* the black used for feature sections */
    --e-ink-2: #141414;

    --e-text: #14110c;         /* 18.8 white · 15.5 champagne */
    --e-text-muted: #4a3f30;   /* warm espresso, not grey: 10.3 white · 8.5 champagne · 7.9 well */
    --e-text-faint: #6a5a40;   /* 6.7 white · 5.5 champagne · 5.1 well */
    --e-text-on-ink: #f7f4ed;
    --e-text-on-ink-muted: #c2b59b;   /* 9.8 on black */

    /* Primary action is black carrying white — black, gold and white, with
       gold reserved for the moments that should feel expensive. */
    --e-brand: #111111;
    --e-brand-hover: #000000;
    --e-brand-text: #111111;
    --e-on-brand: #ffffff;      /* label colour ON the brand fill */

    --e-accent: #7a5b0e;       /* gold as text: 6.3 white · 5.2 champagne · 4.8 well */
    --e-accent-fill: var(--e-gold);
    --e-accent-wash: rgba(212, 175, 55, .12);
    --e-accent-line: rgba(212, 175, 55, .5);

    --e-line: rgba(122, 91, 14, .16);        /* bronze-tinted rules, never grey */
    --e-line-strong: rgba(122, 91, 14, .32);

    --e-ok: #1c6b40;
    --e-warn: #8a5a10;
    --e-danger: #a12718;

    --e-surface-lit: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
    --e-surface-raised: linear-gradient(180deg, #ffffff 0%, #f8f6f2 100%);
    --e-panel-lit: linear-gradient(165deg, #ffffff 0%, #f4f1eb 100%);

    --e-edge-top: rgba(255, 255, 255, .95);
    --e-edge-bottom: rgba(10, 10, 10, .08);

    --e-shadow-1: 0 1px 2px rgba(10,10,10,.05), 0 2px 8px rgba(10,10,10,.05);
    --e-shadow-2: 0 2px 8px rgba(10,10,10,.07), 0 12px 28px rgba(10,10,10,.08);
    --e-shadow-3: 0 4px 14px rgba(10,10,10,.1), 0 24px 56px rgba(10,10,10,.13);
    --e-shadow-lift: 0 6px 18px rgba(10,10,10,.12), 0 28px 64px rgba(10,10,10,.16);
    --e-glow-gold: 0 6px 24px rgba(212,175,55,.28);

    --e-scrim: rgba(6, 6, 6, .58);
    --e-scrim-strong: rgba(6, 6, 6, .84);

    --e-paper-wash:
        radial-gradient(90% 55% at 85% -6%, rgba(212,175,55,.10), transparent 62%),
        radial-gradient(70% 45% at 6% 2%, rgba(10,10,10,.035), transparent 60%);
}

/* ==========================================================================
   DARK
   ========================================================================== */

[data-theme='dark'] {
    color-scheme: dark;

    --e-paper: #0a0a0a;
    --e-surface: #121212;
    --e-surface-2: #1a1a1a;
    --e-surface-3: #000000;

    --e-ink: #050505;
    --e-ink-2: #101010;

    --e-text: #f5f2ea;         /* 17.5:1 on black */
    --e-text-muted: #a8a29a;   /* 7.8:1 */
    --e-text-faint: #8f8983;   /* 5.7:1 on black, 5.0 on the band */
    --e-text-on-ink: #f5f2ea;
    --e-text-on-ink-muted: #c2b59b;

    /* On black a black button disappears, so the primary becomes gold. */
    --e-brand: #d4af37;
    --e-brand-hover: #e0bc4f;
    --e-brand-text: #e2c275;
    --e-on-brand: #0a0a0a;

    --e-accent: #e2c275;       /* 11.5:1 on black */
    --e-accent-fill: var(--e-gold);
    --e-accent-wash: rgba(212, 175, 55, .14);
    --e-accent-line: rgba(212, 175, 55, .42);

    --e-line: rgba(245, 242, 234, .12);
    --e-line-strong: rgba(245, 242, 234, .26);

    --e-ok: #4fb477;
    --e-warn: #d9a441;
    --e-danger: #ff8f7d;

    --e-surface-lit: linear-gradient(180deg, #1c1c1c 0%, #121212 100%);
    --e-surface-raised: linear-gradient(180deg, #1e1e1e 0%, #131313 100%);
    --e-panel-lit: linear-gradient(165deg, #1f1d19 0%, #0d0d0d 100%);

    --e-edge-top: rgba(245, 242, 234, .11);
    --e-edge-bottom: rgba(0, 0, 0, .6);

    --e-shadow-1: 0 1px 2px rgba(0,0,0,.6), 0 4px 14px rgba(0,0,0,.45);
    --e-shadow-2: 0 2px 8px rgba(0,0,0,.6), 0 14px 34px rgba(0,0,0,.5);
    --e-shadow-3: 0 6px 18px rgba(0,0,0,.6), 0 28px 64px rgba(0,0,0,.55);
    --e-shadow-lift: 0 8px 22px rgba(0,0,0,.62), 0 34px 76px rgba(0,0,0,.6);
    --e-glow-gold: 0 6px 30px rgba(212,175,55,.34);

    --e-scrim: rgba(2, 2, 2, .62);
    --e-scrim-strong: rgba(2, 2, 2, .88);

    --e-paper-wash:
        radial-gradient(90% 55% at 85% -6%, rgba(212,175,55,.14), transparent 62%),
        radial-gradient(70% 45% at 6% 2%, rgba(212,175,55,.05), transparent 60%);
}

/* Sections that are black in BOTH themes — hero, feature bands, closing CTA,
   footer. They re-declare the text tokens locally, which is the mechanism that
   makes dark-text-on-dark structurally impossible. */
.e-on-ink, .elc-section--dark, .e-dark {
    --e-text: var(--e-text-on-ink);
    --e-text-muted: var(--e-text-on-ink-muted);
    --e-text-faint: var(--e-text-on-ink-muted);
    --e-surface: var(--e-ink-2);
    --e-surface-2: var(--e-ink-2);
    --e-surface-3: #000000;
    --e-line: rgba(245, 242, 234, .13);
    --e-line-strong: rgba(245, 242, 234, .26);
    --e-accent: #e2c275;
    --e-accent-fill: var(--e-gold);
    --e-accent-line: rgba(212, 175, 55, .44);
    --e-brand: #d4af37;
    --e-brand-hover: #e0bc4f;
    --e-brand-text: #e2c275;
    --e-on-brand: #0a0a0a;
    --e-surface-raised: linear-gradient(180deg, #1a1a1a 0%, #101010 100%);
    --e-panel-lit: linear-gradient(165deg, #1f1d19 0%, #0b0b0b 100%);
    --e-edge-top: rgba(245, 242, 234, .12);
    background: var(--e-ink);
    color: var(--e-text);
}

/* ==========================================================================
   GROUND
   ========================================================================== */

html { background: var(--e-paper); }

.elc {
    background: var(--e-paper);
    color: var(--e-text);
    font-family: var(--e-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
:where(.elc, .elc *, .elc *::before, .elc *::after) { box-sizing: border-box; }
:where(.elc img) { max-width: 100%; height: auto; display: block; }
.elc ::selection { background: var(--e-gold); color: #0a0a0a; }
.elc-no-scroll { overflow: hidden; }

.elc :focus-visible { outline: 2px solid var(--e-gold); outline-offset: 2px; border-radius: 2px; }

.elc-skip-link { position: absolute; left: -9999px; z-index: 999; padding: .85rem 1.4rem; background: var(--e-gold); color: #0a0a0a; font-weight: 700; text-decoration: none; }
.elc-skip-link:focus { left: 1rem; top: 1rem; }

.e-wrap, .elc-container { width: 100%; max-width: var(--e-max); margin-inline: auto; padding-inline: var(--e-gutter); }
.elc-container--narrow, .e-wrap--narrow { max-width: 880px; }

.e-section, .elc-section { position: relative; padding-block: var(--e-section); }
.e-section--tight, .elc-section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.e-section--airy { padding-block: clamp(5.5rem, 11vw, 11rem); }
.e-alt { background: var(--e-surface-2); }
.e-dark, .elc-section--dark { background: var(--e-ink); }

/* ── Gold rules: the connective tissue of the whole design ───────────────── */

.e-rule { height: 1px; border: 0; margin: 0; background: var(--e-line); }
.e-rule--gold { height: 1px; background: linear-gradient(90deg, transparent, var(--e-gold) 20%, var(--e-gold-bright) 50%, var(--e-gold) 80%, transparent); }
.e-hairline-gold { position: relative; }
.e-hairline-gold::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--e-accent-line) 30%, var(--e-accent-line) 70%, transparent); }

/* ==========================================================================
   TYPE
   A high-contrast serif for display, a grotesque for everything operational,
   mono for figures. The serif is what carries the luxury; the sans keeps the
   forms and specifications from looking like a wedding invitation.
   ========================================================================== */

:where(.elc h1, .elc h2, .e-display) {
    font-family: var(--e-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.022em;
    color: var(--e-text);
    margin: 0;
    text-wrap: balance;
}
:where(.elc h1, .elc .elc-h1) { font-size: clamp(2.75rem, 6.4vw, 5.6rem); line-height: .99; letter-spacing: -.028em; }
:where(.elc h2, .elc .elc-h2) { font-size: clamp(2.05rem, 4.3vw, 3.6rem); letter-spacing: -.024em; }

/* h3 and below stay in the sans: they label things rather than announce them. */
:where(.elc h3, .elc .elc-h3) { font-family: var(--e-sans); font-size: clamp(1.1rem, 1.5vw, 1.32rem); font-weight: 600; line-height: 1.25; letter-spacing: -.018em; color: var(--e-text); margin: 0; }
:where(.elc h4) { font-family: var(--e-sans); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--e-text); margin: 0; }

/* The accent phrase: gold, italic, same serif. One per section at most — it
   is the single most repeated gesture in this design and it stops working the
   moment it appears twice in a row. */
.e-accent-word {
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.015em;
    background: var(--e-gold-metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback for engines that drop background-clip on text. */
    -webkit-text-fill-color: transparent;
}
/* Where the gradient cannot be trusted (very small sizes, forced colours) the
   flat accent token is still correct. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .e-accent-word { color: var(--e-accent); -webkit-text-fill-color: currentColor; background: none; }
}
@media (forced-colors: active) {
    .e-accent-word { color: CanvasText; -webkit-text-fill-color: currentColor; background: none; }
}

.e-eyebrow, .elc-eyebrow {
    display: block; position: relative;
    padding-inline-start: 2.4rem;
    font-family: var(--e-mono);
    font-size: .64rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
    color: var(--e-accent);
    margin: 0 0 1.25rem;
}
.e-eyebrow::before, .elc-eyebrow::before {
    content: ''; position: absolute; inset-inline-start: 0; top: .45em;
    width: 1.75rem; height: 2px; background: var(--e-gold-metal-soft);
}
.e-eyebrow--bare { padding-inline-start: 0; }
.e-eyebrow--bare::before { display: none; }

.e-lead, .elc-lead { font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.62; color: var(--e-text-muted); max-width: 54ch; margin: 0; }
.elc-prose { max-width: var(--e-measure); color: var(--e-text-muted); font-size: 1.02rem; line-height: 1.78; }
.elc-prose p { margin: 0 0 1.3rem; }
.elc-prose p:last-child { margin-bottom: 0; }
.elc-prose strong { color: var(--e-text); font-weight: 600; }

.e-figure, .e-car__specs, .e-spec, .e-price { font-variant-numeric: tabular-nums; }
.e-figure-lg { font-family: var(--e-display); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }

.e-link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--e-sans); font-size: .88rem; font-weight: 600;
    color: var(--e-accent); text-decoration: none;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--e-accent-line);
    transition: border-color var(--e-fast) var(--e-ease), gap var(--e-fast) var(--e-ease);
}
.e-link:hover { border-bottom-color: var(--e-gold); gap: .7rem; }

.e-head, .elc-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
@media (min-width: 62rem) {
    .e-head--split, .elc-head--split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: end; gap: clamp(2.5rem, 6vw, 6rem); }
}
.e-head__aside, .elc-head__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.15rem; padding-bottom: .35rem; }
.e-head--center { justify-items: center; text-align: center; }
.e-head--center .e-eyebrow { padding-inline-start: 0; }
.e-head--center .e-eyebrow::before { display: none; }
.e-head--center .e-lead { max-width: 58ch; margin-inline: auto; }

/* ==========================================================================
   BUTTONS
   Primary is black on white / gold on black. The gold button is the one that
   should feel expensive, so it carries the metal gradient and a warm glow.
   ========================================================================== */

.e-btn, .elc-btn {
    --_bg: var(--e-brand); --_fg: var(--e-on-brand); --_bd: var(--e-brand);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 52px; padding: .95rem 1.75rem;
    border: 1px solid var(--_bd); border-radius: var(--e-radius);
    background: var(--_bg); color: var(--_fg);
    font-family: var(--e-sans); font-size: .88rem; font-weight: 650; letter-spacing: -.005em; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: var(--e-shadow-1), inset 0 1px 0 rgba(255,255,255,.12);
    transition: background var(--e-fast) var(--e-ease), border-color var(--e-fast) var(--e-ease),
                color var(--e-fast) var(--e-ease), box-shadow var(--e-mid) var(--e-ease), transform var(--e-fast) var(--e-ease);
}
.e-btn:hover, .elc-btn:hover { --_bg: var(--e-brand-hover); --_bd: var(--e-brand-hover); transform: translateY(-1px); box-shadow: var(--e-shadow-2); }

/* The gold button. Metal gradient, gold glow, ink label. */
.e-btn--gold, .e-btn--accent, .elc-btn--gold {
    background: var(--e-gold-metal);
    border-color: var(--e-gold-deep);
    color: #0a0a0a;
    box-shadow: var(--e-glow-gold), inset 0 1px 0 rgba(255,255,255,.35);
    font-weight: 700;
}
.e-btn--gold:hover, .e-btn--accent:hover, .elc-btn--gold:hover {
    background: var(--e-gold-metal);
    filter: brightness(1.06);
    box-shadow: 0 10px 34px rgba(212,175,55,.42), inset 0 1px 0 rgba(255,255,255,.4);
}

.e-btn--outline, .elc-btn--ghost, .e-btn--on-dark, .elc-btn--on-dark {
    --_bg: transparent; --_fg: var(--e-text); --_bd: var(--e-line-strong);
    box-shadow: none;
}
.e-btn--outline:hover, .elc-btn--ghost:hover, .e-btn--on-dark:hover, .elc-btn--on-dark:hover {
    --_bd: var(--e-gold); --_fg: var(--e-accent); --_bg: var(--e-accent-wash);
    box-shadow: none;
}

.e-btn--quiet { --_bg: var(--e-surface-2); --_fg: var(--e-text); --_bd: var(--e-line); box-shadow: none; }
.e-btn--quiet:hover { --_bg: var(--e-surface-3); --_bd: var(--e-line-strong); }

.e-btn--wa { --_bg: var(--e-wa); --_bd: var(--e-wa); --_fg: #04140a; }
.e-btn--wa:hover { --_bg: #1fbb59; --_bd: #1fbb59; }

.e-btn--wide, .elc-btn--wide { width: 100%; }
.e-btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .8rem; }
.e-btn--lg { min-height: 58px; padding: 1.15rem 2.1rem; font-size: .95rem; }
.e-btn svg { flex-shrink: 0; }

.e-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; min-width: 52px; height: 52px;
    border: 1px solid var(--e-line-strong); border-radius: var(--e-radius);
    background: transparent; color: var(--e-text); text-decoration: none;
    transition: background var(--e-fast) var(--e-ease), border-color var(--e-fast) var(--e-ease), color var(--e-fast) var(--e-ease);
}
.e-iconbtn:hover { background: var(--e-accent-wash); border-color: var(--e-gold); color: var(--e-accent); }

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */

:where(.elc input, .elc select, .elc textarea, .elc button) { font-family: var(--e-sans); }

.e-field { display: grid; gap: .4rem; min-width: 0; }
.e-field > label, .e-label { font-family: var(--e-mono); font-size: .6rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--e-text-muted); }

.e-input, .e-select, .e-textarea,
.elc input[type='text'], .elc input[type='email'], .elc input[type='tel'], .elc input[type='date'],
.elc input[type='time'], .elc input[type='number'], .elc input[type='search'], .elc input[type='password'],
.elc textarea, .elc select {
    width: 100%; min-height: 52px; padding: .85rem .95rem;
    border: 1px solid var(--e-line-strong); border-radius: var(--e-radius);
    background: var(--e-surface-3); color: var(--e-text);
    font-size: .95rem; line-height: 1.4;
    box-shadow: inset 0 1px 3px rgba(10,10,10,.08);
    transition: border-color var(--e-fast) var(--e-ease), box-shadow var(--e-fast) var(--e-ease);
    appearance: none; -webkit-appearance: none;
}
[data-theme='dark'] .elc input, [data-theme='dark'] .elc select, [data-theme='dark'] .elc textarea,
.e-on-ink input, .e-on-ink select, .e-on-ink textarea { box-shadow: inset 0 1px 4px rgba(0,0,0,.6); }
.elc textarea { min-height: 8.5rem; resize: vertical; padding-top: .85rem; }
.elc ::placeholder { color: var(--e-text-faint); opacity: 1; }
.elc input:hover, .elc select:hover, .elc textarea:hover { border-color: var(--e-text-faint); }
.elc input:focus, .elc select:focus, .elc textarea:focus {
    outline: none; border-color: var(--e-gold);
    box-shadow: inset 0 1px 3px rgba(10,10,10,.06), 0 0 0 3px var(--e-accent-wash);
}

.elc select {
    padding-inline-end: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right 1.1rem center, right .75rem center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.elc:dir(rtl) select { background-position: left .75rem center, left 1.1rem center; }
.elc select option, .elc select optgroup { background: var(--e-surface); color: var(--e-text); }
[data-theme='dark'] .elc input[type='date']::-webkit-calendar-picker-indicator,
.e-on-ink input[type='date']::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.6); cursor: pointer; }

.e-fieldnote { font-size: .8rem; color: var(--e-text-faint); margin: 0; }
.elc .invalid-feedback, .elc .text-danger, .elc .help-block { display: block; margin-top: .35rem; font-size: .83rem; color: var(--e-danger); }

/* ==========================================================================
   BADGES
   ========================================================================== */

.e-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .32rem .6rem; border-radius: 3px;
    font-family: var(--e-mono); font-size: .58rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; line-height: 1;
}
.e-badge--gold, .e-badge--accent { background: var(--e-gold-metal); color: #0a0a0a; font-weight: 700; }
.e-badge--quiet { background: var(--e-accent-wash); color: var(--e-accent); border: 1px solid var(--e-accent-line); }
.e-badge--outline { border: 1px solid var(--e-line-strong); color: var(--e-text-muted); }
.e-badge--ink { background: rgba(6,6,6,.78); color: #f5f2ea; border: 1px solid rgba(245,242,234,.22); backdrop-filter: blur(8px); }

.e-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--e-line); border-radius: var(--e-radius-pill); background: var(--e-surface); color: var(--e-text-muted); font-size: .8rem; font-weight: 500; line-height: 1; }
.e-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--e-ok); flex-shrink: 0; }

/* ==========================================================================
   ELEVATION HELPERS
   ========================================================================== */

.e-raised { background: var(--e-surface-raised); border: 1px solid var(--e-line); border-top-color: var(--e-edge-top); box-shadow: var(--e-shadow-2); }
.e-lit { position: relative; }
.e-lit::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--e-edge-top) 22%, var(--e-edge-top) 78%, transparent); pointer-events: none; z-index: 3; }

/* ==========================================================================
   MEDIA WRAPPERS
   <picture> is inline by default, so height:100% on the <img> inside collapses
   and every full-bleed image loses its cover behaviour.
   ========================================================================== */

.e-media, .e-media picture { display: block; width: 100%; height: 100%; }
.e-media img { width: 100%; height: 100%; object-fit: cover; }
.elc img[data-bb-lazy] { opacity: 1; }

/* ==========================================================================
   MOTION
   ========================================================================== */

.e-js .e-reveal, .e-js .elc-reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--e-slow) var(--e-ease), transform var(--e-slow) var(--e-ease); }
.e-js .e-reveal.is-in, .e-js .elc-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .elc *, .elc *::before, .elc *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
    .e-js .e-reveal, .e-js .elc-reveal { opacity: 1; transform: none; }
}

.e-theme-switching, .e-theme-switching * { transition: none !important; }
