/* ============================================================
   CENA 3 — BRUTALISMO TIPOGRÁFICO / ANIMAÇÕES EXPRESSIVAS
   ============================================================ */

/* Cores fixas da cena (independentes de light/dark — proposital) */
#scene-3 {
    --s3-yellow: #FFE600;
    --s3-yellow-deep: #EFD500;
    --s3-black:  #0a0a0a;
    --s3-white:  #ffffff;
    --s3-red:    #ff2d55;
    --s3-cyan:   #00e5ff;
    --s3-green:  #00ff66;

    --s3-display: var(--font-ui);
    --s3-mono:    var(--font-mono);

    padding: 0 !important;
    display: block !important;
    background: var(--s3-black);
    overflow: hidden;
}

/* ------------------------------------------------------------
   GRID
   ------------------------------------------------------------ */
#scene-3 .s3-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 44% 56%;
    grid-template-rows: 44fr 40fr 16fr;
    grid-template-areas:
        "left rt"
        "left rb"
        "left diag";
    gap: 3px;
    background: var(--s3-black);
    overflow: hidden;
}

/* Áreas nomeadas — ignora ordem no HTML */
#scene-3 .s3-left  { grid-area: left; }
#scene-3 .s3-rt    { grid-area: rt; }
#scene-3 .s3-rb    { grid-area: rb; }
#scene-3 .s3-diag  { grid-area: diag; }

/* ============================================================
   BLOCO 1 — YELLOW
   ============================================================ */
#scene-3 .s3-left {
    background:
        linear-gradient(
            90deg,
            #b8a800 0%,
            #e6cf00 18%,
            #FFE600 45%,
            #FFF04a 100%
        );
    position: relative;
    z-index: 7;
    color: var(--s3-black);
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

#scene-3 .s3-left::before {
    content: "";
    position: absolute;
    inset: -15% 0 -15% -22%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.25) 33%,
        rgba(255,255,255,0.48) 50%,
        rgba(0,0,0,0.08) 60%,
        transparent 100%
    );
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: s3LeftSweep 8s ease-in-out infinite;
}

#scene-3 .s3-left > * {
    position: relative;
    z-index: 2;
}

#scene-3 .s3-left__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem !important;
    font-weight: 700;
    letter-spacing: 0.09em !important;
    color: var(--s3-black) !important;
    text-transform: uppercase;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

#scene-3 .s3-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    margin: 18px 0;
    font-family: var(--s3-display);
    font-weight: 900;
    font-size: clamp(2rem, 5.2vw, 4.6rem);
    line-height: 0.84;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--s3-black);
    overflow-wrap: anywhere;
    word-break: break-word;
}

#scene-3 .s3-display__mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.03em;
}

#scene-3 .s3-display__line {
    display: inline-block;
    will-change: transform;
    transform: translateY(110%);
    transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
#scene-3 .s3-display__mask:nth-child(2) .s3-display__line { transition-delay: 0.08s; }
#scene-3 .s3-display__mask:nth-child(3) .s3-display__line { transition-delay: 0.16s; }

#scene-3.s3-revealed .s3-display__line { transform: translateY(0); }

/* ---- Marquees ---- */
#scene-3 .s3-marquees {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 -26px;
    position: relative;
    z-index: 2;
}

#scene-3 .s3-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--s3-black);
    color: var(--s3-yellow);
    padding: 5px 0;
}

#scene-3 .s3-marquee--alt {
    background: var(--s3-yellow);
    color: var(--s3-black);
    border-top: 1.5px solid var(--s3-black);
    border-bottom: 1.5px solid var(--s3-black);
}

#scene-3 .s3-marquee__track {
    display: inline-block;
    white-space: nowrap;
    animation: s3Marquee 22s linear infinite;
    font-family: var(--s3-display);
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding-right: 40px;
}
#scene-3 .s3-marquee--reverse .s3-marquee__track { animation-direction: reverse; }

@keyframes s3Marquee {
    to { transform: translateX(-50%); }
}

