/* =========================================================
   AUDIOFB — HOME / INTERACTIVE DEVELOPMENT LAYERS
   Estilos independentes dos arquivos anteriores.
   ========================================================= */

:root {
    color-scheme: dark;

    --bg: #090c10;
    --surface: #10161b;
    --text: #f1f4ef;
    --muted: #a0abae;
    --line: rgba(255, 255, 255, .1);
    --green: #b3f582;
    --blue: #91c9ff;
    --purple: #c6adff;

    --font-body: "Inter", sans-serif;
    --font-heading: "Bricolage Grotesque", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
img {
    -webkit-user-drag: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 5px;
}

::selection {
    background: var(--green);
    color: var(--bg);
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(1440px, calc(100% - 80px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 100;
    padding: 14px 20px;
    background: var(--green);
    color: #10170b;
    border-radius: 8px;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.mono {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
}

/* Fundo */

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient__glow {
    position: absolute;
    width: 850px;
    height: 850px;
    border-radius: 50%;
}

.ambient__glow--one {
    top: -360px;
    right: -200px;
    background: radial-gradient(
        circle,
        rgba(110, 163, 96, .12),
        transparent 67%
    );
}

.ambient__glow--two {
    left: -550px;
    top: 400px;
    background: radial-gradient(
        circle,
        rgba(82, 122, 174, .09),
        transparent 67%
    );
}

.ambient__grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(#000, transparent 85%);
}

/* Header */

.header {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    flex-shrink: 0;
}

.brand img {
    width: 130px;
    height: 40px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 13px;
}

.nav__about {
    color: var(--muted);
    transition: color .2s ease;
}

.nav__about:hover {
    color: var(--text);
}

.nav__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 10px 20px;
    transition: border-color .2s ease, background .2s ease;
}

.nav__button:hover {
    border-color: rgba(179,245,130,.45);
    background: rgba(179,245,130,.05);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding-block: 76px 100px;
}

.hero__copy {
    min-width: 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.status-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(179,245,130,.08);
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(44px, 4.9vw, 76px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.065em;
}

.hero h1 > span {
    color: var(--green);
}

.hero__description {
    max-width: 470px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease;
}

.button--primary {
    color: #162010;
    background: var(--green);
    box-shadow: 0 6px 30px rgba(179,245,130,.08);
}

.button--primary:hover {
    background: #c4ffa0;
    transform: translateY(-2px);
}

.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #ccd2cf;
}

.text-link:hover {
    color: var(--green);
}

.hero__signature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 44px;
}

.hero__signature p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    color: #c1c9c5;
}

.hero__signature p span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.signature-mark {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.signature-mark i {
    width: 3px;
    height: 12px;
    background: var(--green);
    border-radius: 3px;
}

.signature-mark i:nth-child(2),
.signature-mark i:nth-child(4) {
    height: 22px;
}

.signature-mark i:nth-child(3) {
    height: 32px;
}

/* Caixa da experiência */

.experience {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(121,171,134,.08), transparent 70%),
        rgba(14, 19, 23, .88);
    box-shadow:
        0 32px 90px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.experience__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.experience__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(179,245,130,.16);
    border-radius: 6px;
    color: var(--green);
    background: rgba(179,245,130,.035);
    font-family: var(--font-mono);
    font-size: 9px;
}

/* Cena 3D
   O JS ajusta a escala inteira, sem deformar as camadas.
*/

.scene-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 720 / 660;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.is-interactive .scene-viewport {
    cursor: grab;
}

.scene-viewport.is-dragging {
    cursor: grabbing;
}

.scene-scale {
    --scene-scale: .5;

    position: absolute;
    left: 50%;
    top: 50%;
    width: 720px;
    height: 660px;
    transform: translate(-50%, -50%) scale(var(--scene-scale));
    transform-origin: center;
    perspective: 1600px;
}

.scene-orbit {
    --rotate-x: 48deg;
    --rotate-z: -28deg;

    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--rotate-x)) rotateZ(var(--rotate-z));
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.is-dragging .scene-orbit {
    transition: none;
}

