:root {
    --bg: #090d12;
    --line-strong: rgba(247, 241, 223, 0.28);
    --text: #f7f1df;
    --muted: rgba(247, 241, 223, 0.68);
    --faint: rgba(247, 241, 223, 0.42);
    --amber: #ffb05c;
    --teal: #75d6e4;
    --blue: #7da3ff;
    --gold: #d7b257;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body::selection {
    background: var(--amber);
    color: #101216;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 80;
    padding: 0.55rem 0.85rem;
    border-radius: 2px;
    background: var(--text);
    color: #11151c;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

.nav-inner,
.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    overflow: hidden;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    transition: color 160ms ease;
}

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

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #08111b;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-bg.jpg");
    background-image: image-set(
        url("../images/hero-bg.webp") type("image/webp"),
        url("../images/hero-bg.jpg") type("image/jpeg")
    );
    background-size: cover;
    background-position: center;
    transform: scale(1.015);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 176, 92, 0.06), transparent 24rem),
        linear-gradient(180deg, rgba(6, 10, 16, 0) 0%, rgba(6, 10, 16, 0.18) 62%, rgba(6, 10, 16, 0.55) 100%),
        linear-gradient(90deg, rgba(6, 10, 16, 0.28) 0%, rgba(6, 10, 16, 0) 44%, rgba(6, 10, 16, 0.22) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 8rem 0 5rem;
    text-align: center;
}

.hero-copy {
    width: min(900px, 100%);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 920px;
    margin: 0 auto 1.35rem;
    font-size: clamp(3.7rem, 7.2vw, 7rem);
    line-height: 0.98;
    font-weight: 500;
    letter-spacing: 0;
}

.hero-copy p {
    width: min(620px, 100%);
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.not-found-copy .section-label {
    justify-content: center;
}

.not-found-copy h1 {
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.2rem;
}

.button {
    position: relative;
    min-width: 132px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    padding: 0.72rem 1.15rem;
    border-radius: 4px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    overflow: visible;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: rgba(247, 241, 223, 0.34);
    background: rgba(247, 241, 223, 0.035);
    color: rgba(247, 241, 223, 0.92);
}

.button-primary:hover {
    border-color: rgba(247, 241, 223, 0.54);
    background: rgba(247, 241, 223, 0.055);
}

.button-primary::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 12px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #f7f1df;
    box-shadow:
        0 0 8px rgba(247, 241, 223, 0.95),
        0 0 18px rgba(255, 176, 92, 0.55);
    pointer-events: none;
    animation: buttonOrbit 4.2s linear infinite;
}

.button-primary:hover::after {
    animation-duration: 2.8s;
}

.button-primary svg {
    opacity: 0.82;
    transition: transform 180ms ease, opacity 180ms ease;
}

.button-primary:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

.button-secondary {
    border-color: rgba(117, 214, 228, 0.32);
    background: rgba(117, 214, 228, 0.06);
    color: rgba(247, 241, 223, 0.92);
}

.button-secondary:hover {
    border-color: rgba(117, 214, 228, 0.54);
    background: rgba(117, 214, 228, 0.1);
}

button.button {
    font-family: inherit;
    cursor: pointer;
}

@keyframes buttonOrbit {
    0% {
        top: -3px;
        left: 12px;
    }
    23% {
        top: -3px;
        left: calc(100% - 12px);
    }
    25% {
        top: 8px;
        left: calc(100% + 3px);
    }
    48% {
        top: calc(100% - 8px);
        left: calc(100% + 3px);
    }
    50% {
        top: calc(100% + 3px);
        left: calc(100% - 12px);
    }
    73% {
        top: calc(100% + 3px);
        left: 12px;
    }
    75% {
        top: calc(100% - 8px);
        left: -3px;
    }
    98% {
        top: 8px;
        left: -3px;
    }
    100% {
        top: -3px;
        left: 12px;
    }
}

.button svg,
.project-link svg,
.social-link svg {
    width: 16px;
    height: 16px;
}

.dark-section {
    position: relative;
    background: var(--bg);
}

