/* ==========================================================================
   Aikasy - indie game studio of Kaan & Andy
   One stylesheet. Dark cosmic base, IndieBunny red + Isekai gold accents.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
    font-family: 'Clash Display';
    src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Clash Display';
    src: url('../fonts/ClashDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Variable-latin.woff2') format('woff2');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
    --bg: #0c0f1d;
    --bg-deep: #080a14;
    --bg-raised: #141a2e;
    --bg-raised-2: #1a2138;
    --ink: #eef0f8;
    --ink-muted: #a3abc4;
    --ink-faint: #6b7494;
    --line: rgba(238, 240, 248, 0.12);
    --line-soft: rgba(238, 240, 248, 0.07);

    --red: #bb2d2b;            /* IndieBunny brand red (sampled from logo) */
    --red-bright: #e5605c;     /* readable-on-dark variant */
    --gold: #f0b429;           /* Isekai celestial gold */
    --gold-soft: #ffd97a;

    --font-display: 'Clash Display', 'DM Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    --text-sm: 0.875rem;
    --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    --text-xl: clamp(1.4rem, 1.2rem + 1vw, 2rem);
    --text-2xl: clamp(1.8rem, 1.4rem + 2vw, 3rem);
    --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5.25rem);

    --space-2: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
    --space-3: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
    --space-4: clamp(2rem, 1.6rem + 2vw, 3.5rem);
    --space-5: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

    --radius: 14px;
    --radius-lg: 24px;
    --container: 72rem;
    --header-h: 4.5rem;
}

/* ---------- Reset & base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 55% 38% at 12% -4%, rgba(240, 180, 41, 0.10), transparent 65%),
        radial-gradient(ellipse 45% 34% at 92% 12%, rgba(187, 45, 43, 0.12), transparent 65%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(38, 52, 105, 0.45), transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Starfield + grain live on a fixed pseudo-layer so they never repaint on scroll */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 22px 34px, rgba(238, 240, 248, 0.55), transparent 100%),
        radial-gradient(1px 1px at 187px 121px, rgba(238, 240, 248, 0.35), transparent 100%),
        radial-gradient(1.5px 1.5px at 311px 58px, rgba(255, 217, 122, 0.5), transparent 100%),
        radial-gradient(1px 1px at 98px 233px, rgba(238, 240, 248, 0.3), transparent 100%),
        radial-gradient(1px 1px at 260px 190px, rgba(229, 96, 92, 0.35), transparent 100%),
        radial-gradient(1.5px 1.5px at 143px 292px, rgba(238, 240, 248, 0.4), transparent 100%);
    background-size: 340px 340px;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
    color: var(--gold-soft);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--gold);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

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

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Utilities ---------- */

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--gold);
    color: var(--bg-deep);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
    top: 0;
    color: var(--bg-deep);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(12, 15, 29, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    height: 2rem;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    list-style: none;
    padding: 0;
}

.site-nav a {
    font-size: var(--text-sm);
    font-weight: 550;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.site-nav .nav-cta {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold-soft);
}

.site-nav .nav-cta:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-bottom-color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 650;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #1d1503;
}

.btn--gold:hover {
    box-shadow: 0 8px 28px rgba(240, 180, 41, 0.35);
    color: #1d1503;
}

.btn--red {
    background: linear-gradient(135deg, #d84340, var(--red));
    color: #fff;
}

.btn--red:hover {
    box-shadow: 0 8px 28px rgba(187, 45, 43, 0.4);
    color: #fff;
}

.btn--ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--ink-muted);
    background: rgba(238, 240, 248, 0.05);
    color: var(--ink);
}

/* ---------- Sections ---------- */

.section {
    padding-block: var(--space-5);
    position: relative;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.section-kicker::before {
    content: '✦';
    color: var(--gold-soft);
}

.section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    max-width: 28ch;
}

.section-lead {
    color: var(--ink-muted);
    font-size: var(--text-lg);
    max-width: 56ch;
    margin-bottom: var(--space-4);
}

/* ---------- Hero ---------- */

.hero {
    padding-block: var(--space-5) var(--space-5);
    min-height: calc(88vh - var(--header-h));
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    margin-bottom: var(--space-3);
    background: rgba(20, 26, 46, 0.5);
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
    font-size: var(--text-hero);
    letter-spacing: -0.025em;
    max-width: 14ch;
    margin-bottom: var(--space-3);
}

