/* =========================
   VARIABLES
========================= */

:root {
    /* Main logo-inspired palette */
    --bg: #d8ddd2;
    --bg-soft: #c9d0c4;
    --card: #eef1ea;
    --card-light: #f6f3eb;

    /* Text */
    --text: #27302b;
    --muted: #5e675f;

    /* Sage / code green */
    --accent: #3f5f4f;
    --accent-soft: rgba(63, 95, 79, 0.14);
    --accent-strong: #2f493d;

    /* Warm hair accent */
    --copper: #c86f58;
    --copper-soft: rgba(200, 111, 88, 0.16);

    /* Lycoris flower accent */
    --red: #8f2f2f;
    --red-soft: rgba(143, 47, 47, 0.14);

    /* UI */
    --border: rgba(39, 48, 43, 0.14);
    --shadow: 0 18px 45px rgba(39, 48, 43, 0.18);
    --header-bg: rgba(216, 221, 210, 0.88);
    --radius: 18px;
}

body.dark-theme {
    --bg: #121815;
    --bg-soft: #1b241f;
    --card: #202b25;
    --card-light: #28352e;

    --text: #edf1e9;
    --muted: #b4beb2;

    --accent: #9fb5a6;
    --accent-soft: rgba(159, 181, 166, 0.14);
    --accent-strong: #c5d1c8;

    --copper: #d98268;
    --copper-soft: rgba(217, 130, 104, 0.16);

    --red: #b84a4a;
    --red-soft: rgba(184, 74, 74, 0.14);

    --border: rgba(237, 241, 233, 0.12);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    --header-bg: rgba(18, 24, 21, 0.88);
}


/* =========================
   GLOBAL RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    position: relative;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, var(--copper-soft), transparent 28%),
        radial-gradient(circle at 88% 10%, var(--accent-soft), transparent 24%),
        radial-gradient(circle at 50% 92%, var(--red-soft), transparent 26%);
}

header,
main,
footer {
    position: relative;
    z-index: 2;
}

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

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


/* =========================
   HEADER / NAVBAR
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

nav {
    max-width: 1150px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo::after {
    content: ".";
    color: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.theme-toggle {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--copper);
    color: var(--copper);
}


/* =========================
   SHARED LAYOUT
========================= */

main {
    max-width: 1150px;
    margin: 0 auto;
    padding: 56px 22px;
}

section {
    margin-bottom: 90px;
}

section h2 {
    margin: 0 0 28px;
    color: var(--text);
    font-size: 2rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 0;
}

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

.eyebrow {
    display: inline-block;
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #07100b;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-soft);
}

.disabled-link {
    pointer-events: none;
    opacity: 0.65;
}


/* =========================
   HERO / PAGE HERO
========================= */

.hero {
    min-height: 78vh;
    padding: 70px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 44px;
}

.hero-content {
    max-width: 850px;
}

.hero h1,
.page-hero h1 {
    max-width: 850px;
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-hero {
    padding: 70px 0 40px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.hero-text {
    max-width: 720px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: linear-gradient(180deg, var(--card-light), var(--card));
    box-shadow: var(--shadow);
}

.hero-avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--accent-soft);
}

.hero-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card h2 {
    margin: 0 0 12px;
    font-size: 1.7rem;
}

.hero-card p {
    margin: 0;
    color: var(--muted);
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-card-tags span {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.hero-stats div {
    min-width: 135px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.hero-stats strong {
    display: block;
    color: var(--copper);
    font-size: 1.45rem;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-current {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-soft);
}

.hero-current span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-current strong {
    color: var(--text);
}


/* =========================
   HOME PAGE
========================= */

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.focus-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.focus-card h3 {
    margin: 0 0 10px;
    color: var(--accent);
}

.focus-card p {
    margin: 0;
    color: var(--muted);
}

.contact {
    padding: 46px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.04));
    text-align: center;
}

.contact p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}


/* =========================
   PROJECT CARDS
========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    min-height: 270px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card-light), var(--card));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--copper);
}

.project-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.project-type {
    display: inline-block;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-progress {
    border: 1px solid rgba(200, 111, 88, 0.35);
    background: var(--copper-soft);
    color: var(--copper);
}

.status-complete {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--border);
}

.status-planned {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
}

.project-card h3 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.project-card p {
    margin: 0;
    color: var(--muted);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.project-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* =========================
   PROJECTS PAGE
========================= */


.projects-hero {
    max-width: 900px;
}

.project-overview {
    max-width: 900px;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
}

.project-overview h2 {
    margin-bottom: 14px;
}

.project-overview p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
}


.project-list {
    display: grid;
    gap: 30px;
}

.project-feature {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    gap: 28px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--card-light), var(--card));
    box-shadow: var(--shadow);
}