.section-inner {
    position: relative;
    z-index: 2;
    padding: 5.8rem 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
    gap: 3rem;
    align-items: end;
    margin-bottom: 4rem;
}

h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 3.5rem;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.005em;
    max-width: 38ch;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4.5rem 3.5rem;
    align-items: stretch;
}

.project-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 0 0;
    border-top: 1px solid rgba(247, 241, 223, 0.12);
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-category {
    color: var(--accent, var(--amber));
}

.project-card h3 {
    max-width: 420px;
    margin-bottom: 1rem;
    font-size: 2.05rem;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.012em;
}

.project-card p {
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.005em;
    max-width: 46ch;
}

.project-points {
    display: grid;
    align-self: start;
    gap: 0.7rem;
    margin: 0 0 1.7rem;
    padding: 0;
    list-style: none;
    color: rgba(247, 241, 223, 0.74);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.005em;
}

.project-points li {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-content: start;
    gap: 0.5rem;
}

.project-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: 0.55rem;
    background: var(--accent, var(--amber));
}

.project-link {
    width: fit-content;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: opacity 160ms ease;
}

.project-link:hover {
    opacity: 0.85;
}

.project-link-icon {
    position: relative;
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    color: var(--accent, var(--amber));
    flex-shrink: 0;
    animation: linkBreath 3.4s ease-in-out infinite;
    transform-origin: center;
}

.project-link-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.project-link-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
    pointer-events: none;
    animation: linkPulse 3.4s ease-in-out infinite;
}

@keyframes linkBreath {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.035);
        opacity: 0.9;
    }
}

@keyframes linkPulse {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.12;
    }
    50% {
        transform: scale(1.22);
        opacity: 0;
    }
}

.project-link-arrow {
    transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.project-link:hover .project-link-arrow {
    transform: translateX(3px);
}

.project-link:hover .project-link-pulse {
    animation-duration: 2.2s;
}

@media (prefers-reduced-motion: reduce) {
    .button-primary::after {
        animation: none;
        top: -3px;
        left: calc(100% - 12px);
    }
    .button-primary svg {
        transition: none;
    }
    .project-detail-hero::after {
        animation: none;
    }
    .project-link-icon { animation: none; opacity: 1; }
    .project-link-pulse { animation: none; opacity: 0.35; }
    .project-link-arrow { transition: none; }
}

.project-course {
    --accent: var(--amber);
}

.project-studio {
    --accent: var(--teal);
}

.project-avatar {
    --accent: var(--blue);
}

.project-linguist {
    --accent: var(--gold);
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 901px) {
        .project-grid {
            row-gap: 0;
        }

        .project-card {
            display: grid;
            grid-row: span 7;
            grid-template-rows: subgrid;
        }

        .project-card:nth-child(n + 3) {
            margin-top: 4.5rem;
        }

        .project-points {
            grid-row: span 3;
            grid-template-rows: subgrid;
            gap: 0;
        }

        .project-points li {
            padding-bottom: 0.7rem;
        }

        .project-points li:last-child {
            padding-bottom: 0;
        }

        .project-link {
            align-self: end;
            margin-top: 0;
        }
    }
}

.system-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
    gap: 4rem;
    align-items: start;
}

.system-copy p {
    max-width: 580px;
    color: var(--muted);
}

.system-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.system-list li {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 1rem;
    padding: 0;
}

.system-list strong {
    font-weight: 700;
}

.system-list span {
    color: var(--muted);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 0;
}

