@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-Variable.ttf") format("truetype-variations");
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}

:root {
    --canvas: #fffefb;
    --surface: #ffffff;
    --cream: #fff9d8;
    --cream-soft: #fffdf0;
    --ink: #20192a;
    --muted: #6f6878;
    --primary: #70479c;
    --primary-dark: #4c2d70;
    --primary-soft: #e8dff2;
    --yellow: #f6d94d;
    --border: #e9e2ed;
    --focus: #1f6feb;
    --shadow-sm: 0 12px 32px rgba(62, 41, 82, .08);
    --shadow-lg: 0 28px 70px rgba(62, 41, 82, .14);
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 36px;
    --container: 1160px;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 86px; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 44%, rgba(112, 71, 156, .12), transparent 32%),
        var(--canvas);
    opacity: 1;
    visibility: visible;
    transition: opacity .22s ease, visibility .22s ease;
}

.has-js .page-loader { display: grid; }

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    width: min(260px, 72vw);
    display: grid;
    justify-items: center;
    gap: 14px;
}

.page-loader img {
    width: min(230px, 64vw);
    height: auto;
    border-radius: 24px;
}

.page-loader-text {
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 700;
}

.page-loader-track {
    width: 116px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--primary-soft);
}

.page-loader-track span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--yellow));
    animation: loader-progress 1.1s ease-in-out infinite alternate;
}

.skip-link {
    position: fixed;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

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

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

.section-cream { background: var(--cream-soft); }

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    border-block-end: 1px solid rgba(112, 71, 156, .08);
    background: rgba(255, 254, 251, .94);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo {
    width: 72px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.desktop-nav { display: flex; align-items: center; gap: 30px; }

.header-actions,
.social-links {
    display: flex;
    align-items: center;
}

.header-actions { gap: 12px; }
.social-links { gap: 8px; }

.social-link {
    width: 44px;
    height: 44px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary-dark);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

a.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

a.social-link:active { transform: translateY(0); }
.social-link svg { width: 20px; height: 20px; }

.mobile-social { display: none; }

.desktop-nav a,
.site-footer nav a,
.footer-contact a {
    color: var(--muted);
    font-size: .93rem;
    text-decoration: none;
    transition: color .2s ease;
}

.desktop-nav a { position: relative; padding-block: 10px; }
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.site-footer a:hover { color: var(--primary); }

.desktop-nav a.is-active { color: var(--primary-dark); font-weight: 700; }
.desktop-nav a.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 20% 0;
    inset-block-end: 4px;
    height: 2px;
    background: var(--primary);
}

.button,
.outlined-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 0 rgba(76, 45, 112, .11);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 0 rgba(76, 45, 112, .09); }
.button:active { transform: translateY(1px); box-shadow: 0 4px 0 rgba(76, 45, 112, .1); }
.button-small { min-height: 42px; padding: 9px 18px; font-size: .9rem; }

.outlined-button {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary);
    box-shadow: none;
}

.outlined-button:hover { background: var(--primary); color: #fff; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    width: 190px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.mobile-nav nav { display: grid; gap: 3px; }
.mobile-nav nav a { padding: 11px 12px; border-radius: 8px; text-decoration: none; }
.mobile-nav nav a:hover { background: var(--primary-soft); }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 690px;
    display: grid;
    align-items: center;
    padding-block: 84px 70px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 2px solid var(--yellow);
    border-radius: 50%;
}
.hero::before { width: 42px; height: 42px; inset-block-start: 14%; inset-inline-start: 9%; }
.hero::after { width: 18px; height: 18px; inset-block-end: 18%; inset-inline-end: 48%; background: var(--yellow); }

.line-burst {
    position: absolute;
    width: 180px;
    height: 110px;
    background: repeating-linear-gradient(152deg, transparent 0 13px, rgba(112, 71, 156, .42) 14px 20px, transparent 21px 30px);
    transform: rotate(-8deg);
    opacity: .7;
}
.line-burst-top { inset-block-start: -38px; inset-inline-end: -50px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.hero h1,
.about-copy h2,
.section-heading h2,
.work-heading h2,
.contact-shell h2 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); }

.circled-word { position: relative; display: inline-block; color: var(--primary-dark); }
.circled-word::after {
    content: "";
    position: absolute;
    inset: -8px -14px -7px -15px;
    border: 3px solid var(--primary);
    border-radius: 48% 55% 48% 58%;
    transform: rotate(-3deg);
}

