﻿:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #c9b98b;
    --accent-deep: #9f916d;
    --accent-warm: #c9b98b;
    --accent-cool: #c9b98b;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --dark-line: #334155;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);

    /* Heading gradient — reference Nexus: hsl(212,72%,10%) → hsl(205,65%,48%) */
    --heading-gradient-from: hsl(212, 72%, 10%);
    --heading-gradient-to: hsl(205, 65%, 48%);
}

/* Minimal editorial pass */
.scroll-cue {
    display: none;
}

.scroll-progress {
    height: 1px;
    background: rgba(24, 24, 24, 0.08);
    box-shadow: none;
}

.scroll-progress::before {
    background: var(--ink);
    box-shadow: none;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.download-copy h2,
.art-plane span {
    letter-spacing: 0;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(50px, 5.2vw, 76px);
    line-height: 1.14;
    font-weight: 780;
}

.hero h1 span:nth-child(2) {
    color: rgba(24, 24, 24, 0.38);
    margin-top: 0.04em;
    transform: none;
}

.hero-art {
    overflow: visible;
}

.hero-art::before {
    inset: 8% 3% 10% 0;
    border-color: rgba(24, 24, 24, 0.08);
    background: rgba(255, 255, 255, 0.36);
    box-shadow: none;
    transform: skewX(-5deg) rotate(-3deg);
}

.hero-art::after {
    right: 0;
    top: 16%;
    width: min(45vw, 560px);
    border-color: rgba(24, 24, 24, 0.08);
    mask-image: none;
    opacity: 0.72;
}

.hero-mode-tabs {
    top: 6px;
    padding: 3px;
    gap: 2px;
    border-color: #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-mode-tabs button {
    min-height: 30px;
    border-radius: 4px;
    color: #787774;
    font-size: 12px;
    letter-spacing: 0;
}

.hero-mode-tabs button.is-active {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

.art-kicker span,
.art-caption span,
.game-console-top strong {
    color: #8d7f5e;
    letter-spacing: 0.08em;
}

.art-kicker strong,
.art-caption strong {
    letter-spacing: 0;
}

.art-plane {
    border-color: #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.035);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.art-plane span {
    color: rgba(24, 24, 24, 0.2);
    font-weight: 760;
}

.art-orbit {
    border-color: rgba(24, 24, 24, 0.1);
}

.art-axis {
    border-color: rgba(24, 24, 24, 0.13);
}

.art-axis i {
    border-color: rgba(24, 24, 24, 0.28);
    background: #ffffff;
}

.art-caption {
    border-color: #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.035);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.art-caption p {
    color: #787774;
}

.art-inline-action,
.game-return {
    border-radius: 4px;
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    letter-spacing: 0;
    box-shadow: none;
}

.art-inline-action:hover,
.game-return:hover {
    background: #333333;
    border-color: #333333;
}

.hero-game-panel {
    padding: 54px 0 0;
}

.hero-game-card {
    width: min(100%, 610px);
    padding: 10px;
    border-color: #eaeaea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.game-console-top {
    height: 38px;
    padding: 0 118px 8px 4px;
    border-bottom: 1px solid #eaeaea;
    color: #787774;
    letter-spacing: 0;
}

.game-console-top span,
.game-console-top strong {
    letter-spacing: 0;
}

.hero-game-card iframe {
    height: calc(100% - 38px);
    border: 0;
    background: #fbfbfa;
}

.game-return {
    top: 16px;
    right: 16px;
    bottom: auto;
    padding: 7px 10px;
}

.proof-strip {
    border: 1px solid #eaeaea;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.proof-label {
    color: #787774;
    letter-spacing: 0;
}

.download-section {
    background:
        radial-gradient(circle at 78% 20%, rgba(141, 127, 94, 0.08), transparent 30%),
        #fbfbfa;
    color: #181818;
}

.download-copy h2 {
    color: #111111;
    -webkit-text-fill-color: #111111;
    text-shadow: none;
}

.download-copy .eyebrow {
    color: #5fbea9;
}

.download-copy p {
    color: #64748b;
}

.download-note {
    color: #4f5f6f !important;
}

.download-note-label {
    color: #4fb8a3;
}

.download-card {
    border-color: #eaeaea;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
}

.download-meta {
    border-bottom-color: #eaeaea;
}

.download-card p {
    color: #64748b;
}

.gallery-item {
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 12px rgba(24, 24, 24, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
    .art-plane-b,
    .art-caption {
        animation-name: editorial-float;
        animation-duration: 12s;
    }

    .art-orbit-a {
        animation-duration: 22s;
    }
}

@keyframes editorial-float {
    from {
        translate: 0 0;
    }
    to {
        translate: 0 -7px;
    }
}

@media (max-width: 720px) {
    .hero-mode-tabs {
        top: 0;
    }

    .hero-game-panel {
        padding-top: 48px;
    }

    .hero-game-card {
        border-radius: 8px;
    }

    .game-console-top {
        padding-right: 102px;
    }

    .game-return {
        top: 15px;
        right: 15px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient-grid {
        animation: background-drift 28s linear infinite alternate;
    }
}

a {
    color: inherit;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: var(--progress, 0%);
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
    box-shadow: 0 0 18px rgba(141, 127, 94, 0.18);
}

.ambient-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 55% 30%, rgba(30, 80, 140, 0.10), transparent 65%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(240, 244, 248, 0.82) 48%, rgba(210, 224, 240, 0.65)),
        linear-gradient(18deg, transparent 0 46%, rgba(20, 80, 140, 0.045) 46% 54%, transparent 54% 100%);
}

.ambient-layer {
    position: absolute;
    inset: -12%;
    will-change: transform;
}

.ambient-grid {
    opacity: 0.72;
    background:
        linear-gradient(90deg, rgba(173, 185, 198, 0.24) 1px, transparent 1px),
        linear-gradient(180deg, rgba(173, 185, 198, 0.24) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18) 72%, transparent);
}

.ambient-contours {
    left: 45%;
    top: 3%;
    width: 760px;
    height: 760px;
    inset: auto;
    opacity: 0.42;
    transform-origin: center;
    background-image: url("data:image/svg+xml,%3Csvg width='760' height='760' viewBox='0 0 760 760' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230b4f4a' stroke-width='1.15' stroke-opacity='.2'%3E%3Cpath d='M100 408c52-104 88-176 182-198 112-26 252 16 324 104 70 86 72 206 0 284-84 92-268 104-392 36-92-50-148-136-114-226Z'/%3E%3Cpath d='M156 404c42-82 78-132 148-148 88-20 198 14 252 82 54 66 52 154-2 214-64 70-204 78-298 28-70-38-126-108-100-176Z'/%3E%3Cpath d='M216 396c30-56 60-86 108-96 60-12 138 10 174 58 34 44 32 104-4 144-42 48-136 54-200 20-48-26-96-80-78-126Z'/%3E%3Cpath d='M292 388c20-34 42-52 72-56 38-6 84 8 106 36 22 28 18 66-6 90-28 30-84 32-122 12-32-18-64-50-50-82Z'/%3E%3Cpath d='M32 544c70 30 140 58 230 54 112-6 190-68 270-112 86-48 162-54 220-28'/%3E%3Cpath d='M48 256c66-30 130-44 210-34 98 12 154 62 228 88 84 30 160 16 220-30'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: blur(0.1px);
}

.ambient-type {
    inset: 0;
    display: grid;
    align-content: center;
    gap: 34px;
    color: rgba(17, 19, 22, 0.035);
    font-size: clamp(92px, 14vw, 210px);
    font-weight: 850;
    line-height: 0.78;
    letter-spacing: 0;
    text-transform: uppercase;
    user-select: none;
}

.ambient-type span:first-child {
    margin-left: -2vw;
}

.ambient-type span:last-child {
    margin-left: 32vw;
}

.ambient-plates {
    inset: 0;
}

.ambient-plates span {
    position: absolute;
    display: block;
    border: 1px solid rgba(15, 118, 110, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06));
    box-shadow: 0 34px 90px rgba(17, 19, 22, 0.08);
    transform: skewX(-14deg) rotate(-8deg);
}

.ambient-plates span:nth-child(1) {
    width: 260px;
    height: 520px;
    top: 8%;
    right: 11%;
}

.ambient-plates span:nth-child(2) {
    width: 150px;
    height: 360px;
    left: 4%;
    top: 42%;
    opacity: 0.58;
}

.ambient-plates span:nth-child(3) {
    width: 440px;
    height: 86px;
    right: 2%;
    bottom: 12%;
    opacity: 0.44;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient-contours {
        animation: contour-breathe 12s ease-in-out infinite;
    }

    .ambient-plates span {
        animation: plate-sheen 9s ease-in-out infinite;
    }

    .ambient-plates span:nth-child(2) {
        animation-delay: 1.6s;
    }

    .ambient-plates span:nth-child(3) {
        animation-delay: 3.1s;
    }
}

.js [data-reveal] {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px);
    transition:
        opacity 760ms cubic-bezier(0.2, 0.7, 0.16, 1),
        filter 760ms cubic-bezier(0.2, 0.7, 0.16, 1),
        transform 760ms cubic-bezier(0.2, 0.7, 0.16, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(217, 224, 232, 0.5);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.nav {
    width: min(1160px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    transition: opacity 200ms ease;
}

.brand:hover {
    opacity: 0.8;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--white);
    font-weight: 760;
    font-size: 18px;
    box-shadow: 
        0 4px 12px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(141, 127, 94, 0.12) 50%,
        transparent 60%
    );
    animation: brand-shine 6s ease-in-out infinite;
}

@keyframes brand-shine {
    0%, 100% { transform: translateX(-100%) rotate(0deg); }
    50% { transform: translateX(100%) rotate(0deg); }
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a {
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 200ms ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
    transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero {
    display: flex;
    align-items: center;
    padding: 100px 0 220px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(238, 242, 244, 0.34));
}

.hero-inner {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 70px;
    position: relative;
}

/* ---- Hero copy decoration ---- */
.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(141, 127, 94, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-copy::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(141, 127, 94, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Floating decorative elements ---- */
.hero-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(141, 127, 94, 0.12);
    border-radius: 50%;
    animation: float-up 6s ease-in-out infinite;
}

.deco-circle.small {
    width: 30px;
    height: 30px;
    animation-duration: 8s;
    animation-delay: 2s;
}

.deco-circle.large {
    width: 90px;
    height: 90px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.deco-dot {
    width: 8px;
    height: 8px;
    background: rgba(141, 127, 94, 0.22);
    border-radius: 50%;
    animation: float-dot 5s ease-in-out infinite;
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

@keyframes float-dot {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-25px) translateX(-5px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.3;
    }
}

/* ---- Heading gradient utility ---- */
.heading-gradient {
    background: linear-gradient(135deg, var(--heading-gradient-from), var(--heading-gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.download-copy h2,
.doc-hero h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--heading-gradient-from), var(--heading-gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    display: block;
}

.hero-lede {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    color: var(--white);
    background: var(--dark);
}

.button-primary:hover {
    background: #1f1f1f;
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.74);
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: var(--ink);
}

.button-light {
    width: 100%;
    color: var(--dark);
    background: var(--white);
}

.button-light:hover {
    background: #f2faf8;
}

/* ---- Notched CTA: 4-corner decoration accents ---- */
.button-notched {
    position: relative;
    border-radius: 4px;
    overflow: visible;
}

.notch {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    transition: opacity 200ms ease;
}

/* Top-left */
.notch-tl { top: 4px; left: 4px; border-top: 1px solid rgba(255,255,255,0.75); border-left: 1px solid rgba(255,255,255,0.75); }
/* Top-right */
.notch-tr { top: 4px; right: 4px; border-top: 1px solid rgba(255,255,255,0.75); border-right: 1px solid rgba(255,255,255,0.75); }
/* Bottom-left */
.notch-bl { bottom: 4px; left: 4px; border-bottom: 1px solid rgba(255,255,255,0.75); border-left: 1px solid rgba(255,255,255,0.75); }
/* Bottom-right */
.notch-br { bottom: 4px; right: 4px; border-bottom: 1px solid rgba(255,255,255,0.75); border-right: 1px solid rgba(255,255,255,0.75); }

.button-notched:hover .notch {
    opacity: 0.45;
}

/* ---- Navbar CTA — outlined GET IN TOUCH style ---- */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-cta:hover {
    color: var(--white);
    border-color: var(--ink);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.nav-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-note {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-visual {
    min-width: 0;
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a, #1e293b);
}

.app-window {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
    border: 1px solid rgba(17, 19, 22, 0.08);
    box-shadow: var(--shadow);
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.app-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 18%),
        rgba(146, 226, 210, 0.16),
        transparent 34%
    );
    opacity: 0.8;
    transition: opacity 220ms ease;
}

.app-window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.08) 44%, transparent 58%);
    transform: translateX(-120%);
}

.app-window > * {
    position: relative;
    z-index: 2;
}

.window-titlebar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-bottom: 1px solid var(--dark-line);
    background: #15191f;
}

.window-dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #78d7c8;
    box-shadow: 0 0 0 rgba(120, 215, 200, 0.5);
}