.founder-profile {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.founder-avatar {
    width: 56px;
    height: 56px;
    display: block;
    flex: 0 0 auto;
    border: 1px solid rgba(247, 241, 223, 0.24);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #11151c;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.contact-panel h2 {
    margin-bottom: 0.75rem;
}

.contact-panel p {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--muted);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.social-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 0.9rem;
    border: 1px solid rgba(247, 241, 223, 0.22);
    border-radius: 2px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.language-switcher {
    position: relative;
    z-index: 60;
    color: var(--text);
    opacity: 0.72;
    transition: opacity 160ms ease;
}

.language-switcher:hover,
.language-switcher:focus-within {
    opacity: 1;
}

.language-toggle {
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 2px;
    color: var(--muted);
    background: rgba(8, 12, 18, 0.36);
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 800;
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 154px;
    padding: 0.35rem;
    border: 0;
    border-radius: 6px;
    background: rgba(8, 12, 18, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.language-switcher.is-open .language-menu {
    display: grid;
}

.language-option {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.6rem;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    text-align: left;
}

.language-option:hover,
.language-option.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.language-option span:last-child {
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 800;
}

.project-detail-body {
    background:
        linear-gradient(180deg, rgba(5, 11, 18, 0.92) 0%, rgba(9, 13, 18, 1) 32rem),
        var(--bg);
}

.project-detail-header {
    position: absolute;
}

.project-detail-main {
    overflow: hidden;
}

.project-detail-hero {
    min-height: 92svh;
    display: grid;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid rgba(247, 241, 223, 0.08);
    background: #071018;
}

.project-detail-hero::before,
.project-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.project-detail-hero::before {
    background-image:
        linear-gradient(90deg, rgba(5, 11, 18, 0.72) 0%, rgba(5, 11, 18, 0.4) 42%, rgba(5, 11, 18, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 11, 18, 0.16) 0%, rgba(5, 11, 18, 0.46) 100%),
        url("../images/sky-studio/skystudio-firstpage-bg-2.webp");
}

.project-detail-hero::after {
    opacity: 0;
    background-image:
        linear-gradient(90deg, rgba(5, 11, 18, 0.72) 0%, rgba(5, 11, 18, 0.4) 42%, rgba(5, 11, 18, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 11, 18, 0.16) 0%, rgba(5, 11, 18, 0.46) 100%),
        url("../images/sky-studio/skystudio-firstpage-bg-1.webp");
    animation: projectHeroFade 14s ease-in-out infinite;
}

.project-detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding: 8rem 0 5rem;
}

.project-detail-hero-copy {
    max-width: min(1120px, 100%);
}

.project-detail-hero h1 {
    max-width: 1120px;
    margin: 0 0 1.35rem;
    font-size: clamp(3rem, 5.4vw, 5.8rem);
    line-height: 0.98;
    text-align: left;
    text-wrap: balance;
    white-space: pre-line;
}

.project-detail-hero-copy > p:not(.section-label) {
    max-width: min(1120px, 100%);
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-detail-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.project-detail-section {
    background: var(--bg);
    border-top: 1px solid rgba(247, 241, 223, 0.08);
}

.detail-section-heading {
    display: block;
    margin-bottom: 3rem;
}

.detail-section-heading h2 {
    max-width: min(1040px, 100%);
    margin: 0;
    text-wrap: balance;
}

.detail-section-heading > p {
    max-width: min(1120px, 100%);
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

@keyframes projectHeroFade {
    0%, 40%, 100% {
        opacity: 0;
    }
    50%, 90% {
        opacity: 1;
    }
}

.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
    align-items: stretch;
}

.detail-project-card,
.detail-ip-card,
.brand-promo-stage,
.brand-promo-thumbs button,
.city-image-grid figure,
.pricing-tile {
    border: 1px solid rgba(247, 241, 223, 0.11);
    border-radius: 8px;
    background: rgba(247, 241, 223, 0.026);
    overflow: hidden;
}

.detail-project-poster,
.detail-gallery,
.detail-ip-hero {
    position: relative;
    display: block;
    overflow: hidden;
    background: #10151c;
}

.detail-project-poster {
    aspect-ratio: 16 / 9;
}

.detail-project-poster img,
.detail-gallery img,
.detail-duo-media img,
.detail-ip-hero img,
.detail-ip-thumbs img,
.city-image-grid img {
    width: 100%;
    display: block;
}

.detail-project-poster img,
.detail-gallery img,
.detail-duo-media img,
.detail-ip-hero img,
.detail-ip-thumbs img,
.city-image-grid img {
    height: 100%;
    object-fit: cover;
}

.detail-project-poster::after,
.detail-gallery::after,
.detail-ip-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.detail-project-poster-link img,
.detail-ip-hero img,
.detail-ip-thumbs img {
    transition: transform 420ms ease;
}

.detail-project-poster-link:hover img,
.detail-ip-card:hover .detail-ip-hero img,
.detail-ip-thumbs figure:hover img {
    transform: scale(1.035);
}

.detail-media-badge,
.detail-play-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 2rem);
    padding: 0.38rem 0.58rem;
    border: 1px solid rgba(247, 241, 223, 0.18);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.62);
    color: rgba(247, 241, 223, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    backdrop-filter: blur(12px);
}

.detail-media-badge {
    top: 0.85rem;
    right: 0.85rem;
}

.detail-play-badge {
    left: 0.85rem;
    bottom: 0.85rem;
    color: var(--text);
}

.detail-card-body {
    padding: 1.45rem;
}

.detail-kicker {
    margin-bottom: 0.55rem;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-card-body h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    line-height: 1.18;
    font-weight: 500;
}

.detail-card-body > p:not(.detail-kicker) {
    margin-bottom: 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.detail-card-body h4 {
    margin: 1.2rem 0 0.65rem;
    color: rgba(247, 241, 223, 0.72);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.detail-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.34rem 0.52rem;
    border: 1px solid rgba(117, 214, 228, 0.2);
    border-radius: 999px;
    background: rgba(117, 214, 228, 0.055);
    color: rgba(247, 241, 223, 0.82);
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(247, 241, 223, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
}

.detail-list li {
    position: relative;
    padding-left: 1rem;
}

.detail-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--teal);
}

.detail-list-plain li {
    padding-left: 0.85rem;
}

.detail-list strong {
    color: var(--text);
    font-weight: 700;
}

.detail-text-link {
    color: var(--text);
    text-decoration-color: rgba(117, 214, 228, 0.72);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.detail-text-link:hover {
    color: var(--teal);
    text-decoration-color: currentColor;
}

.detail-duo-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(247, 241, 223, 0.12);
}

.detail-duo-media img {
    aspect-ratio: 16 / 9;
}

.detail-gallery {
    height: 18rem;
    display: grid;
    gap: 1px;
}

.detail-gallery-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.detail-gallery-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-ip-card {
    max-width: 860px;
    margin: 0 auto;
}

.detail-ip-hero {
    aspect-ratio: 16 / 9;
}

.detail-ip-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 0.75rem;
    background: rgba(247, 241, 223, 0.04);
}

