/* =====================================================================
   CONSELHO DE VETERANOS DO UPCA — Magnum Concilium Veteranorum
   Monochrome heraldic system. Black & bone only, hairline rules,
   engraved type. No colour, no CDN, no icon font.

   Contents
     01. Fonts
     02. Tokens (colour · type scale · space scale · motion)
     03. Reset & base
     04. Atmosphere (grain / vignette / grid)
     05. Chrome (skip link · progress · cursor · icons)
     06. Primitives (container · section head · eyebrow · ghost word · buttons)
     07. Navigation
     08. Hero
     09. Marquee
     10. Manifesto
     11. Stats
     12. Coverflow rails (hierarquia · períodos)
     13. News
     14. Gallery + lightbox
     15. Código (download)
     16. FAQ
     17. Footer + back-to-top
     18. News modal
     19. Reveal + living-engraving systems
     20. Responsive
     21. No-JS · focus · reduced motion
   ===================================================================== */

/* ─── 01. FONTS ───────────────────────────────────────────────────── */
@font-face { font-family: 'Didot'; src: url('../fonts/didot.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Didot'; src: url('../fonts/didot-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Didot'; src: url('../fonts/didot-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DINPro'; src: url('../fonts/dinpro-medium.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINPro'; src: url('../fonts/dinpro-bold.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }

/* ─── 02. TOKENS ──────────────────────────────────────────────────── */
:root {
    /* Ink — near-black chamber layers, darkest to lightest */
    --ink-950: #030303;
    --ink-900: #070706;
    --ink-850: #0d0c0b;
    --ink-800: #111010;
    --ink-700: #171615;

    /* Bone / ash — warm monochrome on black */
    --bone: #f4f1ea;
    --bone-dim: #d9d4c9;
    --ash: #b5afa5;
    --ash-dim: #918b81;

    /* Hairlines & glow */
    --line: rgba(244, 241, 234, .16);
    --line-2: rgba(244, 241, 234, .06);
    --line-3: rgba(244, 241, 234, .03);
    --glow: rgba(244, 241, 234, .16);

    /* Type families — Didot (display + motto italic) · DIN Pro (UI/body) */
    --f-display: 'Didot', Georgia, 'Times New Roman', serif;
    --f-poster: 'DINPro', Impact, sans-serif;
    --f-body: 'DINPro', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Fluid type scale. The slopes are unchanged — only the ceilings were
       raised, so nothing below ~1250px shifts; the scale simply keeps growing
       to ~1900–2250px instead of freezing at laptop width. */
    --fs-2xs: clamp(.66rem, .64rem + .06vw, .72rem);
    --fs-xs: clamp(.7rem, .68rem + .1vw, .82rem);
    --fs-sm: clamp(.8rem, .77rem + .14vw, .95rem);
    --fs-md: clamp(.95rem, .91rem + .2vw, 1.15rem);
    --fs-lg: clamp(1.06rem, .99rem + .32vw, 1.42rem);
    --fs-xl: clamp(1.25rem, 1.1rem + .7vw, 2.1rem);
    --fs-2xl: clamp(1.5rem, 1.2rem + 1.4vw, 3rem);
    --fs-3xl: clamp(2rem, 1.4rem + 2.8vw, 5rem);
    --fs-4xl: clamp(2.7rem, 1.3rem + 6.4vw, 9rem);

    /* Tracking */
    --tr-tight: -.01em;
    --tr-wide: .18em;
    --tr-wider: .28em;
    --tr-widest: .42em;

    /* Space scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 44px;
    --s-8: 60px;
    --s-9: 84px;
    --s-section: clamp(80px, 12vw, 230px);
    --s-head: clamp(44px, 6.5vw, 120px);

    /* Motion */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);

    /* Layout. --maxw stays at 1240px until ~1410px, then tracks the viewport
       up to 1600px so wide displays get content instead of dead margin. */
    --maxw: clamp(1240px, 90vw, 1900px);
    --pad: clamp(20px, 5vw, 80px);
    --nav-h: 76px;
    --radius: 2px;
    --card-w: clamp(250px, 74vw, 384px);   /* coverflow rail card */

    /* Elevation */
    --shadow-card: 0 30px 60px -34px #000;
    --shadow-lift: 0 44px 88px -38px #000;
}

/* ─── 03. RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--ink-900);
    color: var(--bone);
    font-family: var(--f-body);
    font-weight: 400;
    font-size: var(--fs-md);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

::selection { background: var(--bone); color: var(--ink-900); }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
em { font-style: italic; color: var(--bone); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--bone);
    line-height: 1.1;
    letter-spacing: .5px;
    text-wrap: balance;
}
p { color: var(--ash); text-wrap: pretty; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: #4a4540; border: 3px solid var(--ink-900); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #5e584f; }

/* The inline <symbol> sprite must never occupy layout. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ─── 04. ATMOSPHERE ──────────────────────────────────────────────── */
.grain {
    position: fixed; inset: -120%; z-index: 9000;
    pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 7s steps(6) infinite;
}
@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-6%, 4%); }
    40%  { transform: translate(4%, -6%); }
    60%  { transform: translate(-4%, 6%); }
    80%  { transform: translate(6%, -2%); }
    100% { transform: translate(0, 0); }
}

/* Corner-only vignette. The transparent stop has to clear the bottom edge of
   the viewport, or every footer/CTA that lands there is dimmed ~35%. */
.vignette {
    position: fixed; inset: 0; z-index: 8000; pointer-events: none;
    background: radial-gradient(135% 120% at 50% 38%, transparent 68%, rgba(0, 0, 0, .5) 100%);
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(var(--line-3) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-3) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}

/* ─── 05. CHROME ──────────────────────────────────────────────────── */
.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 10001;
    transform: translateY(-200%);
    background: var(--bone); color: var(--ink-900);
    padding: 12px 22px; border-radius: var(--radius);
    font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
    transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; background: var(--line-3); }
.scroll-progress span {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--ash), var(--bone));
    box-shadow: 0 0 12px var(--glow);
}