.window-dot.muted {
    background: #4a525c;
}

.window-title {
    margin-left: 10px;
    color: #c9d2dc;
    font-size: 13px;
}

.status-panel {
    position: relative;
    margin: 22px;
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #202832, #171c22);
    border: 1px solid var(--dark-line);
    overflow: hidden;
}

.status-panel::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(146, 226, 210, 0.9), transparent);
    transform: translateX(-110%);
}

.status-label,
.metric-grid span,
.download-meta span {
    display: block;
    color: #9aa7b5;
    font-size: 12px;
}

.status-panel h2 {
    margin: 6px 0 0;
    font-size: 42px;
    letter-spacing: 0;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    color: #10201d;
    background: #92e2d2;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 0 0 rgba(146, 226, 210, 0.42);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 22px 22px;
}

.metric-grid div {
    min-height: 78px;
    padding: 15px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    background: #171c22;
}

.metric-grid strong {
    display: block;
    margin-top: 7px;
    color: #edf2f7;
    font-size: 15px;
}

.log-list {
    margin: 0 22px 22px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    overflow: hidden;
}

.log-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 13px 15px;
    background: #15191f;
    border-bottom: 1px solid var(--dark-line);
}

.log-row p {
    position: relative;
}

.log-row p::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 14px;
    margin-left: 5px;
    vertical-align: -2px;
    background: #92e2d2;
    opacity: 0;
}

.log-row:last-child {
    border-bottom: 0;
}

.log-row span {
    color: #7f8a98;
    font-size: 12px;
}

.log-row p {
    margin: 0;
    color: #cbd5df;
    font-size: 13px;
}

.proof-strip-wrapper {
    width: min(1160px, calc(100% - 40px));
    margin: -34px auto 0;
    position: relative;
    z-index: 2;
}

.proof-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(17, 19, 22, 0.08);
}

.proof-strip div {
    padding: 20px 22px;
    border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
    border-right: 0;
}

.proof-strip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.proof-strip strong {
    display: block;
    margin-top: 5px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.section {
    padding: 112px 0;
}

.section-light {
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(4px);
}

.section-heading {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.split-copy h2,
.download-copy h2 {
    font-size: clamp(34px, 5vw, 56px);
}

.section-heading p:not(.eyebrow),
.split-copy p,
.download-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.feature-grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 260px;
    padding: 26px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(17, 19, 22, 0.06);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.36);
    box-shadow: 0 22px 48px rgba(17, 19, 22, 0.1);
}

.feature-index {
    color: var(--accent-warm);
    font-size: 13px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 58px 0 12px;
    font-size: 22px;
    letter-spacing: 0;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.split-section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    gap: 70px;
    align-items: start;
}

.principle-list {
    display: grid;
    gap: 14px;
}

.principle-item {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.principle-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 118, 110, 0.28);
}

.principle-item span {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.principle-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.download-section {
    padding: 96px 0;
    background: var(--dark);
    color: var(--white);
}

.download-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 72px;
    align-items: center;
    padding-left: max(20px, calc((100% - 1160px) / 2));
    padding-right: max(20px, calc((100% - 1160px) / 2));
}

.download-copy h2 {
    color: var(--white);
}

.download-copy .eyebrow {
    color: #92e2d2;
}

.download-copy p {
    color: #b8c2cc;
    max-width: 680px;
}

.download-note {
    margin-top: 16px !important;
    font-size: 13px !important;
    color: #64748b !important;
}

.download-note-label {
    color: #92e2d2;
}

.download-card {
    padding: 24px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--dark-line);
}

.download-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dark-line);
    color: var(--ink-soft);
}

.download-meta:first-child {
    padding-top: 0;
}

.download-meta strong {
    text-align: right;
    color: var(--ink);
}

.download-card .button {
    margin-top: 22px;
}

.download-card p {
    margin: 16px 0 0;
    color: #9aa7b5;
    font-size: 13px;
}

.footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    width: min(1160px, calc(100% - 40px));
    min-height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
}

.brand-footer {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer p {
    margin: 0;
}

.doc-main {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 104px;
}

.doc-hero {
    margin-bottom: 34px;
}

.doc-hero h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.doc-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.doc-content {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 46px rgba(17, 19, 22, 0.08);
}

.doc-content section + section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.doc-content h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: 0;
}

.doc-content h3 {
    margin: 24px 0 8px;
    font-size: 18px;
}

.doc-content p,
.doc-content li {
    color: var(--muted);
}

.doc-content p {
    margin: 0 0 14px;
}

.doc-content p:last-child {
    margin-bottom: 0;
}

.doc-content ul {
    margin: 0;
    padding-left: 1.2em;
}

.doc-content a {
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .app-window::after {
        animation: glass-sweep 6.8s ease-in-out infinite;
        animation-delay: 900ms;
    }

    .window-dot:first-child {
        animation: dot-pulse 2.8s ease-in-out infinite;
    }

    .status-panel::after {
        animation: signal-scan 3.8s ease-in-out infinite;
    }

    .status-badge {
        animation: badge-breathe 3.2s ease-in-out infinite;
    }

    .log-row:last-child p::after {
        animation: caret-blink 1.2s steps(2, end) infinite;
    }
}

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

@keyframes background-drift {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: 34px 18px, 34px 18px, 0 0;
    }
}

@keyframes glass-sweep {
    0%,
    45% {
        transform: translateX(-120%);
        opacity: 0;
    }

    58% {
        opacity: 1;
    }

    74%,
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes dot-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(120, 215, 200, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(120, 215, 200, 0.12);
    }
}

@keyframes signal-scan {
    0%,
    34% {
        transform: translateX(-110%);
        opacity: 0;
    }

    48% {
        opacity: 1;
    }

    78%,
    100% {
        transform: translateX(110%);
        opacity: 0;
    }
}

@keyframes badge-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(146, 226, 210, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(146, 226, 210, 0.08);
    }
}

@keyframes caret-blink {
    0%,
    42% {
        opacity: 0;
    }

    43%,
    100% {
        opacity: 1;
    }
}

@keyframes contour-breathe {
    0%,
    100% {
        opacity: 0.36;
        filter: blur(0.1px);
    }

    50% {
        opacity: 0.52;
        filter: blur(0);
    }
}

