/* ============================================================
   Sheep Move Ahead — Stylesheet
   Theme: Sunny pasture + claymorphism + pill-game layout
   Fonts: Fredoka (headings) + Nunito (body)
   Unique layout: orbit hero, asymmetric pill grid, pasture dock
   ============================================================ */

:root {
    /* Pasture palette (from game screenshots) */
    --sky-top: #6EC6E8;
    --sky-mid: #A8DCF0;
    --sky-bottom: #E8F6FC;
    --hill-back: #5DBB63;
    --hill-mid: #4CAF50;
    --hill-front: #3D9A46;
    --clay-border: #7D5A3A;
    --clay-border-light: #A07850;
    --clay-cream: #F5F0E8;
    --clay-white: #FFFFFF;
    --lavender: #C8B8E8;
    --lavender-deep: #9B8EC4;
    --orange-cta: #FF9F43;
    --orange-cta-hover: #F08C2A;
    --yellow-accent: #FFD166;
    --text-dark: #3D2E1F;
    --text-muted: #5C4A38;
    --text-light: #FFFFFF;

    /* Claymorphism shadows */
    --shadow-clay: 4px 4px 0 var(--clay-border),
                   0 8px 24px rgba(125, 90, 58, 0.12);
    --shadow-clay-hover: 6px 6px 0 var(--clay-border),
                         0 12px 32px rgba(125, 90, 58, 0.18);
    --shadow-inset: inset -2px -2px 8px rgba(125, 90, 58, 0.08),
                    inset 2px 2px 6px rgba(255, 255, 255, 0.9);

    --radius-clay: 22px;
    --radius-pill: 999px;
    --nav-height: 76px;
    --transition: 220ms ease-out;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--sky-bottom);
    overflow-x: hidden;
    line-height: 1.65;
}

main {
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Pasture background scene (hero only) --- */
.pasture-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pasture-scene * {
    pointer-events: none;
}

.sky-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 75%);
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    filter: blur(1px);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-a {
    width: 100px;
    height: 40px;
    top: 12%;
    left: 8%;
    animation: drift 28s ease-in-out infinite;
}

.cloud-a::before { width: 50px; height: 50px; top: -22px; left: 12px; }
.cloud-a::after { width: 60px; height: 45px; top: -18px; right: 8px; }

.cloud-b {
    width: 130px;
    height: 48px;
    top: 18%;
    right: 12%;
    animation: drift 34s ease-in-out infinite reverse;
}

.cloud-b::before { width: 60px; height: 55px; top: -28px; left: 20px; }
.cloud-b::after { width: 70px; height: 50px; top: -20px; right: 15px; }

.cloud-c {
    width: 80px;
    height: 32px;
    top: 8%;
    left: 45%;
    opacity: 0.7;
    animation: drift 22s ease-in-out infinite 5s;
}

.cloud-c::before { width: 40px; height: 40px; top: -18px; left: 10px; }
.cloud-c::after { width: 45px; height: 35px; top: -14px; right: 10px; }

.hill {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    border-radius: 50% 50% 0 0;
}

.hill-back {
    height: 38vh;
    background: var(--hill-back);
    opacity: 0.55;
    transform: translateY(8%);
}

.hill-mid {
    height: 30vh;
    background: var(--hill-mid);
    opacity: 0.75;
    transform: translateY(12%);
}

.hill-front {
    height: 22vh;
    background: var(--hill-front);
    transform: translateY(18%);
}

@keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* Compass dot grid — decorative motif inside hero */
.compass-dots {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%) rotate(12deg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.compass-dots * {
    pointer-events: none;
}

.compass-dots span {
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: var(--clay-white);
    border: 2px solid var(--clay-border);
}

/* --- Floating pill navbar --- */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(920px, calc(100% - 2rem));
    transition: top var(--transition), width var(--transition);
}

.navbar.scrolled {
    top: 0.6rem;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0.55rem 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid var(--clay-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-clay);
    backdrop-filter: blur(8px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    white-space: nowrap;
    transition: opacity var(--transition);
}

.nav-brand:hover { opacity: 0.8; }

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid var(--clay-border);
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    display: block;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
    background: var(--clay-cream);
    color: var(--text-dark);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--clay-border);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Clay buttons --- */
.btn-clay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 3px solid var(--clay-border);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}

.btn-clay svg { width: 18px; height: 18px; }

