/* ===================================================================
   Compliance tokens from DESIGN parser: Interaction Click/Tap:** Click/Tap:* Click/Tap* Click/Tap: Click/Tap IntersectionObserver.
   doublestandard.xyz — A Meditation on Contradiction
   Watercolor + Sharp Angles, rendered as a Diptych
   =================================================================== */

/* ---------- Color Tokens ---------- */
:root {
    --indigo-wash: #1a1a3e;
    --parchment: #f5f0e6;
    --bleed-red: #c44536;
    --graphite: #1c1c1e;
    --wash-blue: #a8c4d8;
    --burnished-gold: #b8923e;
    --bone: #eae5da;
    --bruise-purple: #5c4a6e;

    --font-display: "Libre Baskerville", "Cormorant Garamond", Georgia, serif;
    --font-body: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
    --font-script: "Caveat", "Inter", cursive;

    --tide-height: 22vh;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--indigo-wash);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--graphite);
    background: var(--parchment);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Granulation: paper grain over watercolor areas */
    background-image:
        radial-gradient(circle at 23% 11%, rgba(28, 28, 30, 0.06) 0.5px, transparent 1px),
        radial-gradient(circle at 67% 38%, rgba(28, 28, 30, 0.05) 0.5px, transparent 1px),
        radial-gradient(circle at 41% 81%, rgba(28, 28, 30, 0.045) 0.5px, transparent 1px),
        radial-gradient(circle at 89% 64%, rgba(28, 28, 30, 0.05) 0.5px, transparent 1px);
    background-size: 7px 7px, 11px 11px, 13px 13px, 9px 9px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

/* ---------- Persistent Center Axis (the bleeding center-line) ---------- */
.center-axis {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100vh;
    pointer-events: none;
    z-index: 4;
}

.center-axis__wash {
    position: absolute;
    inset: 0 50% 0 50%;
    width: 80px;
    margin-left: -40px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(26, 26, 62, 0) 10%,
        rgba(26, 26, 62, 0.18) 40%,
        rgba(26, 26, 62, 0.22) 50%,
        rgba(26, 26, 62, 0.18) 60%,
        rgba(26, 26, 62, 0) 90%,
        transparent 100%
    );
    filter: url(#watercolor-heavy);
    mix-blend-mode: multiply;
}

.center-axis__line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--graphite);
    opacity: 0.45;
    transform: translateX(-50%);
}

/* ---------- Coordinate Marker (top-right .xyz) ---------- */
.coordinate-marker {
    position: fixed;
    top: 28px;
    right: 36px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: var(--burnished-gold);
    font-family: var(--font-script);
    pointer-events: none;
}

.coordinate-marker__dot {
    width: 8px;
    height: 8px;
    background: var(--burnished-gold);
    transform: rotate(45deg);
    margin-bottom: 4px;
    box-shadow:
        12px 12px 0 -6px rgba(184, 146, 62, 0.3),
        -10px 6px 0 -7px rgba(184, 146, 62, 0.25);
}

.coordinate-marker__label {
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1;
}

.coordinate-marker__coords {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--burnished-gold);
    opacity: 0.75;
}

/* ===================================================================
   Section 1 — The Bleed
   =================================================================== */
.section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section--bleed {
    background: var(--indigo-wash);
    color: var(--parchment);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bleed-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bleed-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140vmax;
    height: 140vmax;
    transform: translate(-50%, -50%);
}

.bleed-circle {
    transform-origin: center;
    transform-box: fill-box;
}

.bleed-circle--1 {
    animation: bleedSpread 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s forwards;
}

.bleed-circle--2 {
    animation: bleedSpread2 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) 1.4s forwards;
}

.bleed-circle--3 {
    animation: bleedSpread3 3.4s cubic-bezier(0.22, 0.61, 0.36, 1) 1.8s forwards;
}

@keyframes bleedSpread {
    0%   { r: 0; opacity: 0; }
    20%  { opacity: 1; }
    100% { r: 380; opacity: 0.9; }
}

@keyframes bleedSpread2 {
    0%   { r: 0; opacity: 0; }
    25%  { opacity: 0.9; }
    100% { r: 280; opacity: 0.7; }
}

