/* ============================================
   completengine.com - Glitch-Organic Stylesheet
   Forest-green palette, hand-drawn aesthetic,
   organic-flow layout, bubble motifs
   ============================================ */

/* --- CSS Custom Properties (all colors from DESIGN.md) --- */
:root {
    --color-deep-canopy: #1B4332;
    --color-fern-glow: #2D6A4F;
    --color-lichen-gold: #D4A853;
    --color-rough-paper: #F5F0E8;
    --color-damp-vellum: #E8E0D0;
    --color-corrupted-moss: #52B788;
    --color-error-spore: #95D5B2;
    --color-wet-charcoal: #2B2D2B;

    --font-display: 'EB Garamond', serif;
    --font-body: 'Nunito', sans-serif;
    --font-accent: 'Caveat', cursive;

    --max-content-width: 680px;
    --section-spacing: 6rem;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.15rem);
    line-height: 1.72;
    color: var(--color-wet-charcoal);
    background-color: var(--color-rough-paper);
    overflow-x: hidden;
    position: relative;
}

/* --- Paper Texture Background (rough watercolor paper) --- */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.6;
}

/* Faint pencil marks / erased guidelines in negative space */
.paper-texture::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='50' y1='80' x2='180' y2='82' stroke='%232B2D2B' stroke-width='0.3' opacity='0.08'/%3E%3Cline x1='220' y1='200' x2='350' y2='198' stroke='%232B2D2B' stroke-width='0.3' opacity='0.06'/%3E%3Cline x1='80' y1='320' x2='160' y2='322' stroke='%232B2D2B' stroke-width='0.3' opacity='0.05'/%3E%3Ccircle cx='300' cy='100' r='12' fill='none' stroke='%232B2D2B' stroke-width='0.2' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* --- Floating Background Bubbles (drift on CSS keyframes, no scroll dependency) --- */
.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble-bg {
    position: absolute;
    opacity: 0.7;
}

.bubble-bg--1 {
    top: 8%;
    left: 12%;
    animation: bubbleDrift1 23s ease-in-out infinite;
}

.bubble-bg--2 {
    top: 25%;
    right: 15%;
    animation: bubbleDrift2 31s ease-in-out infinite;
}

.bubble-bg--3 {
    top: 45%;
    left: 8%;
    animation: bubbleDrift3 15s ease-in-out infinite;
}

.bubble-bg--4 {
    top: 60%;
    right: 5%;
    animation: bubbleDrift1 27s ease-in-out infinite reverse;
}

.bubble-bg--5 {
    top: 78%;
    left: 20%;
    animation: bubbleDrift2 19s ease-in-out infinite;
}

.bubble-bg--6 {
    top: 15%;
    right: 35%;
    animation: bubbleDrift3 25s ease-in-out infinite reverse;
}

.bubble-bg--7 {
    top: 50%;
    right: 25%;
    animation: bubbleDrift1 17s ease-in-out infinite;
}

.bubble-bg--8 {
    top: 85%;
    right: 40%;
    animation: bubbleDrift2 29s ease-in-out infinite reverse;
}

.bubble-bg--9 {
    top: 35%;
    left: 65%;
    animation: bubbleDrift3 21s ease-in-out infinite;
}

.bubble-bg--10 {
    top: 70%;
    left: 45%;
    animation: bubbleDrift1 33s ease-in-out infinite reverse;
}

@keyframes bubbleDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(3deg); }
    50% { transform: translate(-10px, -35px) rotate(-2deg); }
    75% { transform: translate(20px, -15px) rotate(4deg); }
}

@keyframes bubbleDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(-3deg); }
    66% { transform: translate(12px, 25px) rotate(2deg); }
}

@keyframes bubbleDrift3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 20px) rotate(2deg); }
    50% { transform: translate(25px, -10px) rotate(-3deg); }
    75% { transform: translate(-15px, 10px) rotate(1deg); }
}

