/* =====================================================
   계엄령.quest — Cyberpunk Civic Education
   Dark-Neon Palette | Broken-Grid | Lens-Flare Motifs
   ===================================================== */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&family=IBM+Plex+Sans:wght@400;600&family=Source+Code+Pro:wght@400;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --deep-black:    #0a0e18;
    --dark-surface:  #1a1828;
    --neon-cyan:     #00e5ff;
    --resist-red:    #ff3250;
    --pastel-cream:  #f0e8d8;
    --fog-gray:      #8090a0;
    --elec-violet:   #8a40ff;
    --warm-white:    #e8e0d0;

    --font-display:  'Noto Sans KR', sans-serif;
    --font-body:     'IBM Plex Sans', sans-serif;
    --font-code:     'Source Code Pro', monospace;

    --flare-x: 65%;
    --flare-y: 40%;

    --transition-base: 0.3s ease;
    --grid-max: 1280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--deep-black);
    color: var(--fog-gray);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Typography Utilities ── */
.code-text {
    font-family: var(--font-code);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
    opacity: 0.85;
}

.accent-cyan { color: var(--neon-cyan); }
.accent-red  { color: var(--resist-red); }

/* ── Section Labels ── */
.section-label {
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--neon-cyan);
}

/* ─────────────────────────────────────────
   HERO: THE BREACH
───────────────────────────────────────── */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--deep-black);
    overflow: hidden;
    padding: 4rem 5vw;
}

/* Background grid texture */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Lens-flare layers */
.hero-flare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: flare-drift 12s ease-in-out infinite alternate;
}

.hero-flare-primary {
    background:
        radial-gradient(circle at var(--flare-x) var(--flare-y),
            rgba(0,229,255,0.38) 0%,
            rgba(0,229,255,0.12) 28%,
            transparent 58%);
}

.hero-flare-secondary {
    background:
        radial-gradient(circle at 60% 45%,
            rgba(138,64,255,0.22) 0%,
            rgba(138,64,255,0.06) 32%,
            transparent 55%);
    animation-delay: -4s;
    animation-duration: 18s;
}

@keyframes flare-drift {
    0%   { opacity: 0.8; transform: scale(1); }
    50%  { opacity: 1;   transform: scale(1.04); }
    100% { opacity: 0.75; transform: scale(0.98); }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.0;
    margin-bottom: 0.4rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #fff 40%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-domain {
    display: block;
    color: var(--neon-cyan);
    -webkit-text-fill-color: var(--neon-cyan);
    background: none;
    font-size: 0.55em;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 20px rgba(0,229,255,0.6),
        0 0 40px rgba(0,229,255,0.3);
}

/* Crack SVG */
.crack-line {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 20px;
    margin: 0.6rem 0 1.8rem;
    opacity: 0.6;
    filter: drop-shadow(0 0 4px rgba(0,229,255,0.7));
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--fog-gray);
    max-width: 560px;
    margin-bottom: 2.4rem;
    line-height: 1.75;
}

.hero-cta-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-breach {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-base), background var(--transition-base);
}

.btn-breach::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-cyan);
    transform: translateX(-101%);
    transition: transform 0.28s ease;
}

.btn-breach:hover {
    color: var(--deep-black);
}

.btn-breach:hover::before {
    transform: translateX(0);
}

.btn-breach span,
.btn-breach {
    position: relative;
    z-index: 1;
}

.hero-status {
    animation: blink-status 2.5s step-end infinite;
}

@keyframes blink-status {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* ─────────────────────────────────────────
   MORPH ZONES
───────────────────────────────────────── */
.morph-zone {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--deep-black), var(--dark-surface));
}

.morph-zone-warm {
    background: linear-gradient(to bottom, var(--dark-surface), var(--deep-black));
}

.morph-shape {
    position: absolute;
    width: 180px;
    height: 180px;
    opacity: 0.55;
}

.morph-shape-1 {
    background: linear-gradient(45deg, var(--neon-cyan), var(--elec-violet));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 10s ease-in-out infinite;
}

.morph-shape-2 {
    background: linear-gradient(135deg, var(--elec-violet), var(--resist-red));
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: morph 12s ease-in-out infinite reverse;
    width: 140px;
    height: 140px;
}