.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.has-cursor .cursor { opacity: 1; }
.cursor-dot {
    position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
    background: var(--bone); transform: translate(-50%, -50%);
}
.cursor-ring {
    position: fixed; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(244, 241, 234, .45); transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.hovering { width: 64px; height: 64px; border-color: rgba(244, 241, 234, .9); background: rgba(244, 241, 234, .06); }
.cursor-ring.pressing { width: 28px; height: 28px; }
.has-cursor a, .has-cursor button, .has-cursor [data-magnetic], .has-cursor .gallery-item, .has-cursor summary { cursor: none; }

/* Hairline icon system — inherits colour and font-size from its context. */
.ico {
    width: 1em; height: 1em; flex: 0 0 auto;
    fill: none; stroke: currentColor;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
    overflow: visible;
}

/* ─── 06. PRIMITIVES ──────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }

.section-head { text-align: center; margin-bottom: var(--s-head); }

/* Roman chapter numeral — a hairline medallion above the eyebrow. */
.section-index {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: 50%;
    font-family: var(--f-display); font-weight: 700;
    font-size: var(--fs-xs); line-height: 1;
    letter-spacing: .1em; padding-left: .1em;
    color: var(--ash-dim);
    margin-bottom: var(--s-5);
    transition: color .4s var(--ease), border-color .4s var(--ease);
}
.section-head .section-index { margin-inline: auto; }

.eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: var(--fs-xs);
    letter-spacing: var(--tr-widest);
    text-transform: uppercase;
    color: var(--ash-dim);
    margin-bottom: var(--s-4);
    padding-left: .42em;
    position: relative;
}

.section-title {
    font-size: var(--fs-3xl);
    text-transform: uppercase;
    letter-spacing: clamp(0px, .15vw, 2px);
    line-height: 1.04;
}
.section-subtitle {
    font-family: var(--f-body); font-style: italic;
    color: var(--ash); font-size: var(--fs-lg);
    margin: var(--s-4) auto 0; max-width: clamp(540px, 40vw, 680px);
}

/* Ghost watermark words behind sections */
.ghost-word {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, calc(-50% + var(--py, 0px)));
    font-family: var(--f-poster);
    font-size: clamp(5rem, 22vw, 26rem); line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 241, 234, .022);
    letter-spacing: .04em; white-space: nowrap;
    pointer-events: none; z-index: 0; user-select: none;
}
.ghost-word.ghost-right { left: auto; right: -4%; transform: translate(0, calc(-50% + var(--py, 0px))); }

/* Corner ticks — the shared plate signature, echoed from the document seal.
   Diagonal pair (top-left / bottom-right) on every interactive card. */
.rank-card::before, .rank-card::after,
.news-card::before, .news-card::after {
    content: ''; position: absolute; z-index: 2;
    width: 13px; height: 13px;
    border: 0 solid var(--bone); opacity: 0; pointer-events: none;
    transition: opacity .45s var(--ease);
}
.rank-card::before, .news-card::before {
    top: 9px; left: 9px; border-top-width: 1px; border-left-width: 1px;
}
.rank-card::after, .news-card::after {
    bottom: 9px; right: 9px; border-bottom-width: 1px; border-right-width: 1px;
}
.rank-card.is-active::before, .rank-card.is-active::after,
.news-card:hover::before, .news-card:hover::after,
.news-card:focus-visible::before, .news-card:focus-visible::after { opacity: .5; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 34px;
    font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: .22em;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: transparent; color: var(--bone);
    cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
    transition: color .4s var(--ease), border-color .4s var(--ease), transform .25s var(--ease);
    will-change: transform;
}
.btn .ico { transition: transform .35s var(--ease); font-size: 1.15em; }
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--bone); transform: translateY(101%);
    transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink-900); border-color: var(--bone); }
.btn:hover .ico { transform: translateX(5px); }
.btn-solid { background: var(--bone); color: var(--ink-900); border-color: var(--bone); }
.btn-solid::before { background: var(--ink-900); }
.btn-solid:hover { color: var(--bone); border-color: var(--bone); }
.load-more-btn:hover .ico { transform: translate(0, 4px); }

/* ─── 07. NAVIGATION ──────────────────────────────────────────────── */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1100;
    padding: clamp(18px, 1.5vw, 26px) 0;
    background: rgba(6, 6, 6, 0);
    border-bottom: 1px solid transparent;
    transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
    transform: translateY(-100%);
    animation: nav-drop .8s var(--ease-out) 1.6s forwards;
}
@keyframes nav-drop { to { transform: translateY(0); } }
#navbar.scrolled {
    padding: clamp(11px, .9vw, 17px) 0;
    background: rgba(6, 6, 6, .78);
    backdrop-filter: blur(10px) saturate(.9);
    -webkit-backdrop-filter: blur(10px) saturate(.9);
    border-bottom-color: var(--line-2);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.logo-link { display: flex; align-items: center; gap: 13px; }
