:root {
    --bg: #060b16;
    --bg-soft: #0b1526;
    --bg-card: rgba(12, 22, 40, 0.72);
    --navy: #0b1b33;
    --cyan: #7ec8ff;
    --cyan-strong: #4ba3ff;
    --text: #eef3fb;
    --muted: #9aabc2;
    --line: rgba(126, 200, 255, 0.16);
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(0, 8, 24, 0.45);
    --radius: 22px;
    --header: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Outfit", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(77, 163, 255, 0.18), transparent 55%),
        radial-gradient(800px 500px at 100% 20%, rgba(10, 40, 90, 0.55), transparent 50%),
        linear-gradient(180deg, #07101e 0%, var(--bg) 40%, #050910 100%);
}

.shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.shell.narrow {
    width: min(720px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(6, 11, 22, 0.72);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header);
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
}

.brand-mark img {
    width: 48px;
    height: 48px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(2.35);
    transform-origin: center 46%;
}

.studio-logo {
    width: min(420px, 86vw);
    margin: 0 auto 28px;
}

.studio-logo img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.about-hero {
    padding: 48px 0 40px;
}

.about-hero-inner {
    text-align: center;
}

.about-lead {
    margin: 0 auto 28px;
    max-width: 36rem;
}

.about-note {
    padding-top: 8px;
    padding-bottom: 72px;
}

.about-note-text {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.6;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: var(--muted);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(126, 200, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.page-home .site-footer {
    margin-top: 0;
}

.studio-hero {
    position: relative;
    min-height: calc(100svh - var(--header));
    display: grid;
    align-items: end;
    padding: 48px 0 72px;
    overflow: hidden;
}

.studio-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.studio-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    transform: scale(1.02);
    animation: hero-ken 28s ease-in-out infinite alternate;
}

.studio-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 16, 0.88) 0%, rgba(4, 8, 16, 0.55) 42%, rgba(4, 8, 16, 0.18) 72%, rgba(4, 8, 16, 0.35) 100%),
        linear-gradient(180deg, rgba(4, 8, 16, 0.35) 0%, transparent 28%, rgba(4, 8, 16, 0.72) 100%);
}

.studio-hero-panel {
    position: relative;
    z-index: 1;
    display: block;
}

.studio-hero-copy {
    max-width: 36rem;
}

.studio-title {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.studio-lead {
    margin: 0;
    color: #d5e3f5;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.55;
}

.studio-scroll {
    margin: 28px 0 0;
}

#apps,
#websites {
    scroll-margin-top: 92px;
}

.split-section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.split-section-alt {
    background: rgba(8, 14, 26, 0.55);
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.split-panel-flip .split-copy {
    order: 2;
}

.split-panel-flip .split-visual {
    order: 1;
}

.split-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.split-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 30rem;
}

.phone-stack {
    position: relative;
    min-height: 320px;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 170px;
    padding: 12px 10px 16px;
    border-radius: 28px;
    border: 1px solid rgba(126, 200, 255, 0.28);
    background: #05080f;
    box-shadow: var(--shadow);
    z-index: 2;
}

.phone-frame-back {
    position: absolute;
    right: 18%;
    top: 24px;
    transform: rotate(8deg);
    z-index: 1;
    opacity: 0.92;
}

.phone-notch {
    width: 48px;
    height: 6px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #1a2436;
}

