/* MMIDDL.com - Liminal Threshold Design
   Twilight palette, midpoint spine, parallax layering, diagonal sections,
   surreal shadow misalignment, and a translucency-based color system.
*/

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

:root {
    --bg-deep: #0D0F1A;        /* Void Slate */
    --bg-mid: #1B1F3B;         /* Twilight Indigo */
    --parchment: #E8E4DF;      /* Mist White */
    --rose-dusk: #8E5A6B;      /* Dusk Rose */
    --lavender-fog: #7B6D8E;   /* Liminal Lavender */
    --amber: #C4883A;          /* Threshold Amber */

    --shadow-misalign-1: -8px -10px 28px rgba(13, 15, 26, 0.55);
    --shadow-misalign-2: 12px -14px 36px rgba(13, 15, 26, 0.5);
    --shadow-misalign-3: -14px 6px 30px rgba(123, 109, 142, 0.18);
}

html, body { height: 100%; }

body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--bg-deep);
    color: var(--parchment);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 1.2s ease;
    position: relative;
}

body.threshold-collapse {
    background: #06070E;
}

/* ---- Grain overlay ---- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    mix-blend-mode: overlay;
    opacity: 0.5;
    background-image:
        radial-gradient(rgba(196, 136, 58, 0.18) 1px, transparent 1px),
        radial-gradient(rgba(232, 228, 223, 0.08) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
    animation: grainShift 8s steps(8) infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-1px, 1px); }
    40%  { transform: translate(1px, -1px); }
    60%  { transform: translate(-2px, 0); }
    80%  { transform: translate(0, 2px); }
    100% { transform: translate(0, 0); }
}

/* ---- Background parallax (0.3x) ---- */
.parallax-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.bg-glow-1 {
    top: 8%;
    left: 10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(123, 109, 142, 0.45) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: 5%;
    right: 8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142, 90, 107, 0.35) 0%, transparent 70%);
}

.bg-distant-shape {
    position: absolute;
    border: 1px solid rgba(123, 109, 142, 0.12);
}

.bg-distant-shape-1 {
    top: 30%;
    left: 70%;
    width: 220px;
    height: 360px;
    border-radius: 50% 50% 6px 6px;
    transform: rotate(-4deg);
}

.bg-distant-shape-2 {
    top: 60%;
    left: 18%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border-color: rgba(142, 90, 107, 0.1);
}

/* ---- Midpoint spine ---- */
.midpoint-spine {
    position: fixed;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(196, 136, 58, 0.15) 18%,
        rgba(196, 136, 58, 0.45) 50%,
        rgba(196, 136, 58, 0.15) 82%,
        transparent 100%);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.6s ease, box-shadow 0.6s ease;
    opacity: 0.7;
}

body.threshold-collapse .midpoint-spine {
    opacity: 1;
    box-shadow: 0 0 24px rgba(196, 136, 58, 0.6);
}

.spine-tick {
    position: absolute;
    left: -6px;
    width: 13px;
    height: 1px;
    background: var(--amber);
    opacity: 0.4;
}

.spine-tick-1 { top: 15%; }
.spine-tick-2 { top: 38%; }
.spine-tick-3 { top: 62%; }
.spine-tick-4 { top: 85%; }

/* ---- Foreground parallax (1.2x) ---- */
.parallax-fg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    will-change: transform;
}

.fg-fragment {
    position: absolute;
    border: 1px solid rgba(142, 90, 107, 0.2);
    opacity: 0.7;
}

.fg-circle {
    width: 80px; height: 80px; border-radius: 50%;
    top: 12%; left: 22%;
    border-color: rgba(123, 109, 142, 0.22);
    animation: drift1 80s linear infinite;
}

.fg-triangle {
    width: 0; height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 38px solid rgba(142, 90, 107, 0.18);
    border-top: none;
    top: 60%; left: 8%;
    animation: drift2 90s linear infinite;
}

.fg-poly {
    width: 100px; height: 70px;
    clip-path: polygon(20% 0, 100% 30%, 80% 100%, 0 70%);
    background: rgba(123, 109, 142, 0.15);
    border: none;
    top: 40%; right: 15%;
    animation: drift3 75s linear infinite;
}

.fg-line {
    width: 90px; height: 1px;
    background: rgba(196, 136, 58, 0.35);
    border: none;
    top: 78%; right: 28%;
    animation: drift1 70s linear infinite reverse;
}

