/* ============================================================
   LC-A CORE — shared front-end styles
   ------------------------------------------------------------
   Extracted from the static site's five inline <style> blocks:
     index.html · projects.html · studio.html · contact.html · orbit.html
   Only rules byte-identical across ALL FIVE pages live here.
   Source of truth: /home/animart-design-lc-a/wp-migration/COMPONENTS.md

   The day/night palettes are NOT here — they are in mode-day.css and
   mode-night.css, loaded immediately after this file.

   GSAP owns opacity. [data-reveal] is an ATTRIBUTE selector and must
   stay one (COMPONENTS.md risk register #3).
   ============================================================ */

/* ---- A1 · :root tokens — the eight that are byte-identical on all five pages.
        --pane-split / --pane-gutter are homepage-only and belong to that
        component, not here (COMPONENTS.md A1). ---- */
:root{
  --ease-zha:cubic-bezier(.05,.83,.52,.97);
  --ease-soft:cubic-bezier(.4,0,.2,1);
  --mode-fade:.8s var(--ease-soft);
  --shell:min(92vw,1720px);
  --track-wide:.40em; --track-mid:.16em;
  --font-disp:"Murecho","Helvetica Neue",system-ui,sans-serif;
  --font-body:"Roboto","Helvetica Neue",system-ui,sans-serif;
}

/* ---- Reset & base ---- */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;scroll-behavior:smooth}
body{background:var(--bg);color:var(--fg);font-family:var(--font-body);line-height:1.6;overflow-x:hidden;
  transition:background-color var(--mode-fade),color var(--mode-fade)}
/* MODE CROSSFADE. The static site carried a different hand-maintained selector list on
   every page; this is the UNION of all five, so nothing that crossfades today stops.
   COMPONENTS.md risk register #19 flags the un-generalised list as a hazard: any NEW
   component must be added here or it will hard-flip while its neighbours crossfade. */
body,.nav,.nav__links a,.toggle,.statement,.sec-head h2,.sec-head .num,.pane__meta,.pane__title
.pane__disc,.pane__excerpt,.pane__idx,.foot,.foot *,.rule,.eyebrow,.lede,.scroll-cue
.statement-sub,.film__cap,.proj__meta,.proj__title,.proj__disc,.proj__idx,.chip,.phead__sub,.stmt
.stmt__sub,.block h2,.block__num,.prose,.prose strong,.portrait__name,.portrait__role,.accred *
.field,.field label,.field input,.field textarea,.send,.detail,.detail *,.desc__lead,.chapter
.chapter *,.carousel *,.actionbar,.actionbar__btn{
  transition:background-color var(--mode-fade),color var(--mode-fade),border-color var(--mode-fade),opacity var(--mode-fade)}
/* ---- B7a · HOMEPAGE STATEMENT — the two declarations the panel cannot express.

   Everything else about this section IS native Elementor: the container padding,
   both typographies (bound to the Statement Prose and Body Small globals), both
   colours (Ink and Ink Soft), the centring, the sub's top margin. These two are
   not, and the reasons are structural rather than a gap in the UI.

   1 · max-width:24ch on the HEADING TEXT, not on its wrapper.
      ch is relative to the element's OWN font-size. The static rule sits on
      .statement itself, where the font is clamp(1.7rem,4.6vw,3.7rem) — 59.2px at
      1440 — so 24ch measures 851px. Elementor can only put a width on the widget
      WRAPPER, which inherits the body's 16px, where the same 24ch measures 216px.
      Measured, both numbers. No panel setting can move a ch-based measure onto the
      element whose font-size defines the ch.
      (Elementor also neutralises its own setting here: custom-frontend.min.css has
      `.elementor.elementor .e-con > .elementor-widget{max-width:100%}` at (0,4,0),
      which outranks the (0,3,0) rule the panel generates. Third instance of that
      pattern on this project, after the hero embed and the accreditation marks.)

   2 · .statement em — the source wraps ONE word to tint it. The panel has no
      control for styling a tag nested inside a heading.

   Both are scoped to .statement, which is applied from the panel (Advanced > CSS
   Classes) and already exists in the --mode-fade list above, so the section
   crossfades with its neighbours on a day/night switch. */
/* MULTI-BLOCK RICH TEXT. LCA_Widget_Base::render_rich_text() emits a <p> for a
   single paragraph — byte-identical to the static markup — and falls back to a
   <div> when the editor has genuinely entered several blocks, because a <p>
   cannot legally contain another. These two rules make that fallback match: the
   inner paragraphs drop their UA margins and take a measured gap instead, so the
   rhythm is the same either way. Never fires on the single-paragraph path. */
.lede>p,.phead__sub>p,.stmt__sub>p,.prose>p{margin:0}
.lede>p+p,.phead__sub>p+p,.stmt__sub>p+p,.prose>p+p{margin-top:.75em}

.statement .elementor-heading-title{max-width:24ch;margin-left:auto;margin-right:auto}
.statement em{font-style:normal;color:var(--muted)}

img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.disp{font-family:var(--font-disp);font-stretch:100%;text-transform:uppercase}