.morph-shape-3 {
    background: linear-gradient(225deg, var(--resist-red), var(--neon-cyan));
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    animation: morph 8s ease-in-out infinite;
    width: 160px;
    height: 160px;
}

.morph-shape-4 {
    background: linear-gradient(315deg, var(--neon-cyan), var(--elec-violet));
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    animation: morph 14s ease-in-out infinite reverse;
    width: 120px;
    height: 120px;
}

.morph-shape-5 {
    background: linear-gradient(90deg, var(--elec-violet), rgba(240,232,216,0.6));
    border-radius: 60% 40% 40% 60% / 50% 60% 40% 50%;
    animation: morph 9s ease-in-out infinite;
    width: 150px;
    height: 150px;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        background-position: 0% 50%;
    }
    33% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    66% {
        border-radius: 50% 50% 70% 30% / 30% 70% 30% 70%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* ─────────────────────────────────────────
   SECTION: FRAGMENT GRID
───────────────────────────────────────── */
.section-fragment {
    background: var(--dark-surface);
    padding: 5rem 5vw;
    position: relative;
}

.fragment-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    max-width: var(--grid-max);
    margin: 0 auto;
    position: relative;
}

.panel {
    position: relative;
}

.panel-inner {
    background: rgba(10,14,24,0.85);
    border: 1px solid rgba(0,229,255,0.15);
    padding: 2rem 1.8rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.panel-inner:hover {
    border-color: rgba(0,229,255,0.4);
    box-shadow:
        2px 0 0 rgba(0,229,255,0.2),
        -2px 0 0 rgba(255,50,80,0.2);
}

.panel-inner-alt {
    background: rgba(26,24,40,0.9);
    border-color: rgba(138,64,255,0.25);
}

.panel-inner-dark {
    background: rgba(5,7,12,0.95);
    border-color: rgba(255,50,80,0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Broken-grid positions */
.panel-1 {
    grid-column: 1 / 4;
    grid-row: 1;
    z-index: 2;
}

.panel-2 {
    grid-column: 3 / 7;
    grid-row: 1;
    z-index: 1;
    transform: translateY(20px);
}

.panel-3 {
    grid-column: 1 / 4;
    grid-row: 2;
    z-index: 1;
    transform: translateY(-10px);
}

.panel-4 {
    grid-column: 4 / 7;
    grid-row: 2;
    z-index: 2;
    transform: translateY(10px);
}

.panel-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 1rem;
}

.panel-title-sm {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--warm-white);
    margin-bottom: 0.8rem;
}

.panel-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--fog-gray);
    margin-bottom: 0.8rem;
}

.panel-body-sm {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--fog-gray);
}

.data-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.data-list li {
    font-size: 0.9rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(138,64,255,0.4);
    line-height: 1.6;
}

.data-tag {
    margin-top: 1.2rem;
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.05);
}

.chroma-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: rgba(255,50,80,0.6);
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

.panel-glow {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
}

.panel-glow-violet {
    background: radial-gradient(circle, rgba(138,64,255,0.25) 0%, transparent 70%);
}

.panel-glow-red {
    background: radial-gradient(circle, rgba(255,50,80,0.25) 0%, transparent 70%);
}

/* Glitch text */
.glitch-text {
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--resist-red);
    letter-spacing: 0.2em;
    position: relative;
    cursor: default;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.glitch-text::before {
    color: var(--neon-cyan);
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translateX(2px);
    animation: glitch-before 4s infinite;
}

.glitch-text::after {
    color: var(--elec-violet);
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
    transform: translateX(-2px);
    animation: glitch-after 4s infinite;
}

@keyframes glitch-before {
    0%, 90%, 100% { opacity: 0; }
    92%, 96%      { opacity: 1; transform: translateX(3px); }
    94%           { opacity: 1; transform: translateX(-1px); }
}

@keyframes glitch-after {
    0%, 88%, 100% { opacity: 0; }
    90%, 94%      { opacity: 1; transform: translateX(-3px); }
    92%           { opacity: 1; transform: translateX(1px); }
}

/* ─────────────────────────────────────────
   SECTION: STACKED LAYERS
───────────────────────────────────────── */
.section-stacked {
    background: var(--deep-black);
    padding: 6rem 5vw;
    position: relative;
    overflow: hidden;
}

.stacked-grid {
    max-width: var(--grid-max);
    margin: 0 auto;
}