.logo-mini { height: clamp(38px, 2.9vw, 52px); width: auto; transition: transform .5s var(--ease); }
.logo-link:hover .logo-mini { transform: rotate(-6deg) scale(1.06); }
.logo-lockup { display: flex; flex-direction: column; gap: 3px; }
.logo-word { font-family: var(--f-display); font-weight: 700; letter-spacing: var(--tr-wider); font-size: clamp(.84rem, .76rem + .12vw, 1.02rem); color: var(--bone); line-height: 1; }
.logo-sub {
    font-family: var(--f-body); font-size: .54rem; font-weight: 500;
    letter-spacing: .24em; text-transform: uppercase; color: var(--ash-dim); line-height: 1;
    transition: color .35s var(--ease);
}
.logo-link:hover .logo-sub { color: var(--ash); }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 52px); align-items: center; }
.nav-links a {
    font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: .16em;
    color: var(--bone-dim); opacity: .7;
    position: relative; padding: 6px 0;
    transition: opacity .3s var(--ease);
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--bone); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links__foot { display: none; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--f-body); font-size: var(--fs-2xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: var(--tr-wide);
    padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--bone);
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
    will-change: transform;
}
.nav-cta:hover { background: var(--bone); color: var(--ink-900); border-color: var(--bone); }
.nav-cta .ico { font-size: .9rem; transition: transform .3s var(--ease); }
.nav-cta:hover .ico { transform: translateY(2px); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { width: 26px; height: 2px; background: var(--bone); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
    position: fixed; inset: 0; z-index: 1080;
    background: rgba(3, 3, 3, .6);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .4s var(--ease);
}
.nav-scrim.show { opacity: 1; }

/* ─── 08. HERO ────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center;
    background: radial-gradient(85% 70% at 50% 38%, #0b0a09 0%, var(--ink-950) 72%);
}
.hero-layers { position: absolute; inset: -8%; z-index: 0; }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(80% 60% at 50% 42%, rgba(0, 0, 0, .25), rgba(6, 6, 6, .9) 100%),
        linear-gradient(180deg, rgba(6, 6, 6, .7) 0%, rgba(6, 6, 6, .35) 40%, var(--ink-900) 100%);
}
.hero-eclipse {
    position: absolute; top: 46%; left: 50%; width: 78vmin; height: 78vmin;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
    animation: candle-eclipse 7.3s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes candle-eclipse {
    0%, 100% { opacity: .50; transform: translate(-50%, -50%) scale(1); }
    34% { opacity: .82; transform: translate(-50%, -50%) scale(1.10); }
    47% { opacity: .60; transform: translate(-50%, -50%) scale(1.04); }
    63% { opacity: .78; transform: translate(-50%, -50%) scale(1.08); }
}
.hero-aurora {
    position: absolute; bottom: -30%; left: 50%; width: 140%; height: 60%;
    transform: translateX(-50%);
    background: radial-gradient(60% 100% at 50% 100%, rgba(244, 241, 234, .06), transparent 70%);
    pointer-events: none;
}

/* Photo montage + drifting mini-skulls */
.hero-photos { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo-slide {
    position: absolute; inset: -5%;
    background-size: cover; background-position: center;
    filter: grayscale(1) contrast(1.06) brightness(.46);
    opacity: 0; will-change: opacity, transform;
    animation: photo-cycle var(--cycle, 27s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
@keyframes photo-cycle {
    0%   { opacity: 0;   transform: scale(1); }
    6%   { opacity: .24; }
    28%  { opacity: .24; }
    36%  { opacity: 0;   transform: scale(1.1); }
    100% { opacity: 0;   transform: scale(1); }
}
.hero-skulls { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.skull-mote {
    position: absolute; display: block; height: auto;
    opacity: 0; will-change: transform, opacity;
    animation: mote-drift var(--mdur, 26s) linear infinite;
    animation-delay: var(--mdelay, 0s);
}
@keyframes mote-drift {
    0%   { transform: translate(0, 38px) rotate(-7deg) scale(.92); opacity: 0; }
    22%  { opacity: .06; }
    50%  { transform: translate(18px, -10px) rotate(4deg) scale(1.04); }
    78%  { opacity: .06; }
    100% { transform: translate(-10px, -64px) rotate(7deg) scale(.94); opacity: 0; }
}
.hero-layers.bg-paused .hero-photo-slide,
.hero-layers.bg-paused .skull-mote { animation-play-state: paused; }

.hero-content {
    position: relative; z-index: 3;
    width: 100%; max-width: min(clamp(920px, 70vw, 1340px), 92vw); margin-inline: auto;
    padding: 0 var(--pad);
    display: flex; flex-direction: column; align-items: center;
}

.hero-kicker {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    font-family: var(--f-body); font-size: clamp(.6rem, 1.2vw, .72rem);
    letter-spacing: .36em; text-transform: uppercase;
    color: var(--ash); margin-bottom: clamp(22px, 3.5vh, 34px);
    max-width: 100%;
}
.hk-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-line { flex: 0 0 auto; width: clamp(18px, 5vw, 54px); height: 1px; background: var(--line); }

.hero-crest-wrap { margin-bottom: clamp(18px, 2.6vh, 28px); position: relative; will-change: transform; }
.hero-crest {
    width: clamp(150px, 20vw, 300px); height: auto; margin: 0 auto;
    filter: drop-shadow(0 0 44px var(--glow));
    transition: transform .6s var(--ease);
}

.hero-title {
    font-family: var(--f-display); font-weight: 800;
    text-transform: uppercase; line-height: .92;
    margin-bottom: clamp(22px, 3.2vh, 34px);
    max-width: 100%; text-wrap: balance;
}
.hero-title .line { display: block; overflow-y: clip; overflow-x: visible; overflow-wrap: break-word; max-width: 100%; }
.hero-title .line--sm {
    font-size: clamp(1rem, 3.4vw, 1.7rem);
    letter-spacing: clamp(3px, 1vw, 9px);
    color: var(--bone-dim);
    margin-bottom: .1em; padding-left: clamp(3px, 1vw, 9px);
}
.hero-title .line--xl {
    font-size: var(--fs-4xl);
    letter-spacing: clamp(0px, .2vw, 3px);
    line-height: .86; color: var(--bone);
    filter: drop-shadow(0 0 44px rgba(244, 241, 234, .2)) drop-shadow(0 6px 28px rgba(0, 0, 0, .5));
}
.hero-title .ll-sheen { display: inline-block; color: inherit; }
.hero-title .line--tag {
    margin-top: clamp(.55em, 1.4vh, .8em);
    font-size: clamp(.78rem, 2vw, 1.05rem);
    letter-spacing: var(--tr-widest); padding-left: .42em;
    color: var(--ash);
    display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 22px);
}
.hero-title .line--tag::before, .hero-title .line--tag::after {
    content: ''; width: clamp(18px, 6vw, 56px); height: 1px; background: var(--line);
}

/* "light drawing" sheen on the monumental word */
@media (prefers-reduced-motion: no-preference) {
    @supports ((-webkit-background-clip: text) or (background-clip: text)) {
        .hero-title .ll-sheen {
            background: linear-gradient(100deg, var(--bone) 42%, #fffdf6 50%, var(--bone) 58%);
            background-size: 250% 100%; background-position: 140% 0;
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; color: transparent;
            animation: title-sheen 7.5s ease-in-out infinite;
        }
    }
}
@keyframes title-sheen { 0%, 100% { background-position: 140% 0; } 50% { background-position: -40% 0; } }

.hero-details { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 22px); margin-bottom: clamp(30px, 4.5vh, 44px); max-width: 100%; }
.hero-details .sep { width: clamp(20px, 7vw, 72px); height: 1px; background: linear-gradient(90deg, transparent, var(--ash), transparent); }
.hero-motto {
    font-family: var(--f-display); font-style: italic;
    font-size: clamp(1.05rem, 2.6vw, 1.5rem); color: var(--bone-dim);
    letter-spacing: .5px; white-space: nowrap; max-width: 100%;
}
.hero-actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }

/* Hero staggered entrance */
[data-hero] { opacity: 0; transform: translateY(26px); }
.loaded [data-hero] { animation: hero-in 1s var(--ease-out) forwards; }
.loaded [data-hero="1"] { animation-delay: .05s; }
.loaded [data-hero="2"] { animation-delay: .18s; }
.loaded [data-hero="3"] { animation-delay: .34s; }
.loaded [data-hero="4"] { animation-delay: .46s; }
.loaded [data-hero="5"] { animation-delay: .58s; }
.loaded [data-hero="6"] { animation-delay: .74s; }
.loaded [data-hero="7"] { animation-delay: .9s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0; animation: fade-up 1s var(--ease-out) 1.8s forwards;
}
.mouse { width: 24px; height: 38px; border: 1.5px solid rgba(244, 241, 234, .4); border-radius: 14px; position: relative; }
.mouse::before {
    content: ''; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 3px;
    background: var(--bone); transform: translateX(-50%);
    animation: scroll-wheel 1.8s var(--ease-in-out) infinite;
}
.scroll-word { font-family: var(--f-body); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ash); }
@keyframes scroll-wheel { 0% { transform: translate(-50%, 0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translate(-50%, 12px); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: .8; transform: translateX(-50%); } }

/* ─── 09. MARQUEE ─────────────────────────────────────────────────── */
.marquee {
    position: relative; z-index: 2;
    border-block: 1px solid var(--line-2);
    background: var(--ink-850);
    padding: 22px 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set {
    font-family: var(--f-poster);
    font-size: clamp(1.4rem, 4vw, 3.6rem);
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--ash-dim);
    display: inline-flex; align-items: center; gap: clamp(28px, 2.2vw, 44px); padding-right: clamp(28px, 2.2vw, 44px);
}
.mq-sep {
    display: inline-block; width: .42em; height: .42em; margin: 0 .18em;
    transform: rotate(45deg); vertical-align: middle;
    background: var(--bone); opacity: .42;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── 10. MANIFESTO ───────────────────────────────────────────────── */
.manifesto { padding: var(--s-section) 0; background: var(--ink-900); position: relative; }
.manifesto-grid { display: grid; grid-template-columns: .8fr 2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.manifesto-aside { display: flex; flex-direction: column; gap: var(--s-6); align-items: flex-start; }
.manifesto-aside .section-index { margin-bottom: 0; }
.manifesto-crest { width: clamp(120px, 16vw, 260px); opacity: .9; filter: drop-shadow(0 0 30px var(--glow)); }
.manifesto-text {
    font-family: var(--f-display); font-weight: 500;
    font-size: var(--fs-2xl); line-height: 1.28;
    letter-spacing: var(--tr-tight); color: var(--bone); text-transform: none;
}
.manifesto-text em { font-family: var(--f-body); font-style: italic; font-weight: 400; }
.manifesto-sub { font-size: var(--fs-lg); line-height: 1.85; margin-top: var(--s-6); max-width: clamp(620px, 52vw, 940px); color: var(--bone-dim); }

/* ─── 11. STATS ───────────────────────────────────────────────────── */
.info-bar { padding: clamp(64px, 9vw, 110px) 0; background: var(--ink-850); border-block: 1px solid var(--line-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat-item {
    position: relative; text-align: center;
    padding: clamp(28px, 4vw, 46px) var(--s-5);
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(244, 241, 234, .015), transparent);
    transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.stat-item:hover { transform: translateY(-8px); border-color: var(--line); background: linear-gradient(180deg, rgba(244, 241, 234, .04), transparent); }
.stat-icon { font-size: 1.7rem; color: var(--bone-dim); opacity: .8; margin: 0 auto var(--s-5); stroke-width: 1.2; }
.stat-item h3 { font-family: var(--f-poster); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: 1px; color: var(--bone); }
.stat-item p { font-family: var(--f-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tr-wider); color: var(--ash-dim); margin-top: 10px; }

/* ─── 12. COVERFLOW RAILS ─────────────────────────────────────────── */
.hrail-section { padding-block: clamp(64px, 9vw, 112px) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.hrail-section--alt { background: var(--ink-850); border-block: 1px solid var(--line-2); }

.hrail-wrap {
    position: relative;
    margin-top: clamp(32px, 5vw, 56px);
    padding-block: clamp(40px, 6vw, 64px);
    perspective: 1200px; perspective-origin: 50% 50%;
}
.hrail {
    display: flex; gap: clamp(16px, 2.5vw, 28px);
    padding-inline: max(20px, calc(50% - var(--card-w) / 2));
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none; outline: none;
}
.hrail::-webkit-scrollbar { display: none; }
.hrail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.hrail.is-dragging, .hrail.is-dragging * { -webkit-user-select: none; user-select: none; }
.hrail:focus-visible { box-shadow: inset 0 0 0 1px var(--ash-dim); }

.rank-card {
    flex: 0 0 var(--card-w); scroll-snap-align: center;
    display: flex; flex-direction: column;
    min-height: clamp(280px, 42vw, 380px);
    padding: clamp(26px, 3vw, 46px);
    background: radial-gradient(120% 80% at 50% 0%, rgba(244, 241, 234, .05), transparent 55%), var(--ink-850);
    border: 1px solid var(--line); color: var(--bone);
    position: relative; transform-origin: 50% 50%; backface-visibility: hidden;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .02), var(--shadow-card);
    transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.rank-card > * { position: relative; z-index: 1; }
.rank-card.is-active { border-color: rgba(244, 241, 234, .34); box-shadow: 0 0 0 1px rgba(244, 241, 234, .18), var(--shadow-lift); }
.hrail:hover .rank-card, .hrail.is-dragging .rank-card { will-change: transform, opacity; }
.rank-card__rule {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--bone), transparent);
    opacity: .5;
}
.rank-card:focus-visible { outline: 1px solid var(--ash); outline-offset: 4px; }
.rank-card__index { font-family: var(--f-poster); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1; letter-spacing: .03em; color: var(--ash-dim); }
.rank-card__name { margin-top: auto; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: .04em; }
.rank-card__tag { display: block; margin-top: 10px; font-family: var(--f-body); font-style: italic; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--ash-dim); }
.rank-card__desc { margin-top: var(--s-4); font-family: var(--f-body); font-size: var(--fs-md); line-height: 1.65; color: var(--bone-dim); }

/* edge fade masks */
.hrail-wrap::before, .hrail-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; z-index: 5;
    width: clamp(48px, 8vw, 112px); pointer-events: none;
    transition: opacity .35s var(--ease);
}
.hrail-wrap::before { left: 0; background: linear-gradient(90deg, var(--ink-900), transparent); }
.hrail-wrap::after { right: 0; background: linear-gradient(270deg, var(--ink-900), transparent); }
.hrail-section--alt .hrail-wrap::before { background: linear-gradient(90deg, var(--ink-850), transparent); }
.hrail-section--alt .hrail-wrap::after { background: linear-gradient(270deg, var(--ink-850), transparent); }
.hrail-wrap.at-start::before { opacity: 0; }
.hrail-wrap.at-end::after { opacity: 0; }

.hrail-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 48px; height: 48px; display: grid; place-items: center;
    background: var(--ink-900); color: var(--bone);
    border: 1px solid var(--line); border-radius: 50%;
    font-size: 1.1rem; cursor: pointer;
    transition: opacity .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.hrail-btn:hover { border-color: var(--bone); background: var(--bone); color: var(--ink-900); }
.hrail-prev { left: clamp(8px, 2vw, 24px); }
.hrail-next { right: clamp(8px, 2vw, 24px); }
.hrail-btn:disabled { opacity: 0; pointer-events: none; }

.hrail-progress { position: relative; height: 2px; width: min(420px, 70%); margin: clamp(28px, 4vw, 40px) auto 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.hrail-progress > i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, var(--ash), var(--bone)); will-change: transform; }

@media (hover: none), (pointer: coarse) { .hrail-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .rank-card { transform: none !important; opacity: 1 !important; will-change: auto; } }

/* ─── 13. NEWS ────────────────────────────────────────────────────── */
.news-section { padding: var(--s-section) 0; background: var(--ink-900); position: relative; overflow: hidden; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.news-card {
    position: relative; padding: clamp(30px, 3.6vw, 44px);
    border: 1px solid var(--line-2); background: var(--ink-800);
    overflow: hidden; cursor: pointer; text-align: left;
    font: inherit; color: inherit; -webkit-appearance: none; appearance: none;
    transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.news-card__glow {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(120% 120% at 0% 0%, rgba(244, 241, 234, .06), transparent 55%);
    opacity: 0; transition: opacity .5s var(--ease);
}
.news-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow-card); }
.news-card:hover .news-card__glow { opacity: 1; }
.news-card > *:not(.news-card__glow) { position: relative; z-index: 1; }
.news-date { font-family: var(--f-body); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--ash-dim); border-left: 2px solid var(--bone); padding-left: 12px; margin-bottom: var(--s-5); display: inline-block; }
.news-card h3 { font-size: var(--fs-xl); line-height: 1.3; margin-bottom: 14px; }
.news-card p { font-size: var(--fs-md); line-height: 1.75; margin-bottom: var(--s-6); color: var(--bone-dim); }
.news-link { font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tr-wide); color: var(--bone); display: inline-flex; align-items: center; gap: 10px; }
.news-link .ico { transition: transform .35s var(--ease); }
.news-card:hover .news-link .ico { transform: translateX(6px); }

/* ─── 14. GALLERY + LIGHTBOX ──────────────────────────────────────── */
.gallery-section { padding: var(--s-section) 0; background: var(--ink-850); border-top: 1px solid var(--line-2); }
.gallery-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-2); margin-bottom: clamp(36px, 5vw, 60px); }
.tab-btn {
    background: none; border: 1px solid transparent; color: var(--ash-dim);
    font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: .2em;
    padding: 10px 22px; border-radius: var(--radius); cursor: pointer;
    display: inline-flex; align-items: baseline; gap: 9px;
    transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.tab-btn:hover { color: var(--bone); border-color: var(--line-2); }
.tab-btn.active { color: var(--ink-900); background: var(--bone); border-color: var(--bone); }
.tab-count { font-size: .82em; opacity: .55; font-feature-settings: 'tnum'; }

.gallery-grid {
    --tile: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile)), 1fr));
    grid-auto-rows: clamp(220px, 15vw, 330px);
    gap: clamp(10px, .8vw, 16px);
}
.gallery-grid:focus { outline: none; }
.gallery-item {
    position: relative; overflow: hidden; background: var(--ink-700); cursor: pointer;
    border: none; padding: 0; margin: 0; font: inherit; color: inherit;
    -webkit-appearance: none; appearance: none;
    opacity: 0; transform: scale(.96);
    transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .4s var(--ease);
}
.gallery-item.shown { opacity: 1; transform: none; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(.7);
    transition: transform .9s var(--ease-out), filter .6s var(--ease);
}
.gallery-item::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .62));
    opacity: 0; transition: opacity .4s var(--ease);
}
/* plus-in-circle affordance — pure CSS, no icon font */
.gi-mark {
    position: absolute; top: 50%; left: 50%; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--bone);
    transform: translate(-50%, -50%) scale(.55); opacity: 0;
    background:
        linear-gradient(var(--bone), var(--bone)) center / 14px 1px no-repeat,
        linear-gradient(var(--bone), var(--bone)) center / 1px 14px no-repeat;
    transition: opacity .4s var(--ease), transform .45s var(--ease-out);
}
.gi-cap {
    position: absolute; left: 14px; bottom: 12px; z-index: 2;
    font-family: var(--f-body); font-size: var(--fs-2xs);
    letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--bone);
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s var(--ease), transform .45s var(--ease-out);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); filter: grayscale(1) contrast(1.04) brightness(1); }
.gallery-item:hover, .gallery-item:focus-visible { box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .5); }
.gallery-item:hover::before, .gallery-item:focus-visible::before { opacity: 1; }
.gallery-item:hover .gi-mark, .gallery-item:focus-visible .gi-mark { opacity: .9; transform: translate(-50%, -50%) scale(1); }
.gallery-item:hover .gi-cap, .gallery-item:focus-visible .gi-cap { opacity: .9; transform: none; }