.phone-ui {
    min-height: 260px;
    border-radius: 18px;
    padding: 16px 12px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.phone-ui-a {
    background: linear-gradient(180deg, #15233a, #0c1524);
}

.phone-ui-b {
    background: linear-gradient(180deg, #1a1430, #0c1020);
}

.ui-chip {
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(126, 200, 255, 0.16);
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 600;
}

.ui-card {
    height: 72px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.ui-card.short {
    height: 44px;
    width: 70%;
}

.ui-row {
    height: 10px;
    border-radius: 999px;
    background: rgba(126, 200, 255, 0.25);
}

.ui-orb {
    width: 88px;
    height: 88px;
    margin: 24px auto 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #9ad0ff, #3b7dd8 55%, #1a2a44);
    box-shadow: 0 0 40px rgba(90, 180, 255, 0.35);
}

.laptop-frame {
    width: min(520px, 100%);
    margin-inline: auto;
}

.laptop-cam {
    width: 8px;
    height: 8px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #2a3a52;
}

.laptop-screen {
    border: 1px solid var(--line);
    border-radius: 16px 16px 8px 8px;
    overflow: hidden;
    background: #07101e;
    box-shadow: var(--shadow);
}

.laptop-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #0f1a2c;
    border-bottom: 1px solid var(--line);
}

.laptop-topbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a4b66;
}

.laptop-topbar em {
    margin-left: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.75rem;
}

.laptop-page {
    padding: 18px;
    min-height: 220px;
    background:
        radial-gradient(280px 120px at 20% 0%, rgba(126, 200, 255, 0.2), transparent 70%),
        #0a1424;
}

.laptop-hero-block {
    height: 88px;
    border-radius: 14px;
    margin-bottom: 14px;
    background: linear-gradient(120deg, rgba(126, 200, 255, 0.28), rgba(75, 163, 255, 0.08));
}

.laptop-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.laptop-cols i {
    display: block;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(126, 200, 255, 0.12);
}

.laptop-base {
    height: 12px;
    margin: 0 24px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #1a2740, #0d1524);
    border: 1px solid var(--line);
    border-top: 0;
}

.studio-story {
    padding: 8px 0 80px;
    border-top: 1px solid var(--line);
}

.studio-story-grid {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 56px;
}

.studio-story-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.studio-story-copy {
    max-width: 40rem;
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.studio-story-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.studio-story-copy p:last-child {
    margin-bottom: 0;
    color: var(--text);
}

.work-empty-note {
    color: var(--muted);
    text-align: center;
    margin: 24px 0 0;
}

.about-note-gap {
    margin-top: 28px !important;
}

@keyframes hero-ken {
    0% { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.lead,
.section-intro {
    color: var(--muted);
    font-size: 1.12rem;
    max-width: 42rem;
}

.hero-inner .lead {
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--cyan-strong);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--cyan);
}

#projects {
    scroll-margin-top: 92px;
}

.home-projects {
    padding: 48px 0 40px;
}

.projects-head {
    text-align: left;
    margin-bottom: 32px;
    max-width: 36rem;
}

.projects-head h2 {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.projects-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading {
    margin-bottom: 36px;
}

.pillars {
    padding-top: 0;
}

.pillar-grid,
.project-grid {
    display: grid;
    gap: 20px;
}

.pillar-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pillar,
.about-visual,
.contact-form,
.notice {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-card {
    background: rgba(12, 22, 40, 0.5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pillar {
    padding: 28px;
}

.pillar-index {
    display: block;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 18px;
}

.pillar p,
.project-card p,
.prose,
.prose-block p,
.footer-copy {
    color: var(--muted);
}

.project-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    height: 100%;
}

.project-card:hover,
.project-card:focus-within {
    border-color: color-mix(in srgb, var(--accent, var(--cyan)) 45%, var(--line));
    transform: translateY(-4px);
}

.project-card-media {
    height: 210px;
    display: grid;
    place-items: center;
    padding: 24px;
}

.project-card-media.is-light,
.project-detail-logo.is-light {
    background: transparent;
}

.project-card-media.is-dark,
.project-detail-logo.is-dark {
    background: #050505;
}

.about-visual img {
    max-height: 160px;
    width: auto;
}

.project-card-media.is-light img,
.project-detail-logo.is-light img {
    max-height: 148px;
    width: auto;
    border-radius: 28px;
}

.project-card-media.is-dark img,
.project-detail-logo.is-dark img {
    max-height: 220px;
    width: 86%;
}

.project-fallback {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent, var(--cyan));
}

.project-fallback.large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.project-card-body {
    padding: 22px 24px 24px;
}

.project-meta {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.project-card-body h3 {
    font-weight: 600;
    font-size: 1.25rem;
}

.project-card-body > p:not(.project-meta) {
    margin: 0;
    max-width: none;
}

.card-cta {
    display: inline-block;
    margin-top: 14px;
    color: var(--cyan);
    font-weight: 600;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 18px;
}

.muted-link {
    color: var(--muted) !important;
    font-weight: 500 !important;
}

.muted-link:hover,
.muted-link:focus-visible {
    color: var(--cyan) !important;
}

.section-footnote {
    margin-top: 28px;
}

.text-link {
    color: var(--cyan);
    font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--white);
}

.cta-band {
    padding-top: 0;
}

.cta-inner {
    text-align: center;
    padding: 56px 24px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(500px 180px at 50% 0%, rgba(126, 200, 255, 0.16), transparent 70%),
        var(--bg-card);
}

.cta-inner p {
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto 24px;
}

.page-hero {
    padding: 56px 0 12px;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.about-visual {
    padding: 32px;
}

.prose-block h2 {
    margin-top: 28px;
}

.project-detail-head {
    text-align: center;
}

.project-detail-logo {
    width: min(360px, 100%);
    margin: 20px auto 28px;
    display: grid;
    place-items: center;
}

.project-detail .hero-actions {
    margin-top: 28px;
}

.prose {
    font-size: 1.08rem;
}

.project-gallery {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.project-gallery img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.contact-form,
.notice {
    padding: 28px;
}

.notice {
    margin-bottom: 20px;
    color: var(--cyan);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.field select option {
    color: #111;
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--cyan) 70%, transparent);
    outline-offset: 1px;
}

.field-error {
    color: #ff8d8d;
    font-size: 0.9rem;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 32px;
    margin-top: 24px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--cyan);
}

.footer-contact {
    opacity: 0.55;
    font-size: 0.92em;
}

.footer-contact:hover,
.footer-contact:focus-visible {
    opacity: 1;
}

.footer-legal {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes pulse-mark {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@media (max-width: 960px) {
    .studio-hero {
        min-height: auto;
        padding: 36px 0 48px;
    }

    .studio-hero-panel,
    .split-panel,
    .studio-story-grid {
        grid-template-columns: 1fr;
    }

    .split-panel-flip .split-copy,
    .split-panel-flip .split-visual {
        order: initial;
    }

    .studio-hero-copy {
        text-align: center;
        max-width: none;
    }

    .studio-scroll .btn {
        margin-inline: auto;
    }

    .studio-hero-media img {
        object-position: 70% center;
        animation: none;
    }

    .studio-hero-scrim {
        background:
            linear-gradient(180deg, rgba(4, 8, 16, 0.45) 0%, rgba(4, 8, 16, 0.72) 55%, rgba(4, 8, 16, 0.9) 100%);
    }

    .studio-story-copy {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 20px;
    }

    .phone-frame-back {
        right: 8%;
    }
}


@media (max-width: 900px) {
    .pillar-grid,
    .project-grid,
    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(var(--header) + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        background: #07101e;
        border-bottom: 1px solid var(--line);
        z-index: 21;
    }

    .site-nav.is-open {
        display: flex;
    }

    .studio-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .section {
        padding: 48px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .studio-hero-media img,
    .project-card,
    .reveal {
        animation: none;
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
