/* ==========================================================
   MasqproT.com — Masquerade Protocol
   Pop-art halftone + Venetian mask + organic-flow
   Palette: #c7522a #3d2b1f #f5ece3 #c9a34f #d6336c #1a1410 #2d7dd2
   Typography: Libre Baskerville, Work Sans, Playfair Display
   Implementation cues: Intersection Observer (or scroll-timeline CSS where supported; (Google Fonts)
   ========================================================== */

:root {
    --terracotta: #c7522a;
    --umber: #3d2b1f;
    --parchment: #f5ece3;
    --gold: #c9a34f;
    --magenta: #d6336c;
    --charcoal: #1a1410;
    --blue: #2d7dd2;

    --font-display: "Libre Baskerville", Georgia, serif;
    --font-body: "Work Sans", system-ui, sans-serif;
    --font-numeral: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--umber);
    background: var(--parchment);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

em { font-style: italic; }

/* ==========================================================
   Persistent Reveal Overlay — grain + faint halftone
   ========================================================== */
.reveal-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    mix-blend-mode: multiply;
}
.reveal-layer::before {
    /* noise grain */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.17  0 0 0 0 0.12  0 0 0 1.2 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.reveal-layer::after {
    /* faint halftone */
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, var(--charcoal) 1.2px, transparent 1.6px);
    background-size: 14px 14px;
}

/* ==========================================================
   Navigation — fades in after first scroll
   ========================================================== */
.masq-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 22px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 8000;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 600ms ease, transform 600ms ease, background-color 400ms ease, color 400ms ease;
    pointer-events: none;
    mix-blend-mode: normal;
}
.masq-nav.revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.masq-nav.act-dark-ctx {
    background: linear-gradient(180deg, rgba(26,20,16,0.92), rgba(26,20,16,0.0));
    color: var(--parchment);
}
.masq-nav.act-light-ctx {
    background: linear-gradient(180deg, rgba(245,236,227,0.92), rgba(245,236,227,0.0));
    color: var(--umber);
}

.nav-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.mark-glyph {
    display: inline-block;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--parchment);
    font-style: italic;
    text-align: center;
    line-height: 34px;
    transform: rotate(-6deg);
    box-shadow: 2px 2px 0 var(--charcoal);
}
.mark-word .italic { font-style: italic; color: var(--terracotta); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}
.nav-links a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
    transition: color 200ms ease;
}
.nav-links a::before {
    content: attr(data-act);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 11px;
    color: var(--gold);
    margin-right: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}
.nav-links a:hover { color: var(--magenta); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ==========================================================
   Act Rail (right-side scroll progress)
   ========================================================== */
.act-rail {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7500;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 14px 10px;
    background: rgba(245, 236, 227, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(199, 82, 42, 0.25);
    border-radius: 40px;
}
.rail-dot {
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--umber);
    background: var(--parchment);
    cursor: pointer;
    transition: background 250ms ease, transform 250ms ease, border-color 250ms ease;
    position: relative;
}
.rail-dot:hover { transform: scale(1.15); border-color: var(--terracotta); }
.rail-dot.active {
    background: var(--terracotta);
    border-color: var(--charcoal);
}
.rail-dot.active .rail-label { color: var(--parchment); }
.rail-label {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 10px;
    font-weight: 700;
    color: var(--umber);
    transition: color 250ms ease;
}

/* ==========================================================
   Acts — overlapping flow zones
   ========================================================== */
.masq-main { position: relative; z-index: 10; }

.act {
    position: relative;
    min-height: 100vh;
    padding: 120px 6vw 160px;
    overflow: hidden;
    isolation: isolate;
}

.act-label {
    position: absolute;
    top: 40px;
    left: 6vw;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--umber);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.04em;
    z-index: 5;
}
.act-label.dark { color: var(--parchment); opacity: 0.78; }
.act-label.fade { color: var(--umber); opacity: 0.5; }
.act-label .act-roman {
    font-family: var(--font-numeral);
    font-weight: 900;
    font-style: normal;
    font-size: 42px;
    color: var(--terracotta);
    line-height: 1;
}

