/* ---- Self-hosted fonts ---- */

/* Manrope */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Cormorant Garamond — normal */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-normal-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-normal-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-normal-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Cormorant Garamond — italic */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-italic-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-italic-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bg-page: #08080f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --ink-strong: #ffffff;
    --ink: rgba(255, 255, 255, 0.87);
    --ink-soft: rgba(255, 255, 255, 0.52);
    --ink-muted: rgba(255, 255, 255, 0.32);
    --line: rgba(255, 255, 255, 0.08);
    --violet: #6c5ce7;
    --violet-deep: #5a4bd6;
    --blue: #3a7bfd;
    --pink: #ff77c4;
    --sun: #ffd36d;
    --radius-card: 28px;
    --max-shell: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: var(--bg-page);
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 119, 255, 0.65) rgba(255, 255, 255, 0.06);
}

::selection {
    background: rgba(255, 211, 109, 0.88);
    color: #08080f;
}

::-moz-selection {
    background: rgba(255, 211, 109, 0.88);
    color: #08080f;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(79, 135, 255, 0.85), rgba(127, 119, 255, 0.85));
    border: 2px solid rgba(8, 8, 15, 0.92);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(79, 135, 255, 1), rgba(127, 119, 255, 1));
}

/* ---- Hero ---- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 24px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 50% at 50% 48%, rgba(127, 119, 255, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 45% 40% at 38% 52%, rgba(79, 135, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 62% 52%, rgba(255, 100, 180, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 50% 50%, rgba(100, 200, 255, 0.06) 0%, transparent 50%);
}

#network-overlay-canvas {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(110vmin, 1100px);
    height: min(110vmin, 1100px);
    z-index: 1;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-brand-name {
    margin: 0 0 28px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: var(--ink-strong);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.hero-title {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--ink-strong);
}

.hero-line {
    display: block;
}

.hero-line-light {
    font-weight: 520;
    color: rgba(255, 255, 255, 0.88);
}

.hero-line-strong {
    font-weight: 780;
}

.hero-line strong {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.06em;
    background: linear-gradient(130deg, #4f87ff 8%, #8672ff 50%, #a48dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-dot-mark {
    display: inline-block;
    width: 0.16em;
    height: 0.16em;
    margin-left: 0.08em;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbbd64, #f88fd0);
    transform: translateY(0.03em);
}

.hero-standfirst {
    margin: 28px auto 0;
    color: var(--ink-soft);
    max-width: 52ch;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.72;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.hero-scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 300ms ease;
}

.hero-scroll-cue:hover {
    color: rgba(255, 255, 255, 0.75);
}

.hero-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ---- Topbar ---- */

.topbar {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 44px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
}

.topbar .brand {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.topbar .topbar-actions {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-strong);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.brand-wording {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 800;
}

.pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(38, 40, 48, 0.92), rgba(22, 23, 29, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.topbar .pill-nav {
    display: none;
}

.pill-nav a {
    text-decoration: none;
    color: rgba(236, 240, 255, 0.54);
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease;
}

.pill-nav a:first-child {
    color: #f5f7ff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pill-nav a:hover,
.pill-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ---- Buttons ---- */

.btn {
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-quiet {
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.btn-quiet:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(132deg, var(--blue), var(--violet) 68%, #9287ff 100%);
    padding: 9px 18px;
    box-shadow: 0 14px 26px rgba(102, 98, 224, 0.25);
}

.btn-hero {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    font-size: 0.9rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.btn-icon {
    margin-left: 8px;
    font-size: 1rem;
    line-height: 1;
}

.btn-light {
    color: #f7f8ff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 22px;
    font-size: 0.86rem;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-violet {
    color: #ffffff;
    background: var(--violet);
    border: 1px solid var(--violet);
    padding: 12px 22px;
    font-size: 0.86rem;
    font-weight: 700;
}

.btn-violet:hover {
    background: var(--violet-deep);
    border-color: var(--violet-deep);
}

/* ---- Content wrap ---- */

.site-wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 56px, var(--max-shell));
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;

    /* Light-theme overrides */
    --ink-strong: #111127;
    --ink: rgba(17, 17, 39, 0.9);
    --ink-soft: rgba(17, 17, 39, 0.62);
    --ink-muted: rgba(17, 17, 39, 0.38);
    --line: rgba(0, 0, 0, 0.08);
}


.site-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background:
        /* Subtle cool wash */
        radial-gradient(ellipse 60% 30% at 15% 15%, rgba(79, 135, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 25% at 85% 60%, rgba(107, 99, 237, 0.05) 0%, transparent 70%);
    background-color: #f4f5f9;
}

.site-wrap-network {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: -1;
    pointer-events: none;
}

/* ---- Section headers ---- */

.section-block {
    padding: 0 6px;
}

.section-block + .section-block {
    margin-top: 160px;
}

.section-block:first-child {
    margin-top: 120px;
}

.section-header {
    margin-bottom: 40px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--violet);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.section-eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(127, 119, 255, 0.1);
    color: var(--violet);
    font-size: 0.9rem;
}

.section-title {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--ink-strong);
    font-weight: 700;
}

/* ---- Principles (tab-panel) ---- */

.principles-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 46, 0.10);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.principles-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.015);
}