.load-more-container { text-align: center; margin-top: var(--s-7); }
.load-more-btn { display: none; }

.lightbox {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(4, 4, 4, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-figure { max-width: 92vw; max-height: 88vh; margin: 0; text-align: center; }
.lightbox-figure img {
    max-width: 92vw; max-height: 80vh; object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .8);
    transform: scale(.94); opacity: 0;
    transition: transform .5s var(--ease-out), opacity .4s ease;
}
.lightbox.active .lightbox-figure img { transform: scale(1); opacity: 1; }
.lightbox-figure figcaption {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    font-family: var(--f-body); font-size: var(--fs-xs);
    letter-spacing: var(--tr-wide); text-transform: uppercase;
    color: var(--ash); margin-top: var(--s-5);
}
.lightbox-count { color: var(--ash-dim); font-feature-settings: 'tnum'; }
.lightbox-count::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--line); vertical-align: middle; margin-right: 14px; }
.lightbox-close, .lightbox-nav {
    position: absolute; background: none; border: 1px solid var(--line); color: var(--bone);
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.lightbox-close { top: 28px; right: 34px; font-size: 1.8rem; }
.lightbox-close:hover { transform: rotate(90deg); border-color: var(--bone); }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 3vw; }
.lightbox-nav.next { right: 3vw; }
.lightbox-nav:hover { background: var(--bone); color: var(--ink-900); border-color: var(--bone); }