/* --- Halftone fields --- */
.halftone-field {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.halftone-field[data-variant="terracotta"] {
    background-image:
        radial-gradient(circle, var(--terracotta) 3px, transparent 4px);
    background-size: 22px 22px;
    opacity: 0.18;
}
.halftone-field[data-variant="magenta"] {
    background-image:
        radial-gradient(circle, var(--magenta) 3.2px, transparent 4.2px);
    background-size: 20px 20px;
    opacity: 0.22;
}
.halftone-field[data-variant="blue"] {
    background-image:
        radial-gradient(circle, var(--blue) 3px, transparent 4px);
    background-size: 24px 24px;
    opacity: 0.20;
}
.halftone-field[data-variant="fade"] {
    background-image:
        radial-gradient(circle, var(--umber) 2px, transparent 3px);
    background-size: 36px 36px;
    opacity: 0.08;
}
.halftone-field.halftone-breathe {
    animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: var(--breathe-lo, 0.14); transform: scale(1); }
    50%      { opacity: var(--breathe-hi, 0.22); transform: scale(1.015); }
}

/* ==========================================================
   ACT I — HERO
   ========================================================== */
.act-1 {
    background:
        linear-gradient(180deg, var(--parchment) 0%, #efe3d2 100%);
    color: var(--umber);
    padding-top: 140px;
}
/* 45-degree stripe undertone on hero edges */
.act-1::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 20%;
    background: repeating-linear-gradient(
        45deg,
        rgba(199, 82, 42, 0.08) 0 4px,
        transparent 4px 8px
    );
    z-index: -1;
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 40px;
    min-height: 78vh;
    position: relative;
}

.hero-text {
    position: relative;
    padding: 0 10px 0 2vw;
    transform: rotate(-0.4deg);
}
.hero-kicker {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--terracotta);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    opacity: 0.9;
}
.hero-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(54px, 8.4vw, 120px);
    line-height: 0.92;
    letter-spacing: -0.025em;
    color: var(--umber);
    margin-bottom: 30px;
}
.hero-headline em {
    color: var(--terracotta);
    font-style: italic;
    position: relative;
    display: inline-block;
    transform: rotate(-1.5deg);
}
.hero-headline em::after {
    content: "";
    position: absolute;
    left: -4%; right: -4%;
    bottom: 6%;
    height: 14%;
    background: var(--gold);
    opacity: 0.35;
    z-index: -1;
    transform: skewX(-8deg);
}
.hero-sub {
    max-width: 440px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--umber);
    margin-bottom: 36px;
}
.hero-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 500;
    color: var(--terracotta);
}
.cta-rule {
    width: 50px; height: 2px;
    background: var(--terracotta);
    display: inline-block;
    animation: pulseRule 2.6s ease-in-out infinite;
}
@keyframes pulseRule {
    0%, 100% { transform: scaleX(1); }
    50%      { transform: scaleX(1.8); }
}

/* Hero mask stage */
.hero-mask-stage {
    position: relative;
    height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(3%, -2%);
}
.mask-shadow {
    position: absolute;
    left: 52%;
    top: 62%;
    width: 45%;
    height: 10%;
    transform: translate(-50%, 0);
    background: radial-gradient(ellipse at center, var(--magenta) 0%, transparent 70%);
    filter: blur(22px);
    opacity: 0.55;
    z-index: 1;
    animation: shadowFlicker 4.5s ease-in-out infinite;
}
@keyframes shadowFlicker {
    0%, 100% { opacity: 0.55; transform: translate(-50%, 0) scale(1); }
    50%      { opacity: 0.72; transform: translate(-50%, 0) scale(1.06); }
}
.mask-wrapper {
    position: relative;
    width: min(560px, 72%);
    max-width: 600px;
    aspect-ratio: 4 / 5;
    z-index: 2;
    perspective: 1200px;
    transform-style: preserve-3d;
    will-change: transform;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --scroll-y: 0px;
    --scroll-scale: 1;
    animation: maskTurn 20s linear infinite;
}
@keyframes maskTurn {
    0% {
        transform: translateY(var(--scroll-y)) scale(var(--scroll-scale)) rotateY(calc(var(--tilt-x) + -16deg)) rotateX(var(--tilt-y));
    }
    50% {
        transform: translateY(var(--scroll-y)) scale(var(--scroll-scale)) rotateY(calc(var(--tilt-x) + 16deg)) rotateX(var(--tilt-y));
    }
    100% {
        transform: translateY(var(--scroll-y)) scale(var(--scroll-scale)) rotateY(calc(var(--tilt-x) + -16deg)) rotateX(var(--tilt-y));
    }
}
.mask-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(6px 10px 0 rgba(26,20,16,0.22));
    animation: maskBob 4s ease-in-out infinite;
    transform-origin: center center;
}
@keyframes maskBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.mask-halftone-layer {
    mix-blend-mode: multiply;
    transform-origin: center center;
    animation: dotShift 12s linear infinite;
}
.mask-halftone-layer.layer-blue {
    animation-duration: 18s;
    animation-direction: reverse;
    mix-blend-mode: multiply;
    opacity: 0.65;
}
@keyframes dotShift {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(4px, -3px); }
    100% { transform: translate(0, 0); }
}
.mask-caption {
    position: absolute;
    right: 5%;
    bottom: 3%;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--umber);
    opacity: 0.7;
    transform: rotate(2deg);
    z-index: 3;
}

