:root {
    --bg-white: #ffffff;
    --bg-light: #f6f6f6;
    --bg-soft: #f0f0f0;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent: #333333;
    --shadow: #9a9a9a;
    --line: rgba(26, 26, 26, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font: "Inter", "Segoe UI", sans-serif;
    --max: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 3rem, var(--max));
    margin-inline: auto;
}

/* ── Intro staircase + enter prompt (Portfolio pattern) ── */
html.skip-intro .intro-overlay {
    display: none;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    overflow: hidden;
    pointer-events: all;
    background: transparent;
}

.intro-overlay.exit {
    pointer-events: none;
}

.stair-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(100% / 14 + 1px);
    background: #0c0c0c;
    transform: translateX(0);
    transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1);
}

.stair-panel:nth-child(1)  { top: calc(100% / 14 * 0);  transition-delay: 0s; }
.stair-panel:nth-child(2)  { top: calc(100% / 14 * 1);  transition-delay: 0.035s; }
.stair-panel:nth-child(3)  { top: calc(100% / 14 * 2);  transition-delay: 0.07s; }
.stair-panel:nth-child(4)  { top: calc(100% / 14 * 3);  transition-delay: 0.105s; }
.stair-panel:nth-child(5)  { top: calc(100% / 14 * 4);  transition-delay: 0.14s; }
.stair-panel:nth-child(6)  { top: calc(100% / 14 * 5);  transition-delay: 0.175s; }
.stair-panel:nth-child(7)  { top: calc(100% / 14 * 6);  transition-delay: 0.21s; }
.stair-panel:nth-child(8)  { top: calc(100% / 14 * 7);  transition-delay: 0.245s; }
.stair-panel:nth-child(9)  { top: calc(100% / 14 * 8);  transition-delay: 0.28s; }
.stair-panel:nth-child(10) { top: calc(100% / 14 * 9);  transition-delay: 0.315s; }
.stair-panel:nth-child(11) { top: calc(100% / 14 * 10); transition-delay: 0.35s; }
.stair-panel:nth-child(12) { top: calc(100% / 14 * 11); transition-delay: 0.385s; }
.stair-panel:nth-child(13) { top: calc(100% / 14 * 12); transition-delay: 0.42s; }
.stair-panel:nth-child(14) { top: calc(100% / 14 * 13); transition-delay: 0.455s; }

.intro-overlay.exit .stair-panel {
    transform: translateX(100%);
}

.intro-overlay.hidden {
    display: none;
}

.enter-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.intro-overlay.exit .enter-prompt {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0.18s;
    transition-duration: 0.35s;
}

.enter-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.intro-logo {
    position: relative;
    width: min(300px, 68vw);
    aspect-ratio: 558 / 336;
    animation: logoDrift 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}

.intro-overlay.exit .intro-logo {
    animation: logoFade 0.28s ease forwards;
}

.intro-slice {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: invert(1) brightness(1.08);
}

.intro-leaf {
    clip-path: polygon(16% 88%, 16% 88%, 16% 88%, 16% 88%);
    transform-origin: 16% 86%;
    animation: leafFromStem 0.62s cubic-bezier(0.16, 1, 0.3, 1) 0.04s forwards;
}

.intro-ch {
    opacity: 0;
    transform-origin: center 80%;
    animation: letterSplash 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-ch:nth-child(2) { clip-path: inset(0 52.33% 0 39.25%); animation-delay: 0.38s; }
.intro-ch:nth-child(3) { clip-path: inset(0 41.58% 0 47.67%); animation-delay: 0.46s; }
.intro-ch:nth-child(4) { clip-path: inset(0 34.41% 0 58.42%); animation-delay: 0.54s; }
.intro-ch:nth-child(5) { clip-path: inset(0 22.94% 0 65.59%); animation-delay: 0.62s; }
.intro-ch:nth-child(6) { clip-path: inset(0 15.23% 0 77.06%); animation-delay: 0.7s; }
.intro-ch:nth-child(7) { clip-path: inset(0 0 0 84.77%); animation-delay: 0.78s; }

.enter-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #fff;
    text-indent: 0.35em;
    opacity: 0;
    animation: enterFadeIn 0.7s 0.55s both;
}

.enter-sub {
    display: none;
}

.enter-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: ringExpand 2.5s ease-out infinite;
    width: 180px;
    height: 180px;
}