@keyframes plate-sheen {
    0%,
    100% {
        border-color: rgba(15, 118, 110, 0.1);
        box-shadow: 0 34px 90px rgba(17, 19, 22, 0.07);
    }

    50% {
        border-color: rgba(15, 118, 110, 0.2);
        box-shadow: 0 38px 110px rgba(17, 19, 22, 0.1);
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding-top: 64px;
    }

    .hero-inner,
    .split-section,
    .download-section {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-inner {
        align-items: start;
    }

    .hero-decoration {
        display: none;
    }

    .hero-copy::before,
    .hero-copy::after {
        display: none;
    }

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

    .download-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-inner {
        padding: 32px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .ambient-scene {
        background:
            linear-gradient(112deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 244, 0.82) 58%, rgba(226, 232, 235, 0.68)),
            linear-gradient(18deg, transparent 0 48%, rgba(15, 118, 110, 0.04) 48% 55%, transparent 55% 100%);
    }

    .ambient-contours {
        left: 10%;
        top: 18%;
        width: 520px;
        height: 520px;
        opacity: 0.3;
    }

    .ambient-type {
        font-size: 76px;
        opacity: 0.72;
        gap: 18px;
    }

    .ambient-type span:first-child {
        margin-left: -20px;
    }

    .ambient-type span:last-child {
        margin-left: 86px;
    }

    .ambient-plates span:nth-child(1) {
        width: 140px;
        height: 360px;
        right: -8%;
        top: 18%;
        opacity: 0.48;
    }

    .ambient-plates span:nth-child(2) {
        width: 96px;
        height: 260px;
        left: -12%;
        top: 54%;
        opacity: 0.36;
    }

    .ambient-plates span:nth-child(3) {
        display: none;
    }

    .nav {
        width: min(100% - 28px, 1160px);
        min-height: 66px;
    }

    .nav-links {
        gap: 14px;
        font-size: 13px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(2) {
        display: none;
    }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 200ms ease;
}

.nav-cta:hover {
    background: var(--dark-soft);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 200ms ease;
}

.nav-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

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

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px 24px 24px;
        gap: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    }

    .nav-links.open a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.open a:last-child {
        border-bottom: 0;
    }

    .nav-links.open + .nav-cta {
        display: block;
        margin-top: 12px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-inner,
    .proof-strip-wrapper,
    .feature-grid,
    .split-section,
    .section-heading,
    .doc-main {
        width: min(100% - 28px, 1160px);
    }

    .hero {
        padding: 48px 0 54px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-lede {
        font-size: 16px;
    }

    .button {
        width: 100%;
    }

    .proof-strip,
    .feature-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .proof-strip-wrapper {
        margin-top: -20px;
    }

    .proof-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .proof-strip div:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 78px 0;
    }

    .section-heading {
        text-align: left;
    }

    .feature-card {
        min-height: 220px;
    }

    .feature-card h3 {
        margin-top: 38px;
    }

    .download-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .download-card {
        width: 100%;
    }

    .doc-main {
        padding-top: 54px;
    }

    .doc-content {
        padding: 28px 22px;
    }
}

.profile-card {
    background: var(--dark);
    border-radius: 12px;
    padding: 28px;
    color: var(--white);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: transform 220ms ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), var(--accent-cool));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
}

.profile-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.profile-info p {
    margin: 0;
    color: #9aa7b5;
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: var(--dark-soft);
    border-radius: 8px;
    border: 1px solid var(--dark-line);
}

.stat-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    display: block;
    color: var(--white);
}

.stat-label {
    font-size: 12px;
    color: #9aa7b5;
    display: block;
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 220ms ease;
}

.btn-like {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: var(--white);
}

.btn-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-like.active {
    animation: heartBeat 0.6s ease;
}

.btn-save {
    background: var(--dark-soft);
    color: var(--white);
    border: 1px solid var(--dark-line);
}

.btn-save:hover {
    background: #2a3140;
    transform: translateY(-2px);
}

.btn-save.active {
    animation: starPop 0.6s ease;
}

.project-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.project-preview {
    perspective: 1200px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: all 220ms ease;
}

.feature-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 24px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-muted);
    border-radius: 8px;
}

.meta-label {
    color: var(--muted);
    font-size: 14px;
}

.meta-value {
    font-weight: 700;
    color: var(--ink);
}

.project-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

@keyframes starPop {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.4) rotate(10deg); }
}

@media (max-width: 980px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .case-study-strip,
    .gallery-explain-mode,
    .triage-banner {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-stats {
        gap: 12px;
    }

    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 720px) {
    .profile-card {
        padding: 20px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }
}

.resume-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 40px;
    align-items: start;
}

.resume-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

.resume-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.resume-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.resume-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 16px;
}

.resume-item {
    margin-bottom: 12px;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.resume-item-header strong {
    font-size: 16px;
}

.resume-date {
    font-size: 13px;
    color: var(--muted);
}

.resume-school {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 180ms ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(141, 127, 94, 0.08);
}

.resume-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resume-highlight {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 220ms ease;
}

.resume-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 24, 24, 0.08);
    border-color: var(--accent);
}

.highlight-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.highlight-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.resume-cta {
    text-align: center;
}

.gallery-filters {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 180ms ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ========================================
   Gallery — Masonry Grid
   ======================================== */
.gallery-grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.gallery-item-tilt {
    transform-style: preserve-3d;
}

.gallery-item-tilt .atropos-scale,
.gallery-item-tilt .atropos-rotate,
.gallery-card-inner {
    width: 100%;
    height: 100%;
}

.gallery-item-tilt.is-tilt-ready:hover {
    transform: none;
}

.gallery-item-tilt .gallery-overlay,
.gallery-item-tilt img {
    backface-visibility: hidden;
}

.gallery-item.hidden {
    display: none;
}

/* Card size assignments */
.gallery-item.card-large  { grid-column: span 8; grid-row: span 2; }
.gallery-item.card-medium { grid-column: span 4; grid-row: span 1; }
.gallery-item.card-small  { grid-column: span 4; grid-row: span 1; }

/* Image fill */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay — hidden by default, fade in on hover */
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Category tag pill */
.gallery-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 14px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

/* Card title */
.gallery-title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* Card description — only on screens wide enough */
.gallery-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
}

/* View detail CTA (large cards) */
.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.gallery-cta:hover {
    background: var(--accent-deep);
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
}

/* Responsive: 6-col */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 240px;
        gap: 16px;
    }
    .gallery-item.card-large  { grid-column: span 6; grid-row: span 2; }
    .gallery-item.card-medium,
    .gallery-item.card-small  { grid-column: span 3; grid-row: span 1; }
    .gallery-title { font-size: 17px; }
}

/* Responsive: stack single column */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
        gap: 14px;
    }
    .gallery-item.card-large,
    .gallery-item.card-medium,
    .gallery-item.card-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-overlay { padding: 18px; }
    .gallery-title { font-size: 18px; }
    .gallery-desc { font-size: 13px; }
}

@media (max-width: 980px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resume-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .resume-highlight {
        flex: 1;
        min-width: 120px;
    }

    .resume-cta {
        flex-basis: 100%;
    }
}