/* Diagonal terracotta wash — bleeds into Act II */
.diagonal-wash {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -5%;
    height: 160px;
    background: var(--terracotta);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
    opacity: 0.95;
    transform-origin: bottom left;
    transition: clip-path 600ms ease;
}
.diagonal-wash.settled {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}
.diagonal-wash::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--charcoal) 1.4px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.15;
    pointer-events: none;
}

/* ==========================================================
   ACT II — RULES
   ========================================================== */
.act-2 {
    background: var(--umber);
    color: var(--parchment);
    padding-top: 200px;
    padding-bottom: 260px;
}
.act-2::before {
    /* checkerboard microtexture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(245,236,227,0.03) 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, rgba(245,236,227,0.03) 0 8px, transparent 8px 16px);
    z-index: -2;
    pointer-events: none;
}

.manifesto-block {
    max-width: 720px;
    margin-left: 8%;
    position: relative;
    margin-bottom: 80px;
}
.display-numeral {
    font-family: var(--font-numeral);
    font-weight: 900;
    font-size: clamp(100px, 14vw, 200px);
    color: var(--terracotta);
    line-height: 0.8;
    letter-spacing: -0.04em;
    text-shadow: 4px 4px 0 rgba(214, 51, 108, 0.28);
    margin-bottom: -20px;
    opacity: 0.92;
}
.display-numeral.dark { color: var(--magenta); text-shadow: 4px 4px 0 rgba(199,82,42,0.3); }

.section-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 6.5vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--parchment);
    margin-bottom: 28px;
}
.section-headline em { color: var(--terracotta); font-style: italic; }
.section-headline.light { color: var(--parchment); }

.underline-gold {
    position: relative;
    display: inline-block;
}
.underline-gold::after {
    content: "";
    position: absolute;
    left: -2%; right: -2%;
    bottom: 2%;
    height: 22%;
    background: var(--gold);
    opacity: 0.5;
    z-index: -1;
    transform: skewX(-6deg);
}
.underline-magenta {
    position: relative;
    display: inline-block;
    color: var(--magenta);
    font-style: italic;
}
.underline-magenta::after {
    content: "";
    position: absolute;
    left: -3%; right: -3%; bottom: 2%;
    height: 14%;
    background: var(--blue);
    opacity: 0.4;
    z-index: -1;
}

.manifesto-lead {
    font-size: 20px;
    line-height: 1.7;
    color: var(--parchment);
    opacity: 0.88;
    max-width: 560px;
}

/* Protocol list — organic asymmetry */
.protocol-list {
    list-style: none;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 20px 2vw 40px;
}
.protocol-item {
    position: relative;
    padding: 26px 28px 26px 94px;
    margin-bottom: 44px;
    background: rgba(245, 236, 227, 0.04);
    border-left: 3px solid var(--terracotta);
    transition: background 300ms ease, transform 300ms ease, border-color 300ms ease;
    max-width: 640px;
    opacity: 0;
    transform: translateY(30px);
}
.protocol-item.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms ease, transform 700ms ease, background 300ms ease;
}
.protocol-item:nth-child(1) { margin-left: 4%; }
.protocol-item:nth-child(2) { margin-left: 28%; }
.protocol-item:nth-child(3) { margin-left: 10%; transform: translateY(30px) rotate(-0.4deg); }
.protocol-item:nth-child(3).in-view { transform: translateY(0) rotate(-0.4deg); }
.protocol-item:nth-child(4) { margin-left: 32%; }
.protocol-item:nth-child(5) { margin-left: 6%; transform: translateY(30px) rotate(0.3deg); }
.protocol-item:nth-child(5).in-view { transform: translateY(0) rotate(0.3deg); }
.protocol-item:nth-child(6) { margin-left: 24%; }
.protocol-item:nth-child(7) { margin-left: 12%; }