/* ---- Focus ring ----
   PORTED, NOT COPIED. The static site shipped no visible focus style at all,
   and Hello Elementor's reset.css — which did — is now disabled in the child
   theme. Dropping it wholesale would have inherited that accessibility gap
   silently, so the ring is reimplemented here in LC-A's own tokens.

   Hello used a #000 outline with a #fff halo. Measured against these palettes
   that is 20.63:1 in day but 1.06:1 in night — an invisible ring in night mode.
   Using --fg / --bg instead makes it follow the palette:
     day   ring vs page 17.10:1, vs footer --bg-2 15.26:1
     night ring vs page 17.67:1, vs footer --bg-2 16.42:1
   WCAG 2.2 SC 1.4.11 wants >= 3:1 for non-text contrast.

   The halo is --bg rather than a fixed colour so the ring stays legible on
   whichever surface the control sits on. Over full-bleed media (the homepage
   hero, .nav.-overlay) the halo is the page background rather than the image;
   that is the same compromise Hello made, and still far better than no ring.

   outline follows the element's own border-radius, so the round .toggle keeps
   a round ring without any extra rule. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible{
  outline:2px solid var(--fg);outline-offset:2px;box-shadow:0 0 0 4px var(--bg)}
/* Pointer users keep a clean UI: only keyboard focus draws the ring. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:not([tabindex="-1"]):focus:not(:focus-visible){
  outline:none;box-shadow:none}

/* ---- B2 · NAV ---- */
/* --bs is the single header scale knob. It lives HERE, on .nav, rather than on .nav__brand,
   so it is an ancestor of BOTH the brand lockup and .nav__links and the two can never drift
   apart. 1.1025 is a deliberate compound (1.05 x 1.05) = +10.25% on the 1.0 baseline. */
.nav{--bs:1.1576;position:fixed;inset:0 0 auto 0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  padding:18px clamp(20px,4vw,52px);--nav-fg:var(--fg)}
.nav::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--nav-bg);border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  opacity:1;transition:opacity .5s var(--ease-soft),background-color var(--mode-fade)}
.nav__brand{display:flex;align-items:center;gap:calc(13px * var(--bs) * 1.05);color:var(--nav-fg)}
.brandmark{width:calc(50px * var(--bs,1) * 1.05);height:calc(19px * var(--bs,1) * 1.05);background:currentColor;flex:0 0 auto;
  -webkit-mask:url(../img/logo-no-wording.png) left center/contain no-repeat;
          mask:url(../img/logo-no-wording.png) left center/contain no-repeat}
.nav__brand .sep{width:1px;height:calc(16px * var(--bs,1) * 1.05);background:currentColor;opacity:.38}
.nav__brand .wm{font-size:calc(11px * var(--bs,1) * 1.05);font-weight:500;letter-spacing:var(--track-mid);text-transform:uppercase;opacity:.86}
.nav__links{display:flex;gap:24px;align-items:center}
/* size derived from --bs so it always equals the brand wordmark (both Roboto, both .16em,
   both uppercase). Weight stays 400 against the wordmark's 500 — intended hierarchy. */
.nav__links a{position:relative;font-size:calc(11px * var(--bs,1));letter-spacing:var(--track-mid);text-transform:uppercase;
  color:var(--nav-fg);padding:6px 1px 7px;opacity:.85;
  transition:opacity .25s var(--ease-soft),color var(--mode-fade)}
.nav__links a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left center;transition:transform .45s var(--ease-zha)}
.nav__links a:hover{opacity:1}
.nav__links a:hover::after,.nav__links a.is-active::after{transform:scaleX(1)}
.nav__links a.is-active{opacity:1}
/* The footer's own ≤880px rules used to live here, inside the nav's media
   block, exactly as the static site has them. They have been MOVED to the end
   of the footer section — see the note there.

   THE NAV RULES THAT REMAINED HERE ARE GONE with the swap to the native header:

       @media(max-width:880px){.nav__links{display:none}.nav__brand .wm{display:none}}

   They described the static site's mobile header, which had no navigation at
   all below 880px: the links were hidden, no hamburger replaced them, and the
   brand separator was left dangling beside a lone monogram (defect 2). The
   native header collapses to a real hamburger at the same breakpoint and hides
   its wordmark AND separator together through Elementor's own responsive
   visibility, so both declarations described behaviour that no longer exists.

   ⚠️ THE REST OF THE LEGACY .nav BLOCK ABOVE IS DELIBERATELY KEPT. Templates 21
   and 25 are DRAFTED, not deleted, precisely so the old header can be brought
   back. Deleting the CSS that renders it would make that rollback a broken page
   rather than a working one. It goes when they do. */
/* HOMEPAGE VARIANT. index.html sits over a full-bleed hero video, so its nav starts
   transparent with a fixed near-white ink and only solidifies once scrolled. Everything
   above is the four-page default; this is additive, so the two can never drift apart.
   Apply with <header class="nav -overlay"> on the homepage only. */