.btn-clay-primary {
    background: var(--orange-cta);
    color: var(--text-light);
    box-shadow: var(--shadow-clay);
}

.btn-clay-primary:hover {
    background: var(--orange-cta-hover);
    box-shadow: var(--shadow-clay-hover);
    transform: translateY(-2px);
}

.btn-clay-secondary {
    background: var(--clay-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-clay);
}

.btn-clay-secondary:hover {
    background: var(--clay-cream);
    box-shadow: var(--shadow-clay-hover);
    transform: translateY(-2px);
}

.btn-clay-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-clay:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 0 var(--clay-border);
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: min(1100px, 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: var(--lavender);
    border: 2px solid var(--lavender-deep);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    color: #4A3D6B;
    margin-bottom: 1rem;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-accent {
    color: var(--hill-front);
    display: inline-block;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Orbit ring around phone */
.hero-orbit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.orbit-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 3px dashed rgba(125, 90, 58, 0.25);
    border-radius: 50%;
    animation: orbit-spin 60s linear infinite;
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.orbit-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 64px;
    height: 64px;
    background: var(--clay-white);
    border: 3px solid var(--clay-border);
    border-radius: 50%;
    box-shadow: var(--shadow-clay);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: orbit-counter 60s linear infinite;
}

.orbit-node svg { width: 22px; height: 22px; color: var(--hill-front); }
.orbit-node em { font-style: normal; }

.orbit-node:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-clay-hover);
}

.orbit-n1 { top: -32px; left: 50%; margin-left: -32px; }
.orbit-n2 { right: -32px; top: 50%; margin-top: -32px; }
.orbit-n3 { bottom: -32px; left: 50%; margin-left: -32px; }
.orbit-n4 { left: -32px; top: 50%; margin-top: -32px; }

@keyframes orbit-counter {
    to { transform: rotate(-360deg); }
}

.phone-clay {
    position: relative;
    width: 260px;
    padding: 12px;
    background: var(--clay-white);
    border: 4px solid var(--clay-border);
    border-radius: 36px;
    box-shadow: var(--shadow-clay), var(--shadow-inset);
    z-index: 2;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: var(--clay-border);
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    border-radius: 26px;
    border: 2px solid var(--clay-border-light);
    object-fit: cover;
    aspect-ratio: 9 / 19;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--clay-border);
    border-radius: 50%;
    color: var(--clay-border);
    animation: bounce-hint 2s ease-in-out infinite;
    transition: background var(--transition);
}

.scroll-hint:hover { background: var(--clay-white); }
.scroll-hint svg { width: 22px; height: 22px; }

@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section shared --- */
.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--lavender);
    border: 2px solid var(--lavender-deep);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #4A3D6B;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-head-light h2 { color: var(--text-light); }
.section-tag-light {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-light);
}

/* --- Games: asymmetric pill grid --- */
.games-section {
    padding: 5rem 1.5rem 6rem;
    position: relative;
}

.pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.game-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 3px solid var(--clay-border);
    border-radius: 40px;
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-clay);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.game-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-clay-hover);
}

.pill-tall {
    grid-row: span 2;
    border-radius: 48px;
    padding-top: 2rem;
}

.pill-wide {
    grid-column: span 3;
    border-radius: 32px;
    padding: 1.5rem 2rem;
}

.pill-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.pill-row-text {
    flex: 1;
    text-align: left;
}

.pill-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--clay-border);
    margin-bottom: 0.75rem;
}

.pill-icon svg { width: 24px; height: 24px; }

.pill-icon-compass { background: #FFE8CC; color: #E67E22; }
.pill-icon-path { background: #D4EDDA; color: #27AE60; }
.pill-icon-sky { background: #D6EAF8; color: #3498DB; }
.pill-icon-sort { background: var(--lavender); color: var(--lavender-deep); }

.game-pill h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-pill p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.pill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    list-style: none;
    margin-bottom: 1rem;
}

.pill-tags li {
    padding: 0.2rem 0.65rem;
    background: var(--clay-cream);
    border: 2px solid var(--clay-border-light);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pill-shot {
    width: 100%;
    max-width: 180px;
    border-radius: 20px;
    border: 2px solid var(--clay-border-light);
    margin-top: auto;
    object-fit: cover;
    aspect-ratio: 9 / 16;
}

.pill-shot-wide {
    width: 280px;
    flex-shrink: 0;
    border-radius: 20px;
    border: 2px solid var(--clay-border-light);
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* --- Features on green hill --- */
.features-section {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    background: var(--hill-front);
}

.hill-curve {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--hill-front);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.feature-clay-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1060px;
    margin: 0 auto;
}

.clay-card {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--clay-border);
    border-radius: var(--radius-clay);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-clay);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.clay-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-clay-hover);
}