.fg-square {
    width: 50px; height: 50px;
    top: 25%; right: 8%;
    transform: rotate(15deg);
    border-color: rgba(196, 136, 58, 0.2);
    animation: drift2 85s linear infinite reverse;
}

.fg-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--amber);
    border: none;
    opacity: 0.5;
}

.fg-dot-1 { top: 18%; left: 70%; animation: dotPulse 4s ease-in-out infinite; }
.fg-dot-2 { top: 48%; left: 12%; animation: dotPulse 5s ease-in-out infinite 0.7s; }
.fg-dot-3 { top: 70%; left: 60%; animation: dotPulse 6s ease-in-out infinite 1.4s; }
.fg-dot-4 { top: 88%; left: 35%; animation: dotPulse 4.5s ease-in-out infinite 2s; }

@keyframes drift1 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(20px, -30px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes drift2 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(-25px, 18px) rotate(-180deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}
@keyframes drift3 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(15px, 25px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.6); }
}

/* ---- Path-draw threads (SVG) ---- */
.thread-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

.thread-path {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    transition: stroke-dashoffset 0.05s linear;
    filter: drop-shadow(0 0 2px rgba(196, 136, 58, 0.4));
}

.thread-2 {
    opacity: 0.55;
    filter: drop-shadow(0 0 2px rgba(142, 90, 107, 0.3));
}

/* ---- Hero ---- */
.full-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero {
    background: radial-gradient(ellipse at 50% 55%, rgba(27, 31, 59, 0.65) 0%, rgba(13, 15, 26, 0.95) 70%);
    z-index: 3;
}

.hero-content {
    text-align: center;
    z-index: 4;
    position: relative;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(4rem, 14vw, 14rem);
    letter-spacing: 0.06em;
    color: var(--parchment);
    display: inline-flex;
    line-height: 0.9;
    text-shadow: var(--shadow-misalign-2);
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterFadeIn 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

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

.hero-subtitle {
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    font-weight: 400;
    color: var(--lavender-fog);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-top: 28px;
    opacity: 0;
    animation: fadeIn 1.4s ease 1.4s forwards;
}

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

/* ---- Hero meta-fragments (monospace, found-object style) ---- */
.hero-meta-tl, .hero-meta-br {
    position: absolute;
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    color: var(--lavender-fog);
    letter-spacing: 0.04em;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1.6s ease 1.8s forwards;
    z-index: 4;
}

.hero-meta-tl { top: 36px; left: 36px; }
.hero-meta-br { bottom: 36px; right: 36px; text-align: right; }

.hero-meta-tl span, .hero-meta-br span {
    display: block;
    color: rgba(196, 136, 58, 0.6);
}
.hero-meta-tl span:first-child, .hero-meta-br span:first-child {
    color: var(--lavender-fog);
}

/* ---- Door portal motif ---- */
.door-portal {
    position: absolute;
    border-radius: 50% 50% 4px 4px;
    border: 1px solid rgba(142, 90, 107, 0.35);
    pointer-events: auto;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease, border-color 0.6s ease;
    will-change: transform;
}

.hero-door {
    width: 140px;
    height: 220px;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(196, 136, 58, 0.18) 0%, rgba(123, 109, 142, 0.05) 60%, transparent 80%);
    box-shadow: var(--shadow-misalign-1);
}

.section-door {
    position: relative;
    width: 90px;
    height: 150px;
    margin: 36px auto 0;
    background: radial-gradient(ellipse at center, rgba(196, 136, 58, 0.12) 0%, transparent 70%);
    box-shadow: var(--shadow-misalign-3);
}

.passage-door {
    position: relative;
    width: 110px;
    height: 180px;
    margin: 36px auto 0;
    background: radial-gradient(ellipse at center, rgba(232, 228, 223, 0.08) 0%, transparent 70%);
    box-shadow: var(--shadow-misalign-2);
}

.door-portal:hover {
    border-color: rgba(196, 136, 58, 0.7);
}

/* ---- Floating shapes (hero) ---- */
.floating-shape {
    position: absolute;
    border: 1px solid rgba(123, 109, 142, 0.25);
    pointer-events: none;
    will-change: transform;
}

.shape-1 {
    width: 70px; height: 70px;
    border-radius: 50%;
    top: 22%; left: 16%;
    animation: floatDrift 10s ease-in-out infinite;
}