.detail-ip-thumbs figure {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #11151c;
}

.detail-ip-thumbs figcaption {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    padding: 0.28rem 0.36rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.62);
    color: rgba(247, 241, 223, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
}

.brand-promo-carousel {
    display: grid;
    gap: 1rem;
}

.brand-promo-stage {
    width: 100%;
    aspect-ratio: 21 / 9;
    display: grid;
    place-items: center;
    padding: 0;
    border-color: rgba(247, 241, 223, 0.16);
    background: #11151c;
    cursor: zoom-in;
}

.brand-promo-stage img,
.brand-promo-thumbs img,
.brand-lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.brand-promo-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.brand-promo-thumbs button {
    aspect-ratio: 21 / 9;
    display: grid;
    place-items: center;
    padding: 0;
    border-color: rgba(247, 241, 223, 0.12);
    background: rgba(247, 241, 223, 0.02);
    cursor: pointer;
    opacity: 0.62;
    transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.brand-promo-thumbs button:hover,
.brand-promo-thumbs button.is-active {
    border-color: rgba(117, 214, 228, 0.58);
    background: rgba(117, 214, 228, 0.055);
    opacity: 1;
}

.brand-lightbox {
    width: min(1180px, calc(100vw - 40px));
    max-height: calc(100svh - 40px);
    padding: 3rem 1rem 1rem;
    border: 1px solid rgba(247, 241, 223, 0.18);
    border-radius: 8px;
    background: rgba(5, 9, 14, 0.96);
    color: var(--text);
}

.brand-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(6px);
}