@keyframes s3LeftSweep {
    0%, 12% {
        transform: translateX(-120%) skewX(-18deg);
        opacity: 0;
    }
    20%, 32% {
        opacity: 0.85;
    }
    40%, 100% {
        transform: translateX(120%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes s3PulseTag {
    0%, 100% {
        transform: translateY(-50%) rotate(180deg) scale(1);
        text-shadow: 0 0 0 rgba(0,0,0,0);
    }
    50% {
        transform: translateY(-50%) rotate(180deg) scale(1.05);
        text-shadow: 0 0 12px rgba(0,0,0,0.18);
    }
}

/* ---- Side marker ((03)) ---- */
#scene-3 .s3-left__side {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-family: var(--s3-display);
    font-weight: 900;
    font-size: clamp(1.2rem, 2.6vw, 2.2rem);
    letter-spacing: -0.03em;
    color: var(--s3-black);
    pointer-events: none;
    z-index: 2;
    animation: s3PulseTag 4.2s ease-in-out infinite;
}

/* ============================================================
   BLOCO 2 — DARK (topo direita)
   ============================================================ */
#scene-3 .s3-rt {
    position: relative;
    background: var(--s3-black);
    color: var(--s3-white);
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#scene-3 .s3-rt__kicker {
    font-size: 0.65rem !important;
    font-weight: 700;
    letter-spacing: 0.22em !important;
    color: var(--s3-cyan) !important;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--s3-cyan);
    align-self: flex-start;
    animation: s3KickerBlink 3.8s ease-in-out infinite;
}

@keyframes s3KickerBlink {
    0%, 100% {
        opacity: 1;
        letter-spacing: 0.22em;
        text-shadow: 0 0 0 rgba(0,229,255,0);
    }
    50% {
        opacity: 0.8;
        letter-spacing: 0.24em;
        text-shadow: 0 0 12px rgba(0,229,255,0.4);
    }
}

#scene-3 .s3-rt__title {
    font-family: var(--s3-display);
    font-weight: 900;
    font-size: clamp(1.7rem, 4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin: 12px 0;
    /* deixa a última palavra vazar e ser cortada pela borda */
    margin-right: -14vw;
    padding-right: 14vw;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#scene-3 .s3-rt__title .s3-word {
    display: inline-block;
    margin-right: 0.22em;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
        color 0.18s ease,
        text-shadow 0.18s ease,
        letter-spacing 0.3s ease;
    will-change: opacity, transform, color, text-shadow;
}
#scene-3 .s3-rt__title .s3-word:nth-child(1) { transition-delay: 0.15s; }
#scene-3 .s3-rt__title .s3-word:nth-child(2) { transition-delay: 0.21s; }
#scene-3 .s3-rt__title .s3-word:nth-child(3) { transition-delay: 0.27s; }
#scene-3 .s3-rt__title .s3-word:nth-child(4) { transition-delay: 0.33s; }
#scene-3 .s3-rt__title .s3-word:nth-child(5) { transition-delay: 0.39s; }
#scene-3 .s3-rt__title .s3-word:nth-child(6) { transition-delay: 0.45s; }

#scene-3.s3-revealed .s3-rt__title .s3-word {
    opacity: 1;
    transform: translateY(0);
}

/* Hover destrutivo */
#scene-3 .s3-rt__title .s3-word:hover {
    background: var(--s3-white);
    color: var(--s3-black);
    padding: 0 0.08em;
    letter-spacing: 0.02em;
    transform: translateY(-4px) skewX(-8deg) !important;
    text-shadow: 3px 0 var(--s3-red), -3px 0 var(--s3-cyan);
}

/* ---- Glitch ---- */
#scene-3 .s3-glitch {
    position: relative;
    isolation: isolate;
}
#scene-3 .s3-glitch::before,
#scene-3 .s3-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
}
#scene-3 .s3-glitch::before {
    color: var(--s3-cyan);
    text-shadow: -1.5px 0 var(--s3-cyan);
    z-index: -1;
    animation: s3GlitchA 4.2s infinite steps(1);
}
#scene-3 .s3-glitch::after {
    color: var(--s3-red);
    text-shadow: 1.5px 0 var(--s3-red);
    z-index: -2;
    animation: s3GlitchB 4.2s infinite steps(1);
}

