:root {
    color-scheme: dark;
    --color-brand-navy: #021c35;
    --color-brand-green: #24a64f;
    --color-brand-green-soft: #1f8f44;
    --color-page: #021c35;
    --color-page-rgb: 2, 28, 53;
    --color-surface: #032847;
    --color-surface-strong: #0a3558;
    --color-text: #f4f7fa;
    --color-muted: #94a8bc;
    --color-primary: #24a64f;
    --color-primary-soft: #1f8f44;
    --color-secondary: #3d7ea8;
    --color-warm: #e8a317;
    --color-border: rgba(244, 247, 250, 0.1);
    --color-border-strong: rgba(244, 247, 250, 0.18);
    --color-shadow: rgba(0, 0, 0, 0.45);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shell-width: 1180px;
    --shell-gutter: clamp(20px, 3.2vw, 32px);
    --section-space: clamp(80px, 9vw, 128px);
    --header-height: 72px;
    --font-display: "Newsreader", "Georgia", serif;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
    color-scheme: light;
    --color-page: #ffffff;
    --color-page-rgb: 255, 255, 255;
    --color-surface: #f3f6f9;
    --color-surface-strong: #e4ebf2;
    --color-text: #021c35;
    --color-muted: #4a6278;
    --color-primary: #24a64f;
    --color-primary-soft: #1f8f44;
    --color-secondary: #2563eb;
    --color-warm: #d97706;
    --color-border: rgba(2, 28, 53, 0.1);
    --color-border-strong: rgba(2, 28, 53, 0.18);
    --color-shadow: rgba(2, 28, 53, 0.08);
}

[data-theme="contrast"] {
    color-scheme: dark;
    --color-page: #000000;
    --color-page-rgb: 0, 0, 0;
    --color-surface: #0a0a0a;
    --color-surface-strong: #1a1a1a;
    --color-text: #ffffff;
    --color-muted: #d4d4d4;
    --color-primary: #4ade80;
    --color-primary-soft: #22c55e;
    --color-secondary: #38bdf8;
    --color-warm: #fbbf24;
    --color-border: rgba(255, 255, 255, 0.2);
    --color-border-strong: rgba(255, 255, 255, 0.35);
    --color-shadow: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-lightbox-open {
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-brand-navy);
    font-weight: 700;
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.shell {
    width: 100%;
    max-width: var(--shell-width);
    margin: 0 auto;
    padding-left: var(--shell-gutter);
    padding-right: var(--shell-gutter);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 16px;
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.12;
    margin: 0;
    font-weight: 600;
}

.section-title--sm {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.section-title--inverse {
    color: #ffffff;
}

.section-title__accent {
    color: var(--color-primary);
}

.section-lead {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0;
}

.section-lead--inverse {
    color: rgba(255, 255, 255, 0.78);
}

.section {
    padding: var(--section-space) 0;
    position: relative;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 64px;
}

.section-head--center {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-lead--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (max-width: 820px) {
    .section-head {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* === BUTTONS === */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border: 1.5px solid transparent;
    transition: all 200ms var(--ease-out-expo);
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.button--sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.button--lg {
    padding: 16px 28px;
    font-size: 1rem;
}

.button-primary {
    background: var(--color-primary);
    color: var(--color-brand-navy);
    border-color: var(--color-primary);
}

.button-primary:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.button-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.button-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.button-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.button-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* === HEADER === */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-height);
    background: var(--color-page);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease;
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--color-page) 92%, transparent);
    border-bottom-color: var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    color: var(--color-text);
    flex-shrink: 0;
    min-width: 0;
}

.site-brand__logo {
    width: auto;
    height: 40px;
    max-width: min(220px, 42vw);
    object-fit: contain;
    object-position: left center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.theme-switcher {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
}

.theme-switcher button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--color-muted);
    font-size: 0.75rem;
    transition: background 160ms ease, color 160ms ease;
    display: grid;
    place-items: center;
}

