/*
 * ESGA: CSS de presentación portado literalmente del mockup (mockup web/*.html,
 * bloque <style> idéntico en las siete páginas). Requisito D00: fidelidad exacta.
 * Único cambio respecto al original: los tokens de color de :root leen el Global
 * Color de Elementor equivalente (--e-global-color-esga*) con el valor original
 * como respaldo. Las adaptaciones de selectores al DOM de Elementor se añaden en
 * esga-elementor.css, no aquí.
 */
  :root{
    --ink: var(--e-global-color-esgaink, #231F20);
    --ink-soft: var(--e-global-color-esgainksoft, rgba(35,31,32,.62));
    --ink-faint: var(--e-global-color-esgainkfaint, rgba(35,31,32,.38));
    --garnet: var(--e-global-color-esgagarnet, #761519);
    --garnet-deep: var(--e-global-color-esgagarnetdeep, #3A0809);
    --garnet-deep2: var(--e-global-color-esgagarnetdeep2, #461417);
    --stone: var(--e-global-color-esgastone, #BABBB9);
    --stone-warm: var(--e-global-color-esgastonewarm, #4B4A48);
    --gold: var(--e-global-color-esgagold, #FCC817);
    --citrus: var(--e-global-color-esgacitrus, #F5F01D);
    --paper: var(--e-global-color-esgapaper, #F7F4EE);
    --paper-alt: var(--e-global-color-esgapaperalt, #EEE8DC);
    --white: var(--e-global-color-esgawhite, #FFFFFF);
    --line: var(--e-global-color-esgaline, rgba(35,31,32,.13));
    --line-soft: var(--e-global-color-esgalinesoft, rgba(35,31,32,.08));
    --ease: cubic-bezier(.22,.61,.36,1);
    /* ============ MOTION SYSTEM (Fase 21 — reinterpretación premium) ============
       Named, not invented: these match the values already in use across the
       site (hover states cluster at .25–.4s, image-hover-scale at 1.1s, the
       GSAP scroll-reveal at 1s) so new motion sits on the same footing as
       what's already tuned, instead of introducing a parallel set of numbers.
       FAST = microinteractions (hover, underline, state change).
       NORMAL = an element entering view (text/image scroll-reveal).
       SLOW = scene-level movement (image parallax/hover-scale, panel open).
       CINEMATIC = the entry loader's own register — its choreography is a
       multi-stage timeline (see below), not a single duration; kept here as
       a label so new full-screen transitions know which register to match. */
    --dur-fast: .3s;
    --dur-normal: 1s;
    --dur-slow: 1.1s;
    --dur-cinematic: 2.2s;
  }
  *{ box-sizing:border-box; }
  body{
    background: var(--paper);
    color: var(--ink);
    font-family:'Work Sans', system-ui, sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden; /* safety net for .bleed-out's 100vw calc */
  }
  ::selection{ background:var(--garnet); color:var(--white); }
  img{ display:block; max-width:100%; }
  a{ color:inherit; }
  .serif{ font-family:'Marcellus', Georgia, serif; font-weight:400; }
  .eyebrow{
    font-size:11px; letter-spacing:.16em; text-transform:uppercase;
    color: var(--ink-soft); font-weight:600;
  }
  .wrap{ max-width:1180px; margin-inline:auto; padding-inline:28px; }
  @media (max-width:640px){ .wrap{ padding-inline:20px; } }

  /* ---- bleed-out: break an element out to full viewport width from inside
     a normal .wrap column — same idea as the standalone .break-bleed
     sections, usable mid-column so a render can go edge-to-edge without
     restructuring the page into a new top-level section. Standard
     negative-margin technique; body gets overflow-x:hidden below as the
     usual safety net for the vw/scrollbar rounding it can introduce. */
  .bleed-out{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }

  /* ---------- reduced motion baseline: everything visible, no reveal choreography ---------- */
  html.no-motion .reveal{ opacity:1 !important; transform:none !important; clip-path:none !important; }
  html.no-motion #loader{ display:none !important; }
  .reveal{ will-change:transform,opacity; }

  /* ============ LOADER MARK CHOREOGRAPHY (ported from Fase 06 approved animation) ============
     Timeline stretched from the original Fase 06 pacing, then dialed back
     down in stages — 5s, then 4.5s, now 4.2s (delays and durations scaled
     together, so every stage stays in sync) — the brief asks for the
     entry to feel unhurried, a moment the visitor is given to arrive
     rather than a loading screen to get through, so the holds between
     stages stay longer than the individual transitions themselves. */
  .grpE{ animation: splitE 0.63s cubic-bezier(.22,.61,.36,1) both; animation-delay: 3.528s; }
    .grpS{ animation: splitS 0.63s cubic-bezier(.22,.61,.36,1) both; animation-delay: 3.528s; }
    @keyframes splitE{ from{ transform:translateX(40px); } to{ transform:translateX(0); } }
    @keyframes splitS{ from{ transform:translateX(-40px); } to{ transform:translateX(0); } }

    /* stage 1→2: "ESGA ESTUDIO" holds, then "tudio"/"ga" drop out, leaving only
       the two "ES" — one per word — sitting in their white box */
    .esTudioGa{ animation: esTudioGaOut 0.504s ease forwards; animation-delay: 1.26s; }
    @keyframes esTudioGaOut{ to{ opacity:0; } }

    /* stage 2→3: the box the two "ES" sit in fades away as they start
       travelling toward the centre of the frame */
    .esBox{ animation: esBoxOut 0.336s ease forwards; animation-delay: 2.184s; }
    @keyframes esBoxOut{ to{ opacity:0; } }

    /* the two "ES" — one per word — glide together toward the exact spot
       (and scale) where the real "E"/"S" glyphs already sit below, so the
       merge lands ON that baseline rather than at the frame's visual
       centre — otherwise the crossfade to the real glyphs would read as the
       letters jumping to a different line/height. Reads as merging into one
       enlarged "ES" that is already sitting where the final mark will be.
       Each duplicate carries two overlaid copies of its letters: a cutout
       copy (matches the box while still sitting inside it) and a solid-ink
       copy (needed the instant it is free of the box, since the cutout
       colour is invisible on its own against the panel background) — that
       crossfade happens while the group is already moving, never as a
       static swap. Once merged, both groups quietly fade out again exactly
       as the real brand-mark glyphs fade/split in below, so nothing is ever
       seen sitting fully opaque on top of something else (same anti-overlap
       technique as the split itself), and — critically — nothing shifts
       vertically when it happens. */
    .esTop, .esBottom{
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation:
        esConverge 0.672s cubic-bezier(.22,.61,.36,1) 2.184s forwards,
        esGroupOut 0.546s ease 3.528s forwards;
    }
    @keyframes esConverge{ to{ transform: translate(3.56px, 49.03px) scale(2.3); } }
    .esBottom{ animation-name: esConvergeBottom, esGroupOut; }
    @keyframes esConvergeBottom{ to{ transform: translate(84.33px, -1.48px) scale(2.3); } }
    @keyframes esGroupOut{ to{ opacity:0; } }

    .esCutout{ animation: esCutoutOut 0.336s ease forwards; animation-delay: 2.184s; }
    @keyframes esCutoutOut{ to{ opacity:0; } }

    .esInk{ opacity:0; animation: esInkIn 0.336s ease forwards; animation-delay: 2.184s; }
    @keyframes esInkIn{ to{ opacity:1; } }

    /* stage 3→4: once the merge settles, the yellow "[2]" fades in on top —
       "ES" becomes "ES²" — before the whole converged mark hands off to the
       real glyphs. */
    .esBracket{
      opacity:0;
      animation:
        esBracketIn 0.336s ease 3.024s forwards,
        esBracketOut 0.546s ease 3.528s forwards;
    }
    @keyframes esBracketIn{ to{ opacity:1; } }
    @keyframes esBracketOut{ to{ opacity:0; } }

    /* stage 4→5: crossfade to the real glyphs, which immediately split apart
       (see splitE/splitS above) — begins the same instant the converged "ES²"
       starts fading out. */
    .finalMark{
      opacity:0;
      transform-box: fill-box;
      transform-origin: 50% 50%;
      animation: wordmarkIn 0.672s ease forwards;
      animation-delay: 3.528s;
    }
    @keyframes wordmarkIn{ from{ opacity:0; transform: scale(0.88); } to{ opacity:1; transform: scale(1); } }


  html.no-motion .esBox, html.no-motion .esTop, html.no-motion .esBottom, html.no-motion .esBracket, html.no-motion .esTudioGa, html.no-motion .finalMark, html.no-motion .grpE, html.no-motion .grpS{ animation-duration:0.001s !important; animation-delay:0s !important; }

  /* ============ LOADER (reused brand-mark sequence, Fase 06) ============ */
  #loader{
    position:fixed; inset:0; z-index:200;
    background: var(--garnet-deep);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
  }
  #loader svg{ width:min(74vw, 420px); height:auto; }
  #loader .skip{
    position:absolute; bottom:28px; right:28px;
    font-size:11px; letter-spacing:.1em; text-transform:uppercase;
    color: rgba(246,237,234,.55); font-family:'Work Sans',sans-serif;
  }
  #loader.hide{ animation: loaderOut .6s var(--ease) forwards; pointer-events:none; }
  @keyframes loaderOut{ to{ opacity:0; visibility:hidden; } }

  /* ============ NAV ============ */
  #siteNav{
    position:fixed; top:0; left:0; right:0; z-index:160;
    padding: env(safe-area-inset-top,0px) 0 0;
    transition: background .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
  }
  #siteNav.solid{ background: rgba(247,244,238,.92); backdrop-filter: blur(6px); border-color: var(--line); }
  /* ---- on-dark state: the hero is now a full-bleed painting, so the nav
     starts light-on-dark and switches to its normal dark-on-paper reading
     once .solid takes over (scrollY > 40px, i.e. as soon as the hero is
     mostly scrolled past). Scoped to #siteNav only — the footer's own
     .word-mark instance keeps its normal dark fill untouched. ---- */
  /* moved: see EXTRA_CSS, now scoped to #siteNav:has(~ #hero) */
  /* deliberately NOT `.wrap` — same reasoning as the hero text block: the
     client wants the nav's own edges (the ES² mark, the Contacto button)
     pinned to the real screen edges, not centered inside the 1180px
     reading column. Own padding-inline instead, matching the hero's edge
     inset so nav and hero read as one consistent frame. */
  #siteNav .bar{
    display:flex; align-items:center; justify-content:space-between; padding-block:18px;
    padding-inline:24px; width:100%;
  }
  @media (max-width:640px){ #siteNav .bar{ padding-inline:18px; } }
  .brand-mark{ display:flex; align-items:center; gap:11px; }
  .word-mark{ height:22px; width:auto; flex:none; }
  .word-mark use{ fill:#000; }
  .word-mark .mark-bracket use{ fill:#480D16; }
  footer .brand-mark{ margin-bottom:14px; }
  #siteNav ul{ list-style:none; display:flex; gap:34px; margin:0; padding:0; }
  @media (max-width:900px){ #siteNav ul{ display:none; } }
  #siteNav a.link{
    font-size:13px; letter-spacing:.03em; text-decoration:none; color:var(--ink);
    position:relative; padding-bottom:3px;
  }
  #siteNav a.link::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
    background:var(--garnet); transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease);
  }
  #siteNav a.link:hover::after{ transform:scaleX(1); }
  .btn-contact{
    font-family:'Work Sans',sans-serif; font-size:13px; font-weight:600;
    background:var(--gold); color:var(--garnet-deep); text-decoration:none;
    padding:10px 20px; border-radius:1px; letter-spacing:.02em;
    transition: filter .25s;
  }
  .btn-contact:hover{ filter:brightness(1.06); }

  /* ---- mobile nav: hamburger toggle + fullscreen panel, ≤900px only.
     Previously the nav <ul> simply vanished at 900px with nothing to
     replace it — no way to reach Estudio/Qué Hacemos/Wellness/Diario
     on phone or tablet except scrolling. This restores parity. */
  .nav-actions{ display:flex; align-items:center; gap:18px; }
  /* text-only "Menú" trigger (vitaarchitecture.com pattern) rather than a
     hamburger icon — matches the understated text-link register of the rest
     of #siteNav's own links. */
  .nav-toggle{
    display:none; padding:0; background:none; border:none; cursor:pointer;
    font-size:13px; letter-spacing:.03em; color:var(--ink); font-family:'Work Sans',sans-serif;
  }
  @media (max-width:900px){ .nav-toggle{ display:block; } }
  .mobile-nav{
    position:fixed; inset:0; z-index:150; background:var(--paper);
    display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
    gap:8px; padding:calc(96px + env(safe-area-inset-top,0px)) 32px calc(48px + env(safe-area-inset-bottom,0px));
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .mobile-nav.is-open{ opacity:1; visibility:visible; pointer-events:auto; transition:opacity .4s var(--ease); }
  html.no-motion .mobile-nav{ transition:none; }
  .mobile-nav ul{ list-style:none; margin:0 0 40px; padding:0; display:flex; flex-direction:column; gap:4px; }
  .mobile-nav a.link{
    font-family:'Marcellus',serif; font-size:clamp(30px,9vw,42px); font-weight:400;
    text-decoration:none; color:var(--ink); line-height:1.5;
  }
  .mobile-nav a.link:active{ color:var(--garnet); }
  html.nav-open{ overflow:hidden; }

  /* ============ garnet colour-block behind text (real brand device) ============ */
  .block-word{ position:relative; display:inline-block; color:var(--white); padding:.02em .22em; }
  .block-word .fill{
    position:absolute; inset:0; background:var(--garnet); z-index:-1;
    transform-origin:left; transform:scaleX(0);
  }
  .reveal.in .block-word .fill{ transform:scaleX(1); transition:transform .9s var(--ease) .15s; }
  html.no-motion .block-word .fill{ transform:scaleX(1) !important; }
  .tag{
    display:inline-flex; align-items:center; gap:8px;
    font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  }
  .tag::before{ content:""; width:14px; height:2px; background:var(--garnet); display:inline-block; }

  /* ============ HERO — reinterpreted again at the client's request, this time
     after an editorial-portfolio reference: one full-bleed image (here, an
     original painting, not an ESGA-commissioned project) with a large,
     asymmetric two-line serif headline set over it. The previous round's
     tilted-photo-card device is retired entirely — this is a different,
     more editorial register: image fills the whole opening screen, headline
     reads big and confident across it, a small eyebrow label anchors the
     top-left, and a quiet caption at the bottom-left gives the painting's
     authorship (the same convention already used for every academic/personal
     image elsewhere on this page: "— Pablo Portela"). ============ */
  header.hero.hero-full{
    position:relative; overflow:hidden;
    height:100vh; height:100svh;
  }
  .hero-bg{ position:absolute; inset:0; z-index:0; }
  .hero-bg img{ width:100%; height:100%; object-fit:cover; object-position:center 42%; display:block; }
  .hero-veil{
    position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(180deg, rgba(24,14,11,.6) 0%, rgba(24,14,11,.04) 24%, rgba(24,14,11,.08) 56%, rgba(24,14,11,.64) 100%);
  }
  /* deliberately NOT `.wrap` — the brief asked for the hero text framed to
     the actual screen edges, not centered inside the site's 1180px reading
     column like every other section; this block spans the full width of
     the hero and insets only by its own small edge padding, so "Espacio"
     and "Experiencia" reach toward the real left/right edges of the
     viewport rather than an invisible centered limit. */
  .hero-full-inner{
    position:relative; z-index:2; height:100%; width:100%;
    display:flex; flex-direction:column;
    padding: calc(132px + env(safe-area-inset-top,0px)) 24px calc(84px + env(safe-area-inset-bottom,0px));
  }
  @media (max-width:640px){ .hero-full-inner{ padding-inline:18px; } }
  .hero-eyebrow{ color:var(--paper); }
  .hero-eyebrow::before{ background:var(--gold); }
  .hero-display{
    display:flex; flex-direction:column; flex:1; justify-content:space-between; margin:0;
  }
  .hd-line{
    display:block; color:var(--paper); font-weight:400; letter-spacing:-.01em;
    text-shadow:0 4px 40px rgba(20,10,8,.35);
  }
  .hd-top{ font-size:clamp(40px,7.2vw,124px); line-height:.95; text-align:right; margin-top:18px; }
  .hd-bottom{ font-size:clamp(58px,11.4vw,224px); line-height:.86; text-align:left; }
  .hero-cap{
    position:absolute; left:18px; bottom:16px; z-index:2; color:var(--white);
    font-size:11px; font-style:italic; letter-spacing:.01em; max-width:80%;
    text-shadow:0 1px 6px rgba(0,0,0,.5);
  }

  .hero-below{ text-align:center; padding-top:56px; }
  .hero-alt{ font-size:15px; color:var(--ink-soft); max-width:44ch; margin:0 auto; }
  .scroll-cue{
    display:flex; align-items:center; justify-content:center; gap:10px;
    font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint);
    margin:40px auto 0; width:max-content;
  }
  .scroll-cue .line{ width:1px; height:34px; background:var(--ink-faint); position:relative; overflow:hidden; }
  .scroll-cue .line::after{
    content:""; position:absolute; top:-100%; left:0; width:100%; height:100%;
    background:var(--garnet); animation: cueDrop 1.8s ease-in-out infinite;
  }
  @keyframes cueDrop{ 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }
  html.no-motion .scroll-cue .line::after{ animation:none; top:0; }

  /* ============ SECTION shell ============ */
  section{ padding-block: 118px; position:relative; }
  @media (max-width:640px){ section{ padding-block:76px; } }
  section.alt{ background:var(--paper-alt); }
  .section-head{ max-width:640px; margin-bottom:54px; }
  .section-head h2{ font-size:clamp(28px,3.6vw,44px); margin:14px 0 0; line-height:1.08; }

  /* ============ DECLARACIÓN ============ */
  .declare{ text-align:center; }
  .declare blockquote{
    font-family:'Marcellus', serif; font-size:clamp(26px,3.6vw,40px); line-height:1.3;
    max-width:820px; margin:0 auto; color:var(--ink);
  }
  .declare-sub{
    font-size:clamp(15px,1.6vw,17px); line-height:1.6; color:var(--ink-soft);
    max-width:52ch; margin:18px auto 0;
  }
  /* ============ SCOPE LADDER (Córdoba → Andalusia → Spain → the world) ============ */
  .scope-ladder{
    display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center;
    gap:9px 13px; margin:34px auto 0; max-width:640px;
  }
  .scope-step{
    font-family:'Marcellus',serif; font-size:15px; letter-spacing:.02em; color:var(--ink);
  }
  .scope-step.is-next{ color:var(--ink-faint); font-style:italic; }
  .scope-sep{ color:var(--ink-faint); font-size:12px; }

  /* ============ FILOSOFÍA ============ */
  .phil-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; align-items:center; }
  @media (max-width:900px){ .phil-grid{ grid-template-columns:1fr; gap:32px; } }
  .phil-grid.rev{ direction:rtl; }
  .phil-grid.rev > *{ direction:ltr; }
  .phil-img{ aspect-ratio:4/5; overflow:hidden; position:relative; background:var(--stone-warm); }
  .phil-img img{ width:100%; height:100%; object-fit:cover; }
  .phil-img .hero-cap{ }
  .phil-copy h2{ font-size:clamp(30px,4vw,46px); margin:14px 0 22px; line-height:1.05; }
  .phil-copy p.lede{ font-size:16px; line-height:1.65; color:var(--ink-soft); max-width:46ch; margin:0 0 30px; }
  .pillars{ display:flex; flex-wrap:wrap; gap:10px 0; list-style:none; margin:0; padding:0; }
  .pillars li{
    font-size:13px; letter-spacing:.04em; padding:6px 16px; border:1px solid var(--line);
    margin-right:-1px; margin-bottom:-1px;
  }

  /* ============ CINCO DISCIPLINAS (chain, not a row of icons — see brief:
     "evitar presentar cinco iconos... hacerlo narrativamente") ============ */
  .chain-wrap{ margin-top:88px; }
  .chain-head{ max-width:640px; margin-bottom:6px; }
  .chain-head .lede{ font-size:16px; line-height:1.65; color:var(--ink-soft); max-width:52ch; margin:14px 0 0; }
  .discipline-chain{
    list-style:none; margin:46px 0 0; padding:0; border-top:1px solid var(--line);
  }
  .discipline-row{
    display:grid; grid-template-columns:44px 150px 1fr; gap:8px 32px; align-items:baseline;
    padding-block:36px; border-bottom:1px solid var(--line);
  }
  @media (max-width:760px){
    .discipline-row{ grid-template-columns:32px 1fr; gap:6px 16px; padding-block:28px; }
    .discipline-row .d-body{ grid-column:1 / -1; margin-top:6px; }
  }
  .d-index{
    font-family:'Marcellus',serif; font-size:13px; color:var(--ink-faint); letter-spacing:.02em;
    padding-top:.3em;
  }
  .d-en{
    font-size:clamp(20px,2.2vw,26px); color:var(--garnet); line-height:1.1;
  }
  .d-body h3{ font-size:19px; margin:0 0 4px; }
  .d-tagline{
    font-family:'Marcellus',serif; font-style:italic; font-size:14px; color:var(--ink-soft);
    margin:0 0 10px;
  }
  .d-desc{ font-size:14px; line-height:1.65; color:var(--ink-soft); margin:0; max-width:56ch; }
  .chain-close{
    font-size:clamp(20px,2.4vw,28px); text-align:center; color:var(--ink);
    margin:60px 0 0;
  }

  /* ============ ES.[2] — fusion moment: the mark resolves the five
     disciplines, then the ² itself is unpacked as ESGA's brand language —
     declaration → equation → vocabulary → convergence → the "elevar" chain
     → manifesto tagline. Long-form on purpose (this is the brand's own
     explanation of its symbol), so each movement is separated by generous
     space and a thin rule, never stacked as one continuous block. ============ */
  /* padding-top pulled in well below the section default (and below its own
     previous value): .fusion-lead ("ES² no es únicamente un nombre…") reads
     as a direct continuation of the line that closes the section above it,
     not the start of an unrelated new topic, so it needs to sit close to
     it rather than at the standard full section-break distance. */
  .mark-fusion{ text-align:center; padding-top:56px; padding-bottom:100px; }
  @media (max-width:640px){ .mark-fusion{ padding-top:34px; padding-bottom:64px; } }
  .mark-fusion sup{ vertical-align:super; line-height:0; }

  /* ---- movement 1 — the declaration, ahead of the mark ---- */
  .fusion-open{ max-width:600px; margin:0 auto 56px; }
  .fusion-lead{
    font-family:'Marcellus',serif; font-style:italic; font-size:clamp(19px,2.2vw,24px);
    color:var(--ink); line-height:1.4; margin:0 0 18px;
  }
  .fusion-lead sup{ font-size:.7em; }
  .fusion-open p:last-child{ font-size:14px; color:var(--ink-faint); line-height:1.75; margin:0; }

  /* ---- the mark itself: unchanged centerpiece ---- */
  .fusion-mark{ width:clamp(150px,18vw,220px); height:auto; margin:0 auto; display:block; }
  .fusion-mark use{ fill:var(--ink); }
  .fusion-mark .mark-bracket use{ fill:var(--garnet-deep2); }
  .fusion-statement{
    font-size:clamp(26px,3.6vw,42px); line-height:1.2; margin:38px 0 0; color:var(--ink);
  }
  .fusion-close{
    font-family:'Marcellus',serif; font-style:italic; font-size:clamp(15px,1.6vw,18px);
    color:var(--ink-soft); margin:20px 0 0;
  }
  .layer-op{ color:var(--garnet); font-weight:600; padding:0 1px; }

  /* ---- movement 2 — the equation, then the punchline it earns ---- */
  .fusion-equation-block{
    max-width:560px; margin:56px auto 0; padding-top:42px; border-top:1px solid var(--line-soft);
  }
  .fusion-equation{
    font-family:'Marcellus',serif; font-size:clamp(22px,3vw,30px); color:var(--ink); margin:0;
  }
  .fusion-equation sup{ color:var(--garnet); font-size:.6em; }
  .fusion-equation-note{
    font-size:12.5px; color:var(--ink-faint); line-height:1.6; max-width:42ch; margin:14px auto 0;
  }
  .fusion-punch{
    font-family:'Marcellus',serif; font-style:italic; font-size:clamp(17px,2vw,21px);
    color:var(--ink-soft); margin:30px 0 0; line-height:1.5;
  }

  /* ---- movement 3 — the six-word vocabulary ES.² gives the brand ---- */
  .vocab-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:32px 40px;
    max-width:820px; margin:60px auto 0; padding-top:42px; border-top:1px solid var(--line-soft);
    text-align:center;
  }
  @media (max-width:760px){
    .vocab-grid{ grid-template-columns:repeat(2,1fr); gap:30px 28px; max-width:460px; }
  }
  @media (max-width:480px){
    .vocab-grid{ grid-template-columns:1fr; max-width:300px; }
  }
  .vocab-item{ display:flex; flex-direction:column; gap:6px; }
  .vocab-word{ font-family:'Marcellus',serif; font-size:16px; letter-spacing:.02em; color:var(--ink); }
  .vocab-word sup{ color:var(--garnet); font-size:.62em; margin-left:1px; }
  .vocab-tag{ font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--garnet); }
  .vocab-def{ font-size:12.5px; color:var(--ink-faint); line-height:1.5; }

  /* ---- movement 4 — convergence: deliberately echoes the hero statement ---- */
  .fusion-converge{ max-width:640px; margin:64px auto 0; }
  .fusion-converge-intro{ font-size:12.5px; letter-spacing:.05em; color:var(--ink-faint); margin:0 0 16px; }
  .fusion-converge-statement{
    font-family:'Marcellus',serif; font-size:clamp(23px,3vw,34px); line-height:1.3;
    color:var(--ink); margin:0;
  }
  .fusion-converge-statement sup{ color:var(--garnet); font-size:.6em; }

  /* ---- movement 5 — "elevar": a literal ascending chain, one of ESGA's
     memorable devices. Each rung grows a touch in size and weight so the
     type itself performs the idea, closing on LIFE² as the tallest step. ---- */
  .elevate{
    max-width:520px; margin:70px auto 0; padding-top:42px; border-top:1px solid var(--line-soft);
  }
  .elevate-intro{ font-size:13.5px; color:var(--ink-faint); line-height:1.7; margin:0 0 34px; }
  .elevate-intro strong{
    display:block; font-family:'Marcellus',serif; font-style:italic; font-weight:400;
    font-size:17px; color:var(--ink); margin-bottom:8px;
  }
  .elevate-chain{
    list-style:none; margin:0; padding:0; display:flex; flex-direction:column;
    align-items:center; gap:11px;
  }
  .elevate-chain li{ font-size:12.5px; color:var(--ink-faint); line-height:1.4; }
  .elevate-chain li:nth-child(2){ font-size:13.5px; opacity:.88; }
  .elevate-chain li:nth-child(3){ font-size:14.5px; color:var(--ink-soft); }
  .elevate-chain li:nth-child(4){ font-size:16px; color:var(--ink-soft); }
  .elevate-chain li:nth-child(5){ font-size:18px; font-weight:600; color:var(--ink); }
  .elevate-arrow{
    font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--garnet);
    margin:24px 0 10px;
  }
  .elevate-payoff{
    font-family:'Marcellus',serif; font-size:clamp(28px,4vw,44px); color:var(--ink); margin:0;
  }
  .elevate-payoff sup{ color:var(--garnet); font-size:.6em; }
  .elevate-payoff-sub{ font-size:13px; color:var(--ink-faint); margin:10px 0 0; }

  /* ---- movement 6 — the manifesto tagline: explains the symbol without
     explaining the symbol ---- */
  .fusion-tagline{
    max-width:640px; margin:70px auto 0; padding-top:42px; border-top:1px solid var(--line-soft);
  }
  .fusion-tagline-en{
    font-size:clamp(15px,1.8vw,19px); letter-spacing:.14em; text-transform:uppercase;
    color:var(--ink); margin:0;
  }
  .fusion-tagline-es{
    font-family:'Marcellus',serif; font-style:italic; font-size:13.5px;
    color:var(--ink-faint); margin:12px 0 0;
  }

  /* ---- section-bridge: one quiet threshold line carrying the "elevate,
     don't replace" idea from the ES.² concept into Origen's own founding
     story — the concept and the 30-year foundation are the same idea. ---- */
  .section-bridge{
    font-style:italic; color:var(--ink-faint); font-size:clamp(14px,1.5vw,16px);
    max-width:50ch; margin:0 0 50px; line-height:1.6;
  }

  /* ============ IDENTITY / BRAND SUPPORT ============ */
  /* One composed object, not a row of thumbnails: an asymmetric stage, exactly like a
     product family shot. The hand+card photograph leads as the large frame; the
     credential now carries its own dark marble ground straight from the client's
     mockup (the object was re-shot with real breathing room around it, so it no
     longer needs a synthetic backdrop) and reads as the composition's tall side
     panel. Every size here is a definite CSS Grid track, never an image's own
     intrinsic width — nothing can push past its column, at any viewport, by
     construction (no vw-guessing, unlike the old flex row). */
  .identity-head{ max-width:640px; margin-bottom:60px; }
  .identity-head h2{ font-size:clamp(28px,3.6vw,44px); margin:14px 0 0; line-height:1.08; }
  .identity-head p{ font-size:15px; color:var(--ink-soft); max-width:48ch; line-height:1.65; margin:18px 0 0; }
  /* the corporate slogan — set apart from the descriptive copy above it as its own
     short editorial line, not another sentence of the paragraph: a thin gold rule
     stands in for a quotation mark, Marcellus italic carries the register shift. */
  .identity-slogan{
    font-family:'Marcellus', serif; font-style:italic; font-size:clamp(17px,1.7vw,21px);
    color:var(--ink); line-height:1.5; max-width:44ch;
    margin:22px 0 0; padding-top:20px; position:relative;
  }
  .identity-slogan::before{
    content:''; position:absolute; top:0; left:0; width:34px; height:1px;
    background:var(--gold);
  }

  .identity-bento{
    display:grid;
    grid-template-columns:repeat(12,1fr);
    align-items:start; /* nothing stretches by default — each tile keeps its own
                           aspect-ratio height; only the stage figure opts back in */
    gap:clamp(14px,1.8vw,26px);
  }
  .id-figure{ margin:0; min-width:0; min-height:0; }
  .id-tile{
    position:relative; overflow:hidden; border-radius:2px;
    background:var(--stone-warm); box-shadow:0 30px 60px -34px rgba(35,31,32,.4);
  }
  .id-tile img{
    width:100%; height:100%; object-fit:cover; display:block;
    transition:transform 1.1s var(--ease);
  }
  .id-figure:hover .id-tile img{ transform:scale(1.035); }

  /* Row 1 — the lead photograph and the credential's own vertical stage, side by
     side. Both are now real photography (the credential ships with its own dark
     marble ground), so both simply cover-fit their tile like every other image
     here — no more flex-contain, no more clamp-guessed height. They are
     deliberately two different shapes (landscape / tall portrait): hero sets
     row 1's height via its own 3:2 ratio, stage stretches to match it exactly
     (align-self:stretch), cropping in slightly rather than leaving a gap under
     the shorter one — a staggered pairing on purpose, not a mismatch. Stage
     stays a single-row item — it does NOT span into row 2, which is what used
     to leave only a sliver of free columns for row 2's three tiles and forced
     two of them onto a phantom third row; row 2 below is a fully independent,
     full-width strip. */
  /* align-self:stretch fills row 1's resolved height; the figure is a column
     flex box so the tile only claims the space left over ABOVE the caption
     (flex:1, min-height:0) — never the caption's own room. */
  .id-figure--hero, .id-figure--stage{
    align-self:stretch; display:flex; flex-direction:column; min-height:0;
  }
  .id-figure--hero{ grid-column:1 / span 7; }
  .id-tile--hero{ flex:1 1 auto; min-height:0; aspect-ratio:3/2; }

  .id-figure--stage{ grid-column:8 / span 5; }
  .id-tile--stage{ flex:1 1 auto; min-height:0; aspect-ratio:3/4; }

  /* Row 2 — wearable + the two pattern studies, own full-width strip, one shared
     ratio so the three sit level with each other without any manual height math */
  .id-figure--wrist{ grid-column:1 / span 4; }
  .id-figure--pattern{ grid-column:span 4; }
  .id-tile--wrist, .id-tile--pattern{ aspect-ratio:4/5; }

  @media (max-width:820px){
    .identity-bento{ grid-template-columns:1fr; gap:30px; }
    .id-figure--hero, .id-figure--stage, .id-figure--wrist, .id-figure--pattern{
      grid-column:1; grid-row:auto; align-self:auto;
    }
    /* hero is a landscape photograph (hand + card) — a wider mobile crop suits it.
       stage is the credential itself, shot tall (lanyard + badge, 3:4 natively) —
       keep its own ratio here too, or object-fit:cover crops the badge off the
       bottom of the frame. Matching the tile ratio to the image's real ratio
       means cover and contain agree: the full credential always shows. */
    .id-tile--hero{ flex:none; aspect-ratio:4/3; }
    .id-tile--stage{ flex:none; aspect-ratio:3/4; }
    .id-tile--wrist, .id-tile--pattern{ aspect-ratio:4/5; }
  }

  .id-figure figcaption{
    display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 10px; margin-top:14px;
    font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-faint);
  }
  .id-figure figcaption .idx{
    font-family:'Marcellus',serif; font-size:13px; letter-spacing:0;
    text-transform:none; color:var(--ink-soft);
  }

  /* ============ FULL-BLEED EDITORIAL BREAK ============ */
  section.break-bleed{ padding-block:0; height:82vh; min-height:440px; max-height:780px; }
  .break-bleed{ position:relative; overflow:hidden; background:var(--stone-warm); }
  .break-bleed img{ width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.04); }

  /* ============ WHAT WE DO ============ */
  .service-row{
    display:grid; grid-template-columns: 140px 1fr auto; gap:24px; align-items:baseline;
    padding-block:26px; border-top:1px solid var(--line);
  }
  .service-row:last-child{ border-bottom:1px solid var(--line); }
  @media (max-width:640px){ .service-row{ grid-template-columns:1fr; gap:8px; } }
  .service-row .tag{ align-self:start; }
  .service-row h3{ font-family:'Marcellus',serif; font-weight:400; font-size:22px; margin:0 0 6px; }
  .service-row p{ font-size:14px; color:var(--ink-soft); margin:0; max-width:44ch; }
  .service-row a, .service-toggle{
    font:inherit; font-size:13px; text-decoration:none; white-space:nowrap;
    border-bottom:1px solid var(--ink-faint); padding-bottom:2px;
    transition:border-color .25s, color .25s;
  }
  .service-toggle{ background:none; border-top:none; border-left:none; border-right:none; padding:0 0 2px; cursor:pointer; align-self:start; color:inherit; }
  .service-row a:hover, .service-toggle:hover, .service-toggle[aria-expanded="true"]{ color:var(--garnet); border-color:var(--garnet); }
  .service-row--eng p{ max-width:52ch; }
  .service-row--eng .eng-tags{ margin-top:16px; }

  /* click-to-reveal scope summary — animated with a JS-measured height (scrollHeight
     → 'auto' once open) rather than a pure-CSS grid-rows tween: some mobile
     WebKit builds fail to resolve fr-unit row tracks against the row's real
     content height, which was clipping the summary text partway through on
     phones. Measuring in JS is slightly less elegant but works everywhere. */
  .service-detail-wrap{
    height:0; overflow:hidden; transition:height .5s var(--ease);
  }
  .service-detail p{
    font-size:14px; line-height:1.7; color:var(--ink-soft); max-width:56ch;
    margin:0; padding-top:20px; margin-top:18px; border-top:1px solid var(--line);
  }
  @media (prefers-reduced-motion: reduce){ .service-detail-wrap{ transition:none; } }

  /* Engineering case list — real, completed commissions cited by name and
     scope (sourced from the studio's own project records), standing in for
     the photography this discipline doesn't have yet: no renders, since
     these were technical/industrial jobs never shot for a portfolio, so the
     specificity of what was calculated and where does the work instead. */
  .eng-cases{ margin-top:28px; }
  .eng-cases-label{
    display:block; font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
    color:var(--garnet); margin-bottom:16px;
  }
  .eng-case-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:15px; }
  .eng-case-list li{
    display:grid; grid-template-columns:172px 1fr; gap:18px; align-items:baseline;
  }
  @media (max-width:640px){ .eng-case-list li{ grid-template-columns:1fr; gap:6px; } }
  .eng-case-kind{ font-size:11px; letter-spacing:.03em; color:var(--ink-faint); }
  .eng-case-body{ font-size:13.5px; line-height:1.65; color:var(--ink-soft); }

  /* ============ ORIGEN — the real founders, no photos (none supplied),
     no invented biography beyond what the studio's own prior site states.
     A generic .lede rule under .section-head, reused from the .phil-copy
     one so this reads consistently with the rest of the page. */
  .section-head p.lede{ font-size:16px; line-height:1.65; color:var(--ink-soft); max-width:60ch; margin:14px 0 0; }
  .origin-founders{
    display:grid; grid-template-columns:1fr 1fr; gap:48px;
    margin-top:56px; padding-top:44px; border-top:1px solid var(--line);
  }
  .origin-founders--3{ grid-template-columns:repeat(3,1fr); }
  @media (max-width:900px){ .origin-founders--3{ grid-template-columns:1fr 1fr; } }
  @media (max-width:640px){ .origin-founders{ grid-template-columns:1fr; gap:36px; } }
  /* the founders grid already carries its own top divider/spacing (line 461),
     so stacking the full generic section bottom-padding on top of that read
     as a dead gap before "Qué Hacemos" — dropped for this section so the
     gap to the next section is just the next section's own top padding,
     matching the site's normal single-section rhythm instead of doubling it. */
  /* padding-top pulled in the same way as .mark-fusion above: .section-bridge
     ("Elevar lo que ya existe…") continues the thought that closes the
     previous section, so it needs to sit close to that line rather than at
     the standard full section-break distance. */
  #origen{ padding-bottom:0; padding-top:56px; }
  @media (max-width:640px){ #origen{ padding-top:34px; } }
  .origin-role{
    display:block; font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
    color:var(--garnet); margin-bottom:10px;
  }
  .origin-founder h3{ font-family:'Marcellus',serif; font-weight:400; font-size:22px; margin:0 0 8px; }
  .origin-founder p{ font-size:14px; line-height:1.65; color:var(--ink-soft); margin:0; max-width:38ch; }

  /* ---- Arquitectura: clasificación con ejemplos de trabajo académico ---- */
  .proj-examples{ margin-top:76px; padding-top:56px; border-top:1px solid var(--line); }
  .proj-head{ max-width:640px; margin-bottom:44px; }
  .proj-head h3{ font-size:clamp(24px,2.8vw,32px); margin:14px 0 0; line-height:1.15; }
  .proj-head p{ font-size:15px; color:var(--ink-soft); max-width:56ch; line-height:1.65; margin:16px 0 0; }
  .proj-grid{ display:grid; grid-template-columns:1fr 1fr; gap:52px; }
  @media (max-width:860px){ .proj-grid{ grid-template-columns:1fr; gap:44px; } }
  .proj-card{ display:flex; flex-direction:column; }
  .proj-media{ display:flex; flex-direction:column; gap:10px; }
  .proj-media-main, .proj-media-sub{
    position:relative; overflow:hidden; border-radius:2px; background:var(--stone-warm);
  }
  .proj-media-main{ aspect-ratio:16/9; }
  .proj-media-sub{ aspect-ratio:21/9; }
  .proj-media img{
    width:100%; height:100%; object-fit:cover; display:block;
    transition:transform 1.1s var(--ease);
  }
  .proj-card:hover .proj-media-main img{ transform:scale(1.035); }
  .proj-media .hero-cap{ font-size:10.5px; }
  /* text now comes BEFORE the media stack in each project card (v34) — a
     run of the housing project's own photos straight into the theatre
     project's own photos, with no text between them at that seam, read as
     one continuous, unlabelled set and confused the two projects. Leading
     with each project's own heading/kind first means every image block
     that follows is already labelled before it starts. */
  .proj-info{ margin-bottom:28px; }
  /* every .proj-kind label gets the same section-marking rule in front of it
     as the .tag::before convention used everywhere else on the site (the
     same rule weight as the service rows — Tasaciones, Licencias, etc.) —
     applied universally so no label (course-project card, pfc concept, …)
     is ever left without it. */
  .proj-kind{
    display:inline-flex; align-items:center; gap:8px;
    font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
    color:var(--garnet); margin-bottom:8px;
  }
  .proj-kind::before{ content:""; width:14px; height:2px; background:var(--garnet); display:inline-block; flex:none; }
  .proj-info h4{ font-family:'Marcellus',serif; font-weight:400; font-size:21px; margin:0 0 8px; }
  .proj-body{ font-size:14px; line-height:1.65; color:var(--ink-soft); margin:0; max-width:48ch; }

  /* the section drawing sits on the page's own paper tone, not a cropped photo
     tile — the render's white ground is recolored to var(--paper) and cropped
     tight to its content at build time, so the cut silhouette (traced in the
     brand's garnet, matching the section-cut convention already baked into
     the source renders) floats directly on the page rather than sitting in a
     boxed photograph. object-fit:contain, never cover: cropping into a
     technical drawing would cut the line itself.
     --ar defaults to 5/2 (the shared box from when both projects sat in a
     2-col grid and needed matching column heights — see v33/v34 above,
     that's no longer the layout). v35: the housing drawing's own render had
     more tree margin around the buildings than its neighbouring photos, so
     it read as visibly smaller/further away even though the BOX was the
     same width — cropped tighter to the built content (imgs build script)
     and given its own --ar matching that crop exactly, so contain has
     nothing left to letterbox and it fills the box edge to edge like the
     photos above and below it. Theatre's drawing was already tight to its
     content and keeps the default. */
  .proj-section-tile{ display:flex; flex-direction:column; gap:10px; }
  .proj-section{
    aspect-ratio:var(--ar, 5/2); background:var(--paper); overflow:hidden; border-radius:2px;
    display:flex; align-items:center; justify-content:center;
  }
  .proj-section img{ width:100%; height:100%; object-fit:contain; display:block; }
  .proj-section-cap{
    margin:0; font-size:11px; font-style:italic; letter-spacing:.01em;
    color:var(--ink-faint);
  }

  /* team credit, on the two course projects (Proyectos VIII, Taller VI) — the
     founder's own name gets a quiet garnet weight, never a full highlight box:
     this is a shared-authorship note, not a byline. */
  .proj-credit{
    margin:12px 0 0; font-size:12.5px; line-height:1.6; color:var(--ink-faint);
  }
  .proj-credit strong{ color:var(--garnet); font-weight:600; }

  /* ---- the individual project (fin de carrera) reads as one wide feature,
     not a third grid card: it carries a 4-image mosaic and three short
     conceptual axes side by side, set apart from the two course projects
     below by its own label + rule rather than forced into the 2-col grid
     built for the main/section/sub card shape. Renders are the founder's
     original fin-de-carrera set, reused from elsewhere on the page — still
     provisional pending a revised pass the client will supply later. */
  .proj-feature{ margin-bottom:80px; }
  .proj-feature-head{ max-width:680px; margin-bottom:36px; }
  .proj-feature-head h4{
    font-family:'Marcellus',serif; font-weight:400; font-size:clamp(22px,2.6vw,30px);
    margin:0 0 6px; line-height:1.15;
  }
  .proj-feature-sub{
    font-family:'Marcellus',serif; font-style:italic; font-size:15px;
    color:var(--ink-soft); margin:0 0 16px;
  }
  .proj-feature-program{
    font-size:10.5px; letter-spacing:.07em; text-transform:uppercase;
    color:var(--ink-faint); max-width:46ch; line-height:1.5; margin:0 0 16px;
  }
  .proj-feature-body{
    font-size:14.5px; line-height:1.7; color:var(--ink-soft); max-width:60ch; margin:0;
  }
  /* Renders are all native ~16:9 landscape (the founder's revised set).
     Horizontal exhibition gallery (Fase 21 / corrección v32): the four
     images stay simultaneously legible — the track bleeds to full viewport
     width (.bleed-out) and each slide is capped well under that width, so
     the next one always peeks into view before anyone drags. The FIRST
     pass sized slides to fill the entire (still container-width) track
     with zero peek, which read as if the other renders had been removed
     rather than one drag away — this is the fix. Drag/swipe + an editorial
     counter still let you move along the row, closer to walking past a row
     of prints than scanning a grid. Patio keeps its own explicit treatment
     — object-fit:contain on a paper ground, never cropped — the client
     asked for it to show complete, not thumbnailed; it sits as its own
     slide instead of paired with the facade. */
  .pfc-gallery{ margin-bottom:40px; }
  .pfc-gallery-track{
    display:flex; gap:clamp(10px,1.2vw,18px); margin:0; padding:0; list-style:none;
    overflow-x:auto; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
    cursor:grab; scrollbar-width:none; -ms-overflow-style:none;
  }
  .pfc-gallery-track::-webkit-scrollbar{ display:none; }
  .pfc-gallery-track.is-dragging{ cursor:grabbing; scroll-snap-type:none; }
  .pfc-slide{
    position:relative; flex:none; margin:0; overflow:hidden; border-radius:2px;
    background:var(--stone-warm); height:clamp(240px,30vw,420px);
    aspect-ratio:var(--ar,16/9); scroll-snap-align:start;
  }
  .pfc-slide img{
    width:100%; height:100%; object-fit:cover; display:block; pointer-events:none;
    transition:transform var(--dur-slow) var(--ease);
  }
  .pfc-slide:hover img{ transform:scale(1.035); }
  .pfc-slide--contain{ background:var(--paper); }
  .pfc-slide--contain img{ object-fit:contain; }
  .pfc-slide--contain:hover img{ transform:none; } /* a contained drawing doesn't crop-zoom */
  .pfc-slide .hero-cap{ font-size:10.5px; }
  .pfc-gallery-meta{
    display:flex; align-items:center; justify-content:space-between; margin-top:14px;
    font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-faint);
  }
  .pfc-gallery-count{ font-variant-numeric:tabular-nums; }
  @media (hover:none){ .pfc-gallery-hint{ display:none; } }
  @media (max-width:760px){
    /* narrower cap than before (was 62vw, filled the whole screen edge to
       edge with a 16/9 slide) — dropped so the next slide still peeks in
       on mobile too, same fix as desktop above. */
    .pfc-slide{ height:clamp(200px,44vw,300px); }
  }
  /* the four-image gallery bleeds full-width like the master/elevation
     shots below, so it stops reading as a boxed-in strip between two large
     margins. */
  .pfc-gallery-track-wrap{ overflow:hidden; }
  .pfc-gallery-track{ padding:0; }
  /* contextual cursor label — desktop (hover+fine pointer) only, created in JS */
  .pfc-cursor{
    position:fixed; top:0; left:0; z-index:300; pointer-events:none; opacity:0;
    transform:translate(-50%,-50%); background:var(--garnet); color:var(--white);
    font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
    padding:8px 14px; border-radius:999px; white-space:nowrap;
    transition:opacity var(--dur-fast) var(--ease);
  }
  .pfc-cursor.is-visible{ opacity:1; }
  html.no-motion .pfc-cursor{ display:none; }
  .proj-feature-concepts{
    display:grid; grid-template-columns:repeat(3,1fr); gap:32px;
    padding-top:32px; border-top:1px solid var(--line);
  }
  @media (max-width:760px){ .proj-feature-concepts{ grid-template-columns:1fr; gap:26px; } }
  .pfc-concept .proj-kind{ margin-bottom:10px; }
  .pfc-concept p{ font-size:13.5px; line-height:1.7; color:var(--ink-soft); margin:0; }

  /* ---- large-format full-bleed renders (v32/v33 correction) — the client
     supplied wide panoramic crops (fin-de-carrera facade, one elevation
     each for the housing block and the theatre project) meant to be shown
     at full screen scale, not squeezed into the 1180px reading column.
     Same .bleed-out mechanism as the gallery above; a single static image,
     no interaction needed, so the impact reads instantly on arrival.
     v33: this was briefly a 2-up pair for the housing elevations, but the
     client called that confusing ("no se entiende") and asked for exactly
     one image per project, placed inside that project's own block rather
     than detached afterward — so this is now a single generic class reused
     once per project (facade, housing, theatre), each sitting directly
     under the project it belongs to. */
  .proj-alzado{
    position:relative; overflow:hidden; background:var(--stone-warm);
    height:56vh; min-height:340px; max-height:600px; margin-block:40px 44px; /* not `margin` shorthand — it would reset the .bleed-out horizontal margins to 0 */
  }
  .proj-alzado img{ width:100%; height:100%; object-fit:cover; display:block; }
  .proj-alzado .hero-cap{ font-size:10.5px; }
  @media (max-width:640px){ .proj-alzado{ height:44vh; min-height:260px; } }

  /* the two course-project cards no longer sit side by side in a 2-col
     grid — each is now a full-width "spread" (photos, then copy, then its
     own full-bleed elevation) stacked one after the other, so the large
     elevation image reads as part of that project, not a separate block. */
  .proj-stack{ display:flex; flex-direction:column; }
  .proj-stack .proj-card{ margin-bottom:20px; }
  .proj-stack .proj-card + .proj-alzado{ margin-top:0; }
  /* a visible rule + extra air where one project's elevation ends and the
     next project's heading begins — belt-and-braces on top of "heading
     before its own photos": the eye gets an explicit stop, not just a
     change of content, at the seam between the two projects. */
  .proj-stack .proj-alzado + .proj-card{ border-top:1px solid var(--line); padding-top:52px; margin-top:8px; }

  .proj-subhead{ margin-bottom:36px; }

  /* ============ WHERE WE'RE GOING (corridor) ============ */
  /* Both renders share one explicit row height (not independent aspect-ratio boxes),
     so the wide corridor and the narrower pergola shot align top and bottom exactly —
     the same justified-row rule used in the identity section above. */
  .wellness-gallery{ display:grid; grid-template-columns: 1.55fr 1fr; gap:20px; height:clamp(300px,36vw,460px); }
  @media (max-width:820px){ .wellness-gallery{ grid-template-columns:1fr; height:auto; gap:26px; } }
  .corridor-wrap{ position:relative; height:100%; overflow:hidden; background:var(--stone-warm); }
  .corridor-wrap img{ width:100%; height:112%; object-fit:cover; position:relative; }
  .pergola-wrap{ position:relative; height:100%; overflow:hidden; background:var(--stone-warm); }
  @media (max-width:820px){ .corridor-wrap, .pergola-wrap{ height:auto; aspect-ratio:16/10; } }
  .pergola-wrap img{ width:100%; height:100%; object-fit:cover; display:block; }
  .col-rhythm{
    position:absolute; inset:0; display:flex; justify-content:space-between;
    pointer-events:none; mix-blend-mode:multiply; opacity:.5;
  }
  .col-rhythm span{ width:2px; height:100%; background:var(--garnet-deep); }
  .going-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; margin-top:56px; align-items:start; }
  @media (max-width:900px){ .going-grid{ grid-template-columns:1fr; gap:34px; } }
  .future-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:0; }
  @media (max-width:520px){ .future-list{ grid-template-columns:1fr; } }
  .future-list li{
    font-family:'Marcellus',serif; font-size:19px; padding:18px 0; border-top:1px solid var(--line);
  }
  .future-list li:nth-last-child(-n+2){ border-bottom:1px solid var(--line); }
  @media (max-width:520px){ .future-list li:nth-last-child(-n+2){ border-bottom:none; } .future-list li:last-child{ border-bottom:1px solid var(--line); } }

  /* ============ NEXT CHAPTER (texture panel, no photography) ============ */
  .next-panel{
    background-color: var(--garnet-deep);
    background-image: linear-gradient(160deg, rgba(58,8,9,.72), rgba(70,20,23,.9)), url('../img/texture.webp');
    background-size: auto, 420px auto;
    background-repeat: no-repeat, repeat;
    color: var(--white);
    padding-block:150px;
    text-align:center;
  }
  @media (max-width:640px){ .next-panel{ padding-block:96px; } }
  .next-panel .eyebrow{ color: rgba(246,237,234,.6); }
  .next-panel h2{ font-size:clamp(30px,5vw,58px); margin:16px auto 24px; max-width:16ch; line-height:1.08; }
  .next-panel p{ font-size:15px; color:rgba(246,237,234,.72); max-width:52ch; margin:0 auto; line-height:1.7; }

  /* ============ CONTACT ============ */
  .contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; }
  @media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:36px; } }
  .contact-copy h2{ font-size:clamp(32px,4.6vw,52px); margin:14px 0 0; line-height:1.05; }
  .contact-direct{ margin:26px 0 0; }
  .contact-direct a{
    font-family:'Marcellus',Georgia,serif; font-size:18px; color:var(--ink);
    text-decoration:none; border-bottom:1px solid var(--line);
  }
  .contact-direct a:hover{ color:var(--garnet); border-color:var(--garnet); }
  .field{ position:relative; margin-bottom:26px; }
  .field input, .field select, .field textarea{
    width:100%; border:none; border-bottom:1px solid var(--line-soft); background:transparent;
    padding:10px 0 10px; font-family:'Work Sans',sans-serif; font-size:15px; color:var(--ink);
    outline:none; appearance:none; -webkit-appearance:none;
  }
  .field textarea{ resize:vertical; min-height:70px; }
  .field label{
    position:absolute; left:0; top:10px; font-size:15px; color:var(--ink-faint);
    pointer-events:none; transition: transform .2s var(--ease), font-size .2s var(--ease), color .2s;
    transform-origin:left top;
  }
  .field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
  .field select:focus ~ label, .field select.filled ~ label,
  .field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label{
    transform: translateY(-18px) scale(.72); color:var(--garnet);
  }
  .field input, .field textarea{ }
  .field input::placeholder, .field textarea::placeholder{ color:transparent; }
  .field-row{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
  @media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }
  .submit-btn{
    font-family:'Work Sans',sans-serif; font-size:14px; font-weight:600;
    background:var(--gold); color:var(--garnet-deep); border:none;
    padding:14px 30px; margin-top:6px; cursor:pointer; letter-spacing:.02em;
    transition:filter .25s;
  }
  .submit-btn:hover{ filter:brightness(1.06); }

  /* ============ FOOTER ============ */
  footer{ border-top:1px solid var(--line); padding-block:38px; }
  .foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
  .foot-row .eyebrow{ margin:0; }
  footer nav ul{ list-style:none; display:flex; gap:22px; margin:0; padding:0; flex-wrap:wrap; }
  footer nav ul li a{ font-size:12px; text-decoration:none; color:var(--ink-soft); }
  footer nav ul li a:hover{ color:var(--garnet); }
  footer{ position:static; }

  .legal-bar{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px 20px;
    margin-top:26px; padding-top:20px; border-top:1px solid var(--line-soft);
    font-size:11px; color:var(--ink-faint);
  }
  .legal-bar p{ margin:0; }
  .legal-bar nav ul{ list-style:none; display:flex; gap:16px; margin:0; padding:0; flex-wrap:wrap; }
  .legal-bar nav ul li a{
    font: inherit; font-size:11px; color:var(--ink-faint); text-decoration:none;
    background:none; border:none; padding:0; cursor:pointer; font-family:'Work Sans',sans-serif;
  }
  .legal-bar nav ul li a:hover{ color:var(--garnet); }

  /* ============ LEGAL MODAL ============ */
  .legal-modal{ position:fixed; inset:0; z-index:300; display:none; }
  .legal-modal.is-open{ display:block; }
  .legal-modal-scrim{ position:absolute; inset:0; background:rgba(35,31,32,.55); }
  .legal-panel{
    position:relative; width:min(720px, calc(100% - 32px)); max-height:86vh; overflow-y:auto;
    margin:6vh auto 0; background:var(--paper); padding:56px 52px 60px; box-shadow:0 40px 90px rgba(0,0,0,.28);
  }
  @media (max-width:640px){
    .legal-panel{ width:100%; max-height:100vh; margin:0; padding:88px 22px 48px; }
    .legal-modal{ overflow-y:auto; }
  }
  .legal-close{
    position:absolute; top:22px; right:22px; width:34px; height:34px; display:grid; place-items:center;
    background:none; border:1px solid var(--line); color:var(--ink); cursor:pointer; font-size:14px; line-height:1;
  }
  .legal-close:hover{ border-color:var(--garnet); color:var(--garnet); }
  .legal-doc .tag{ display:block; margin-bottom:14px; }
  .legal-doc h3{ font-family:'Marcellus',Georgia,serif; font-weight:400; font-size:clamp(24px,3vw,30px); margin:0 0 6px; }
  .legal-doc .legal-updated{ font-size:11px; color:var(--ink-faint); margin:0 0 30px; }
  .legal-doc h4{ font-size:13px; letter-spacing:.02em; margin:28px 0 8px; color:var(--ink); }
  .legal-doc p, .legal-doc li{ font-size:14px; line-height:1.72; color:var(--ink-soft); }
  .legal-doc ul{ margin:0 0 14px; padding-left:18px; }
  .legal-doc p{ margin:0 0 14px; }
  .legal-doc a{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; }
  .legal-doc a:hover{ color:var(--garnet); }
  .legal-placeholder{ color:var(--garnet); font-style:italic; }

  /* proposal tag */
  .proposal-tag{
    position:fixed; left:14px; bottom:14px; z-index:90;
    font-family:'Work Sans',sans-serif; font-size:10px; letter-spacing:.08em; text-transform:uppercase;
    color: var(--ink-faint); background:rgba(247,244,238,.85); padding:5px 9px; border:1px solid var(--line-soft);
    pointer-events:none;
  }

  /* ============ STANDALONE-DEPLOY SELF-SUFFICIENCY ============
     Until now this site only ever rendered inside the Claude Artifact
     wrapper, which silently injects its own reset — notably
     "body{margin:0;padding:0;...}" — before this stylesheet ever loads.
     The source stylesheet's own body{} rule (see esga_home_visual.html)
     never set margin:0 itself, because it never needed to: Artifact
     always supplied it. Once the site is uploaded to a real domain and
     served on its own, nothing supplies that reset any more — a plain
     browser's UA stylesheet gives <body> an 8px margin by default, which
     breaks every full-bleed element (hero image, .bleed-out images, the
     fixed nav's edge alignment) with a visible paper-colored gap around
     the whole page. Confirmed by rendering the standalone deploy/ build
     outside the Artifact: computed body margin was literally "8px".
     Fixing it here (not by editing esga_home_visual.html's own body{}
     rule directly) keeps every hardcoded block(a,b) line range in this
     script's extraction intact — this file is appended to the very end
     of the shared <style> block, so it's the last word in the cascade
     either way and makes BOTH the Artifact build and the standalone
     deploy build render identically, instead of the deploy build only
     being correct by accident of its old host. */
  body{ margin:0; padding:0; }
  :root{ color-scheme:light; }
  html{ scroll-padding-top:env(safe-area-inset-top,0px); }

  /* ============ ROUTE TEASER (home) ============ */
  .route-list{ list-style:none; margin:46px 0 0; padding:0; border-top:1px solid var(--line); }
  .route-row{
    display:grid; grid-template-columns:44px 1fr; gap:8px 32px;
    padding-block:34px; border-bottom:1px solid var(--line);
  }
  .route-link{ text-decoration:none; color:inherit; display:block; }
  .route-row h3{ font-size:22px; margin:0 0 8px; transition:color .25s; }
  .route-row:hover h3{ color:var(--garnet); }
  .route-row p{ font-size:15px; line-height:1.65; color:var(--ink-soft); max-width:62ch; margin:0 0 12px; }
  .route-cta{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--garnet); font-weight:600; }
  @media (max-width:640px){ .route-row{ grid-template-columns:28px 1fr; gap:6px 18px; padding-block:26px; } }

  /* ============ CLOSING CTA (home) ============ */
  .cta-contact-inner{ text-align:center; max-width:560px; margin-inline:auto; }
  .cta-contact-inner .lede{ font-size:16px; line-height:1.65; color:var(--ink-soft); margin:14px 0 30px; }
  .cta-contact-btn{ display:inline-block; }

  /* ============ ROUTE PAGES: nav reads dark-on-paper from the start
     (no full-bleed dark hero behind it on these pages) ============ */
  #siteNav:has(~ #hero):not(.solid) a.link{ color:var(--paper); }
  #siteNav:has(~ #hero):not(.solid) .nav-toggle{ color:var(--paper); }
  #siteNav:has(~ #hero):not(.solid) .word-mark use{ fill:var(--paper); }
  #siteNav:has(~ #hero):not(.solid) .word-mark .mark-bracket use{ fill:var(--gold); }

  /* ============ PAGE INTRO (route pages) ============
     The user reported that landing on a route page (Estudio, Servicios,
     Portfolio, Sostenibilidad...) without scrolling showed body text cut
     off mid-sentence and images cropped mid-way by the viewport edge —
     confirmed via screenshot: e.g. Servicios' "Arquitectura" service row
     and Estudio's intro paragraph + photo both got sliced at ~800px
     viewport height. Rather than patch each page's content differently,
     the page-intro itself now fills the first screen (min-height:100vh,
     vertically centered) so the ONLY thing visible on load is the title —
     short, controlled text that's never at risk of being cut — and every
     page's real content (now tonally marked, see below) starts cleanly at
     a full section boundary just past the fold, instead of peeking in
     half-cropped. 100svh layered after 100vh so browsers that support the
     small-viewport unit use it (avoids mobile browser-chrome jumpiness);
     others silently keep the 100vh fallback. */
  .page-intro{
    min-height:100vh; min-height:100svh;
    display:flex; flex-direction:column; justify-content:center;
    padding-top:104px; padding-bottom:64px;
  }
  @media (max-width:640px){ .page-intro{ padding-top:84px; padding-bottom:48px; } }
  .page-intro .eyebrow{ display:block; margin-bottom:14px; }
  .page-intro h1{ font-size:clamp(34px,5vw,56px); line-height:1.05; margin:0; }

  /* ============ CONTENT MARKED WITH A TONAL BACKGROUND SHIFT ============
     Sostenibilidad (#wellness) and Estudio (#studio) already used
     section.alt (background:var(--paper-alt), a warmer off-white) on the
     first section right after the page-intro — the visual cue the user
     pointed to as the model to repeat. Servicios' (#what-we-do) and
     Portfolio's (#portfolio-academic) first sections had no such marking,
     reading as a plain continuation of the page-intro instead of a
     distinct, separated block. Both now get the same .alt treatment, so
     all route pages mark their content the same way. */
  #what-we-do, #portfolio-academic{ background:var(--paper-alt); }

  /* ============ PORTFOLIO: match the Servicios page-intro -> section gap
     exactly ============
     Servicios' own first section (#what-we-do, "Qué Hacemos") carries NO
     top-spacing override, so the only gap between its page-intro H1 and
     its heading is the section's own default padding-block (118px desktop
     / 76px mobile — see the bare "section{...}" rule). #portfolio-academic
     deliberately gets no override either, so it inherits that same default
     and the two pages read identically.
     .proj-examples still carries its own margin-top/padding-top/border-top,
     sized for when it used to follow a full services grid inside the same
     section (a visual divider after that grid). It's now the sole content
     of its own section with nothing above it to divide from, so that extra
     spacing is zeroed here — Servicios has no equivalent stacked div, so
     this keeps the two pages matching rather than adding a second gap. */
  #portfolio-academic .proj-examples{ margin-top:0; padding-top:0; border-top:none; }

  /* ============ SECTION-CUT RENDERS: no more hardcoded white-ish fill below
     the garnet cut line ============
     The housing and theatre "sección fugada" PNGs (proj_housing_section.png,
     proj_theatre_section.png) are drawn with a thick garnet band marking the
     ground-level section cut, and everything below/around the building mass
     is genuinely transparent (alpha:0, confirmed by sampling the PNGs) — the
     intent was always "let the page background show through there", not a
     white sheet. That worked by coincidence while .proj-section had its own
     hardcoded "background:var(--paper)" AND the page around it was also
     plain --paper. Since #portfolio-academic above was given --paper-alt (a
     warmer off-white, see the tonal-marking fix above it), the two no longer
     match — .proj-section still only knows --paper, so the transparent gap
     under the cut line renders as a visibly paler rectangle against the
     tinted page, reading like the drawing is pasted onto its own sheet of
     paper. .proj-section is only ever used inside #portfolio-academic (both
     course-project renders live there since the Portfolio-page split), so
     there's no case where it needs an opaque fill of its own at all —
     dropping the hardcoded color lets it always show whatever the real page
     background is, instead of needing to be kept in sync by hand. */
  .proj-section{ background:transparent; }

  /* ============ DIARIO — TRAYECTORIA ============
     Same list-row grammar as .discipline-chain (Studio) and .route-list
     (home): numbered rows, hairline dividers, no card shadows/radius
     bigger than the rest of the site. Deliberately NOT the Portfolio
     page's .proj-card/.proj-media treatment — that device is reserved for
     the pre-ESGA academic work, which IS meant to read as a separated,
     closed chapter. This section instead has to read as a direct
     continuation into .next-panel ("El Próximo Capítulo") right after it,
     so it gets no closing border/divider of its own — the gap is only
     .next-panel's own top padding. */
  .case-chain{ list-style:none; margin:46px 0 0; padding:0; border-top:1px solid var(--line); }
  .case-row{
    display:grid; grid-template-columns:44px 230px 1fr; gap:10px 36px;
    padding-block:44px; border-bottom:1px solid var(--line); align-items:center;
  }
  .case-media{
    position:relative; aspect-ratio:4/3; overflow:hidden; border-radius:2px;
    background:var(--paper-alt);
  }
  .case-media img{ width:100%; height:100%; object-fit:cover; display:block; }
  .case-kind{
    display:block; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
    color:var(--garnet); margin-bottom:10px;
  }
  .case-body h3{ font-size:19px; margin:0 0 10px; }
  .case-desc{ font-size:14px; line-height:1.68; color:var(--ink-soft); margin:0; max-width:58ch; }
  @media (max-width:760px){
    .case-row{ grid-template-columns:32px 1fr; gap:6px 16px; padding-block:30px; }
    .case-media{ grid-column:1/-1; aspect-ratio:16/9; margin-top:8px; }
    .case-body{ grid-column:1/-1; margin-top:14px; }
  }

  /* ============ SOCIAL LINKS (footer nav + contact page) ============
     Plain text links, same register as the rest of the site's nav/label
     conventions (uppercase, letter-spaced, garnet on hover) — no icon set,
     per the brief's "evitar iconografía estándar". .contact-social sits
     just under the phone link on Contacto; the footer's own social <nav>
     reuses the existing "footer nav ul" rule untouched (no class needed
     there, the selector is generic to any <nav> inside <footer>). */
  .contact-social{ margin:14px 0 0; display:flex; gap:20px; }
  .contact-social a{
    font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint);
    text-decoration:none; border-bottom:1px solid transparent; padding-bottom:2px;
    transition:color .25s, border-color .25s;
  }
  .contact-social a:hover{ color:var(--garnet); border-color:var(--garnet); }

  /* ============ CONTACT — physical address + map (2026-10-13, map V81) ============
     Same register as .contact-social just above it (plain text links,
     garnet on hover, no icon set). The "map" is a first-party inline SVG
     schematic, not a live Google embed — a real <iframe> to google.com
     is silently dropped by the Artifact's CSP (no third-party resource
     outside a short CDN/fonts allowlist loads there), which is exactly
     why the client never saw a map on the published site. A site-plan
     north-arrow diagram also reads as more ESGA than a generic map
     widget would. */
  .contact-location{ margin:32px 0 0; }
  .contact-address{ font-size:14px; line-height:1.65; color:var(--ink-soft); margin:0 0 12px; }
  .contact-location-links{ display:flex; flex-wrap:wrap; gap:10px 22px; }
  .contact-location-links a{
    font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint);
    text-decoration:none; border-bottom:1px solid transparent; padding-bottom:2px;
    transition:color .25s, border-color .25s;
  }
  .contact-location-links a:hover{ color:var(--garnet); border-color:var(--garnet); }
  .contact-map{
    margin-top:28px; aspect-ratio:4/3; overflow:hidden; border-radius:2px;
    background:var(--paper-alt); border:1px solid var(--line);
    display:block; cursor:pointer; transition:border-color .3s;
  }
  .contact-map:hover, .contact-map:focus-visible{ border-color:var(--garnet); outline:none; }
  .contact-map:focus-visible{ outline:2px solid var(--garnet); outline-offset:2px; }
  .loc-diagram{ width:100%; height:100%; display:block; }
  .loc-bg{ fill:var(--paper-alt); }
  .loc-contour{ fill:none; stroke:var(--line-soft); stroke-width:1; }
  .loc-river{ fill:var(--line); stroke:none; }
  .loc-veg{ fill:var(--ink-faint); opacity:.4; }
  .loc-road{ fill:none; stroke:var(--ink-faint); stroke-width:1.2; }
  .loc-urban{ fill:var(--line-soft); stroke:var(--ink-faint); stroke-width:.6; opacity:.85; }
  .loc-parcel{ fill:none; stroke:var(--ink-faint); stroke-width:.8; stroke-dasharray:2.5 2.5; opacity:.7; }
  .loc-point{ fill:var(--ink-faint); }
  .loc-marker-ring{
    fill:none; stroke:var(--garnet); stroke-width:1.2; opacity:.55;
    transition:opacity .3s, r .3s;
  }
  .contact-map:hover .loc-marker-ring, .contact-map:focus-visible .loc-marker-ring{ opacity:1; r:13; }
  .loc-marker{ fill:var(--garnet); }
  .loc-label{
    font-family:'Work Sans',sans-serif; font-size:10.5px; font-weight:600;
    letter-spacing:.09em; fill:var(--ink);
  }
  .loc-label-sub{
    font-family:'Work Sans',sans-serif; font-size:9px; font-weight:500;
    letter-spacing:.08em; fill:var(--ink-faint);
  }
  .loc-label-small{
    font-family:'Work Sans',sans-serif; font-size:8.5px; font-weight:500;
    letter-spacing:.09em; fill:var(--ink-soft);
  }
  .loc-caption{
    font-family:'Work Sans',sans-serif; font-size:9px; font-weight:500;
    letter-spacing:.12em; fill:var(--ink-faint);
  }
  .loc-north line, .loc-north path{ stroke:var(--ink-faint); stroke-width:1; fill:none; }
  .loc-north text{
    font-family:'Work Sans',sans-serif; font-size:9px; font-weight:600;
    letter-spacing:.04em; fill:var(--ink-faint);
  }
  .loc-scale line{ stroke:var(--ink-faint); stroke-width:1; }
  .loc-scale text{
    font-family:'Work Sans',sans-serif; font-size:7.5px; font-weight:500;
    letter-spacing:.05em; fill:var(--ink-faint);
  }

  /* ============ TESTIMONIALS (Contacto) — real Google reviews, 2026-10-13 ============
     Reuses the site's own list-row grammar (gap-separated grid, no card
     borders/shadows — same family as .vocab-grid) rather than a boxed
     "testimonial card" pattern. <cite> is reset off its default italic so
     the attribution reads as a plain label, matching .origin-role's
     register; the quote itself carries the italic serif voice instead. */
  .testimonial-list{
    list-style:none; margin:46px 0 0; padding:40px 0 0; border-top:1px solid var(--line);
    display:grid; grid-template-columns:1fr 1fr; gap:40px 56px;
  }
  @media (max-width:760px){ .testimonial-list{ grid-template-columns:1fr; gap:32px; } }
  .testimonial-row blockquote{
    margin:0 0 14px; font-family:'Marcellus',serif; font-style:italic;
    font-size:16px; line-height:1.6; color:var(--ink);
  }
  .testimonial-row cite{
    display:block; font-style:normal; font-size:11px; letter-spacing:.08em;
    text-transform:uppercase; color:var(--ink-faint);
  }

  /* ============ COOKIE CONSENT BAR (site-wide, 2026-10-15) ============
     Same quiet register as the rest of the site's UI chrome (no banner-
     plugin look: no icon, no gradient, no bright accent colour) — a thin
     paper-coloured strip anchored to the bottom, same hairline border
     convention as everything else, Work Sans at the same small sizes as
     .contact-location-links. Sits above the nav (z-index 160) but below
     the legal modal (300), since the "Política de cookies" link inside it
     opens that same modal on top of it. Hidden by default in the HTML
     (no flash-of-banner before JS decides whether localStorage already
     holds a choice) and transitions in from the bottom edge, matching
     .mobile-nav's own slide register rather than inventing a new one. */
  .cookie-bar{
    position:fixed; left:0; right:0; bottom:0; z-index:250;
    background:var(--paper); border-top:1px solid var(--line);
    padding:20px 0 calc(20px + env(safe-area-inset-bottom,0px));
    transform:translateY(100%); transition:transform .5s var(--ease);
    box-shadow:0 -16px 40px -28px rgba(35,31,32,.3);
  }
  .cookie-bar[hidden]{ display:block; } /* keep transitioning out, not yanked away */
  .cookie-bar.is-visible{ transform:translateY(0); }
  html.no-motion .cookie-bar{ transition:none; }
  .cookie-bar-inner{
    max-width:1180px; margin-inline:auto; padding-inline:28px;
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 32px;
  }
  @media (max-width:640px){
    .cookie-bar-inner{ padding-inline:20px; flex-direction:column; align-items:flex-start; gap:16px; }
  }
  .cookie-bar-text{ font-size:13px; line-height:1.6; color:var(--ink-soft); margin:0; max-width:62ch; }
  .cookie-bar-text .cookie-bar-link{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
  .cookie-bar-text .cookie-bar-link:hover{ color:var(--garnet); }
  .cookie-bar-actions{ display:flex; align-items:center; gap:24px; flex:none; }
  @media (max-width:640px){ .cookie-bar-actions{ width:100%; justify-content:space-between; } }
  .cookie-bar-reject{
    font:inherit; font-family:'Work Sans',sans-serif; font-size:12px; letter-spacing:.06em; text-transform:uppercase;
    color:var(--ink-faint); background:none; border:none; border-bottom:1px solid transparent; padding:0 0 2px;
    cursor:pointer; white-space:nowrap; transition:color .25s, border-color .25s;
  }
  .cookie-bar-reject:hover{ color:var(--garnet); border-color:var(--garnet); }
  .cookie-bar-accept{
    font-family:'Work Sans',sans-serif; font-size:13px; font-weight:600; letter-spacing:.02em;
    background:var(--ink); color:var(--paper); border:none; padding:11px 24px; border-radius:1px;
    cursor:pointer; white-space:nowrap; transition:background .25s;
  }
  .cookie-bar-accept:hover{ background:var(--garnet); }

  /* ============ LOADER — page-transition only, not an entry splash
     (see MAIN_SCRIPT) ============
     Hidden by default so nothing flashes on first paint; MAIN_SCRIPT adds
     .is-active for the moment it plays when a menu link is clicked. Going
     display:none -> flex is also what makes the delay-driven keyframe
     choreography further up this stylesheet replay from zero each time,
     the same way it used to start fresh on every full page load. */
  #loader{ display:none; }
  #loader.is-active{ display:flex; }

  /* ============ ORIGEN — 4th founder (Marta Portela Velasco) ============
     Existing --3 modifier untouched; this is its sibling for 4 founders. */
  .origin-founders--4{ grid-template-columns:repeat(4,1fr); }
  @media (max-width:900px){ .origin-founders--4{ grid-template-columns:1fr 1fr; } }
  @media (max-width:640px){ .origin-founders--4{ grid-template-columns:1fr; } }

  /* ============ IMAGE LOAD-IN ============
     Every content <img> starts invisible and fades in via .img-ready
     (added by IMG_READY_SCRIPT on its 'load' event, or immediately if
     already cached) instead of the raw bytes popping into a slot the
     scroll-reveal above had already opened — this is the "aparecen de
     golpe" the client flagged. The hero background image is exempt: GSAP
     already owns its opacity/scale through startHeroReveal, and this rule
     also guarantees it stays visible if that script ever fails to load.
     No-motion visitors get every image visible unconditionally. */
  img{ opacity:0; transition:opacity .5s var(--ease); }
  img.img-ready{ opacity:1; }
  .hero-bg img{ opacity:1; }
  html.no-motion img{ opacity:1 !important; transition:none !important; }

  /* ============ ORIGEN -> IDENTITY — breathing room before the color change ============
     esga_home_visual.html's #origen{ padding-bottom:0; } was written when
     "Qué Hacemos" (no color change, same default bg) followed directly —
     that's no longer the page structure (it's now its own Servicios page).
     The real next section on Estudio today is #identity, whose alt/paper
     champagne background now starts with zero gap, landing right on the
     founders' names and text. Restoring the bottom padding to the site's
     normal single-section rhythm (matches the generic section{} default
     this page used everywhere else) — top padding (56px/34px) is untouched,
     that one's still correct for the previous boundary. */
  #origen{ padding-bottom:118px; }
  @media (max-width:640px){ #origen{ padding-bottom:76px; } }

  /* ============ INITIAL-LOAD FLUIDITY — no FOUC on .reveal content ============
     .reveal/.reveal-img never had a CSS default hidden state — hiding was
     100% done by GSAP's fromTo() call, which only runs once the three CDN
     scripts (gsap/ScrollTrigger/lenis) have loaded. On a cold cache that
     takes real network time, during which this content rendered fully
     visible, then snapped to hidden the instant GSAP's setup loop finally
     ran — a visible flash, only on first visit (subsequent navigations
     have those scripts browser-cached, so GSAP initializes near-instantly
     and the flash is imperceptible) — exactly the "no aparecen fluidos...
     igual que en otras opciones del menú" report.
     Fix: give .reveal/.reveal-img the exact same hidden state in plain CSS
     (matching GSAP's fromTo "from" values verbatim) so there's never a
     visible-then-hidden flash, only hidden-then-revealed — same animation,
     same timing/easing/distances as before, nothing redesigned. Scoped to
     html.js (stamped synchronously in <head>, see REDUCED_MOTION_SCRIPT)
     so a visitor with JS entirely disabled never gets content hidden that
     nothing would ever reveal — no <noscript> needed. The .in rules below
     back up the existing no-gsap/reduced-motion fallback, which only adds
     the .in class with nothing to react to it until now. */
  html.js .reveal:not(.reveal-img){ opacity:0; transform:translateY(34px); }
  html.js .reveal-img{ clip-path:inset(0 0 100% 0); }
  html.js .reveal.in:not(.reveal-img){ opacity:1; transform:none; }
  html.js .reveal-img.in{ clip-path:inset(0 0 0% 0); }