/* ─── 15. CÓDIGO (DOWNLOAD) ───────────────────────────────────────── */
.download-section { padding: clamp(96px, 14vw, 170px) 0; background: var(--ink-900); position: relative; }
.doc-preview {
    position: relative; max-width: clamp(760px, 62vw, 1120px); margin: 0 auto; text-align: center;
    padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 70px);
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(244, 241, 234, .05), transparent 60%),
        var(--ink-850);
    box-shadow: 0 60px 120px -50px #000, inset 0 0 0 1px var(--line-2);
    transform-style: preserve-3d;
}
.doc-preview::before { content: ''; position: absolute; inset: 16px; border: 1px solid var(--line-2); pointer-events: none; }
.doc-preview .section-index { margin-inline: auto; margin-bottom: var(--s-3); }
.doc-preview:hover .doc-seal { transform: scale(1.05) rotate(-3deg); }
.doc-corner { position: absolute; width: 22px; height: 22px; }
.doc-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--bone); border-left: 2px solid var(--bone); }
.doc-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--bone); border-right: 2px solid var(--bone); }
.doc-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--bone); border-left: 2px solid var(--bone); }
.doc-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--bone); border-right: 2px solid var(--bone); }
.doc-seal { width: 78px; margin: 0 auto var(--s-5); opacity: .85; filter: drop-shadow(0 0 22px var(--glow)); transition: transform .6s var(--ease); }
.doc-year { font-family: var(--f-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tr-wider); color: var(--bone-dim); margin: var(--s-2) 0 var(--s-5); }
.doc-preview p { font-size: var(--fs-lg); line-height: 1.85; max-width: clamp(520px, 38vw, 660px); margin: 0 auto var(--s-7); color: var(--bone-dim); }
.doc-btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 18px 44px; background: var(--bone); color: var(--ink-900);
    font-family: var(--f-body); font-weight: 700; text-transform: uppercase;
    letter-spacing: var(--tr-wide); font-size: var(--fs-sm);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    will-change: transform;
}
.doc-btn .ico { font-size: 1.2em; stroke-width: 1.4; }
.doc-btn:hover { transform: scale(1.04); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }

