/* ==========================================================
   HHASSL.com -- Glitch art / bureaucratic friction / resolution
   Palette: #1a1718 #2d2a2e #f0e6d3 #9b958d #e63946 #72b896 #f4a127 #4a4548
   Type: Space Grotesk (heads), IBM Plex Mono (body), Anybody (labels)
   ========================================================== */

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

:root {
    --bg: #1a1718;
    --bg-2: #2d2a2e;
    --paper: #f0e6d3;
    --gray: #9b958d;
    --noise: #4a4548;
    --red: #e63946;
    --amber: #f4a127;
    --green: #72b896;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--paper);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M4,14 C8,6 12,22 14,14 S20,6 24,14 S20,22 14,14 S8,22 4,14' fill='none' stroke='%23f4a127' stroke-width='1.6'/><circle cx='14' cy='14' r='1.4' fill='%23e63946'/></svg>") 14 14, auto;
}

a, button, .nav-link, .redactable, .err-icon, .side-card {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M3,3 L3,18 L8,14 L11,21 L14,20 L11,13 L18,12 Z' fill='%23f0e6d3' stroke='%231a1718' stroke-width='1'/></svg>") 3 3, pointer;
}

.svg-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* ============== Noise overlay ============== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.9  0 0 0 0 0.83  0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
    animation: noise-shift 0.4s steps(6) infinite;
    transition: opacity 1.2s ease;
}
@keyframes noise-shift {
    0%   { background-position: 0 0; }
    20%  { background-position: -20px 10px; }
    40%  { background-position: 15px -20px; }
    60%  { background-position: -8px 25px; }
    80%  { background-position: 30px 4px; }
    100% { background-position: 0 0; }
}

/* Scattered paper rectangles */
.paper-scatter { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.paper {
    position: absolute;
    background: var(--noise);
    opacity: 0.04;
    transform-origin: center;
}
.paper.p1 { top: 12%; left: 8%; width: 220px; height: 280px; transform: rotate(-7deg); }
.paper.p2 { top: 30%; left: 70%; width: 180px; height: 240px; transform: rotate(4deg); }
.paper.p3 { top: 55%; left: 20%; width: 260px; height: 320px; transform: rotate(11deg); }
.paper.p4 { top: 80%; left: 65%; width: 200px; height: 260px; transform: rotate(-3deg); }
.paper.p5 { top: 5%; left: 55%; width: 140px; height: 200px; transform: rotate(8deg); }
.paper.p6 { top: 70%; left: 5%; width: 160px; height: 220px; transform: rotate(-12deg); }
.paper.p7 { top: 40%; left: 40%; width: 140px; height: 180px; transform: rotate(2deg); }
.paper.p8 { top: 92%; left: 38%; width: 220px; height: 280px; transform: rotate(-6deg); }

/* ============== Navigation ============== */
.nav-cluster {
    position: fixed;
    top: 26px;
    left: 26px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gray);
    text-decoration: none;
    padding: 2px 8px;
    margin-top: -2px;
    background: rgba(26, 23, 24, 0.55);
    border-left: 1px solid var(--noise);
    transition: color 0.35s ease, transform 0.4s cubic-bezier(.2,.9,.3,1.1), border-color 0.35s ease;
    position: relative;
}
.nav-link::before {
    content: attr(data-num);
    color: var(--amber);
    margin-right: 8px;
    opacity: 0.7;
}
.nav-link:nth-child(odd) { transform: translateX(0); }
.nav-link:nth-child(even) { transform: translateX(4px); }
.nav-cluster:hover .nav-link { transform: translateX(0); margin-top: 4px; }
.nav-link:hover { color: var(--paper); border-left-color: var(--red); }