.theme-switcher button:hover {
    color: var(--color-text);
}

.theme-switcher button.is-active {
    background: var(--color-primary);
    color: var(--color-brand-navy);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 49;
    padding: 24px var(--shell-gutter);
    background: var(--color-page);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 16px;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu__nav a {
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__nav a:last-child {
    border-bottom: none;
}

@media (max-width: 960px) {
    .site-nav { display: none; }
    .menu-toggle { display: flex; }
    .site-header__actions .button { display: none; }
    .site-brand__logo { height: 34px; max-width: min(180px, 48vw); }
}

@media (max-width: 520px) {
    .theme-switcher { display: none; }
    .site-brand__logo { height: 30px; max-width: min(150px, 52vw); }
}

/* === HERO === */

.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero__brand {
    padding: calc(var(--header-height) + clamp(36px, 6vw, 56px)) 0 clamp(44px, 6vw, 72px);
    background: var(--color-brand-navy);
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 24%, transparent);
    text-align: center;
}

[data-theme="light"] .hero__brand {
    background: #ffffff;
    border-bottom-color: color-mix(in srgb, var(--color-brand-navy) 10%, transparent);
}

[data-theme="contrast"] .hero__brand {
    background: var(--color-brand-navy);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.hero__brand-inner {
    display: flex;
    justify-content: center;
}

.hero__logo {
    width: min(920px, 100%);
    height: auto;
    display: block;
}

.hero__main {
    position: relative;
    padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 55%),
        var(--color-page);
    z-index: -1;
}

[data-theme="light"] .hero__bg {
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 55%),
        var(--color-page);
}

.hero__content {
    text-align: left;
    max-width: 720px;
}

.hero__tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(2.4rem, 5.2vw, 3.75rem);
    line-height: 1.08;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero__title-accent {
    color: var(--color-primary);
    font-style: italic;
}

.hero__lead {
    color: var(--color-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 0 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(48px, 6vw, 72px);
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 200ms ease;
}

.hero__scroll:hover {
    color: var(--color-primary);
}

.hero__scroll-arrow {
    display: inline-block;
    animation: scroll-hint 2.4s var(--ease-out-expo) infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(5px); opacity: 1; }
}

@media (max-width: 600px) {
    .hero__main { padding-bottom: 40px; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .button { width: 100%; }
    .hero__logo { width: min(100%, 520px); }
}

/* === PROBLEMS === */

.problems {
    background: var(--color-page);
}

.problems__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
}

.problems__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.problem-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: start;
}

.problem-item__num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.7;
    padding-top: 2px;
}

.problem-item h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-item p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .problems__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* === ABOUT === */

.about {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 64px;
    align-items: start;
}

.about__head { position: sticky; top: calc(var(--header-height) + 32px); }

.about__lead {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about__promises {
    display: grid;
    gap: 16px;
    margin-top: 36px;
}

.promise {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.promise__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-brand-navy);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 2px;
}

.promise strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.promise p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 820px) {
    .about__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about__head {
        position: static;
    }
}

/* === SOLUTIONS === */

.solutions__bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.solution-card {
    padding: 28px 26px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 240ms ease, transform 240ms var(--ease-out-expo);
}

.solution-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

.solution-card--featured {
    grid-row: span 2;
    padding: 36px 32px;
    background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.solution-card--wide {
    grid-column: span 2;
}

.solution-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.solution-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.solution-card--featured h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.solution-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .solutions__bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-card--featured {
        grid-row: span 1;
        grid-column: span 2;
    }

    .solution-card--wide {
        grid-column: span 2;
    }
}

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

    .solution-card--featured,
    .solution-card--wide {
        grid-column: span 1;
    }
}

/* === PROCESS === */

.process {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: process;
}

