/* =========================================================
   Portfolio stylesheet
   Light/dark themes are driven by [data-theme] on <html>,
   which is set before first paint by the script in base.html.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root,
:root[data-theme="light"] {
    --bg: #ffffff;
    --bg-alt: #f5f8fa;
    --surface: #ffffff;
    --border: #e1e8ed;
    --text: #0b1218;
    --text-muted: #55636e;
    /* Brand orange and cyan, darkened so text passes WCAG AA on white. */
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-soft: #fff1e8;
    --accent-2: #0e7490;
    --accent-2-soft: #e6f7fb;
    --on-accent: #ffffff;
    --glow-orange: rgb(255 122 26 / 0.10);
    --glow-cyan: rgb(34 211 238 / 0.10);
    --grid-dot: rgb(11 18 24 / 0.06);
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 1px 2px rgb(11 18 24 / 0.04), 0 8px 24px rgb(11 18 24 / 0.07);
    --header-bg: rgb(255 255 255 / 0.82);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #06090c;
    --bg-alt: #0a0f14;
    --surface: #0e151b;
    --border: #1c2a33;
    --text: #e8eef2;
    --text-muted: #94a3ae;
    /* Kobby Flex brand: neon orange + cyan on near-black. */
    --accent: #ff7a1a;
    --accent-hover: #ff9a4d;
    --accent-soft: rgb(255 122 26 / 0.12);
    --accent-2: #22d3ee;
    --accent-2-soft: rgb(34 211 238 / 0.10);
    --on-accent: #06090c;
    --glow-orange: rgb(255 122 26 / 0.18);
    --glow-cyan: rgb(34 211 238 / 0.16);
    --grid-dot: rgb(255 255 255 / 0.05);
    --success: #4ade80;
    --danger: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 28px rgb(0 0 0 / 0.45);
    --header-bg: rgb(6 9 12 / 0.78);
    color-scheme: dark;
}

:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-display: "Chakra Petch", "Inter", system-ui, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --container: 1120px;
    --header-h: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}
.container.narrow { max-width: 780px; }

@media (min-width: 640px) {
    .container { padding: 0 24px; }
}

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.75em 1.35em;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.5em 1em; font-size: 0.875rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgb(255 122 26 / 0.35); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.brand-name span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }

