/* =========================================================
   RIDDLERISE — MASTER RESPONSIVE CSS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
    --bg: #050608;
    --bg-soft: #080d13;
    --panel: #091018;
    --panel-2: #0c141d;
    --line: rgba(255,255,255,.10);
    --line-bright: rgba(255,255,255,.16);
    --text: #f5f7fb;
    --muted: #929dab;
    --muted-2: #6e7885;
    --blue: #4ed8ff;
    --cyan: #36d5ff;
    --green: #5ce7a5;
    --gold: #ffd75a;
    --container: 1180px;
    --radius: 24px;
    --shadow: 0 30px 80px rgba(0,0,0,.35);
    --glow-blue: 0 0 30px rgba(78,216,255,.15);
    --glow-green: 0 0 20px rgba(92,231,165,.12);
    --ease-out-expo: cubic-bezier(.16,1,.3,1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    padding: 0;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 70% 5%, rgba(20,105,140,.12), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

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

img {
    height: auto;
}

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

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

button {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

h1, h2, h3, p {
    max-width: 100%;
    overflow-wrap: break-word;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(5,6,8,.78);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.topbar.scrolled {
    background: rgba(5,6,8,.94);
    border-bottom-color: rgba(255,255,255,.13);
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    object-fit: cover;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 32px;
    color: #aeb7c3;
    font-size: 14px;
    font-weight: 600;
}

.navlinks a {
    transition: color .2s ease, transform .2s ease;
}

.navlinks a:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    flex: 0 0 auto;
    border: 1px solid rgba(78,216,255,.2);
    border-radius: 12px;
    background: rgba(78,216,255,.06);
    font-size: 13px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(78,216,255,.1) 50%, transparent 75%);
    background-size: 250% 100%;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.nav-cta:hover {
    background: rgba(78,216,255,.12);
    border-color: rgba(78,216,255,.35);
    box-shadow: 0 0 20px rgba(78,216,255,.1);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    flex: 0 0 46px;
    position: relative;
    z-index: 1201;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 10px;
    transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding:
        calc(16px + env(safe-area-inset-top))
        max(18px, calc((100vw - var(--container)) / 2))
        calc(24px + env(safe-area-inset-bottom));
    background: rgba(3,5,8,.985);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity .25s ease, visibility .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-menu-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobile-menu-top {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.mobile-close-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: #f5f7fb;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.mobile-close-btn:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(78,216,255,.3);
}

.mobile-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5f7fb;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-title {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mobile-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #f4f6fa;
    font-size: 23px;
    font-weight: 700;
    transition: color .2s ease, padding-left .2s ease;
}

.mobile-menu-links a:first-child {
    border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-menu-links a::after {
    display: none;
}

.mobile-menu-links a:active {
    color: var(--blue);
    padding-left: 5px;
}

.mobile-menu-links a:active::after {
    transform: translateX(5px);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 25px;
}

.mobile-menu-footer small {
    display: block;
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background:
        radial-gradient(circle at 75% 50%, rgba(20,150,190,.13), transparent 33%),
        radial-gradient(circle at 20% 15%, rgba(25,55,100,.14), transparent 32%);
}

.hero-inner {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    align-items: center;
    gap: 60px;
    padding: 50px 0 70px;
}

.hero-copy {
    min-width: 0;
    max-width: 650px;
}

.kicker,
.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 23px;
}

.kicker i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(92,231,165,.08);
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.hero h1 {
    margin: 0;
    font-size: clamp(56px, 7vw, 100px);
    line-height: .91;
    letter-spacing: -.065em;
    font-weight: 850;
}

.gradient {
    background: linear-gradient(100deg, #f5f7fb 10%, #58d9ff 75%, #6ee9b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 620px;
    margin: 32px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0 26px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--ease-out-expo), background .25s ease, border-color .25s ease, box-shadow .35s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0) scale(.97);
    transition-duration: .1s;
}

.btn-primary {
    color: #071016;
    background: linear-gradient(135deg, #ffffff 0%, #d8e6f0 100%);
    box-shadow: 0 4px 18px rgba(255,255,255,.07), 0 0 0 1px rgba(255,255,255,.08);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e8f0f7 100%);
    box-shadow: 0 8px 35px rgba(78,216,255,.14), 0 0 0 1px rgba(255,255,255,.15);
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.03);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.btn-ghost:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(78,216,255,.3);
    box-shadow: 0 8px 30px rgba(78,216,255,.08), 0 0 0 1px rgba(78,216,255,.06);
}

.hero-art {
    position: relative;
    width: min(100%, 540px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    min-width: 0;
}

.orb {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,210,255,.12), transparent 65%);
    filter: blur(4px);
    animation: orb-breathe 4s ease-in-out infinite;
}

.orbit {
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(62,202,240,.13);
    border-radius: 50%;
    animation: orbit-spin 25s linear infinite;
}

.hero-game-card {
    position: absolute;
    width: 74%;
    left: 13%;
    top: 9%;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 28px;
    background: linear-gradient(145deg, #111b26, #080d14);
    box-shadow: var(--shadow);
    animation: card-float 6s ease-in-out infinite;
}

.hero-game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 19px;
    background: #14135a;
}

.gc-meta {
    padding: 18px 8px 9px;
}

.gc-meta small {
    display: block;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.gc-meta strong {
    display: block;
    margin-top: 7px;
    font-size: 21px;
    letter-spacing: -.03em;
}

.tag {
    position: absolute;
    z-index: 2;
    padding: 12px 17px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: #f6f7f8;
    color: #11151a;
    box-shadow: 0 14px 35px rgba(0,0,0,.25);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    will-change: transform;
}

.tag.one {
    right: 0;
    top: 13%;
    animation: float 5s ease-in-out infinite;
}

.tag.two {
    left: 0;
    bottom: 17%;
    background: #0c151e;
    color: white;
    border-color: rgba(255,255,255,.12);
    animation: float-alt 4.5s ease-in-out .6s infinite;
}

.section {
    padding: 120px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 50px;
    align-items: end;
    margin-bottom: 48px;
}

.section-head h2 {
    margin: 14px 0 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .95;
    letter-spacing: -.055em;
}

.section-head > p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.metric {
    min-width: 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,.025), transparent);
    transition: background .3s ease;
}

.metric:hover {
    background: linear-gradient(145deg, rgba(78,216,255,.05), rgba(255,255,255,.02));
}

.metric strong {
    font-size: 44px;
    letter-spacing: -.05em;
}

.metric span {
    margin-top: 7px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.featured {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 80% 30%, rgba(42,175,220,.08), transparent 35%),
        var(--panel);
    box-shadow: var(--shadow);
    transition: border-color .3s ease, box-shadow .4s ease;
}

.featured:hover {
    border-color: rgba(78,216,255,.2);
}

.featured-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(35px, 5vw, 70px);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.status i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-glow-sm 2.5s ease-in-out infinite;
}

.status-testing {
    color: var(--gold);
}

.status-testing i {
    background: var(--gold);
}

.featured h3 {
    margin: 18px 0 0;
    font-size: clamp(44px, 5vw, 74px);
    line-height: .92;
    letter-spacing: -.06em;
}

.featured-copy > p {
    max-width: 570px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.featured-art {
    min-width: 0;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
    overflow: hidden;
    background: radial-gradient(circle, rgba(30,180,220,.10), transparent 60%);
}

.featured-art img {
    width: min(100%, 510px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
    transform: rotate(3deg);
    transition: transform .4s ease;
}

.featured:hover .featured-art img {
    transform: rotate(1deg) scale(1.02);
}

.portfolio-spacer {
    height: clamp(70px, 8vw, 120px);
}

.portfolio-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.portfolio-intro h3 {
    margin: 12px 0 0;
    font-size: clamp(35px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -.05em;
}

.portfolio-intro p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.game {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    transition: transform .3s var(--ease-out-expo), border-color .3s ease, box-shadow .4s ease;
}

.game:hover {
    transform: translateY(-6px);
    border-color: rgba(78,216,255,.3);
    box-shadow: 0 25px 60px rgba(0,0,0,.3), 0 0 0 1px rgba(78,216,255,.08), inset 0 1px 0 rgba(78,216,255,.06);
}

.game-top {
    aspect-ratio: 1.25 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(145deg, #101a24, #080d13);
}

.game-top.lovably {
    background: linear-gradient(145deg, #12101a, #090b12);
}

.game-top.nexly {
    background: linear-gradient(145deg, #10131c, #080b10);
}

.game-top img {
    width: 75%;
    height: 75%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.game-body {
    min-width: 0;
    padding: 26px;
}

.game-body h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.025em;
}

.game-body p {
    min-height: 78px;
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    color: #c1cad5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.025);
    backdrop-filter: blur(6px);
}

.pill::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 8px rgba(78,216,255,.3);
}

.studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 90px;
}

.studio h2 {
    margin: 15px 0 25px;
    font-size: clamp(44px, 5vw, 70px);
    line-height: .95;
    letter-spacing: -.06em;
}

.studio p {
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.values {
    min-width: 0;
    border-top: 1px solid var(--line);
}

.value {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.value strong {
    font-size: 13px;
}

.value span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.update-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: 18px;
    background: var(--panel);
    transition: transform .3s var(--ease-out-expo), box-shadow .35s ease;
}

.update-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(0,0,0,.22);
}

.update-card:has(.status-testing) {
    border-left-color: var(--gold);
}

.update-card .status {
    margin-bottom: 25px;
}

.update-card h3 {
    margin: 0;
    font-size: 21px;
}

.update-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: clamp(35px, 5vw, 70px);
    border: 1px solid rgba(78,216,255,.13);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 80% 50%, rgba(38,182,220,.09), transparent 35%),
        var(--panel);
    transition: border-color .35s ease, box-shadow .4s ease;
}

.contact:hover {
    border-color: rgba(78,216,255,.28);
    box-shadow: 0 20px 60px rgba(0,0,0,.22), var(--glow-blue);
}

.contact h2 {
    margin: 14px 0 16px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -.055em;
}

.contact p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

footer {
    padding: 42px 0;
    background: #030406;
    border-top: 1px solid rgba(78,216,255,.06);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    color: var(--muted-2);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--blue);
}

@media (max-width: 900px) {
    .navlinks,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 45px;
        padding: 90px 0 70px;
    }

    .hero-copy {
        max-width: 700px;
    }

    .hero-art {
        width: min(100%, 560px);
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .featured-art {
        min-height: auto;
        padding: 30px 40px 55px;
    }

    .featured-art img {
        width: min(100%, 470px);
    }

    .games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game:first-child {
        grid-column: span 2;
    }

    .studio {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --radius: 18px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .nav {
        min-height: 68px;
    }

    .brand {
        max-width: calc(100% - 58px);
        font-size: 12px;
        letter-spacing: .09em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .hero-inner {
        gap: 35px;
        padding: 70px 0 55px;
    }

    .kicker {
        font-size: 10px;
        letter-spacing: .13em;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 70px);
        line-height: .92;
    }

    .hero-copy > p {
        margin-top: 23px;
        font-size: 16px;
        line-height: 1.65;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 24px;
    }

    .btn {
        width: 100%;
        min-height: 54px;
        padding-inline: 18px;
    }

    .hero-art {
        width: 100%;
        aspect-ratio: .95 / 1;
    }

    .hero-game-card {
        width: 76%;
        left: 12%;
        top: 8%;
        padding: 9px;
        border-radius: 20px;
    }

    .hero-game-card img {
        border-radius: 14px;
    }

    .gc-meta {
        padding: 13px 5px 7px;
    }

    .gc-meta small {
        font-size: 8px;
    }

    .gc-meta strong {
        font-size: 16px;
    }

    .tag {
        padding: 9px 12px;
        font-size: 9px;
    }

    .tag.one {
        right: -3px;
        top: 11%;
    }

    .tag.two {
        left: -4px;
        bottom: 16%;
    }

    .section {
        padding: 78px 0;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: .15em;
    }

    .section-head h2 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .section-head > p {
        font-size: 14px;
    }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric {
        min-height: 125px;
        padding: 22px 17px;
    }

    .metric strong {
        font-size: 35px;
    }

    .metric span {
        font-size: 9px;
        line-height: 1.4;
    }

    .featured-copy {
        padding: 32px 24px 30px;
    }

    .featured h3 {
        font-size: clamp(43px, 13vw, 62px);
    }

    .featured-copy > p {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.65;
    }

    .featured-art {
        min-height: 0;
        padding: 12px 22px 38px;
    }

    .featured-art img {
        width: 100%;
        border-radius: 21px;
        transform: rotate(2deg);
    }

    .portfolio-intro {
        display: block;
    }

    .portfolio-intro h3 {
        font-size: 40px;
    }

    .portfolio-intro p {
        margin-top: 18px;
        font-size: 14px;
    }

    .games {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .game:first-child {
        grid-column: auto;
    }

    .game-top {
        aspect-ratio: 1.12 / 1;
        padding: 25px;
    }

    .game-top img {
        width: 68%;
        height: 68%;
    }

    .game-body {
        padding: 23px;
    }

    .game-body p {
        min-height: auto;
        margin-bottom: 19px;
    }

    .studio {
        gap: 42px;
    }

    .studio h2 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .studio p {
        font-size: 15px;
    }

    .value {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .update-card {
        padding: 23px;
    }

    .contact {
        display: block;
        padding: 30px 24px;
    }

    .contact h2 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .contact .btn {
        margin-top: 25px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.6;
    }

    .footer-links {
        gap: 18px;
    }

    .mobile-menu {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 380px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero-inner {
        padding-top: 55px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-art {
        aspect-ratio: .9 / 1;
    }

    .tag {
        font-size: 8px;
        padding: 8px 10px;
    }

    .section {
        padding: 65px 0;
    }

    .section-head h2 {
        font-size: 39px;
    }

    .mobile-menu-links a {
        font-size: 21px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float-alt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 5px rgba(92,231,165,.08); }
    50% { box-shadow: 0 0 0 9px rgba(92,231,165,.18), 0 0 14px rgba(92,231,165,.1); }
}

@keyframes pulse-glow-sm {
    0%, 100% { box-shadow: 0 0 0 3px rgba(92,231,165,.06); }
    50% { box-shadow: 0 0 0 6px rgba(92,231,165,.15), 0 0 10px rgba(92,231,165,.08); }
}

@keyframes orbit-spin {
    from { transform: rotate(-20deg); }
    to { transform: rotate(340deg); }
}

@keyframes orb-breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.08); }
}

@keyframes shimmer {
    0% { background-position: -250% center; }
    100% { background-position: 250% center; }
}

@keyframes card-float {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-10px); }
}

/* ---- Scroll Reveal ---- */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