.scene-floor {
    position: absolute;
    left: 95px;
    top: 135px;
    width: 530px;
    height: 390px;
    border: 1px solid rgba(179,245,130,.1);
    border-radius: 28px;
    background-image:
        linear-gradient(rgba(179,245,130,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(179,245,130,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: translateZ(-155px);
}

.layer {
    position: absolute;
    left: 130px;
    top: 185px;
    width: 460px;
    height: 290px;
    border: 1px solid var(--layer-border);
    border-radius: 14px;
    background: #11191e;
    transform: translateZ(var(--depth));
    backface-visibility: hidden;
    box-shadow:
        0 4px 0 #070b0f,
        0 6px 0 var(--layer-border),
        0 25px 45px rgba(0,0,0,.3);
    transition:
        transform .8s cubic-bezier(.22,1,.36,1),
        opacity .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.layer--product {
    --depth: 135px;
    --layer-border: rgba(179,245,130,.65);
    --layer-color: var(--green);
}

.layer--flow {
    --depth: 0px;
    --layer-border: rgba(145,201,255,.5);
    --layer-color: var(--blue);
}

.layer--code {
    --depth: -135px;
    --layer-border: rgba(198,173,255,.45);
    --layer-color: var(--purple);
}

.is-collapsed .layer--product {
    --depth: 28px;
}

.is-collapsed .layer--flow {
    --depth: 14px;
}

.is-collapsed .layer--code {
    --depth: 0px;
}

.layer.is-selected {
    border-color: var(--layer-color);
    box-shadow:
        0 4px 0 #070b0f,
        0 6px 0 var(--layer-border),
        0 0 30px rgba(179,245,130,.08),
        0 30px 55px rgba(0,0,0,.38);
}

.experience.has-selection:not(.is-collapsed) .layer:not(.is-selected) {
    opacity: .36;
}

.panel-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 14px 14px 0 0;
    background: #172027;
    color: #c3cecb;
    font-family: var(--font-mono);
    font-size: 9px;
}

.panel-bar__right {
    margin-left: auto;
    color: #91a19f;
    font-size: 8px;
}

.product-status {
    color: var(--green);
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #61706f;
}

.window-dots i:first-child {
    background: #b5c48b;
}

.panel-label {
    letter-spacing: .12em;
    color: var(--blue);
}

.layer-tag {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    border: 1px solid var(--layer-border);
    border-radius: 6px;
    color: #eef3ed;
    background: #11181f;
    font-family: var(--font-mono);
    font-size: 10px;
    white-space: nowrap;
    transition: opacity .3s ease;
}

.layer-tag b {
    color: var(--layer-color);
    font-weight: 500;
}

.is-collapsed .layer:not(.layer--product) .layer-tag {
    opacity: 0;
}

/* Produto */

.plugin-preview {
    position: relative;
    height: 252px;
    padding: 9px;
    border-radius: 0 0 14px 14px;
    background: #0b0e12;
    overflow: hidden;
}

.plugin-preview img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.plugin-preview__fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background:
        radial-gradient(circle at center, #283c2b, #10191d 70%);
    color: var(--green);
    font-family: var(--font-heading);
    font-size: 28px;
}

.plugin-preview__fallback small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
}

.plugin-preview.image-failed img {
    display: none;
}

.plugin-preview.image-failed .plugin-preview__fallback {
    display: flex;
}

/* Signal Flow */

.flow-canvas {
    position: relative;
    height: 252px;
    border-radius: 0 0 14px 14px;
    background:
        radial-gradient(circle, rgba(145,201,255,.16) 1px, transparent 1px),
        #0e171d;
    background-size: 14px 14px;
}

.flow-wires {
    position: absolute;
    left: 0;
    top: 0;
    width: 460px;
    height: 226px;
}

.wire-shadow {
    stroke: #060e13;
    stroke-width: 9;
}

.wire-main {
    stroke: url(#wire-gradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-wires circle {
    fill: var(--green);
}

.flow-node {
    position: absolute;
    top: 76px;
    width: 74px;
    height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid #526958;
    border-radius: 12px;
    background: linear-gradient(145deg, #294236, #162922);
    box-shadow:
        0 5px 0 #09120f,
        0 6px 0 #375444,
        0 15px 20px rgba(0,0,0,.3);
}

.flow-node--filter {
    left: 155px;
}

.flow-node--space {
    left: 302px;
    border-color: #516c82;
    background: linear-gradient(145deg, #29465a, #182934);
    box-shadow:
        0 5px 0 #091018,
        0 6px 0 #365267,
        0 15px 20px rgba(0,0,0,.3);
}

.node-symbol {
    color: var(--green);
    font-size: 24px;
    line-height: 1;
}

.flow-node--space .node-symbol {
    color: var(--blue);
}

.flow-node strong {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .1em;
}

.flow-node small {
    color: #b0c0be;
    font-size: 8px;
}

.flow-port {
    position: absolute;
    top: 96px;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.flow-port--input {
    left: 47px;
}

.flow-port--output {
    left: 400px;
}

.flow-port > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #536964;
    border-radius: 50%;
    background: #192923;
    color: var(--green);
}

.flow-port small {
    color: #b5c7c4;
    font-family: var(--font-mono);
    font-size: 8px;
}

.flow-feedback {
    position: absolute;
    left: 224px;
    top: 194px;
    color: #8fa8ac;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: .1em;
}

.flow-caption {
    position: absolute;
    left: 15px;
    bottom: 12px;
    color: #8fa6ae;
    font-family: var(--font-mono);
    font-size: 8px;
}

/* Código */

.editor {
    display: flex;
    gap: 15px;
    padding: 17px 16px 12px;
}

.editor__numbers,
.editor pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
}

.editor__numbers {
    color: #627081;
    text-align: right;
}

.editor pre {
    color: #d5dee1;
}

.editor code {
    font: inherit;
}

.syntax-comment {
    color: #829396;
}

.syntax-purple {
    color: var(--purple);
}

.syntax-green {
    color: var(--green);
}

.editor__status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: #acb9bb;
    font-family: var(--font-mono);
    font-size: 8px;
}

.editor__status span:first-child {
    color: var(--purple);
}

/* Controles */

.experience__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 16px;
}

.control-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #d5ddd8;
    font-size: 11px;
    transition: background .2s ease, border-color .2s ease;
}

.control-button:hover {
    background: rgba(179,245,130,.06);
    border-color: rgba(179,245,130,.35);
}

.control-button > span:first-child {
    color: var(--green);
    font-size: 17px;
}

.control-button--reset {
    flex: 0 0 44px;
    padding: 0;
}

.control-button--reset > span:first-child {
    font-size: 23px;
}

.drag-hint {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.layer-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #090f13;
}

.layer-selector__button {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 9px 5px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.layer-selector__button > span {
    font-family: var(--font-mono);
    font-size: 9px;
    opacity: .65;
}

.layer-selector__button:hover {
    color: var(--text);
    background: rgba(255,255,255,.035);
}

.layer-selector__button[aria-pressed="true"] {
    color: var(--green);
    border-color: rgba(179,245,130,.15);
    background: rgba(179,245,130,.08);
}

.layer-selector__button[data-select-layer="flow"][aria-pressed="true"] {
    color: var(--blue);
    background: rgba(145,201,255,.08);
    border-color: rgba(145,201,255,.2);
}

.layer-selector__button[data-select-layer="code"][aria-pressed="true"] {
    color: var(--purple);
    background: rgba(198,173,255,.08);
    border-color: rgba(198,173,255,.2);
}

.layer-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 115px;
    padding-top: 21px;
}

.layer-detail__number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 11px;
}