/* --- Pixel Block Decorations (corrupted image data in margins) --- */
.pixel-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pixel-block {
    position: absolute;
    opacity: 0.3;
}

/* --- Bubble Navigation Constellation (upper-right) --- */
.bubble-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 200px;
    height: 200px;
}

.bubble-nav__connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble-nav__node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease-out;
    cursor: pointer;
}

.bubble-nav__node:hover {
    transform: scale(1.15);
}

.bubble-nav__node--1 { top: 10px; left: 30px; }
.bubble-nav__node--2 { top: 50px; left: 100px; }
.bubble-nav__node--3 { top: 10px; right: 10px; }
.bubble-nav__node--4 { top: 100px; left: 50px; }
.bubble-nav__node--5 { top: 110px; right: 20px; }

.bubble-nav__label {
    position: absolute;
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    color: var(--color-deep-canopy);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.bubble-nav__node:hover .bubble-nav__label {
    opacity: 1;
    transform: translateY(-8px);
}

/* Spring scale animation for nav bubbles entering */
.bubble-nav__node {
    opacity: 0;
    transform: scale(0);
    animation: bubblePopIn 0.6s ease-out forwards;
}

.bubble-nav__node--1 { animation-delay: 2.4s; }
.bubble-nav__node--2 { animation-delay: 2.6s; }
.bubble-nav__node--3 { animation-delay: 2.8s; }
.bubble-nav__node--4 { animation-delay: 3.0s; }
.bubble-nav__node--5 { animation-delay: 3.2s; }

@keyframes bubblePopIn {
    0% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Organic repulsion: bubbles drift apart on nav hover */
.bubble-nav:hover .bubble-nav__node--1 { transform: translate(-5px, -5px) scale(1); }
.bubble-nav:hover .bubble-nav__node--2 { transform: translate(5px, -3px) scale(1); }
.bubble-nav:hover .bubble-nav__node--3 { transform: translate(5px, -5px) scale(1); }
.bubble-nav:hover .bubble-nav__node--4 { transform: translate(-5px, 5px) scale(1); }
.bubble-nav:hover .bubble-nav__node--5 { transform: translate(5px, 5px) scale(1); }

.bubble-nav:hover .bubble-nav__node:hover {
    transform: scale(1.15) !important;
}

/* --- Section Layout (organic-flow, sine-wave meander) --- */
.section {
    position: relative;
    z-index: 2;
    padding: var(--section-spacing) 1.5rem;
    display: flex;
    justify-content: center;
}

/* Irregular hand-drawn frames (amoeba/torn-paper shapes) */
.section__frame {
    max-width: var(--max-content-width);
    width: 100%;
    position: relative;
    padding: 2.5rem;
    background: rgba(245, 240, 232, 0.6);
    border-radius: 42% 58% 63% 37% / 54% 39% 61% 46%;
    transition: transform 0.2s ease-out;
}

/* Hand-drawn frame border via pseudo-element */
.section__frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--color-wet-charcoal);
    border-radius: 44% 56% 61% 39% / 52% 41% 59% 48%;
    opacity: 0.6;
    pointer-events: none;
}

/* Different frame shapes for each section (organic variety) */
.section--about .section__frame {
    border-radius: 55% 45% 48% 52% / 43% 57% 43% 57%;
}
.section--about .section__frame::before {
    border-radius: 53% 47% 50% 50% / 45% 55% 45% 55%;
}

.section--how .section__frame {
    border-radius: 38% 62% 53% 47% / 60% 40% 60% 40%;
}
.section--how .section__frame::before {
    border-radius: 40% 60% 51% 49% / 58% 42% 58% 42%;
}

.section--features .section__frame {
    border-radius: 50% 50% 42% 58% / 45% 55% 45% 55%;
}
.section--features .section__frame::before {
    border-radius: 48% 52% 44% 56% / 47% 53% 47% 53%;
}