@keyframes s3GlitchA {
    0%, 68%   { transform: translate(0,0);       clip-path: inset(0 0 0 0); }
    70%       { transform: translate(-5px, 1px); clip-path: inset(20% 0 55% 0); }
    72%       { transform: translate(3px,-2px);  clip-path: inset(65% 0 12% 0); }
    74%       { transform: translate(-7px,0);    clip-path: inset(8% 0 78% 0); }
    76%       { transform: translate(4px,2px);   clip-path: inset(48% 0 38% 0); }
    78%       { transform: translate(-3px,-1px); clip-path: inset(72% 0 6% 0); }
    80%       { transform: translate(5px,1px);   clip-path: inset(28% 0 52% 0); }
    82%,100%  { transform: translate(0,0);       clip-path: inset(0 0 0 0); }
}
@keyframes s3GlitchB {
    0%, 68%   { transform: translate(0,0);       clip-path: inset(0 0 0 0); }
    70%       { transform: translate(5px,-1px);  clip-path: inset(68% 0 10% 0); }
    72%       { transform: translate(-3px,2px);  clip-path: inset(14% 0 58% 0); }
    74%       { transform: translate(7px,0);     clip-path: inset(52% 0 22% 0); }
    76%       { transform: translate(-4px,-2px); clip-path: inset(6% 0 82% 0); }
    78%       { transform: translate(3px,1px);   clip-path: inset(38% 0 46% 0); }
    80%       { transform: translate(-5px,-1px); clip-path: inset(62% 0 18% 0); }
    82%,100%  { transform: translate(0,0);       clip-path: inset(0 0 0 0); }
}

/* "código" vaza pela borda direita */
#scene-3 .s3-rt__title .s3-cut { white-space: nowrap; }

#scene-3 .s3-rt__intro {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
    max-width: 60ch;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#scene-3 .s3-rt__index {
    display: flex;
    gap: 16px;
    font-size: 0.7rem !important;
    letter-spacing: 0.14em !important;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    justify-content: flex-end;
    border-top: 1.5px solid rgba(255,255,255,0.18);
    padding-top: 10px;
    align-self: stretch;
}

/* ============================================================
   BLOCO 3 — WHITE (base direita) com gradiente cinza → branco
   ============================================================ */
#scene-3 .s3-rb {
    position: relative;
    background:
        linear-gradient(
            180deg,
            #dcdcdc 0%,
            #e8e8e8 22%,
            #f6f6f6 55%,
            #ffffff 85%,
            #ffffff 100%
        );
    color: var(--s3-black);
    padding: 18px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

/* Grain sutil por cima do gradiente */
#scene-3 .s3-rb::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    mix-blend-mode: multiply;
    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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
    background-size: 160px 160px;
}

/* Linha superior editorial */
#scene-3 .s3-rb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(10,10,10,0) 0%,
        rgba(10,10,10,0.35) 30%,
        rgba(10,10,10,0.35) 70%,
        rgba(10,10,10,0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#scene-3 .s3-rb > * { position: relative; z-index: 2; }

#scene-3 .s3-rb__kicker {
    font-size: 0.55rem !important; /* ALTERADO: era 0.62rem */
    font-weight: 700;
    letter-spacing: 0.2em !important;
    color: var(--s3-black) !important;
    border-bottom: 2px solid var(--s3-black);
    align-self: flex-start;
    padding-bottom: 3px;
    margin-bottom: 8px;
}

/* Study grid brutalista */
#scene-3 .study-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; /* ALTERADO: era 16px, reduzido para dar mais espaço ao texto */
    flex: 1;
    margin: 6px 0 10px;
    min-height: 0;
    border-top: 1.5px solid rgba(10,10,10,0.12);
    padding-top: 12px;
}

#scene-3 .study-item {
    position: relative;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 3px; /* ALTERADO: era 4px */
    min-width: 0;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s ease,
        transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-top-color 0.4s ease;
    will-change: opacity, transform;
    border-top: 2px solid transparent;
    padding-top: 8px;
    cursor: default;
}

#scene-3 .study-item:nth-child(1) { transition-delay: 0.55s; }
#scene-3 .study-item:nth-child(2) { transition-delay: 0.65s; }
#scene-3 .study-item:nth-child(3) { transition-delay: 0.75s; }
#scene-3 .study-item:nth-child(4) { transition-delay: 0.85s; }

#scene-3.s3-revealed .study-item {
    opacity: 1;
    transform: translateY(0);
}

#scene-3 .study-item:hover {
    border-top-color: var(--s3-black);
}

#scene-3 .study-item .mono {
    font-size: 0.48rem !important; /* ALTERADO: era 0.55rem */
    font-weight: 700;
    letter-spacing: 0.14em !important;
    color: rgba(10,10,10,0.45) !important;
    white-space: nowrap;
    transition: color 0.35s ease;
}