.hero h1 .shine {
    background: linear-gradient(100deg, var(--gold-soft) 10%, var(--gold) 45%, #ff9d5c 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: var(--text-lg);
    color: var(--ink-muted);
    max-width: 52ch;
    margin-bottom: var(--space-4);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-deco {
    position: absolute;
    font-size: 1.4rem;
    color: var(--gold-soft);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.hero-deco--1 { top: -6%; right: 14%; font-size: 2rem; }
.hero-deco--2 { top: 38%; right: 4%; color: var(--red-bright); }
.hero-deco--3 { bottom: 2%; right: 28%; font-size: 1rem; }

/* Staggered hero entrance */
.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-actions {
    animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.22s; }
.hero-actions { animation-delay: 0.34s; }

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-deco {
    animation: twinkle 3.5s ease-in-out infinite;
}

.hero-deco--2 { animation-delay: 1.2s; }
.hero-deco--3 { animation-delay: 2.1s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 0.85; transform: scale(1.1); }
}

/* ---------- Scroll reveals ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }

/* ---------- Cards ---------- */

.card {
    background: linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px) rotate(-0.4deg);
    border-color: var(--line);
    box-shadow: 0 18px 48px rgba(8, 10, 20, 0.55);
}

/* ---------- Devs ---------- */

.devs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--space-3);
}

.dev-card .monogram {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-3);
    color: var(--bg-deep);
}

.dev-card:nth-child(odd) .monogram {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 0 32px rgba(240, 180, 41, 0.25);
}

.dev-card:nth-child(even) .monogram {
    background: linear-gradient(135deg, var(--red-bright), var(--red));
    color: #fff;
    box-shadow: 0 0 32px rgba(187, 45, 43, 0.3);
}

.dev-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.35rem;
}

.dev-card .dev-role {
    font-size: var(--text-sm);
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-2);
}

.dev-card:nth-child(even) .dev-role {
    color: var(--red-bright);
}

.dev-card p {
    color: var(--ink-muted);
}

/* ---------- Project panels ---------- */

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    padding: var(--space-4);
    overflow: hidden;
    position: relative;
}

.project + .project {
    margin-top: var(--space-4);
}

.project--indiebunny {
    background:
        radial-gradient(ellipse 70% 90% at 85% 20%, rgba(187, 45, 43, 0.22), transparent 70%),
        linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
}

.project--isekai {
    background:
        radial-gradient(ellipse 70% 90% at 85% 20%, rgba(240, 180, 41, 0.16), transparent 70%),
        linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
}

.project-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: var(--space-2);
}

.project--indiebunny .project-tag {
    color: var(--red-bright);
    border: 1px solid rgba(229, 96, 92, 0.4);
}

.project--isekai .project-tag {
    color: var(--gold);
    border: 1px solid rgba(240, 180, 41, 0.4);
}

.project h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.project p {
    color: var(--ink-muted);
    margin-bottom: var(--space-3);
    max-width: 48ch;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.project-visual {
    display: grid;
    place-items: center;
    padding: var(--space-3);
    min-height: 14rem;
    border-radius: var(--radius);
    position: relative;
}

.project--indiebunny .project-visual {
    background:
        radial-gradient(ellipse at center, rgba(187, 45, 43, 0.35), transparent 70%);
}

.project--isekai .project-visual {
    background:
        radial-gradient(ellipse at center, rgba(240, 180, 41, 0.18), transparent 70%);
}

.project-visual img {
    max-width: min(100%, 22rem);
    filter: drop-shadow(0 12px 32px rgba(8, 10, 20, 0.6));
    transition: transform 0.3s ease;
}

.project:hover .project-visual img {
    transform: translateY(-6px) scale(1.02);
}

.external-hint::after {
    content: ' ↗';
    font-weight: 400;
}

/* ---------- Community / YouTube ---------- */

.community-card {
    text-align: center;
    padding: var(--space-5) var(--space-4);
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(187, 45, 43, 0.16), transparent 70%),
        linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
}