.stack-header {
    margin-bottom: 3.5rem;
}

.stack-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 0.8rem;
}

.stack-sub {
    color: var(--fog-gray);
    font-size: 1.05rem;
    max-width: 560px;
}

.stack-layers {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.layer-item {
    display: grid;
    grid-template-columns: 4rem 1fr 200px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(0,229,255,0.08);
    cursor: pointer;
    transition: background var(--transition-base);
    position: relative;
}

.layer-item:hover {
    background: rgba(0,229,255,0.03);
}

.layer-item:hover .layer-title {
    color: var(--neon-cyan);
    text-shadow: 2px 0 rgba(0,229,255,0.4), -2px 0 rgba(255,50,80,0.4);
}

.layer-num {
    text-align: center;
    font-size: 0.8rem;
}

.layer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--warm-white);
    margin-bottom: 0.4rem;
    transition: color var(--transition-base), text-shadow 0.15s ease;
}

.layer-desc {
    font-size: 0.9rem;
    color: var(--fog-gray);
    line-height: 1.6;
}

.layer-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.layer-bar-fill {
    height: 100%;
    width: var(--fill);
    background: linear-gradient(90deg, var(--elec-violet), var(--neon-cyan));
    border-radius: 2px;
    transform-origin: left;
    animation: bar-grow 1.5s ease-out both;
}

.layer-bar-fill.accent-fill {
    background: linear-gradient(90deg, var(--neon-cyan), #fff);
}

@keyframes bar-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.stacked-flare {
    position: absolute;
    top: 0;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138,64,255,0.12) 0%, transparent 65%);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   SECTION: TIMELINE
───────────────────────────────────────── */
.section-timeline {
    background: var(--dark-surface);
    padding: 6rem 5vw;
}

.timeline-header {
    max-width: var(--grid-max);
    margin: 0 auto 3.5rem;
}

.tl-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #fff;
    margin-bottom: 0.8rem;
}

.tl-sub {
    color: var(--fog-gray);
    font-size: 1.05rem;
    max-width: 600px;
}

.timeline-track {
    max-width: var(--grid-max);
    margin: 0 auto;
    position: relative;
    padding: 1rem 0;
}

/* Center spine */
.timeline-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(0,229,255,0.4), rgba(138,64,255,0.4), rgba(255,50,80,0.3));
    transform: translateX(-50%);
}

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    width: 48%;
}

.tl-left {
    align-self: flex-start;
    margin-right: auto;
    padding-right: 2rem;
    justify-content: flex-end;
    text-align: right;
}

.tl-right {
    align-self: flex-start;
    margin-left: auto;
    padding-left: 2rem;
    flex-direction: row;
}

.tl-dot {
    position: absolute;
    right: -8px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fog-gray);
    border: 2px solid var(--dark-surface);
    flex-shrink: 0;
    z-index: 2;
}

.tl-right .tl-dot {
    left: -8px;
    right: auto;
}

.tl-dot-cyan   { background: var(--neon-cyan);   box-shadow: 0 0 10px rgba(0,229,255,0.5); }
.tl-dot-red    { background: var(--resist-red);   box-shadow: 0 0 10px rgba(255,50,80,0.5); }
.tl-dot-violet { background: var(--elec-violet);  box-shadow: 0 0 10px rgba(138,64,255,0.5); }