@media (min-width: 851px) {
    .project-feature:nth-child(even) .project-preview {
        order: 2;
    }
}

.project-preview {
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 20%, var(--copper-soft), transparent 30%),
        radial-gradient(circle at 80% 80%, var(--red-soft), transparent 30%),
        var(--bg-soft);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-preview.brand-preview {
    padding: 28px;
    background:
        radial-gradient(circle at 18% 22%, var(--copper-soft), transparent 28%),
        radial-gradient(circle at 82% 78%, var(--red-soft), transparent 28%),
        var(--card-light);
}

.project-preview.brand-preview img {
    width: min(86%, 620px);
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.project-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 6px;
}

.project-feature-content h3 {
    margin: 0 0 14px;
    font-size: 1.65rem;
}

.project-feature-content p {
    color: var(--muted);
}

.project-notes {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.project-notes p {
    margin: 0;
    color: var(--muted);
}

.project-notes strong {
    color: var(--text);
}


/* =========================
   ABOUT PAGE
========================= */

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: 40px;
}

.about-profile-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--card-light), var(--card));
    box-shadow: var(--shadow);
}

.about-profile-card img {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 26px;
    object-fit: cover;
}

.about-profile-card h2 {
    margin: 0 0 8px;
}

.about-profile-card p {
    margin: 0;
    color: var(--muted);
}

.about-story {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    padding: 54px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.story-label span {
    display: block;
    color: var(--copper);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.story-label p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-content h2 {
    max-width: 760px;
    margin-top: 0;
}

.story-content p {
    max-width: 850px;
    color: var(--muted);
    font-size: 1.05rem;
}

.learning-timeline {
    max-width: 900px;
}

.timeline {
    display: grid;
    gap: 0;
    margin-top: 30px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 0 34px 32px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -8px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--copper);
    border-radius: 50%;
    background: var(--card);
}

.timeline-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 900;
}

.timeline-item p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.studio-principles {
    max-width: 950px;
}

.principles-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.principles-list div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.principles-list div:last-child {
    border-bottom: none;
}

.principles-list strong {
    color: var(--accent);
    font-size: 1.05rem;
}

.principles-list p {
    margin: 0;
    color: var(--muted);
}

.toolbox {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 34px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
}

.toolbox h2 {
    margin-bottom: 0;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-tags span {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

.about-direction {
    max-width: 900px;
    padding: 44px 0;
}

.about-direction p {
    max-width: 850px;
    color: var(--muted);
    font-size: 1.05rem;
}


/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
    max-width: 900px;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    align-items: stretch;
    gap: 28px;
}

.contact-main,
.contact-side {
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-main {
    padding: 36px;
    background: linear-gradient(180deg, var(--card-light), var(--card));
}

.contact-side {
    padding: 28px;
    background: var(--bg-soft);
}

.contact-main h2,
.contact-side h3 {
    margin-top: 0;
}

.contact-main p,
.contact-side p,
.contact-note p {
    color: var(--muted);
}

.contact-main p {
    max-width: 760px;
}

.contact-side h3 {
    margin-bottom: 12px;
    color: var(--accent);
}

.contact-note {
    max-width: 850px;
    padding-top: 42px;
    border-top: 1px solid var(--border);
}

.contact-note p {
    font-size: 1.05rem;
}

.contact-list {
    display: grid;
    gap: 0;
    margin-top: 28px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: var(--accent);
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: var(--muted);
}

.contact-mini-note {
    margin-top: 26px;
    padding: 18px 18px 18px 20px;
    border: 1px solid rgba(200, 111, 88, 0.35);
    border-left: 4px solid var(--copper);
    border-radius: 18px;
    background:
        linear-gradient(135deg, var(--copper-soft), rgba(255, 255, 255, 0.03)),
        var(--card);
}

.contact-mini-note strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--copper);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-mini-note strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 14px var(--red-soft);
}

.contact-mini-note p {
    margin: 0;
    color: var(--text);
}

.contact-email-item {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: flex-start;
}

.contact-item-content {
    min-width: 0;
}

.contact-email-text {
    margin-top: 12px;
    color: var(--accent-strong);
    font-weight: 800;
    word-break: break-word;
}

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

