/* NOX dev. — Dark minimal portfolio */

:root {
    --bg: #030303;
    --bg-elevated: #070707;
    --bg-card: #0c0c0c;
    --bg-card-hover: #121212;
    --text: #ffffff;
    --text-muted: #888888;
    --text-dim: #4a4a4a;
    --border: rgba(255, 255, 255, 0.06);
    --accent: #ffffff; /* Stealth pure white */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --section-pad: clamp(96px, 16vh, 180px);
    --max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
strong { color: var(--text); font-weight: 600; }
strong.accent { color: var(--accent); text-shadow: 0 0 12px rgba(255, 255, 255, 0.1); }

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px;
}

.section:not(.hero) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-pad) 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px 48px;
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 48px;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
    grid-column: 3;
}

.nav-version {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
}

.nav-logo {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.nav-links a {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

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

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    font-size: 12px;
    font-weight: 500;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 100px;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s;
}

.nav-toggle.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ── Section headers ── */
.section-head {
    margin-bottom: 48px;
    max-width: 640px;
}

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

.eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.25s var(--ease), opacity 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn.is-pressed {
    transform: scale(0.97);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

/* ── Hero — Brex-style split ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #000;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: scale(0.96);
}

.hero-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 35%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-inner {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(80px, 10vh, 100px) clamp(24px, 4vw, 56px) clamp(48px, 8vh, 72px);
    min-height: 100vh;
    min-height: 100dvh;
    pointer-events: none;
}

.hero-inner > * {
    pointer-events: auto;
}

.hero-copy {
    max-width: 540px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 24px;
    text-wrap: balance;
    color: #ffffff;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(250, 204, 21, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-rating strong {
    color: #ffffff;
}

.rating-stars {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #facc15 0 90%, rgba(255, 255, 255, 0.22) 90% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.18));
}

.headline-strong,
.headline-mark {
    color: #ffffff;
    font-weight: 700;
}

.headline-mark {
    position: relative;
    display: inline-block;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.16);
}

.headline-mark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.04em;
    height: 0.18em;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.52), rgba(255, 255, 255, 0.16));
}

.headline-boost {
    display: inline-block;
    color: #facc15;
    font-weight: 700;
    text-shadow: 0 0 24px rgba(250, 204, 21, 0.22);
}

.hero-desc {
    font-size: clamp(15px, 1.4vw, 16px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    max-width: 460px;
    margin-bottom: 28px;
}

.hero-desc span {
    color: #ffffff;
    font-weight: 650;
}

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

.hero-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0; /* Silver off-white */
    transition: color 0.3s var(--ease), gap 0.3s var(--ease), border-color 0.3s var(--ease);
    margin-bottom: 32px;
    font-family: var(--font);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2px;
}

.hero-link-arrow:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
    gap: 12px;
}

.hero-link-arrow .arrow {
    transition: transform 0.3s var(--ease);
}

.hero-link-arrow:hover .arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    max-width: 480px;
    margin-top: auto;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    display: block;
    font-size: clamp(32px, 3.6vw, 42px);
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
    line-height: 1;
    color: #ffffff;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* ── Certifications Marquee Strip ── */
.cert-strip {
    margin-top: 28px;
    width: min(calc(100vw - clamp(48px, 8vw, 112px)), 1328px);
    max-width: none;
}

.cert-strip-label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-left: 2px;
}

.cert-marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.cert-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: cert-scroll 26s linear infinite;
    will-change: transform;
}

.cert-marquee-wrapper:hover .cert-marquee-track {
    animation-play-state: paused;
}

@keyframes cert-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 28px;
    white-space: nowrap;
    border-right: 1px solid var(--border);
    transition: opacity 0.3s;
}

.cert-item:last-child {
    border-right: none;
}

.cert-item span {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.cert-marquee-wrapper:hover .cert-item span {
    color: rgba(255, 255, 255, 0.65);
}

.cert-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.82;
    object-fit: contain;
    transition: opacity 0.3s;
}