.shape-2 {
    width: 50px; height: 90px;
    border-radius: 4px;
    top: 32%; right: 19%;
    animation: floatDrift 12s ease-in-out infinite 1.5s;
}

.shape-3 {
    width: 56px; height: 56px;
    bottom: 28%; right: 23%;
    transform: rotate(45deg);
    border-radius: 2px;
    animation: floatDrift 9s ease-in-out infinite 3s;
}

@keyframes floatDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
    50% { transform: translateY(-22px) rotate(8deg); opacity: 0.75; }
}

/* ---- Scroll indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 4;
}

.scroll-label {
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    color: rgba(123, 109, 142, 0.7);
    letter-spacing: 0.3em;
    text-transform: lowercase;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--amber));
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Floating Nav ---- */
#floating-nav {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(27, 31, 59, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(123, 109, 142, 0.25);
    border-radius: 40px;
    padding: 11px 30px;
    display: flex;
    gap: 28px;
    z-index: 150;
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: var(--shadow-misalign-1);
}

#floating-nav.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-24px);
    pointer-events: none;
}

#floating-nav a {
    font-family: 'Inconsolata', monospace;
    color: var(--lavender-fog);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.4s ease;
    position: relative;
}

#floating-nav a:hover {
    color: var(--amber);
}

#floating-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#floating-nav a:hover::after {
    transform: scaleX(1);
}

/* ---- Content sections ---- */
.content-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 8%;
    overflow: hidden;
    z-index: 3;
}

/* Diagonal cuts -- soft folds in fabric */
.diagonal-cut::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, rgba(27, 31, 59, 0.0) 0%, rgba(27, 31, 59, 0.35) 100%);
}

.diagonal-left {
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.diagonal-right {
    clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.section-inner {
    position: relative;
    z-index: 4;
    max-width: 540px;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.layer-left .section-inner {
    margin-right: auto;
    margin-left: 4%;
}

.layer-right .section-inner {
    margin-left: auto;
    margin-right: 4%;
    text-align: right;
}

.section-label {
    font-family: 'Inconsolata', monospace;
    font-weight: 600;
    font-size: 13px;
    color: var(--amber);
    letter-spacing: 0.22em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.content-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.6rem, 6vw, 5rem);
    letter-spacing: 0.06em;
    margin-bottom: 28px;
    color: var(--parchment);
    line-height: 1.05;
    text-shadow: -3px -2px 16px rgba(13, 15, 26, 0.5);
}

.word-fade {
    display: inline-block;
    background: linear-gradient(180deg, var(--parchment) 0%, var(--lavender-fog) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-section p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(232, 228, 223, 0.78);
    max-width: 520px;
    font-weight: 400;
}

.layer-right p {
    margin-left: auto;
}

/* Reveal-on-scroll for paragraphs */
.reveal-paragraph {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-paragraph.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Meta fragments (monospace annotations) ---- */
.meta-fragment {
    display: inline-block;
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    color: rgba(123, 109, 142, 0.7);
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.meta-side-right, .meta-side-left {
    position: absolute;
    bottom: 7%;
    color: rgba(196, 136, 58, 0.45);
    z-index: 4;
}

.meta-side-right { right: 6%; }
.meta-side-left  { left: 6%; }

/* ---- Depth layers ---- */
.depth-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.depth-back {
    background: radial-gradient(ellipse at 30% 50%, rgba(142, 90, 107, 0.08) 0%, transparent 60%);
}

.depth-mid {
    background: radial-gradient(ellipse at 70% 50%, rgba(123, 109, 142, 0.1) 0%, transparent 60%);
}

/* ---- Gradient bleed ---- */
.gradient-bleed {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(142, 90, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ---- Floating fragments inside section ---- */
.floating-fragments {
    position: relative;
    height: 140px;
    margin-top: 36px;
}

.fragment {
    position: absolute;
    border: 1px solid rgba(196, 136, 58, 0.35);
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.fragment-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    left: 6%; top: 18%;
    animation: fragmentFloat 7s ease-in-out infinite;
}

.fragment-rect {
    width: 60px; height: 36px;
    border-radius: 3px;
    left: 38%; top: 42%;
    animation: fragmentFloat 8s ease-in-out infinite -2.5s;
}

.fragment-triangle {
    width: 0; height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 38px solid rgba(196, 136, 58, 0.25);
    border-top: none;
    left: 70%; top: 8%;
    animation: fragmentFloat 9s ease-in-out infinite -4s;
}

@keyframes fragmentFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.45; }
    50% { transform: translateY(-18px) rotate(6deg); opacity: 0.8; }
}

/* ---- Convergence section ---- */
.convergence-section {
    min-height: 100vh;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(123, 109, 142, 0.15) 0%, transparent 55%);
    position: relative;
    z-index: 3;
}

.convergence-inner {
    position: relative;
    z-index: 5;
}

.convergence-word {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3rem, 11vw, 11rem);
    letter-spacing: 0.18em;
    color: var(--parchment);
    opacity: 0.75;
    transition: letter-spacing 1.2s cubic-bezier(0.2, 0.7, 0.2, 1),
                opacity 1.2s ease,
                color 1.2s ease,
                text-shadow 1.2s ease,
                transform 1.2s ease;
    line-height: 1;
    transform: scale(1);
}

.convergence-word.collapsed {
    letter-spacing: -0.04em;
    opacity: 1;
    color: var(--amber);
    text-shadow: 0 0 50px rgba(196, 136, 58, 0.55);
    transform: scale(1.04);
}

.convergence-text {
    font-size: 16px;
    color: var(--lavender-fog);
    max-width: 420px;
    margin: 28px auto 0;
    opacity: 0;
    transition: opacity 1s ease 0.4s;
    line-height: 1.7;
}

.convergence-section.active .convergence-text,
.convergence-word.collapsed ~ .convergence-text {
    opacity: 1;
}

.convergence-pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--amber);
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 0 0 0 rgba(196, 136, 58, 0.6);
    pointer-events: none;
}

.convergence-section.active .convergence-pulse {
    animation: pulseRing 1.6s ease-out;
}

@keyframes pulseRing {
    0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 1; box-shadow: 0 0 0 0 rgba(196, 136, 58, 0.6); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; box-shadow: 0 0 0 200px rgba(196, 136, 58, 0); }
}