.layer-detail h2 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.layer-detail p,
.noscript-note {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* Seção de produtos / projetos */

.work {
    padding-bottom: 100px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading .eyebrow {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.section-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(140deg, #121a1e, #0c1116);
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.work-card--projects {
    background: linear-gradient(140deg, #151921, #0c1116);
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(179,245,130,.32);
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.work-card--projects:hover {
    border-color: rgba(145,201,255,.35);
}

.work-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}

.card-arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 20px;
    transition: background .25s ease, color .25s ease;
}

.work-card:hover .card-arrow {
    color: #15200e;
    background: var(--green);
}

.work-card--projects:hover .card-arrow {
    background: var(--blue);
}

.card-art {
    position: relative;
    height: 190px;
    display: grid;
    place-items: center;
    margin-block: 12px 22px;
}

/* Knob decorativo */

.knob-art {
    background: radial-gradient(ellipse, rgba(179,245,130,.07), transparent 65%);
}

.knob-orbit {
    position: absolute;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    border: 1px dashed rgba(179,245,130,.28);
}

.knob-orbit::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 3px solid transparent;
    border-top-color: var(--green);
    border-right-color: var(--green);
    border-radius: 50%;
    transform: rotate(-40deg);
    opacity: .8;
}

.knob {
    position: relative;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    border: 1px solid #56615c;
    background:
        radial-gradient(circle at 35% 25%, #515956, #232b28 55%, #151c19);
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,.12),
        inset 0 -5px 9px rgba(0,0,0,.35),
        0 10px 0 #080e0b,
        0 12px 0 #303b33,
        0 25px 32px rgba(0,0,0,.45);
    transform: rotate(28deg);
    transition: transform .65s cubic-bezier(.22,1,.36,1);
}

.knob > span {
    position: absolute;
    top: 11px;
    left: calc(50% - 2px);
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: var(--green);
    box-shadow: 0 0 12px rgba(179,245,130,.35);
}

.work-card:hover .knob {
    transform: rotate(68deg);
}

.art-label {
    position: absolute;
    top: 50%;
    color: #96a699;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .12em;
}

.art-label--left {
    left: 4%;
}

.art-label--right {
    right: 4%;
}

/* Rede decorativa */

.network-art {
    background: radial-gradient(ellipse, rgba(145,201,255,.07), transparent 65%);
}

.network-art svg {
    width: min(100%, 400px);
    height: 180px;
    overflow: visible;
    transition: transform .4s ease;
}

.network-art path {
    stroke: #566c86;
    stroke-width: 1.5;
}

.network-art circle,
.network-art rect {
    fill: #1b2c3c;
    stroke: #89b6df;
    stroke-width: 1.5;
}

.network-art rect {
    fill: #263e54;
}

.network-art .network-core {
    stroke: #c4e4ff;
    stroke-width: 2;
    stroke-linecap: round;
}

.work-card:hover .network-art svg {
    transform: scale(1.05);
}

.work-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.work-card h3 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.work-card__content > p {
    max-width: 490px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    align-self: flex-start;
    margin-top: auto;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

.work-card--projects .card-link {
    color: var(--blue);
}

.card-link > span {
    transition: transform .2s ease;
}

.work-card:hover .card-link > span {
    transform: translateX(5px);
}

/* Footer */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 100px;
    padding-block: 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.footer p {
    margin: 0;
}

.footer > span {
    color: #c1cbc3;
}

/* Responsividade */

@media (min-width: 1700px) {
    .hero {
        padding-block: 100px 120px;
    }
}

@media (max-width: 1100px) {
    .shell {
        width: calc(100% - 48px);
    }

    .hero {
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(42px, 5.3vw, 60px);
    }

    .hero__description {
        font-size: 14px;
    }

    .experience {
        padding: 15px;
    }

    .drag-hint {
        max-width: 95px;
        line-height: 1.5;
    }

    .art-label {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        padding-block: 56px 70px;
    }

    .hero__copy {
        max-width: 660px;
    }

    .hero h1 {
        font-size: clamp(48px, 8vw, 72px);
    }

    .hero__description {
        max-width: 570px;
    }

    .hero__signature {
        margin-top: 28px;
    }

    .experience {
        width: 100%;
        max-width: 690px;
        justify-self: center;
        padding: 22px;
    }

    .drag-hint {
        max-width: none;
    }

    .layer-detail {
        min-height: 96px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading > p {
        max-width: 210px;
    }

    .work-card {
        padding: 22px;
    }

    .work-card h3 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .shell {
        width: calc(100% - 32px);
    }

    .header {
        min-height: 86px;
        gap: 14px;
    }

    .brand img {
        width: 104px;
        height: 36px;
    }

    .nav {
        gap: 14px;
        font-size: 11px;
    }

    .nav__button {
        gap: 8px;
        padding-inline: 13px;
        font-size: 10px;
    }

    .hero {
        padding-top: 40px;
        gap: 34px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: .09em;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: clamp(42px, 10.8vw, 62px);
    }

    .hero__description {
        margin-top: 22px;
        font-size: 13px;
        line-height: 1.9;
    }

    .hero__actions {
        gap: 13px 18px;
        margin-top: 26px;
    }

    .button {
        font-size: 12px;
        padding-inline: 18px;
        gap: 17px;
    }

    .text-link {
        font-size: 11px;
    }

    .experience {
        padding: 14px;
        border-radius: 18px;
    }

    .experience__header .mono {
        font-size: 8px;
    }

    .experience__badge {
        font-size: 8px;
    }

    .experience__controls {
        display: grid;
        grid-template-columns: 1fr 44px;
        padding-bottom: 13px;
    }

    .control-button:first-child {
        justify-self: start;
    }

    .control-button--reset {
        grid-column: 2;
        grid-row: 1;
    }

    .drag-hint {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 1px;
        font-size: 9px;
    }

    .layer-selector__button {
        gap: 4px;
        font-size: 10px;
    }

    .layer-selector__button > span {
        font-size: 8px;
    }

    .layer-detail {
        gap: 10px;
        min-height: 130px;
        padding-top: 17px;
    }

    .layer-detail h2 {
        font-size: 12px;
    }

    .layer-detail p {
        font-size: 10px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        max-width: none;
        margin-top: 18px;
        font-size: 11px;
    }

    .work-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .work {
        padding-bottom: 56px;
    }

    .work-card {
        padding: 24px;
    }

    .card-art {
        height: 170px;
        margin-block: 10px 20px;
    }

    .work-card h3 {
        font-size: 30px;
    }

    .work-card__content > p {
        font-size: 12px;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 17px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 42px);
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .text-link {
        justify-content: center;
    }

    .experience {
        padding: 10px;
    }

    .layer-selector__button {
        flex-direction: column;
        gap: 3px;
    }
}

/* A interação continua disponível sem movimentos animados. */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Fallback para motores sem suporte ao cenário 3D. */

@supports not (transform-style: preserve-3d) {
    .scene-orbit {
        transform: none;
    }

    .scene-floor {
        display: none;
    }

    .layer {
        transform: none;
    }

    .layer--code {
        top: 60px;
    }

    .layer--flow {
        top: 185px;
    }

    .layer--product {
        top: 310px;
    }

    .is-collapsed .layer {
        top: 185px;
    }
}