.section--narrative .section__frame {
    border-radius: 60% 40% 55% 45% / 35% 65% 35% 65%;
}
.section--narrative .section__frame::before {
    border-radius: 58% 42% 53% 47% / 37% 63% 37% 63%;
}

.section--contact .section__frame {
    border-radius: 45% 55% 50% 50% / 50% 50% 50% 50%;
    background: rgba(232, 224, 208, 0.5);
}
.section--contact .section__frame::before {
    border-radius: 47% 53% 48% 52% / 48% 52% 48% 52%;
}

/* Sine-wave horizontal offset (content meanders left and right) */
.section--offset-left {
    justify-content: flex-start;
    padding-left: clamp(2rem, 5vw, 8rem);
}

.section--offset-right {
    justify-content: flex-end;
    padding-right: clamp(2rem, 5vw, 8rem);
}

/* --- Hero Section (full viewport clearing) --- */
.section--hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.section--hero .section__frame {
    background: transparent;
    border-radius: 0;
    text-align: center;
    padding: 3rem 2rem;
}

.section--hero .section__frame::before {
    display: none;
}

/* SVG title: stroke-dasharray sketch-in animation */
.hero__title-svg {
    width: 100%;
    max-width: 700px;
    height: auto;
    overflow: visible;
}

.hero__title-text {
    fill: none;
    stroke: var(--color-deep-canopy);
    stroke-width: 1.2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: sketchIn 3s ease-out 0.5s forwards;
}

@keyframes sketchIn {
    0% { stroke-dashoffset: 2000; fill: transparent; }
    70% { stroke-dashoffset: 0; fill: transparent; }
    100% { stroke-dashoffset: 0; fill: var(--color-deep-canopy); }
}

/* Vine decorations growing from title */
.hero__vine {
    position: absolute;
    width: 300px;
    height: 200px;
    bottom: 15%;
    pointer-events: none;
}

.hero__vine--left {
    left: 0;
    transform: translateX(-40%);
}

.hero__vine--right {
    right: 0;
    transform: translateX(40%);
}

/* Vine paths: stroke-dasharray grow animation */
.vine-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.section--hero .vine-path {
    animation: vineGrow 2s ease-out 1.5s forwards;
}

.vine-path--delay1 {
    animation-delay: 2s !important;
}

.vine-path--delay2 {
    animation-delay: 2.3s !important;
}

.vine-path--delay3 {
    animation-delay: 2.6s !important;
}

@keyframes vineGrow {
    to { stroke-dashoffset: 0; }
}

/* Vine leaves: spring scale-in at branch points */
.vine-leaf {
    transform-origin: center;
    transform: scale(0);
}

.section--hero .vine-leaf {
    animation: leafBud 0.5s ease-out 2.8s forwards;
}

@keyframes leafBud {
    0% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

/* Tagline: fades in below title in Caveat handwriting */
.hero__tagline {
    font-family: var(--font-accent);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-fern-glow);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Typography (EB Garamond / Nunito / Caveat) --- */
.heading {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-deep-canopy);
    text-transform: none; /* sentence case only */
}