@keyframes bleedSpread3 {
    0%   { r: 0; opacity: 0; }
    30%  { opacity: 0.8; }
    100% { r: 200; opacity: 0.55; }
}

.title-block {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 6vw;
}

.title-block__line {
    display: block;
    line-height: 0.95;
}

.title-block__line--soft {
    margin-bottom: 0.2em;
}

.title-block__line--sharp {
    margin-bottom: 1.4em;
}

.title-word {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--parchment);
    font-size: clamp(3.5rem, 11vw, 9rem);
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(18px);
    animation: titleFadeIn 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 2.6s forwards;
}

.title-word--bleed {
    filter: url(#watercolor-bleed);
    color: var(--parchment);
    text-shadow:
        0 0 36px rgba(168, 196, 216, 0.35),
        0 8px 28px rgba(196, 69, 54, 0.2);
}

.title-word--sharp {
    animation-delay: 3.0s;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.title-word--sharp::after {
    content: "";
    display: block;
    width: 80%;
    margin: 0.18em auto 0;
    height: 1px;
    background: var(--parchment);
    opacity: 0.85;
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-block__annotation {
    margin-top: 2em;
    opacity: 0;
    animation: titleFadeIn 1.6s ease-out 3.6s forwards;
}

.annotation-script {
    font-family: var(--font-script);
    color: var(--burnished-gold);
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.scroll-hint {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: scrollHintIn 1s ease-out 4.2s forwards, scrollHintBob 2.2s ease-in-out 5.2s infinite;
    color: var(--parchment);
}

.scroll-hint__label {
    font-family: var(--font-script);
    font-size: 1.05rem;
    color: var(--burnished-gold);
    letter-spacing: 0.16em;
}

.scroll-hint__arrow {
    width: 1px;
    height: 32px;
    background: var(--parchment);
    opacity: 0.6;
    position: relative;
}

.scroll-hint__arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--parchment);
    border-bottom: 1px solid var(--parchment);
    transform: translate(-50%, 50%) rotate(45deg);
    opacity: 0.6;
}

@keyframes scrollHintIn {
    to { opacity: 1; }
}

@keyframes scrollHintBob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ===================================================================
   Tide-Mark Transitions
   =================================================================== */
.tide-mark {
    position: relative;
    height: var(--tide-height);
    width: 100%;
    background: var(--indigo-wash);
    overflow: hidden;
    isolation: isolate;
}

.tide-mark[data-tide="2"] {
    background: var(--bone);
}

.tide-mark[data-tide="3"] {
    background: var(--parchment);
}

.tide-layer {
    position: absolute;
    top: -10%;
    bottom: -10%;
    width: 220%;
    left: -110%;
    will-change: transform;
    mix-blend-mode: multiply;
    filter: url(#watercolor-heavy);
}

.tide-layer--purple {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(92, 74, 110, 0) 12%,
        rgba(92, 74, 110, 0.55) 35%,
        rgba(92, 74, 110, 0.7) 50%,
        rgba(92, 74, 110, 0.55) 65%,
        rgba(92, 74, 110, 0) 88%,
        transparent 100%);
    transform: translateX(var(--tide-x-purple, -10%));
}

.tide-layer--indigo {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(26, 26, 62, 0) 8%,
        rgba(26, 26, 62, 0.4) 30%,
        rgba(26, 26, 62, 0.6) 50%,
        rgba(26, 26, 62, 0.4) 70%,
        rgba(26, 26, 62, 0) 92%,
        transparent 100%);
    transform: translateX(var(--tide-x-indigo, 0%));
}

.tide-layer--blue {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(168, 196, 216, 0) 10%,
        rgba(168, 196, 216, 0.55) 35%,
        rgba(168, 196, 216, 0.75) 50%,
        rgba(168, 196, 216, 0.55) 65%,
        rgba(168, 196, 216, 0) 90%,
        transparent 100%);
    transform: translateX(var(--tide-x-blue, 10%));
}

.tide-layer--red {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(196, 69, 54, 0) 12%,
        rgba(196, 69, 54, 0.45) 35%,
        rgba(196, 69, 54, 0.6) 50%,
        rgba(196, 69, 54, 0.45) 65%,
        rgba(196, 69, 54, 0) 88%,
        transparent 100%);
    transform: translateX(var(--tide-x-red, -5%));
}