#scene-3 .study-item h4 {
    font-family: var(--s3-display);
    font-weight: 900;
    font-size: clamp(0.85rem, 1.2vw, 1.15rem); /* ALTERADO: era clamp(0.95rem, 1.45vw, 1.35rem) */
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 2px 0 4px; /* ALTERADO: era 2px 0 6px */
    text-transform: uppercase;
    color: #6b6b6b;
    transition: color 0.35s ease, letter-spacing 0.35s ease;
    will-change: color, letter-spacing;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#scene-3 .study-item p {
    font-size: 0.62rem; /* ALTERADO: era 0.7rem */
    line-height: 1.45;
    color: rgba(10,10,10,0.55);
    margin: 0;
    transition: color 0.35s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---- Hover: cinza → preto ---- */
#scene-3 .study-item:hover h4 {
    color: var(--s3-black);
    letter-spacing: -0.02em;
}

#scene-3 .study-item:hover p {
    color: rgba(10,10,10,0.85);
}

#scene-3 .study-item:hover .mono {
    color: var(--s3-black) !important;
}

/* Footer do bloco branco */
#scene-3 .s3-rb__footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.52rem !important; /* ALTERADO: era 0.6rem */
    letter-spacing: 0.12em !important;
    font-weight: 700;
    color: var(--s3-black) !important;
    border-top: 1.5px solid var(--s3-black);
    padding-top: 8px;
    align-items: flex-end;
}

/* ============================================================
   DIAGONAL — faixa infinita (base direita)
   ============================================================ */
#scene-3 .s3-diag {
    position: relative;
    background: transparent;
    overflow: visible;
    z-index: 6;
    pointer-events: none;
}

#scene-3 .s3-diag__band {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 68px;
    transform: translate(-50%, -50%) rotate(-4.5deg);
    transform-origin: center center;
    background: var(--s3-black);
    color: var(--s3-yellow);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-top: 2px solid var(--s3-yellow);
    border-bottom: 2px solid var(--s3-yellow);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

#scene-3 .s3-diag__track {
    display: flex;
    width: max-content;
    animation: s3DiagMarquee 32s linear infinite;
    will-change: transform;
}

#scene-3 .s3-diag__seg {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 28px;
    font-family: var(--s3-display);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

#scene-3 .s3-diag__word { padding: 0 6px; }
#scene-3 .s3-diag__word--alt { color: var(--s3-cyan); }
#scene-3 .s3-diag__sep {
    color: var(--s3-red);
    padding: 0 8px;
    transform: translateY(-1px);
    display: inline-block;
}

@keyframes s3DiagMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    #scene-3 .s3-diag__track { animation: none !important; }
    #scene-3 .s3-display__line,
    #scene-3 .s3-rt__title .s3-word,
    #scene-3 .study-item {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    #scene-3 .s3-marquee__track { animation: none !important; }
    #scene-3 .s3-glitch::before,
    #scene-3 .s3-glitch::after { animation: none !important; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* ------------------------------------------------------------
   CELULAR EM PÉ (portrait) — esconde "O que eu estudo"
   ------------------------------------------------------------ */
@media (orientation: portrait) and (max-width: 900px) {
    #scene-3 .s3-grid {
        grid-template-columns: 100%;
        grid-template-rows: 42fr 40fr 18fr;
        grid-template-areas:
            "left"
            "rt"
            "diag";
        gap: 2px;
    }

    /* Remove o bloco "O que eu estudo" em retrato no celular */
    #scene-3 .s3-rb { display: none; }

    #scene-3 .s3-left { padding: 16px 18px; }
    #scene-3 .s3-rt   { padding: 16px 18px; }

    #scene-3 .s3-left__meta { font-size: 0.55rem !important; }

    #scene-3 .s3-display {
        font-size: clamp(1.6rem, 8vw, 3rem);
        margin: 12px 0;
    }

    #scene-3 .s3-marquees { margin: 0 -18px; }
    #scene-3 .s3-marquee__track { font-size: 0.68rem; }

    #scene-3 .s3-rt__kicker { font-size: 0.55rem !important; }
    #scene-3 .s3-rt__title {
        font-size: clamp(1.3rem, 6vw, 2.2rem);
        margin-right: -6vw;
        padding-right: 6vw;
    }
    #scene-3 .s3-rt__intro { font-size: 0.68rem; line-height: 1.5; }
    #scene-3 .s3-rt__index { font-size: 0.55rem !important; padding-top: 8px; }

    #scene-3 .s3-diag__band {
        width: 140%;
        height: 46px;
        transform: translate(-50%, -50%) rotate(-4deg);
    }
    #scene-3 .s3-diag__seg { font-size: 0.68rem; padding-right: 14px; }

    #scene-3 .s3-left__side { display: none; }
}