.principles-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    text-align: left;
    transition: background 180ms ease, color 180ms ease;
    position: relative;
    overflow: hidden;
}

.principles-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--violet);
    border-radius: 1px;
    pointer-events: none;
}

.principles-nav-btn.is-active .principles-progress {
    animation: principles-fill 4s linear forwards;
}

.principles-nav.is-paused .principles-nav-btn.is-active .principles-progress {
    animation-play-state: paused;
}

@keyframes principles-fill {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .principles-nav-btn.is-active .principles-progress {
        animation: none;
        width: 100%;
    }
}

.principles-nav-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--ink-strong);
}

.principles-nav-btn.is-active {
    background: rgba(127, 119, 255, 0.1);
    color: var(--violet);
}

.principles-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(127, 119, 255, 0.1);
    color: var(--violet);
    font-size: 1rem;
    flex-shrink: 0;
}

.principles-nav-btn.is-active .principles-nav-icon {
    background: var(--violet);
    color: #ffffff;
}

.principles-display {
    position: relative;
    height: 320px;
}

.principles-card {
    position: absolute;
    inset: 0;
    padding: 48px 56px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 280ms ease, transform 280ms ease, visibility 0ms 280ms;
    pointer-events: none;
}

.principles-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 280ms ease, transform 280ms ease, visibility 0ms 0ms;
    pointer-events: auto;
}

.principles-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(127, 119, 255, 0.1);
    color: var(--violet);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.principles-card h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
    font-weight: 700;
}

.principles-card p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 52ch;
}

/* ---- Process (numbered cards) ---- */

.section-block.process {
    position: relative;
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-block.process::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 0;
    background: rgba(107, 99, 237, 0.04);
    border-top: 1px solid rgba(107, 99, 237, 0.08);
    border-bottom: 1px solid rgba(107, 99, 237, 0.08);
}

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

.process-card {
    background: #ffffff;
    border: 1px solid rgba(26, 26, 46, 0.10);
    border-radius: 16px;
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
    transition: background 500ms ease, border-color 500ms ease, box-shadow 500ms ease, transform 500ms ease;
}

.process-card:hover {
    background: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.process-card:hover .process-card-num {
    color: rgba(127, 119, 255, 0.45);
}

.process-card:hover h3 {
    color: #ffffff;
}

.process-card:hover p {
    color: rgba(255, 255, 255, 0.6);
}

.process-card-num {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(127, 119, 255, 0.25);
    margin-bottom: 24px;
    transition: color 500ms ease;
}

.process-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
    font-weight: 700;
    transition: color 500ms ease;
}

.process-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    transition: color 500ms ease;
    line-height: 1.6;
}

/* ---- Problems (bento grid) ---- */

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

.bento-grid .bento-card:nth-child(1) { grid-column: 1 / 6; }
.bento-grid .bento-card:nth-child(2) { grid-column: 6 / 9; }
.bento-grid .bento-card:nth-child(3) { grid-column: 9 / 13; }
.bento-grid .bento-card:nth-child(4) { grid-column: 1 / 5; }
.bento-grid .bento-card:nth-child(5) { grid-column: 5 / 8; }
.bento-grid .bento-card:nth-child(6) { grid-column: 8 / 13; }

.bento-card {
    background: #e4e8f4;
    border: none;
    border-radius: 20px;
    padding: 32px 32px 36px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.02);
    transition: background 500ms ease, box-shadow 500ms ease, transform 500ms ease;
}

