:root {
    color-scheme: dark;
    --main-bg: #10030f;
    --card-bg: #1d101c;
    --accent: #f9edf7;
    --accent-dark: #e6c9e1;
    --accent-light: #372334;
    --text: #f9edf7;
    --text-light: #bcaaba;
    --glass: rgba(16, 3, 15, .95);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    margin: 0;
    background: var(--main-bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
}

a {
    color: var(--text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e6c9e1;
    outline-offset: 5px;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--glass);
    border-bottom: 1px solid var(--accent-light);
    padding: 1rem 2rem;
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-top {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.header-inner h1 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: .18em;
    font-weight: 800;
}

.header-nav {
    position: relative;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    padding-bottom: 8px;
    transition: color .2s;
}

.header-nav a:hover {
    color: var(--text);
}

.nav-indicator {
    position: absolute;
    bottom: -9px;
    height: 2px;
    background: var(--text);
    transition: left .3s, width .3s;
}

.section {
    max-width: var(--max-width);
    margin: auto;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--accent-light);
}

h2,
h3,
h4 {
    line-height: 1.2;
}

.section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -.04em;
}

.section p {
    color: var(--text-light);
}

.eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.brand-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0 4rem;
}

.brand-hero h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    max-width: 700px;
    margin-bottom: 1.5rem;
    letter-spacing: -.06em;
}

.brand-hero p {
    max-width: 440px;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.hero-mark {
    width: 100%;
    max-width: 360px;
    justify-self: center;
    transform: rotate(-5deg);
    border: 1px solid var(--accent-light);
    box-shadow: 16px 16px 0 #241221;
}

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

.btn,
.link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.3rem;
    background: var(--text);
    color: var(--main-bg);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--text);
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

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

.btn.secondary,
.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--accent-light);
    padding: .8rem 1.3rem;
    border-radius: 3px;
    text-decoration: none;
}

footer {
    max-width: var(--max-width);
    margin: auto;
    padding: 2.5rem 2rem;
    color: var(--text-light);
    font-size: .8rem;
    text-align: center;
}

.loader {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-light);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fade-out {
    opacity: 0;
    transition: opacity .5s;
}

.fade-in,
.zoom-in,
.fade-left {
    animation: reveal .6s ease forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: none;
    }
}

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