/* ─── 16. FAQ ─────────────────────────────────────────────────────── */
.qa-section { padding: var(--s-section) 0; background: var(--ink-850); border-top: 1px solid var(--line-2); position: relative; overflow: hidden; }
.qa-container { max-width: clamp(880px, 82vw, 1480px); }
.qa-item { border-bottom: 1px solid var(--line-2); transition: border-color .4s var(--ease); }
.qa-item:hover { border-bottom-color: var(--line); }
.qa-item summary {
    list-style: none; cursor: pointer; padding: clamp(22px, 3vw, 32px) 0;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
    font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg);
    text-transform: uppercase; letter-spacing: .04em; color: var(--ash);
    transition: color .3s var(--ease);
}
.qa-item summary::-webkit-details-marker { display: none; }
.question-text { display: flex; align-items: baseline; gap: var(--s-4); text-align: left; }
.qa-number { font-family: var(--f-poster); font-size: .9rem; color: var(--ash-dim); flex-shrink: 0; font-feature-settings: 'tnum'; }
.qa-toggle {
    position: relative; flex-shrink: 0; width: 15px; height: 15px;
    transition: transform .4s var(--ease);
}
.qa-toggle::before, .qa-toggle::after {
    content: ''; position: absolute; top: 50%; left: 50%; background: var(--ash-dim);
    transform: translate(-50%, -50%); transition: background .3s var(--ease), opacity .3s var(--ease);
}
.qa-toggle::before { width: 15px; height: 1px; }
.qa-toggle::after { width: 1px; height: 15px; }
.qa-item summary:hover { color: var(--bone); }
.qa-item summary:hover .qa-toggle::before, .qa-item summary:hover .qa-toggle::after { background: var(--bone); }
.qa-item details[open] summary { color: var(--bone); }
.qa-item details[open] .qa-toggle { transform: rotate(135deg); }
.qa-item details[open] .qa-toggle::before, .qa-item details[open] .qa-toggle::after { background: var(--bone); }
.answer-content {
    color: var(--bone-dim); line-height: 1.85; font-size: var(--fs-md);
    padding: 0 56px var(--s-6) calc(var(--s-4) + 28px);
}
.answer-content strong { color: var(--bone); font-weight: 600; }
.answer-content p { color: inherit; }
.answer-content p + p { margin-top: var(--s-4); }

/* Ranked ladder inside an answer — Roman numerals to match the hierarchy rail. */
.qa-list {
    list-style: none;
    counter-reset: rank;
    margin: var(--s-4) 0 var(--s-5);
}
.qa-list li {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 3.4em 1fr;
    align-items: baseline;
    gap: var(--s-3);
    padding: 9px 0;
    border-bottom: 1px solid var(--line-3);
    font-family: var(--f-display);
    font-size: var(--fs-md);
    line-height: 1.3;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--bone);
}
.qa-list li:last-child { border-bottom: none; }
.qa-list li::before {
    content: counter(rank, upper-roman);
    font-family: var(--f-poster);
    font-size: .8em;
    letter-spacing: .12em;
    color: var(--ash-dim);
    text-align: right;
}
.qa-item details[open] .answer-content { animation: answer-in .5s var(--ease-out) both; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ─── 17. FOOTER + BACK TO TOP ────────────────────────────────────── */
footer { padding: clamp(80px, 11vw, 130px) 0 50px; background: var(--ink-950); border-top: 1px solid var(--line-2); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-crest { display: inline-block; margin-bottom: var(--s-6); }
.footer-logo { width: 110px; height: auto; opacity: .7; margin: 0; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.footer-logo:hover { opacity: 1; transform: scale(1.05); }
.footer-text p { font-family: var(--f-body); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--ash-dim); margin-bottom: var(--s-1); }
.footer-text .footer-lead { font-family: var(--f-display); font-weight: 700; letter-spacing: var(--tr-wider); text-transform: uppercase; color: var(--bone); font-size: var(--fs-sm); margin-bottom: var(--s-2); }

/* Brand inverted-block motto lockup (04-Brand-Design · dura_praxis) */
.lema-lockup {
    display: inline-grid; grid-template-columns: auto auto; gap: 7px 12px;
    margin: var(--s-6) auto var(--s-1); justify-content: center;
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    line-height: 1; letter-spacing: .08em;
}
.lema-lockup .ll-word { display: flex; align-items: center; justify-content: center; padding: .22em .6em; font-size: clamp(1.15rem, 3.4vw, 1.9rem); color: var(--bone); }
.lema-lockup .ll-inv { background: var(--bone); color: var(--ink-900); }

.social-links { display: flex; gap: var(--s-5); margin: var(--s-7) 0 var(--s-6); }
.social-links a {
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ash); font-size: 1.1rem;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
    will-change: transform;
}
.social-links a:hover { background: var(--bone); color: var(--ink-900); border-color: var(--bone); }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.footer-nav a {
    font-family: var(--f-body); font-size: var(--fs-2xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: var(--tr-wide); color: var(--ash-dim);
}
.footer-nav a:hover { color: var(--bone); }

.copyright { font-family: var(--f-body); font-size: .68rem; letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ash-dim); }

.to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 1000;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.05rem;
    background: var(--ink-800); border: 1px solid var(--line); color: var(--bone);
    cursor: pointer; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--bone); color: var(--ink-900); }