.bento-card:hover {
    background: #1a1a2e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bento-card:hover .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #7fb4ff;
}

.bento-card:hover h3 {
    color: #ffffff;
}

.bento-card:hover p {
    color: rgba(255, 255, 255, 0.6);
}

.bento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: auto;
    transition: background 250ms ease, color 250ms ease;
}

.bento-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
    font-weight: 700;
    transition: color 500ms ease;
}

.bento-card p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.58;
    transition: color 500ms ease;
}

/* ---- Projects (stacked split cards) ---- */

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

.project-card {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 46, 0.10);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
    transition: box-shadow 280ms ease, transform 280ms ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.project-card--flip {
    grid-template-columns: 0.6fr 1fr;
}

.project-card--flip .project-card-content {
    order: 2;
}

.project-card--flip .project-card-visual {
    order: 1;
}

.project-card-content {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--violet);
    background: rgba(127, 119, 255, 0.08);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    align-self: flex-start;
}

.project-card-content h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
    font-weight: 700;
}

.project-card-content p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink-muted);
    transition: color 200ms ease;
}

.project-card:hover .project-card-link {
    color: var(--violet);
}

.project-card-link i {
    font-size: 0.9em;
    transition: transform 200ms ease;
}

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

.project-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(127, 119, 255, 0.06), rgba(79, 135, 255, 0.08));
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.project-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(127, 119, 255, 0.08) 0%, transparent 70%);
}

.project-card-glyph {
    font-size: 5.5rem;
    color: rgba(107, 99, 237, 0.45);
    position: relative;
}

.project-card--flip .project-card-visual {
    background: linear-gradient(135deg, rgba(79, 135, 255, 0.08), rgba(127, 119, 255, 0.04));
}

/* ---- Project detail page ---- */

.project-header {
    background: var(--bg-page);
    padding: 0 28px;
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 70% at 70% 60%, rgba(127, 119, 255, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 30% 50%, rgba(79, 135, 255, 0.06) 0%, transparent 60%);
}

.project-header-inner {
    position: relative;
    max-width: var(--max-shell);
    margin: 0 auto;
    padding: 48px 0 56px;
}

.project-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(127, 119, 255, 0.3);
    color: var(--violet);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 200ms ease, border-color 200ms ease;
    margin-bottom: 24px;
}

.project-back:hover {
    background: rgba(127, 119, 255, 0.08);
    border-color: rgba(127, 119, 255, 0.5);
}

.project-category {
    margin: 0 0 8px;
    color: var(--violet);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.project-header h1 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
    max-width: 20ch;
}

.project-body {
    background: #f8f9fc;
    position: relative;
    min-height: 60vh;
}

.project-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 8% 30%, rgba(180, 200, 240, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 45% at 25% 70%, rgba(170, 190, 235, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 55% 45% at 45% 50%, rgba(190, 205, 240, 0.08) 0%, transparent 70%);
}

.project-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 28px 80px;
}

.project-section {
    margin-top: 48px;
}

.project-section:first-child {
    margin-top: 0;
}

.project-section h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    line-height: 1.3;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: #1a1a2e;
}

.project-section p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.72;
    color: #2a2a3e;
}

.project-section p + p {
    margin-top: 1.2em;
}

.project-section a {
    color: var(--violet);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(108, 92, 231, 0.3);
    transition: text-decoration-color 180ms ease;
}

.project-section a:hover {
    text-decoration-color: var(--violet);
}

.project-figure-wrap {
    position: relative;
    width: 100%;
    margin: 32px 0 8px;
    cursor: zoom-in;
}

.project-figure-wrap img {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 46, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transition: box-shadow 250ms ease;
}

.project-figure-wrap:hover img {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
}

.project-figure-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(42, 42, 62, 0.55);
    text-align: center;
    line-height: 1.5;
}

.project-figure-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.project-figure-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.project-figure-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

/* ---- Legal pages ---- */

.legal-layout {
    display: flex;
    justify-content: center;
}

.legal-content {
    max-width: 680px;
}

.legal-meta {
    font-size: 0.85rem;
    color: rgba(42, 42, 62, 0.45);
    margin: 0;
}

.legal-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #2a2a3e !important;
}

.legal-table th,
.legal-table td {
    color: #2a2a3e !important;
}