@media(max-width: 900px) {
    header {
        padding: .8rem 1rem;
    }

    .header-inner {
        flex-direction: column;
        gap: .75rem;
    }

    .header-logo {
        height: 40px;
        width: 40px;
    }

    .header-nav {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .header-nav ul {
        gap: 1.1rem;
        width: max-content;
    }

    .nav-indicator {
        bottom: 3px;
    }

    .brand-hero {
        gap: 2rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }
}

@media(max-width: 600px) {
    .brand-hero {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .hero-mark {
        max-width: 220px;
        margin: 1rem 0;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

:root {
    --main-bg: #190018;
    --card-bg: #2b1029;
    --accent: #D8A4D8;
    --accent-dark: #F4A6B8;
    --accent-light: rgba(216, 164, 216, .22);
    --text: #F9EFF7;
    --text-light: #d1b7ce;
    --glass: rgba(25, 0, 24, .88);
}

body {
    background: radial-gradient(ellipse at 85% 10%, #d8a4d81c, transparent 40%), var(--main-bg);
    overflow-wrap: anywhere;
}

header {
    transition: box-shadow .3s;
}

header.scrolled {
    box-shadow: 0 12px 40px #19001880;
}

.header-logo {
    border-radius: 14px;
}

.header-nav a {
    display: inline-block;
    padding: .6rem .15rem;
}

.header-nav a:hover {
    color: var(--accent-dark);
}

.nav-indicator {
    bottom: -2px;
    background: var(--accent-dark);
    border-radius: 5px;
}

.section {
    padding: 5rem 2rem;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.eyebrow {
    color: var(--accent);
}

.brand-hero {
    min-height: 550px;
    gap: 4rem;
    padding: 3rem 0 5rem;
}

.brand-hero h2 {
    font-size: clamp(3.25rem, 7vw, 6rem);
}

.brand-hero p {
    line-height: 1.8;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    aspect-ratio: 1;
}

.hero-art::before {
    content: '';
    position: absolute;
    inset: 2%;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid var(--accent-light);
    background: radial-gradient(circle, #d8a4d830, transparent 68%);
}

.hero-art::after {
    content: '';
    position: absolute;
    inset: -3%;
    z-index: -1;
    border: 1px dashed #f4a6b850;
    border-radius: 50%;
    animation: spin 65s linear infinite;
}

.hero-mark {
    width: 78%;
    max-width: 330px;
    border-radius: 30%;
    box-shadow: 0 30px 80px #0005, 12px 12px 0 #d8a4d825;
    animation: float 7s ease-in-out infinite;
}

.art-label {
    position: absolute;
    bottom: 3%;
    right: 0;
    padding: .65rem 1rem;
    background: var(--text);
    color: var(--main-bg);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 0 8px 25px #19001840;
}

.art-spark {
    position: absolute;
    top: 6%;
    left: 10%;
    font-size: 3rem;
    color: var(--accent-dark);
    animation: float 6s ease-in-out infinite reverse;
}

.btn,
.link {
    border-radius: 999px;
    padding: .9rem 1.5rem;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--main-bg);
    transition: transform .25s, box-shadow .25s, background .25s;
}

.btn:hover,
.link:hover {
    background: var(--accent);
    box-shadow: 0 8px 28px #d8a4d825;
    transform: translateY(-3px);
}

.btn.secondary,
.ghost {
    border-radius: 999px;
    border-color: var(--accent-light);
}

.btn.secondary:hover,
.ghost:hover {
    background: #d8a4d81a;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: var(--accent-dark);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-16px) rotate(0deg);
    }
}

@media(max-width:900px) {
    .brand-hero {
        gap: 2rem;
        min-height: auto;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

    .header-inner {
        gap: .4rem;
    }

    .header-nav {
        padding-bottom: 5px;
    }
}

@media(max-width:600px) {
    .brand-hero {
        padding: 1rem 0 3rem;
    }

    .brand-hero h2 {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .hero-art {
        width: min(290px, 88%);
        justify-self: center;
        margin-top: 1rem;
    }

    .hero-mark {
        margin: 0;
    }

    .header-inner h1 {
        font-size: .95rem;
    }

    .header-nav a {
        font-size: .8rem;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .fade-in,
    .zoom-in,
    .fade-left,
    .card-fade {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Playful studio homepage */
.home-page {
    background: #190018;
}

.home-page header {
    background: #190018ed;
    border-bottom: 1px solid #d8a4d826;
}

.home-page .header-inner {
    max-width: 1280px;
}

.home-page .header-inner h1 {
    font-size: 1.3rem;
    font-weight: 950;
    letter-spacing: -.045em;
}

.home-page .header-logo {
    width: 52px;
    height: 52px;
}

.home-page .header-nav ul {
    gap: 1.75rem;
}

.home-page .header-nav a {
    color: #F9EFF7;
    font-size: .9rem;
    font-weight: 800;
}

.home-page .section {
    max-width: 1280px;
    border: 0;
    padding: 5.5rem 2rem;
    text-align: center;
}

.home-page #one {
    max-width: none;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 90%, #d8a4d83d, transparent 65%);
}

.home-page #one::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: radial-gradient(#D8A4D8 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(transparent, #000);
}

.home-page .brand-hero {
    position: relative;
    max-width: 1150px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 5rem 0 4rem;
    min-height: auto;
}

.home-page .brand-hero>div:first-child {
    position: relative;
    z-index: 1;
}

.home-page .eyebrow {
    font-weight: 850;
    color: #D8A4D8;
    font-size: .8rem;
    letter-spacing: .15em;
}

.home-page .brand-hero h2 {
    max-width: none;
    font-size: clamp(3.5rem, 8.5vw, 7rem);
    font-weight: 950;
    letter-spacing: -.065em;
    line-height: 1.02;
    margin-bottom: 1.5rem;
}

.home-page .brand-hero h2 span {
    color: #F4A6B8;
}

.home-page .brand-hero p {
    max-width: 530px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.home-page .hero-actions {
    justify-content: center;
    gap: 1rem;
}

.home-page .btn {
    border-radius: 12px;
    padding: 1rem 1.8rem;
    font-weight: 850;
    box-shadow: 0 5px 0 #a65e76;
}

.home-page .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 0 #a65e76;
}

.home-page .btn.secondary {
    background: #F9EFF7;
    border-color: #F9EFF7;
    color: #190018;
    box-shadow: 0 5px 0 #c6a2c2;
}

.home-page .btn.secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 0 #c6a2c2;
}

.home-page .hero-art {
    width: min(850px, 100%);
    aspect-ratio: 2.4;
    border-radius: 28px;
    background: linear-gradient(130deg, #D8A4D8, #F4A6B8);
    border: 5px solid #f9eff733;
    box-shadow: 0 25px 80px #0004;
}

.home-page .hero-art::before {
    inset: 0;
    border: 0;
    border-radius: 22px;
    background: repeating-conic-gradient(from 0deg at 50% 100%, #f9eff720 0deg 15deg, transparent 15deg 30deg);
}

.home-page .hero-art::after {
    inset: 13%;
    border-color: #19001830;
    animation: spin 90s linear infinite;
}

.home-page .hero-mark {
    width: clamp(150px, 25vw, 250px);
    border: 0;
    border-radius: 24%;
    box-shadow: 0 18px 0 #1900181f;
}

.home-page .art-spark {
    color: #190018;
    top: 18%;
    left: 13%;
    font-size: clamp(2rem, 5vw, 4rem);
}

.home-page .art-star {
    position: absolute;
    color: #F9EFF7;
    right: 14%;
    bottom: 25%;
    font-size: clamp(2.5rem, 6vw, 5rem);
    transform: rotate(12deg);
    --float-tilt: 12deg;
}

.home-page .art-label {
    bottom: 12%;
    right: 5%;
    transform: rotate(-7deg);
    background: #190018;
    color: #F9EFF7;
    font-size: clamp(.7rem, 1.5vw, 1rem);
    border-radius: 10px;
}

.home-page .section h2 {
    font-weight: 950;
    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -.055em;
}

.home-page .section-intro {
    margin: .5rem auto 2.5rem;
    font-size: 1.05rem;
}

.home-page #three {
    background: #d8a4d809;
    border-radius: 32px;
}

.home-page .numbers-section {
    max-width: none;
    background: #F4A6B8;
    color: #190018;
    margin-top: 4rem;
}

.home-page .numbers-section .eyebrow,
.home-page .numbers-section p {
    color: #59234f;
}

.home-page footer {
    max-width: 1280px;
    border-top: 1px solid #d8a4d833;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

.footer-brand {
    font-size: 1.7rem;
    font-weight: 950;
    text-decoration: none;
    letter-spacing: -.05em;
}

.footer-brand span {
    color: #F4A6B8;
    margin-left: .5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    font-weight: 700;
}

.home-page footer p {
    margin: 0;
}

.home-page footer>span {
    text-align: right;
}

@media(max-width:900px) {
    .home-page .brand-hero {
        padding-top: 3.5rem;
    }

    .home-page .section {
        padding: 4rem 1.25rem;
    }

    .home-page #one {
        padding: 0 1.25rem;
    }

    .home-page .header-nav ul {
        gap: 1.2rem;
    }
}

@media(max-width:600px) {
    .home-page .brand-hero {
        gap: 2rem;
        padding: 3rem 0;
    }

    .home-page .brand-hero h2 {
        font-size: clamp(3rem, 12vw, 4.5rem);
    }

    .home-page .brand-hero p {
        font-size: 1rem;
    }

    .home-page .hero-art {
        width: 100%;
        aspect-ratio: 1.6;
        margin: 0;
        border-radius: 20px;
    }

    .home-page .hero-mark {
        width: 145px;
    }

    .home-page .art-label {
        bottom: 7%;
        right: 3%;
    }

    .home-page .art-spark {
        left: 6%;
    }

    .home-page .art-star {
        right: 6%;
        bottom: 35%;
    }

    .home-page .btn {
        padding: .85rem 1.2rem;
    }

    .home-page .section {
        padding: 3.5rem 1rem;
    }

    .home-page #three {
        border-radius: 0;
    }

    .home-page footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .home-page footer>span {
        text-align: center;
    }
}


/* Each decoration gets its own path and timing; the label stays still. */
.home-page .hero-mark,
.home-page .art-spark,
.home-page .art-star {
    animation: wander var(--float-duration, 8s) ease-in-out var(--float-delay, 0s) infinite;
}

.home-page .hero-mark {
    --float-tilt: -5deg;
}

.home-page .art-spark {
    --float-tilt: 0deg;
}

@keyframes wander {

    0%,
    100% {
        transform: translate(0, 0) rotate(var(--float-tilt));
    }

    28% {
        transform: translate(var(--float-x1), var(--float-y1)) rotate(calc(var(--float-tilt) + 3deg));
    }

    63% {
        transform: translate(var(--float-x2), var(--float-y2)) rotate(calc(var(--float-tilt) - 2deg));
    }
}

.home-page.is-loading {
    overflow: hidden;
}

.home-page.is-loading #content {
    visibility: hidden;
    opacity: 0;
}

.home-page.is-loading .loader {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--main-bg);
    color: var(--text);
}

.home-page .loader img {
    border-radius: 16px;
}

.home-page .loader p {
    margin: 0;
    color: var(--text-light);
}

.home-page .loader .spinner {
    border-top-color: var(--accent-dark);
}

/* Mobile layout and touch targets shared by both pages. */
html {
    scroll-padding-top: calc(var(--header-height, 110px) + 16px);
}

img {
    max-width: 100%;
}

.header-inner,
.header-nav {
    min-width: 0;
}

@media(max-width:900px) {
    .home-page header {
        padding: .6rem max(.75rem, env(safe-area-inset-right)) .5rem max(.75rem, env(safe-area-inset-left));
    }

    .home-page .header-inner {
        gap: .25rem;
    }

    .home-page .header-logo {
        width: 36px;
        height: 36px;
    }

    .home-page .header-inner h1 {
        font-size: 1.1rem;
    }

    .home-page .header-nav {
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    .home-page .header-nav ul {
        width: 100%;
        flex-wrap: wrap;
        gap: 0 .5rem;
    }

    .home-page .header-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: .5rem .6rem;
        font-size: .85rem;
    }

    .home-page .nav-indicator {
        display: none;
    }
}

@media(max-width:600px) {
    .home-page .section {
        padding: 2.75rem 1rem;
    }

    .home-page .brand-hero {
        padding: 2.25rem 0 2.75rem;
        gap: 1.75rem;
    }

    .home-page .brand-hero h2 {
        font-size: clamp(2.5rem, 11.5vw, 4rem);
    }

    .home-page .section h2 {
        font-size: clamp(1.9rem, 8vw, 2.75rem);
    }

    .home-page .eyebrow {
        font-size: .7rem;
        letter-spacing: .12em;
    }

    .home-page .section-intro {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .home-page .btn,
    .home-page .link {
        min-height: 44px;
    }

    .home-page .hero-art {
        aspect-ratio: 1.65;
    }

    .home-page .hero-mark {
        width: clamp(110px, 35vw, 145px);
    }

    .home-page .art-label {
        padding: .5rem .75rem;
    }

    .home-page .numbers-section {
        margin-top: 1.5rem;
    }

    .home-page footer {
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .footer-links {
        gap: .25rem 1rem;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media(hover:none) {

    .home-page .btn:hover,
    .home-page .btn.secondary:hover {
        transform: none;
    }

    .home-page .btn:hover {
        box-shadow: 0 5px 0 #a65e76;
    }

    .home-page .btn.secondary:hover {
        box-shadow: 0 5px 0 #c6a2c2;
    }

    .home-page .card:hover,
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Explicit image ratio overrides the HTML height when its width shrinks. */
.home-page .hero-mark {
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.menu-toggle {
    display: none;
}

@media(max-width:900px) {
    .home-page .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--accent-light);
        border-radius: 10px;
        background: transparent;
        color: var(--text);
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform .2s, opacity .2s;
    }

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

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

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

    .home-page .header-nav {
        flex-basis: 100%;
    }

    .home-page .header-nav:not(.menu-open) {
        display: none;
    }

    .home-page .header-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 0;
    }

    .home-page .header-nav a {
        padding: .75rem;
        border-radius: 8px;
    }

    .home-page .header-nav a:hover {
        background: #d8a4d814;
    }
}