.copy-email-button {
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.copy-toast {
    display: inline-flex;
    width: fit-content;
    margin-top: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(200, 111, 88, 0.45);
    border-radius: 999px;
    background: var(--copper-soft);
    color: var(--copper);
    box-shadow: 0 8px 22px rgba(200, 111, 88, 0.16);
    font-size: 0.85rem;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 28px 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}


/* =========================
   DECORATIVE FLOWERS
========================= */

/*
   Decorative flower assets currently used:

   - lily-double.png  = grouped stemless Lycoris
   - lily-single.png  = single stemless Lycoris
   - lily-corner.png  = corner-style Lycoris arrangement
*/

:root {
    --decor-flower-opacity: 0.10;
    --decor-flower-filter: blur(5px) brightness(1.12) saturate(1);
}

body.dark-theme {
    --decor-flower-opacity: 0.12;
    --decor-flower-filter: blur(5px) brightness(1.14) saturate(1.05);
}

/* Prevent decorative flowers from creating horizontal scroll */
body {
    overflow-x: hidden;
}

/* Base decorative flower style */
.page-decor {
    position: fixed;
    pointer-events: none;
    z-index: 1;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: var(--decor-flower-opacity);
    filter: var(--decor-flower-filter);
}

/* Keep real content above decorations */
header,
main,
footer {
    position: relative;
    z-index: 2;
}

/* =========================
   HOME PAGE FLOWERS
========================= */

/* Bottom-left grouped Lycoris */
.home-page .decor-corner {
    width: 700px;
    height: 700px;

    left: -170px;
    bottom: -170px;

    background-image: url("images/decor/lily-double.png");

    transform: rotate(-7deg);
    transform-origin: bottom left;
}

/* Right-side single Lycoris */
.home-page .decor-single {
    width: 760px;
    height: 760px;

    right: -300px;
    top: 130px;

    background-image: url("images/decor/lily-single.png");

    transform: rotate(13deg);
    transform-origin: center right;
}

/* =========================
   PROJECTS PAGE FLOWER
========================= */

/* Use the third image here so all 3 flower assets are actually used */
.projects-page .decor-projects {
    width: 650px;
    height: 650px;

    left: -170px;
    top: 180px;

    background-image: url("images/decor/lily-corner.png");

    transform: rotate(-10deg);
    transform-origin: left center;
}

/* =========================
   ABOUT PAGE FLOWER
========================= */

.about-page .decor-about {
    width: 660px;
    height: 660px;

    left: -180px;
    bottom: -165px;

    background-image: url("images/decor/lily-double.png");

    transform: rotate(-8deg);
    transform-origin: bottom left;
}

/* =========================
   CONTACT PAGE FLOWER
========================= */

.contact-page .decor-contact {
    width: 690px;
    height: 690px;

    right: -280px;
    top: 150px;

    background-image: url("images/decor/lily-single.png");

    transform: rotate(12deg);
    transform-origin: center right;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {
    nav,
    .nav-actions {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    main {
        padding: 36px 18px;
    }

    section {
        margin-bottom: 64px;
    }

    .hero {
        min-height: auto;
        padding: 56px 0 40px;
        align-items: center;
        text-align: center;
    }

    .hero-split,
    .about-hero,
    .focus-grid,
    .project-grid,
    .project-feature,
    .about-story,
    .toolbox,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .about-profile-card {
        width: 100%;
        max-width: 420px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-hero {
        text-align: center;
    }

    .about-profile-card {
        margin: 0 auto;
    }

    .about-story {
        gap: 20px;
    }

    .timeline {
        margin-left: 6px;
    }

        .principles-list div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .toolbox,
    .contact-main,
    .contact-side {
        padding: 26px 22px;
    }

        .contact-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-item .project-link {
        width: fit-content;
    }

    .project-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-card {
        min-height: auto;
    }

    .project-preview {
        min-height: 220px;
    }

    /* Shared mobile decorative flower softness */
    .page-decor {
        opacity: 0.08;
        filter: blur(5px) brightness(1.12) saturate(1);
    }

    body.dark-theme .page-decor {
        opacity: 0.10;
        filter: blur(5px) brightness(1.14) saturate(1.05);
    }

    /* HOME */
    .home-page .decor-corner {
        width: 430px;
        height: 430px;

        left: -120px;
        bottom: -120px;
    }

    .home-page .decor-single {
        width: 420px;
        height: 420px;

        right: -170px;
        top: 125px;
    }

    /* PROJECTS */
    .projects-page .decor-projects {
        width: 360px;
        height: 360px;

        left: -110px;
        top: 145px;
    }

        .project-overview {
        padding: 26px 22px;
        text-align: center;
    }

    /* ABOUT */
    .about-page .decor-about {
        width: 380px;
        height: 380px;

        left: -120px;
        bottom: -95px;
    }


    /* CONTACT */
    .contact-page .decor-contact {
        width: 360px;
        height: 360px;

        right: -150px;
        top: 135px;
    }

    .section-heading {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-stats div {
        flex: 1 1 140px;
    }

}   

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .btn,
    .hero-buttons {
        width: 100%;
    }


    .hero-stats {
        width: 100%;
    }

    .hero-stats div {
        width: 100%;
    }
    
}