.protocol-item:hover {
    background: rgba(214, 51, 108, 0.08);
    border-left-color: var(--magenta);
}
.protocol-num {
    position: absolute;
    left: 14px;
    top: 20px;
    font-family: var(--font-numeral);
    font-weight: 900;
    font-size: 58px;
    color: var(--terracotta);
    line-height: 1;
    opacity: 0.85;
    letter-spacing: -0.02em;
}
.protocol-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    color: var(--parchment);
    margin-bottom: 10px;
}
.protocol-title em { color: var(--gold); }
.protocol-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--parchment);
    opacity: 0.78;
}
.protocol-body em { color: var(--magenta); }

/* Pull quotes — float in margins, rotated */
.pull-quote {
    position: absolute;
    max-width: 280px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: var(--terracotta);
    transition: transform 600ms ease;
}
.pull-quote.settled { transform: rotate(0deg) !important; }
.pull-quote .pq-mark {
    font-family: var(--font-numeral);
    font-weight: 900;
    font-size: 88px;
    color: var(--magenta);
    line-height: 0.3;
    display: block;
    opacity: 0.9;
    margin-bottom: 6px;
}
.pull-quote p {
    font-size: 22px;
    line-height: 1.3;
}
.pull-quote p em { color: var(--gold); }
.pull-quote .pq-attrib {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--parchment);
    opacity: 0.7;
    letter-spacing: 0.06em;
    font-style: normal;
    text-transform: uppercase;
}

.pull-quote.pull-1 {
    top: 28%;
    right: 4%;
    transform: rotate(4deg);
    color: var(--parchment);
}
.pull-quote.pull-2 {
    top: 68%;
    left: 2%;
    transform: rotate(-5deg);
    max-width: 240px;
    color: var(--gold);
}
.pull-quote.pull-3 {
    top: 22%;
    right: 4%;
    transform: rotate(-3deg);
    max-width: 240px;
    color: var(--magenta);
}

/* Expanding halftone transition (Act II -> III) */
.halftone-expand {
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 220px;
    background:
        radial-gradient(circle at 50% 100%, var(--magenta) 2px, transparent 3px) 0 0 / 10px 10px,
        radial-gradient(circle at 50% 100%, var(--magenta) 3px, transparent 4px) 0 0 / 18px 18px,
        radial-gradient(circle at 50% 100%, var(--magenta) 5px, transparent 6px) 0 0 / 30px 30px;
    background-blend-mode: normal;
    opacity: 0.7;
    mask-image: linear-gradient(180deg, transparent 0%, #000 70%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%, #000 100%);
    pointer-events: none;
    z-index: 3;
}

/* ==========================================================
   ACT III — GALLERY
   ========================================================== */
.act-3 {
    background: var(--parchment);
    color: var(--umber);
    padding-top: 220px;
    padding-bottom: 200px;
}
.act-3::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(199, 82, 42, 0.05) 0 4px,
            transparent 4px 10px
        );
    z-index: -2;
    pointer-events: none;
}

.gallery-intro {
    max-width: 780px;
    margin: 0 0 80px 6%;
    position: relative;
}
.gallery-intro .display-numeral { color: var(--blue); text-shadow: 4px 4px 0 rgba(214,51,108,0.3); }
.gallery-intro .section-headline.light { color: var(--umber); }
.gallery-lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--umber);
    max-width: 560px;
    opacity: 0.88;
}

.mask-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    padding: 0 4%;
    position: relative;
}
.mask-gallery::before {
    content: "";
    position: absolute;
    inset: -40px -20px;
    background-image: radial-gradient(circle, var(--blue) 1.4px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.10;
    z-index: -1;
    pointer-events: none;
}
.mask-card {
    position: relative;
    padding: 18px 14px 22px;
    background: rgba(245, 236, 227, 0.6);
    border: 1px solid rgba(61, 43, 31, 0.18);
    transition: transform 380ms ease, box-shadow 380ms ease, background 380ms ease, border-color 380ms ease;
    cursor: pointer;
    transform-origin: center;
    opacity: 0;
    transform: translateY(24px);
}
.mask-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 700ms ease, transform 700ms ease, background 380ms ease, box-shadow 380ms ease; }
.mask-card:nth-child(odd)  { transform: translateY(0) rotate(-1.2deg); }
.mask-card:nth-child(even) { transform: translateY(0) rotate(1.2deg); }
.mask-card:nth-child(3n)   { transform: translateY(0) rotate(-0.5deg); }

