/* Domenico Di Siena — Design System — generated from tokens.json */
:root, [data-theme="default"] {
  --dds-solar-accent: #c9542f;
  --dds-solar-accent-on: #fbf1e2;
  --dds-solar-base-bg: #f3ead9;
  --dds-solar-base-fg: #241b12;
  --dds-solar-base-sub: #6f6253;
  --dds-solar-base-line: #d7cab2;
  --dds-solar-base-accent: #c9542f;
  --dds-solar-base-tint: rgba(201,84,47,.06);
  --dds-solar-deep-bg: #2a3a2e;
  --dds-solar-deep-fg: #f1e9d8;
  --dds-solar-deep-sub: #a7b49e;
  --dds-solar-deep-line: #45564a;
  --dds-solar-deep-accent: #e0925a;
  --dds-solar-deep-tint: rgba(255,255,255,.04);
  --dds-solar-warm-bg: #bd5a36;
  --dds-solar-warm-fg: #fbf1e2;
  --dds-solar-warm-sub: #f2cbb2;
  --dds-solar-warm-line: #d17f5e;
  --dds-solar-warm-accent: #fbf1e2;
  --dds-solar-warm-tint: rgba(251,241,226,.07);
  --dds-solar-nature-bg: #5e6b45;
  --dds-solar-nature-fg: #f4efdd;
  --dds-solar-nature-sub: #c9cda9;
  --dds-solar-nature-line: #79855b;
  --dds-solar-nature-accent: #e8b271;
  --dds-solar-nature-tint: rgba(255,255,255,.05);
  --dds-solar-night-bg: #1a130d;
  --dds-solar-night-fg: #efe3d0;
  --dds-solar-night-sub: #9a8b76;
  --dds-solar-night-line: #34281c;
  --dds-solar-night-accent: #e0925a;
  --dds-solar-night-tint: rgba(224,146,90,.05);
  --dds-manifiesto-accent: #ff3d11;
  --dds-manifiesto-accent-on: #0e0e0c;
  --dds-manifiesto-base-bg: #e9e5d7;
  --dds-manifiesto-base-fg: #0e0e0c;
  --dds-manifiesto-base-sub: #56524a;
  --dds-manifiesto-base-line: #0e0e0c;
  --dds-manifiesto-base-accent: #ff3d11;
  --dds-manifiesto-base-tint: rgba(255,61,17,.08);
  --dds-manifiesto-deep-bg: #0e0e0c;
  --dds-manifiesto-deep-fg: #e9e5d7;
  --dds-manifiesto-deep-sub: #918e84;
  --dds-manifiesto-deep-line: #e9e5d7;
  --dds-manifiesto-deep-accent: #ff3d11;
  --dds-manifiesto-deep-tint: rgba(255,255,255,.05);
  --dds-manifiesto-warm-bg: #ff3d11;
  --dds-manifiesto-warm-fg: #0e0e0c;
  --dds-manifiesto-warm-sub: #3a0f05;
  --dds-manifiesto-warm-line: #0e0e0c;
  --dds-manifiesto-warm-accent: #0e0e0c;
  --dds-manifiesto-warm-tint: rgba(20,17,12,.07);
  --dds-manifiesto-nature-bg: #14241a;
  --dds-manifiesto-nature-fg: #e9e5d7;
  --dds-manifiesto-nature-sub: #8fa792;
  --dds-manifiesto-nature-line: #e9e5d7;
  --dds-manifiesto-nature-accent: #c8ff3d;
  --dds-manifiesto-nature-tint: rgba(200,255,61,.06);
  --dds-manifiesto-night-bg: #0e0e0c;
  --dds-manifiesto-night-fg: #e9e5d7;
  --dds-manifiesto-night-sub: #8a867c;
  --dds-manifiesto-night-line: #2a271f;
  --dds-manifiesto-night-accent: #ff3d11;
  --dds-manifiesto-night-tint: rgba(255,61,17,.06);
  --dds-vanguardia-accent: #ff6a4d;
  --dds-vanguardia-accent-on: #0d0e14;
  --dds-vanguardia-base-bg: #0d0e14;
  --dds-vanguardia-base-fg: #ece8f2;
  --dds-vanguardia-base-sub: #8a8699;
  --dds-vanguardia-base-line: #232531;
  --dds-vanguardia-base-accent: #ff6a4d;
  --dds-vanguardia-base-tint: rgba(180,156,255,.08);
  --dds-vanguardia-deep-bg: #090a10;
  --dds-vanguardia-deep-fg: #ece8f2;
  --dds-vanguardia-deep-sub: #7e8ba0;
  --dds-vanguardia-deep-line: #1c1f2a;
  --dds-vanguardia-deep-accent: #b49cff;
  --dds-vanguardia-deep-tint: rgba(122,160,194,.06);
  --dds-vanguardia-warm-bg: #1a0f12;
  --dds-vanguardia-warm-fg: #f4e6e2;
  --dds-vanguardia-warm-sub: #c49a95;
  --dds-vanguardia-warm-line: #371f22;
  --dds-vanguardia-warm-accent: #ff6a4d;
  --dds-vanguardia-warm-tint: rgba(255,106,77,.07);
  --dds-vanguardia-nature-bg: #0c1512;
  --dds-vanguardia-nature-fg: #e2eee6;
  --dds-vanguardia-nature-sub: #7e947f;
  --dds-vanguardia-nature-line: #1e2a24;
  --dds-vanguardia-nature-accent: #74e0a8;
  --dds-vanguardia-nature-tint: rgba(116,224,168,.06);
  --dds-vanguardia-night-bg: #060710;
  --dds-vanguardia-night-fg: #ece8f2;
  --dds-vanguardia-night-sub: #6e6b82;
  --dds-vanguardia-night-line: #161826;
  --dds-vanguardia-night-accent: #b49cff;
  --dds-vanguardia-night-tint: rgba(180,156,255,.05);
  --p-base-bg: #e9e5d7;
  --p-base-fg: #0e0e0c;
  --p-base-sub: #56524a;
  --p-base-line: #0e0e0c;
  --p-base-accent: #ff3d11;
  --p-base-tint: rgba(255,61,17,.08);
  --p-deep-bg: #0e0e0c;
  --p-deep-fg: #e9e5d7;
  --p-deep-sub: #918e84;
  --p-deep-line: #e9e5d7;
  --p-deep-accent: #ff3d11;
  --p-deep-tint: rgba(255,255,255,.05);
  --p-warm-bg: #ff3d11;
  --p-warm-fg: #0e0e0c;
  --p-warm-sub: #3a0f05;
  --p-warm-line: #0e0e0c;
  --p-warm-accent: #0e0e0c;
  --p-warm-tint: rgba(20,17,12,.07);
  --p-nature-bg: #14241a;
  --p-nature-fg: #e9e5d7;
  --p-nature-sub: #8fa792;
  --p-nature-line: #e9e5d7;
  --p-nature-accent: #c8ff3d;
  --p-nature-tint: rgba(200,255,61,.06);
  --p-night-bg: #0e0e0c;
  --p-night-fg: #e9e5d7;
  --p-night-sub: #8a867c;
  --p-night-line: #2a271f;
  --p-night-accent: #ff3d11;
  --p-night-tint: rgba(255,61,17,.06);
  --accent-on: #0e0e0c;
  --surface: var(--p-base-bg);
  --ink: var(--p-base-fg);
  --muted: var(--p-base-sub);
  --line: var(--p-base-line);
  --accent: var(--p-base-accent);
  --tint: var(--p-base-tint);
  --shadow-none: none;
  --shadow-overlay: 0 20px 60px -20px rgba(0,0,0,.45);
}
[data-theme="direction-solar"] {
  --p-base-bg: #f3ead9;
  --p-base-fg: #241b12;
  --p-base-sub: #6f6253;
  --p-base-line: #d7cab2;
  --p-base-accent: #c9542f;
  --p-base-tint: rgba(201,84,47,.06);
  --p-deep-bg: #2a3a2e;
  --p-deep-fg: #f1e9d8;
  --p-deep-sub: #a7b49e;
  --p-deep-line: #45564a;
  --p-deep-accent: #e0925a;
  --p-deep-tint: rgba(255,255,255,.04);
  --p-warm-bg: #bd5a36;
  --p-warm-fg: #fbf1e2;
  --p-warm-sub: #f2cbb2;
  --p-warm-line: #d17f5e;
  --p-warm-accent: #fbf1e2;
  --p-warm-tint: rgba(251,241,226,.07);
  --p-nature-bg: #5e6b45;
  --p-nature-fg: #f4efdd;
  --p-nature-sub: #c9cda9;
  --p-nature-line: #79855b;
  --p-nature-accent: #e8b271;
  --p-nature-tint: rgba(255,255,255,.05);
  --p-night-bg: #1a130d;
  --p-night-fg: #efe3d0;
  --p-night-sub: #9a8b76;
  --p-night-line: #34281c;
  --p-night-accent: #e0925a;
  --p-night-tint: rgba(224,146,90,.05);
  --accent-on: #fbf1e2;
  --surface: var(--p-base-bg);
  --ink: var(--p-base-fg);
  --muted: var(--p-base-sub);
  --line: var(--p-base-line);
  --accent: var(--p-base-accent);
  --tint: var(--p-base-tint);
}
[data-theme="direction-manifiesto"] {
  --p-base-bg: #e9e5d7;
  --p-base-fg: #0e0e0c;
  --p-base-sub: #56524a;
  --p-base-line: #0e0e0c;
  --p-base-accent: #ff3d11;
  --p-base-tint: rgba(255,61,17,.08);
  --p-deep-bg: #0e0e0c;
  --p-deep-fg: #e9e5d7;
  --p-deep-sub: #918e84;
  --p-deep-line: #e9e5d7;
  --p-deep-accent: #ff3d11;
  --p-deep-tint: rgba(255,255,255,.05);
  --p-warm-bg: #ff3d11;
  --p-warm-fg: #0e0e0c;
  --p-warm-sub: #3a0f05;
  --p-warm-line: #0e0e0c;
  --p-warm-accent: #0e0e0c;
  --p-warm-tint: rgba(20,17,12,.07);
  --p-nature-bg: #14241a;
  --p-nature-fg: #e9e5d7;
  --p-nature-sub: #8fa792;
  --p-nature-line: #e9e5d7;
  --p-nature-accent: #c8ff3d;
  --p-nature-tint: rgba(200,255,61,.06);
  --p-night-bg: #0e0e0c;
  --p-night-fg: #e9e5d7;
  --p-night-sub: #8a867c;
  --p-night-line: #2a271f;
  --p-night-accent: #ff3d11;
  --p-night-tint: rgba(255,61,17,.06);
  --accent-on: #0e0e0c;
  --surface: var(--p-base-bg);
  --ink: var(--p-base-fg);
  --muted: var(--p-base-sub);
  --line: var(--p-base-line);
  --accent: var(--p-base-accent);
  --tint: var(--p-base-tint);
}
[data-theme="direction-vanguardia"] {
  --p-base-bg: #0d0e14;
  --p-base-fg: #ece8f2;
  --p-base-sub: #8a8699;
  --p-base-line: #232531;
  --p-base-accent: #ff6a4d;
  --p-base-tint: rgba(180,156,255,.08);
  --p-deep-bg: #090a10;
  --p-deep-fg: #ece8f2;
  --p-deep-sub: #7e8ba0;
  --p-deep-line: #1c1f2a;
  --p-deep-accent: #b49cff;
  --p-deep-tint: rgba(122,160,194,.06);
  --p-warm-bg: #1a0f12;
  --p-warm-fg: #f4e6e2;
  --p-warm-sub: #c49a95;
  --p-warm-line: #371f22;
  --p-warm-accent: #ff6a4d;
  --p-warm-tint: rgba(255,106,77,.07);
  --p-nature-bg: #0c1512;
  --p-nature-fg: #e2eee6;
  --p-nature-sub: #7e947f;
  --p-nature-line: #1e2a24;
  --p-nature-accent: #74e0a8;
  --p-nature-tint: rgba(116,224,168,.06);
  --p-night-bg: #060710;
  --p-night-fg: #ece8f2;
  --p-night-sub: #6e6b82;
  --p-night-line: #161826;
  --p-night-accent: #b49cff;
  --p-night-tint: rgba(180,156,255,.05);
  --accent-on: #0d0e14;
  --surface: var(--p-base-bg);
  --ink: var(--p-base-fg);
  --muted: var(--p-base-sub);
  --line: var(--p-base-line);
  --accent: var(--p-base-accent);
  --tint: var(--p-base-tint);
}
[data-theme="pane-base"] {
  --surface: var(--p-base-bg);
  --ink: var(--p-base-fg);
  --muted: var(--p-base-sub);
  --line: var(--p-base-line);
  --accent: var(--p-base-accent);
  --tint: var(--p-base-tint);
}
[data-theme="pane-deep"] {
  --surface: var(--p-deep-bg);
  --ink: var(--p-deep-fg);
  --muted: var(--p-deep-sub);
  --line: var(--p-deep-line);
  --accent: var(--p-deep-accent);
  --tint: var(--p-deep-tint);
}
[data-theme="pane-warm"] {
  --surface: var(--p-warm-bg);
  --ink: var(--p-warm-fg);
  --muted: var(--p-warm-sub);
  --line: var(--p-warm-line);
  --accent: var(--p-warm-accent);
  --tint: var(--p-warm-tint);
}
[data-theme="pane-nature"] {
  --surface: var(--p-nature-bg);
  --ink: var(--p-nature-fg);
  --muted: var(--p-nature-sub);
  --line: var(--p-nature-line);
  --accent: var(--p-nature-accent);
  --tint: var(--p-nature-tint);
}
:root {
  --reveal-dist: 0px;
  --hover-lift: -2px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 30px;
  --sp-7: 44px;
  --sp-8: 64px;
  --sp-9: 96px;
  --measure: 1240px;
  --border-hair: 1px;
  --radius: 0px;
  --radius-full: 999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.16, 1, .3, 1);
  --ease-std: ease;
  --reveal-dur: 0.001s;
  --reveal-ease: cubic-bezier(.16, 1, .3, 1);
  --reveal-stagger: 0.06s;
  --bg-dur: 0.001s;
  --dur-fast: 0.3s;
  --dur-med: 0.4s;
  --cursor-blend: difference;
  --fs-hero: clamp(50px, 9vw, 138px);
  --fs-display-1: clamp(40px, 7vw, 104px);
  --fs-display-2: clamp(32px, 5vw, 64px);
  --fs-statement: clamp(27px, 3.7vw, 54px);
  --fs-h3: clamp(23px, 2.5vw, 32px);
  --fs-h4: clamp(20px, 2vw, 24px);
  --fs-lead: clamp(17px, 1.35vw, 21px);
  --fs-body: clamp(16px, 1.2vw, 19px);
  --border: 1px solid #0E0E0C;
  --lh-tight: 0.94;
  --lh-snug: 1.05;
  --lh-normal: 1.16;
  --lh-body: 1.58;
  --ls-display: -0.02em;
  --ls-tight: -0.01em;
  --fw-display: 500;
  --fw-body: 400;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --text-fs-sm: 400 15px/1.4 var(--font-body);
  --text-fs-eyebrow: 400 12.5px/1.4 var(--font-body);
  --text-fs-meta: 400 13px/1.4 var(--font-body);
  --text-fs-tag: 400 11px/1.4 var(--font-body);
  --text-fs-micro: 400 10px/1.4 var(--font-body);
}
.fs-sm {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.fs-eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.24em;
}
.fs-meta {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.fs-tag {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.16em;
}
.fs-micro {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── styles.css ── */
/* ============================================================
   Domenico Di Siena — Design System
   Global entry point. Consumers link THIS file only.
   Order matters: fonts → tokens → semantic layers.
   ============================================================ */
/* ── tokens/fonts.css ── */
/* ============================================================
   Domenico Di Siena — WEBFONTS
   Six families loaded from Google Fonts CDN.
   Display faces rotate per direction:
     manifiesto → Bricolage Grotesque   solar → Newsreader   vanguardia → Syne
   Body: Space Grotesk (manifiesto/vanguardia) · Spectral (solar)
   Mono (constant across directions): Space Mono
   ------------------------------------------------------------
   NOTE: served via CDN @import rather than self-hosted woff2 so
   consumers always get the full character sets. If you need
   offline/self-hosted binaries, drop woff2 files here and swap
   these @imports for @font-face rules.
   ============================================================ */








/* ── styles.css ── */

/* ── tokens/colors.css ── */
/* ============================================================
   Domenico Di Siena — COLOR SYSTEM
   One personal brand, three visual DIRECTIONS, five color PANES.
   ------------------------------------------------------------
   DIRECTIONS (typographic personality + accent):
     manifiesto  · bold activist  (DEFAULT)
     solar       · warm editorial
     vanguardia  · dark avant-garde
   PANES (mood applied per section/sub-brand):
     base · deep · warm · nature · night
   ------------------------------------------------------------
   HOW IT WORKS (all single-attribute scopes, no compound selectors):
     1. [data-direction] sets per-pane INTERMEDIATE vars (--p-<pane>-<role>)
        for that direction, plus fonts / accent-on / cursor-blend.
     2. [data-pane] maps the SEMANTIC aliases (--surface, --ink, --muted,
        --line, --accent, --tint) to the active direction's intermediates.
   Set data-direction once on a root, data-pane per section.
   Components only ever read the semantic aliases.
   ============================================================ */

/* ---------- 1. RAW REFERENCE PALETTE ---------- */
/* Every direction × pane × role, frozen for docs/specimens. */
:root {
}

/* ---------- 2. DIRECTION SCOPES (intermediates + fonts) ---------- */
/* :root defaults to the manifiesto direction. */
:root {
}

[data-direction="solar"] { /* @kind color */
  --cursor-blend: normal; /* @kind other */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

[data-direction="manifiesto"] { /* @kind color */
  --cursor-blend: difference; /* @kind other */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

[data-direction="vanguardia"] { /* @kind color */
  --cursor-blend: screen; /* @kind other */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

/* ---------- 3. SEMANTIC ALIASES (mapped per pane) ---------- */
/* Default (no data-pane) = base. Each maps to the active direction. */
:root {
}
[data-pane="base"] {
}
[data-pane="deep"] {
}
[data-pane="warm"] {
}
[data-pane="nature"] {
}
[data-pane="night"] {
  --surface: var(--p-night-bg);
  --ink: var(--p-night-fg);
  --muted: var(--p-night-sub);
  --line: var(--p-night-line);
  --accent: var(--p-night-accent);
  --tint: var(--p-night-tint);
}

/* ── styles.css ── */

/* ── tokens/typography.css ── */
/* ============================================================
   Domenico Di Siena — TYPOGRAPHY
   Three fonts per direction, one type role system.
   Display = editorial voice · Body = reading · Mono = labels/meta.
   Font-family vars are set in colors.css (they change with
   data-direction). This file owns the SCALE and role tokens.
   ============================================================ */
:root { /* @kind font */      /* running text */
  --fs-sm:    15px; /* @kind font */                          /* card body */

  /* Mono / label scale */
  --fs-eyebrow: 12.5px; /* @kind font */   /* uppercase section eyebrow */
  --fs-meta:    13px; /* @kind font */     /* dates, meta */
  --fs-tag:     11px; /* @kind font */     /* project tags */
  --fs-micro:   10px; /* @kind font */
  --ls-eyebrow: .24em; /* @kind font */   /* wide-tracked uppercase eyebrow */
  --ls-tag:     .16em; /* @kind font */
  --ls-meta:    .04em; /* @kind font */
}

/* Direction-specific display weight (source uses heavier weights for the
   grotesque directions). */
[data-direction="manifiesto"] { --fw-display: 700; /* @kind font */ }
[data-direction="vanguardia"] { --fw-display: 700; /* @kind font */ }
[data-direction="solar"]      { --fw-display: 500; /* @kind font */ }

/* ── styles.css ── */

/* ── tokens/motion.css ── */
/* ============================================================
   Domenico Di Siena — MOTION
   Editorial, unhurried reveals. Easing + duration change per
   direction (manifiesto snaps, vanguardia glides, solar drifts).
   ============================================================ */
:root { /* @kind other */
}

/* Direction motion signatures (mirror the live site). */
[data-direction="solar"] {
  --reveal-dur: .95s; /* @kind other */ --reveal-ease: var(--ease-out); --reveal-dist: 32px; --bg-dur: .95s; /* @kind other */
}
[data-direction="manifiesto"] {
  --reveal-dur: .5s; /* @kind other */  --reveal-ease: var(--ease-snap); --reveal-dist: 46px; --bg-dur: .45s; /* @kind other */
}
[data-direction="vanguardia"] {
  --reveal-dur: 1.1s; /* @kind other */ --reveal-ease: var(--ease-snap); --reveal-dist: 26px; --bg-dur: 1.1s; /* @kind other */
}

@media (prefers-reduced-motion: reduce) {
  :root { --reveal-dur: .001s; /* @kind other */ --reveal-dist: 0px; --bg-dur: .001s; /* @kind other */ }
}

/* ── styles.css ── */

/* ── tokens/animations.css ── */
/* ============================================================
   Domenico Di Siena — ANIMATION LAYER
   The brand's default motion vocabulary, lifted from the live site.
   Two ways to use it:
     • ZERO-JS  — [data-reveal] elements animate on scroll via
                  scroll-driven timelines (no script needed). Content
                  is fully visible if the browser lacks support or the
                  user prefers reduced motion.
     • ENHANCED — load assets/dds-motion.js for stagger, magnetic pull,
                  the custom cursor, the rotating hero word and the
                  scroll-progress bar. The JS reuses these same keyframes.
   Durations / easings / distances come from tokens/motion.css and
   shift automatically with data-direction.
   ============================================================ */

/* ---------- 1. KEYFRAMES ---------- */
@keyframes dds-reveal-up   { from { opacity: 0; transform: translateY(var(--reveal-dist, 32px)); } to { opacity: 1; transform: none; } }
@keyframes dds-reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dds-reveal-scale{ from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
@keyframes dds-reveal-clip { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes dds-reveal-right{ from { opacity: 0; transform: translateX(calc(-1 * var(--reveal-dist, 32px))); } to { opacity: 1; transform: none; } }

/* ambient / continuous */
@keyframes dds-pulse-dot   { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes dds-drift       { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }

/* kinetic type (rotating hero word) — used by dds-motion.js */
@keyframes dds-word-in     { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dds-word-out    { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }

/* interaction */
@keyframes dds-underline   { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 2. ZERO-JS SCROLL REVEALS ---------- */
/* Default is a fade + rise; opt into other flavours with a value:
   data-reveal="fade" | "scale" | "clip" | "right".
   Base state is VISIBLE so no-JS / unsupported browsers show content. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: dds-reveal-up var(--reveal-ease, ease) both;
      animation-timeline: view();
      animation-range: entry 4% cover 24%;
    }
    [data-reveal="fade"]  { animation-name: dds-reveal-fade; }
    [data-reveal="scale"] { animation-name: dds-reveal-scale; }
    [data-reveal="clip"]  { animation-name: dds-reveal-clip; }
    [data-reveal="right"] { animation-name: dds-reveal-right; }
  }
}

/* ---------- 3. AMBIENT UTILITIES ---------- */
/* The breathing accent dot (chapter markers, "live" indicators). */
[data-pulse] { animation: dds-pulse-dot 2.4s ease-in-out infinite; }
/* Slow decorative float for background marks. */
[data-drift] { animation: dds-drift 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  [data-pulse], [data-drift] { animation: none !important; }
}

/* ---------- 4. INTERACTION UTILITIES ---------- */
/* Rise on hover (buttons already do this inline; use on any element). */
.dds-lift { transition: transform var(--dur-fast, .3s) var(--ease-out); }
.dds-lift:hover { transform: translateY(var(--hover-lift, -2px)); }

/* Card hover: interior tint wash + lift (matches ProjectCard). */
.dds-card-hover { transition: background-color var(--dur-med, .4s), transform var(--dur-med, .4s); }
.dds-card-hover:hover { background: var(--tint); transform: translateY(-3px); }

/* Draw-in underline for inline links. */
.dds-link { position: relative; text-decoration: none; color: inherit; }
.dds-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur-med, .4s) var(--ease-out);
}
.dds-link:hover::after { transform: scaleX(1); }

/* Whole-page retint transition when data-direction / data-pane flips. */
[data-direction], [data-pane] {
  transition: background-color var(--bg-dur, .45s) var(--ease-out),
              color var(--bg-dur, .45s) var(--ease-out);
}

/* ── styles.css ── */

/* ── tokens/spacing.css ── */
/* ============================================================
   Domenico Di Siena — SPACING & LAYOUT
   Generous editorial rhythm. Section padding is fluid; the page
   is a single centered measure with a wide gutter.
   ============================================================ */
:root {                  /* max content width */
  --gutter:    clamp(24px, 5vw, 72px); /* @kind spacing */  /* page side padding */
  --section-y: clamp(80px, 12vh, 150px); /* @kind spacing *//* vertical section rhythm */
  --gap-card:  clamp(16px, 1.5vw, 22px);
}

/* ── styles.css ── */


/* ── tokens/fonts.css ── */

/* ── tokens/colors.css ── */

/* ── tokens/typography.css ── */

/* ── tokens/motion.css ── */

/* ── tokens/animations.css ── */

/* ── tokens/spacing.css ── */



body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
a { color: inherit; }
a:hover { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[data-theme="pane-warm"] { --accent-on: var(--p-warm-bg); }
[data-theme="pane-base"], [data-theme="pane-deep"], [data-theme="pane-nature"], [data-pane="night"] { --accent-on: #0e0e0c; }

.site[data-direction] { --font-mono: var(--font-body); } /* taste-skill-ignore */
.site { --m: clamp(16px, 2.2vw, 32px); --gap: clamp(16px, 2vw, 28px); --sec: clamp(96px, 12vw, 190px); --expo: cubic-bezier(.16, 1, .3, 1); --io: cubic-bezier(.76, 0, .24, 1); --t-hero: 14.8vw; --t-h2: clamp(38px, 6.4vw, 116px); --t-h3: clamp(27px, 3vw, 46px); --t-lead: clamp(19px, 1.75vw, 25px); --dist: 14px; font-size: 17px; line-height: 1.5; }
.chap { background: var(--surface); color: var(--ink); transition: background-color .45s ease, color .3s ease; }
.pad { padding: var(--sec) var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--t-h2); line-height: .96; letter-spacing: -.03em; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.04; letter-spacing: -.02em; }
.lead { margin: 0; font-size: var(--t-lead); line-height: 1.4; }
.body { margin: 0; font-size: 17px; line-height: 1.5; }
.soft { color: inherit; }
.lnk { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: currentColor; transition: text-underline-offset .18s ease; }
.pic { display: block; margin: 0; overflow: clip; background: var(--tint); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap { margin: 10px 0 0; font-size: 15px; line-height: 1.4; }
.duo { background: var(--surface); }
.duo img { filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; }

/* Barra */
.bar { z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px var(--m); background: var(--surface); color: var(--ink); transition: background-color .3s ease, color .3s ease; position: relative; }
.bar-links, .bar-langs { display: none; }
.bar-links a, .bar-langs a, .bar-panel a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.bar-links { gap: clamp(16px, 2.2vw, 36px); font-size: 15px; font-weight: 500; }
.bar-langs { gap: 2px; font-size: 15px; }
.bar-langs a { min-width: 34px; justify-content: center; }
.bar-menu { all: unset; box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; font-size: 17px; font-weight: 500; cursor: pointer; }
.bar-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--m) 24px; background: var(--surface); transform-origin: top right; transition: opacity .24s var(--expo), transform .24s var(--expo), visibility .24s; opacity: 0; transform: translateY(-6px); visibility: hidden; }
.bar-panel.open { opacity: 1; transform: none; visibility: visible; }
.bar-panel a { display: flex; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); letter-spacing: -.02em; min-height: 52px; }
.bar-panel div { display: flex; gap: 18px; margin-top: 10px; }
.bar-panel div a { font-family: var(--font-body); font-weight: 400; font-size: 16px; letter-spacing: 0; min-height: 44px; }

/* Portada */
.hero { display: flex; flex-direction: column; min-height: min(calc(100svh - 60px), 920px); box-sizing: border-box; padding: clamp(16px, 3.5vh, 44px) var(--m) calc(var(--m) + 4px); overflow: clip; }
.hero-h1 { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--t-hero); line-height: .9; letter-spacing: -.03em; }
.ln { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.03em; }
.ln-r { text-align: right; }
.ln-in { display: inline-block; white-space: nowrap; padding-right: .02em; }
.words { display: inline-grid; justify-items: end; vertical-align: baseline; }
.w { display: none; grid-area: 1 / 1; white-space: nowrap; }
.w.on { display: block; }
.w.was { display: block; visibility: hidden; }
.dot { color: var(--accent); transition: color .3s ease; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: clamp(14px, 3vh, 34px); font-size: var(--t-lead); }
.pick-l { margin-right: .4em; }
.pick button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .45em; cursor: pointer; font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: background-color .18s ease, color .18s ease, transform .14s var(--expo); }
.pick button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.pick button:active { transform: scale(.97); }
.pick button[aria-pressed="true"] { background: var(--ink); color: var(--surface); text-decoration: none; }
.hero-end { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.says { display: grid; }
.say { grid-area: 1 / 1; margin: 0; font-size: var(--t-lead); line-height: 1.35; max-width: 46ch; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
.say.on { opacity: 1; visibility: visible; transition: opacity .4s ease .12s; }
.cta a, .cta button { box-sizing: border-box; width: 100%; justify-content: center; font-size: 17px !important; font-weight: 500; letter-spacing: 0 !important; min-height: 54px; }

/* Quién soy */
.me { row-gap: 44px; }
.me-t { grid-column: 1 / -1; }
.me-p { grid-column: 1 / -1; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); margin-top: 40px; }
.fact b { display: block; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--t-h2); line-height: .95; letter-spacing: -.03em; }
.fact span { display: block; margin-top: 8px; font-size: 17px; line-height: 1.35; }
.me-i { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 5; margin-bottom: -20px; }

/* Public Mesh */
.pm-top { row-gap: 26px; }
.pm-t { grid-column: 1 / -1; }
.pm-s { grid-column: 1 / -1; }
.idx { position: relative; list-style: none; margin: clamp(48px, 7vw, 110px) 0 0; padding: 0; }
.idx li + li { margin-top: 40px; }
.idx-row { display: block; text-decoration: none; }
.idx-name { display: block; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--t-h2); line-height: 1; letter-spacing: -.03em; transition: color .18s ease; }
.idx-desc { display: block; margin-top: 8px; font-size: var(--t-lead); line-height: 1.35; }
.pm-go { margin-top: clamp(40px, 5vw, 72px); }

/* Living Democracy */
.ld-top { row-gap: 26px; }
.ld-t { grid-column: 1 / -1; }
.ld-s { grid-column: 1 / -1; margin: 0; font-size: clamp(19px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -.01em; font-weight: 500; }
.block { row-gap: 28px; margin-top: clamp(72px, 10vw, 160px); }
.b-l { grid-column: 1 / -1; }
.b-r { grid-column: 1 / -1; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.035em; overflow: clip; padding-bottom: .08em; }
.steps span { display: block; }
.rows { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; gap: 24px; }
.row-a { display: block; text-decoration: none; }
.row-a b { display: inline; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -.02em; }
.row-a span { display: block; margin-top: 6px; }
.cons-top { row-gap: 22px; }
.cons-t { grid-column: 1 / -1; }
.cons-s { grid-column: 1 / -1; }
.mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px var(--gap); margin-top: clamp(40px, 5vw, 80px); }
.mod b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -.02em; }
.mod span { display: block; margin-top: 8px; }
.tb-h { margin: clamp(56px, 7vw, 110px) 0 18px; font-size: var(--t-lead); font-weight: 500; }
.tb { width: 100%; border-collapse: collapse; }
.tb thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tb tr { display: block; padding: 9px 0; }
.tb td { display: inline; padding: 0; font-size: 15px; line-height: 1.4; }
.tb td:first-child { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-lead); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin-bottom: 2px; }
.tb td:nth-child(3):not(:empty)::before { content: " · "; }
.tb td:nth-child(4):not(:empty)::before { content: " · "; }
.ds { row-gap: 30px; }
.ds-i { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.ds-x { grid-column: 1 / -1; }
.roles { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 16px; }
.roles b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -.02em; }

/* Tiers lieux */
.tl-top { row-gap: 26px; }
.tl-t { grid-column: 1 / -1; }
.tl-s { grid-column: 1 / -1; }
.open { margin-top: clamp(40px, 6vw, 90px); }
.open-st { aspect-ratio: 3 / 2; overflow: clip; }
.open-st img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.addr { display: block; }
.addr > * { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; box-sizing: border-box; min-height: clamp(84px, 11vw, 170px); padding: 12px var(--m); margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--t-h2); line-height: 1; letter-spacing: -.03em; text-decoration: none; }
.addr > :nth-child(even) { background: color-mix(in srgb, var(--surface) 92%, var(--ink)); }
.addr > .go { background: var(--p-base-accent); color: #0e0e0c; transition: background-color .18s ease; }
.addr .ar { flex: none; transition: transform .36s var(--expo); }
.tl-x { row-gap: 30px; margin-top: clamp(40px, 6vw, 90px); }
.tl-a { grid-column: 1 / -1; }
.tl-p { grid-column: 1 / -1; }
.tl-p .pic { aspect-ratio: 40 / 21; }
.tl-q { grid-column: 1 / -1; }
.tl-q .pic { aspect-ratio: 1 / 1; }
.past { row-gap: 22px; margin-top: clamp(64px, 9vw, 150px); }
.past-t { grid-column: 1 / -1; }
.past-l { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.past-l b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -.02em; }
.past-l i { display: block; font-style: normal; margin-top: 2px; font-weight: 500; }
.past-l span { display: block; margin-top: 2px; }

/* Sensus Cívica */
.ss-top { row-gap: 26px; }
.ss-t { grid-column: 1 / -1; }
.ss-q { grid-column: 1 / -1; margin: 0; font-size: clamp(19px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -.01em; font-weight: 500; }
.ss-s { grid-column: 1 / -1; }
.offer { margin-top: clamp(40px, 6vw, 90px); box-sizing: border-box; padding: clamp(24px, 3vw, 48px); background: var(--p-nature-tint); display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 5vw, 80px); }
.offer > h3 { flex: 1 1 320px; min-width: 0; }
.offer > div { flex: 2 1 420px; min-width: 0; }
.nlw { row-gap: 32px; }
.nlw-l { grid-column: 1 / -1; }
.nlw-f { grid-column: 1 / -1; }
.nl { display: flex; flex-direction: column; gap: 16px; }
.nl label { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 500; }
.nl input[type="email"] { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 400 17px/1.4 var(--font-body); }
.nl input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.nl-legal { margin: 0; font-size: 15px; line-height: 1.45; }

/* Hablemos */
.hab { row-gap: 40px; }
.hab-l { grid-column: 1 / -1; }
.hab-f { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 18px; }
.hab-f label { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 500; }
.hab-f input, .hab-f textarea { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px; border: 1px solid var(--muted); border-radius: 0; background: transparent; color: var(--ink); font: 400 17px/1.4 var(--font-body); transition: border-color .18s ease; }
.hab-f input:focus, .hab-f textarea:focus { outline: none; border-color: var(--ink); }

/* Pie */
.foot { position: relative; padding: clamp(32px, 4vw, 56px) var(--m) 16px; display: grid; gap: clamp(56px, 12vw, 200px); }
.foot > * { min-width: 0; }
.f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); font-size: 17px; line-height: 1.3; }
.f-cols p { margin: 0 0 8px; font-weight: 600; }
.f-cols a { display: flex; align-items: center; min-height: 34px; text-decoration: none; overflow-wrap: anywhere; }
.f-mail { grid-column: 1 / -1; }
.f-word { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); line-height: .84; letter-spacing: -.04em; font-size: 22vw; white-space: nowrap; }
.f-word span { display: block; }
.f-word em { font-style: normal; color: var(--p-base-accent); }
.f-legal { margin: 14px 0 0; font-size: 15px; }