.brand-lightbox-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    min-height: 32px;
    padding: 0.3rem 0.62rem;
    border: 1px solid rgba(247, 241, 223, 0.22);
    border-radius: 4px;
    background: rgba(247, 241, 223, 0.05);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.brand-lightbox img {
    margin: 0 auto;
    max-height: calc(100svh - 7rem);
}

.city-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.city-image-grid figure {
    position: relative;
    aspect-ratio: 9 / 16;
    margin: 0;
    background: #11151c;
}

.city-image-grid figcaption {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 1.4rem);
    padding: 0.36rem 0.56rem;
    border: 1px solid rgba(247, 241, 223, 0.18);
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.64);
    color: rgba(247, 241, 223, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    backdrop-filter: blur(12px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.pricing-tile {
    min-height: 176px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pricing-tile span {
    width: fit-content;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.44rem;
    border-radius: 999px;
    background: rgba(255, 176, 92, 0.16);
    color: var(--amber);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-tile h3 {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
}

.pricing-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.pricing-tile strong {
    margin-top: auto;
    color: var(--text);
    font-size: 1.35rem;
}

.pricing-tile.is-featured {
    border-color: rgba(255, 176, 92, 0.42);
    background: rgba(255, 176, 92, 0.06);
}

.project-detail-final {
    border-top: 1px solid rgba(247, 241, 223, 0.12);
    background:
        linear-gradient(180deg, rgba(117, 214, 228, 0.05), rgba(255, 176, 92, 0.04)),
        var(--bg);
}

.project-detail-final-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.project-detail-final h2 {
    max-width: min(980px, 100%);
    margin-bottom: 0.9rem;
    text-wrap: balance;
}

.project-detail-final p:not(.section-label) {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.project-detail-final-actions {
    justify-content: flex-end;
    margin-top: 0;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 3.6rem;
    }

    h2 {
        font-size: 2.55rem;
    }

    .section-heading,
    .project-grid,
    .system-layout,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .project-card {
        display: flex;
        flex-direction: column;
    }

    .project-points {
        grid-template-rows: none;
        gap: 0.7rem;
    }

    .system-list li {
        grid-template-columns: 1fr;
        gap: 0.24rem;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .project-detail-hero-inner,
    .detail-section-heading,
    .detail-card-grid,
    .project-detail-final-inner {
        grid-template-columns: 1fr;
    }

    .project-detail-hero-copy {
        max-width: 720px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .city-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-promo-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-detail-final-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-inner,
    .section-inner,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

    .hero-bg {
        background-position: 61% center;
    }

    .hero-content {
        padding: 6.5rem 0 4rem;
    }

    h1 {
        font-size: clamp(2.65rem, 12vw, 3rem);
    }

    h2 {
        font-size: 2.15rem;
    }

    .hero-copy p {
        font-size: 1rem;
        line-height: 1.62;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .hero-actions {
        width: min(100%, 340px);
        margin-left: auto;
        margin-right: auto;
    }

    .button,
    .social-link {
        width: 100%;
    }

    .hero-actions .button {
        width: auto;
    }

    .project-detail-final-actions .button {
        width: auto;
    }

    .project-detail-hero-inner {
        padding: 6.4rem 0 3.8rem;
    }

    .project-detail-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.2rem);
    }

    .project-detail-hero-copy > p:not(.section-label) {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .detail-card-body {
        padding: 1.15rem;
    }

    .detail-card-body h3 {
        font-size: 1.3rem;
    }

    .detail-gallery {
        height: 15rem;
    }

    .detail-media-badge,
    .detail-play-badge {
        max-width: calc(100% - 1.2rem);
        font-size: 0.66rem;
    }

    .detail-media-badge {
        top: 0.6rem;
        right: 0.6rem;
    }

    .detail-play-badge {
        left: 0.6rem;
        bottom: 0.6rem;
    }

    .detail-ip-thumbs {
        padding: 0.45rem;
    }

    .detail-ip-thumbs figcaption {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .city-image-grid {
        gap: 0.75rem;
    }

    .brand-promo-stage,
    .brand-promo-thumbs button {
        aspect-ratio: 16 / 9;
    }

    .brand-promo-thumbs {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .brand-lightbox {
        width: calc(100vw - 20px);
        padding: 2.8rem 0.6rem 0.6rem;
    }

    .project-card,
    .contact-panel {
        padding: 0;
    }

    .founder-profile {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 0.85rem;
        align-items: start;
    }

    .founder-avatar {
        width: 48px;
        height: 48px;
    }

    .project-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
        margin-bottom: 1.4rem;
    }
}

@media print {
    @page {
        margin: 10mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html {
        scroll-behavior: auto;
        background: var(--bg) !important;
    }

    body {
        min-height: auto;
        overflow: visible;
        background: var(--bg) !important;
        color: var(--text) !important;
    }

    .project-detail-body {
        background:
            linear-gradient(180deg, rgba(5, 11, 18, 0.92) 0%, rgba(9, 13, 18, 1) 32rem),
            var(--bg) !important;
    }

    .skip-link,
    .project-detail-final-actions,
    .brand-lightbox {
        display: none !important;
    }

    .site-header {
        position: static;
        background: #071018 !important;
        border-bottom: 1px solid rgba(247, 241, 223, 0.12);
    }

    .nav-inner {
        width: 100%;
        min-height: 48px;
    }

    .nav-links {
        position: static;
        transform: none;
        margin-left: auto;
    }

    .language-switcher {
        display: none !important;
    }

    .project-detail-main {
        overflow: visible;
    }

    .section-inner,
    .project-detail-hero-inner {
        width: 100%;
        padding: 8mm 0;
    }

    .project-detail-hero {
        display: block;
        min-height: auto;
        background: #071018 !important;
    }

    .project-detail-hero::after {
        animation: none;
        opacity: 0;
    }

    .project-detail-hero-inner {
        padding: 14mm 0 12mm;
    }

    .project-detail-section {
        background: var(--bg) !important;
        border-top-color: rgba(247, 241, 223, 0.08) !important;
    }

    .project-detail-final {
        background:
            linear-gradient(180deg, rgba(117, 214, 228, 0.05), rgba(255, 176, 92, 0.04)),
            var(--bg) !important;
        border-top-color: rgba(247, 241, 223, 0.12) !important;
    }

    h1 {
        font-size: 44pt !important;
        max-width: 100% !important;
    }

    h2 {
        font-size: 28pt !important;
        max-width: 100% !important;
    }

    .detail-section-heading {
        margin-bottom: 5mm;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .detail-section-heading > p {
        max-width: none;
    }

    .detail-card-body {
        padding: 5mm;
    }

    .detail-card-body h3 {
        font-size: 15pt;
    }

    .detail-card-body > p:not(.detail-kicker),
    .detail-list {
        font-size: 8.8pt;
        line-height: 1.45;
    }

    .detail-list {
        gap: 2.5mm;
    }

    .detail-gallery {
        height: 42mm;
    }

    a {
        text-decoration: none;
    }

    .detail-card-grid,
    .pricing-grid,
    .city-image-grid,
    .brand-promo-thumbs,
    .detail-ip-thumbs {
        break-inside: auto;
        page-break-inside: auto;
    }

    .detail-project-card,
    .detail-ip-card {
        border-color: rgba(247, 241, 223, 0.14) !important;
        background: rgba(247, 241, 223, 0.026) !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .pricing-tile,
    .city-image-grid figure,
    .brand-promo-stage,
    .brand-promo-thumbs button {
        border-color: rgba(247, 241, 223, 0.14) !important;
        background: rgba(247, 241, 223, 0.026) !important;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .detail-media-badge,
    .detail-play-badge,
    .city-image-grid figcaption,
    .pricing-tile span {
        border-color: rgba(247, 241, 223, 0.18) !important;
        background: rgba(8, 12, 18, 0.72) !important;
    }
}