.heading--section {
    font-size: clamp(2.4rem, 5vw + 0.5rem, 4.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.heading--step {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 0.5rem;
    color: var(--color-fern-glow);
}

.heading--feature {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 0.4rem;
    color: var(--color-deep-canopy);
}

/* Body text: Nunito, max-width 38em */
.body-text {
    max-width: 38em;
}

.body-text p {
    margin-bottom: 1.2em;
}

.body-text p:last-child {
    margin-bottom: 0;
}

/* Weight 600 for emphasis instead of bold */
.body-text strong,
.body-text b {
    font-weight: 600;
}

/* --- Links (Lichen Gold) --- */
a {
    color: var(--color-lichen-gold);
    text-decoration: none;
    transition: color 0.2s ease-out;
}

a:hover {
    color: var(--color-corrupted-moss);
}

/* --- Glitch Text Effect (one-time on scroll enter) --- */
.glitch-text {
    position: relative;
}

.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: inherit;
    letter-spacing: inherit;
    color: transparent;
    opacity: 0;
    pointer-events: none;
}

.glitch-text.glitching::after {
    animation: textGlitch 0.2s ease-out forwards;
}

@keyframes textGlitch {
    0% {
        opacity: 1;
        color: var(--color-lichen-gold);
        transform: translate(3px, -2px);
        clip-path: inset(20% 0 40% 0);
    }
    50% {
        opacity: 0.8;
        color: var(--color-corrupted-moss);
        transform: translate(-2px, 1px);
        clip-path: inset(50% 0 10% 0);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* --- Glitch Seams (thin scan-line section dividers, max 8px) --- */
.glitch-seam {
    position: relative;
    z-index: 2;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
    opacity: 0.6;
}

.glitch-seam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--color-corrupted-moss) 0px,
        var(--color-corrupted-moss) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.glitch-seam.active::before {
    animation: scanLineFlash 0.3s ease-out forwards;
}

@keyframes scanLineFlash {
    0% { opacity: 0; }
    30% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Annotation in Caveat next to glitch seams */
.glitch-seam__annotation {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--color-fern-glow);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.glitch-seam.active .glitch-seam__annotation {
    opacity: 0.6;
}

/* --- Margin Notes (Caveat handwriting, positioned in margins) --- */
.margin-note {
    position: absolute;
    width: 180px;
}

.margin-note--right {
    right: -200px;
    top: 40%;
}

.margin-note--left {
    left: -200px;
    top: 35%;
}

.margin-note__text {
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--color-lichen-gold);
    line-height: 1.4;
    display: block;
    transform: rotate(-2deg);
}

/* --- Channel Shift Doodle (glitch artifact decoration) --- */
.channel-shift-doodle {
    position: absolute;
    bottom: -10px;
    right: 30px;
    opacity: 0.5;
}

.channel-shift-doodle--left {
    right: auto;
    left: 20px;
    bottom: 15px;
}

/* --- Step Cards (irregular hand-drawn shape) --- */
.step-card {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(232, 224, 208, 0.4);
    border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%;
    position: relative;
    transition: transform 0.2s ease-out;
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-card__number {
    flex-shrink: 0;
}

.step-card__content {
    flex: 1;
}

.step-card__content p {
    margin: 0;
}

/* --- Section vine side decoration --- */
.section__vine-side {
    position: absolute;
    pointer-events: none;
}

.section__vine-side--right {
    right: -40px;
    top: 10%;
    width: 60px;
    height: 300px;
}

/* --- Feature Cluster (bubble-based layout) --- */
.feature-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.feature-bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.2s ease-out;
}

.feature-bubble__shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.feature-bubble__content {
    position: relative;
    z-index: 1;
    max-width: 140px;
}

.feature-bubble__content p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Pull Quote (hand-drawn quotation marks in Lichen Gold) --- */
.pull-quote {
    position: relative;
    padding: 2rem 3rem;
    margin: 2rem 0;
}

.pull-quote__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--color-deep-canopy);
    line-height: 1.5;
}

.pull-quote__mark {
    position: absolute;
    opacity: 0.7;
}

.pull-quote__mark--open {
    top: 0;
    left: 0;
}

.pull-quote__mark--close {
    bottom: 0;
    right: 0;
}

/* --- Annotated Diagram --- */
.diagram {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.diagram__svg {
    max-width: 100%;
    height: auto;
}

/* --- Vine Connector (between sections) --- */
.section__vine-connector {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 80px;
    pointer-events: none;
}

/* --- Seed Form (hand-drawn input border, bubble button) --- */
.seed-form {
    margin-top: 2rem;
}

.seed-form__field {
    margin-bottom: 1.5rem;
}

.seed-form__label {
    display: block;
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--color-fern-glow);
    margin-bottom: 0.5rem;
}