/* ---- Section reveal (overall) ---- */
.content-section .section-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.content-section.visible .section-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Tilt-3d hover ---- */
.tilt-3d {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---- Echo rings ---- */
.echo-rings {
    position: relative;
    width: 140px;
    height: 140px;
    margin-top: 40px;
}
.layer-left .echo-rings { margin-left: 0; }

.ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(196, 136, 58, 0.35);
    border-radius: 50%;
    animation: ringExpand 4s ease-out infinite;
}

.ring-2 { animation-delay: 1.3s; border-color: rgba(142, 90, 107, 0.35); }
.ring-3 { animation-delay: 2.6s; border-color: rgba(123, 109, 142, 0.35); }

@keyframes ringExpand {
    0%   { transform: scale(0.3); opacity: 0; }
    20%  { opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ---- Footer ---- */
#footer {
    text-align: center;
    padding: 110px 20px 80px;
    border-top: 1px solid rgba(123, 109, 142, 0.12);
    position: relative;
    z-index: 3;
}

.footer-spine {
    width: 1px;
    height: 60px;
    margin: 0 auto 36px;
    background: linear-gradient(to bottom, transparent, var(--amber), transparent);
    opacity: 0.6;
}

.footer-word {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2.6rem;
    letter-spacing: 0.18em;
    color: var(--lavender-fog);
    margin-bottom: 12px;
    text-shadow: var(--shadow-misalign-3);
}

.footer-tagline {
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    color: rgba(123, 109, 142, 0.7);
    letter-spacing: 0.18em;
    text-transform: lowercase;
}

.footer-meta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    color: rgba(196, 136, 58, 0.45);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--lavender-fog); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .content-section { padding: 80px 6%; }
    .layer-right .section-inner { text-align: left; margin-left: 4%; margin-right: 0; }
    .layer-right p { margin-left: 0; }
    #floating-nav { padding: 8px 18px; gap: 16px; }
    #floating-nav a { font-size: 11px; letter-spacing: 0.1em; }
    .hero-meta-tl, .hero-meta-br { font-size: 11px; }
    .hero-meta-tl { top: 18px; left: 18px; }
    .hero-meta-br { bottom: 18px; right: 18px; }
    .meta-side-left, .meta-side-right { display: none; }
    .bg-glow-1, .bg-glow-2 { width: 320px; height: 320px; }
}