@media (max-width: 720px) {
    .resume-card {
        padding: 20px;
    }

    .case-study-strip,
    .gallery-explain-mode,
    .triage-banner {
        width: min(100% - 32px, 1160px);
        padding: 20px;
    }

    .case-study-strip .button,
    .gallery-explain-cta,
    .triage-banner-action {
        width: 100%;
    }

    .case-study-steps {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .highlight-number {
        font-size: 28px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: clamp(18px, 4vw, 52px);
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        rgba(6, 7, 9, 0.91);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
    cursor: zoom-out;
    backdrop-filter: blur(18px);
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-body {
    width: min(1180px, 100%);
    max-height: min(820px, calc(100dvh - 64px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(14px, 2.2vw, 28px);
    align-items: stretch;
    cursor: default;
}

.lightbox img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 3px;
    background: #111111;
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.46);
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.deepzoom-viewer {
    display: none;
    width: 100%;
    min-height: min(72dvh, 740px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    background: #050505;
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.46);
    overflow: hidden;
}

.lightbox.is-deepzoom .deepzoom-viewer {
    display: block;
}

.lightbox.is-deepzoom .lightbox-body {
    width: min(1280px, 100%);
}

.lightbox.open img {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.lightbox-notes {
    align-self: end;
    max-height: 100%;
    overflow: auto;
    padding: clamp(22px, 2.5vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    background: rgba(250, 250, 250, 0.94);
    color: #111111;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    transform: translateX(16px);
    opacity: 0;
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms, opacity 240ms ease 60ms;
}

.lightbox.open .lightbox-notes {
    transform: translateX(0);
    opacity: 1;
}

.lightbox-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lightbox-notes h3 {
    margin: 0;
    color: #111111;
    font-size: clamp(24px, 2.8vw, 38px);
    line-height: 1.04;
    letter-spacing: 0;
}

.lightbox-lead {
    margin: 18px 0 0;
    color: #343434;
    font-size: 15px;
    line-height: 1.8;
}

.lightbox-notes ul {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.lightbox-notes li {
    position: relative;
    padding-left: 18px;
    color: #222222;
    font-size: 14px;
    line-height: 1.7;
}

.lightbox-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.74em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.lightbox-actions button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 3px;
    background: #111111;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.lightbox-actions button + button {
    background: #ffffff;
    color: #111111;
}

.lightbox-actions button:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.34);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 180ms ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 860px) {
    .lightbox {
        align-items: flex-start;
        overflow-y: auto;
    }

    .lightbox-body {
        max-height: none;
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .lightbox img {
        height: auto;
        max-height: 66dvh;
    }

    .deepzoom-viewer {
        min-height: 62dvh;
    }

    .lightbox-notes {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox img,
    .lightbox-notes {
        transition: none;
    }
}

/* ========================================
   NEW STYLES — Denyinghanabi Redesign
   ======================================== */

/* --- Hero Subtitle & Quote --- */
.hero-subtitle {
    margin: 8px 0 0;
    color: var(--accent);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    letter-spacing: 0;
}

.hero-quote {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
}

/* --- Accent Button (Purple) --- */
.button-accent {
    color: var(--white);
    background: var(--accent);
}

.button-accent:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

/* --- Profile Achievement Badge --- */
.achievement-badge {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(141, 127, 94, 0.13), rgba(24, 24, 24, 0.055));
    border: 1px solid rgba(141, 127, 94, 0.22);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #c4b5fd;
}

/* --- Resume: Core Advantage Summary --- */
.resume-summary {
    margin: 0;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.resume-detail {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* --- 3-Level Skill Tree --- */
.skill-tree {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-tier {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
}

.skill-tier.skill-core {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.skill-tier.skill-aux {
    border-left: 4px solid var(--accent);
    background: rgba(141, 127, 94, 0.055);
}

.skill-tier.skill-other {
    border-left: 4px solid var(--muted);
    background: rgba(100, 116, 139, 0.03);
}

.skill-tier-badge {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.skill-core .skill-tier-badge { color: #ef4444; }
.skill-aux .skill-tier-badge { color: var(--accent); }
.skill-other .skill-tier-badge { color: var(--muted); }

/* --- Project Cards in Stack --- */
.projects-stack {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card-full {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: all 220ms ease;
}

.project-card-full:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(24, 24, 24, 0.08);
    transform: translateY(-2px);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-muted);
}

.project-rank {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    background: var(--dark);
    color: var(--white);
    letter-spacing: 0;
}

.project-card-header h3 {
    margin: 0 0 4px;
    font-size: 19px;
    color: var(--ink);
}

.project-tagline {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.project-card-body {
    padding: 0;
}

.project-field {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
}

.project-field:last-child {
    border-bottom: none;
}

.project-field strong {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.project-field p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.case-study-strip {
    width: min(1160px, calc(100% - 40px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr) auto;
    gap: 22px;
    align-items: center;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(24, 24, 24, 0.035), transparent 46%),
        #ffffff;
}

.case-study-strip h3 {
    margin: 6px 0 10px;
    color: #181818;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: 0;
}

.case-study-strip p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #55514a;
    font-size: 15px;
    line-height: 1.8;
}

.case-study-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.case-study-steps span {
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #dedbd2;
    border-radius: 4px;
    color: #181818;
    background: #fbfbfa;
    font-size: 13px;
    font-weight: 780;
}

.gallery-explain-mode {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 18px 60px rgba(24, 24, 24, 0.12);
}

.gallery-explain-mode span {
    display: block;
    margin-bottom: 8px;
    color: #b8aa7d;
    font-size: 12px;
    font-weight: 820;
}

.gallery-explain-mode strong {
    display: block;
    color: #ffffff;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.15;
}

.gallery-explain-mode p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.7;
}

.gallery-explain-cta,
.triage-banner-action {
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 11px 18px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: #111111;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.gallery-explain-cta:hover,
.triage-banner-action:hover {
    transform: translateY(-1px);
    background: #f0eee8;
}

.triage-banner {
    width: min(1160px, calc(100% - 40px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(24, 24, 24, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 24, 24, 0.028) 1px, transparent 1px),
        #fbfbfa;
    background-size: 34px 34px;
}

.triage-banner h2 {
    max-width: 820px;
    margin: 8px 0 12px;
    color: #181818;
    font-size: clamp(30px, 4.2vw, 58px);
    line-height: 0.98;
    letter-spacing: 0;
}

.triage-banner p:not(.eyebrow) {
    max-width: 620px;
    margin: 0;
    color: #55514a;
    font-size: 15px;
    line-height: 1.8;
}

.triage-banner-action {
    border-color: #181818;
    color: #ffffff;
    background: #181818;
}

.triage-banner-action:hover {
    background: #333333;
}

/* --- Contact Grid --- */
.contact-grid .feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-qr-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(24, 24, 24, 0.05), transparent 42%),
        #ffffff;
}

.contact-qr-card p {
    max-width: 240px;
}

.contact-qr-card strong {
    margin-top: 12px;
    color: #181818;
    font-size: 14px;
}

.qr-frame {
    margin-top: 16px;
    padding: 10px;
    border: 1px solid #dedbd2;
    border-radius: 8px;
    background: #fbfbfa;
}

.qr-code {
    display: block;
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    border: none;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 220ms ease;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(141, 127, 94, 0.22);
}

/* --- Animate profile stats numbers --- */
.profile-stats .stat-value {
    transition: color 220ms ease;
}

/* ========================================
   RESPONSIVE ADDITIONS
   ======================================== */

@media (max-width: 980px) {
    .project-field {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 20px;
    }

    .project-card-header {
        padding: 20px;
    }

    .project-rank {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .resume-detail {
        font-size: 13px;
    }
}

@media (max-width: 720px) {
    .hero-quote {
        font-size: 14px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-visual {
        height: 360px;
        order: -1;
        margin-bottom: 24px;
    }
}

.scroll-cue {
    color: var(--muted);
}

.scroll-cue i {
    background: rgba(24, 24, 24, 0.12);
}

.scroll-cue i::after {
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.proof-strip,
.resume-card,
.resume-highlight,
.project-card-full,
.feature-card,
.download-card {
    border-color: rgba(24, 24, 24, 0.1);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 26px 70px rgba(24, 24, 24, 0.065);
}

.section-light {
    background: rgba(255, 255, 255, 0.54);
    border-block-color: rgba(24, 24, 24, 0.08);
}

.skill-tier,
.skill-tag,
.project-card-header {
    background: rgba(24, 24, 24, 0.032);
    border-color: rgba(24, 24, 24, 0.1);
    color: var(--ink-soft);
}

.project-rank {
    background: #181818;
    color: #ffffff;
}

.project-field {
    border-bottom-color: rgba(24, 24, 24, 0.08);
}

.project-field p {
    color: var(--ink-soft);
}

.gallery-item {
    border-color: rgba(24, 24, 24, 0.1);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(24, 24, 24, 0.08);
    filter: grayscale(0.06);
}

.gallery-item:hover {
    box-shadow: 0 34px 90px rgba(24, 24, 24, 0.12);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(24, 24, 24, 0.82), rgba(24, 24, 24, 0.18) 66%, transparent);
}

.gallery-tag,
.gallery-cta,
.filter-btn.active {
    background: #181818;
    color: #ffffff;
}

.filter-btn {
    color: var(--muted);
    border-color: rgba(24, 24, 24, 0.12);
    background: rgba(255, 255, 255, 0.52);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.download-section {
    background:
        radial-gradient(circle at 78% 20%, rgba(141, 127, 94, 0.12), transparent 28%),
        #f7f7f3;
    border-block-color: rgba(24, 24, 24, 0.08);
}

.download-meta {
    border-bottom-color: rgba(24, 24, 24, 0.1);
}

.footer {
    background: #f7f7f3;
    border-top-color: rgba(24, 24, 24, 0.1);
}

.footer-inner,
.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--ink);
}

.qr-code {
    border-color: rgba(24, 24, 24, 0.1);
    filter: grayscale(1);
}

.back-to-top {
    background: #181818;
    color: #ffffff;
}

@media (max-width: 720px) {
    .nav-links.open {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(24, 24, 24, 0.12);
    }
}

/* Refined white hero: editorial artwork showcase */

.hero-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(58px, 7.4vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.hero-actions {
    margin-top: 42px;
}

.hero-showcase {
    min-height: 600px;
    height: min(68vh, 720px);
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hero-showcase::before,
.hero-showcase::after {
    display: none;
}

.hero-showcase .motion-stage-label {
    left: auto;
    top: 10px;
    right: 0;
    justify-items: end;
    text-align: right;
}

.showcase-image {
    position: absolute;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(24, 24, 24, 0.1);
    box-shadow: 0 28px 74px rgba(24, 24, 24, 0.1);
}

.showcase-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.02);
    transform: scale(1.01);
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-showcase:hover .showcase-image img {
    transform: scale(1.045);
    filter: saturate(0.95) contrast(1.04);
}

.showcase-main {
    inset: 72px 8% 58px 0;
}

.showcase-secondary {
    width: 42%;
    height: 36%;
    right: 0;
    bottom: 18px;
    z-index: 2;
}

.showcase-caption {
    position: absolute;
    left: 7%;
    bottom: 0;
    z-index: 3;
    width: min(360px, 72%);
    padding: 18px 20px;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(24, 24, 24, 0.1);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.showcase-caption span {
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.showcase-caption strong {
    color: var(--ink);
    font-size: 15px;
}

.showcase-caption p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.proof-label {
    display: none;
}

.proof-strip-wrapper {
    margin-top: -34px;
}

.proof-strip {
    box-shadow: 0 22px 58px rgba(24, 24, 24, 0.055);
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 520px;
        height: 520px;
    }

    .showcase-main {
        inset: 58px 12% 72px 0;
    }
}

@media (max-width: 720px) {
    .hero h1 {
        font-size: clamp(48px, 14vw, 72px);
    }

    .hero-showcase {
        min-height: 430px;
        height: 430px;
    }

    .showcase-main {
        inset: 48px 0 92px 0;
    }

    .showcase-secondary {
        width: 50%;
        height: 30%;
        right: 16px;
    }

    .showcase-caption {
        left: 16px;
        width: calc(100% - 88px);
        padding: 14px 16px;
    }
}

/* ========================================
   Monochrome Gallery Direction
   ======================================== */

:root {
    --bg: #f7f7f3;
    --surface: #ffffff;
    --surface-muted: #eeeeea;
    --ink: #181818;
    --ink-soft: #3d3d39;
    --muted: #76736a;
    --line: rgba(24, 24, 24, 0.115);
    --accent: #8d7f5e;
    --accent-deep: #665b41;
    --accent-warm: #8d7f5e;
    --accent-cool: #8d7f5e;
    --dark: #181818;
    --dark-soft: #262622;
    --dark-line: rgba(255, 255, 255, 0.14);
    --white: #ffffff;
    --shadow: 0 34px 90px rgba(24, 24, 24, 0.09);
}

html {
    background: var(--bg);
    overflow-x: hidden;
    scroll-padding-top: 92px;
}

body {
    font-family: "Satoshi", "Geist", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    letter-spacing: 0;
    overflow-x: clip;
}

::selection {
    color: var(--white);
    background: var(--ink);
}

.scroll-progress {
    height: 2px;
    background: var(--ink);
    box-shadow: none;
}

.ambient-scene {
    background:
        linear-gradient(90deg, rgba(24, 24, 24, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 24, 24, 0.028) 1px, transparent 1px),
        radial-gradient(ellipse at 78% 14%, rgba(141, 127, 94, 0.13), transparent 34%),
        radial-gradient(ellipse at 16% 74%, rgba(24, 24, 24, 0.045), transparent 32%),
        var(--bg);
    background-size: 96px 96px, 96px 96px, auto, auto, auto;
}

.ambient-aurora {
    inset: -20%;
    opacity: 0.58;
    background:
        linear-gradient(112deg, transparent 15%, rgba(255, 255, 255, 0.74) 32%, transparent 48%),
        linear-gradient(24deg, transparent 40%, rgba(141, 127, 94, 0.08) 50%, transparent 62%);
    filter: blur(18px);
}

.ambient-grid {
    opacity: 0.35;
    background:
        linear-gradient(90deg, rgba(24, 24, 24, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 24, 24, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 78%);
}

.ambient-contours {
    left: auto;
    right: -150px;
    top: 42px;
    width: min(62vw, 760px);
    height: min(62vw, 760px);
    opacity: 0.16;
    filter: grayscale(1) contrast(0.9);
    mix-blend-mode: multiply;
}

.ambient-wordmark {
    inset: 10vh 0 auto;
    display: grid;
    gap: clamp(24px, 4vw, 44px);
    color: rgba(24, 24, 24, 0.035);
    font-size: clamp(82px, 15vw, 220px);
    font-weight: 800;
    line-height: 0.78;
    text-transform: uppercase;
    user-select: none;
}

.ambient-wordmark span:first-child {
    margin-left: -1.6vw;
}

.ambient-wordmark span:last-child {
    justify-self: end;
    margin-right: -2.4vw;
}

.ambient-orbits {
    inset: 0;
}

.ambient-orbits span {
    position: absolute;
    display: block;
    border: 1px solid rgba(24, 24, 24, 0.09);
    border-radius: 999px;
    transform: rotate(-16deg);
}

.ambient-orbits span:first-child {
    width: 34vw;
    height: 15vw;
    min-width: 260px;
    min-height: 112px;
    right: 7vw;
    top: 18vh;
}

.ambient-orbits span:last-child {
    width: 22vw;
    height: 9vw;
    min-width: 190px;
    min-height: 78px;
    left: 6vw;
    bottom: 18vh;
}

.ambient-plates span {
    border-color: rgba(24, 24, 24, 0.09);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.ambient-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image: radial-gradient(rgba(24, 24, 24, 0.22) 0.55px, transparent 0.55px);
    background-size: 4px 4px;
    mix-blend-mode: multiply;
}

.site-header {
    border-bottom-color: rgba(24, 24, 24, 0.09);
    background: rgba(247, 247, 243, 0.78);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav {
    width: min(1240px, calc(100% - 44px));
    min-height: 72px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(24, 24, 24, 0.16);
    border-radius: 4px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.brand-mark::after {
    display: none;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 760;
}

.brand-copy small,
.nav-links {
    color: var(--muted);
}

.nav-links a::after {
    height: 1px;
    background: var(--ink);
}

.nav-cta {
    border: 1px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.nav-cta:hover {
    color: var(--white);
    box-shadow: none;
}

.nav-toggle {
    display: none;
}

.hero {
    min-height: min(860px, calc(100dvh - 72px));
    align-items: center;
    padding: clamp(72px, 8vw, 116px) 0 clamp(118px, 13vw, 176px);
    border-bottom: 1px solid rgba(24, 24, 24, 0.09);
    background: transparent;
}

.hero-inner {
    width: min(1240px, calc(100% - 44px));
    grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.14fr);
    gap: clamp(44px, 7vw, 92px);
}

.hero-copy::before,
.hero-copy::after,
.hero-decoration {
    display: none;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.12em;
}

.hero h1 {
    max-width: 700px;
    color: var(--ink);
    font-size: clamp(56px, 8.1vw, 126px);
    font-weight: 820;
    line-height: 0.86;
    letter-spacing: -0.055em;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hero h1 span:nth-child(2) {
    color: rgba(24, 24, 24, 0.48);
    transform: translateX(clamp(28px, 4vw, 64px));
}

.hero-subtitle {
    max-width: 600px;
    margin-top: 28px;
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 620;
    letter-spacing: 0;
}

.hero-subtitle span,
.hero-quote span {
    display: block;
}

.hero-quote {
    max-width: 560px;
    margin-top: 18px;
    padding-left: 18px;
    border-left: 1px solid var(--accent);
    color: var(--muted);
    font-size: 15px;
    font-style: normal;
}

.hero-actions {
    gap: 10px;
    margin-top: 40px;
}

.button {
    min-height: 46px;
    padding: 12px 19px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 720;
    transition:
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
        color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:active {
    transform: translateY(1px) scale(0.99);
}

.button-primary {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.button-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(24, 24, 24, 0.14);
}

.button-secondary:hover {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.notch {
    opacity: 0.42;
}

.hero-showcase {
    min-height: 610px;
    height: min(70vh, 720px);
    isolation: isolate;
}

.hero-art {
    position: relative;
    scroll-margin-top: 92px;
    min-height: 610px;
    height: min(70vh, 720px);
    isolation: isolate;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 7% 4% 10% 0;
    border: 1px solid rgba(24, 24, 24, 0.09);
    background:
        linear-gradient(90deg, rgba(24, 24, 24, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 24, 24, 0.045) 1px, transparent 1px),
        rgba(255, 255, 255, 0.18);
    background-size: 42px 42px;
    transform: skewX(-7deg) rotate(-4deg);
    box-shadow: 0 30px 90px rgba(24, 24, 24, 0.045);
}

.hero-art::after {
    content: "";
    position: absolute;
    right: -2%;
    top: 12%;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    border: 1px solid rgba(141, 127, 94, 0.18);
    border-radius: 50%;
    mask-image: linear-gradient(120deg, #000 0 58%, transparent 78%);
}

.hero-mode-tabs {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 10;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(24, 24, 24, 0.12);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 18px 50px rgba(24, 24, 24, 0.08);
}

.hero-mode-tabs button,
.art-inline-action,
.game-return {
    font: inherit;
    cursor: pointer;
}

.hero-mode-tabs button {
    min-height: 32px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hero-mode-tabs button.is-active {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.hero-art-panel,
.hero-game-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(0.985);
    transition:
        opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art-panel.is-active,
.hero-game-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.art-kicker {
    position: absolute;
    top: 10px;
    right: 0;
    z-index: 4;
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--muted);
    text-align: right;
}

.art-kicker span,
.art-caption span {
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.18em;
}

.art-kicker strong,
.art-caption strong {
    color: var(--ink);
    font-size: 16px;
    letter-spacing: 0.02em;
}

.art-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 999px;
    rotate: -17deg;
    will-change: transform;
}

.art-orbit-a {
    width: 78%;
    height: 38%;
    right: 0;
    top: 22%;
}

.art-orbit-b {
    width: 52%;
    height: 26%;
    right: 15%;
    top: 35%;
    opacity: 0.62;
}

.art-plane {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: end start;
    border: 1px solid rgba(24, 24, 24, 0.11);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
        rgba(247, 247, 243, 0.38);
    box-shadow: 0 34px 80px rgba(24, 24, 24, 0.065);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    will-change: transform;
}

.art-plane span {
    padding: 22px;
    color: rgba(24, 24, 24, 0.28);
    font-size: clamp(34px, 5vw, 78px);
    font-weight: 820;
    line-height: 0.82;
    letter-spacing: -0.06em;
}

.art-plane-a {
    width: 58%;
    height: 50%;
    right: 15%;
    top: 18%;
    rotate: -6deg;
}

.art-plane-b {
    width: 34%;
    height: 42%;
    right: 0;
    bottom: 12%;
    rotate: 5deg;
}

.art-axis {
    position: absolute;
    left: 8%;
    bottom: 21%;
    z-index: 3;
    width: 42%;
    height: 30%;
    border-left: 1px solid rgba(24, 24, 24, 0.22);
    border-bottom: 1px solid rgba(24, 24, 24, 0.16);
    will-change: transform;
}

.art-axis i {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent);
    background: var(--bg);
}

.art-axis i:nth-child(1) {
    left: 28%;
    top: 18%;
}

.art-axis i:nth-child(2) {
    left: 64%;
    top: 54%;
}

.art-axis i:nth-child(3) {
    right: 0;
    bottom: -4px;
}

.art-caption {
    position: absolute;
    left: 7%;
    bottom: 8%;
    z-index: 5;
    width: min(390px, 72%);
    padding: 18px 20px;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(24, 24, 24, 0.12);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 54px rgba(24, 24, 24, 0.08);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.art-caption p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.art-inline-action {
    width: fit-content;
    margin-top: 7px;
    padding: 8px 12px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    color: var(--white);
    background: var(--ink);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.06em;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.art-inline-action:hover,
.game-return:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.hero-game-panel {
    z-index: 8;
    display: grid;
    place-items: center;
    padding: 56px 10px 18px;
}

.hero-game-card {
    --glow-x: 50%;
    --glow-y: 30%;
    position: relative;
    width: min(100%, 620px);
    height: min(100%, 540px);
    min-height: 500px;
    padding: 12px;
    border: 1px solid rgba(24, 24, 24, 0.13);
    background:
        radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(141, 127, 94, 0.16), transparent 28%),
        rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 36px 96px rgba(24, 24, 24, 0.11);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.hero-game-card iframe {
    display: block;
    width: 100%;
    height: calc(100% - 44px);
    min-height: 420px;
    border: 1px solid rgba(24, 24, 24, 0.1);
    background: var(--bg);
}

.game-return {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    padding: 9px 12px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    color: var(--white);
    background: var(--ink);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.06em;
}

.motion-stage-label {
    color: var(--muted);
}

.hero-showcase .motion-stage-label {
    top: 0;
    right: 10px;
}

.motion-stage-label span {
    color: var(--accent-deep);
    letter-spacing: 0.18em;
}

.motion-stage-label strong {
    color: var(--ink);
}

.showcase-image {
    border-radius: 2px;
    border: 1px solid rgba(24, 24, 24, 0.12);
    background: var(--white);
    box-shadow: 0 30px 80px rgba(24, 24, 24, 0.105);
    will-change: transform;
}

.showcase-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.32), transparent 32%),
        linear-gradient(0deg, rgba(24, 24, 24, 0.08), transparent 42%);
    opacity: 0.44;
    mix-blend-mode: screen;
}

.showcase-main {
    inset: 62px 10% 54px 0;
}

.showcase-secondary {
    width: 41%;
    height: 35%;
    right: 0;
    bottom: 24px;
}

.showcase-caption {
    left: 5%;
    bottom: 0;
    border-radius: 2px;
    border-color: rgba(24, 24, 24, 0.12);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 54px rgba(24, 24, 24, 0.08);
}

.scroll-cue {
    color: var(--muted);
}

.scroll-cue i {
    border-color: rgba(24, 24, 24, 0.18);
}

.scroll-cue i::after {
    background: var(--accent);
}

.proof-strip-wrapper {
    width: min(1240px, calc(100% - 44px));
    margin-top: -58px;
}

.proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 72px rgba(24, 24, 24, 0.06);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.proof-strip div {
    padding: 22px 26px;
}

.proof-strip span {
    color: var(--muted);
    letter-spacing: 0.04em;
}

.proof-strip strong {
    color: var(--ink);
    font-weight: 780;
}

.section {
    padding-block: clamp(86px, 10vw, 142px);
}

.section-light {
    background: rgba(255, 255, 255, 0.42);
}

.section-heading h2,
.split-copy h2,
.download-copy h2 {
    letter-spacing: -0.045em;
}

.resume-card,
.resume-highlight,
.project-card-full,
.feature-card,
.download-card,
.gallery-item {
    border-radius: 3px;
}

.gallery-filters {
    justify-content: flex-start;
}

.filter-btn {
    border-radius: 999px;
}

.gallery-item {
    box-shadow: 0 28px 76px rgba(24, 24, 24, 0.06);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 36px 90px rgba(24, 24, 24, 0.11);
}

.download-section,
.footer {
    background: var(--bg);
}

.game-console-top {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.16em;
}

.game-console-top strong {
    color: var(--accent-deep);
    font-size: 11px;
}

[data-magnetic] {
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient-aurora {
        animation: monochrome-drift 18s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
    }

    .ambient-orbits span {
        animation: orbit-breathe 14s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
    }

    .art-plane-b,
    .art-caption {
        animation: artwork-float 8s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
    }

    .art-orbit-a {
        animation: orbit-breathe 16s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
    }

}

@keyframes monochrome-drift {
    from {
        transform: translate3d(-1.5%, 0, 0) rotate(-1deg);
    }
    to {
        transform: translate3d(1.5%, -1%, 0) rotate(1deg);
    }
}

@keyframes orbit-breathe {
    from {
        transform: rotate(-16deg) scale(0.985);
        opacity: 0.52;
    }
    to {
        transform: rotate(-12deg) scale(1.025);
        opacity: 0.92;
    }
}

@keyframes artwork-float {
    from {
        translate: 0 0;
    }
    to {
        translate: 0 -14px;
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding-top: 68px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero h1 span:nth-child(2) {
        transform: none;
    }

    .hero-showcase {
        min-height: 520px;
        height: 520px;
        order: 0;
    }

    .hero-art {
        min-height: 500px;
        height: 500px;
        order: 0;
    }

    .hero-art.is-game-active {
        min-height: 620px;
        height: 620px;
    }

    .hero-game-card {
        height: 540px;
    }

}

@media (max-width: 720px) {
    .nav {
        width: min(100% - 30px, 1240px);
        gap: 12px;
    }

    .nav-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        left: 15px;
        right: 15px;
        width: auto;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .brand {
        min-width: 0;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy strong {
        max-width: 144px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ambient-wordmark,
    .ambient-orbits,
    .ambient-plates {
        max-width: 100vw;
        overflow: hidden;
    }

    .ambient-contours {
        right: -180px;
    }

    .hero-inner,
    .proof-strip-wrapper {
        width: min(100% - 30px, 1240px);
    }

    .hero {
        padding-bottom: 96px;
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-quote {
        font-size: 14px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .button {
        flex: 1 1 150px;
    }

    .hero-showcase {
        min-height: 390px;
        height: 390px;
    }

    .hero-art {
        min-height: 380px;
        height: 380px;
        order: 0;
    }

    .hero-art.is-game-active {
        min-height: 560px;
        height: 560px;
    }

    .hero-mode-tabs {
        top: 0;
        left: 0;
    }

    .hero-game-panel {
        padding: 52px 0 0;
    }

    .hero-game-card {
        width: 100%;
        height: 500px;
        min-height: 500px;
        padding: 10px;
    }

    .hero-game-card iframe {
        min-height: 432px;
    }

    .game-return {
        right: 18px;
        bottom: 18px;
    }

    .art-kicker {
        top: 52px;
        left: 0;
        right: auto;
        justify-items: start;
        text-align: left;
    }

    .art-plane-a {
        width: 72%;
        height: 48%;
        right: 10%;
        top: 18%;
    }

    .art-plane-b {
        width: 42%;
        height: 36%;
        right: 0;
        bottom: 14%;
    }

    .art-plane span {
        padding: 16px;
        font-size: clamp(30px, 11vw, 54px);
    }

    .art-caption {
        left: 0;
        bottom: 0;
        width: min(310px, 86%);
        padding: 14px 16px;
    }

    .art-axis {
        left: 5%;
        bottom: 24%;
        width: 44%;
    }

    .showcase-main {
        inset: 52px 0 92px;
    }

    .showcase-secondary {
        width: 50%;
        height: 29%;
        right: 14px;
    }

    .showcase-caption {
        left: 14px;
        width: calc(100% - 82px);
    }

    .proof-strip {
        grid-template-columns: 1fr;
    }

    .proof-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .proof-strip div:last-child {
        border-bottom: 0;
    }
}

/* Minimal editorial final overrides */
.scroll-cue {
    display: none !important;
}

.scroll-progress {
    height: 1px;
    background: rgba(24, 24, 24, 0.08);
    box-shadow: none;
}

.scroll-progress::before {
    background: #111111;
    box-shadow: none;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.download-copy h2,
.art-plane span {
    letter-spacing: 0;
}

.hero-art::before {
    border-color: rgba(24, 24, 24, 0.08);
    background: rgba(255, 255, 255, 0.36);
    box-shadow: none;
    transform: skewX(-5deg) rotate(-3deg);
}

.hero-art::after {
    border-color: rgba(24, 24, 24, 0.08);
    mask-image: none;
    opacity: 0.72;
}

.hero-mode-tabs {
    border-color: #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-mode-tabs button {
    border-radius: 4px;
    color: #787774;
    letter-spacing: 0;
}

.hero-mode-tabs button.is-active {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

.art-kicker span,
.art-caption span,
.game-console-top strong {
    color: #8d7f5e;
    letter-spacing: 0.08em;
}

.art-kicker strong,
.art-caption strong {
    letter-spacing: 0;
}

.art-plane {
    border-color: #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.035);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.art-plane span {
    color: rgba(24, 24, 24, 0.2);
    font-weight: 760;
}

.art-axis {
    border-color: rgba(24, 24, 24, 0.13);
}

.art-axis i {
    border-color: rgba(24, 24, 24, 0.28);
    background: #ffffff;
}

.art-caption {
    border-color: #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.035);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.art-inline-action,
.game-return {
    border-radius: 4px;
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    letter-spacing: 0;
    box-shadow: none;
}

.art-inline-action:hover,
.game-return:hover {
    background: #333333;
    border-color: #333333;
}

.hero-game-panel {
    padding: 54px 0 0;
}

.hero-game-card {
    width: min(100%, 610px);
    padding: 10px;
    border-color: #eaeaea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.game-console-top {
    height: 38px;
    padding: 0 118px 8px 4px;
    border-bottom: 1px solid #eaeaea;
    color: #787774;
    letter-spacing: 0;
}

.game-console-top span,
.game-console-top strong {
    letter-spacing: 0;
}

.hero-game-card iframe {
    height: calc(100% - 38px);
    border: 0;
    background: #fbfbfa;
}

.game-return {
    top: 16px;
    right: 16px;
    bottom: auto;
    padding: 7px 10px;
}

.proof-strip {
    border: 1px solid #eaeaea;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.proof-label {
    color: #787774;
    letter-spacing: 0;
}

.gallery-item {
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 12px rgba(24, 24, 24, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
    .art-plane-b,
    .art-caption {
        animation-name: editorial-float;
        animation-duration: 12s;
    }

    .art-orbit-a {
        animation-duration: 22s;
    }
}

@media (max-width: 720px) {
    .hero h1 {
        font-size: clamp(44px, 13vw, 62px);
        line-height: 1.02;
    }

    .hero-game-panel {
        padding-top: 48px;
    }

    .game-console-top {
        padding-right: 102px;
    }

    .game-return {
        top: 15px;
        right: 15px;
    }
}

/* Download section contrast fix */
.download-section {
    background:
        radial-gradient(circle at 78% 20%, rgba(141, 127, 94, 0.08), transparent 30%),
        #fbfbfa !important;
    color: #181818 !important;
}

.download-copy h2 {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    text-shadow: none !important;
}

.download-copy .eyebrow {
    color: #4fb8a3 !important;
}

.download-copy p {
    color: #64748b !important;
}

.download-note {
    color: #4f5f6f !important;
}

.download-note-label {
    color: #4fb8a3 !important;
}

.download-card {
    border-color: #eaeaea !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04) !important;
}

.software-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 247, 243, 0.86)),
        radial-gradient(circle at 12% 18%, rgba(24, 24, 24, 0.055), transparent 30%);
}

.software-grid {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.software-card {
    min-height: 236px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(24, 24, 24, 0.11);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 22px 70px rgba(24, 24, 24, 0.055);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.software-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 24, 24, 0.28);
    background: #ffffff;
}

.software-tag {
    width: fit-content;
    margin-bottom: 18px;
    padding: 5px 9px;
    border: 1px solid rgba(24, 24, 24, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 720;
}

.software-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.2;
}

.software-card p {
    margin: 14px 0 20px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.software-card a {
    margin-top: auto;
    color: var(--ink);
    font-size: 13px;
    font-weight: 780;
    text-decoration: none;
}

.software-card a::after {
    content: " ->";
}

@media (max-width: 980px) {
    .software-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .software-grid {
        grid-template-columns: 1fr;
    }

    .software-card {
        min-height: 0;
    }
}

.download-meta {
    border-bottom-color: #eaeaea !important;
}

.download-card p {
    color: #64748b !important;
}

/* Kinetic hero polish */
.hero-art {
    --glow-x: 50%;
    --glow-y: 34%;
    perspective: 1200px;
}

.ink-fluid-canvas {
    position: absolute;
    inset: 7% 4% 10% 0;
    z-index: 0;
    width: calc(100% - 4%);
    height: 83%;
    opacity: 0.62;
    filter: grayscale(1) contrast(1.12);
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: skewX(-7deg) rotate(-4deg);
}

.hero-mode-tabs,
.kinetic-reticle {
    position: relative;
}

.hero-art-panel,
.hero-game-panel,
.hero-layout-panel,
.hero-triage-panel {
    position: absolute;
    inset: 0;
}

.kinetic-reticle {
    position: absolute;
    left: var(--glow-x);
    top: var(--glow-y);
    z-index: 30;
    width: 44px;
    aspect-ratio: 1;
    border: 1px solid rgba(141, 127, 94, 0.58);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.82);
    transition: opacity 180ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-reticle::before,
.kinetic-reticle::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 68px;
    height: 1px;
    background: rgba(24, 24, 24, 0.22);
    transform: translate(-50%, -50%);
}

.kinetic-reticle::after {
    width: 1px;
    height: 68px;
}

.hero-art:hover .kinetic-reticle {
    opacity: 0.76;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.hero-art.is-game-active .kinetic-reticle {
    opacity: 0;
}

.game-console-top {
    display: grid !important;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    padding-right: 104px !important;
}

.game-picker {
    display: inline-flex;
    gap: 4px;
    padding: 2px;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    background: #fbfbfa;
}

.game-picker button {
    min-height: 24px;
    padding: 4px 9px;
    border: 0;
    border-radius: 3px;
    color: #787774;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 760;
    cursor: pointer;
}

.game-picker button.is-active {
    color: #ffffff;
    background: #111111;
}

@media (max-width: 720px) {
    .game-console-top {
        gap: 8px;
    }

    .game-picker button {
        padding-inline: 7px;
    }
}

.hero-art-panel,
.hero-game-panel {
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    transition:
        opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art-panel:not(.is-active),
.hero-game-panel:not(.is-active) {
    clip-path: polygon(0 42%, 100% 36%, 100% 58%, 0 64%);
}

.hero-art-panel::before {
    content: "";
    position: absolute;
    inset: 12% -5% 8% 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(100deg, transparent 0 42%, rgba(24, 24, 24, 0.12) 49%, transparent 56%),
        repeating-linear-gradient(90deg, rgba(24, 24, 24, 0.05) 0 1px, transparent 1px 34px);
    mask-image: linear-gradient(90deg, transparent, #000 18% 82%, transparent);
    opacity: 0.42;
    transform: translate3d(-28%, 0, 0) skewX(-12deg);
}

.hero-art-panel::after,
.hero-game-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(141, 127, 94, 0.22), transparent 28%);
    mix-blend-mode: multiply;
    opacity: 0.55;
}

.hero-game-card {
    transform-style: preserve-3d;
    border: 1px solid transparent !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from 140deg at var(--glow-x) var(--glow-y), transparent 0 18%, rgba(141, 127, 94, 0.72), transparent 38% 100%) border-box !important;
}

.art-plane,
.art-caption {
    border: 1px solid transparent !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from 140deg at var(--glow-x) var(--glow-y), rgba(24, 24, 24, 0.08), rgba(141, 127, 94, 0.58), rgba(24, 24, 24, 0.08)) border-box !important;
}

.hero-art.is-game-active .hero-game-card {
    animation: hero-card-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-mode-tabs button {
    position: relative;
    overflow: hidden;
}

.hero-mode-tabs button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.32) 50%, transparent 66%);
    transform: translateX(-120%);
}

.hero-mode-tabs button.is-active::after {
    animation: tab-sheen 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-art-panel::before {
        animation: kinetic-scan 7s cubic-bezier(0.45, 0, 0.2, 1) infinite;
    }
}

@keyframes kinetic-scan {
    0%, 18% {
        transform: translate3d(-34%, 0, 0) skewX(-12deg);
        opacity: 0;
    }
    38%, 66% {
        opacity: 0.42;
    }
    100% {
        transform: translate3d(34%, 0, 0) skewX(-12deg);
        opacity: 0;
    }
}

@keyframes hero-card-pop {
    from {
        transform: translate3d(0, 18px, 0) rotateX(2deg) scale(0.985);
        filter: blur(6px);
    }
    to {
        transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes tab-sheen {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

/* Visual triage hero tool */
.hero-triage-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 24px, 0) scale(0.98);
}

.hero-triage-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-art.is-triage-active {
    min-height: 840px;
    height: auto;
}

.hero-art.is-triage-active.is-palette-annotated {
    min-height: 980px;
    height: auto;
}

.triage-tool {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 176px auto auto auto auto auto;
    gap: 12px;
    width: min(100%, 610px);
    min-height: 100%;
    height: auto;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from 140deg at var(--glow-x) var(--glow-y), transparent 0 18%, rgba(141, 127, 94, 0.72), transparent 38% 100%) border-box;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
    overflow: visible;
}

.triage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 104px 8px 4px;
    border-bottom: 1px solid #eaeaea;
    color: #787774;
    font-size: 12px;
    font-weight: 760;
}

.triage-top span {
    color: #8d7f5e;
    letter-spacing: 0.08em;
}

.triage-top strong {
    color: #181818;
}

.triage-drop {
    display: grid;
    align-content: center;
    min-height: 112px;
    padding: 20px;
    border: 1px dashed rgba(24, 24, 24, 0.22);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(24, 24, 24, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 24, 24, 0.028) 1px, transparent 1px),
        #fbfbfa;
    background-size: 32px 32px;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.triage-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.triage-drop:focus-within,
.triage-drop:focus-visible,
.triage-drop.is-dragging {
    border-color: #181818;
    box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.08);
}

.triage-drop.is-dragging {
    background-color: #ffffff;
}

.triage-drop span {
    color: #181818;
    font-size: clamp(20px, 4vw, 34px);
    font-weight: 820;
    letter-spacing: -0.04em;
}

.triage-drop strong {
    margin-top: 4px;
    color: #787774;
    font-size: 13px;
}

.triage-drop small {
    margin-top: 8px;
    color: #8d7f5e;
    font-size: 12px;
    font-weight: 720;
}

.triage-canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(24, 24, 24, 0.06), transparent 42%),
        #f7f7f3;
    object-fit: cover;
    cursor: crosshair;
    touch-action: none;
}

.triage-canvas:focus-visible {
    outline: 3px solid rgba(24, 24, 24, 0.12);
    outline-offset: 2px;
}

.triage-picker {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #ffffff;
}

.triage-picker span {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(24, 24, 24, 0.16);
    border-radius: 4px;
    background: var(--picked);
}

.triage-picker strong {
    min-width: 0;
    color: #181818;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.triage-palette {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.triage-palette span {
    min-height: 42px;
    border: 1px solid rgba(24, 24, 24, 0.14);
    border-radius: 4px;
    background: var(--swatch);
    overflow: hidden;
    cursor: copy;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.triage-palette span:hover,
.triage-palette span:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(24, 24, 24, 0.12);
    outline: none;
}

.triage-palette span i,
.triage-palette span b,
.triage-palette span em {
    display: none;
}

.triage-palette.is-annotated {
    grid-template-columns: 1fr;
    max-height: 258px;
    overflow: auto;
}

.triage-palette.is-annotated span {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-rows: repeat(2, minmax(22px, auto));
    gap: 2px 12px;
    min-height: 72px;
    padding: 8px;
    background: #ffffff;
}

.triage-palette.is-annotated span i {
    display: block;
    grid-row: 1 / 3;
    border-radius: 3px;
    background: var(--swatch);
}

.triage-palette.is-annotated span b,
.triage-palette.is-annotated span em {
    display: block;
    align-self: center;
    color: #181818;
    font-size: 12px;
    font-style: normal;
    font-weight: 760;
    line-height: 1.35;
}

.triage-palette.is-annotated span em {
    color: #6f6a60;
    font-weight: 620;
}

.triage-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
}

.triage-metrics div {
    min-height: 86px;
    padding: 13px 12px;
    border-right: 1px solid #eaeaea;
    background: #ffffff;
}

.triage-metrics div:last-child {
    border-right: 0;
}

.triage-metrics span {
    display: block;
    color: #787774;
    font-size: 12px;
}

.triage-metrics strong {
    display: block;
    margin-top: 4px;
    color: #181818;
    font-size: 15px;
    line-height: 1.35;
}

.triage-advice {
    /* Triage advice readability fix: never place diagnosis copy directly over uploaded images. */
    min-height: 58px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #ffffff;
    color: #181818;
    font-size: 13px;
    font-weight: 560;
    line-height: 1.6;
    box-shadow: 0 1px 0 rgba(24, 24, 24, 0.04);
}

.triage-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 58px;
    padding: 7px 8px 7px 10px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #ffffff;
}

.triage-actions span {
    color: #787774;
    font-size: 12px;
}

.triage-download {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #181818;
    border-radius: 4px;
    color: #ffffff;
    background: #181818;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.triage-tool-button {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dedbd2;
    border-radius: 4px;
    color: #181818;
    background: #fbfbfa;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.triage-tool-button:hover {
    border-color: #181818;
    background: #ffffff;
}

.triage-tool-button:active {
    transform: translateY(1px) scale(0.99);
}

.triage-tool-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.triage-download:hover {
    background: #333333;
}

.triage-download:active {
    transform: translateY(1px) scale(0.99);
}

.triage-download:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.hero-art-panel,
.hero-game-panel,
.hero-triage-panel {
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    transition:
        opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
        clip-path 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art-panel:not(.is-active),
.hero-game-panel:not(.is-active),
.hero-triage-panel:not(.is-active) {
    clip-path: polygon(0 42%, 100% 36%, 100% 58%, 0 64%);
}

/* Mobile copy containment */
@media (max-width: 720px) {
    .hero-inner {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 36px;
        margin-inline: auto;
    }

    .hero-copy,
    .hero-visual,
    .hero-subtitle,
    .hero-quote,
    .hero-actions {
        width: 100%;
        max-width: calc(100vw - 32px) !important;
        min-width: 0;
    }

    .hero h1 {
        font-size: clamp(44px, 16vw, 62px);
        letter-spacing: -0.045em;
    }

    .hero-subtitle,
    .hero-quote,
    .art-caption p {
        overflow-wrap: anywhere;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        overflow: hidden;
    }

    .hero-actions .button {
        min-width: 0;
        width: 100%;
        padding-inline: 12px;
        white-space: nowrap;
    }

    .hero-art {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-art.is-triage-active {
        min-height: 1160px;
        height: auto;
    }

    .hero-art.is-triage-active.is-palette-annotated {
        min-height: 1280px;
        height: auto;
    }

    .triage-tool {
        width: 100%;
    }

    .triage-top {
        padding-right: 96px;
    }

    .triage-metrics {
        grid-template-columns: 1fr;
    }

    .triage-metrics div {
        min-height: 58px;
        border-right: 0;
        border-bottom: 1px solid #eaeaea;
    }

    .triage-metrics div:last-child {
        border-bottom: 0;
    }

    .triage-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .triage-actions button {
        width: 100%;
    }

    .triage-actions span {
        grid-column: 1 / -1;
    }

    .triage-picker {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .triage-picker button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .art-caption {
        max-width: calc(100% - 2px);
    }
}

/* Hero panel shape fix + Layout Lab */
.hero-art::before {
    inset: 7% 0 10% 0 !important;
    border-radius: 8px;
    transform: none !important;
}

.hero-art-panel,
.hero-game-panel,
.hero-layout-panel,
.hero-triage-panel,
.hero-art-panel:not(.is-active),
.hero-game-panel:not(.is-active),
.hero-layout-panel:not(.is-active),
.hero-triage-panel:not(.is-active) {
    clip-path: none !important;
}

.hero-layout-panel {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transition:
        opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-layout-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-art.is-layout-active {
    min-height: 760px;
    height: 760px;
}

.hero-art.is-game-active .kinetic-reticle,
.hero-art.is-layout-active .kinetic-reticle,
.hero-art.is-triage-active .kinetic-reticle {
    opacity: 0;
    pointer-events: none;
}

.layout-tool {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 12px;
    width: min(100%, 610px);
    height: 100%;
    padding: 12px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(24, 24, 24, 0.04);
    overflow: hidden;
}

.layout-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 104px 8px 4px;
    border-bottom: 1px solid #eaeaea;
    color: #787774;
    font-size: 12px;
    font-weight: 760;
}

.layout-top span {
    color: #8d7f5e;
    letter-spacing: 0.08em;
}

.layout-top strong {
    color: #181818;
}

.layout-controls {
    display: grid;
    grid-template-columns: 1fr 0.64fr auto;
    grid-template-areas:
        "kind paper button"
        "title title title"
        "subtitle subtitle subtitle";
    gap: 8px;
}

.layout-controls label:nth-child(1) { grid-area: kind; }
.layout-controls label:nth-child(2) { grid-area: paper; }
.layout-controls label:nth-child(3) { grid-area: title; }
.layout-controls label:nth-child(4) { grid-area: subtitle; }
.layout-controls button { grid-area: button; }

.layout-controls label {
    display: grid;
    gap: 5px;
}

.layout-controls span,
.layout-meta span {
    color: #787774;
    font-size: 12px;
}

.layout-controls input,
.layout-controls select {
    min-height: 44px;
    width: 100%;
    border: 1px solid #e5e5e2;
    border-radius: 4px;
    padding: 8px 10px;
    color: #181818;
    background: #fbfbfa;
    font: inherit;
    font-size: 13px;
}

.layout-controls select {
    cursor: pointer;
}

.layout-controls button,
.layout-meta button {
    min-height: 44px;
    align-self: end;
    border: 1px solid #181818;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    background: #181818;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.layout-controls button:hover,
.layout-meta button:hover {
    background: #333333;
}

.layout-controls button:active,
.layout-meta button:active {
    transform: translateY(1px) scale(0.99);
}

.layout-stage {
    position: relative;
    width: min(100%, 272px);
    min-height: 0;
    aspect-ratio: 1 / 1.414;
    justify-self: center;
    border: 1px solid #e5e5e2;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(24, 24, 24, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 24, 24, 0.04) 1px, transparent 1px),
        #f7f7f3;
    background-size: 28px 28px;
    overflow: hidden;
}

.layout-stage[data-paper="a3"]::before,
.layout-stage[data-paper="a4"]::before {
    content: attr(data-paper);
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 8;
    color: rgba(24, 24, 24, 0.38);
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
}

.layout-block {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(24, 24, 24, 0.13);
    color: #181818;
    background: rgba(255, 255, 255, 0.86);
    font-weight: 780;
    line-height: 1.04;
    letter-spacing: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: transform 240ms ease, background-color 240ms ease;
}

.layout-block-title {
    z-index: 3;
    align-items: flex-start;
    color: #ffffff;
    background: #181818;
}

.layout-block-subtitle {
    z-index: 4;
    color: #181818;
    background: rgba(255, 255, 255, 0.94);
    font-weight: 620;
    line-height: 1.38;
}

.layout-block-image {
    z-index: 2;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(135deg, var(--layout-accent, #8d7f5e), #181818);
    font-size: 12px !important;
}

.layout-block-character {
    z-index: 2;
    justify-content: center;
    color: #ffffff;
    background: #181818;
    font-size: 12px !important;
}

.layout-block-turnaround {
    z-index: 2;
    justify-content: center;
    border-style: dashed;
    color: #181818;
    background: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
}

.layout-block-palette {
    z-index: 4;
    justify-content: center;
    color: #181818;
    background:
        linear-gradient(90deg, #181818 0 33%, #8d7f5e 33% 66%, #eaeaea 66% 100%);
    font-size: 11px !important;
}

.layout-block-notes {
    z-index: 4;
    align-items: flex-start;
    color: #181818;
    background: #ffffff;
    font-size: 12px !important;
    line-height: 1.45;
}

.layout-block-meta {
    z-index: 5;
    justify-content: center;
    border-color: rgba(141, 127, 94, 0.32);
    color: #181818;
    background: #f0eee8;
    font-size: 11px !important;
}

.layout-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #ffffff;
}

.layout-meta div {
    display: grid;
    gap: 2px;
}

.layout-meta strong {
    color: #181818;
    font-size: 13px;
}

.layout-tool code {
    display: block;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    color: #4f4d47;
    background: #fbfbfa;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

@media (max-width: 720px) {
    .hero-art.is-layout-active {
        min-height: 860px;
        height: 860px;
    }

    .layout-tool {
        width: 100%;
    }

    .layout-top {
        padding-right: 96px;
    }

    .layout-controls {
        grid-template-columns: 1fr;
    }

    .layout-stage {
        width: min(100%, 260px);
    }

    .layout-meta {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Final tool additions: ink field + image workbench */
.image-editor-section {
    background: #111111;
    color: #ffffff;
}

.image-editor-shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(24px, 5vw, 72px);
    align-items: end;
}

.image-editor-copy h2 {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: 0;
}

.image-editor-copy p:not(.eyebrow) {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.8;
}

.image-editor-actions {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent),
        rgba(255, 255, 255, 0.035);
}

.image-editor-actions p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.6;
}

.image-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    grid-template-rows: auto 1fr;
    background: #080808;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.image-editor-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.image-editor-modal-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.12em;
}

.image-editor-modal-head button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    letter-spacing: 0;
    cursor: pointer;
}

.image-editor-container {
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 980px) {
    .image-editor-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ink-fluid-canvas {
        display: none;
    }

    .image-editor-actions {
        padding: 16px;
    }
}