/* Scroll rail (right edge true progress) */
.scroll-rail {
    position: fixed;
    top: 0;
    right: 0;
    width: 3px;
    height: 100vh;
    background: rgba(74, 69, 72, 0.25);
    z-index: 100;
}
.scroll-rail-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--red), var(--amber) 50%, var(--green));
    transition: height 0.1s linear;
}
.scroll-rail-label {
    position: absolute;
    bottom: 18px;
    right: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* ============== Boot screen ============== */
.boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 40px 56px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.boot-screen.hidden {
    opacity: 0;
    transform: translateY(-2vh);
    pointer-events: none;
}
.boot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2d2a2e;
}
.boot-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: var(--red); }
.dot-y { background: var(--amber); }
.dot-g { background: var(--green); }
.boot-title {
    margin-left: 12px;
    color: var(--gray);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}
.boot-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.86rem;
    color: var(--amber);
    white-space: pre-wrap;
    line-height: 1.7;
}
.boot-line {
    margin-top: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.86rem;
    color: var(--paper);
    display: flex;
    gap: 6px;
}
.boot-prompt { color: var(--green); }
.boot-cursor {
    display: inline-block;
    color: var(--paper);
    animation: cursor-blink 0.8s step-end infinite;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============== Main / sections ============== */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
    position: relative;
    z-index: 5;
}
.main-content.visible { opacity: 1; }

.hassle-section {
    min-height: 100vh;
    position: relative;
    padding: 110px clamp(28px, 6vw, 96px) 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tear-line dividers */
.tear-divider {
    position: absolute;
    top: -1px;
    left: -2vw;
    width: 104vw;
    height: 28px;
    pointer-events: none;
    background: var(--bg);
    --tear: polygon(
        0% 100%, 2% 30%, 5% 70%, 8% 20%, 12% 80%, 15% 35%, 19% 75%, 23% 25%,
        27% 70%, 31% 35%, 35% 80%, 39% 25%, 43% 75%, 47% 30%, 51% 70%, 55% 25%,
        59% 80%, 63% 30%, 67% 75%, 71% 25%, 75% 80%, 79% 30%, 83% 75%, 87% 25%,
        91% 70%, 95% 35%, 98% 75%, 100% 30%, 100% 100%
    );
    clip-path: var(--tear);
    border-bottom: 1px dashed rgba(155, 149, 141, 0.28);
}
.tear-2 { transform: scaleX(-1); }
.tear-3 { transform: scaleX(1) translateY(2px); }
.tear-4 { transform: scaleX(-1); }
.tear-5 { transform: scaleX(1); }

/* Flicker bar between sections */
.hassle-section::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--gray);
    opacity: 0.3;
    animation: flicker-rule 4s steps(7) infinite;
}
.closing-section::after { display: none; }

@keyframes flicker-rule {
    0%, 30%, 60%, 100% { opacity: 0.3; }
    15% { opacity: 0.8; }
    45% { opacity: 0.6; }
    75% { opacity: 0.2; }
    85% { opacity: 0.7; }
}

/* Grid */
.grid-12 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(28px, 4vw, 80px);
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}
.grid-12.reverse { grid-template-columns: 1fr 1.4fr; }

/* Section content (animated reveal) */
.section-content {
    max-width: 720px;
    z-index: 10;
    position: relative;
    opacity: 0;
    transform: translateX(20px) skewX(2deg);
    clip-path: inset(0 30% 0 0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.9,.3,1.1), clip-path 0.7s ease;
}
.section-content.visible-content {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
    clip-path: inset(0 0 0 0);
}

/* Tilted columns (broken-grid) */
.tilt-1 { transform-origin: top left; }
.tilt-1.pre-snap { transform: translateX(-12px) rotate(-1.2deg); }
.tilt-2.pre-snap { transform: translateX(8px) rotate(1.4deg); }
.tilt-3.pre-snap { transform: translateX(14px) rotate(0.9deg); }
.tilt-4.pre-snap { transform: translateX(-10px) rotate(-0.8deg); }
.tilt-5.pre-snap { transform: translateX(-8px) rotate(0.7deg); }
.tilt-6.pre-snap { transform: translateX(12px) rotate(-1deg); }
.tilt-7.pre-snap { transform: translateX(6px) rotate(-0.4deg); }
.tilt-8.pre-snap { transform: translateX(-4px) rotate(0.3deg); }