/* ------------------------------------------------------------
   Janelas estreitas E baixas
   ------------------------------------------------------------ */
@media (max-width: 1590px) and (max-height: 650px) {
    #scene-3 .s3-grid {
        grid-template-columns: 100%;
        grid-template-rows: 40fr 34fr 26fr;
        grid-template-areas:
            "left"
            "rt"
            "diag";
    }

    #scene-3 .s3-rb { display: none; }

    #scene-3 .s3-left  { padding: 18px 20px; }
    #scene-3 .s3-rt    { padding: 16px 20px; }

    #scene-3 .s3-diag__band {
        width: 130%;
        height: 52px;
        transform: translate(-50%, -50%) rotate(-4deg);
    }
    #scene-3 .s3-diag__seg { font-size: 0.78rem; padding-right: 18px; }

    #scene-3 .s3-display {
        font-size: clamp(1.7rem, 8vw, 3rem);
        margin: 10px 0;
    }
    #scene-3 .s3-rt__title {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
        margin-right: -6vw;
        padding-right: 6vw;
    }
    #scene-3 .s3-rt__intro { font-size: 0.7rem; line-height: 1.5; }

    #scene-3 .s3-left__side { display: none; }
}

/* ------------------------------------------------------------
   Celular deitado (landscape curto)
   ------------------------------------------------------------ */
@media (orientation: landscape) and (max-height: 560px) {
    #scene-3 .s3-grid {
        grid-template-columns: 40% 60%;
        grid-template-rows: 60fr 40fr;
        grid-template-areas:
            "left rt"
            "left diag";
        gap: 2px;
    }

    #scene-3 .s3-rb { display: none; }

    #scene-3 .s3-left { padding: 12px 16px; }
    #scene-3 .s3-rt   { padding: 14px 18px; }

    #scene-3 .s3-left__meta { font-size: 0.5rem !important; }

    #scene-3 .s3-display {
        font-size: clamp(1.4rem, 4.6vw, 2.4rem);
        margin: 8px 0;
    }

    #scene-3 .s3-marquees { margin: 0 -16px; }
    #scene-3 .s3-marquee__track { font-size: 0.62rem; }

    #scene-3 .s3-rt__kicker { font-size: 0.5rem !important; }
    #scene-3 .s3-rt__title {
        font-size: clamp(1.15rem, 3.6vw, 1.9rem);
        margin-right: -8vw;
        padding-right: 8vw;
    }
    #scene-3 .s3-rt__intro { font-size: 0.62rem; line-height: 1.45; }
    #scene-3 .s3-rt__index { font-size: 0.5rem !important; padding-top: 6px; }

    #scene-3 .s3-diag__band {
        width: 140%;
        height: 42px;
        transform: translate(-50%, -50%) rotate(-3.5deg);
    }
    #scene-3 .s3-diag__seg { font-size: 0.62rem; padding-right: 12px; }

    #scene-3 .s3-left__side { display: none; }
}

/* ------------------------------------------------------------
   Celular muito estreito (fallback geral)
   ------------------------------------------------------------ */
@media (max-width: 380px) {
    #scene-3 .s3-grid {
        grid-template-columns: 100%;
        grid-template-rows: 38fr 36fr 26fr;
        grid-template-areas:
            "left"
            "rt"
            "diag";
    }

    #scene-3 .s3-rb { display: none; }

    #scene-3 .s3-display { font-size: 1.6rem; }
    #scene-3 .s3-rt__title { font-size: 1.2rem; }
    #scene-3 .s3-rt__intro { font-size: 0.6rem; line-height: 1.4; }

    #scene-3 .s3-diag__band {
        height: 40px;
        transform: translate(-50%, -50%) rotate(-3.5deg);
    }
    #scene-3 .s3-diag__seg { font-size: 0.58rem; padding-right: 10px; }
}