.mask-card:hover {
    background: var(--terracotta);
    border-color: var(--charcoal);
    box-shadow: 6px 6px 0 var(--charcoal);
    transform: translateY(-6px) rotate(0deg) !important;
    z-index: 4;
}
.mask-card:hover .mask-name { color: var(--parchment); }
.mask-card:hover .mask-role { color: var(--gold); }
.mask-card:hover .mini-halftone circle { fill: var(--blue); }

.mask-card-frame {
    aspect-ratio: 5 / 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--parchment);
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(61,43,31,0.1);
    margin-bottom: 14px;
    position: relative;
}
.mask-card-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--magenta) 1.2px, transparent 1.6px);
    background-size: 14px 14px;
    opacity: 0.16;
    pointer-events: none;
    mix-blend-mode: multiply;
}
.mask-mini {
    width: 100%;
    height: 100%;
    display: block;
}
.mask-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-display);
    transition: color 300ms ease;
}
.mask-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--umber);
    letter-spacing: -0.01em;
}
.mask-role {
    font-style: italic;
    font-size: 13px;
    color: var(--terracotta);
    opacity: 0.88;
}

/* ==========================================================
   ACT IV — THE UNMASKING
   ========================================================== */
.act-4 {
    background: var(--parchment);
    color: var(--umber);
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
}
.act-4 .halftone-field.unmask-field {
    transition: opacity 1500ms ease;
}
.act-4.stripped .halftone-field.unmask-field { opacity: 0.02; }
.act-4.stripped .reveal-layer-ghost { opacity: 0; }

.unmask-block {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}
.unmask-time {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--terracotta);
    letter-spacing: 0.2em;
    margin-bottom: 28px;
    opacity: 0.8;
}
.unmask-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--umber);
    margin-bottom: 40px;
}
.unmask-headline em {
    font-style: italic;
    color: var(--terracotta);
    transition: color 1200ms ease;
}
.act-4.stripped .unmask-headline em { color: var(--umber); }
.unmask-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--umber);
    max-width: 560px;
    margin: 0 auto 22px;
}
.unmask-signoff {
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--umber);
    opacity: 0.7;
    font-size: 14px;
}
.signoff-glyph { color: var(--gold); font-size: 22px; }

.masq-foot {
    max-width: 1100px;
    margin: 100px auto 0;
    padding: 30px 6vw 0;
    border-top: 1px solid rgba(61,43,31,0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--umber);
    opacity: 0.7;
}

/* ==========================================================
   Halftone overlay utility (reusable)
   ========================================================== */
.halftone-overlay {
    position: relative;
}
.halftone-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--terracotta) 3px, transparent 4px);
    background-size: 12px 12px;
    opacity: 0.20;
    pointer-events: none;
    transition: opacity 300ms ease, background-size 300ms ease;
}
.halftone-overlay:hover::after {
    background-size: 14px 14px;
    opacity: 0.35;
}
.halftone-overlay.dark::after {
    background-image: radial-gradient(circle, var(--blue) 3px, transparent 4px);
    opacity: 0.15;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-text { padding: 60px 0 0; }
    .hero-mask-stage { height: 60vh; transform: translate(0, 0); }
    .mask-gallery { grid-template-columns: repeat(3, 1fr); }
    .pull-quote.pull-1, .pull-quote.pull-3 { position: static; margin: 40px auto; }
    .pull-quote.pull-2 { position: static; margin: 40px auto; }
    .nav-links { display: none; }
    .act-rail { right: 12px; }
}

@media (max-width: 720px) {
    .act { padding: 100px 6vw 130px; }
    .hero-headline { font-size: 52px; }
    .section-headline { font-size: 44px; }
    .unmask-headline { font-size: 52px; }
    .mask-gallery { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
    .protocol-item {
        margin-left: 0 !important;
        padding: 20px 20px 20px 70px;
    }
    .protocol-num { left: 10px; font-size: 42px; }
    .masq-nav { padding: 14px 20px; }
    .nav-mark { font-size: 18px; }
    .diagonal-wash { clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0 100%); }
    .act-rail { padding: 8px 6px; gap: 14px; }
    .rail-dot { width: 16px; height: 16px; }
    .rail-label { font-size: 8px; }
}

@media (max-width: 460px) {
    .mask-gallery { grid-template-columns: 1fr; }
    .display-numeral { font-size: 90px; }
    .hero-headline { font-size: 44px; }
}