.tilt-1, .tilt-2, .tilt-3, .tilt-4,
.tilt-5, .tilt-6, .tilt-7, .tilt-8 {
    transition: transform 0.9s cubic-bezier(.2,.9,.3,1.05), opacity 0.9s ease;
}

/* OPENING SECTION */
.opening-section {
    align-items: center;
    text-align: left;
    overflow: hidden;
}
.opener-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 80px);
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
.opener-tangle {
    width: 100%;
    max-width: 600px;
    opacity: 0.95;
}
.tangle-line { width: 100%; height: auto; will-change: transform; }
.tangle-path {
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: draw-tangle 4s ease-out forwards;
    transform-origin: center;
}
.tangle-path-2 {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-tangle 4.2s 0.2s ease-out forwards;
}
.tangle-path-3 {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw-tangle 4.5s 0.4s ease-out forwards;
}
@keyframes draw-tangle {
    to { stroke-dashoffset: 0; }
}
.tangle-group { animation: tangle-pulse 6s ease-in-out infinite; transform-origin: center; }
@keyframes tangle-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.03) rotate(0.6deg); }
}

.opener-text {
    transform: translateX(0) skewX(0);
    clip-path: none;
    opacity: 1;
}
.opener-label {
    color: var(--amber);
    margin-bottom: 24px;
    display: inline-block;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 8rem);
    color: var(--paper);
    letter-spacing: -0.04em;
    line-height: 0.95;
    position: relative;
    display: inline-block;
}
.glitched .site-title::before,
.glitched .site-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.glitched .site-title::before {
    color: var(--red);
    clip-path: inset(0 0 65% 0);
    transform: translate(-3px, -1px);
    animation: glitch-top 3.5s steps(20) infinite;
    mix-blend-mode: screen;
}
.glitched .site-title::after {
    color: var(--amber);
    clip-path: inset(60% 0 0 0);
    transform: translate(3px, 1px);
    animation: glitch-bottom 3.5s steps(20) infinite;
    mix-blend-mode: screen;
}
@keyframes glitch-top {
    0%, 90%, 100% { transform: translate(-3px, -1px); }
    5%  { transform: translate(2px, -2px); clip-path: inset(0 0 70% 0); }
    8%  { transform: translate(-4px, 0); clip-path: inset(0 0 50% 0); }
    13% { transform: translate(0, -1px); }
}
@keyframes glitch-bottom {
    0%, 90%, 100% { transform: translate(3px, 1px); }
    6%  { transform: translate(-3px, 2px); clip-path: inset(70% 0 0 0); }
    11% { transform: translate(4px, 0); clip-path: inset(50% 0 0 0); }
    18% { transform: translate(0, 1px); }
}

.site-subtitle {
    font-family: 'Anybody', sans-serif;
    font-weight: 300;
    font-stretch: 125%;
    font-size: 1.05rem;
    color: var(--gray);
    margin-top: 18px;
    margin-bottom: 28px;
    max-width: 460px;
    letter-spacing: 0.04em;
}