.clay-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow-accent);
    border: 3px solid var(--clay-border);
    border-radius: 16px;
    box-shadow: var(--shadow-inset);
}

.clay-icon svg { width: 24px; height: 24px; color: var(--text-dark); }

.clay-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.clay-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Feature showcase (Barn & Quests) --- */
.showcase-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 2.5rem auto 0;
    padding: 0 1rem;
}

.showcase-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.showcase-img {
    width: 100%;
    border-radius: 24px;
    border: 3px solid var(--clay-border);
    box-shadow: var(--shadow-clay);
    object-fit: cover;
    aspect-ratio: 9 / 16;
}

.showcase-card figcaption {
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Download dock --- */
.download-section {
    padding: 4rem 1.5rem 6rem;
    display: flex;
    justify-content: center;
}

.download-dock {
    width: min(680px, 100%);
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.93);
    border: 4px solid var(--clay-border);
    border-radius: 36px;
    box-shadow: var(--shadow-clay);
    position: relative;
}

.dock-sheep {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 54px;
    background: var(--clay-white);
    border: 3px solid var(--clay-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-clay);
}

.sheep-svg { width: 56px; height: 42px; }

.download-dock h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin: 0.5rem 0 0.5rem;
}

.download-dock p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.dock-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 10;
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 1.5rem;
    isolation: isolate;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-links a,
.footer-link {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    pointer-events: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-link:hover {
    color: var(--yellow-accent);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Modal --- */
.modal-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(61, 46, 31, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-clay {
    position: relative;
    width: min(400px, 100%);
    padding: 2rem 1.75rem;
    background: var(--clay-white);
    border: 4px solid var(--clay-border);
    border-radius: 28px;
    box-shadow: var(--shadow-clay);
    text-align: center;
    transform: scale(0.92) translateY(12px);
    transition: transform 250ms ease;
}

.modal-overlay.visible .modal-clay {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--clay-border);
    background: var(--clay-cream);
    transition: background var(--transition);
}

.modal-close:hover { background: var(--lavender); }
.modal-close svg { width: 18px; height: 18px; }

.modal-sheep { margin-bottom: 0.5rem; }

.modal-clay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-clay p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-orbit { min-height: 380px; }

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

    .pill-tall { grid-row: span 1; }
    .pill-wide { grid-column: span 2; }

    .pill-row {
        flex-direction: column;
        text-align: center;
    }

    .pill-row-text { text-align: center; }

    .feature-clay-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compass-dots { display: none; }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-pill > .btn-clay-sm {
        display: none;
    }

    .nav-burger { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: var(--clay-white);
        border: 3px solid var(--clay-border);
        border-radius: var(--radius-clay);
        padding: 0.75rem;
        box-shadow: var(--shadow-clay);
    }

    .nav-links.open a {
        padding: 0.65rem 1rem;
        border-radius: 12px;
    }

    .orbit-ring { width: 280px; height: 280px; }
    .orbit-node { width: 52px; height: 52px; }
    .orbit-node svg { width: 18px; height: 18px; }
    .orbit-n1 { top: -26px; margin-left: -26px; }
    .orbit-n2 { right: -26px; margin-top: -26px; }
    .orbit-n3 { bottom: -26px; margin-left: -26px; }
    .orbit-n4 { left: -26px; margin-top: -26px; }

    .phone-clay { width: 220px; }

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

    .pill-wide { grid-column: span 1; }

    .pill-shot-wide { width: 100%; max-width: 280px; }

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

@media (max-width: 375px) {
    .hero-title { font-size: 2rem; }
    .btn-clay { padding: 0.65rem 1.1rem; font-size: 0.88rem; }
    .dock-buttons { flex-direction: column; }
    .dock-buttons .btn-clay { width: 100%; }
}

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

    .cloud-a, .cloud-b, .cloud-c,
    .orbit-ring, .orbit-node,
    .scroll-hint {
        animation: none;
    }

    .btn-clay:hover,
    .game-pill:hover,
    .clay-card:hover,
    .orbit-node:hover {
        transform: none;
    }
}
