/*
 * Public site — RECUBE DESIGN (Phase 17).
 *
 * The design system migrated from the prototype in `archive/stub/`, which is the
 * visual brief. Premium minimalism: black theme, generous vertical rhythm,
 * typography over colour, motion only where it carries meaning.
 *
 * The gallery itself is styled by gallery.css.
 *
 * ---------------------------------------------------------------------------
 * LAYOUT: FULL-BLEED WITH SIDE GUTTERS (owner decision, 2026-07-21)
 * ---------------------------------------------------------------------------
 * There is no centred max-width container. Content spans the viewport and is
 * held off the edges by one gutter token, `--pad`, which grows with the screen
 * and stops at 108px. That is the composition taken from the HILIGHT reference;
 * everything else here — spacing scale, type, grid, colour, motion — is RECUBE's
 * own and is not taken from it.
 *
 * `--pad` is the ONLY horizontal spacing constant. Nothing hard-codes a page
 * margin: changing this one value moves every edge on the site together, which
 * is what stops the header, the grid and the footer from drifting apart.
 */

:root {
    --bg: #0a0a0a;
    --bg-2: #0e0e0e;
    --card: #151515;
    --fg: #ededed;
    --muted: #8a8a8a;
    --muted-2: #5a5a5a;
    --line: #242424;

    /* The single horizontal gutter. Matched to the reference (Phase 17.40) — a
       constant ~1.5rem edge (1rem on phones), so the nav, content and footer
       all share one near-full-bleed width. */
    --pad: clamp(16px, 2vw, 24px);

    /* The fixed header's own height (Phase 17.49c) — mirrors critical.css: vertical
       padding (2 × 1.875rem) + the logo's line box (nav-font + .9375rem, lh 1.5).
       A shared reference so content under the header sits below it without `vh`. */
    --head-h: calc(3.75rem + (var(--nav-font, 1rem) + .9375rem) * 1.5);

    /* A wider gutter for reading surfaces — the project page and other blocks
       that are text rather than imagery. Derived from `--pad` rather than set
       independently, so the two can never drift into looking unrelated.
       10vw ≈ the reference's ~197px offset at 1920 (HILIGHT project hero). */
    --pad-wide: clamp(20px, 10vw, 220px);

    /* Vertical rhythm. Sections breathe; the spacing is as much of the premium
       feel as the typography is. `--sec-y-default` is the single source of the
       auto value (Phase 17.45); `--sec-y` is what `.sec` reads (a section may
       override it inline per breakpoint), and it starts from the default. Mobile
       falls back to `--sec-y-default`, NOT to `--sec-y`, so a desktop override
       never leaks onto the phone. */
    --sec-y-default: clamp(70px, 10vw, 150px);
    --sec-y: var(--sec-y-default);

    /* Image veils. A photograph under text needs to be dimmed to stay readable,
       and dimmed further on hover so the title reads as the interactive part. */
    --mask: rgba(12, 12, 12, .14);
    --mask-hover: rgba(9, 9, 9, .5);
    /* Homepage hero slide mask — lightened in Phase 17.4 to match the project
       hero; kept in step with the same token in critical.css. */
    --hero-mask: rgba(9, 9, 9, .3);

    /* Type. Display and slogan fall back to the body face, so the site is
       correct before the WOFF2 files are installed — only the lettering
       differs (assets/fonts/README.txt). */
    /* One family site-wide (Phase 17.40, mockup): Inter for body, headings and
       the hero slogan alike. Display and slogan remain as tokens so callers do
       not change, but they now resolve to Inter. Self-hosted (assets/fonts).*/
    /* Type roles (Phase 17.41): heading, body, UI. These are fallback stacks
       only — the chosen family comes from Settings → Typography and is rendered
       onto <body> as these same variables, so no rule hard-codes a family. */
    --font-heading: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    /* Numeric weight per role (Phase 17.42), overridden per-page from <body>.
       Defaults match the current design, so nothing shifts until a value is set;
       the role surfaces (base body text, header nav, hero title) read these. */
    --font-heading-weight: 700;
    --font-body-weight: 400;
    --font-ui-weight: 500;
}

* { box-sizing: border-box; }

/* No `height: 100%` on the root (Phase 17.47) — see critical.css: it can turn the
   root into the scroll container and unpin a `position: fixed` header. */
/* Desktop reference scale (Phase 17.49, YODEZEEN) — mirrors critical.css. Root
   font-size is derived from the viewport (16px at the 1920 reference), so the whole
   desktop composition sized in rem scales as one unit; pure-fluid, no clamp. Below
   1024px the mobile/tablet system takes over and the root is pinned to 16px, so the
   existing px-based mobile design is untouched. */
/* `overflow-x: clip` (Phase 17.49l, mirrors critical.css) — `hidden` made <html>/<body>
   scroll containers (double scrollbar + wheel stall); `clip` keeps the viewport as
   the single scroll owner. `overflow-y` untouched, scrollbar not hidden. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; font-size: calc(16 / 1920 * 100vw); }
@media (max-width: 1023px) { html { font-size: 100%; } }

/* Sticky footer: the page is a vertical flex column at least the viewport tall,
   and `.site-main` takes the slack (below), so a short page still pushes the
   footer to the bottom instead of leaving the body background showing under it.
   The fixed header sits outside this flow, so it does not affect the columns. */
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.5 var(--font-body);
    /* The `font` shorthand resets weight to normal; set the base body weight
       after it (Phase 17.42). */
    font-weight: var(--font-body-weight);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }

/* Global desktop side padding (Phase 17.43): a custom value — rendered as
   `--pad-user` on <body> from Settings → Display Settings — overrides the shared
   `--pad` gutter on desktop only. Empty falls back to the existing responsive
   clamp, so nothing changes until the owner sets a value; the mobile gutter keeps
   its own tight value below this breakpoint. One variable drives every gutter.
   Breakpoint aligned to 1024 in 17.49 to match the desktop-scale seam. */
@media (min-width: 1024px) {
    body { --pad: var(--pad-user, clamp(16px, 2vw, 24px)); }
}

a { color: inherit; text-decoration: none; }