.hero-lead {
    max-width: 570px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-block-start: 30px; }

.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-5px); }

.availability {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-block-start: 34px;
    color: var(--muted);
    font-size: .88rem;
}
.availability span { width: 10px; height: 10px; border-radius: 50%; background: #39a86b; box-shadow: 0 0 0 5px rgba(57, 168, 107, .12); }

.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.portrait-ring {
    position: relative;
    width: min(440px, 86vw);
    aspect-ratio: 1;
    overflow: hidden;
    border: 22px solid rgba(255, 255, 255, .67);
    border-radius: 46% 54% 51% 49%;
    background: var(--primary-soft);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}
.portrait-ring::after {
    content: "";
    position: absolute;
    inset: 13%;
    border: 1px solid rgba(112, 71, 156, .25);
    border-radius: 50%;
}
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; transform: rotate(-2deg) scale(1.18); }

.orbit { position: absolute; border: 2px solid var(--yellow); border-radius: 50%; }
.orbit-one { width: 60px; height: 60px; inset-block-start: 8%; inset-inline-end: 4%; }
.orbit-two { width: 30px; height: 30px; inset-block-end: 11%; inset-inline-start: 5%; }
.dot { position: absolute; border-radius: 50%; background: var(--yellow); }
.dot-one { width: 26px; height: 26px; inset-block-start: 18%; inset-inline-start: 4%; }
.dot-two { width: 13px; height: 13px; inset-block-end: 3%; inset-inline-end: 20%; }