.opener-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    color: var(--gray);
    letter-spacing: 0.16em;
}
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item em { width: 8px; height: 8px; border-radius: 50%; display: inline-block; font-style: normal; }
.dot-red    { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot-amber  { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot-green  { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-green-inline { color: var(--green); }

.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gray);
    animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue-arrow { color: var(--amber); font-size: 1rem; }
@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* Section labels & headings */
.section-label {
    font-family: 'Anybody', sans-serif;
    font-weight: 500;
    font-stretch: 125%;
    font-size: 0.72rem;
    color: var(--amber);
    letter-spacing: 0.32em;
    display: block;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    color: var(--paper);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.02;
    position: relative;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glitch-text::before { color: var(--red); transform: translate(-2px, 0); }
.glitch-text::after  { color: var(--green); transform: translate(2px, 0); }
.section-heading:hover::before,
.section-heading:hover::after { opacity: 0.85; animation: glitch-jump 0.6s steps(8) infinite; }
@keyframes glitch-jump {
    0%   { transform: translate(-3px, 0); }
    25%  { transform: translate(2px, -1px); }
    50%  { transform: translate(-2px, 1px); }
    75%  { transform: translate(3px, 0); }
    100% { transform: translate(-3px, 0); }
}

.section-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--paper);
    max-width: 56ch;
    margin-bottom: 24px;
}

/* Offset columns */
.offset-left { justify-self: start; padding-right: 12px; }
.offset-right { justify-self: end; padding-left: 12px; text-align: left; }
.centered { margin: 0 auto; text-align: center; }

/* Redacted block */
.redacted-block {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.redacted-line {
    display: block;
    padding: 10px 14px;
    background: #0a0809;
    border-left: 3px solid var(--red);
    color: var(--red);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, letter-spacing 0.5s ease;
}
.redacted-line.short { width: 65%; }
.redacted-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 161, 39, 0.18), transparent);
    animation: redact-sweep 5s linear infinite;
    pointer-events: none;
}
@keyframes redact-sweep {
    0%   { left: -60%; }
    100% { left: 160%; }
}
.redacted-line.revealed {
    background: var(--bg-2);
    border-left-color: var(--green);
    color: var(--paper);
    letter-spacing: 0.04em;
    text-transform: none;
}

/* Side cards */
.side-card {
    background: var(--bg-2);
    border: 1px solid var(--noise);
    border-radius: 2px;
    padding: 22px;
    width: 100%;
    max-width: 320px;
    backdrop-filter: contrast(1.1) brightness(0.95);
    position: relative;
    transition: transform 0.5s cubic-bezier(.2,.9,.3,1), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}
.side-card:hover {
    box-shadow: 4px 4px 0 var(--red);
    transform: translate(-2px, -2px) rotate(0deg) !important;
}
.side-card.resolved:hover {
    box-shadow: 4px 4px 0 var(--green);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--noise);
}
.card-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--gray);
    letter-spacing: 0.2em;
}
.card-status {
    font-family: 'Anybody', sans-serif;
    font-weight: 700;
    font-stretch: 125%;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    padding: 3px 8px;
    border-radius: 1px;
}
.status-red { background: rgba(230, 57, 70, 0.15); color: var(--red); border: 1px solid var(--red); }
.status-amber { background: rgba(244, 161, 39, 0.12); color: var(--amber); border: 1px solid var(--amber); }
.status-green { background: rgba(114, 184, 150, 0.15); color: var(--green); border: 1px solid var(--green); }

.knot-svg, .hourglass-svg, .check-svg, .loop-svg { width: 100%; height: auto; max-width: 220px; margin: 0 auto 16px; display: block; }

.hourglass-rotate {
    transform-origin: 60px 60px;
    animation: hg-flip 8s cubic-bezier(.6,.05,.4,.95) infinite;
}
@keyframes hg-flip {
    0%, 45%   { transform: rotate(0deg); }
    50%, 95%  { transform: rotate(180deg); }
    100%      { transform: rotate(360deg); }
}

.loop-spin {
    transform-origin: 120px 120px;
    animation: loop-spin 14s linear infinite;
}
@keyframes loop-spin {
    to { transform: rotate(360deg); }
}

.check-card .check-svg circle {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    transition: stroke-dashoffset 1s ease;
}
.check-card .check-stroke {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    transition: stroke-dashoffset 0.9s 0.4s ease;
}
.check-card.visible-check .check-svg circle { stroke-dashoffset: 0; }
.check-card.visible-check .check-stroke { stroke-dashoffset: 0; }

.card-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Loop diagram */
.loop-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.loop-svg { max-width: 280px; }

/* Error icons */
.error-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 56px auto 0;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
}
.err-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border: 1px dashed var(--noise);
    background: rgba(45, 42, 46, 0.4);
    transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
    width: 120px;
}
.err-icon svg { width: 40px; height: 40px; }
.err-icon span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    color: var(--gray);
    letter-spacing: 0.18em;
}
.err-icon:hover {
    border-color: var(--amber);
    transform: translateY(-3px);
    background: rgba(45, 42, 46, 0.7);
}