.nav.-overlay{--nav-fg:#f5f4f1}
.nav.-overlay::before{opacity:0}
.nav.-overlay.is-scrolled{--nav-fg:var(--fg)}
.nav.-overlay.is-scrolled::before{opacity:1}

/* ---- WordPress admin bar offset ----
   NOT from the static site — the admin bar does not exist there.

   #wpadminbar is position:fixed against the VIEWPORT, and WordPress pushes the
   document down with html{margin-top:32px!important}. A position:fixed element
   is positioned against the viewport too, so .nav never sees that margin and
   sits underneath the bar. Measured: 32px of overlap at desktop, 46px below
   782px.

   Scoped to body.admin-bar, so a logged-out visitor's cascade is untouched —
   the only rules that change are ones that cannot match without that class.

   782px is WORDPRESS'S breakpoint, not an LC-A one: it is the width at which WP
   itself swaps the bar to 46px. Deliberately not one of the kit breakpoints
   (620/760/880/1024), which describe the design, not the admin chrome.

   The height is read from WordPress's own --wp-admin--admin-bar--height token
   where available, so it stays correct if WP ever retunes it; the fallbacks are
   the current 32/46.

   --lca-admin-bar is published for everything else pinned to the viewport top.
   Today .nav is the only such element in this stylesheet. When the Projects
   filter bar lands it is sticky at calc(var(--nav-h) - 1px) and must add this
   too, as must any ScrollTrigger using pin:true, which parks its pin at the
   viewport top. Reveal triggers do not: both starts here are viewport
   PERCENTAGES (clamp(top 88%) / clamp(top 95%)), which the bar does not move. */
:root{--lca-admin-bar:0px}
body.admin-bar{--lca-admin-bar:var(--wp-admin--admin-bar--height,32px)}
@media screen and (max-width:782px){
  body.admin-bar{--lca-admin-bar:var(--wp-admin--admin-bar--height,46px)}
}
body.admin-bar .nav{top:var(--lca-admin-bar)}


/* ---- B2 · language switcher (header; reusable, non-functional stub for now) ---- */
.nav__actions{display:flex;align-items:center;gap:clamp(13px,1.7vw,20px)}
/* DEVIATION 10 — not reachable in the static site, which has no show/hide toggles.
   .nav is justify-content:space-between across TWO children. With the brand hidden
   there is only one child left, and space-between then behaves exactly like
   flex-start: the actions would slide to the left edge. -nobrand (emitted by the
   header widget when the brand block is not rendered) keeps them where the design
   puts them. */
.nav.-nobrand{justify-content:flex-end}
.langswitch{display:flex;align-items:center;gap:7px;color:var(--nav-fg);display:none}
.langswitch__opt{font-family:var(--font-body);font-size:11px;letter-spacing:var(--track-mid);text-transform:none;
  color:var(--nav-fg);background:none;border:0;padding:2px 0;line-height:1;cursor:pointer;opacity:.55;
  transition:opacity .25s var(--ease-soft),color var(--mode-fade)}
.langswitch__opt:hover{opacity:1}
.langswitch__opt.is-active{opacity:1;font-weight:500}
.langswitch__sep{color:var(--nav-fg);font-size:11px;line-height:1;opacity:.4;pointer-events:none;user-select:none}

/* ---- B3 · day / night toggle ---- */
.toggle{--d:30.86px;width:var(--d);height:var(--d);border-radius:50%;border:1px solid currentColor;color:var(--nav-fg);
  background:transparent;display:grid;place-items:center;cursor:pointer;position:relative;overflow:hidden;opacity:.9;
  transition:transform .6s var(--ease-zha),opacity .3s,color var(--mode-fade)}
.toggle:hover{opacity:1;transform:rotate(-20deg)}
.toggle svg{position:absolute;width:calc(var(--d) * 20.9 / 42);height:calc(var(--d) * 20.9 / 42);transition:opacity .55s var(--ease-soft),transform .7s var(--ease-zha)}
.toggle .i-sun{opacity:0;transform:scale(.4) rotate(-70deg)}
html[data-mode="night"] .toggle .i-moon{opacity:0;transform:scale(.4) rotate(70deg)}
html[data-mode="night"] .toggle .i-sun{opacity:1;transform:scale(1) rotate(0)}

/* ============================================================
   B2 · NATIVE HEADER — composed from containers
   ------------------------------------------------------------
   The header rebuilt as native Elementor containers plus two single-purpose
   widgets (LC Brandmark, LC Mode Toggle). Sizes are NOT here: every one of
   them comes from a container's own Width control, per breakpoint, in px/rem.
   What is here is only what a panel cannot express.

     - the mask-recoloured monogram, which needs currentColor + --nav-fg
     - the blur layer's two-state crossfade for the overlay variant
     - the toggle's clamp, its derived ring gap and its 40x40 hit area
     - Elementor's nav-menu markup wearing the LC-A link treatment

   THE HEADER ROOT is whichever container carries data-lca-nav-root. core.js
   measures --nav-h from it and header.js binds the overlay scroll class to it.
   Adding it in Advanced > Attributes is the one step that is not a panel
   control:

       data-lca-nav-root|

   Everything below is ADDITIVE to the legacy .nav rules above, which stay
   untouched while the old header widget still exists. The two never meet: one
   keys off .nav, the other off the attribute.
   ============================================================ */
[data-lca-nav-root]{position:relative;--nav-fg:var(--fg);color:var(--nav-fg)}
/* The blur pane. It is a ::before rather than the container's own Background
   control because the overlay variant CROSSFADES it between transparent and
   blurred, and a two-state transition is not something the Background control
   can express. Everything else about the container — padding, gap, widths,
   positioning — stays native. */
/* ⚠️ THE DOUBLED ATTRIBUTE IS THE WHOLE FIX. DO NOT "TIDY" IT TO ONE.
   Elementor ships

       .e-con:before{ … content:var(--background-overlay); … }

   and --background-overlay is UNDEFINED unless someone sets a background
   overlay in the panel. So content is invalid and the pseudo-element is never
   generated at all. Written as [data-lca-nav-root]::before this rule is (0,1,0)
   — a TIE with .e-con:before — and Elementor's stylesheet is enqueued after
   core.css, so source order gave it every property including content.

   Measured: the pane computed content:none, and its width computed
   max(100% + 0px, 100%), which is Elementor's sizing, not ours — the tell that
   we were losing the whole rule, not one declaration.

   Doubling the attribute takes this to (0,2,0) and settles it. Same family as
   the Pro margin-top tie on the dropdown panel. */
[data-lca-nav-root][data-lca-nav-root]::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--nav-bg);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  opacity:1;transition:opacity .5s var(--ease-soft),background-color var(--mode-fade)}
/* ADMIN BAR. Same reasoning as body.admin-bar .nav above: a position:fixed
   element is laid out against the VIEWPORT, so it never sees the
   html{margin-top} WordPress uses to push the document down, and it sits under
   the bar for every logged-in editor.
   ⚠️ Elementor's own Positioning control emits an offset at (0,2,0) on the
   element, which is the same weight as this rule — so which wins depends on
   source order, and that has to be MEASURED logged in rather than assumed. If
   Elementor wins, leave its vertical offset unset and this rule takes effect. */