.cert-marquee-wrapper:hover .cert-logo {
    opacity: 1;
}

/* Globe — full right column with radial spotlight backglow */
.hero-globe-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.hero-globe-layer:active {
    cursor: grabbing;
}

.globe-glow {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.025) 42%, rgba(0, 0, 0, 0) 72%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

#globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* ── About ── */
.about {
    background: var(--bg-elevated);
}

.about-intro {
    max-width: 720px;
    margin-bottom: 56px;
}

.about-intro p {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 22px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.stat-box {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.stat-box:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.stat-num {
    display: block;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.team-card,
.project-card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Beautiful dynamic silver-white glare spotlight that follows the user's cursor */
.team-card::before,
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(350px circle at var(--x, 0) var(--y, 0), rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.005) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
    z-index: 1;
}

.team-card:hover::before,
.project-card:hover::before {
    opacity: 1;
}

.team-card:hover,
.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 255, 255, 0.01);
}

.team-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
}

.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-role {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.5;
}

.team-card p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.45);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    perspective: 1400px;
}

.cap-card {
    min-height: 280px;
    border-radius: 18px;
    outline: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    transform-style: preserve-3d;
}

.cap-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.75s var(--ease);
}

.cap-card:hover .cap-card-inner,
.cap-card:focus-visible .cap-card-inner {
    transform: rotateY(180deg);
}