.legal-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(42, 42, 62, 0.55) !important;
    border-bottom: 1px solid rgba(26, 26, 46, 0.10);
}

.legal-table td {
    padding: 12px 14px;
    vertical-align: top;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    line-height: 1.55;
}

.legal-table code {
    font-family: "Menlo", "Consolas", monospace;
    font-size: 0.82rem;
    background: rgba(26, 26, 46, 0.05);
    color: #2a2a3e !important;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---- End legal pages ---- */

.project-footer {
    background: var(--bg-page);
    padding: 0 28px;
    position: relative;
    overflow: hidden;
}

.project-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 50% 50%, rgba(127, 119, 255, 0.10) 0%, transparent 70%);
}

.project-footer-inner {
    position: relative;
    max-width: var(--max-shell);
    margin: 0 auto;
    padding: 56px 0;
    text-align: center;
}

.project-footer-inner p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.project-footer-meta {
    position: relative;
    max-width: var(--max-shell);
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.project-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: auto;
}

.project-footer-brand .footer-brand-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
}

.project-footer-brand .footer-brand-name {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 180ms ease;
}

.project-footer-brand:hover .footer-brand-name {
    color: rgba(255, 255, 255, 0.8);
}

.project-footer-brand:hover .footer-brand-logo {
    opacity: 1;
}

/* ---- Project sidebar nav ---- */

.project-layout {
    position: relative;
}

.project-sidebar {
    position: absolute;
    right: 80px;
    top: 64px;
    width: 200px;
}

.project-nav {
    position: sticky;
    top: 40px;
}

.project-nav-label {
    margin: 0 0 14px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #9995a0;
}

.project-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.project-nav li {
    padding: 8px 0 8px 16px;
    position: relative;
}

.project-nav li::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 200ms ease;
}

.project-nav li.is-active::before {
    background: #6b63ed;
}

.project-nav li a,
.project-nav li span {
    font-size: 0.82rem;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 200ms ease;
}

.project-nav li a {
    color: #7a7580;
}

.project-nav li a:hover {
    color: #1a1a2e;
}

.project-nav li.is-active span {
    color: #1a1a2e;
    font-weight: 600;
}

/* ---- CTA band ---- */

.cta-band {
    margin-top: 160px;
    padding: 80px 0 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: -80px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background: rgba(58, 123, 253, 0.035);
    border-top: 1px solid rgba(58, 123, 253, 0.08);
}

.cta-heading {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--ink-strong);
}

.cta-sub {
    margin: 20px 0 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 42ch;
}

.btn-cta {
    margin-top: 28px;
    color: #ffffff;
    background: var(--violet);
    border: 1px solid var(--violet);
    padding: 16px 34px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
}

.btn-cta:hover {
    background: var(--violet-deep);
    border-color: var(--violet-deep);
}

/* ---- Closing ---- */

.closing-band {
    margin-top: 0;
    padding: 40px 28px 24px;
    text-align: center;
    position: relative;
    background: var(--bg-page);
    overflow: hidden;
}

.closing-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 50% 50%, rgba(127, 119, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 45% 50% at 38% 55%, rgba(79, 135, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 45% at 65% 45%, rgba(255, 100, 180, 0.05) 0%, transparent 60%);
}

.footer-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-strong);
}

.footer-main {
    position: relative;
    padding: 0;
}

.footer-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
    max-width: 30ch;
    margin-inline: auto;
}

.footer-main .btn-violet {
    margin-top: 18px;
}

.footer-meta {
    position: relative;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: var(--max-shell);
    margin-inline: auto;
}

.footer-meta span {
    color: var(--ink-muted);
    font-size: 0.76rem;
}

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

.footer-links a {
    color: var(--ink-muted);
    font-size: 0.76rem;
    text-decoration: none;
    transition: color 200ms ease;
}

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

/* ---- Reveal animations ---- */

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition:
        opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0ms);
}

[data-reveal="fade-down"] {
    transform: translate3d(0, -18px, 0);
}

[data-reveal="fade-left"] {
    transform: translate3d(24px, 0, 0);
}

[data-reveal="fade"] {
    transform: translate3d(0, 0, 0);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ---- Contact modal ---- */

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.contact-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 15, 0.72);
    backdrop-filter: blur(6px);
}