.tl-card {
    background: rgba(10,14,24,0.9);
    border: 1px solid rgba(0,229,255,0.12);
    padding: 1.4rem 1.6rem;
    flex: 1;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.tl-card:hover {
    border-color: rgba(0,229,255,0.35);
    box-shadow: 2px 0 0 rgba(0,229,255,0.15), -2px 0 0 rgba(255,50,80,0.15);
}

.tl-time {
    margin-bottom: 0.5rem;
    opacity: 0.75;
}

.tl-event {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.tl-detail {
    font-size: 0.9rem;
    color: var(--fog-gray);
    line-height: 1.65;
}

/* ─────────────────────────────────────────
   SECTION: RESISTANCE
───────────────────────────────────────── */
.section-resistance {
    background: var(--deep-black);
    padding: 6rem 5vw;
    position: relative;
    overflow: hidden;
}

.resistance-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 1px;
    max-width: var(--grid-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.res-header {
    grid-column: 1 / 7;
    grid-row: 1;
    padding: 0 0 2.5rem;
}

.res-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
}

/* Broken-grid panels */
.res-panel-a {
    grid-column: 1 / 4;
    grid-row: 2;
    z-index: 2;
}

.res-panel-b {
    grid-column: 3 / 6;
    grid-row: 2;
    z-index: 1;
    transform: translateY(15px);
}

.res-panel-c {
    grid-column: 1 / 4;
    grid-row: 3;
    transform: translateY(-8px);
    z-index: 1;
}

.res-panel-d {
    grid-column: 4 / 7;
    grid-row: 3;
    z-index: 2;
}

/* Grid row-3 only starts after row-2 */
.resistance-grid {
    grid-template-rows: auto auto auto;
}

.res-panel-inner {
    background: rgba(26,24,40,0.88);
    border: 1px solid rgba(0,229,255,0.12);
    padding: 2rem 1.8rem;
    height: 100%;
    transition: border-color var(--transition-base);
}

.res-panel-inner:hover {
    border-color: rgba(0,229,255,0.35);
}

.res-icon {
    margin-bottom: 1rem;
}

.res-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--warm-white);
    margin-bottom: 0.7rem;
}

.res-text {
    font-size: 0.92rem;
    color: var(--fog-gray);
    line-height: 1.7;
}

.resistance-flare {
    position: absolute;
    top: 20%;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,50,80,0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   FOOTER: THE REFUGE
───────────────────────────────────────── */
.section-footer {
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
    padding: 5rem 5vw 3rem;
    border-top: 1px solid rgba(240,232,216,0.1);
}

.footer-inner {
    max-width: var(--grid-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 2rem 4rem;
    align-items: start;
}

.footer-title-wrap {
    grid-column: 1;
    grid-row: 1;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.footer-dot {
    color: var(--neon-cyan);
    font-size: 0.7em;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--fog-gray);
    max-width: 400px;
    line-height: 1.65;
}

.footer-nav {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-end;
}

.footer-link {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--fog-gray);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color var(--transition-base), text-shadow 0.15s ease;
    padding: 0.2rem 0;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neon-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.footer-link:hover {
    color: var(--neon-cyan);
    text-shadow: 2px 0 rgba(0,229,255,0.4), -2px 0 rgba(255,50,80,0.4);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-meta {
    grid-column: 1;
    grid-row: 3;
    padding-top: 2rem;
    border-top: 1px solid rgba(240,232,216,0.08);
}

.footer-code {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    opacity: 0.6;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--fog-gray);
    opacity: 0.6;
}

.footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse at center bottom,
        rgba(240,232,216,0.06) 0%,
        transparent 70%);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   CHROMATIC ABERRATION — hover utility
───────────────────────────────────────── */
.chroma-hover {
    transition: text-shadow 0.15s ease;
}
.chroma-hover:hover {
    text-shadow: 2px 0 rgba(0,229,255,0.4), -2px 0 rgba(255,50,80,0.4);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
    .fragment-grid,
    .resistance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .panel-1, .panel-2, .panel-3, .panel-4 {
        grid-column: 1;
        grid-row: auto;
        transform: none;
    }

    .res-panel-a, .res-panel-b, .res-panel-c, .res-panel-d {
        grid-column: 1;
        grid-row: auto;
        transform: none;
    }

    .res-header {
        grid-column: 1;
    }

    .layer-item {
        grid-template-columns: 3rem 1fr;
    }

    .layer-bar {
        display: none;
    }

    .timeline-track::before {
        left: 10px;
    }

    .tl-item {
        width: 100%;
        margin-left: 2rem;
        padding-left: 1.5rem;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .tl-left {
        text-align: left;
        padding-right: 0;
        margin-right: 0;
        justify-content: flex-start;
    }

    .tl-dot, .tl-right .tl-dot {
        left: -1.7rem;
        right: auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-column: 1;
        grid-row: 2;
        align-items: flex-start;
    }

    .footer-meta {
        grid-row: 4;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section-hero {
        padding: 3rem 1.5rem;
        min-height: 100svh;
    }

    .section-fragment,
    .section-stacked,
    .section-timeline,
    .section-resistance,
    .section-footer {
        padding: 4rem 1.5rem;
    }
}