.cap-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: 34px 30px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.cap-front {
    background:
        radial-gradient(circle at 86% 82%, color-mix(in srgb, var(--cap-accent, #ffffff), transparent 52%) 0%, transparent 18%),
        linear-gradient(145deg, #303030 0%, #1f1f1f 44%, #111111 74%, #080808 100%),
        var(--bg-card);
    color: #ffffff;
}

.cap-front::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--cap-accent, #ffffff);
}

.cap-front::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--cap-accent, #ffffff);
    box-shadow: 0 0 24px color-mix(in srgb, var(--cap-accent, #ffffff), transparent 50%);
}

.cap-back {
    justify-content: center;
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(145deg, color-mix(in srgb, var(--cap-accent, #ffffff), #202020 26%) 0%, #171717 58%, #0b0b0b 100%);
    color: #ffffff;
}

.cap-card:nth-child(1) { --cap-accent: #8b5cf6; }
.cap-card:nth-child(2) { --cap-accent: #38bdf8; }
.cap-card:nth-child(3) { --cap-accent: #f97316; }
.cap-card:nth-child(4) { --cap-accent: #ec4899; }
.cap-card:nth-child(5) { --cap-accent: #22c55e; }
.cap-card:nth-child(6) { --cap-accent: #f43f5e; }

.cap-chip {
    position: absolute;
    left: 30px;
    top: 112px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cap-accent, #ffffff);
}

.cap-flip {
    position: absolute;
    top: 34px;
    right: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cap-icon {
    position: absolute;
    top: 34px;
    left: 30px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--cap-accent, #ffffff), transparent 78%);
    color: var(--cap-accent, #ffffff);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 800;
}

.cap-card h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(20px, 1.7vw, 24px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: 0;
}

.cap-front h3 {
    color: #ffffff;
    max-width: 300px;
    padding-right: 28px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.cap-back h3 {
    margin-bottom: 18px;
    padding-right: 0;
}

.cap-card p {
    position: relative;
    z-index: 1;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.cap-card:focus-visible .cap-face {
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Metrics Banner ── */
.metrics-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 76px) 24px;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
        radial-gradient(circle at 78% 72%, rgba(255, 56, 92, 0.32), transparent 34%),
        linear-gradient(90deg, #ff214f 0%, #ff3b30 50%, #ff7a18 100%);
    color: #070707;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 70px rgba(255, 33, 79, 0.22);
}

.metrics-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.1)),
        radial-gradient(circle at 50% 115%, rgba(0, 0, 0, 0.32), transparent 38%);
}

.metrics-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.metric-item {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 clamp(18px, 3vw, 42px);
    border-right: 1px solid rgba(0, 0, 0, 0.18);
}

.metric-item:last-child {
    border-right: none;
}

.metric-value {
    display: block;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
    color: #050505;
}

.metric-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 650;
    color: rgba(0, 0, 0, 0.72);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Difference Timeline ── */
.difference-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(88px, 11vw, 150px) 24px clamp(110px, 13vw, 180px);
    background:
        radial-gradient(circle at 12% 18%, rgba(167, 255, 0, 0.07), transparent 28%),
        radial-gradient(circle at 86% 34%, rgba(34, 211, 238, 0.06), transparent 30%),
        linear-gradient(180deg, #050505 0%, #030303 100%);
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}

.difference-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(167, 255, 0, 0.4) 0 1px, transparent 1.4px);
    background-size: 280px 240px, 430px 360px;
    background-position: calc(var(--parallax, 0px) * 0.2) 0, calc(var(--parallax, 0px) * -0.12) 80px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.difference-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 42% 24%, rgba(167, 255, 0, 0.36) 0 2px, transparent 3px),
        radial-gradient(circle at 76% 54%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
        radial-gradient(circle at 28% 70%, rgba(167, 139, 250, 0.5) 0 1px, transparent 2px);
    filter: blur(0.2px);
    opacity: 0.7;
}

.difference-wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

.difference-head {
    text-align: center;
    margin-bottom: clamp(56px, 8vw, 92px);
}

.difference-label {
    display: block;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: #a7ff00;
    letter-spacing: 0.58em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(167, 255, 0, 0.45);
}

.difference-head h2 {
    margin: 0;
    font-size: clamp(48px, 8vw, 104px);
    font-weight: 850;
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
}

.difference-head h2 span,
.difference-head h2 strong {
    display: block;
}

.difference-head h2 span {
    color: #ffffff;
}

.difference-head h2 strong {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
    text-stroke: 2px rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}

.difference-timeline {
    position: relative;
    min-height: 1040px;
    --rocket-progress: 0%;
}

.timeline-line {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(167, 255, 0, 0.18);
    box-shadow: 0 0 28px rgba(167, 255, 0, 0.24);
}

.timeline-progress {
    position: absolute;
    inset: 0 0 auto;
    height: var(--rocket-progress);
    background: linear-gradient(180deg, #a7ff00, rgba(167, 255, 0, 0.15));
    box-shadow: 0 0 22px rgba(167, 255, 0, 0.7);
}

.rocket-marker {
    position: absolute;
    top: var(--rocket-progress);
    left: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 255, 0, 0.42), rgba(167, 255, 0, 0.04) 62%, transparent 70%);
    filter: drop-shadow(0 0 16px rgba(167, 255, 0, 0.85));
    transition: top 0.12s linear;
}

.rocket-marker svg {
    width: 34px;
    height: 34px;
    transform: rotate(180deg);
}

.difference-card {
    position: absolute;
    width: min(390px, calc(50% - 82px));
    opacity: 0.36;
    transform: translateY(34px) scale(0.96);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.difference-card:nth-of-type(1) { top: 0%; }
.difference-card:nth-of-type(2) { top: 16%; }
.difference-card:nth-of-type(3) { top: 32%; }
.difference-card:nth-of-type(4) { top: 48%; }
.difference-card:nth-of-type(5) { top: 64%; }
.difference-card:nth-of-type(6) { top: 80%; }

.difference-card.is-left {
    right: calc(50% + 72px);
}

.difference-card.is-right {
    left: calc(50% + 72px);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #050505;
    border: 4px solid var(--accent);
    box-shadow: 0 0 18px var(--accent);
    opacity: 0.5;
    transform: translateY(-50%);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.difference-card.is-left .timeline-dot {
    right: -82px;
}

.difference-card.is-right .timeline-dot {
    left: -82px;
}

.difference-card-inner {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 24px 28px;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 74%);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(12, 12, 12, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.difference-card-inner::after {
    content: '';
    position: absolute;
    inset: -40% -25%;
    opacity: 0;
    background: radial-gradient(circle at 22% 22%, color-mix(in srgb, var(--accent), transparent 78%), transparent 34%);
    transition: opacity 0.45s var(--ease);
}

.difference-icon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    margin-bottom: 13px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent), transparent 34%));
}

.difference-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.05;
    color: var(--accent);
    letter-spacing: 0;
    text-transform: uppercase;
}

.difference-card h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.difference-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.56);
}

.difference-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1.035);
    filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent), transparent 55%));
}

.difference-card.is-active .difference-card-inner,
.difference-card:hover .difference-card-inner {
    border-color: color-mix(in srgb, var(--accent), transparent 34%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 36px color-mix(in srgb, var(--accent), transparent 72%), 0 24px 80px rgba(0, 0, 0, 0.55);
}

.difference-card.is-active .difference-card-inner::after,
.difference-card:hover .difference-card-inner::after {
    opacity: 1;
}

.difference-card.is-active .timeline-dot {
    opacity: 1;
    transform: translateY(-50%) scale(1.22);
}

/* ── Projects ── */
.projects {
    background: var(--bg-elevated);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.project-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ── Project Preview Thumbnail (Iframe) ── */
.project-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #05050a;
    cursor: pointer;
}

.project-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1200px;
    height: 630px;
    border: none;
    transform: scale(var(--base-scale, 0.45));
    transform-origin: top left;
    pointer-events: none;
    transition: filter 0.7s var(--ease);
    filter: saturate(0.9) brightness(0.95);
}

.project-card:hover .project-preview iframe {
    transform: scale(calc(var(--base-scale, 0.45) * 1.05));
    filter: saturate(1.1) brightness(1.02);
}

.project-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 30%, rgba(5, 5, 10, 0.75) 100%),
        linear-gradient(0deg, transparent 70%, rgba(5, 5, 10, 0.2) 100%);
    pointer-events: none;
    transition: background 0.5s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.project-card:hover .preview-cta {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-preview-overlay {
    background:
        linear-gradient(180deg, transparent 10%, rgba(5, 5, 10, 0.6) 100%),
        rgba(0, 0, 0, 0.25);
}

/* Animated shine sweep on hover */
.project-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 55%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease);
    pointer-events: none;
}