/* Progress bars */
.progress-row {
    display: grid;
    grid-template-columns: 200px 1fr 80px;
    gap: 20px;
    align-items: center;
    margin-top: 36px;
    max-width: 900px;
    width: 100%;
}
.progress-stack { display: flex; flex-direction: column; gap: 18px; max-width: 900px; width: 100%; margin-top: 36px; }
.progress-stack .progress-row { margin-top: 0; }

.progress-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    color: var(--gray);
    letter-spacing: 0.16em;
}
.progress-track {
    height: 8px;
    background: var(--bg-2);
    border: 1px solid var(--noise);
    overflow: hidden;
    position: relative;
}
.progress-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent 6px, rgba(74,69,72,0.4) 6px, rgba(74,69,72,0.4) 7px);
    pointer-events: none;
}
.progress-fill {
    height: 100%;
    width: 0;
    transition: width 1.6s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.progress-red    { background: linear-gradient(90deg, #8a1d27, var(--red)); }
.progress-amber  { background: linear-gradient(90deg, var(--amber), #ffba4d); }
.progress-green  { background: linear-gradient(90deg, var(--green), #9bd9bb); }
.progress-stutter { background: linear-gradient(90deg, var(--amber), var(--red)); animation: stutter 4s steps(8) infinite; }
@keyframes stutter {
    0%, 100% { filter: none; }
    20% { filter: brightness(1.4); transform: translateX(-1px); }
    40% { filter: brightness(0.7); transform: translateX(1px); }
    60% { filter: brightness(1.2); transform: translateX(0); }
}
.progress-pct {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--paper);
    letter-spacing: 0.1em;
    text-align: right;
}
.stutter-pct {
    color: var(--red);
    animation: pct-flicker 2.5s steps(5) infinite;
}
@keyframes pct-flicker {
    0%, 70%, 100% { opacity: 1; }
    75% { opacity: 0.3; }
    80% { opacity: 1; }
    85% { opacity: 0.5; }
}

/* Resolved styles */
.resolved .section-heading { color: var(--green); }
.resolved .section-label { color: var(--green); }
.resolved.section-content { transform: translateX(0) skewX(0); }

/* CLOSING */
.closing-section {
    min-height: 90vh;
    align-items: center;
    text-align: center;
}
.closing-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
    position: relative;
}
.closing-label { color: var(--green); margin-bottom: 28px; }
.closing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 7rem);
    color: var(--green);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 18px;
    text-shadow: 0 0 40px rgba(114, 184, 150, 0.25);
}
.closing-subtitle {
    font-family: 'Anybody', sans-serif;
    font-weight: 300;
    font-stretch: 125%;
    font-size: 1.1rem;
    color: var(--paper);
    margin-bottom: 40px;
    letter-spacing: 0.06em;
}
.untangled-line {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 48px;
}
.untangled-line svg { width: 100%; height: auto; }
.untangled-line line {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    transition: stroke-dashoffset 1.4s ease;
}
.untangled-line.revealed line { stroke-dashoffset: 0; }
.closing-foot {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    color: var(--gray);
    letter-spacing: 0.18em;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-12, .grid-12.reverse, .opener-grid { grid-template-columns: 1fr; }
    .offset-left, .offset-right { padding: 0; justify-self: start; }
    .progress-row { grid-template-columns: 140px 1fr 60px; }
    .nav-cluster { top: 14px; left: 14px; }
}
@media (max-width: 640px) {
    .hassle-section { padding: 80px 22px; }
    .scroll-rail { display: none; }
    .progress-row { grid-template-columns: 1fr; gap: 6px; }
    .progress-pct { text-align: left; }
    .boot-screen { padding: 24px; }
    .scroll-cue { bottom: 18px; }
    .err-icon { width: 100px; padding: 10px 12px; }
}