/* ─── 18. NEWS MODAL ──────────────────────────────────────────────── */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(4, 4, 4, .85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .35s var(--ease); padding: var(--s-5);
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    position: relative; width: 100%; max-width: 640px; max-height: 84vh; overflow-y: auto;
    padding: clamp(34px, 5vw, 56px);
    background: var(--ink-800); border: 1px solid var(--line);
    transform: translateY(24px) scale(.98); transition: transform .4s var(--ease-out);
}
.modal-overlay.active .modal-content { transform: none; }
.modal-close {
    position: absolute; top: 20px; right: 22px;
    background: none; border: none; color: var(--ash);
    font-size: 2rem; line-height: 1; cursor: pointer;
    transition: color .3s var(--ease), transform .3s var(--ease);
}
.modal-close:hover { color: var(--bone); transform: rotate(90deg); }
#modal-body-content h2 { font-size: var(--fs-2xl); margin-bottom: 10px; }
#modal-body-content .modal-date {
    display: inline-block; font-family: var(--f-body); font-size: var(--fs-xs);
    letter-spacing: .2em; text-transform: uppercase; color: var(--ash-dim);
    margin-bottom: var(--s-5); border-left: 2px solid var(--bone); padding-left: 12px;
}
#modal-body-content p { line-height: 1.85; margin-bottom: var(--s-4); color: var(--bone-dim); }

/* ─── 19. REVEAL + LIVING ENGRAVING ───────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].in-view { opacity: 1; transform: none; }

[data-reveal-lines] .rl-word { display: inline-block; opacity: 0; transform: translateY(22px) rotate(2deg); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal-lines].in-view .rl-word { opacity: 1; transform: none; }

.news-card { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.news-card.in-view { opacity: 1; transform: none; }

/* Titles & motto reveal as if chiselled: a clip-wipe uncovers the glyphs
   while a thin chisel underline draws via stroke-dashoffset.
   --etch: 0 → 1 progress token, set by JS (IntersectionObserver). */
.engrave {
    --etch: 0;
    position: relative; display: block;
    -webkit-mask-image: linear-gradient(90deg,
        #000 calc(var(--etch) * 118% - 18%),
        rgba(0, 0, 0, .06) calc(var(--etch) * 118% - 4%),
        transparent calc(var(--etch) * 118%));
    mask-image: linear-gradient(90deg,
        #000 calc(var(--etch) * 118% - 18%),
        rgba(0, 0, 0, .06) calc(var(--etch) * 118% - 4%),
        transparent calc(var(--etch) * 118%));
    transform: translateY(calc((1 - var(--etch)) * 6px));
    transition: transform .9s var(--ease-out);
}
.engrave-chisel { display: block; width: 100%; height: 4px; margin-top: .42em; overflow: visible; color: var(--bone); }
.section-head .engrave-chisel, .doc-preview .engrave-chisel { width: min(220px, 60%); margin-inline: auto; }
.engrave-chisel path {
    fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round;
    vector-effect: non-scaling-stroke; opacity: .55;
    stroke-dasharray: var(--len, 200);
    stroke-dashoffset: calc(var(--len, 200) * (1 - var(--etch)));
    transition: stroke-dashoffset 1s var(--ease-out), opacity 1s var(--ease-out);
    filter: drop-shadow(0 0 6px rgba(244, 241, 234, .18));
}

.hero-motto[data-engrave] { --etch: 0; position: relative; display: inline-block; }
.hero-motto .engrave-text {
    display: inline-block;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--etch) * 120% - 20%), transparent calc(var(--etch) * 120%));
    mask-image: linear-gradient(90deg, #000 calc(var(--etch) * 120% - 20%), transparent calc(var(--etch) * 120%));
}
.hero-motto .chisel { display: block; width: 100%; height: 4px; margin: .5em auto 0; overflow: visible; }
.hero-motto .chisel path {
    fill: none; stroke: var(--ash); stroke-width: 1; stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 200; stroke-dashoffset: calc(200 * (1 - var(--etch)));
    opacity: calc(.25 + var(--etch) * .45);
    transition: stroke-dashoffset 1.1s var(--ease-out) .15s, opacity 1.1s var(--ease-out) .15s;
}

/* hairline rules that draw in */
[data-engrave-rule], .engrave-rule {
    --etch: 0; display: block; height: 1px; width: 100%;
    transform-origin: left center; transform: scaleX(var(--etch));
    background: linear-gradient(90deg, var(--bone), var(--ash) 70%, transparent);
    transition: transform 1s var(--ease-out);
}
.aside-rule { max-width: 220px; }

/* etched numerals (rail indices + chapter numerals) */
.rank-card__index {
    color: transparent; -webkit-text-stroke: 1px var(--ash-dim);
    transition: color .7s var(--ease-out), -webkit-text-stroke-color .7s var(--ease-out);
}
.rank-card.is-etched .rank-card__index { color: var(--ash-dim); -webkit-text-stroke-color: transparent; }

[data-engrave].is-etched, .engrave.is-etched { --etch: 1; }