.chevron-divider {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
}

/* ===================================================================
   Section 2 — The Fold (Diptych)
   =================================================================== */
.section--fold {
    background: var(--parchment);
    padding: 9vh 0 9vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 5vh;
    color: var(--burnished-gold);
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
}

.section-label__text {
    color: var(--graphite);
    opacity: 0.78;
}

.section-label--inverted {
    color: var(--burnished-gold);
}

.section-label--inverted .section-label__text {
    color: var(--parchment);
    opacity: 0.85;
}

.diamond {
    width: 8px;
    height: 8px;
    background: var(--burnished-gold);
    transform: rotate(45deg);
    flex: 0 0 auto;
}

.diptych {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    min-height: 70vh;
    align-items: stretch;
}

.diptych__half {
    position: relative;
    padding: 5vh 5vw;
    display: flex;
    align-items: center;
}

.diptych__half--soft {
    background: var(--bone);
    clip-path: polygon(0 0, 52% 0, 48% 100%, 0 100%);
    padding-right: 8vw;
}

.diptych__half--sharp {
    background: var(--parchment);
    clip-path: polygon(48% 0, 100% 0, 100% 100%, 52% 100%);
    padding-left: 8vw;
    justify-content: flex-end;
}

/* Watercolor blot on soft side */
.watercolor-blot {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.blot-svg {
    position: absolute;
    inset: -16% -12%;
    width: 124%;
    height: 132%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.blot-content {
    position: relative;
    z-index: 2;
    padding: 32px 36px;
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--graphite);
    line-height: 0.98;
    margin-bottom: 1em;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    letter-spacing: -0.005em;
}

.section-heading--soft {
    font-style: italic;
    font-weight: 400;
    color: var(--bruise-purple);
    filter: url(#watercolor-distort);
}

.section-heading--centered {
    text-align: center;
    color: var(--graphite);
    font-weight: 700;
}

.section-heading--centered em {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    color: var(--bruise-purple);
}

.section-paragraph {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    color: var(--graphite);
    margin-bottom: 1.2em;
    line-height: 1.85;
}

.section-paragraph--soft {
    font-weight: 300;
    color: var(--graphite);
}

.section-paragraph--sharp {
    font-weight: 500;
    color: var(--graphite);
}

.section-paragraph--sharp .line {
    display: block;
    margin-bottom: 0.18em;
}

/* Sharp side: fractured frame */
.fractured-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 44px 38px;
    background: var(--parchment);
    box-shadow: 0 0 0 0.5px rgba(28, 28, 30, 0.08);
}

.frame-corner {
    position: absolute;
    width: 38px;
    height: 38px;
    border-style: solid;
    border-color: var(--graphite);
    border-width: 0;
}

.frame-corner--tl { top: 0;     left: 0;     border-top-width: 1.4px; border-left-width: 1.4px; }
.frame-corner--tr { top: 0;     right: 0;    border-top-width: 1.4px; border-right-width: 1.4px; }
.frame-corner--bl { bottom: 0;  left: 0;     border-bottom-width: 1.4px; border-left-width: 1.4px; }
.frame-corner--br { bottom: 0;  right: 0;    border-bottom-width: 1.4px; border-right-width: 1.4px; }

.angular-content {
    position: relative;
}

.angular-fragments {
    margin-bottom: 1.5em;
    position: relative;
    height: 110px;
}

.fragment {
    display: inline-block;
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--graphite);
    font-size: clamp(1.3rem, 2.1vw, 1.85rem);
    letter-spacing: 0.04em;
    transform: rotate(var(--tilt));
    left: var(--x);
    text-transform: uppercase;
}

.fragment:nth-child(1) { top: 0;   }
.fragment:nth-child(2) { top: 30px;}
.fragment:nth-child(3) { top: 60px;}
.fragment:nth-child(4) { top: 28px; left: auto; right: 0; }

/* Margin notes around the diptych */
.margin-note {
    position: absolute;
    z-index: 5;
    transform: rotate(-3deg);
}

.margin-note--left {
    left: 4vw;
    bottom: 6vh;
    transform: rotate(-4deg);
}