@media (min-width: 600px) {
  .site { --t-hero: min(16vw, 300px); }
  .me-i { aspect-ratio: 4 / 3; }
  .tl-p { grid-column: 1 / 9; }
  .tl-q { grid-column: 9 / -1; }
}

/* Escritorio: ratón y pantalla ancha */
@media (min-width: 900px) {
  .bar { position: sticky; top: 0; }
  .bar-links, .bar-langs { display: flex; }
  .bar-menu, .bar-panel { display: none; }
  .hero-end { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .cta a, .cta button { width: auto; }
  .me-t { grid-column: 1 / 8; grid-row: 1; }
  .me-p { grid-column: 1 / 7; grid-row: 2; }
  .facts { grid-column: 1 / 8; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
  .me-i { grid-column: 8 / -1; grid-row: 1 / span 3; order: 0; aspect-ratio: auto; min-height: 100%; margin-bottom: 0; }
  .pm-t { grid-column: 1 / 8; }
  .pm-s { grid-column: 8 / -1; align-self: end; }
  .idx li + li { margin-top: clamp(28px, 3vw, 48px); }
  .idx-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; }
  .idx-name { grid-column: 1 / 8; }
  .idx-desc { grid-column: 8 / -1; margin-top: 0; }
  .ld-t { grid-column: 1 / -1; }
  .ld-s { grid-column: 7 / -1; }
  .b-l { grid-column: 1 / 5; position: sticky; top: 76px; align-self: start; }
  .b-r { grid-column: 5 / -1; }
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .cons-t { grid-column: 1 / 7; }
  .cons-s { grid-column: 7 / -1; }
  .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb thead { position: static; width: auto; height: auto; clip-path: none; }
  .tb tr { display: table-row; padding: 0; }
  .tb th { padding: 0 var(--gap) 12px 0; text-align: left; font: 500 15px/1.3 var(--font-body); }
  .tb td, .tb td:first-child { display: table-cell; padding: .28em var(--gap) .28em 0; font: 400 var(--t-lead)/1.25 var(--font-body); letter-spacing: 0; color: var(--ink); vertical-align: baseline; margin: 0; }
  .tb td:nth-child(3):not(:empty)::before, .tb td:nth-child(4):not(:empty)::before { content: none; }
  .tb td:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .tb th:last-child { text-align: right; padding-right: 0; }
  .ds-i { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
  .ds-x { grid-column: 8 / -1; }
  .tl-t { grid-column: 1 / -1; }
  .tl-s { grid-column: 7 / -1; }
  .tl-a { grid-column: 1 / 5; }
  .tl-p { grid-column: 5 / 10; }
  .tl-q { grid-column: 10 / -1; }
  .past-t { grid-column: 1 / 5; }
  .past-l { grid-column: 5 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px var(--gap); }
  .ss-t { grid-column: 1 / -1; }
  .ss-q { grid-column: 1 / 7; }
  .ss-s { grid-column: 8 / -1; }
  .nlw-l { grid-column: 1 / 7; }
  .nlw-f { grid-column: 8 / -1; }
  .hab-l { grid-column: 1 / 7; }
  .hab-f { grid-column: 8 / -1; }
  .f-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-mail { grid-column: auto; }
  .f-word { font-size: 12.3vw; }
  .f-word span { display: inline; }
}
@media (hover: hover) and (pointer: fine) {
  .bar-links a, .bar-langs a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .28em; transition: text-decoration-color .18s ease; }
  .bar-links a:hover, .bar-langs a:hover { text-decoration-color: currentColor; }
  .lnk:hover { text-underline-offset: .34em; }
  .pick button:hover { background: var(--tint); }
  .pick button[aria-pressed="true"]:hover { background: var(--ink); }
  .addr > .go:hover .ar { transform: translateX(.18em); }
  .f-cols a:hover { text-decoration: underline; text-underline-offset: .22em; }
}

/* Movimiento común */
@media (prefers-reduced-motion: no-preference) {
  .hero .ln-in { animation: dd-line .9s var(--expo) both; animation-delay: calc(80ms + var(--i) * 110ms); }
  .hero .hero-lo { animation: dd-rise .5s var(--expo) .42s both; }
  .w.on { animation: dd-word-in .8s var(--expo) both; }
  .w.was { visibility: visible; animation: dd-word-out .5s var(--io) both; }
  [data-rv] { transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .9s var(--expo); transition-delay: var(--d, 0ms); }
  [data-rv].pre:not(.is-in) { opacity: 0; transform: translateY(var(--dist)); }
  [data-line] > span { transition: transform .9s var(--expo); transition-delay: var(--d, 0ms); }
  [data-line].pre:not(.is-in) > span { transform: translateY(108%); }
  [data-shut] img { transition: clip-path 1.1s var(--io), transform 1.4s cubic-bezier(.33, 1, .68, 1); }
   [data-shut].pre:not(.is-in) img { clip-path: inset(0 0 100% 0); transform: scale(1.1); }
  .pre:not(.is-in), .pre:not(.is-in) > span, .pre:not(.is-in) img { transition: none; }
}
@keyframes dd-word-in { from { transform: translateY(112%); } to { transform: none; } }
@keyframes dd-word-out { from { transform: none; } to { transform: translateY(-112%); visibility: hidden; } }
@keyframes dd-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes dd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Movimiento en móvil: cortinas laterales, recorridos cortos, sin nada fijado */
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .site { --dist: 12px; }
  [data-rv] { transition-duration: .45s, .55s; }
  [data-line] > span { transition-duration: .6s; }
  [data-shut] img, [data-shut-m] img { transition: clip-path .8s var(--io), transform 1s cubic-bezier(.33, 1, .68, 1); }
  [data-shut].pre:not(.is-in) img, [data-shut-m].pre:not(.is-in) img { clip-path: inset(0 100% 0 0); transform: scale(1.04); }
  .cta a:active, .row-a:active, .idx-row:active, .addr > a:active { opacity: .72; }
}