body.admin-bar [data-lca-nav-root]{top:var(--lca-admin-bar)}

/* OVERLAY — a per-page setting now, not a second template. Mirrors
   .nav.-overlay exactly. The fixed near-white is deliberately outside the
   palette: it must NOT flip with day/night, because it sits over the film. */
body.lca-overlay-header [data-lca-nav-root]{--nav-fg:#f5f4f1}
body.lca-overlay-header [data-lca-nav-root][data-lca-nav-root]::before{opacity:0}
body.lca-overlay-header [data-lca-nav-root].is-scrolled{--nav-fg:var(--fg)}
body.lca-overlay-header [data-lca-nav-root][data-lca-nav-root].is-scrolled::before{opacity:1}

/* ---- LC Brandmark ----
   width:100% of its container with the ratio read from the artwork, so the
   admin sizes it on the container and replacing the logo cannot squash it.
   background:currentColor + a mask is the whole reason it recolours; a native
   Image widget renders a fixed-colour asset that would vanish in one mode. */
.lca-brandmark{display:block;width:100%;aspect-ratio:var(--lca-bm-ar,50 / 19);height:auto;
  background:currentColor;color:inherit;flex:0 0 auto;
  -webkit-mask-position:left center;mask-position:left center;
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
a.lca-brandmark__link{display:block;width:100%;color:var(--nav-fg)}

/* ---- the brand hairline ----
   currentColor, so it follows --nav-fg into the overlay and night variants
   exactly as the monogram beside it does — which is the one thing a panel
   Background control cannot express, and the only reason this is not a plain
   container setting. The admin still owns its width, height and position.
   Sized 1 x 19.45px by its container; .38 is the static site's value. */
.lca-nav-sep{background:currentColor;opacity:.38}

/* ---- LC Mode Toggle ----
   The BUTTON is the hit target and never clips. The RING inside it is the
   visible circle and carries overflow:hidden. Two elements because
   .toggle{overflow:hidden} above would clip a 40x40 ::after — which is exactly
   why the legacy button could not simply grow one.

   width:clamp(24px,100%,44px) IS the sizing contract: fill the container, but
   never below 24px or above 44px whatever the admin sets. Everything else
   derives from that rendered size — the ring gap is (size - icon)/2 via
   place-items:center, and the hit area is max(40px,100%), so it stays a legal
   tap target even when the circle is drawn at its 24px floor. */
.lca-mode-toggle{position:relative;display:grid;place-items:center;
  width:clamp(24px,100%,44px);aspect-ratio:1;
  background:none;border:0;padding:0;margin:0;cursor:pointer;
  color:var(--nav-fg);opacity:.9;
  transition:opacity .3s,color var(--mode-fade)}
.lca-mode-toggle::after{content:"";position:absolute;left:50%;top:50%;
  width:max(40px,100%);height:max(40px,100%);transform:translate(-50%,-50%)}
.lca-mode-toggle:hover{opacity:1}
.lca-mode-toggle__ring{width:100%;height:100%;border-radius:50%;border:1px solid currentColor;
  display:grid;place-items:center;position:relative;overflow:hidden;
  transition:transform .6s var(--ease-zha)}
/* The rotate is on the RING, not the button: rotating the button would rotate
   its hit area with it and shave the corners off a 40px target. */
.lca-mode-toggle:hover .lca-mode-toggle__ring{transform:rotate(-20deg)}
.lca-mode-toggle__ring svg{position:absolute;width:calc(100% * 20.9 / 42);height:calc(100% * 20.9 / 42);
  transition:opacity .55s var(--ease-soft),transform .7s var(--ease-zha)}
.lca-mode-toggle .i-sun{opacity:0;transform:scale(.4) rotate(-70deg)}
html[data-mode="night"] .lca-mode-toggle .i-moon{opacity:0;transform:scale(.4) rotate(70deg)}
html[data-mode="night"] .lca-mode-toggle .i-sun{opacity:1;transform:scale(1) rotate(0)}

/* ---- native Nav Menu, wearing the LC-A link treatment ----
   Elementor Pro emits a.elementor-item and marks the current page
   .elementor-item-active — computed by wp_nav_menu(), which is the half the
   header widget had to reimplement by hand. So is-active resolves natively.
   Scoped to the header root so it cannot reach a nav menu anywhere else. */
/* ⚠️ NO PADDING HERE, AND NO GAP. Item spacing belongs to the Nav Menu
   widget's own controls — Space Between, Horizontal Padding, Vertical Padding —
   so an admin can change it. This rule used to carry padding:6px 1px 7px, which
   is (0,3,0) and quietly beat Pro's base padding, collapsing the menu to a
   single run of words. The legacy 24px gap is now menu_space_between:24, which
   Elementor emits as a 12px margin per side; with 1px horizontal padding either
   side that is the same 26px text-to-text the static site has. */
[data-lca-nav-root] .elementor-nav-menu a.elementor-item{position:relative;
  font-family:var(--font-body);letter-spacing:var(--track-mid);text-transform:uppercase;
  opacity:.85;background:none;
  transition:opacity .25s var(--ease-soft),color var(--mode-fade)}
[data-lca-nav-root] .elementor-nav-menu a.elementor-item::after{content:"";position:absolute;
  left:0;right:0;bottom:0;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left center;transition:transform .45s var(--ease-zha)}
[data-lca-nav-root] .elementor-nav-menu a.elementor-item:hover{opacity:1}
[data-lca-nav-root] .elementor-nav-menu a.elementor-item:hover::after,
[data-lca-nav-root] .elementor-nav-menu a.elementor-item.elementor-item-active::after{transform:scaleX(1)}
[data-lca-nav-root] .elementor-nav-menu a.elementor-item.elementor-item-active{opacity:1}
/* Elementor paints its own hover/focus background. The LC-A treatment is the
   hairline underneath, so neutralise it here rather than fight it in the panel. */
[data-lca-nav-root] .elementor-nav-menu a.elementor-item:focus,
[data-lca-nav-root] .elementor-nav-menu a.elementor-item:hover,
[data-lca-nav-root] .elementor-nav-menu a.elementor-item.highlighted{background:none}

/* ---- hamburger + dropdown ----
   The mobile menu the static site never had: below 880px it hid .nav__links
   and shipped no hamburger, so there was no navigation at all. Signed off as a
   deliberate addition, not a migration. */
/* NO colour here. The hamburger's ink is set on the Nav Menu widget's own
   Toggle Button colour control, resolving to var(--nav-fg), so it stays
   admin-editable and still follows the overlay and night variants. A rule here
   would win and quietly make that control do nothing — the same trap as
   toggle_d, in the other direction. */
[data-lca-nav-root] .elementor-menu-toggle{background:none;border:0;padding:4px}
[data-lca-nav-root] .elementor-menu-toggle:hover{background:none}
/* ⚠️ THE PANEL MUST LEAVE NORMAL FLOW, AND IT DOES NOT BY DEFAULT.
   Elementor renders <nav class="elementor-nav-menu--dropdown"> as a static
   block sibling of the hamburger, with a 10px top margin. Inside the header's
   flex row that makes it a real item: measured, it took the Nav Menu widget to
   55.95px and the whole header to 91.95px at 880 and 90px at 620, against
   68.47px for the legacy header. --nav-h is published from that height, so
   everything tucked under the nav moved with it.

   ⚠️ AND OUT OF FLOW IS NOT ENOUGH — MEASURED. Making the widget
   position:static was meant to hand the panel to the header root, but
   Elementor gives every CONTAINER --position:relative, so the nearest
   positioned ancestor is the actions container the hamburger sits in, not the
   root. The panel came out 75px wide at y 60 against a header bottom of 68:
   out of flow, correctly, and in the wrong place.

   position:fixed sidesteps the question entirely. The header is itself fixed
   at the viewport top, so the panel belongs at the viewport coordinate
   directly below it — and --nav-h is exactly that number, measured live by
   core.js and re-measured on resize and fonts.ready. The admin bar is composed
   here for the same reason every other pinned element composes it. Nothing in
   the header carries a transform, filter or will-change, so no ancestor can
   capture a fixed descendant. */
[data-lca-nav-root] .elementor-widget-nav-menu{position:static}
/* ⚠️ THE SECOND CLASS IS LOAD-BEARING, and it is a specificity TIE, not a loss.
   Pro ships `.elementor-nav-menu--dropdown.elementor-nav-menu__container
   {margin-top:10px}` at (0,2,0) in custom-pro-widget-nav-menu.min.css. Written
   as `[data-lca-nav-root] .elementor-nav-menu--dropdown` this rule is ALSO
   (0,2,0), and Pro's stylesheet is enqueued after core.css, so source order
   handed it the win: the panel sat 10px below the header with the page showing
   through the gap between two blur panes. Matching Pro's own second class takes
   this to (0,3,0) and settles it. There is no widget control for that margin —
   this is one of the few places where CSS is the only layer available. */
[data-lca-nav-root] .elementor-nav-menu--dropdown.elementor-nav-menu__container{position:fixed;left:0;right:0;
  top:calc(var(--nav-h,70px) + var(--lca-admin-bar,0px));
  width:auto;margin-top:0;z-index:1;
  background:var(--nav-bg);
  -webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  border-top:1px solid var(--line)}
/* Padding is set on the widget (Dropdown > Horizontal/Vertical Padding) and
   measures identically — 14px / 24.8px at 620. Only the opacity stays here. */
[data-lca-nav-root] .elementor-nav-menu--dropdown a.elementor-item{opacity:.9}
[data-lca-nav-root] .elementor-nav-menu--dropdown a.elementor-item::after{display:none}

/* ---- B4 · FOOTER ---- */
/* monogram drawn as a fine contour line — whole, contained on the left, vertically centred.
   It traces itself when the footer scrolls into view, then rests as a quiet hairline.
   colour follows --fg so it sits a hair off the footer bg in both modes. */
.foot{position:relative;background:var(--bg-2);border-top:1px solid var(--line);padding:26px clamp(20px,4vw,56px) 22px}
.foot__mark{position:relative;
  height:calc(clamp(110px,20vh,230px) * var(--fm));z-index:0;pointer-events:none;visibility:hidden;
  color:var(--fg);opacity:var(--foot-mark-op)}
.foot__mark svg{display:block;height:100%;width:auto;overflow:visible;will-change:transform}
/* FAILED-CDN / NO-JS SAFETY NET: .gsap-ready is only added once gsap AND ScrollTrigger exist. If
   they never load the script returns before footMark.style.visibility is set, so without this the
   mark would stay visibility:hidden forever. No dasharray is set on that path either, so it shows
   fully drawn — which is the correct worst case. */
html:not(.gsap-ready) .foot__mark{visibility:visible}
/* FILLED IS THE DEFAULT — same reasoning as the dash offset staying 0: if the trigger never fires,
   the mark must still rest as the finished logo, never a half state. fill-opacity is zeroed by JS
   only at the instant the timeline actually starts (onStart), so no-JS / failed-CDN / reduced-motion
   all land on the filled mark. currentColor resolves to .foot__mark's color:var(--fg), so fill and
   stroke share one colour source and both ride the existing '.foot *' mode-fade transition. */
.foot__mark path{fill:currentColor;fill-opacity:1;stroke:currentColor;stroke-width:4;
  stroke-linejoin:round;stroke-linecap:round}
.foot__in{position:relative;z-index:1;width:var(--shell);margin:0 auto;display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:clamp(24px,4vw,56px)}
/* DEVIATION 9 — not in the static site, which has no show/hide toggles and so can
   never reach this state. With one of the two footer columns hidden, space-between
   degenerates to flex-start: the surviving column jumps to the left edge while its
   own text-align:right stays, which reads as a bug. -solo (emitted by the footer
   widget whenever exactly one column renders) restores the designed edge —
   flex-start for the brand, flex-end for the right column. */
.foot__in.-solo{justify-content:flex-start}
.foot__in.-solo>.foot__col{margin-left:auto}
/* --fm lives HERE, not on .foot__mark, so both the mark (height) and the wordmark (tracking)
   derive from the one knob. Value unchanged at .45 — the footer's equalised 25.35px/25.67px
   gaps and the stroke-width maths are untouched. */
.foot__brand{--fm:.45;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
/* WIDTH-LOCKED TO THE MONOGRAM. The mark is viewport-HEIGHT driven — its box width is
   clamp(110px,20vh,230px) * --fm * (654.2/250, the viewBox ratio) — while this line is a fixed
   11px. So NO static letter-spacing can align the two at every window height: the required value
   runs from .029em at a 768px viewport to a constant .3323em at 1150px+ (where the clamp caps).
   The old .24em happened to be exactly right at a 1034px window and overhung on anything shorter.
   Hence the derivation:  tracking = (mark box width - this string's own width) / gaps.
   --foot-name-em is the MEASURED width of "LIANOU CHALVATZIS ARCHITECTS" set in Roboto 300 at
   letter-spacing 0, expressed in em: 15.6482 = 172.13px / 11px, taken from the real font's hmtx
   table (2048 upem). It ignores GPOS pair kerning, worth 1-2px — inside visual tolerance.
   ⚠️ RE-MEASURE --foot-name-em AND --foot-name-gaps if the studio name string, the body font, or
   the weight ever changes: they encode THIS exact string in THIS exact face. Gaps is chars-1 (28-1)
   because CSS letter-spacing also adds a trailing gap after the final S, which is invisible ink and
   must not be counted when matching a visible right edge.
   max() floors at 0: below a ~731px viewport the mark is NARROWER than the text at zero tracking,
   so alignment is geometrically impossible there and the text simply overhangs.
   Scoped to .foot__brand — the right-hand column (.foot__col .foot__line) keeps its own .24em. */
.foot__brand .foot__name{text-align:left;
  --foot-name-em:15.6482; --foot-name-gaps:27;
  letter-spacing:max(0px, calc((clamp(110px,20vh,230px) * var(--fm) * 2.6168
    - var(--foot-name-em) * 11px) / var(--foot-name-gaps)))}
.foot__col{text-align:right;display:flex;flex-direction:column;gap:11px}
.foot__line{font-size:11px;font-weight:300;letter-spacing:.24em;color:var(--fg);line-height:1.35}
/* Right column only (+1px, one tonal step in from --muted). Scoped to .foot__col so the LEFT
   column's .foot__name under the monogram keeps the base 11px/--muted treatment. --excerpt-fg is
   reused rather than a new token invented: it was built for exactly this "darker than muted" role
   and fell idle when the excerpts moved to --fg. */
.foot__col .foot__line{font-size:12px;color:var(--fg)}
.foot__name,.foot__cr{text-transform:uppercase}
.foot__line a{color:var(--fg);border-bottom:1px solid transparent;
  transition:color .25s var(--ease-soft),border-color .25s var(--ease-soft)}
.foot__line a:hover{color:var(--fg);border-bottom-color:currentColor}
.foot__cr{margin-top:10px;opacity:1}

/* ---- Footer stack, ≤880px ----
   DELIBERATE DIVERGENCE from the static site — the only rules in this file that
   change its rendering rather than reproduce it.

   The static site declares these inside the NAV's @media(max-width:880px) block
   (contact.html:85-86), which sits ~105 lines BEFORE the base .foot__in:191 and
   .foot__col:216. Same specificity, earlier in source, so the base rules win and
   two of the three declarations never take effect:

     align-items:flex-start  lost to  align-items:flex-end   (base)
     text-align:left         lost to  text-align:right       (base)
     gap:32px                lost to  gap:clamp(24px,4vw,56px) (base)

   Only flex-direction:column survived, because the base never declares it.
   Measured on the WP build before this change, at 880/760/620/400: align-items
   computed flex-end, .foot__col computed text-align:right, and gap computed
   35.2/30.4/24.8/24px rather than 32px.

   The intent is unambiguous — an author does not write flex-start and
   text-align:left meaning their opposites — so this is a latent bug in the
   original, not a style choice to preserve. Moving the block here, after the
   base rules, is the minimal fix: the declarations are unchanged, only their
   position is.

   The static site is still wrong. See CLAUDE.md "Static site defects found
   during migration" for whether to patch it back. */
@media(max-width:880px){
  .foot__in{flex-direction:column;align-items:flex-start;gap:32px}
  .foot__col{text-align:left}
}


/* ---- C5 · GSAP-gated initial states (visible by default) ----
   Shared kernel only. Page-level additions (index: .wordmark .word>span and
   .statement .w; orbit: .hero__title>span) belong to those components. */
.gsap-ready [data-reveal]{opacity:0}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}*{animation:none!important}
  .gsap-ready [data-reveal]{opacity:1!important;transform:none!important}
  .foot__mark{visibility:visible}  /* fully drawn, no draw-on under reduced motion */
}

/* ============================================================
   DEVIATIONS from the static source — the complete list.
   1. Day/night palette blocks moved out to mode-day.css / mode-night.css.
   2. --mode-fade selector list is the UNION of all five pages (see above).
   3. .nav.-overlay added so the homepage nav is a modifier, not a fork.
   4. .brandmark mask path rewritten from "assets/logo-no-wording.png" to
      "../img/logo-no-wording.png" (the file is copied into the plugin).
   5. Page-specific .gsap-ready selectors left behind with their components.
   6. ADDED (not from the static source): the :focus-visible ring above. It
      replaces the one lost when Hello Elementor's reset.css was disabled.
      (The filter now lives in the plugin, in class-lca-theme-compat.php, not
      in the child theme.) The static site had no visible focus style.
   Nothing else differs from the source bytes.

   7. ADDED (not from the static source): the WordPress admin bar offset above.
      body.admin-bar only, so logged-out rendering is unchanged.
   8. MOVED, and this one CHANGES RENDERING: the footer's ≤880px declarations.
      The static site declares them before the base footer rules, at equal
      specificity, so align-items:flex-start, text-align:left and gap:32px never
      applied — the footer stacked but stayed right-aligned. They are unchanged
      in content and now sit after the base rules, so they take effect. This is
      the only rule in this file that does not reproduce the static site's
      rendering, and it is deliberate. See CLAUDE.md.

   NOTE — not a deviation, but worth knowing:
   'font-stretch:100%' on .disp (and on every display-face rule inherited from
   the static site) is INERT. It is reproduced verbatim because it is in the
   source, but neither self-hosted family has a width axis: fontTools reports
   the only variable axis on all seven woff2 files as wght 100-900, with no
   'wdth'. COMPONENTS.md A1 already records this for Murecho ("real axis is
   100-900, no wdth"); it is equally true of Roboto as Google slices it.
   So the declaration resolves to the default width and changes nothing. It is
   harmless, and removing it would be a gratuitous divergence from the source
   — but do not add more font-stretch values expecting them to do anything,
   and do not read this as evidence that a width axis is available.
   ============================================================ */

/* ---- lc-band-alt — makes any Elementor container follow day/night ----
   Add "lc-band-alt" under Advanced › CSS Classes on the container that
   carries the colour.

   DAY: nothing below matches, so the background and shape-divider colour set
   in the panel stay in charge and stay editable there.
   NIGHT: the background becomes --bg (#0a0a0c) and the shape-divider cut
   becomes --bg-2 (#141417), the Home Projects block night colour. Text inside
   is not touched; it stays readable only while it uses kit globals, which
   already flip. A hardcoded hex colour on a widget will not flip.

   ⚠️ THE CUT IS THE NEIGHBOUR'S COLOUR, NOT THE BAND'S AND NOT THE PAGE'S.
   A shape divider paints the NEIGHBOURING section cutting into this one, so
   its fill must equal whatever sits next to it. On the homepage that is the
   Home Projects block, whose colour comes from LC Options (night default
   #141417) and NOT from --bg. That is also why the band is --bg: dark mode
   has only two surfaces, and --bg-2 is taken by the neighbour, so a --bg-2
   band would make the cut invisible. Measured: with the cut at --bg, a dark
   wedge showed between two #141417 areas at 1440, 880 and 620.
   The cut READS that setting: LCA_HP_Settings::inline_css() publishes it at
   :root as --lca-hp-bg-night wherever the Home Projects block renders, and
   --bg-2 is only the fallback on pages without the block.

   Specificity: Elementor writes (0,4,0) for the background and (0,5,0) for a
   divider colour set in the panel. These are (0,6,1) and higher by structure,
   with no !important. background-image is cleared too, so a gradient chosen
   in the panel later cannot show through in night mode.

   The two night values, changed here and nowhere else: */
:root{--lca-band-alt-night:var(--bg);--lca-band-alt-cut-night:var(--lca-hp-bg-night,var(--bg-2))}
html[data-mode="night"] .elementor .elementor-element.e-con.lc-band-alt:not(.elementor-motion-effects-element-type-background),
html[data-mode="night"] .elementor .elementor-element.e-con.lc-band-alt > .elementor-motion-effects-container > .elementor-motion-effects-layer{
  background-color:var(--lca-band-alt-night);background-image:none}
html[data-mode="night"] .elementor .elementor-element.lc-band-alt > .elementor-shape .elementor-shape-fill,
html[data-mode="night"] .elementor .elementor-element.lc-band-alt > .e-con-inner > .elementor-shape .elementor-shape-fill{
  fill:var(--lca-band-alt-cut-night)}
/* Fade with the rest of the page (--mode-fade, risk #19) instead of
   Elementor's .3s background transition and an instant fill flip. */
.lc-band-alt{--background-transition:var(--mode-fade)}
.lc-band-alt .elementor-shape-fill{transition:fill var(--mode-fade)}

/* ---- lc-mode-surface — any container that follows day/night ----
   The lc-band-alt approach without the shape divider. DAY matches nothing, so
   the panel colour stays in charge and editable; NIGHT sets the value below.
   (0,6,1) against Elementor's per-element (0,4,0), no !important. First used
   by the LC-A Mobile Menu popup. */
:root{--lca-mode-surface-night:var(--bg)}
html[data-mode="night"] .elementor .elementor-element.e-con.lc-mode-surface:not(.elementor-motion-effects-element-type-background){
  background-color:var(--lca-mode-surface-night);background-image:none}
.lc-mode-surface{--background-transition:var(--mode-fade)}

/* ---- LC-A Mobile Menu (Templates › Popups) and the header hamburger ----
   Stock widgets placed by tools/provision-mobile-menu.php; everything you can
   see is a panel setting. The popup box and overlay take the Paper global,
   which already flips with data-mode.
   ⚠️ Popup-level colours are written against #elementor-popup-modal-<id>, an
   ID, which no class rule can beat without !important -- so a CUSTOM light
   colour there would not flip. The night-safe place for a custom colour is the
   root container, which carries lc-mode-surface. */
/* the brandmark reads --nav-fg, which only [data-lca-nav-root] defines */
.lca-mm{--nav-fg:var(--fg)}
/* a 40px hit area around the 22px icons, without moving them */
[data-lca-nav-root] .lca-menu-open .elementor-icon,
.lca-mm .lca-menu-close .elementor-icon{padding:9px;margin:-9px}
/* ⚠️ HIDING THE DESKTOP MENU BELOW 880 CHANGED IT ABOVE 880 TOO. Pro's
   .elementor-widget-nav-menu:not(...):not([class*=elementor-hidden-]) gives the
   widget display:flex / column, and ANY responsive-hide class opts it out, at
   every width. One child, so nothing moved -- pixel-identical -- but the
   computed style differed. Restored above the switch only, because below it
   the widget is hidden and Elementor's display:none must win. The switch is
   Elementor's Tablet Extra breakpoint, 1024 (tools/provision-mobile-menu.php
   says why); change both together -- this at 881px would UN-hide the menu
   between 881 and 1024. */
@media(min-width:1025px){
  [data-lca-nav-root] .elementor-widget-nav-menu[class*=elementor-hidden-]:not(:has(.elementor-widget-container)){display:flex;flex-direction:column}
}
/* The hamburger sat 3.8px HIGH of the toggle and brandmark at every width.
   The Icon widget wrapper is a line box: the inline-block link rode its
   baseline with the strut's descender space below it, making the widget
   29.6px tall around a 22px icon. line-height:0 removes the strut, and the
   flex row then centres the icon exactly (measured 0.01px). The 40x40 tap
   area is the link's own padding and is unchanged. Header #88 only. */
.elementor-88 .lca-menu-open .elementor-icon-wrapper{line-height:0}
/* No focus ring on the LOGO inside the popup. Pro moves focus to the first
   focusable element when the popup opens, which is the logo link, and the
   ring reads as a stray rectangle. Scoped to .elementor-popup-modal, so the
   header logo keeps its ring. site-logo and image are listed so the rule
   survives the logo being swapped for either widget; LC Brandmark is the one
   in the popup today.
   ⚠️ This includes :focus-visible, so a KEYBOARD user who reaches the logo in
   the popup sees no indicator on it. The menu links keep theirs. */
.elementor-popup-modal .elementor-widget-theme-site-logo a:focus,
.elementor-popup-modal .elementor-widget-theme-site-logo a:focus-visible,
.elementor-popup-modal .elementor-widget-image a:focus,
.elementor-popup-modal .elementor-widget-image a:focus-visible,
.elementor-popup-modal .elementor-widget-lca-brandmark a:focus,
.elementor-popup-modal .elementor-widget-lca-brandmark a:focus-visible{
  outline:none;
  box-shadow:none;
}