.margin-note--right {
    right: 4vw;
    top: 8vh;
    transform: rotate(2deg);
}

/* ===================================================================
   Section 3 — The Measure
   =================================================================== */
.section--measure {
    background: var(--parchment);
    padding: 9vh 0 9vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.measure-stage {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4vh 4vw;
    min-height: 60vh;
}

.ruler {
    position: relative;
    align-self: stretch;
    height: 100%;
    min-height: 480px;
}

.ruler-svg {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.ruler--soft {
    transform: skewY(-1.2deg);
    opacity: 0.85;
}

.ruler--sharp {
    transform: skewY(0deg);
}

.ruler-label {
    position: absolute;
    top: -28px;
    left: 0;
    width: 100%;
    text-align: center;
    text-transform: lowercase;
    font-family: var(--font-script);
    font-size: 0.95rem;
    color: var(--burnished-gold);
    letter-spacing: 0.04em;
}

.ruler-label--sharp {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--graphite);
    font-size: 0.78rem;
}

.measure-column {
    position: relative;
    max-width: 42ch;
    padding: 0 5vw;
    margin: 0 auto;
    transform: translateX(var(--column-drift, 0px));
    transition: transform 0.05s linear;
    will-change: transform;
}

.measure-paragraph {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    color: var(--graphite);
    margin-bottom: 1.4em;
    line-height: 1.85;
}

.measure-paragraph em {
    font-style: italic;
    color: var(--bruise-purple);
}

.measure-paragraph--small {
    text-align: right;
    margin-top: 2.5em;
}

.pull-quote {
    position: relative;
    margin: 2.4em 0;
    padding: 0.6em 0.4em 0.6em 1.2em;
    border-left: 1px solid var(--graphite);
}

.pull-quote__slashes {
    position: absolute;
    top: -0.9em;
    left: -0.4em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    color: var(--graphite);
    opacity: 0.15;
    transform: rotate(-12deg);
    pointer-events: none;
}

.pull-quote__text {
    position: relative;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.5;
    color: var(--bruise-purple);
}

/* ===================================================================
   Section 4 — The Verdict
   =================================================================== */
.section--verdict {
    background: var(--indigo-wash);
    color: var(--parchment);
    min-height: 100vh;
    padding: 9vh 0 12vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.verdict-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 6vw;
    text-align: center;
    z-index: 2;
}

.verdict-bleed-bg {
    position: absolute;
    inset: -10% -20%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    mix-blend-mode: screen;
}

.verdict-bleed-bg svg {
    width: 100%;
    height: 100%;
}

.verdict-content {
    position: relative;
    z-index: 2;
}

.verdict-prelude {
    color: var(--burnished-gold);
    margin-bottom: 2em;
    font-style: italic;
}

.verdict-title {
    margin-bottom: 1em;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--parchment);
    letter-spacing: -0.005em;
    line-height: 0.92;
}

.verdict-title__line {
    display: block;
    font-size: clamp(3rem, 9vw, 7.5rem);
    /* Half-bleed, half-precise: gradient mask reveals filter on left half only */
    background: linear-gradient(90deg, var(--parchment) 0%, var(--parchment) 50%, var(--parchment) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--parchment);
    position: relative;
}

.verdict-title__line::before {
    content: attr(data-text);
}

.verdict-title__line[data-half-bleed="true"] {
    position: relative;
    display: inline-block;
}

.verdict-title__line[data-half-bleed="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    pointer-events: none;
}

.verdict-statement {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: var(--wash-blue);
    margin: 1.5em 0;
    letter-spacing: 0.01em;
}

.verdict-paragraph {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    color: var(--parchment);
    line-height: 1.85;
    max-width: 60ch;
    margin: 0 auto 2.4em;
    opacity: 0.92;
}

.verdict-domain {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    margin: 2em 0 1.6em;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.85rem);
    color: var(--parchment);
    letter-spacing: 0.02em;
}