/* Movimiento en escritorio: ventana que se abre, deriva de imágenes, pie que se descubre */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .site { --dist: 28px; }
  .open-st { aspect-ratio: auto; height: min(100svh, 920px); }
  @supports (animation-timeline: view()) {
    .open { height: calc(min(100svh, 920px) * 2); view-timeline-name: --dd-open; margin-left: calc(var(--m) * -1); margin-right: calc(var(--m) * -1); }
    .open-st { position: sticky; top: 0; animation: dd-window linear both; animation-timeline: --dd-open; animation-range: contain 0% contain 80%; }
    .open-st img { animation: dd-settle linear both; animation-timeline: --dd-open; animation-range: contain 0% contain 80%; }
    .drift img { height: 112%; animation: dd-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .f-word { animation: dd-word linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; transform-origin: 0 100%; }
  }
}
@keyframes dd-window { from { clip-path: inset(16% 26%); } to { clip-path: inset(0); } }
@keyframes dd-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes dd-drift { from { transform: translateY(0); } to { transform: translateY(-10.7%); } }
@keyframes dd-word { from { transform: scale(.94); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chap, .bar, .say { transition: none !important; } }

/* Solo en producción */
.skip, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 8px; top: 8px; z-index: 100; width: auto; height: auto; clip-path: none; padding: 10px 14px; background: #0e0e0c; color: #e9e5d7; }
altcha-widget { --altcha-border-radius: 0; --altcha-color-base: transparent; --altcha-color-border: var(--muted); --altcha-color-text: var(--ink); --altcha-max-width: 100%; display: block; }
.cta a, .cta button { transition: transform .14s cubic-bezier(.22, 1, .36, 1), background-color .18s ease, color .18s ease; }
.cta a:active, .cta button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cta a:hover, .cta button:hover { transform: translateY(-2px); } }