.floating-note {
    position: absolute;
    min-width: 112px;
    display: grid;
    place-items: center;
    padding: 14px 13px;
    border: 2px solid var(--primary-soft);
    border-radius: 50%;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.floating-note strong { color: var(--primary-dark); font-size: 1.2rem; }
.floating-note span { max-width: 78px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.note-projects { inset-block-end: 9%; inset-inline-end: 0; }
.note-years { inset-block-start: 8%; inset-inline-start: -4%; }

.about-section,
.services-section,
.work-section { padding-block: 112px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.about-art { position: relative; min-height: 450px; display: grid; place-items: center; }
.art-blob {
    width: min(410px, 90vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 3px solid rgba(112, 71, 156, .45);
    border-radius: 46% 54% 63% 37% / 42% 42% 58% 58%;
    background: var(--primary-soft);
    transform: rotate(-5deg);
}
.brand-board {
    width: 68%;
    aspect-ratio: 1.15;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    grid-template-rows: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border: 8px solid #fff;
    border-radius: 18px;
    background: #fbfafc;
    box-shadow: var(--shadow-lg);
    transform: rotate(8deg);
}
.brand-sketch {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 45% 55%;
    background: var(--primary);
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    box-shadow: 9px 9px 0 var(--yellow);
}
.brand-name { color: var(--primary-dark); font-size: 2rem; font-weight: 900; }
.brand-line { grid-column: 1 / -1; height: 9px; border-radius: 9px; background: #ddd2e5; }
.brand-swatches { grid-column: 1 / -1; display: flex; gap: 9px; }
.brand-swatches i { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); }
.brand-swatches i:nth-child(2) { background: var(--yellow); }
.brand-swatches i:nth-child(3) { background: #2c2731; }
.dashed-arrow {
    position: absolute;
    width: 120px;
    height: 60px;
    inset-block-end: 5%;
    inset-inline-end: 0;
    border-block-end: 2px dashed var(--primary);
    border-radius: 50%;
    transform: rotate(-15deg);
}

.about-copy h2,
.section-heading h2,
.work-heading h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.about-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.95; }
.about-copy > p:not(.eyebrow) { max-width: 580px; margin-block: 25px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 30px; list-style: none; }
.skill-list li { border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; background: #fff; color: var(--primary-dark); font-size: .86rem; font-weight: 700; }

.services-section { position: relative; overflow: hidden; }
.services-section::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    inset-block-start: 60px;
    inset-inline-end: -35px;
    border: 2px solid var(--yellow);
    border-radius: 50%;
}
.section-heading { max-width: 650px; margin: 0 auto 55px; text-align: center; }
.section-heading > p:not(.eyebrow) { margin-block-end: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
    position: relative;
    min-height: 310px;
    padding: 34px;
    border: 1px solid rgba(112, 71, 156, .11);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(112, 71, 156, .35); }
.service-number { position: absolute; inset-block-start: 25px; inset-inline-end: 25px; color: rgba(112, 71, 156, .24); font-size: 1.45rem; font-weight: 900; }
.service-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); }
.service-icon svg { width: 32px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 27px 0 12px; color: var(--primary-dark); font-size: 1.26rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.85; font-size: .92rem; }

.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-block-end: 46px; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project-card { grid-column: span 4; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.project-preview { position: relative; height: 300px; overflow: hidden; display: grid; place-items: center; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder { width: 118px; height: 118px; display: grid; place-items: center; border-radius:50%; background: var(--primary); color:#fff; font-size:3.4rem; font-weight:900; box-shadow: 0 13px 28px rgba(76,45,112,.2); }
.project-card:nth-child(3n + 1) .project-preview { background: #f3eafa; }
.project-card:nth-child(3n + 2) .project-preview { background: #fff2c2; }
.project-card:nth-child(3n) .project-preview { background: #ddeee9; }
.project-one .project-preview { background: #f3eafa; }
.project-two .project-preview { background: #fff2c2; }
.project-three .project-preview { background: #ddeee9; }
.project-meta { padding: 25px 26px 28px; }
.project-meta > span { color: var(--primary); font-size: .8rem; font-weight: 800; }
.project-meta h3 { margin: 9px 0; font-size: 1.15rem; }
.project-meta p { margin: 0; color: var(--muted); font-size: .82rem; }

.logo-sheet {
    position: relative;
    width: 78%;
    aspect-ratio: 1.35;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 26px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: rotate(-4deg);
}
.logo-sheet i {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 2.8rem;
    font-style: normal;
    font-weight: 900;
}
.logo-sheet b { color: var(--primary-dark); font-size: 2rem; }
.logo-sheet em, .logo-sheet u { height: 18px; border-radius: 12px; text-decoration: none; }
.logo-sheet em { background: var(--yellow); }
.logo-sheet u { background: #d6c7e2; }

.social-grid-mock {
    width: 72%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    padding: 13px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
}
.social-grid-mock > * { display: block; aspect-ratio: 1; border-radius: 8px; }
.social-grid-mock i { background: var(--primary); }
.social-grid-mock b { background: #f4cf43; }
.social-grid-mock em { background: #cfb9df; }
.social-grid-mock u { background: #2e2933; }
.social-grid-mock small { background: #fff4bb; }
.social-grid-mock strong { background: #8c69ad; }

.package {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    box-shadow: var(--shadow-lg);
}
.package-box {
    width: 135px;
    height: 190px;
    inset-inline-start: 23%;
    border-radius: 8px;
    background: #285f55;
    font-size: 3rem;
    transform: rotate(-5deg);
}
.package-bag {
    width: 150px;
    height: 170px;
    inset-inline-end: 18%;
    border-radius: 55% 55% 12px 12px;
    background: #f1c956;
    color: #285f55;
    transform: translateY(25px) rotate(6deg);
}
.package-card {
    position: absolute;
    width: 110px;
    height: 70px;
    inset-block-end: 22px;
    inset-inline-start: 15%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(32, 25, 42, .18);
    transform: rotate(8deg);
}
.package-card::before { content: ""; position: absolute; width: 42px; height: 42px; inset: 14px; border-radius: 50%; background: var(--primary-soft); }

.contact-section { padding-block: 70px; background: var(--primary); color: #fff; }
.contact-shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-shell .eyebrow { color: var(--yellow); }
.contact-shell h2 { max-width: 680px; font-size: clamp(2rem, 4vw, 3.8rem); }
.button-light { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 0 rgba(32, 25, 42, .13); white-space: nowrap; }
.button-light:hover { background: var(--cream); color: var(--primary-dark); }

.site-footer { padding-block: 52px 22px; background: var(--canvas); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr 1fr; align-items: start; gap: 56px; }
.footer-grid p { max-width: 330px; margin-block-start: 20px; color: var(--muted); line-height: 1.8; }
.site-footer nav,
.footer-contact { display: grid; align-content: start; gap: 13px; }
.footer-links { justify-items: start; }
.site-footer .social-links { display: flex; }
.footer-social { margin-block-start: 2px; }
.footer-social .social-link { width: 40px; height: 40px; background: transparent; }
.site-footer .social-link { color: var(--primary-dark); }
.site-footer a.social-link:hover { color: #fff; }
.footer-title { margin-block-end: 4px; color: var(--ink); font-weight: 800; }
.footer-contact {
    justify-items: end;
    text-align: left;
}
.footer-contact .email-link {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}
.copyright { margin-block-start: 38px; padding-block-start: 20px; border-block-start: 1px solid var(--border); color: var(--muted); font-size: .78rem; }

.footer-brand .brand-logo {
    width: 96px;
    height: 72px;
}

/* Login and admin screens */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--cream-soft);
}
.auth-page main {
    width: min(100%, 560px);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.auth-page h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4vw, 2.35rem); }
.auth-page p { color: var(--muted); line-height: 1.8; }
.auth-page label { display: block; margin: 18px 0 7px; font-weight: 700; }
.auth-page input:not([type="hidden"]) { width: 100%; min-height: 48px; border: 1px solid #cfc5d5; border-radius: 10px; padding: 11px 13px; }
.auth-page input:focus { border-color: var(--primary); }
.auth-page form .button { margin-block-start: 24px; }
.error { margin: 16px 0; padding: 12px; border-radius: 10px; background: #fff1f2; color: #9f1239; }
.muted { color: var(--muted); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 25px 0; }
.stat { padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
.stat strong { display: block; margin-block-start: 7px; color: var(--primary-dark); font-size: 1.35rem; }

.reveal { animation: reveal .7s ease both; }
.service-card:nth-child(2), .project-card:nth-child(2) { animation-delay: .08s; }
.service-card:nth-child(3), .project-card:nth-child(3) { animation-delay: .16s; }

@keyframes reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loader-progress {
    from { transform: translateX(65%); }
    to { transform: translateX(-65%); }
}

@media (max-width: 920px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .header-social { display: none; }
    .header-actions { margin-inline-start: auto; }
    .mobile-nav .mobile-social {
        display: flex;
        justify-content: center;
        margin-block-start: 8px;
        padding-block-start: 10px;
        border-block-start: 1px solid var(--border);
    }
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 45px; }
    .hero { padding-block-start: 66px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .availability { justify-content: center; }
    .hero-visual { grid-row: 1; min-height: 480px; }
    .about-art { min-height: 390px; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .service-card:last-child { grid-column: 1 / -1; }
    .project-card { grid-column: span 6; }
    .project-card:last-child { grid-column: 4 / span 6; }
    .footer-grid { grid-template-columns: 1.2fr .65fr .9fr; gap: 28px; }
    .footer-contact { grid-column: auto; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .nav-shell { gap: 12px; min-height: 70px; }
    .site-header .brand > span:last-child { display: none; }
    .site-header .brand-logo { width: 64px; height: 48px; }
    .header-actions { display: none; }
    .mobile-nav { margin-inline-start: auto; }
    .hero { min-height: auto; padding-block: 42px 60px; }
    .hero h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
    .hero-visual { min-height: 370px; }
    .portrait-ring { width: min(330px, 82vw); border-width: 14px; }
    .floating-note { min-width: 88px; padding: 10px; }
    .floating-note span { font-size: .65rem; }
    .note-years { inset-inline-start: 0; }
    .note-projects { inset-inline-end: 0; }
    .hero::before { inset-inline-start: -20px; }
    .about-section, .services-section, .work-section { padding-block: 76px; }
    .about-grid { gap: 35px; }
    .about-art { min-height: 330px; }
    .art-blob { width: min(300px, 86vw); }
    .dashed-arrow { display: none; }
    .about-copy { text-align: center; }
    .about-copy > p:not(.eyebrow) { text-align: start; }
    .skill-list { justify-content: center; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card:last-child { grid-column: auto; }
    .work-heading { align-items: start; flex-direction: column; }
    .project-grid { display: grid; grid-template-columns: 1fr; }
    .project-card, .project-card:last-child { grid-column: auto; }
    .contact-shell { flex-direction: column; align-items: start; }
    .button-light { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-contact { grid-column: auto; }
    .copyright { margin-block-start: 32px; text-align: center; }
    .auth-page main { padding: 28px 22px; }
    .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root { --muted: #403847; --border: #6c6172; }
    .service-card, .project-card, .auth-page main { border-width: 2px; }
}