.process-step {
    position: relative;
    padding: 28px 24px;
    background: var(--color-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.process-step__num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-brand-navy);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.process-step h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .process__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* === CTA BAND === */

.cta-band {
    padding: clamp(40px, 5vw, 56px) 0;
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 4vw, 40px) clamp(32px, 4vw, 48px);
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
    border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
    border-radius: var(--radius-lg);
}

.cta-band__text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    max-width: 36ch;
    line-height: 1.35;
}

/* === SEGMENTS === */

.segments {
    padding: clamp(48px, 6vw, 72px) 0;
}

.segments__inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.segments__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 28px 0 24px;
    padding: 0;
}

.segments__list li {
    padding: 10px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-surface);
}

.segments__note {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 48ch;
    margin: 0 auto;
}

/* === FAQ === */

.faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.faq__list {
    display: grid;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
    transition: border-color 200ms ease;
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 160ms ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 200ms var(--ease-out-expo);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--color-primary);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

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

/* === REVEAL === */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* === SOLUTIONS (legacy grid removed) === */

/* === WORKS === */

.works {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--color-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 240ms var(--ease-out-expo), border-color 240ms ease, box-shadow 240ms ease;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    font: inherit;
    color: inherit;
}

button.work-card {
    border: 1px solid var(--color-border);
    background: var(--color-page);
}

.work-card:hover,
.work-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
    box-shadow: 0 16px 40px var(--color-shadow);
    outline: none;
}

.work-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 55%),
        var(--color-surface-strong);
    border-bottom: 1px solid var(--color-border);
    display: grid;
    place-items: center;
}

.work-card__cover--mobile {
    aspect-ratio: 4 / 3;
}

.work-card__cover .screenshot-preview {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.work-card__cover .screenshot-preview:not(.screenshot-preview--mobile) .device-phone__bezel {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.work-card__cover .screenshot-preview:not(.screenshot-preview--mobile) .device-phone__notch,
.work-card__cover .screenshot-preview:not(.screenshot-preview--mobile) .device-phone__home-indicator {
    display: none;
}

.work-card__cover .screenshot-preview:not(.screenshot-preview--mobile) .device-phone__screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.work-card__cover .screenshot-preview:not(.screenshot-preview--mobile) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 400ms var(--ease-out-expo);
}

.work-card__cover .screenshot-preview--mobile .device-phone__bezel {
    width: min(42%, 150px);
    max-height: 92%;
}

.work-card__cover .screenshot-preview--mobile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top;
    transition: transform 400ms var(--ease-out-expo);
}

.work-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 400ms var(--ease-out-expo);
}

.work-card:hover .work-card__cover img,
.work-card:focus-visible .work-card__cover img {
    transform: scale(1.04);
}

.work-card__zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(13, 36, 56, 0);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 200ms ease, background 200ms ease;
}

.work-card:hover .work-card__zoom,
.work-card:focus-visible .work-card__zoom {
    opacity: 1;
    background: rgba(2, 28, 53, 0.55);
}