.bar-langs a[aria-current], .bar-panel a[aria-current] { text-decoration: underline; text-underline-offset: .28em; }
html[lang="fr"] .site { --t-hero: 10.6vw; }
@media (min-width: 600px) { html[lang="fr"] .site { --t-hero: min(11.6vw, 225px); } }
@media (min-width: 900px) { html[lang="it"] .pm-t { grid-column: 1 / -1; } html[lang="it"] .pm-s { grid-column: 7 / -1; } }
@media (min-width: 600px) and (max-width: 899px) { .hero { min-height: min(calc(100svh - 60px), 760px); } }
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  [data-line] > span { transition: opacity .45s ease, transform .55s var(--expo); transition-delay: var(--d, 0ms); }
  [data-line].pre:not(.is-in) > span { opacity: 0; transform: translateY(12px); }
}
html[lang="fr"] .ld-s, html[lang="fr"] .ss-q { font-size: clamp(19px, 2.1vw, 30px); }
.logos-h { margin-top: clamp(40px, 5vw, 76px); }
.mq { margin: clamp(14px, 1.6vw, 24px) calc(var(--m) * -1) 0; overflow: clip; }
.mq-t { display: flex; width: max-content; }
.logos { list-style: none; margin: 0; padding: 0 var(--gap) 0 0; display: flex; gap: var(--gap); }
.logos li { flex: none; width: clamp(112px, 13vw, 190px); aspect-ratio: 27 / 20; overflow: clip; }
.logos img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mq-i img { filter: invert(1); }
.mq + .tb { margin-top: clamp(28px, 4vw, 56px); }
@media (prefers-reduced-motion: no-preference) {
  .mq-t { animation: dd-mq 88s linear infinite; }
  .mq-b .mq-t { animation-duration: 138s; }
  .mq-m .mq-t { animation-duration: 110s; }
  .mq:hover .mq-t, .mq.is-paused .mq-t { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .mq { margin-inline: 0; }
  .mq-t { width: auto; }
  .logos { flex-wrap: wrap; padding-right: 0; }
  .logos[aria-hidden] { display: none; }
  .logos li:has(img[alt=""]) { display: none; }
}
@keyframes dd-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