.project-card:hover .project-preview::after {
    transform: translateX(120%);
}

/* Content padding */
.project-card-body {
    padding: 28px 36px 36px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.project-card h3 {
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-card-body > p {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    flex-grow: 1;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 5px 13px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.project-card:hover .project-tags span {
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.project-stats {
    display: flex;
    gap: 36px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}

.ps-label {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ps-value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    width: fit-content;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease);
    letter-spacing: 0.01em;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    gap: 12px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.projects-teaser {
    text-align: center;
    padding: 36px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 15px;
}

.teaser-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
}

/* ── Showcase Modal ── */
.showcase-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}

.showcase-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.showcase-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.showcase-modal-content {
    position: relative;
    z-index: 1;
    width: 92vw;
    max-width: 900px;
    height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s var(--ease);
}

.showcase-modal.open .showcase-modal-content {
    transform: scale(1) translateY(0);
}

.showcase-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.showcase-modal-title {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.showcase-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.showcase-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.showcase-modal-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.showcase-modal-body {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1200px;
    height: 630px;
    transform: scale(var(--base-scale, 1));
    transform-origin: top left;
    border: none;
    background: #05050a;
}

.showcase-modal-details {
    padding: 36px 40px;
}

.showcase-modal-details .project-card-body {
    padding: 0;
}

.showcase-modal-details .project-card-body > p {
    font-size: 15px;
    margin-bottom: 24px;
}

/* ── Contact ── */
.contact-wrap {
    max-width: 640px;
}

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

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-submit {
    align-self: flex-start;
    margin-top: 8px;
}

.form-success {
    display: none;
    padding: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.form-success.show {
    display: block;
}

.contact-form.hidden {
    display: none;
}

/* ── Footer ── */
.footer {
    padding: 48px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-nav a {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 12px;
    color: var(--text-dim);
}

/* ── Reveal (only hide when JS runs) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

html.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

html.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.19s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.26s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .rocket-marker,
    .difference-card,
    .difference-card-inner,
    .timeline-dot {
        transition: none;
    }
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-layout::before {
        background: linear-gradient(0deg, #000 0%, #000 45%, rgba(0, 0, 0, 0.6) 75%, transparent 100%);
    }

    .hero-inner {
        min-height: auto;
        padding-top: 45vh;
        padding-bottom: 32px;
    }

    .hero-copy {
        max-width: 100%;
    }

    #globe-canvas {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 100%;
    }

    .hero-stats {
        margin-top: 48px;
    }

    .team-grid,
    .project-grid,
    .metrics-inner {
        grid-template-columns: 1fr;
    }

    .metric-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    }

    .metric-item:last-child {
        border-bottom: none;
    }

    .difference-section {
        padding: 76px 20px 96px;
    }

    .difference-head {
        margin-bottom: 44px;
        text-align: left;
    }

    .difference-label {
        letter-spacing: 0.36em;
    }

    .difference-head h2 {
        font-size: clamp(40px, 10vw, 72px);
    }

    .difference-timeline {
        min-height: auto;
        display: grid;
        gap: 24px;
        padding-left: 46px;
    }

    .timeline-line {
        left: 18px;
        top: 0;
        bottom: 0;
    }

    .rocket-marker {
        width: 40px;
        height: 40px;
    }

    .rocket-marker svg {
        width: 30px;
        height: 30px;
    }

    .difference-card,
    .difference-card.is-left,
    .difference-card.is-right {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
    }

    .difference-card.is-left .timeline-dot,
    .difference-card.is-right .timeline-dot {
        left: -37px;
        right: auto;
    }

    .section:not(.hero) {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

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

    .nav-version,
    .nav-right {
        display: none;
    }

    .nav-logo {
        justify-self: start;
        font-size: 14px;
    }

    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .wrap {
        padding: 0 20px;
    }

    .section:not(.hero) {
        padding: 72px 0;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 36px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        max-width: 100%;
    }

    .cert-strip {
        width: calc(100vw - 40px);
    }

    .hero-stat-num {
        font-size: 24px;
    }

    .hero-inner {
        padding: 42vh 20px 32px;
    }

    .hero-badge {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .section-head h2 {
        font-size: 32px;
    }

    .team-card,
    .project-card {
        padding: 28px 22px;
    }

    .project-card {
        padding: 0;
    }

    .project-card-body,
    .showcase-modal-details {
        padding: 24px 20px;
    }

    .contact-form .btn-submit {
        width: 100%;
        min-height: 48px;
    }

    .field input,
    .field textarea {
        font-size: 16px;
        min-height: 48px;
    }

    .footer {
        padding: 36px 20px;
    }

    .footer-nav {
        gap: 16px;
    }

    .difference-card-inner {
        padding: 24px;
    }

    .difference-card h3 {
        font-size: 20px;
    }

    .difference-card p {
        font-size: 13px;
    }

    [data-tilt] {
        transform: none !important;
    }
}

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

/* ── Templates Banner CTA (Homepage) ── */
.templates-banner {
    min-height: auto !important;
    padding: clamp(80px, 12vh, 140px) 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.templates-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
    pointer-events: none;
}

.templates-banner .section-head {
    margin-bottom: 0;
}

.templates-banner .section-lead {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}