.seed-form__input-wrap {
    position: relative;
}

.seed-form__input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-wet-charcoal);
    background: transparent;
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
}

.seed-form__input::placeholder {
    color: rgba(43, 45, 43, 0.35);
    font-family: var(--font-accent);
}

.seed-form__input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    pointer-events: none;
}

.seed-form__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease-out;
}

.seed-form__submit:hover {
    transform: scale(1.05);
}

.seed-form__submit-text {
    position: absolute;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--color-deep-canopy);
}

/* Seed form confirmation (appears after submit) */
.seed-form__confirmation {
    display: none;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
}

.seed-form__confirmation.visible {
    display: flex;
    animation: fadeInUp 0.6s ease-out forwards;
}

.seed-form__confirmation-text {
    font-family: var(--font-accent);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-fern-glow);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.footer__vine {
    width: 100%;
    height: 30px;
    margin-bottom: 1.5rem;
}

.footer__text {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--color-fern-glow);
    margin-bottom: 0.3rem;
}

.footer__text--small {
    font-size: 0.9rem;
    color: var(--color-corrupted-moss);
}

/* --- Scroll-enter animations (content sketches itself in) --- */
.section:not(.section--hero) .section__frame {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section:not(.section--hero) .section__frame.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vine paths in non-hero sections animate on visibility */
.section:not(.section--hero) .vine-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease-out;
}

.section:not(.section--hero) .section__frame.visible .vine-path {
    stroke-dashoffset: 0;
}

/* Vine leaves in non-hero sections */
.section:not(.section--hero) .vine-leaf {
    transition: opacity 0.5s ease-out 1.8s, transform 0.5s ease-out 1.8s;
}

.section:not(.section--hero) .section__frame.visible .vine-leaf {
    opacity: 1;
    transform: scale(1);
}

/* --- Scan line hatching overlay (CRT effect, brief on scroll-enter) --- */
.scan-line-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: repeating-linear-gradient(
        0deg,
        rgba(82, 183, 136, 0.08) 0px,
        rgba(82, 183, 136, 0.08) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0;
    transition: opacity 0.3s ease-out;
    border-radius: inherit;
}

.section__frame.scan-active .scan-line-overlay {
    animation: scanLineFade 2.5s ease-out forwards;
}

@keyframes scanLineFade {
    0% { opacity: 0; }
    15% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .bubble-nav {
        top: 10px;
        right: 10px;
        width: 160px;
        height: 160px;
    }

    .margin-note {
        position: relative;
        right: auto;
        left: auto;
        width: 100%;
        margin-top: 1.5rem;
    }

    .margin-note--right,
    .margin-note--left {
        right: auto;
        left: auto;
        top: auto;
    }

    .feature-cluster {
        grid-template-columns: 1fr;
    }

    .section--offset-left {
        padding-left: 1.5rem;
        justify-content: center;
    }

    .section--offset-right {
        padding-right: 1.5rem;
        justify-content: center;
    }

    .hero__vine {
        display: none;
    }

    .section__vine-side {
        display: none;
    }

    .channel-shift-doodle,
    .channel-shift-doodle--left {
        display: none;
    }
}

@media (max-width: 600px) {
    .bubble-nav {
        width: 140px;
        height: 140px;
    }

    .bubble-nav__node svg {
        width: 30px;
        height: 30px;
    }

    .section__frame {
        padding: 1.5rem;
        border-radius: 30% 70% 55% 45% / 45% 55% 45% 55%;
    }

    .section__frame::before {
        border-radius: 32% 68% 53% 47% / 43% 57% 43% 57%;
    }

    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
    }

    .pull-quote {
        padding: 1.5rem 1rem;
    }

    .hero__title-svg {
        max-width: 90vw;
    }

    .pixel-blocks {
        display: none;
    }
}