.community-card .play-badge {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto var(--space-3);
    border-radius: 26%;
    background: linear-gradient(135deg, #d84340, var(--red));
    box-shadow: 0 0 40px rgba(187, 45, 43, 0.45);
}

.community-card .play-badge::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.65rem 0 0.65rem 1.1rem;
    border-color: transparent transparent transparent #fff;
    margin-left: 0.2rem;
}

.community-card h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.community-card p {
    color: var(--ink-muted);
    max-width: 52ch;
    margin: 0 auto var(--space-3);
}

/* ---------- Philosophy ---------- */

.tenets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: var(--space-3);
    counter-reset: tenet;
}

.tenet {
    position: relative;
    padding: var(--space-3);
    border-top: 1px solid var(--line);
}

.tenet::before {
    counter-increment: tenet;
    content: '0' counter(tenet);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--gold);
    letter-spacing: 0.1em;
}

.tenet h3 {
    font-size: var(--text-xl);
    margin: 0.6rem 0;
}

.tenet p {
    color: var(--ink-muted);
}

/* ---------- Forms ---------- */

.form-panel {
    background: linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.form label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 650;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font: inherit;
    color: var(--ink);
    background: rgba(8, 10, 20, 0.55);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--ink-faint);
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}

.form-row {
    margin-bottom: var(--space-3);
}

.form-tip {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    margin-top: var(--space-2);
}

.form-tip a {
    color: var(--ink-muted);
}

.form-status {
    margin-top: var(--space-2);
    font-weight: 550;
    min-height: 1.5em;
}

.form-status--ok { color: #7fd88f; }
.form-status--err { color: var(--red-bright); }
.form-status--busy { color: var(--gold-soft); }

.newsletter-form .newsletter-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1 1 16rem;
}

/* Honeypot - off-screen, not display:none-suspicious to naive bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 2fr) 3fr;
    gap: var(--space-4);
    align-items: start;
}

.contact-meta h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.contact-meta p {
    color: var(--ink-muted);
    margin-bottom: var(--space-2);
    max-width: 40ch;
}

.contact-meta .contact-mail {
    font-family: var(--font-display);
    font-size: var(--text-lg);
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: var(--space-5);
    border-top: 1px solid var(--line-soft);
    background: rgba(8, 10, 20, 0.6);
    padding-block: var(--space-4) var(--space-3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-brand img {
    height: 1.8rem;
    width: auto;
    margin-bottom: var(--space-2);
}

.footer-brand p {
    color: var(--ink-faint);
    font-size: var(--text-sm);
    max-width: 34ch;
}

.site-footer h4 {
    font-size: var(--text-sm);
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--space-2);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.site-footer ul a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: var(--text-sm);
}

.site-footer ul a:hover {
    color: var(--gold-soft);
}

.footer-legal {
    border-top: 1px solid var(--line-soft);
    padding-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: var(--text-sm);
    color: var(--ink-faint);
}

/* ---------- Legal pages (.prose) ---------- */

.page-hero {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
    font-size: var(--text-2xl);
}

.prose {
    max-width: 46rem;
    padding-block: var(--space-4) var(--space-5);
}

.prose h2 {
    font-size: var(--text-xl);
    margin: var(--space-4) 0 var(--space-2);
}

.prose h3 {
    font-size: var(--text-lg);
    margin: var(--space-3) 0 var(--space-2);
}

.prose p,
.prose ul,
.prose ol {
    margin-bottom: var(--space-2);
    color: var(--ink-muted);
}

.prose ul,
.prose ol {
    padding-left: 1.4rem;
}

.prose strong {
    color: var(--ink);
}

.prose a {
    overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
    .project {
        grid-template-columns: 1fr;
    }

    .project-visual {
        order: -1;
        min-height: 10rem;
    }

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

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

@media (max-width: 44rem) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(8, 10, 20, 0.97);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
    }

    .site-nav li {
        border-top: 1px solid var(--line-soft);
    }

    .site-nav a {
        display: block;
        padding: 0.9rem 1.5rem;
        border-bottom: none;
    }

    .site-nav .nav-cta {
        border: none;
        border-radius: 0;
        color: var(--gold);
    }

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

    .hero {
        min-height: 0;
    }

    .hero-deco--1 { display: none; }
}

/* ---------- Reduced motion ---------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