.contact-modal {
    position: relative;
    width: min(640px, calc(100% - 40px));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 44px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(108, 92, 231, 0.12);
    transform: translateY(24px) scale(0.97);
    transition: transform 300ms ease;
}

.contact-overlay.is-open .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 17, 39, 0.08);
    color: #111127;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease, color 180ms ease;
}

.contact-close:hover {
    background: rgba(17, 17, 39, 0.14);
    color: #111127;
}

.contact-modal-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 780;
    letter-spacing: -0.02em;
    color: #111127;
}

.contact-modal-sub {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: rgba(17, 17, 39, 0.55);
    line-height: 1.5;
}

.contact-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(17, 17, 39, 0.5);
    margin-bottom: 8px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17, 17, 39, 0.12);
    border-radius: 12px;
    background: rgba(17, 17, 39, 0.03);
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    color: #111127;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(17, 17, 39, 0.3);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.contact-field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-field-required {
    color: #e04848;
    font-weight: 700;
}

.contact-field-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(17, 17, 39, 0.35);
    margin-left: 4px;
}

.contact-field.has-error input,
.contact-field.has-error textarea {
    border-color: #e04848;
    box-shadow: 0 0 0 3px rgba(224, 72, 72, 0.1);
}

.contact-field-error {
    display: none;
    font-size: 0.8rem;
    color: #e04848;
    margin-top: 6px;
}

.contact-field.has-error .contact-field-error {
    display: block;
}

.contact-success {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(127, 119, 255, 0.07);
    border: 1px solid rgba(127, 119, 255, 0.2);
    border-radius: 14px;
    color: #1a1a2e;
}

.contact-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--violet);
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-success strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-success p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.contact-submit {
    align-self: flex-start;
    margin-top: 4px;
}

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

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

/* ---- Responsive ---- */

@media (max-width: 1100px) {
    .site-wrap {
        width: min(100% - 28px, var(--max-shell));
    }

    .topbar {
        width: 100%;
    }

    .hero {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 6vw, 5rem);
    }

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

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

    .bento-grid .bento-card:nth-child(n) {
        grid-column: auto;
    }
}

@media (max-width: 740px) {
    .site-wrap {
        width: min(100% - 20px, var(--max-shell));
    }

    .topbar {
        width: 100%;
        padding: 0 12px;
    }

    .topbar .brand {
        left: 12px;
    }

    .pill-nav {
        width: auto;
        max-width: 100%;
        gap: 6px;
        padding: 6px;
    }

    .pill-nav a {
        padding: 9px 14px;
        font-size: 0.76rem;
    }

    .hero-title {
        font-size: clamp(2.42rem, 12vw, 4rem);
    }

    .hero-line {
        white-space: normal;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1;
        min-height: 42px;
    }

    .section-block + .section-block {
        margin-top: 72px;
    }

    .section-block:first-child {
        margin-top: 48px;
    }

    .principles-panel {
        grid-template-columns: 1fr;
    }

    .principles-nav {
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 6px;
        gap: 4px;
    }

    .principles-nav::after {
        display: none;
    }

    .principles-nav-btn {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        padding: 10px 6px;
        gap: 0;
    }

    .principles-nav-label {
        display: none;
    }

    .principles-display {
        height: 280px;
    }

    .principles-card {
        padding: 28px 24px;
    }

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

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

    .bento-grid .bento-card:nth-child(n) {
        grid-column: auto;
    }

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

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card--flip {
        grid-template-columns: 1fr;
    }

    .project-card--flip .project-card-content {
        order: 1;
    }

    .project-card--flip .project-card-visual {
        order: 2;
    }

    .project-card-content {
        padding: 28px 24px;
    }

    .project-card-visual {
        min-height: 160px;
    }

    .closing-band {
        margin-top: 32px;
        padding: 64px 16px;
    }

    .project-content {
        padding: 40px 20px 56px;
    }


    .project-header-inner {
        padding: 32px 0 40px;
    }

    .project-sidebar {
        position: static;
        width: auto;
        padding: 0 20px 56px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin: 40px 20px 0;
    }

    .project-nav {
        position: static;
    }

    .project-nav-label {
        margin-top: 24px;
    }

    .project-nav ul {
        border-left: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .project-nav li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .project-nav li::before {
        display: none;
    }

    .project-layout {
        display: block;
    }

    .contact-modal {
        padding: 36px 24px;
        border-radius: 20px;
    }
}