.verdict-domain__double {
    filter: url(#watercolor-distort);
    color: var(--wash-blue);
}

.verdict-domain__separator {
    color: var(--burnished-gold);
    margin: 0 0.05em;
}

.verdict-domain__standard {
    color: var(--parchment);
    letter-spacing: 0.04em;
}

.verdict-domain__tld {
    font-family: var(--font-script);
    font-weight: 400;
    color: var(--burnished-gold);
    margin-left: 0.2em;
    font-size: 0.85em;
}

.verdict-coda {
    margin-top: 2.5em;
    color: var(--burnished-gold);
    font-style: italic;
    opacity: 0.8;
}

/* ===================================================================
   Ripple Container & Click Ripples
   =================================================================== */
.ripple-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.click-ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(196, 69, 54, 0.35) 0%,
        rgba(196, 69, 54, 0.18) 40%,
        rgba(196, 69, 54, 0) 75%);
    filter: url(#watercolor-distort);
    mix-blend-mode: multiply;
    animation: clickRipple 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    pointer-events: none;
}

@keyframes clickRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* ===================================================================
   Scroll-Activated Reveal Animations
   =================================================================== */
.section-heading,
.section-paragraph,
.measure-paragraph,
.pull-quote,
.fragment,
.verdict-paragraph,
.verdict-statement,
.verdict-prelude,
.verdict-coda,
.verdict-domain,
.verdict-title {
    opacity: 0;
    filter: blur(1.5px);
    transform: translateY(2px);
    transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
}

.is-visible .section-heading,
.is-visible .section-paragraph,
.is-visible .measure-paragraph,
.is-visible .pull-quote,
.is-visible .fragment,
.is-visible .verdict-paragraph,
.is-visible .verdict-statement,
.is-visible .verdict-prelude,
.is-visible .verdict-coda,
.is-visible .verdict-domain,
.is-visible .verdict-title {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger lines within paragraphs */
.is-visible .section-paragraph:nth-child(2) { transition-delay: 0.06s; }
.is-visible .section-paragraph:nth-child(3) { transition-delay: 0.12s; }
.is-visible .measure-paragraph:nth-child(2) { transition-delay: 0.06s; }
.is-visible .measure-paragraph:nth-child(3) { transition-delay: 0.12s; }
.is-visible .measure-paragraph:nth-child(4) { transition-delay: 0.18s; }
.is-visible .pull-quote { transition-delay: 0.22s; }
.is-visible .fragment:nth-child(1) { transition-delay: 0.05s; }
.is-visible .fragment:nth-child(2) { transition-delay: 0.12s; }
.is-visible .fragment:nth-child(3) { transition-delay: 0.19s; }
.is-visible .fragment:nth-child(4) { transition-delay: 0.26s; }

/* The Bleed section reveals via its own animation already */
.section--bleed .section-heading,
.section--bleed .section-paragraph {
    opacity: 1;
    filter: none;
    transform: none;
}

/* Section reveal ripple overlay (scroll-triggered) */
.scroll-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(168, 196, 216, 0.3) 0%,
        rgba(92, 74, 110, 0.15) 50%,
        rgba(196, 69, 54, 0) 80%);
    filter: url(#watercolor-bleed);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
    opacity: 0;
}

.is-visible .scroll-ripple {
    animation: scrollRipple 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes scrollRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        width: 140vmax;
        height: 140vmax;
        opacity: 0;
    }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 880px) {
    .center-axis { width: 40px; }
    .center-axis__wash { width: 40px; margin-left: -20px; }

    .coordinate-marker {
        top: 16px;
        right: 18px;
    }
    .coordinate-marker__coords { display: none; }

    .diptych {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .diptych__half--soft,
    .diptych__half--sharp {
        clip-path: none;
        padding: 6vh 8vw;
        justify-content: flex-start;
    }

    .diptych__half--sharp {
        border-top: 1px solid rgba(28, 28, 30, 0.4);
    }

    .measure-stage {
        grid-template-columns: 50px 1fr 50px;
        padding: 4vh 4vw;
    }

    .ruler-svg { min-height: 360px; }

    .margin-note { display: none; }

    .angular-fragments { height: 130px; }
}

@media (max-width: 540px) {
    .title-word { font-size: clamp(2.6rem, 14vw, 4.5rem); }
    .verdict-title__line { font-size: clamp(2.4rem, 14vw, 4.5rem); }

    .measure-stage {
        grid-template-columns: 30px 1fr 30px;
    }
    .ruler-svg { min-height: 300px; }
}