.nav-actions { display: flex; gap: 8px; }
.nav-toggle { display: none; }

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 767px) {
    .nav-toggle { display: inline-grid; }
    .nav-menu {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 16px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-menu.is-open { display: flex; }
    .nav-links { flex-direction: column; gap: 0; }
    .nav-links a { display: block; padding: 10px 4px; font-size: 1.05rem; }
}

/* ---------- Toasts ---------- */
.toasts {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 16px;
    left: 16px;
    z-index: 100;
    display: grid;
    justify-items: end;
    gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    padding: 12px 12px 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    pointer-events: auto;
    animation: toast-in 0.25s ease-out;
}
.toast p { margin: 0; font-weight: 500; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast .icon-btn { width: 32px; height: 32px; border: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 1024px) {
    .section { padding: 104px 0; }
}

.section-heading { margin-bottom: 40px; }
.eyebrow {
    margin: 0 0 0.5em;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background:
        radial-gradient(600px circle at 12% 20%, var(--glow-orange), transparent 60%),
        radial-gradient(700px circle at 90% 70%, var(--glow-cyan), transparent 60%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000 40%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
    pointer-events: none;
}
.hero-inner { position: relative; }
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
}
@media (max-width: 480px) { .hero-tags { letter-spacing: 0.14em; font-size: 0.78rem; } }
.hero-tags .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-tags .dot.cyan { background: var(--accent-2); }
.tagline {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.tagline .o { color: var(--accent); }
.tagline .c { color: var(--accent-2); }
.hero-inner {
    z-index: 1;
    display: grid;
    gap: 40px;
    align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-greeting { display: block; }
.hero-headline {
    display: block;
    margin-top: 0.35em;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

.hero-photo { justify-self: center; width: min(320px, 80%); }
.hero-photo-frame {
    padding: 3px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: -12px 12px 40px var(--glow-orange), 12px -12px 40px var(--glow-cyan);
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 27px;
    background: var(--surface);
}

.terminal {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #06090c;
    border: 1px solid #1c2a33;
    color: #d6dee4;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    box-shadow: var(--shadow);
}
.terminal p { margin: 0; }
.terminal .prompt { color: #22d3ee; }
.terminal .path { color: #ff7a1a; }
.terminal .cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    vertical-align: text-bottom;
    background: #d6dee4;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (min-width: 900px) {
    .hero { padding: 96px 0 112px; }
    .hero-inner { grid-template-columns: 1.4fr 1fr; gap: 64px; }
    .hero-photo { width: 100%; max-width: 400px; justify-self: end; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 24px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgb(22 163 74 / 0.18);
}

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; gap: 8px; }
.about-body { display: grid; gap: 32px; }
.prose { color: var(--text-muted); font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { color: var(--text); }
.prose.small { font-size: 0.95rem; }

.facts { display: grid; gap: 12px; align-content: start; }
.facts li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); overflow-wrap: anywhere; }
.facts .icon { color: var(--accent); }

@media (min-width: 900px) {
    .about { grid-template-columns: 1fr 2fr; gap: 64px; }
    .about-body { grid-template-columns: 2fr 1fr; gap: 48px; }
}

/* ---------- Tags / skills ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 500;
}
.tag-mono { font-family: var(--font-mono); font-size: 0.78rem; }

.skills-grid { display: grid; gap: 20px; }
.skills-card { padding: 24px; }
.skills-card h3 { font-size: 1rem; }
.skills-card .tags { margin-bottom: 0; }
@media (min-width: 768px) {
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Projects ---------- */
.featured-project {
    display: grid;
    gap: 24px;
    align-items: center;
    margin-bottom: 64px;
}
.featured-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-alt);
}
.featured-media img,
.project-card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.featured-media:hover img,
.project-card:hover img { transform: scale(1.03); }
.featured-body h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.featured-body h3 a { color: var(--text); }
.featured-body h3 a:hover { color: var(--accent); }
.featured-body > p:not(.eyebrow) { color: var(--text-muted); }

@media (min-width: 900px) {
    .featured-project { grid-template-columns: 1.25fr 1fr; gap: 48px; }
    .featured-project.reverse .featured-media { order: 2; }
}

.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.project-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.project-card[hidden] { display: none; }
.project-card-media { display: block; overflow: hidden; background: var(--bg-alt); }
.project-card-body { padding: 20px 22px 8px; }
.project-card-body h3 a { color: var(--text); }
.project-card-body > p:not(.eyebrow) { color: var(--text-muted); font-size: 0.95rem; }
/* Make the whole card clickable via the title link. */
.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- Experience timeline ---------- */
.experience-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .experience-grid { grid-template-columns: 1fr 1fr; } }
.timeline-title { margin-bottom: 24px; }
.timeline { border-left: 2px solid var(--border); padding-left: 24px; display: grid; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -31px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--accent-2);
    box-shadow: 0 0 10px var(--glow-cyan);
}
.timeline-date { margin: 0 0 4px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.timeline-item h4 { margin-bottom: 2px; }
.timeline-org { margin-bottom: 8px; color: var(--accent); font-weight: 500; }
.timeline-points { display: grid; gap: 4px; color: var(--text-muted); font-size: 0.95rem; }
.timeline-points li { position: relative; padding-left: 16px; }
.timeline-points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial { margin: 0; padding: 28px; display: grid; gap: 16px; align-content: space-between; }
.testimonial blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.testimonial figcaption { display: grid; gap: 2px; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; }
.contact-intro .facts { margin: 24px 0; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

.contact-form { padding: 24px; display: grid; gap: 18px; }
@media (min-width: 640px) { .contact-form { padding: 32px; } }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }
.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.has-error input,
.has-error textarea { border-color: var(--danger); }
.field-error,
.form-error { margin: 6px 0 0; color: var(--danger); font-size: 0.875rem; }
.contact-form .btn { justify-self: start; }

/* Honeypot: invisible to people, still in the DOM for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Project detail ---------- */
.project-header { padding-bottom: 40px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-weight: 500;
}
.back-link:hover { color: var(--accent); }
.project-header .lead { margin-bottom: 0; }

.project-cover {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.video {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}
.video iframe { width: 100%; height: 100%; border: 0; }

.gallery { columns: 1; column-gap: 20px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 20px; break-inside: avoid; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.gallery img { width: 100%; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { padding-top: 8px; font-size: 0.875rem; color: var(--text-muted); }

.pager {
    display: grid;
    gap: 16px;
    padding-bottom: 72px;
}
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager-link {
    display: grid;
    gap: 4px;
    padding: 20px 24px;
    color: var(--text);
    transition: border-color 0.2s ease;
}
.pager-link:hover { border-color: var(--accent); color: var(--text); }
.pager-link span { display: inline-flex; align-items: center; gap: 6px; }
.pager-next { text-align: right; justify-items: end; }

.lightbox {
    max-width: min(92vw, 1200px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    overflow: visible;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox-caption { margin: 12px 0 0; text-align: center; color: #e8eaf0; }
.lightbox-close { position: absolute; top: -48px; right: 0; }

/* ---------- Empty state / footer ---------- */
.empty-state { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.empty-state .lead { margin: 0 auto 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; background: var(--bg-alt); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand p { margin: 0; }
.motto {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.motto .o { color: var(--accent); }
.motto .c { color: var(--accent-2); }
.footer-note { color: var(--text-muted); font-size: 0.875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