.enter-ring-2 {
    width: 260px;
    height: 260px;
    animation-delay: 0.8s;
}

@keyframes leafFromStem {
    0% {
        opacity: 0;
        clip-path: polygon(16% 88%, 16% 88%, 16% 88%, 16% 88%);
        transform: scale(0.3);
    }
    18% { opacity: 1; }
    72% {
        clip-path: polygon(0% 0%, 39.25% 0%, 39.25% 100%, 0% 100%);
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        clip-path: polygon(0% 0%, 39.25% 0%, 39.25% 100%, 0% 100%);
        transform: scale(1);
    }
}

@keyframes letterSplash {
    0% { opacity: 0; transform: translateY(-22px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes logoDrift {
    0% { transform: translateY(0) scale(1); }
    55% { transform: translateY(-4px) scale(1.015); }
    100% { transform: translateY(-2px) scale(1); }
}

@keyframes logoFade {
    to { opacity: 0; }
}

@keyframes ringExpand {
    0%   { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes enterFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes enterPulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealScale {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.reveal-nav {
    animation: revealDown 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: var(--delay, 0s);
}

.reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: var(--delay, 0s);
}

.reveal-scale {
    animation: revealScale 0.9s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    .enter-label,
    .enter-sub,
    .enter-ring {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .intro-leaf {
        animation: none !important;
        clip-path: none;
    }

    .intro-ch {
        display: none;
    }

    .intro-logo {
        animation: none;
    }
}

/* ── Progress / header ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--text-main);
    z-index: 10000;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    background: transparent;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                background 0.3s ease,
                padding 0.3s ease,
                box-shadow 0.3s ease;
    transform: translateY(0);
    will-change: transform, opacity;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
    padding: 0.75rem 0;
}

.header.nav-hidden {
    animation: none !important;
    transform: translateY(-120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                visibility 0.45s;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.4s ease;
}

.brand-logo:hover .nav-logo-img {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-sub-toggle:hover::after,
.nav-sub-toggle.active::after {
    width: 100%;
}

.nav-item {
    position: relative;
}

.nav-sub-toggle {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-sub-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.nav-caret {
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    display: inline-block;
}

.nav-sub {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    min-width: 11.5rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.nav-sub::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 0;
    right: 0;
    height: 0.9rem;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub,
.nav-item.is-open .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-sub a {
    display: block;
    padding: 0.55rem 1rem;
    white-space: nowrap;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.nav-sub a::after {
    display: none;
}

.nav-sub a:hover,
.nav-sub a.active {
    background: var(--bg-soft);
}

.drawer-nav-label {
    margin: 0.75rem 0 0;
    padding: 0.35rem 0.6rem 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.drawer-nav-sub {
    padding-left: 1.4rem;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 1200px) and (min-width: 993px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a,
    .nav-sub-toggle {
        letter-spacing: 0.08em;
        font-size: 0.7rem;
    }
}

.nav-mobile-only {
    display: none;
}

/* ── Clean Minimal Hamburger Menu (ONLY 3 horizontal lines, NO container/box) ── */
.nav-hamburger {
    position: fixed;
    top: 1.35rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 48x48px invisible tap target for easy tapping on mouse and touch */
.nav-hamburger::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: transparent;
}

.nav-hamburger .ham-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main, #111111);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                background-color 0.3s ease;
    transform-origin: center;
}

/* Subtle line shadow ensures high contrast across light and dark page areas */
.nav-hamburger:not(.is-open) .ham-line {
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.85);
}

/* When visible */
.nav-hamburger.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Transform into clean 'X' when open */
.nav-hamburger.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.nav-hamburger.is-open .ham-line {
    background-color: #000000;
}

.nav-hamburger.is-open .ham-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.is-open .ham-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-open .ham-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Mobile-Style Navigation Drawer Backdrop ── */
.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Mobile-Style Navigation Drawer ── */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 86vw);
    background: #ffffff;
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.nav-drawer.is-open {
    transform: translateX(0);
}

.nav-drawer-inner {
    padding: 2.25rem 1.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: space-between;
    gap: 2rem;
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line, rgba(26, 26, 26, 0.08));
}

.nav-drawer-logo-img {
    height: 38px;
    width: auto;
}

.nav-drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer-nav-item {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-main, #1a1a1a);
    padding: 0.75rem 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    touch-action: manipulation;
}

.drawer-nav-item:hover,
.drawer-nav-item:focus {
    background: var(--bg-soft, #f0f0f0);
    color: #000000;
    transform: translateX(4px);
}

.drawer-nav-item.active {
    color: #000000;
    font-weight: 700;
}

.nav-drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line, rgba(26, 26, 26, 0.08));
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-cta {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    touch-action: manipulation;
}

.drawer-meta {
    font-size: 0.82rem;
    color: var(--text-muted, #666666);
    line-height: 1.6;
}

.drawer-meta a {
    color: var(--text-main, #1a1a1a);
    text-decoration: underline;
}

body.menu-open {
    overflow: hidden !important;
}

/* ── Buttons (Portfolio wipe hover) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.btn-dark {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-dark:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-dark:hover::before {
    transform: scaleY(1);
    transform-origin: bottom;
}

.btn-outline {
    background: transparent;
    color: #000;
    border-color: #000;
}

.btn-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover::before {
    transform: scaleY(1);
    transform-origin: bottom;
}

.btn-light {
    background: #fff;
    color: var(--text-main);
}

.btn-light:hover {
    background: var(--bg-soft);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--text-main);
}

.btn-with-icon i {
    font-size: 0.95rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 2.5rem;
    overflow: hidden;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(0, 0, 0, 0.06), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 0, 0, 0.04), transparent 55%),
        linear-gradient(180deg, #fafafa 0%, #ffffff 45%, #f5f5f5 100%);
    z-index: 0;
}

.hero-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-brand {
    display: none;
}

.hero-title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1rem;
    max-width: 16ch;
    min-height: 3.4em;
}

#hero-rotating-text {
    display: block;
    position: relative;
}

#hero-rotating-text .word-roll {
    display: inline-block;
    white-space: nowrap;
}

#hero-rotating-text .char-container {
    display: inline-block;
    overflow: hidden;
    vertical-align: baseline;
    line-height: 1.12;
}

#hero-rotating-text .text-roll-char {
    display: block;
    transition: transform 0.3s ease-in-out;
}

#hero-rotating-text .roll-phrase.is-incoming .text-roll-char {
    transform: translateY(110%);
    transition: none;
}

#hero-rotating-text.is-rolling .roll-phrase.is-leaving .text-roll-char {
    transform: translateY(-110%);
}

#hero-rotating-text.is-rolling .roll-phrase.is-incoming .text-roll-char {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    #hero-rotating-text .text-roll-char {
        transition: none;
        transform: none;
    }
}

.hero-subtitle {
    min-height: 1.6em;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.hero-support {
    color: var(--text-muted);
    max-width: 38ch;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-stage {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.05));
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.45s ease;
}

.hero-logo-stage:hover .hero-logo-img {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.09));
}

.hero-logo-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ── Proof ── */
.proof-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-white);
    padding: 2.5rem 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.stat-number.pop {
    animation: pop 0.35s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Sections ── */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--text-muted);
    max-width: 52ch;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-header-row .section-title {
    margin-bottom: 0.4rem;
}

.section-header-row .btn {
    flex-shrink: 0;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-media {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.about-image-wrapper {
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg-soft);
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image-wrapper:hover .about-photo {
    transform: scale(1.03);
}

.about-media-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-copy p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ── Team (index preview strip) ── */
.team-section {
    padding: 4.5rem 0;
}

/* Row list — full-width, each member as a horizontal strip */
.team-row-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.team-row-item {
    display: grid;
    grid-template-columns: 100px 1.1fr 1.5fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background 0.25s ease;
}
.team-row-item:last-child {
    border-bottom: none;
}
.team-row-item:hover {
    background: var(--bg-soft);
    border-radius: 8px;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Photo with venetian blind effect */
.team-row-photo-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
}
.team-row-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    display: block;
}
.team-row-blind {
    position: absolute;
    top: 0;
    left: calc(var(--i) * 20%);
    width: 20%;
    height: 100%;
    background-image: var(--photo-url);
    background-size: 500% 100%;
    background-position: calc(var(--i) * 25%) center;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.42s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: calc(var(--i) * 0.06s);
    pointer-events: none;
}
/* Activated only when social icon is hovered (JS) */
.team-row-item.color-active .team-row-blind {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.team-row-item.color-active .team-row-photo {
    filter: grayscale(0%);
}

/* Name & role */
.team-row-identity {}
.team-row-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.2rem;
}
.team-row-role {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
}

.team-row-projects {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.team-row-projects a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Bio */
.team-row-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Social icons — far right column, aligned */
.team-row-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    flex-shrink: 0;
}
.team-row-socials li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.team-row-socials a {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: #444;
    border: 1px solid rgba(0,0,0,0.08);
    transition: color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}
.team-row-socials a .icon-fill {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #000;
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.team-row-socials a svg,
.team-row-socials a i {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    font-size: 16px;
    flex-shrink: 0;
    display: block;
    margin: auto;
    transition: color 0.3s ease;
}
.team-row-socials a:hover {
    color: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,0.18);
}
.team-row-socials a:hover .icon-fill { transform: scale(1); }

/* Platform colours on hover */
.team-row-socials a[data-s="linkedin"]:hover  .icon-fill { background: #0288d1; }
.team-row-socials a[data-s="github"]:hover    .icon-fill { background: #24292e; }
.team-row-socials a[data-s="email"]:hover     .icon-fill { background: #ea4335; }
.team-row-socials a[data-s="whatsapp"]:hover  .icon-fill { background: #25d366; }
.team-row-socials a[data-s="portfolio"]:hover .icon-fill { background: #1a1a1a; }

/* Tooltip (above icon) */
.team-row-socials .tip {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s, visibility 0.22s;
}
.team-row-socials li:hover .tip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 900px) {
    .team-row-item {
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto;
    }
    .team-row-bio {
        grid-column: 2 / 3;
    }
    .team-row-socials {
        grid-row: 1 / 3;
        grid-column: 3;
    }
}

@media (max-width: 600px) {
    .team-row-item {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
    }
    .team-row-bio { display: none; }
    .team-row-socials {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .team-row-item:hover {
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid #d6d6d6;
    border-radius: 0;
    padding: 1.15rem 1.2rem 1.35rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(16px);
}

.service-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: #bdbdbd;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.service-card.is-revealed:hover {
    transform: translateY(-3px);
}

.exp-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.85rem;
}

.exp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.service-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    margin-bottom: 0.85rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--text-main);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-items {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.service-items li {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.service-items li::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.45rem;
    vertical-align: middle;
    opacity: 0.55;
}

/* ── Work grid / list ── */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.work-browser {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.work-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.work-category-heading {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.work-category-helper {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 42rem;
}

.work-filter {
    border: 1px solid var(--line);
    background: var(--bg-white);
    color: var(--text-muted);
    padding: 0.65rem 1rem;
    min-height: 44px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.work-filter-count {
    font-weight: 500;
    opacity: 0.85;
}

.work-filter.active,
.work-filter:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

.work-filter.active .work-filter-count,
.work-filter:hover .work-filter-count {
    opacity: 0.9;
}

.work-empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
    padding: 2rem 0;
}

/* View toggle buttons */
.view-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
    overflow: hidden;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--bg-white);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-btn + .view-btn {
    border-left: 1px solid var(--line);
}

.view-btn.active,
.view-btn:hover {
    background: var(--text-main);
    color: #fff;
}

/* ── Grid view (default) ── */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Card base */
.work-card,
.member-card,
.team-row-item {
    scroll-margin-top: 5.5rem;
}

.work-card {
    background: var(--bg-white);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.work-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.work-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
    flex-shrink: 0;
}

.work-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-card-body {
    padding: 1.25rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

/* List view card layout */
.list-view .work-card {
    flex-direction: row;
    transform: none !important;
}

.list-view .work-card:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.list-view .work-card-media {
    width: 240px;
    aspect-ratio: unset;
    flex-shrink: 0;
}

.list-view .work-card-body {
    padding: 1.5rem 1.4rem;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.work-tag {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--line);
    padding: 0.2rem 0.45rem;
}

.work-tag--kind {
    color: var(--text-main);
    font-weight: 600;
    border-color: var(--text-main);
    background: var(--bg-soft);
}

.work-card h3 {
    font-size: 1.1rem;
}

.list-view .work-card h3 {
    font-size: 1.2rem;
}

.work-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
}

.work-meta {
    flex: 0 0 auto;
    margin: 0;
}

.work-meta strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-main);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-built a,
.work-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.work-link:hover {
    opacity: 0.7;
}

/* Private badge overlay on card media */
.work-card-media {
    position: relative;
}

.work-private-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(15, 15, 15, 0.82);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 2;
}

.work-card--private .work-card-media img {
    filter: brightness(0.88) grayscale(0.2);
}

.work-link--locked {
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.65;
}

/* ── How we work ── */
.how-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
}

.how-step {
    padding: 1.35rem 1.15rem 0.25rem 0;
    border-right: 1px solid var(--line);
}

.how-step:last-child {
    border-right: 0;
    padding-right: 0;
}

.how-step:not(:first-child) {
    padding-left: 1.15rem;
}

.how-step-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.how-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.how-step p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ── CTA ── */
.cta-band {
    background: var(--text-main);
    color: #fff;
    padding: 4.5rem 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.6rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 42ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
    position: relative;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

.contact-item h4 {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-white);
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--text-main);
}

.form-success-card {
    position: absolute;
    inset: 0;
    background: var(--bg-light);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.form-success-card.visible {
    display: flex;
    opacity: 1;
}

.success-icon-ring {
    width: 64px;
    height: 64px;
    border: 2px solid var(--text-main);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

/* ── Footer ── */
.footer {
    background: #111;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo,
.footer-brand img,
.footer-col .brand-logo img {
    height: 26px;
    width: auto;
    max-width: 115px;
    object-fit: contain;
    margin-bottom: 0.9rem;
    filter: invert(1) brightness(1.1);
    display: inline-block;
}

.footer-brand p {
    max-width: 36ch;
    font-size: 0.95rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col h5 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    font-size: 0.85rem;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    width: 42px;
    height: 42px;
    background: var(--text-main);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.4rem 0.15rem calc(0.4rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: stretch;
    --bottom-nav-h: 4.25rem;
    min-height: var(--bottom-nav-h);
}

.bottom-nav-link {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    background: none;
    border: 0;
    padding: 0.25rem 0.1rem;
    min-height: 3.25rem;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-link i {
    font-size: 1.35rem;
    line-height: 1;
}

.bottom-nav-label {
    display: block;
}

.bottom-nav-link.active {
    color: var(--text-main);
}

.bottom-nav-link.active i {
    font-weight: 700;
}

.bottom-nav-slot {
    position: relative;
    flex: 1 1 0;
    display: flex;
}

.bottom-nav-slot .bottom-nav-link {
    width: 100%;
}

.bottom-about-menu {
    position: absolute;
    bottom: calc(100% + 0.45rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 10.5rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 0.35rem 0;
    z-index: 2;
}

.bottom-about-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

.bottom-about-menu a:hover,
.bottom-about-menu a.active {
    background: var(--bg-soft);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    body {
        --bottom-nav-h: 4.25rem;
    }

    .work-category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.15rem;
        margin: 0 -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .work-category-nav::-webkit-scrollbar {
        display: none;
    }

    .how-grid {
        grid-template-columns: 1fr 1fr;
    }

    .how-step,
    .how-step:last-child,
    .how-step:not(:first-child) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 1.25rem 0.75rem 1.25rem 0;
    }

    /* Tablet & Mobile: logo stays up top. Links live in the bottom bar. */
    .header .nav-links,
    .header .nav-actions,
    .nav-hamburger,
    .nav-drawer,
    .nav-drawer-backdrop {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(var(--bottom-nav-h) + 0.5rem);
    }

    .back-to-top {
        bottom: calc(var(--bottom-nav-h) + 0.85rem);
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-media {
        max-width: 280px;
        margin-inline: auto;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-logo-stage {
        width: min(340px, 80%);
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 2rem, var(--max));
    }

    .nav-hamburger {
        top: 1.05rem;
        right: 1rem;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7.5vw, 2.7rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .bottom-about-menu {
        bottom: calc(100% + 0.5rem);
    }

    .back-to-top {
        right: 0.85rem;
    }

    .work-grid {
        grid-template-columns: 1fr !important;
    }

    .list-view .work-card-media {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .nav-drawer {
        width: 100vw;
    }

    .nav-drawer-inner {
        padding: 1.75rem 1.25rem 2rem;
    }

    .list-view .work-card {
        flex-direction: column;
    }

    .list-view .work-card-media {
        width: 100%;
        height: 180px;
    }
}