/* ─── 20. RESPONSIVE ──────────────────────────────────────────────── */

/* ---- Large displays. The token scale already grows fluidly; these are the
        discrete layout decisions a clamp() can't express. ---- */
@media (min-width: 1600px) {
    :root { --card-w: 430px; }
    .gallery-grid { --tile: 300px; }
    /* One 1480px-wide accordion row reads as a stretched hairline — split it. */
    #faq-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 4vw, 88px); align-items: start; }
    /* Keep the aside a true sidebar instead of letting it eat the extra width. */
    .manifesto-grid { grid-template-columns: 300px minmax(0, 1fr); }
    .rank-card { min-height: 420px; }
    .stats-grid { gap: clamp(40px, 3vw, 64px); }
    .social-links a { width: 56px; height: 56px; font-size: 1.25rem; }
    .to-top { width: 58px; height: 58px; bottom: 40px; right: 40px; font-size: 1.2rem; }
    .modal-content { max-width: 760px; }
    .lightbox-close { top: 40px; right: 48px; }
}

@media (min-width: 2000px) {
    :root { --card-w: 480px; }
    /* Keep --tile at the 1600px value: raising it here cost a whole gallery
       column at 2560px, so a bigger screen showed fewer photos. */
    .manifesto-grid { grid-template-columns: 340px minmax(0, 1fr); }
    .rank-card { min-height: 460px; }
    /* The 64px grid reads as noise once the viewport is this wide. */
    .bg-grid { background-size: 96px 96px; }
    .doc-preview::before { inset: 22px; }
    .lightbox-figure img { max-height: 84vh; }
}

@media (max-width: 980px) {
    .manifesto-grid { grid-template-columns: 1fr; }
    .manifesto-aside { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
    .manifesto-crest { width: 110px; }
}

/* Navbar collapses to the drawer before the 7 links crowd the logo. */
@media (max-width: 1080px) {
    /* #navbar carries a transform (the drop-in animation), which makes it the
       containing block for fixed descendants — so `bottom: 0` would resolve
       against the 88px-tall bar, not the viewport. Pin the top and give the
       drawer an explicit viewport height instead. */
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: auto; left: auto;
        width: min(82vw, 340px);
        height: 100vh; height: 100dvh;
        flex-direction: column; justify-content: center; gap: var(--s-6);
        overflow-y: auto; overscroll-behavior: contain;
        background: rgba(8, 8, 8, .98);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        padding: calc(var(--s-9) + var(--s-5)) var(--s-7) var(--s-9);
        transform: translateX(100%);
        transition: transform .5s var(--ease-in-out);
        border-left: 1px solid var(--line); text-align: center; z-index: 1090;
    }
    .nav-links.open { transform: none; }
    .nav-links a { font-size: var(--fs-md); }
    .nav-links__foot {
        display: block; position: absolute; bottom: var(--s-7); left: 0; right: 0;
        font-family: var(--f-display); font-style: italic; font-size: var(--fs-xs);
        letter-spacing: .1em; color: var(--ash-dim);
    }
    .mobile-menu-btn { display: flex; z-index: 1110; }
    .nav-cta { display: none; }
}

@media (max-width: 820px) {
    :root { --nav-h: 64px; }
    .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-auto-rows: 200px; }
    .gallery-item.tall { grid-row: span 1; }
    .lightbox-nav.prev { left: 12px; }
    .lightbox-nav.next { right: 12px; }
    .answer-content { padding: 0 var(--s-4) var(--s-6) var(--s-4); }
    .hero-details .sep { display: none; }
    .hero-title .line--xl { font-size: clamp(2.8rem, 15vw, 5rem); }
}

@media (max-width: 540px) {
    .hero-motto { white-space: normal; }
    .hero-kicker { letter-spacing: .26em; }
    .hero-title .line--sm { font-size: clamp(.9rem, 4.4vw, 1.2rem); letter-spacing: 4px; }
    .hero-title .line--xl { font-size: clamp(2rem, 13vw, 4.4rem); }
    .to-top { bottom: 18px; right: 18px; }
    .manifesto-aside { flex-direction: column; align-items: flex-start; gap: var(--s-5); }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .lema-lockup { gap: 5px 8px; }
    .lema-lockup .ll-word { font-size: clamp(1rem, 6vw, 1.5rem); }
    .lightbox-figure figcaption { flex-direction: column; gap: 6px; }
    .lightbox-count::before { display: none; }
}

@media (max-width: 420px) {
    .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 1.4rem; }
    .logo-sub { display: none; }
}

@media (max-width: 380px) {
    .marquee-set { font-size: 1.2rem; gap: 16px; padding-right: 16px; }
}

/* ─── 21. NO-JS · FOCUS · REDUCED MOTION ──────────────────────────── */
.no-js [data-hero], .no-js [data-reveal], .no-js .news-card, .no-js .gallery-item { opacity: 1 !important; transform: none !important; }
.no-js [data-reveal-lines] .rl-word { opacity: 1 !important; transform: none !important; }
.no-js .cursor { display: none !important; }
.no-js .engrave, .no-js .hero-motto .engrave-text { -webkit-mask-image: none !important; mask-image: none !important; transform: none !important; }
.no-js [data-engrave-rule], .no-js .engrave-rule { transform: none !important; }
.no-js .rank-card__index { color: var(--ash-dim) !important; -webkit-text-stroke-color: transparent !important; }

:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: var(--radius); }
.gallery-item:focus-visible, .tab-btn:focus-visible { outline-offset: -2px; }
.nav-links a:focus-visible, .news-link:focus-visible, .footer-nav a:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .grain, .hero-eclipse, .marquee-track, .scroll-word, .mouse::before, .scroll-indicator { animation: none !important; }
    [data-hero], [data-reveal], .news-card, .gallery-item { opacity: 1 !important; transform: none !important; }
    [data-reveal-lines] .rl-word { opacity: 1 !important; transform: none !important; }
    .cursor { display: none !important; }

    /* Living engraving — show the final carved state instantly, no draw. */
    .engrave, .hero-motto .engrave-text { -webkit-mask-image: none !important; mask-image: none !important; transform: none !important; }
    .engrave-chisel, .hero-motto .chisel { display: none !important; }
    [data-engrave-rule], .engrave-rule { transform: none !important; transition: none !important; }
    .rank-card__index { color: var(--ash-dim) !important; -webkit-text-stroke-color: transparent !important; transition: none !important; }
}