.work-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.work-card__category {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.work-card__title {
    font-size: 1.2rem;
    margin: 0;
}

.work-card__summary {
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 4px 0 0;
}

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

/* === CTA / CONTACT === */

.cta {
    padding: var(--section-space) 0;
    background: var(--color-page);
}

.cta__inner {
    position: relative;
    padding: clamp(48px, 6vw, 80px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 70%),
        var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
}

.cta__copy {
    max-width: 720px;
    margin: 0 auto 40px;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.cta__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cta__meta strong {
    color: #ffffff;
    font-weight: 600;
    margin-right: 6px;
}

[data-theme="light"] .cta__meta {
    color: var(--color-muted);
}

[data-theme="light"] .cta__meta strong {
    color: var(--color-text);
}

@media (max-width: 600px) {
    .cta__inner { padding: 40px 24px; }
    .cta__actions .button { width: 100%; }
    .cta__meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* === FOOTER === */

.site-footer {
    padding: 40px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__brand img {
    width: auto;
    height: 36px;
    max-width: min(200px, 50vw);
    object-fit: contain;
    object-position: left center;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.88rem;
}

.site-footer__nav a {
    color: var(--color-muted);
    transition: color 160ms ease;
}

.site-footer__nav a:hover {
    color: var(--color-primary);
}

.site-footer__contact {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
}

.site-footer__contact a {
    color: var(--color-muted);
    transition: color 160ms ease;
}

.site-footer__contact a:hover {
    color: var(--color-primary);
}

.site-footer__legal {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

@media (max-width: 720px) {
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .site-footer__contact {
        flex-direction: column;
        gap: 8px;
    }
}

/* === LIGHTBOX === */

[hidden] { display: none !important; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    border: none;
    cursor: pointer;
}

.lightbox__dialog {
    position: relative;
    max-width: 1000px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
}

.lightbox__kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 4px;
}

.lightbox__title {
    font-size: 1.15rem;
    margin: 0;
}

.lightbox__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-muted);
    transition: background 160ms ease, color 160ms ease;
}

.lightbox__close:hover {
    background: var(--color-surface-strong);
    color: var(--color-text);
}

.lightbox__stage {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    background: var(--color-page);
    min-height: min(70vh, 560px);
    padding: 24px 72px;
}

.lightbox__preview {
    display: grid;
    place-items: center;
    width: 100%;
    max-height: 70vh;
}

.lightbox__preview:not(.lightbox__preview--mobile) .device-phone__bezel {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.lightbox__preview:not(.lightbox__preview--mobile) .device-phone__notch,
.lightbox__preview:not(.lightbox__preview--mobile) .device-phone__home-indicator {
    display: none;
}

.lightbox__preview:not(.lightbox__preview--mobile) .device-phone__screen {
    width: 100%;
    border-radius: 0;
}

.lightbox__preview:not(.lightbox__preview--mobile) .lightbox__image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox__preview--mobile .device-phone__bezel {
    width: min(280px, 42vw);
    max-height: 70vh;
}

.lightbox__preview--mobile .device-phone__screen {
    max-height: calc(70vh - 42px);
}

.lightbox__preview--mobile .lightbox__image {
    width: 100%;
    height: auto;
    max-height: calc(70vh - 56px);
    display: block;
    object-fit: cover;
    object-position: top;
}

.device-phone__bezel {
    position: relative;
    padding: 10px;
    border-radius: 34px;
    background: linear-gradient(165deg, #2a2a2a 0%, #101010 48%, #050505 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.device-phone__screen {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
}

.device-phone__notch,
.device-phone__home-indicator {
    display: none;
}

.device-phone__notch {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 2;
    width: 34%;
    height: 16px;
    border-radius: 0 0 12px 12px;
    background: #050505;
    transform: translateX(-50%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.device-phone__home-indicator {
    width: 34%;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.42);
}

.lightbox__preview--mobile .device-phone__notch,
.lightbox__preview--mobile .device-phone__home-indicator,
.screenshot-preview--mobile .device-phone__notch,
.screenshot-preview--mobile .device-phone__home-indicator {
    display: block;
}

.lightbox__image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(2, 28, 53, 0.92);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    border: 1px solid var(--color-border-strong);
    backdrop-filter: blur(8px);
    transition: background 160ms ease, color 160ms ease;
}

.lightbox__nav:hover {
    background: var(--color-primary);
    color: var(--color-brand-navy);
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.lightbox__footer {
    padding: 12px 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* === FLOATING CTA === */

.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-brand-navy);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--color-primary) 40%, transparent);
    transition: transform 200ms var(--ease-out-expo), opacity 200ms ease;
}

.floating-cta:hover {
    transform: scale(1.06);
}

.floating-cta.is-visible {
    opacity: 1;
}

@media (min-width: 961px) {
    .floating-cta { display: none !important; }
}