::selection { background: #fff; color: #000; }

/* Visible focus, for keyboard users only — `:focus-visible` keeps it off mouse
   clicks, which is what made the old `outline: none` habit tempting. */
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Skip link: the first thing a keyboard or screen reader reaches, and invisible
   until it has focus. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: #fff;
    color: #000;
    padding: 12px 20px;
    font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

/* The horizontal frame. Not a container — it adds the gutter and nothing else,
   so a child can still break out to the full viewport when the design calls
   for it. */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* --------------------------------------------------------------------------
   HEADER — fixed, over the hero, on a gradient rather than a solid bar
   -------------------------------------------------------------------------- */

/* Desktop header (Phase 17.42): a fixed 7-slot grid (3 left · RECUBE · 3 right).
   RECUBE is slot 4, always viewport-centred; items take explicit columns, so the
   grid never reshapes and the logo never moves. Mirrors critical.css. */
.site-head {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    padding: 1.875rem var(--pad);
    font-family: var(--font-ui);
    /* Transparent over the hero, as the reference menu is — no gradient bar.
       The hero's own veil darkens the top of the image enough for the
       navigation to stay legible; past the hero the bar turns solid (below). */
    background: transparent;
    transition: background .3s ease;
}
/* Past the first screen the gradient is no longer over an image, so it becomes
   a solid bar. Set from JavaScript; the class, not an inline style. */
.site-head.is-solid { background: rgba(10, 10, 10, .9); }

/* Every page except the homepage starts with content, not a full-bleed hero,
   so the fixed header needs its height reserved. The homepage does not: the
   hero is meant to run under the header. */
/* Pages that open with a full-height hero let it run under the fixed header —
   that is the point of the header being transparent there. Every other page
   reserves its height instead. */
.site-main { flex: 1; }
body:not(.page-home):not(.page-project):not(.page-projects):not(.page-services) .site-main { padding-top: clamp(88px, 12vh, 132px); }
/* The Projects listing starts close to the header (HILIGHT reference, Phase
   17.18): just enough top padding to clear the fixed header, without the tall
   band the other inner pages carry. The listing's own section top padding is
   trimmed to match (see `.projects-index.sec` below). */
/* Services uses the SAME header→title distance as the Projects listing (Phase 19.7). */
body.page-projects .site-main,
body.page-services .site-main { padding-top: clamp(84px, 10vh, 104px); }

/* Desktop (Phase 17.41g): the zones and nav groups dissolve (`display:contents`)
   so every link + the logo is a direct grid cell; each is centred in its column.
   `.site-nav a` still carries the per-page colour theming below. */
.site-head__left, .site-head__right, .site-nav--left, .site-nav--right { display: contents; }
/* Left items align to the left edge of their column, right items to the right
   edge, RECUBE stays the centred slot 4 (Phase 17.43, YODEZEEN). Mirrors
   critical.css. */
.site-brand { grid-column: 4; justify-self: center; }
.site-nav--left a { justify-self: start; }
.site-nav--right a { justify-self: end; }

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: calc(var(--nav-font, .8125rem) + .9375rem);
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.site-nav a {
    /* Desktop UI size is owner-controlled (Settings → Website → Navigation UI Font
       Size), rendered as `--nav-font` on <body> and shared by the header nav, the
       footer nav and every action button (Phase 17.37); 13px is the default and the
       fallback. The mobile panel overrides it below, so this governs desktop only.
       Uppercase to match the mockup menu (Phase 17.40). */
    font-size: var(--nav-font, .8125rem);
    font-weight: var(--font-ui-weight, 500);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    transition: color .2s ease;
}
.site-nav a.is-active,
.site-nav a:hover { color: #fff; }
/* "Let's Talk +" is a normal menu item, permanently underlined (Phase 17.41b) —
   no pill or border; it opens the contact form (data-request). The underline is a
   border on the link so it sits outside the roll mask below. */
.site-nav a.nav-cta { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Menu-item hover roll (Phase 17.41c, THEFIRSTTHELAST-style): each link holds two
   stacked copies of its label in a masked box; on hover the pair rolls up one
   line, so the label "replaces itself". The height leaves room for descenders. */
.nav-roll { display: inline-flex; flex-direction: column; overflow: hidden; height: 1.3em; line-height: 1.3; vertical-align: middle; }
.nav-roll > span { display: block; transition: transform .42s cubic-bezier(.32, 0, .12, 1); }
.site-nav a:hover .nav-roll > span,
.site-nav a:focus-visible .nav-roll > span { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
    .nav-roll > span { transition: none; }
    .site-nav a:hover .nav-roll > span,
    .site-nav a:focus-visible .nav-roll > span { transform: none; }
}
.site-head__phone { font-size: 0.75rem; color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.site-head__phone:hover { color: #fff; }

/* The circular mobile controls (Phase 17.41e) — hidden on desktop; the shape and
   sizing are in the mobile block below. Real buttons: keyboard-reachable and they
   announce their state. Ink follows `--head-ink` so they read on any header. */
.site-burger, .site-contact {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 120;
    background: transparent;
    border: 1px solid currentColor;
    color: var(--head-ink);
    cursor: pointer;
    padding: 0;
}
.site-burger { flex-direction: column; gap: 5px; }
.site-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.site-foot {
    border-top: 1px solid var(--line);
    padding: 50px var(--pad) 40px;
}
.site-foot__cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}
.site-foot__intro { color: var(--muted-2); font-size: 0.8125rem; margin: 14px 0 0; max-width: 280px; }
.site-foot__col a,
.site-foot__col span {
    display: block;
    color: var(--muted);
    /* Footer navigation shares the single CMS UI font size (Phase 17.37). */
    font-size: var(--nav-font, 13px);
    margin-bottom: 9px;
    transition: color .2s ease;
}
.site-foot__col a:hover { color: #fff; }
.site-foot__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 56px;
    color: var(--muted-2);
    font-size: 0.75rem;
    letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   SHARED PIECES
   -------------------------------------------------------------------------- */

.sec { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }

/* The small numbered eyebrow above a section title ("02 — Selected Work"). */
.sec-index {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.sec-title {
    font-family: var(--font-heading);
    font-weight: 500;
    /* ≤1023 keeps the mobile/tablet clamp; ≥1024 uses the fluid rem scale
       (4rem = 64px at the 1920 reference), so it tracks the rest of the
       desktop composition (Phase 17.49). */
    font-size: clamp(30px, 5vw, 64px);
    letter-spacing: -.01em;
    line-height: 1;
    margin: 0;
}
@media (min-width: 1024px) { .sec-title { font-size: 4rem; } }
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: clamp(34px, 4vw, 64px);
}
/* Centred variant (Phase 17.5) — the homepage "Our Projects" heading. */
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center .sec-index { display: block; margin-bottom: 14px; }
.sec-link {
    font-size: .8125rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    transition: color .2s ease, border-color .2s ease;
}
.sec-link:hover { color: #fff; border-color: #fff; }

.section-title {
    font-size: .8125rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--muted);
    margin: 8px 0 32px;
}
.section-empty { color: var(--muted); }
.text-link { color: var(--muted); }
.text-link:hover { color: var(--fg); }

/* Scroll-in reveal. Opt-in per element, applied only to major visual blocks
   (gallery images, homepage featured cards) — never to text or the /projects
   grid (owner decision). The hidden start state is scoped to `.js`, so with
   JavaScript off nothing is hidden and there is no flash of appear-then-hide;
   the class is added by script and never removed. Subtle by design: a small
   lift and a short fade (owner brief), gated on image decode by the script. */
.js .reveal {
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .3s ease-out, transform .3s ease-out;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* Same `.js .reveal` specificity as the hidden state above, so the override
       actually wins when motion is unwelcome. */
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Homepage slogan rotator letters (Phase 17.24b). Spans are created by
   home-hero.js; each fades independently, staggered by an inline transition-delay
   the script sets. `pre` preserves the spaces between words. The transition
   duration must match `fadeMs` in home-hero.js. */
.home-hero__title .slg {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    transition: opacity .28s ease;
}
.home-hero__title .slg.in { opacity: 1; }

/* --------------------------------------------------------------------------
   PAGE HEADS — shared by the listing, the FAQ and anything else with a title
   -------------------------------------------------------------------------- */

.page-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.page-head .sec-index { display: block; margin-bottom: 18px; }
.page-title {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(30px, 5vw, 64px);
    letter-spacing: .01em;
    line-height: 1;
    margin: 0;
}
.page-lead { margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   CATEGORY FILTER (Phase 17)
   -------------------------------------------------------------------------- */

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(26px, 3vw, 40px);
}
.filter__btn {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9999px;
    padding: 10px 20px;
    font: inherit;
    font-size: var(--nav-font, 13px);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: background .35s cubic-bezier(.24, 1, .36, 1), color .35s cubic-bezier(.24, 1, .36, 1),
                border-color .35s cubic-bezier(.24, 1, .36, 1);
}
.filter__btn:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.filter__btn.is-active { background: #fff; border-color: #fff; color: #000; }

/* Projects index — two cards per row (the rhythm taken from the reference). */
.project-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(6px, .7vw, 10px) clamp(6px, .7vw, 10px);
}
/* `hidden` on a grid item is overridden by `display: grid` on the list unless
   it is said again here — which is why a filtered-out card would otherwise stay
   visible. */
.project-card[hidden] { display: none; }
.project-card__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #141414;
}
.project-card__media picture { display: block; width: 100%; height: 100%; }
.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.project-card__link:hover .project-card__media img { transform: scale(1.03); }
.project-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 14px;
}
.project-card__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(14px, 1.3vw, 18px);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
}
.project-card__cat {
    font-size: 0.75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   PROJECTS PAGE (Phase 17.6 — HILIGHT projects layout, white)

   A white page: title top-left, category filter top-right (text links, not
   pills), no explanatory text; a fixed two-per-row grid of large images. Each
   card is the photograph, its metadata overlaid and fading in on hover with a
   soft dark wash and no image scaling: Category · Year · Area top-left, the
   Project Name bottom-left.
   -------------------------------------------------------------------------- */

/* The Projects listing and the Contacts page are white. The other dark pages
   (FAQ, 404…) keep the solid dark header; the homepage keeps its transparent one
   over the hero; the individual Project page starts transparent over its hero
   and turns light on scroll (below). */
/* YODEZEEN light-grey canvas (#f2f0f0) for the Projects listing and the Project
   page (task 2); Contacts stays white. The `.on-light` sections re-point their
   `--bg` token so cards, bands and gaps all sit on the same grey, not white. */
.page-projects .site-main { background: #f2f0f0; }
/* /contacts shares the LET'S TALK modal's surface (Phase 19.7): the same #f2f2f2
   canvas and the same light token set, so the page and the overlay look identical. */
.page-contacts .site-main { background: #f2f2f2; }
body.page-contacts .site-main .on-light { --bg: #f2f2f2; --card: #ffffff; }
body.page-projects .site-main .on-light,
body.page-project .site-main .on-light { --bg: #f2f0f0; }
body.page-project .site-main { background: #f2f0f0; }
body:not(.page-home):not(.page-project):not(.page-projects):not(.page-contacts):not(.page-services) .site-head { background: rgba(10, 10, 10, .92); }

/* --------------------------------------------------------------------------
   LIGHT HEADER (Phase 17.7 / 17.8)

   White bar, black logo / links / phone, black-bordered Write-to-us button.
   Applied always on the Projects listing and the Contacts page, and on the
   individual Project page ONLY once scrolled (`.is-solid`) — there it is
   transparent over the hero at the top (task 4). The homepage transparent header
   is untouched. Higher specificity than `.site-head.is-solid`, so the light look
   wins where it applies.
   -------------------------------------------------------------------------- */
/* Seamless header → content (task 3): NO divider line. The Projects/Project header
   shares the page's YODEZEEN light-grey (#f2f0f0), so it blends into the content;
   Contacts keeps its white bar. */
body.page-projects .site-head,
body.page-project .site-head.is-solid {
    background: #f2f0f0;
}
body.page-contacts .site-head {
    /* Matches the page surface so the bar blends into it (Phase 19.7). */
    background: #f2f2f2;
}
body.page-projects .site-brand,
body.page-contacts .site-brand,
body.page-project .site-head.is-solid .site-brand,
body.page-projects .site-nav a,
body.page-contacts .site-nav a,
body.page-project .site-head.is-solid .site-nav a,
body.page-projects .site-head__phone,
body.page-contacts .site-head__phone,
body.page-project .site-head.is-solid .site-head__phone { color: #101010; }
body.page-projects .site-nav a:hover,
body.page-contacts .site-nav a:hover,
body.page-project .site-head.is-solid .site-nav a:hover,
body.page-projects .site-head__phone:hover,
body.page-contacts .site-head__phone:hover,
body.page-project .site-head.is-solid .site-head__phone:hover { color: #000; }
/* On the light pages the same YODEZEEN pill, but on a light bar: keep the
   translucent dark fill (#2d2a2a at 10%) and blur inherited from the base, with a
   dark label/border for contrast (task 2 — exact YODEZEEN values). */
/* On the light-header pages the plain "LET'S TALK +" link is dark (Phase 17.40 —
   no pill, only the text tone changes). */
body.page-projects .btn-cta--nav,
body.page-contacts .btn-cta--nav,
body.page-project .site-head.is-solid .btn-cta--nav { color: #2d2a2a; }
body.page-projects .btn-cta--nav:hover,
body.page-contacts .btn-cta--nav:hover,
body.page-project .site-head.is-solid .btn-cta--nav:hover { color: #000; }
/* Mobile circular buttons take their ink from `--head-ink` (Phase 17.41e): dark on
   the light headers, white by default (over a hero / a dark solid bar). */
body.page-projects .site-head,
body.page-contacts .site-head,
body.page-project .site-head.is-solid,
body.page-home .site-head.is-solid { --head-ink: #151515; }
/* The open mobile panel is light (Phase 17), so the burger (its close control)
   takes the dark ink set on the header while open. */
.nav-open .site-burger { color: var(--head-ink); }

/* Services uses the light (white) header, like Contacts (Phase 19.4). Reuses the
   existing light-header system — same white bar, dark ink — no separate header. */
body.page-services .site-main { background: #fff; }
body.page-services .site-head { background: #fff; --head-ink: #151515; }
body.page-services .site-brand,
body.page-services .site-nav a,
body.page-services .site-head__phone { color: #101010; }
body.page-services .site-nav a:hover,
body.page-services .site-head__phone:hover { color: #000; }
body.page-services .btn-cta--nav { color: #2d2a2a; }
body.page-services .btn-cta--nav:hover { color: #000; }

/* --------------------------------------------------------------------------
   LIGHT FOOTER — Projects listing + Contacts page (Phase 17.8)

   The footer keeps its structure and spacing; only its palette flips. Re-pointing
   the colour tokens on `.site-foot` turns every rule that reads them light, the
   same trick `.on-light` uses. Applied to the two white pages; the homepage and
   the other dark pages keep the dark footer.
   -------------------------------------------------------------------------- */
/* The footer is dark on every page (Phase 17.40, mockup) — it is shared chrome
   and the approved design shows one dark footer everywhere. Its palette and the
   four-column + wordmark layout are set in the Phase 17.40 block at the end of
   this file; the project page just drops the extra separator. */
body.page-project .site-foot { border-top: none; }

/* The projects listing now shares the site's near-full-bleed gutter (Phase 17.40)
   so the Projects page matches the reference width like the homepage. The local
   token simply follows `--pad`. */
.projects-index { --projects-index-pad: var(--pad); }
.projects-index.wrap {
    padding-left: var(--projects-index-pad);
    padding-right: var(--projects-index-pad);
}
/* Trim the section's own top padding (the `.sec` `--sec-y` band) so the listing
   starts near the header (Phase 17.18); the bottom keeps the normal rhythm. */
.projects-index.sec,
.services-index.sec { padding-top: clamp(14px, 2vw, 32px); }

.projects-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-bottom: clamp(30px, 4vw, 56px);
}
/* "OUR PROJECTS" at the HILIGHT proportion: 48px desktop, ~40px mobile — same
   family and weight as the shared page title (Phase 17.7). SERVICES shares the
   exact same scale (Phase 19.7) so the two page titles never drift apart. */
.projects-head .page-title,
.services-head .page-title { margin: 0; font-size: 3rem; }
@media (max-width: 640px) {
    .projects-head .page-title,
    .services-head .page-title { font-size: 40px; }
}

/* The filter as text links, top-right. */
.filter--links {
    margin: 0;
    gap: clamp(16px, 2vw, 32px);
    align-items: baseline;
}
.filter--links .filter__btn {
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0 0 4px;
    border-bottom: 1px solid transparent;
    font-size: 0.8125rem;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--muted);
}
.filter--links .filter__btn:hover { color: var(--fg); border-color: transparent; }
.filter--links .filter__btn.is-active {
    background: none;
    color: var(--fg);
    border-bottom-color: var(--fg);
}

.pl-card { position: relative; margin: 0; }
.pl-card[hidden] { display: none; }
.pl-card__link { display: block; position: relative; overflow: hidden; }
.pl-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: #f0f0f0; }
.pl-card__media picture { display: block; width: 100%; height: 100%; }
/* No scaling on hover (owner) — only the wash and the metadata move. */
.pl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pl-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(9, 9, 9, .4);
    opacity: 0;
    transition: opacity .5s ease;
}
.pl-card__link:hover::after,
.pl-card__link:focus-visible::after { opacity: 1; }

/* Hover caption (Phase 17.30, YODEZEEN reference): Project Name + Location,
   bottom-left on one line, sharing the hero's caption typography. It fades and
   slides up on hover exactly as the old name/meta did — the animation is
   unchanged, only the content (Category / Year / Area were removed). */
.pl-card__caption {
    position: absolute;
    left: 0; bottom: 0;
    z-index: 2;
    padding: clamp(16px, 1.6vw, 26px);
    color: #fff;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 6px 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease, transform .5s ease;
}
.pl-card__link:hover .pl-card__caption,
.pl-card__link:focus-visible .pl-card__caption { opacity: 1; transform: none; }

/* Touch screens have no hover: show the caption over a light constant wash so a
   card is never a nameless image. */
@media (hover: none) {
    .pl-card__link::after { opacity: .32; }
    .pl-card__caption { opacity: 1; transform: none; }
}

/* Mobile proportional Mobile Hero (Phase 19.2). At <=768px the art-directed
   <picture> serves the Mobile Hero (MediaEngine::MOBILE_BREAKPOINT). When that
   hero is proportional (portrait / square / near-square) the controller sets
   `--pl-mobile-ratio` to the image's real w/h, so the media box takes the image's
   own aspect ratio instead of the fixed 3:2 desktop box: object-fit:cover then
   fills a box that already matches the image, so nothing is cropped top/bottom,
   and the reserved ratio keeps it CLS-free. Landscape mobile heroes get no
   modifier and keep the 3:2 cover. Desktop is untouched. */
@media (max-width: 768px) {
    .pl-card--mobile-proportional .pl-card__media { aspect-ratio: var(--pl-mobile-ratio, 3 / 2); }
}

/* ==========================================================================
   SERVICES PAGE (Phase 19.3; card redesign 19.4)
   Two-column premium grid (YODEZEEN direction, RECUBE styling). Default state:
   image + centred uppercase title + a LEARN MORE pill. On hover / keyboard focus
   / tap (`.is-open`) the title + pill fade out and the description reveals as one
   full-width editorial layer over the image. The image is never hidden and the
   layout never shifts (both layers are absolutely stacked over the fixed-ratio
   card).
   ========================================================================== */
.services-head { margin-bottom: clamp(28px, 4vw, 56px); }
.svc-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.5vw, 20px);
}
.svc-card {
    position: relative; overflow: hidden;
    /* Square 90° corners (Phase 19.6) — no rounding on the service cards. */
    border-radius: 0;
    aspect-ratio: 3 / 2; background: #f0f0f0; outline: none;
}
.svc-card__media { position: absolute; inset: 0; z-index: 0; }
.svc-card__media picture, .svc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card__media-empty { width: 100%; height: 100%; background: linear-gradient(135deg, #e7e7e7, #d3d3d3); }
/* Constant, restrained wash so the centred title stays legible over any image. */
.svc-card::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: rgba(9, 9, 9, .30); transition: opacity .5s ease;
}
/* Stronger reveal wash — fades in with the description. */
.svc-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: rgba(9, 9, 9, .62); opacity: 0; transition: opacity .5s ease;
}
/* Default layer: title + LEARN MORE as one group near the LOWER part of the card
   (Phase 19.6), horizontally centred, with bottom padding so it never sits on the
   image edge. */
.svc-card__default {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: clamp(12px, 1.4vw, 18px);
    padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) clamp(24px, 3.5vw, 48px);
    text-align: center; color: #fff;
    transition: opacity .45s ease, visibility .45s ease;
}
.svc-card__title {
    margin: 0; font-family: var(--font-heading); font-weight: 700;
    /* YODEZEEN scale: ~2rem desktop (smaller than before), uppercase. */
    font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: .02em;
    text-transform: uppercase;
}
.svc-card__more { pointer-events: none; }
/* Reveal layer: one full-width editorial text block over the image. */
.svc-card__reveal {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center;
    padding: clamp(22px, 4vw, 56px); color: #fff;
    opacity: 0; transition: opacity .5s ease;
}
.svc-card__desc {
    margin: 0; width: 100%;
    font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.55; color: #fff;
}
/* Reveal on hover / keyboard focus / tap. Title+pill out, description in. */
.svc-card:hover .svc-card__default,
.svc-card:focus-within .svc-card__default,
.svc-card.is-open .svc-card__default { opacity: 0; visibility: hidden; }
.svc-card:hover::after,
.svc-card:focus-within::after,
.svc-card.is-open::after { opacity: 1; }
.svc-card:hover .svc-card__reveal,
.svc-card:focus-within .svc-card__reveal,
.svc-card.is-open .svc-card__reveal { opacity: 1; }
/* CTA block — premium, centred; reuses the .cta-pill button. */
.svc-cta {
    margin-top: clamp(48px, 7vw, 104px); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 34px);
}
.svc-cta__title {
    margin: 0; font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(30px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; text-transform: none;
}
.svc-cta__title span { white-space: nowrap; }
/* Optional supporting paragraph under the CTA heading (Phase 19.6). */
.svc-cta__text { margin: 0; max-width: 60ch; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.6; color: var(--muted, rgba(20,20,20,.7)); }
@media (max-width: 768px) {
    .svc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .svc-card__default, .svc-card__reveal, .svc-card::after { transition: none; }
}

/* --------------------------------------------------------------------------
   LIGHT SURFACES (Phase 17.1)

   The site is dark; some blocks are white. Rather than a light variant of every
   component, this class re-points the colour tokens inside its subtree. Every
   rule already reads `var(--fg)`, `var(--muted)`, `var(--line)`, so a whole
   block flips with one class and no component knows a light mode exists — which
   is also why adding another light section later costs nothing.
   -------------------------------------------------------------------------- */

.on-light {
    --bg: #ffffff;
    --bg-2: #fafafa;
    --card: #f2f2f2;
    --fg: #101010;
    --muted: #6b6b6b;
    --muted-2: #9a9a9a;
    --line: #e6e6e6;
    --mask: rgba(255, 255, 255, .06);
    --mask-hover: rgba(255, 255, 255, .28);

    background: var(--bg);
    color: var(--fg);
}
/* `::selection` and focus are set globally against the dark page, so they are
   restated here — an invisible focus ring is an accessibility regression, not a
   cosmetic one. */
.on-light :focus-visible { outline-color: #101010; }
.on-light ::selection { background: #101010; color: #fff; }

/* --------------------------------------------------------------------------
   PROJECT PAGE (Phase 17, hero rebuilt in 17.1, IQOSA composition in 17.2)
   -------------------------------------------------------------------------- */

.project { padding-bottom: clamp(60px, 8vw, 110px); }

/* The hero — the project's first image at full height, with three layers over
   it (the IQOSA reference composition): a "Back to Projects" control top-left
   under the transparent header, the Project Name centred, and the metadata
   along the foot. All three sit directly on the photograph — no panel, no card,
   no blur. */
.project-hero {
    position: relative;
    min-height: 100vh;
    /* `svh`, not `dvh` (Phase 17.30): with `dvh` the hero grew as the mobile
       toolbar collapsed on scroll, and that resize — right as the hero was
       scrolling out — pushed the content below and made the page jump. `svh` is
       pinned to the toolbar-visible viewport, so the hero height is stable during
       scroll (matches the gallery fix). Declared second so browsers without the
       new units keep the `vh` line. */
    min-height: 100svh;
    overflow: hidden;
}

.project-hero__media { position: absolute; inset: 0; }
.project-hero__media picture,
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The IQOSA overlay: an even dark wash, a touch deeper at the foot where the
   metadata sits. Matches the reference's intensity — enough for white text to
   stay legible over any photograph. */
.project-hero__veil {
    position: absolute;
    inset: 0;
    /* Fixed gradient shape; the configurable overlay (Phase 17.24a) scales only
       its opacity. Default 1 = the current designed intensity. */
    opacity: var(--hero-overlay-project, 1);
    background: linear-gradient(180deg, rgba(8,8,8,.42) 0%, rgba(8,8,8,.38) 45%, rgba(8,8,8,.62) 100%);
}

/* Right-clicking a public project image shows the page menu, not the image menu
   (no Save image / Copy / Open in new tab), like the reference studios. CSS-only
   (Phase 17.24a): pointer events pass through to the container, so overlaying
   links still work and the admin panel — which does not use these classes — is
   untouched. A deterrent, never true protection: a screenshot is always possible. */
.home-hero__slide img,
.project-hero__media img,
.gallery__item img,
.hp-card img,
.project-card__media img,
.pl-card img {
    pointer-events: none;
}

/* Back to Projects — under the fixed header, top-left, white, with a left
   arrow that slides on hover. */
.project-hero__back {
    position: absolute;
    /* Sit just below the fixed header using its real geometry (Phase 17.49c),
       not `vh` — on short viewports the old `11vh` fell inside the header box, so
       the header (z-index 100) intercepted the clicks. `--head-h` scales with the
       same rem system as the header, so the clearance holds at every width. */
    top: calc(var(--head-h) + .5rem);
    left: var(--pad);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .9;
    transition: opacity .2s ease;
}
.project-hero__back:hover { opacity: 1; }
.project-hero__back-arrow { display: inline-block; transition: transform .25s ease; }
.project-hero__back:hover .project-hero__back-arrow { transform: translateX(-5px); }

/* Shared caption typography (Phase 17.30, YODEZEEN reference): the project hero and
   the listing hover use the same clean scale — verified from YODEZEEN's `.l5`:
   14px desktop / 12px mobile, weight 400, near-zero tracking, line-height 1,
   uppercase. Colour is set on each caption container, not here. */
.project-hero__name, .project-hero__location,
.pl-card__name, .pl-card__location {
    margin: 0;
    font-family: inherit;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (min-width: 769px) {
    .project-hero__name, .project-hero__location,
    .pl-card__name, .pl-card__location { font-size: 14px; }
}

/* Hero caption: over the image, bottom. MOBILE — Project Name bottom-left,
   Location bottom-right (space-between). DESKTOP (YODEZEEN) — both grouped
   bottom-left on one line. */
.project-hero__caption {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: clamp(26px, 5vh, 56px);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px 24px;
    color: rgba(255, 255, 255, .92);
}
.project-hero__name { flex: 0 1 auto; white-space: normal; }
.project-hero__location { flex: 0 0 auto; text-align: right; }
@media (min-width: 769px) {
    /* Hero meta tuned to the YODEZEEN reference (Phase 18b): a lighter, more
       spacious pairing. The root is viewport-derived, so RECUBE 1rem renders the
       same as YODEZEEN's 0.75rem (~12px @1440) and 4.4167rem the same as their
       3.3125rem gap (~53px @1440) — proportionally matched at every width, in
       RECUBE's own type. Sits a touch lower toward their ~16px bottom inset; the
       left inset stays var(--pad) (~24px ≈ their ~25px). Mobile is untouched. */
    .project-hero__caption {
        justify-content: flex-start;
        column-gap: 4.4167rem;
        bottom: clamp(16px, 2vh, 22px);
    }
    .project-hero__location { text-align: left; }
    .project-hero__name,
    .project-hero__location { font-size: 1rem; }
}

/* With no image the hero becomes a plain dark title block: the layers drop out of
   absolute positioning into normal flow. */
.project-hero--flat {
    min-height: auto;
    background: var(--bg);
    padding: clamp(120px, 18vh, 200px) var(--pad) clamp(50px, 8vh, 90px);
}
.project-hero--flat .project-hero__back { position: static; margin-bottom: clamp(40px, 8vh, 90px); }
.project-hero--flat .project-hero__caption { position: static; left: auto; right: auto; bottom: auto; }

/* Description block (Phase 17.34, YODEZEEN "CONCEPT"): a centred heading over a
   centred description in a readable column, with generous space before and after.
   The gallery around it is full-width; only this block is constrained. Not rendered
   when the description is empty (the view guards it). */
/* Concept block (Phase 17.49g, YODEZEEN "Concept"): three centred levels in a
   generously spaced light section. Independent max-widths for the heading and the
   supporting text; the section is not compressed when the text is short. */
.project-intro {
    margin: 0 auto;
    max-width: 75rem;
    padding: clamp(7rem, 20vh, 16rem) var(--pad);
    text-align: center;
}
/* CONCEPT — the fixed small uppercase label directly above the statement. */
.project-intro__label {
    margin: 0 0 clamp(1rem, 2.2vh, 1.75rem);
    color: var(--fg);
    font-size: 1rem; line-height: 1; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
}
/* Description heading — the dominant conceptual statement. YODEZEEN scale: ~47px at
   the 1440 reference → 3.9167rem on RECUBE's fluid desktop root (so it viewport-scales
   the same way); a mobile/tablet clamp applies below the 1024 seam. Tight line-height
   (~88%), negative tracking (~-3%), medium weight, uppercase, centred, broad max-width
   so a long statement wraps into a wide centred shape. */
.project-intro__heading {
    max-width: 60rem; margin: 0 auto clamp(1.25rem, 2.4vh, 2rem);
    color: var(--fg);
    /* Bold display weight to match YODEZEEN's density (Phase 17.49h) — it read too
       light at 500. Size, width and position are unchanged. */
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(30px, 8vw, 44px);
    line-height: .88; letter-spacing: -.032em; text-transform: uppercase;
}
/* Desktop: widen the Concept composition (Phase 18b). The root is viewport-derived
   (1rem = 0.8333vw), so a rem max-width is a fixed share of the viewport: the
   headline at 80rem spans ~66.7vw (within the 60–70% target), inside a slightly
   wider 84rem container. Font size, line-height, tracking and vertical spacing are
   unchanged — only the line width grows. The body keeps its narrower 36rem. */
@media (min-width: 1024px) {
    .project-intro { max-width: 84rem; }
    .project-intro__heading { font-size: 3.9167rem; max-width: 80rem; }
}
/* Description — the smaller supporting text, always UPPERCASE (regardless of the
   stored case), centred, narrower than the heading. Mobile (≤1023) keeps its size.
   On desktop the Concept typography is FIXED (Phase 17.49h) and deliberately NOT
   driven by the project-level `--desc-font-d`, so it always matches YODEZEEN. */
.project-intro__body {
    max-width: 42rem; margin: 0 auto;
    color: var(--fg);
    font-size: var(--desc-font-m, 1rem);
    line-height: 1.5; text-transform: uppercase;
}
@media (min-width: 1024px) {
    .project-intro__body {
        /* 1rem here == YODEZEEN's 0.75rem: RECUBE's root is 1920-based (1rem=12px at
           1440), YODEZEEN's is 1440-based (0.75rem=12px at 1440) — the same rendered
           size at every width. Fixed, so `--desc-font-d` never overrides it. */
        max-width: 36rem;
        font-size: 1rem; font-weight: 500; line-height: 1; letter-spacing: -.012em;
    }
}
.project-intro__body p { margin: 0 0 1em; }
.project-intro__body p:last-child { margin-bottom: 0; }

/* Full-image viewer (Phase 17.34): a lightweight dark overlay opened by the "+"
   on a CSS-cropped Full image (project-viewer.js). Close button, Esc, click
   outside. */
.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(9, 9, 9, .92);
}
.image-viewer[hidden] { display: none; }
.image-viewer__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.image-viewer__close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.125rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}
body.viewer-open { overflow: hidden; }

/* On the public page the gallery is truly edge-to-edge (YODEZEEN, Phase 17.37):
   no side gutters — the images span the whole browser width (the full-bleed is in
   gallery.css). Only a white band above the first image remains. The old
   `--project-gallery-pad` step token (Phase 17.15) was removed: it outranked the
   gallery.css full-bleed and was the source of the leftover side margins. The
   Description keeps its own centred `max-width` (see `.project-intro`). */
.project .gallery {
    padding-top: clamp(24px, 3vw, 48px);
}

/* The closing call to action — reuses the Project Concept typography system
   (Phase 17.49i): "Work with us" == CONCEPT label, the title == the concept
   heading, the lead == the supporting description. All black (`.on-light` --fg). */
.project-cta { padding-left: var(--pad-wide); padding-right: var(--pad-wide); text-align: center; }
.project-cta .sec-index {
    display: block; margin: 0 0 clamp(1rem, 2.2vh, 1.75rem);
    color: var(--fg); font-size: 1rem; line-height: 1; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
}
.project-cta__title {
    max-width: 60rem; margin: 0 auto clamp(1.25rem, 2.4vh, 2rem);
    color: var(--fg); font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(30px, 8vw, 44px); line-height: .88; letter-spacing: -.032em;
    text-transform: uppercase;
}
.project-cta__lead {
    max-width: 42rem; margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
    color: var(--fg); font-size: 1rem; line-height: 1.5; text-transform: uppercase;
}
@media (min-width: 1024px) {
    .project-cta__title { font-size: 3.9167rem; }
    .project-cta__lead { max-width: 36rem; font-size: 1rem; font-weight: 500; line-height: 1; letter-spacing: -.012em; }
}

/* "See Also" — the two most recent projects, in the listing's own two-column
   card grid (Phase 17.2). No separator rule before it (Phase 17.49d). */
.project-related .sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
/* The SEE ALSO heading is smaller than the shared section title (Phase 17.49i) —
   ~1.7× down from the 4rem desktop size. Mobile keeps the base `.sec-title`. */
@media (min-width: 1024px) { .project-related .sec-title { font-size: 2.35rem; } }
/* Close the large white gap between the last See-Also row and the CTA (Phase
   17.49i, desktop only): drop the related section's bottom padding and trim the
   CTA's top, keeping the CTA's own height. Mobile unchanged. */
@media (min-width: 1024px) {
    .project-related { padding-bottom: 0; }
    .project-cta { padding-top: clamp(2.5rem, 5vw, 5rem); }
}

/* --------------------------------------------------------------------------
   HERO (Phase 17)
   The geometry is in critical.css — it is the LCP and must not wait for this
   file. What lives here is everything that only matters after the first paint:
   hover, the offer bar and the phone layout.
   -------------------------------------------------------------------------- */

.home-hero__slide picture { display: block; }
/* The cover crop is severe, so the subject is held in the centre. */
.home-hero__slide img { object-position: center; }

/* The centred "See our work" link below the title (Phase 17.4, restyled 17.40 to
   the mockup). */

/* Pill CTA (Phase 17, YODEZEEN "Read more") — a rounded grey button, no border,
   no underline, uppercase. Shared by VIEW PROJECT, ALL PROJECTS and the mobile
   LET'S TALK, so they read identically on desktop and mobile. */
/* THE shared CTA pill (Phase 17.49d) — ONE visual system for every standard pill:
   VIEW PROJECT, ALL PROJECTS, SEND A REQUEST, the Telegram/WhatsApp chat buttons
   and the gallery "View more". Light-grey fill, no border, full pill, compact
   YODEZEEN proportions (tight padding, line-height 1, weight 500), inverting on
   hover. Only genuinely different controls keep their own style: the header
   "LET'S TALK" text CTA (`.btn-cta--nav`) and the large arrow "read more" FAQ link
   (`.home-faq__actions .btn-cta`), which override this below. `.gallery-more` shares
   the identical look, defined in gallery.css (it is a centred block). */
.cta-pill, .btn-cta, .via-btn {
    display: inline-flex; align-items: center; justify-content: center;
    /* YODEZEEN pill proportions (Phase 17.49i): slightly smaller text, neutral
       tracking, more vertical breathing room and a compact width — a refined pill,
       not a flat wide capsule. */
    padding: .6rem 1rem; border-radius: 999px; border: 0;
    background: #d3d3d3; color: #151515;
    font: inherit; font-size: .75rem; line-height: 1; font-weight: 500;
    letter-spacing: 0; text-transform: uppercase; white-space: nowrap; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.cta-pill:hover, .cta-pill:focus-visible,
.btn-cta:hover, .btn-cta:focus-visible,
.via-btn:hover, .via-btn:focus-visible { background: #151515; color: #d3d3d3; }
/* Hero foot (Phase 17): DESKTOP — name bottom-left, VIEW PROJECT bottom-right, dots
   centred on the row below. MOBILE — name left and dots right on the same axis,
   VIEW PROJECT centred at the bottom (overrides below). The .cta-pill class gives
   VIEW PROJECT its look; here we only place it. */
/* The foot wrapper is transparent on desktop (`display:contents`) so the caption,
   VIEW PROJECT and dots keep their own absolute positions; mobile turns it into a
   single flex column at the hero foot (see the @media block). */
.home-hero__foot, .home-hero__foot-top { display: contents; }
.home-hero__view {
    position: absolute; right: var(--pad); bottom: 1rem;
    z-index: 3; pointer-events: auto;
}
/* Navigation dots — small, white, semi-transparent; the active one is bright. The
   button carries a larger transparent tap target around a small visual dot. */
.home-hero__dots {
    /* Desktop: the dots sit on the SAME bottom axis as the project name (left) and
       VIEW PROJECT (right) so the three read as one bottom row (Phase 17.49d).
       Mobile re-flows them into the foot's top row (see the ≤1023 block). */
    position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 1rem; z-index: 3; pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
}
.home-hero__dot {
    width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.home-hero__dot::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, .45); transition: background .3s ease, transform .3s ease;
}
.home-hero__dot:hover::before, .home-hero__dot:focus-visible::before { background: rgba(255, 255, 255, .8); }
.home-hero__dot.is-active::before { background: #fff; transform: scale(1.15); }

/* The active slide's name · location, bottom-left (Phase 17.40; slider 17.47). It
   fades out and back in around the crossfade midpoint (the slider adds
   `is-swapping`), so the caption is never shown over another project's image. */
.home-hero__place {
    position: absolute; left: var(--pad); bottom: 1rem;
    z-index: 3; color: rgba(255, 255, 255, .92);
    /* Matches the VIEW PROJECT pill size at each breakpoint (1rem / 14px). */
    font-size: 1rem; letter-spacing: .01em;
    transition: opacity .45s ease;
}
.home-hero__place.is-swapping { opacity: 0; }
@media (max-width: 1023px) {
    /* Mobile/tablet hero foot (Phase 17; seam 1023 in 17.49): one flex column at the hero foot, positioned as a
       single unit (YODEZEEN). Top row — NAME left, DOTS right on the same axis;
       below it, VIEW PROJECT centred, a 1rem gap apart. No per-element bottom
       positioning, so the elements can never overlap. Location hidden. */
    .home-hero__foot {
        position: absolute; left: var(--pad); right: var(--pad);
        bottom: clamp(18px, 4vh, 34px); z-index: 3; pointer-events: none;
        display: flex; flex-direction: column; gap: 1rem;
    }
    .home-hero__foot-top {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }
    /* Children flow inside the container — clear their desktop absolute rules. */
    .home-hero__place, .home-hero__dots, .home-hero__view {
        position: static; left: auto; right: auto; bottom: auto; transform: none;
    }
    .home-hero__dots { margin-left: auto; pointer-events: auto; } /* pinned right, even with no name */
    .home-hero__view { align-self: center; pointer-events: auto; }
    .home-hero__place { text-transform: uppercase; font-size: 14px; letter-spacing: .05em; }
    .home-hero__psep, .home-hero__ploc { display: none; }
}

/* Character blur-in reveal states (Phase 17.40). The hidden state is in
   critical.css (above the fold, `.js`-scoped); text-reveal.js sets per-character
   transition delays and flips `.is-revealed`. */
.home-hero__title[data-reveal-text] .motion-char {
    display: inline-block;
    will-change: opacity, filter;
    transition: opacity .5s ease, filter .5s ease;
}
.home-hero__title[data-reveal-text].is-revealed .motion-char { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
    .js .home-hero__title[data-reveal-text] .motion-char { opacity: 1; filter: none; transition: none; }
}

/* Long slogans stay on one line on desktop, where there is room, and wrap on
   tablet/phone, where forcing one line would shrink the type to nothing. The
   boundary is the 1024 seam (Phase 17.49) so tablets wrap like phones. */
@media (min-width: 1024px) {
    .home-hero__title { white-space: nowrap; }
}

.home-hero__offer {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: calc(100% - 40px);
    padding: 10px 10px 10px 26px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 60px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(12px);
}
.home-hero__offer span { font-size: .78125rem; line-height: 1.35; max-width: 270px; color: rgba(255, 255, 255, .92); }
.home-hero__offer-btn {
    flex: none;
    background: #fff;
    color: #000;
    font-size: var(--nav-font, .8125rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .02em;
    padding: .5rem 1.333rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: background .35s cubic-bezier(.24, 1, .36, 1), color .35s cubic-bezier(.24, 1, .36, 1),
                box-shadow .35s cubic-bezier(.24, 1, .36, 1);
}
.home-hero__offer-btn:hover {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

@media (max-width: 1023px) {
    /* Mobile/tablet hero typography + offer bar (seam 1023 in 17.49). */
    .home-hero__title { white-space: normal; font-size: clamp(36px, 11vw, 56px); line-height: 1.02; max-width: 14ch; }
    .home-hero__over { margin-bottom: 16px; letter-spacing: .22em; font-size: 10px; line-height: 1.6; max-width: 90%; }
    /* The offer bar stays one row on tablet/phone: text, then button. */
    .home-hero__offer {
        left: 16px; right: 16px; bottom: 22px;
        transform: none; max-width: none;
        gap: 12px; padding: 9px 9px 9px 18px; border-radius: 16px;
    }
    .home-hero__offer span { max-width: none; font-size: 12px; flex: 1; }
    .home-hero__offer-btn { padding: 11px 16px; font-size: 11px; }
}

/* Homepage sections: vertical rhythm comes from `.sec` on each. The About
   divider hairline was removed in Phase 17.40 (mockup — no line below the hero);
   the old two-column About layout is gone, replaced by the centered statement in
   the Phase 17.40 block at the end of this file. */

.prose { max-width: 640px; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   HOMEPAGE "OUR PROJECTS" — 2-1-2 grid, HILIGHT hover (Phase 17.5)

   Two cards on top, one wide card in the middle, two on the bottom. The card
   name is overlaid on the image and fades in on hover under a soft dark wash;
   the image never scales. A distinct card from the /projects listing (title
   below the image), so it carries its own class.
   -------------------------------------------------------------------------- */

.hp-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(6px, .7vw, 10px);
}
.hp-card { position: relative; margin: 0; }
/* The third card is the wide middle one, spanning both columns. */
.hp-card:nth-child(3) { grid-column: 1 / -1; }

.hp-card__link { display: block; position: relative; overflow: hidden; }
.hp-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: #141414; }
.hp-card:nth-child(3) .hp-card__media { aspect-ratio: 21 / 9; }
.hp-card__media picture,
.hp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Desktop editorial scale (Phase 17.37, HILIGHT reference): the 2-1-2 grid grows
   into large, expensive-looking images — the paired cards and the wide middle band
   switch from a fixed ratio to viewport-relative heights (CSS crop only, cover;
   the Media Engine and image selection are untouched). Kept moderate so the whole
   section stays roughly two screens, not an endless scroll. Mobile keeps the 3/2
   ratio above, so phones are unchanged. */
@media (min-width: 769px) {
    .hp-card__media { aspect-ratio: auto; height: clamp(600px, 84vh, 1120px); }
    .hp-card:nth-child(3) .hp-card__media { aspect-ratio: auto; height: clamp(720px, 96vh, 1320px); }
}

/* The dark wash and the title both fade in together — no scaling. */
.hp-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(9, 9, 9, .45);
    opacity: 0;
    transition: opacity .5s ease;
}
.hp-card__link:hover::after,
.hp-card__link:focus-visible::after { opacity: 1; }

.hp-card__title {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: clamp(18px, 2vw, 30px);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(15px, 1.4vw, 20px);
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}
.hp-card__link:hover .hp-card__title,
.hp-card__link:focus-visible .hp-card__title { opacity: 1; transform: none; }

/* No hover on a touch screen: show the title over a light constant wash so it
   is always readable. */
@media (hover: none) {
    .hp-card__link::after { opacity: .35; }
    .hp-card__title { opacity: 1; transform: none; }
}

.home-featured__all { margin-top: clamp(26px, 3vw, 44px); text-align: center; }

@media (max-width: 640px) {
    /* One column on a phone; the wide middle card returns to the normal ratio. */
    .hp-grid { grid-template-columns: 1fr; gap: 12px; }
    .hp-card:nth-child(3) { grid-column: auto; }
    .hp-card:nth-child(3) .hp-card__media { aspect-ratio: 3 / 2; }
}

/* Anchored homepage sections clear the fixed header when scrolled to (Phase
   17.5), so a smooth-scroll from the menu does not tuck the heading under it. */
.site-main section[id] { scroll-margin-top: clamp(64px, 9vh, 92px); }

/* Services — numbered rows separated by hairlines. Name on the left, what it
   means on the right; one column on phones, where two would leave neither
   enough room. */
.service-list { list-style: none; margin: 0; padding: 0; }
.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: baseline;
    padding: clamp(24px, 3vw, 40px) 0;
    border-top: 1px solid var(--line);
}
.service:first-child { border-top: none; }
.service__head { display: flex; align-items: baseline; gap: 14px; }
.service__idx { flex: none; font-size: 0.8125rem; color: var(--muted-2); }
.service__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(20px, 2.6vw, 34px);
    margin: 0;
}
.service__text { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; max-width: 520px; margin: 0; }

/* --------------------------------------------------------------------------
   FAQ (Phase 17)

   Native <details>, no JavaScript. The answer sits in the HTML whether the row
   is open or closed, so search engines and AI crawlers read it either way
   (FAQS §6) — which is the one thing the reference site gets wrong, and the
   reason a premium FAQ so often ends up worth nothing for search.
   -------------------------------------------------------------------------- */

/* The block is a two-column layout on the page, not a narrow text column: the
   heading holds the left, the questions take the rest of the content width.
   The readable-line cap lives on the *answer* instead (`.faq-item__a`), which
   is the only part that is prose — a question is one line, and a hairline rule
   stopping two-thirds of the way across looks like a mistake. */
/* The reference (IO Studio) puts a short label hard left and the questions in a
   wide column — roughly a 1:3 split — with generous air above and below. The
   ratio reproduces that proportion inside RECUBE's own container width. */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: start;
}
/* Homepage FAQ (iostudio reference): a narrow "FAQ:" column at the left edge and
   the questions taking almost the full width. No left indent, and no section
   eyebrow — the "FAQ:" heading is the label, so "0N — FAQ" above it is redundant. */
.home-faq .faq-layout {
    padding-left: 0;
    grid-template-columns: minmax(96px, 0.55fr) minmax(0, 4fr);
}
.home-faq .faq-layout__head .sec-index { display: none; }
.faq-layout__head .sec-index { display: block; margin-bottom: 18px; }
.faq-layout__all { display: inline-block; margin-top: clamp(22px, 3vw, 34px); }
.faq-list { max-width: none; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
/* Rows share one height and one rhythm: equal vertical padding, the icon
   centred on the right. `align-items: center` keeps the "+" in the same spot
   whether the row is open or closed — opening only adds content *below* the
   summary, so the summary's geometry never changes. */
.faq-item__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    list-style: none;
    padding: clamp(16px, 1.9vw, 22px) 0;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.3;
    color: var(--fg);
    transition: opacity .2s ease;
}
/* Hover is nearly invisible by design (reference behaviour): the colour never
   changes — the old `color: #fff` turned questions white on the white homepage
   block — only a faint opacity shift and the cursor say "clickable". */
.faq-item__q:hover { opacity: .8; }
.faq-item__q::-webkit-details-marker { display: none; }
/* The marker is generated content, so it is decorative by definition — the
   open/closed state is already announced by <details> itself. The same "+"
   rotates 45° into a "×" when open, so the glyph never jumps or is swapped. */
.faq-item__q::after {
    content: '+';
    flex: none;
    width: 22px;
    text-align: center;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease;
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { margin: 0 0 clamp(20px, 2.4vw, 28px); color: var(--muted); max-width: 720px; line-height: 1.6; font-size: 0.9375rem; }
/* The open answer reads at lower contrast than the question (reference): on the
   white surface the standard muted (#6b6b6b) is too dark, so it lightens one
   step. The dark hub keeps the token — lightening there would drop below
   readable contrast. */
.on-light .faq-item__a { color: #878b90; }
.faq-item__a p { margin: 0 0 12px; }
.faq-item__a ul { margin: 0 0 12px; padding-left: 20px; }
.faq-item__a a { color: var(--fg); border-bottom: 1px solid var(--line); }
.faq-item__a a:hover { border-color: #fff; }
.faq-item__more { margin: 14px 0 0; }
.faq-item__more a {
    font-size: 0.75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
}
.faq-item__more a:hover { color: #fff; border-color: #fff; }

/* The closing row under the accordion (reference): the quiet prompt on the
   left, "Ask your question →" on the right — a text link, not a stretched
   button. One rule set serves the homepage block and the hub, so the two rows
   cannot drift apart. */
.home-faq__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: clamp(24px, 3vw, 36px);
}
.home-faq__prompt { margin: 0; color: var(--muted-2); font-size: 0.875rem; }
.home-faq__actions .btn-cta,
.faq-page__cta .btn-cta {
    border: 0;
    background: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 500;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--fg);
}
.home-faq__actions .btn-cta::after,
.faq-page__cta .btn-cta::after {
    content: '\2192';
    display: inline-block;
    margin-left: 14px;
    transition: transform .25s ease;
}
.home-faq__actions .btn-cta:hover,
.faq-page__cta .btn-cta:hover { background: none; color: var(--fg); }
.home-faq__actions .btn-cta:hover::after,
.faq-page__cta .btn-cta:hover::after { transform: translateX(6px); }

/* FAQ hub and detail pages. */
/* A single FAQ answer is a reading page and stays a narrow column: a line of
   prose past ~75 characters is measurably harder to read, and no amount of
   screen width changes that. The hub is not — it is a list of one-line
   questions, so it uses the wide two-column layout instead. */
.faq-entry { max-width: 860px; margin: 0 auto; padding: 48px var(--pad) 80px; }
.faq-layout__head .page-title { margin-bottom: 20px; }
.faq-layout__head .page-lead { margin-top: 0; }
.faq-page__empty { color: var(--muted); }

.faq-page__cta, .faq-entry__cta {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: clamp(30px, 4vw, 44px);
    border-top: 1px solid var(--line);
}
.faq-page__cta p, .faq-entry__cta p { color: var(--muted); margin: 0 0 18px; }
/* The hub's closing row mirrors the homepage one: prompt left, link right. */
.faq-page__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.faq-page__cta p { margin: 0; color: var(--muted-2); font-size: 0.875rem; }

.faq-entry__back { margin-bottom: 28px; }
.faq-entry__back a,
.faq-entry__foot a {
    font-size: 0.75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s ease;
}
.faq-entry__back a:hover,
.faq-entry__foot a:hover { color: var(--fg); }
.faq-entry__foot { margin-top: 36px; }

.faq-entry__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(26px, 3.6vw, 44px);
    line-height: 1.08;
    letter-spacing: -.005em;
    margin: 0 0 20px;
}
.faq-entry__lead { color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.faq-entry__lead a { color: var(--fg); border-bottom: 1px solid var(--line); }
.faq-entry__cover { margin: 32px 0; }
.faq-entry__cover img { width: 100%; height: auto; display: block; }
.faq-entry__body { line-height: 1.7; }
.faq-entry__body h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.faq-entry__body h3 { font-size: 1.0625rem; margin: 28px 0 8px; }
.faq-entry__body p, .faq-entry__body ul, .faq-entry__body ol { margin: 0 0 16px; color: var(--muted); }
.faq-entry__body ul, .faq-entry__body ol { padding-left: 20px; }
.faq-entry__body a { color: var(--fg); }
.faq-entry__body blockquote {
    margin: 24px 0; padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted);
}
.faq-entry__body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.faq-entry__body th, .faq-entry__body td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.875rem;
}
.faq-entry__body img { max-width: 100%; height: auto; }
.faq-entry__body pre {
    overflow-x: auto; padding: 16px; border: 1px solid var(--line); font-size: 0.8125rem;
}

.award {
    display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.award__year { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }

/* Partners — a wall of marks. The 1px gap over a lined background draws the
   grid with the background itself, so there are no borders to keep in step. */
.home-partners { background: var(--bg-2); }
.partner-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.partner { background: var(--bg-2); transition: background .3s ease; }
.partner a,
.partner span {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 7;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    text-align: center;
    padding: 10px;
    transition: color .3s ease;
}
.partner:hover { background: var(--card); }
.partner:hover a { color: var(--fg); }

/* Awards — title left, year right, hairline between. */
.award-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }

/* --------------------------------------------------------------------------
   CONTACT SECTION (Phase 17.7 — ISTO layout, RECUBE black identity)

   The form leads: a small intro, a large centred heading, then the request form
   in a narrow centred column. The contact details follow beneath, in a clean
   multi-column row above a thin rule. White type on the black homepage.
   -------------------------------------------------------------------------- */
/* Left-aligned like the LET'S TALK modal (Phase 19.7): the heading sits on the
   same left edge as the form fields, in the same column width. */
.home-contact { text-align: left; }

.contact-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 64px); }
@media (min-width: 1024px) { .contact-head { max-width: min(50vw, 1040px); } }
.contact-intro {
    margin: 0 0 18px;
    font-size: 0.75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.7;
}
/* Single heading, matching the modal title (Phase 17.5x): sentence case, not the
   old uppercase page heading. */
.contact-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(30px, 4.5vw, 56px);
    letter-spacing: -.025em;
    line-height: 1.02;
    margin: 0;
}

/* The form sits in a centred column but its fields read left-aligned. Its width
   mirrors the LET'S TALK modal (Phase 18b) so the two feel like one component:
   640px base, and the modal's desktop width min(50vw, 1040px) from 1024px up. */
.contact-form-wrap { max-width: 640px; margin: 0 auto; text-align: left; }
@media (min-width: 1024px) { .contact-form-wrap { max-width: min(50vw, 1040px); } }

/* /contacts uses the modal's underline-only fields (Phase 17.5x), not boxes —
   the same minimalist rule the modal applies, mirrored for the page context. */
.page-contacts .lead-form input[type=text],
.page-contacts .lead-form textarea {
    border: 0; border-bottom: 1px solid rgba(16, 16, 16, .25); border-radius: 0;
    background: transparent; padding: 12px 0;
}
.page-contacts .lead-form input[type=text]:focus,
.page-contacts .lead-form textarea:focus { border-bottom-color: #101010; background: transparent; }

/* The detail columns beneath, above a thin rule. */
.contact-info {
    margin-top: clamp(56px, 7vw, 110px);
    padding-top: clamp(34px, 4vw, 54px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 40px;
    text-align: left;
}
.contact-info__col h3 {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.contact-info__col p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.contact-info__col a { color: var(--muted); transition: color .2s ease; }
.contact-info__col a:hover { color: var(--fg); }
.contact-info__social a { display: block; }

/* --- The request form (one definition, used inline and in the modal) --- */
.lead-form .field { margin-bottom: 18px; }
.lead-form label { display: block; font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lead-form input[type=text],
.lead-form textarea {
    width: 100%; background: transparent; color: var(--fg);
    border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
    font: inherit; font-size: 0.9375rem;
}
.lead-form input[type=text]:focus,
.lead-form textarea:focus { outline: none; border-color: var(--muted); }
.lead-form textarea { resize: vertical; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 0.8125rem; color: var(--muted); }
.lead-form .consent input { width: auto; margin-top: 3px; }

/* The honeypot must be unreachable for people but present for scripts. */
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Global button system (Phase 17.37, YODEZEEN). ONE pill component for every
   action button — "Write to us", "Send request", form submits, the FAQ CTA and
   the gallery "View more". The default is an outline that inverts to a solid fill
   on hover, expressed with the page's own --fg/--bg tokens so it reads correctly on
   the dark hero and the light content alike (the light-header pages add their own
   #101010 override above). One CMS value drives the size: --nav-font, shared with
   the navigation. Premium easing, no bounce/glow/scale. (`.gallery-more` shares the
   same look but stays a centred block — see gallery.css.) */
/* `.btn-cta` now inherits the shared filled pill (grouped rule above, Phase
   17.49d). Only `.btn-cta--nav` (the header text CTA) and the FAQ arrow link keep
   their own look. */

/* "Write to us" — the YODEZEEN header pill (Phase 17.38). A semi-transparent dark
   fill (`#2d2a2a` at 10% = `--c-dark-10`) over a heavy backdrop blur, so the hero
   image stays subtly visible through it and it still reads over the dark sticky
   header. Sentence case (task 7), wider horizontal padding for YODEZEEN's
   proportions. NOT a solid grey fill. */
/* "LET'S TALK +" is a plain nav item, no pill/border (Phase 17.40 review) — it
   reads exactly like the other menu links and rolls to "CONTACT US" on hover. */
.btn-cta--nav {
    margin-left: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: rgba(255, 255, 255, .82);
    font-size: var(--nav-font, 13px);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.btn-cta--nav:hover { background: none; color: #fff; border: none; }

/* Label roll on hover (Phase 17.40, studionamma-style): both lines share one
   masked cell; on hover the first rolls up and out as the second rolls in. */
.btn-swap { display: inline-grid; overflow: hidden; line-height: 1.15; text-transform: uppercase; }
.btn-swap__a, .btn-swap__b {
    grid-area: 1 / 1; white-space: nowrap;
    transition: transform .42s cubic-bezier(.6, 0, .2, 1);
}
.btn-swap__b { transform: translateY(115%); }
.btn-cta--nav:hover .btn-swap__a { transform: translateY(-115%); }
.btn-cta--nav:hover .btn-swap__b { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .btn-swap__a, .btn-swap__b { transition: none; }
}

.form-note, .page-note { border-radius: 8px; padding: 12px 16px; font-size: 0.875rem; margin: 0 0 20px; }
.form-note--ok, .page-note--ok { border: 1px solid #2f4f36; background: #10180f; color: #cfe3cd; }
.form-note--error, .page-note--error { border: 1px solid #5a2f2f; background: #180f0f; color: #e8cccc; }
.page-note { margin: 0 var(--pad); }

/* --- Full-screen contact overlay (Phase 17.41d): the shared lead form over the
   whole viewport, on a simple grey surface, with a Close control top-right and
   the direct Telegram / WhatsApp links below. Same form partial as the Contact
   section — no second copy. --- */
.request-modal {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    max-width: none; max-height: none;
    margin: 0; border: 0; border-radius: 0; padding: 0;
    background: #f2f2f2; color: #101010;
    overflow: auto;
}
/* The light token set the shared `.lead-form` renders against (white inputs on
   the grey surface) — the same trick `.on-light` uses. */
.request-modal--light {
    --bg: #f2f2f2; --bg-2: #fafafa; --card: #ffffff;
    --fg: #101010; --muted: #6b6b6b; --muted-2: #9a9a9a; --line: #dcdcdc;
}
.request-modal--light :focus-visible { outline-color: #101010; }
.request-modal::backdrop { background: rgba(20, 20, 20, .6); }
/* Lock the page behind the overlay (it fills the viewport anyway). */
html:has(.request-modal[open]) { overflow: hidden; }
.request-modal__inner {
    max-width: 640px; margin: 0 auto; min-height: 100%;
    padding: clamp(84px, 12vh, 150px) var(--pad) 72px;
    display: flex; flex-direction: column; justify-content: center;
}
/* Wider, YODEZEEN-like form on desktop — about half the viewport, still centred. */
/* Desktop: a wider YODEZEEN-like form, sitting slightly higher (Phase 17.5x) —
   a smaller top pad lifts the vertically-centred group. Mobile is unchanged. */
@media (min-width: 1024px) { .request-modal__inner { max-width: min(50vw, 1040px); padding-top: clamp(48px, 7vh, 96px); } }
/* Underline-only fields (Phase 17.41g): no box, no fill, just a bottom rule. */
.request-modal .lead-form input[type=text],
.request-modal .lead-form textarea {
    border: 0; border-bottom: 1px solid rgba(16, 16, 16, .25); border-radius: 0;
    background: transparent; padding: 12px 0;
}
.request-modal .lead-form input[type=text]:focus,
.request-modal .lead-form textarea:focus { border-bottom-color: #101010; background: transparent; }
.request-modal .lead-form label { font-size: 0.75rem; }
.request-modal__title {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(30px, 4.5vw, 56px); letter-spacing: -.025em; line-height: 1.02;
    margin: 0 0 clamp(28px, 4vw, 44px);
}
/* On success the form is replaced by the confirmation, so the heading gives way
   to the panel's "Thank you!". */
.request-modal:has(.lead-success:not(.is-hidden)) .request-modal__title { display: none; }
.request-modal__close {
    position: fixed; top: clamp(18px, 3vh, 30px); right: clamp(18px, 3vw, 40px);
    z-index: 2; background: none; border: 0; color: #101010; cursor: pointer;
    font-size: 0.9375rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px;
}
.request-modal__close:hover { opacity: .6; }
/* "Or contact us via:" on its own line (black), the chat links below it. */
.request-modal__via { margin-top: clamp(32px, 5vw, 48px); }
.request-modal__via-label { margin: 0 0 14px; color: #101010; font-size: 0.875rem; }
.request-modal__via-links { display: flex; gap: 14px; flex-wrap: wrap; }
/* `.via-btn` (Telegram / WhatsApp) inherits the shared filled pill (Phase 17.49d). */

/* Direct-channel block inside the contact form (Phase 17.5x): "Or contact us
   directly" + the WhatsApp / Telegram pills, rendered once below the form on both
   the modal and /contacts. On light backgrounds, so the label is dark. */
.lead-direct { margin-top: clamp(28px, 4.5vw, 44px); }
.lead-direct__label { margin: 0 0 14px; color: #101010; font-size: 0.875rem; }
.lead-direct__links { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Contact form success + error (Phase 17.29), shared by the page and modal --- */
.lead-success { text-align: center; padding: 8px 0 4px; }
.lead-success__title { font-size: 1.375rem; font-weight: 500; margin: 0 0 12px; }
.lead-success__text { color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.lead-error { color: #b3261e; font-size: 0.875rem; margin: 0 0 16px; }
.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   MOBILE NAVIGATION — a full-screen panel (`.site-menu`), opened by the burger.
   Separate from the desktop `.site-nav` groups so it is the only overlay
   (Phase 17.40). Always dark with white links, on any page.
   -------------------------------------------------------------------------- */

/* Full-screen light panel (Phase 17). Height is `100dvh`, not `inset:0`: a fixed
   `inset:0` panel tracks the mobile URL-bar toggle inconsistently, so after an
   anchor jump (which scrolls and flips the URL bar) it could render shorter than
   the now-visible viewport. `100dvh` sizes it to the DYNAMIC viewport, so it always
   covers the whole visible area, at any scroll position and after anchor nav. */
.site-menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;   /* fallback */
    height: 100svh;
    height: 100dvh;  /* the fix — the current visible viewport height */
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ededed;
}
.nav-open .site-menu { display: flex; }
.site-menu ul {
    display: flex; flex-direction: column;
    gap: clamp(14px, 3.4vh, 30px);
    text-align: center; list-style: none; margin: 0; padding: 0;
}
/* Large uppercase labels (Phase 17, YODEZEEN) — responsive so they fill the panel
   without a hardcoded size. */
.site-menu a {
    font-family: var(--font-heading); font-weight: 600;
    font-size: clamp(30px, 8vw, 56px); line-height: 1.04; letter-spacing: -.01em;
    color: #151515; text-transform: uppercase;
}
/* Social icons row near the foot — one compact circle per configured network,
   reusing the same $socialLinks the footer uses. */
.site-menu__social {
    position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 56px);
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 var(--pad);
}
.site-menu__social-icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(21, 21, 21, .35); color: #151515;
    font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}
.site-menu__social-icon:hover { background: #151515; color: #ededed; }
/* The panel is the only scrollable thing while it is open. */
.nav-open { overflow: hidden; }
/* Header controls sit above the light panel (Phase 17): the bar goes transparent
   (so a scrolled `is-solid` dark background does not hide the controls) and the ink
   flips dark against the light panel — close button left, RECUBE centred. */
.nav-open .site-head { background: transparent; --head-ink: #151515; }
.nav-open .site-brand { color: #151515; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .site-nav { gap: clamp(16px, 2vw, 30px); }
}

@media (max-width: 1023px) {
    /* Mobile header (Phase 17.41e/g): hamburger left, logo centre, contact icon
       right — the three-zone 1fr auto 1fr layout, overriding the desktop
       even-distribution grid (these overrides must sit in site.css too, or the
       desktop `display:contents` base would win over critical.css on mobile).
       Breakpoint raised to 1023 in 17.49 to match the desktop-scale seam. */
    .site-head { grid-template-columns: 1fr auto 1fr; padding: 16px var(--pad); }
    .site-head__left { display: flex; align-items: center; justify-content: flex-start; }
    .site-head__right { display: flex; align-items: center; justify-content: flex-end; }
    /* Reset the desktop fixed-column placement — the brand is the middle (auto)
       zone here, not slot 4 of the 7-slot grid. The RECUBE wordmark follows the
       Mobile navigation font size (Phase 17.44). */
    .site-brand { grid-column: auto; font-size: calc(var(--nav-font-mobile, 14px) + 15px); }
    .site-nav--left, .site-nav--right { display: none; }
    .site-nav { display: none; }
    /* Circular controls on a frosted semi-transparent white background, no stroke
       (Phase 17; YODEZEEN mobile) — icons, size, tap area and behaviour unchanged.
       The frosted fill reads over a hero image and over the solid/light sticky
       header alike, while the icon colour follows `--head-ink`. */
    .site-burger, .site-contact {
        display: flex; width: 44px; height: 44px; border-radius: 50%;
        border: 0;
        background: rgba(255, 255, 255, .16);
        -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    }
    /* The contact icon is the mobile "Let's Talk +"; while the menu is open only
       the burger (now a close control) is needed. */
    .nav-open .site-contact { display: none; }
    /* Burger → X while the panel is open. */
    .nav-open .site-burger { gap: 0; }
    .nav-open .site-burger span:first-child { transform: translateY(1px) rotate(45deg); }
    .nav-open .site-burger span:last-child { transform: translateY(0) rotate(-45deg); }
    .site-burger span { transition: transform .3s ease; }
}

@media (max-width: 1023px) {
    /* Every two-column block folds at the same width, so the page changes shape
       once rather than section by section on the way down. Aligned to 1023 in
       17.49 so the multi-column desktop layout exists only in the fluid range. */
    .home-about__grid { grid-template-columns: 1fr; gap: 34px; }
    .faq-layout { grid-template-columns: 1fr; gap: 30px; }
    .service { grid-template-columns: 1fr; gap: 8px; }
    /* The contact detail columns fold to two across, then one on a phone. */
    .contact-info { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
    .partner-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    /* On a phone the caption sits a touch lower and the facts tighten up. */
    .project-hero__caption { bottom: clamp(26px, 6vh, 44px); }
    .project-hero__facts { gap: 6px 20px; }
    .project-fact { font-size: 11px; }

    .project-grid { grid-template-columns: 1fr; gap: 12px; }
    .site-foot__cols { gap: 26px; }
    .site-foot__col { flex: 1 1 40%; }
    .site-foot__bottom { flex-direction: column; gap: 8px; }
    .faq-item__q { gap: 16px; }
    /* The eyebrow and the title stack, so the gap between them tightens. */
    .page-head { margin-bottom: 32px; }
}

@media (max-width: 380px) {
    .partner-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PHASE 17.40 — HOMEPAGE REDESIGN (approved mockup)
   Light content surface below the hero; centered About & Services statements;
   2-1-2 Latest Projects with captions below; dark four-column footer + wordmark.
   Header and footer are shared chrome and change on every page by design; the
   light surface is scoped to `body.page-home`.
   ========================================================================== */

/* Light content surface below the hero. The hero keeps its own dark image layers
   (it uses explicit #fff text, not the tokens re-pointed here); the footer is
   dark chrome, set below. */
body.page-home .site-main {
    --fg: #151515;
    --muted: #6b6b6b;
    --muted-2: #8f8f8f;
    --line: rgba(0, 0, 0, .12);
    --bg: #e0e0e0;
    background: var(--bg);
}

/* Solid header on the homepage is light (mockup): transparent light-text nav over
   the hero, a light bar with dark text once scrolled past it. */
body.page-home .site-head.is-solid {
    background: rgba(242, 242, 242, .92);
    backdrop-filter: blur(12px);
}
body.page-home .site-head.is-solid .site-brand,
body.page-home .site-head.is-solid .site-nav a,
body.page-home .site-head.is-solid .site-head__phone { color: #151515; }
body.page-home .site-head.is-solid .site-nav a:hover { color: #000; }
body.page-home .site-head.is-solid .btn-cta--nav { color: #2d2a2a; }

/* ABOUT — a small label (Heading field) over one large centered statement
   (Text field). Width, line-height and tracking match the reference h2. */
.home-about { text-align: center; padding-left: var(--pad); padding-right: var(--pad); }
/* Near-full-width editorial block (Phase 17.49c, YODEZEEN proportion): ~90% of the
   viewport. `110rem` scales with the fluid root (≈91.7vw), the `92vw` cap holds the
   proportion on any width — the statement fills the composition instead of sitting
   in a narrow column. */
.home-about__inner { max-width: min(110rem, 92vw); margin: 0 auto; }
/* The ABOUT heading matches the SERVICES "WE DO" label exactly (Phase 17.43). */
.home-about__label {
    margin: 0 0 clamp(24px, 2.6vw, 40px);
    font-size: 0.75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.home-about__statement {
    font-family: var(--font-heading); font-weight: 700;
    font-size: var(--about-fs, clamp(38px, 6.2vw, 104px)); line-height: 1.03; letter-spacing: -.045em;
    margin: 0; color: var(--fg);
    /* Rendered uppercase (Phase 17) — presentation only; the stored CMS text is
       untouched. */
    text-transform: uppercase;
}

/* LATEST PROJECTS — 2-1-2, near full-width, captions below (mockup spacing).
   No vertical padding of its own (Phase 17.43): the gap to ABOUT above and
   SERVICES below is owned by those sections' Vertical Padding, so spacing is
   never doubled. */
.home-featured { padding-left: var(--pad); padding-right: var(--pad); padding-top: 0; padding-bottom: 0; }
/* Column gap stays tight (the /projects side-by-side rhythm, Phase 17.49c); the ROW
   gap is larger (Phase 19.5) so each caption has restrained breathing room before the
   next project below it, without widening the tight side-by-side pairs or leaving a
   large empty band. Mobile keeps its own comfortable gap (below). */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(6px, .7vw, 10px); row-gap: clamp(26px, 2.6vw, 44px); }
.pf-card { display: flex; flex-direction: column; color: var(--fg); }
/* The wide middle card spans the row; the grid row-gap gives the caption spacing. */
.pf-card--wide { grid-column: 1 / -1; margin: 0; }
.pf-card__media { position: relative; overflow: hidden; background: #ddd; }
.pf-card__media img, .pf-card__media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Taller, portrait-leaning proportions (Phase 19.5, HILIGHT reference). The height
   follows the card WIDTH via aspect-ratio — so it stays tall as the viewport grows
   instead of flattening into a short landscape when an old fixed max-height capped it
   on wide/2K screens. A vh cap keeps very large screens from over-scrolling. */
.pf-card .pf-card__media img { height: auto; aspect-ratio: 4 / 5; min-height: 0; max-height: 90vh; }
.pf-card--wide .pf-card__media img { height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: 90vh; }
.pf-card__meta {
    /* Image→caption stays tight; caption→next-project is the larger grid row-gap
       above (Phase 19.5), so the caption binds to its own image and has clear space
       before the next card. */
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 2rem; margin-top: clamp(6px, .7vw, 10px); font-size: 0.875rem;
}
.pf-card__id b { display: block; margin-bottom: .3rem; font-weight: 600; }
.pf-card__id span, .pf-card__cat { color: var(--muted); }
/* "All projects" sits at the right, styled as the hero CTA (Phase 17.40). */
/* ALL PROJECTS — a text CTA with a thin line running to the right edge (Phase 17),
   the same text-link principle as LET'S TALK: no filled button, no border. */
/* ALL PROJECTS — a left-aligned pill CTA (Phase 17). */
.home-featured__all { margin-top: clamp(30px, 3.5vw, 52px); text-align: left; }

/* SERVICES — one centered statement. */
.home-services { text-align: center; padding-left: var(--pad); padding-right: var(--pad); }
/* Near-full-width, matching About (Phase 17.49c). */
.home-services__inner { max-width: min(110rem, 92vw); margin: 0 auto; }
.home-services__label {
    margin: 0 0 clamp(24px, 2.6vw, 40px);
    font-size: 0.75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.home-services__title {
    font-family: var(--font-heading); font-weight: 700;
    font-size: var(--services-fs, clamp(40px, 6vw, 104px)); line-height: .98; letter-spacing: -.05em;
    text-transform: uppercase; margin: 0; color: var(--fg);
}
.home-services__subtitle {
    /* The statement/title go near-full-width, but this secondary line keeps a
       readable measure and stays centred (Phase 17.49c). */
    max-width: 48rem; margin: clamp(20px, 2.2vw, 34px) auto 0;
    font-size: clamp(20px, 2.2vw, 36px); letter-spacing: -.02em; color: var(--fg);
}

/* FOOTER — dark, four aligned columns, decorative wordmark. Overrides the base
   flex layout with a grid so the columns share one baseline (mockup). */
.site-foot {
    background: #111; border-top: none;
    font-family: var(--font-ui);
    --fg: #fff;
    --muted: rgba(255, 255, 255, .84);
    --muted-2: rgba(255, 255, 255, .45);
    --line: rgba(255, 255, 255, .12);
    padding: clamp(64px, 6vw, 88px) var(--pad) 0;
}
.site-foot__cols {
    /* Content-width columns with equal spacing between them (Phase 17.5x): four
       max-content groups distributed edge-to-edge with space-between, replacing the
       earlier fixed 25% grid so each column is only as wide as its content. */
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
    column-gap: clamp(32px, 4vw, 80px); row-gap: 2.5rem;
    padding-bottom: clamp(40px, 3.5vw, 56px);
}
.site-foot__col { flex: 0 0 auto; }
.site-foot__col--social { flex: 0 0 auto; text-align: left; }
/* The social links are the larger, dominant footer links (TFTL). */
.site-foot__col--social a { font-size: 1.5rem; margin-bottom: .35rem; }
/* Column headings removed (Phase 17.49c) — the links/spans read directly; the
   first item of every column aligns on one line (`align-items:start`). */
.site-foot__col a, .site-foot__col span { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); margin-bottom: .85rem; }
.site-foot__col a:hover { color: #fff; }
/* Follow is left-aligned within its own 25% column, like the others (Phase 17.41f). */
.site-foot__col--social a { text-decoration: underline; text-underline-offset: 5px; }
/* Contact's direct-chat actions: a permanent underline, like "Let's Talk +". */
.site-foot__col a.foot-action { margin-top: 14px; text-decoration: underline; text-underline-offset: 5px; }
/* Copyright anchored under the social group at the right (Phase 17.49f, TFTL). */
.site-foot__bottom { margin-top: 0; padding: 1.25rem 0 2rem; color: var(--muted-2); justify-content: flex-end; text-align: right; }
/* Full-width centring container; no `overflow:hidden` (Phase 17.49f) — the fit is
   correct sizing, not clipping. */
.site-foot__wordmark {
    width: 100%; padding-top: clamp(40px, 4vw, 56px);
    /* Left-aligned (Phase 19.5): the fitter trims the first glyph's side bearing so
       the visible ink of the "R" sits on the inner left edge (--pad), and scales the
       ink to reach the inner right edge. Centre alignment would re-introduce the gap. */
    text-align: left; white-space: nowrap; overflow: visible;
}
/* The intrinsic-width text the fitter measures and scales to fill the footer inner
   width (layout.php). `max(84px, 13vw)` is the no-JS fallback. */
.site-foot__wordmark-text {
    display: inline-block; white-space: nowrap;
    color: rgba(255, 255, 255, .14);
    font-family: var(--font-heading); font-weight: 700;
    font-size: max(84px, 13vw); line-height: .82; letter-spacing: -.04em;
    text-transform: uppercase;
}
/* Mobile-only footer lead-in (Phase 17, hilight.design) — hidden on desktop,
   shown in the phone media query below. */
.site-foot__intro { display: none; }
/* The single footer LET'S TALK (Phase 19.4/19.5): one compact pill inside the
   Contact column, below the address on desktop. `.site-foot__col a { display:block }`
   would otherwise stretch it to the column width, so the pill re-asserts inline-flex
   (higher specificity) to size to its content — a normal compact CTA, like ALL
   PROJECTS. On a phone the grid below spans it under the Contact | Social row. */
.site-foot__cta.cta-pill { display: inline-flex; width: auto; margin-top: 16px; }

/* Character reveal states for every [data-reveal-text] below the fold (About,
   Services, footer wordmark). The hero title's hidden state is in critical.css;
   this generic rule supplies the transition and revealed state for all of them. */
.js [data-reveal-text] .motion-char { opacity: 0; filter: blur(6px); }
/* A word is one nowrap unit (Phase 17.41f): its letters never break across lines,
   while spaces between words stay breakable — no more `inter/ior`. */
[data-reveal-text] .motion-word { display: inline-block; white-space: nowrap; }
[data-reveal-text] .motion-char {
    display: inline-block; will-change: opacity, filter;
    transition: opacity .5s ease, filter .5s ease;
}
[data-reveal-text].is-revealed .motion-char { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal-text] .motion-char { opacity: 1; filter: none; transition: none; }
}

/* Responsive folds for the redesigned homepage. Aligned to 1023 in 17.49 so the
   desktop 2-1-2 grid exists only in the fluid-desktop range (≥1024). */
@media (max-width: 1023px) {
    /* One column; a comfortable card-to-card gap for stacked cards (Phase 17.49c —
       the desktop grid gap is tight, so mobile re-sets its own). */
    .pf-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .pf-card .pf-card__media img { height: auto; aspect-ratio: 4 / 5; min-height: 0; max-height: none; }
    .pf-card--wide .pf-card__media img { aspect-ratio: 16 / 10; }
    /* Footer: two-up on tablet, social no longer pinned right (Phase 17.49d);
       reset the desktop right-alignment of social + copyright. */
    .site-foot__col { flex-basis: 40%; }
    .site-foot__col--social { margin-left: 0; text-align: left; }
    .site-foot__bottom { justify-content: flex-start; text-align: left; }
}
@media (max-width: 640px) {
    /* Mobile footer (Phase 19.5): a lead-in, then ONE row — Contact info on the left,
       the Follow links right-aligned on the right, both starting on the same top axis
       — then the compact LET'S TALK below that row. The Contact column dissolves
       (display:contents) so its lines + the button drop straight into this grid, no
       DOM moved and no second button. Studio / Expertise stay hidden. */
    .site-foot__col--studio, .site-foot__col--expertise { display: none; }
    .site-foot__intro { display: block; margin: 0 0 clamp(28px, 8vw, 44px); max-width: none; }
    /* Heading centred; description full container width in the normal muted
       contact-text colour (Phase 17). */
    .site-foot__intro h2 {
        font-family: var(--font-heading); font-weight: 700; text-transform: none; text-align: left;
        font-size: clamp(24px, 7vw, 34px); letter-spacing: -.02em; color: #fff; margin: 0 0 14px;
    }
    /* Full content width on mobile (Phase 19.2): the description spans from the
       left content padding to the right, with no narrow max-width. */
    .site-foot__intro p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; width: 100%; max-width: none; }

    .site-foot__cols {
        display: grid; grid-template-columns: 1fr auto; align-items: start;
        column-gap: clamp(20px, 6vw, 40px); row-gap: 0;
    }
    /* The Contact column becomes transparent so its lines and button are direct grid
       items, explicitly placed below. */
    .site-foot__col--contact { display: contents; }
    /* Follow on the LEFT, contact details on the RIGHT (Phase 19.7) — both on the
       same top axis, each aligned to its own outer content edge. */
    .site-foot__col--social { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; margin: 0; }
    .site-foot__contact-lines { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
    /* The single button spans the full width on the row below the Contact | Social row. */
    .site-foot__cta.cta-pill { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 18px 0 6px; }
    /* The oversized wordmark: the JS fitter fills the full inner width on the phone
       too (Phase 19.4); this stays only as the no-JS fallback. */
    .site-foot__wordmark-text { font-size: clamp(26px, 10.5vw, 80px); }
    /* Mobile section spacing + type (Phase 17.44; independent defaults 17.45): the
       `-mobile` value wins, else its OWN mobile default — never the desktop value,
       so an empty mobile field always resolves to its documented default. */
    .home-about.sec, .home-services.sec {
        padding-top: var(--sec-y-mobile, var(--sec-y-default));
        padding-bottom: var(--sec-y-mobile, var(--sec-y-default));
    }
    .home-services__title { font-size: var(--services-fs-mobile, clamp(34px, 11vw, 56px)); }
    .home-about__statement { font-size: var(--about-fs-mobile, clamp(30px, 9vw, 52px)); }
    .pf-card__meta { font-size: 12px; }
}
