:root {
    --indigo: #0B1F5C;
    --indigo-light: #FB923C;
    --purple: #0066FF;
    --cyan: #00E5FF;
    --ink: #080B14;
    --ink-2: #0E1424;
    --ink-3: #161D33;
    --paper: #F7F8FC;
    --paper-2: #FFFFFF;
    --slate: #64748B;
    --slate-light: #94A3B8;
    --line: rgba(255, 255, 255, 0.08);
    --line-dark: rgba(10, 14, 26, 0.08);
    --grad-primary: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 60%, var(--cyan) 100%);
    --grad-primary-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(139, 92, 246, 0.14));
    --shadow-soft: 0 20px 60px -20px rgba(79, 70, 229, 0.35);
    --shadow-card: 0 10px 40px -12px rgba(10, 14, 26, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.mono {
    font-family: 'Space Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    overflow-x: clip;
    padding: 100px 0;
    /* Reverts back to normal padding, removing the huge vertical gaps */
}

.section-dark {
    background: var(--ink);
    color: #E7E9F3;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #FFFFFF;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--ink-3);
    background: rgba(11, 31, 92, 0.08);
    border: rgba(79, 70, 229, 0.08);
    padding: 7px 14px 7px 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-dark .tag {
    color: #A5B4FC;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.tag .bracket {
    color: var(--ink);
    font-weight: 600;
}

.eyebrow-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.eyebrow-line .dash {
    width: 24px;
    height: 1px;
    background: var(--ink);
}

h2.headline {
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.12;
}

.lede {
    font-size: 16px;
    color: var(--slate);
    max-width: 520px;
}

.section-dark .lede {
    color: #A9AFC3;
}

.grad-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* The bar itself is now just a transparent positioning layer — the visible
       pill is .nav-inner. This top padding is what "detaches" it from the
       top edge of the screen so it floats. */
    padding: 18px 0;
    transition: padding 0.35s ease;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* The floating capsule */
    background: rgba(8, 11, 20, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 9px 10px 9px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled .nav-inner {
    background: rgba(8, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    padding: 5px 11px;
    border-radius: 999px;
    flex-shrink: 0;
}

.nav-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #C6CBDD;
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -14px rgba(79, 70, 229, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line-dark);
}

.btn-outline-dark:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Inside the floating nav capsule, the CTA is itself a pill so it sits
   flush inside the rounded bar instead of looking like a boxy inset. */
.navbar .btn-sm {
    border-radius: 999px;
    padding: 10px 22px;
}

.magnetic {
    transition: transform 0.15s ease-out, box-shadow 0.25s ease, background 0.25s ease;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.10), rgba(79, 70, 229, 0.06) 42%, transparent 72%);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    will-change: transform;
}

@media (max-width: 899px) {
    .cursor-glow {
        display: none;
    }
}

/* Ripple */

.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

/* Mobile menu */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 7px;
    box-sizing: border-box;
    justify-content: center;
    z-index: 1100;
    flex-shrink: 0;
    margin-left: 3px;
    margin-right: -7px;
}

.hamburger span {
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 340px);
    background: rgba(10, 14, 26, 0.86);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    z-index: 1050;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(.16, 1, .3, 1), visibility 0s linear 0.45s;
    display: flex;
    flex-direction: column;
    padding: 100px 36px 40px;
    gap: 30px;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.mobile-drawer a {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}

.blob-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--indigo), transparent 70%);
    top: -140px;
    left: -110px;
}

.blob-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    bottom: -160px;
    right: -80px;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.38;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.9), transparent 75%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0.6;
}

/* GLASS CARD */

.glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
}

/* CARDS with gradient border hover */

.grad-border-card {
    position: relative;
    border-radius: var(--radius-md);
    background: var(--paper-2);
    padding: 2px;
}

.grad-border-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.grad-border-card:hover::before {
    opacity: 1;
}

.grad-border-inner {
    position: relative;
    z-index: 1;
    background: var(--paper-2);
    border-radius: calc(var(--radius-md) - 2px);
    height: 100%;
    padding: 36px;
    transition: transform 0.35s ease;
}

.grad-border-card:hover .grad-border-inner {
    transform: translateY(-6px);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.icon-box svg {
    width: 26px;
    height: 26px;
    stroke: var(--indigo);
}

/* FOOTER */

.footer {
    background: var(--ink);
    color: #A9AFC3;
    padding: 90px 0 30px;
    position: relative;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(90px, 19vw, 300px);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.03em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.03) 70%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: watermark-shimmer 9s ease-in-out infinite;
}

@keyframes watermark-shimmer {
    0% {
        background-position: 200% 0;
    }
    50% {
        background-position: 0% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.footer>.container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line);
}

.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    font-size: 14.5px;
    color: #A9AFC3;
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: var(--cyan);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 14px;
    border-radius: 10px;
    width: fit-content;
}

.footer-logo img {
    height: 36px;
}

.footer-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.social-icon:hover {
    background: var(--grad-primary);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 14px;
}

.back-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* PAGE HEADER (sub-pages) */

.page-header {
    background: var(--ink);
    padding: 130px 0 70px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(34px, 5vw, 58px);
    color: #fff;
}

.breadcrumb {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--slate-light);
    margin-top: 16px;
}

.breadcrumb .active {
    color: var(--cyan);
}

/* generic reveal target */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    /* Animating opacity + transform only (no filter/blur) keeps this cheap to
       repaint even when 40-100+ elements are revealing on a long page like Work. */
    transition: opacity 0.5s cubic-bezier(.16, 1, .3, 1), transform 0.5s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* --- Directional reveal variants ---
   Everything used to slide up identically, which read as monotonous across a
   whole page. These let a section choose its entrance direction; .reveal.in-view
   above resets the transform, so all of them land in the same final position. */

.reveal-left {
    transform: translateX(-48px);
}

.reveal-right {
    transform: translateX(48px);
}

.reveal-left.in-view,
.reveal-right.in-view {
    transform: translateX(0);
}

.reveal-scale {
    transform: scale(0.94);
}

.reveal-scale.in-view {
    transform: scale(1);
}

/* cascading reveal delays for grid layouts */

.grid-2>.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.grid-3>.reveal:nth-child(1),
.grid-4>.reveal:nth-child(1) {
    transition-delay: 0s;
}

.grid-3>.reveal:nth-child(2),
.grid-4>.reveal:nth-child(2) {
    transition-delay: 0.06s;
}

.grid-3>.reveal:nth-child(3),
.grid-4>.reveal:nth-child(3) {
    transition-delay: 0.12s;
}

.grid-3>.reveal:nth-child(4),
.grid-4>.reveal:nth-child(4) {
    transition-delay: 0.18s;
}

.grid-3>.reveal:nth-child(5),
.grid-4>.reveal:nth-child(5) {
    transition-delay: 0.24s;
}

.grid-3>.reveal:nth-child(6),
.grid-4>.reveal:nth-child(6) {
    transition-delay: 0.30s;
}

.grid-3>.reveal:nth-child(7),
.grid-4>.reveal:nth-child(7) {
    transition-delay: 0.36s;
}

.text-reveal span {
    display: inline-block;
}

/* GRID LAYOUTS */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 28px;
}

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

/* ABOUT */

.value-card {
    padding: 30px 28px;
    border-radius: var(--radius-md);
    background: var(--paper-2);
    border: 1px solid var(--line-dark);
    transition: all 0.35s ease;
}

.value-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.value-card .num {
    font-family: 'Space Mono', monospace;
    color: var(--cyan);
    font-size: 13px;
}

.value-card h4 {
    margin: 14px 0 10px;
    font-size: 19px;
}

.value-card p {
    color: var(--slate);
    font-size: 14.5px;
}

.about-photo-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink);
    padding: 0;
    width: 100%;
    /* Keeps it flexible for small mobile screens */
    max-width: 380px;
    /* The magic line! Stops it from scaling up too large on desktop screens */
    height: auto;
    margin: 0 auto;
    /* Centers the smaller image frame nicely within its column */
}

.about-photo-frame img {
    width: 100%;
    height: auto;
    /* Allows the image to maintain its original height without zooming in */
    display: block;
}

/* Founder photo treatment */

.founder-frame {
    isolation: isolate;
}

.founder-glow-ring {
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), var(--cyan), var(--indigo), var(--purple), var(--cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-rotate 6s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes ring-rotate {
    to {
        --angle: 360deg;
    }
}

.founder-sweep {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
    background-size: 250% 250%;
    background-position: 120% 0%;
    animation: founder-shine 5s ease-in-out 1.2s infinite;
    pointer-events: none;
}

@keyframes founder-shine {
    0%,
    30% {
        background-position: 120% 0%;
    }
    55%,
    100% {
        background-position: -20% 0%;
    }
}

.founder-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(8, 11, 20, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(6, 182, 212, 0.35);
    padding: 8px 14px;
    border-radius: 999px;
}

.founder-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: dot-pulse 1.8s ease-in-out infinite;
}

.stat-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
    flex-wrap: wrap;
    gap: 24px;
}

.stat-strip .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.stat-strip .label {
    font-size: 13px;
    color: var(--slate);
    font-family: 'Space Mono', monospace;
}

/* WHY CHOOSE US */

.why-card {
    display: flex;
    gap: 18px;
    padding: 28px;
    border-radius: var(--radius-md);
}

.why-card .icon-box {
    flex-shrink: 0;
    margin-bottom: 0;
}

.why-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #fff;
}

.why-card p {
    font-size: 14px;
    color: #A9AFC3;
}

/* SERVICES */

.service-card {
    height: 100%;
}

.service-card ul {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.service-card ul li {
    font-size: 14px;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 9px;
}

.service-card ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad-primary);
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 6px;
}

.service-card .desc {
    color: var(--slate);
    font-size: 14.5px;
    margin-bottom: 4px;
}

/* WORK GRID — PROFESSIONAL TILES */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.work-tile {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    /* Lets the browser skip layout/paint for grid cards far off-screen —
       this is the biggest single win for a ~20-project grid like this. */
    content-visibility: auto;
    contain-intrinsic-size: 0 420px;
}

.work-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-soft);
}

.work-tile-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #05070d;
}

.work-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.work-tile:hover .work-tile-img img {
    transform: scale(1.06);
}

.work-tile-img .status-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.35);
    background: rgba(8, 11, 20, 0.75);
    backdrop-filter: blur(6px);
    padding: 5px 11px;
    border-radius: 20px;
}

.work-tile-img .status-pill-live {
    color: #4ADE80;
    border-color: rgba(74, 222, 128, 0.4);
}

.work-tile-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-tile-body h3 {
    color: #fff;
    font-size: 16.5px;
    margin-bottom: 6px;
}

.work-tile-body p {
    color: #A9AFC3;
    font-size: 13px;
    line-height: 1.55;
    flex: 1;
}

.work-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.work-tile-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.work-tile:hover .work-tile-cta svg {
    transform: translateX(4px);
}

.work-section-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 56px 0 22px;
}

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

.work-section-heading h3 {
    color: var(--ink);
    font-size: 19px;
    white-space: nowrap;
}

.work-section-heading .line {
    height: 1px;
    background: var(--line-dark);
    flex: 1;
}

.work-section-heading .count {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--slate-light);
    white-space: nowrap;
}

.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: 92%;
    max-width: 1040px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    z-index: 1000;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.project-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8, 11, 20, 0.6);
    border: 1px solid var(--line);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.25s ease;
}

.project-modal-close:hover {
    background: rgba(8, 11, 20, 0.9);
}

.project-modal-inner.layout-landscape {
    display: flex;
    flex-direction: column;
}

.pm-media {
    width: 100%;
    background: #000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.pm-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    object-fit: cover;
    display: block;
    background: #000;
}

.layout-landscape .pm-body {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 30px;
}

.pm-info .status-pill {
    margin-bottom: 18px;
}

.pm-info h2 {
    color: #fff;
    font-size: 23px;
    margin-bottom: 8px;
}

.pm-tagline {
    color: var(--cyan);
    font-size: 12.5px;
    font-family: 'Space Mono', monospace;
    margin-bottom: 12px;
}

.pm-desc {
    color: #A9AFC3;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.pm-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-meta li {
    font-size: 13px;
    color: #fff;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.pm-meta li span {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.pm-live-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--cyan);
    color: #04121a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.pm-live-link:hover {
    opacity: 0.85;
}

.pm-shots {
    position: relative;
    min-height: 220px;
}

.pm-shots .shot {
    position: absolute;
    width: 82%;
    border-radius: 14px;
    border: 4px solid var(--ink-3);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pm-shots .shot-1 { top: 0; left: 0; transform: rotate(-9deg); z-index: 1; }
.pm-shots .shot-2 { top: 26px; left: 30px; transform: rotate(5deg); z-index: 2; }
.pm-shots .shot-3 { top: 52px; left: 12px; transform: rotate(-4deg); z-index: 3; }
.pm-shots .shot-4 { top: 78px; left: 42px; transform: rotate(7deg); z-index: 4; }

.pm-shots:hover .shot-1 { transform: rotate(-16deg) translate(-18px, 6px); }
.pm-shots:hover .shot-2 { transform: rotate(10deg) translate(20px, -4px); }
.pm-shots:hover .shot-3 { transform: rotate(-8deg) translate(-8px, 14px); }
.pm-shots:hover .shot-4 { transform: rotate(13deg) translate(24px, 18px); box-shadow: 0 26px 60px -10px rgba(0, 0, 0, 0.6); }

.pm-media-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    object-fit: cover;
    display: block;
    background: #000;
}

.pm-shots-2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: unset;
    position: static;
}

.pm-shots-2 .shot {
    position: static;
    width: 100%;
    transform: none !important;
    border-radius: 12px;
}

.pm-shots-2 .shot-wire {
    opacity: 0.85;
}

.pm-shots-2 .shot-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--slate-light);
    text-transform: uppercase;
    margin-bottom: -6px;
}

.project-modal-inner.layout-portrait {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 86vh;
}

.layout-portrait .pm-media {
    width: 38%;
    flex-shrink: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    align-self: stretch;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.layout-portrait .pm-media video {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    max-height: none;
    object-fit: contain;
    display: block;
}

.layout-portrait .pm-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px;
    gap: 16px;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
}

.app-shots-heading {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--slate-light);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.app-shots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.app-shots-grid img {
    width: calc(25% - 9px);
    min-width: 90px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.app-shots-grid img:hover {
    transform: translateY(-4px);
}

/* UI/UX DETAIL LAYOUT — left: full design, right: info + wireframe/final pair */

.project-modal-inner.layout-uiux {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.layout-uiux .pm-media {
    width: 46%;
    flex-shrink: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    align-self: stretch;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-uiux .pm-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #05070d;
}

.layout-uiux .pm-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    min-width: 0;
}

.uiux-pair-row {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.uiux-pair-item {
    flex: 1;
    min-width: 0;
}

.uiux-pair-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: pointer;
}

/* GRAPHIC DESIGN — image fully visible, not cropped */

.pm-media-full {
    width: 100%;
    background: #05070d;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
}

.pm-media-full img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

/* LIGHTBOX */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WORK FILTERS */

.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-pill {
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    color: #475569;
    border: 1px solid var(--line-dark);
    background: #fff;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill:hover {
    color: var(--ink);
    border-color: rgba(10, 14, 26, 0.3);
}

.filter-pill.active {
    color: #fff;
    background: var(--grad-primary);
    border-color: transparent;
}

.work-empty {
    text-align: center;
    color: var(--slate-light);
    font-size: 14px;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* INFO-ONLY MODAL (no media, e.g. games with no screenshots) */

.project-modal-inner.layout-info .pm-body {
    padding: 36px;
}

.pm-feature-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pm-feature-group h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
}

.pm-feature-group ul {
    color: #A9AFC3;
    font-size: 13px;
    line-height: 1.7;
    padding-left: 18px;
}

/* MOBILE APP MINI GRID (combined Flutter portfolio modal) */

.app-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.app-mini-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--ink-3);
}

.app-mini-card > img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
}

.app-mini-card .app-mini-body {
    padding: 12px 14px 16px;
}

.app-mini-card h5 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.app-mini-card p {
    color: #A9AFC3;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.app-mini-card .app-mini-stack {
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    color: var(--cyan);
}

.pair-imgs {
    display: flex;
}

.pair-imgs img {
    width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* TEAM */

.team-card {
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

.team-photo {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: linear-gradient(160deg, #EEF0FB, #E4E7F7);
    flex-shrink: 0;
    width: 100%;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.06);
}

.team-card::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--grad-primary);
    flex-shrink: 0;
}

.team-info {
    padding: 32px 28px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-info h4 {
    font-size: 22px;
    margin-bottom: 6px;
}

.team-info .role {
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    color: var(--indigo);
    margin-bottom: 12px;
}

.team-info p.bio {
    font-size: 13.5px;
    color: var(--slate);
    margin-bottom: 18px;
}

.team-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.team-social a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: var(--slate);
}

.team-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.team-social a:hover {
    background: var(--grad-primary);
    color: #fff;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
}

/* REVIEWS */

.review-card {
    padding: 32px;
    border-radius: var(--radius-md);
    background: var(--paper-2);
    border: 1px solid var(--line-dark);
    height: 100%;
    transition: all 0.35s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.stars svg {
    width: 15px;
    height: 15px;
    fill: #FBBF24;
    stroke: none;
}

.review-card p.quote {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 22px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

.review-author .name {
    font-size: 14.5px;
    font-weight: 600;
}

.review-author .company {
    font-size: 12.5px;
    color: var(--slate);
}

/* CTA BAND */

.cta-band {
    border-radius: 32px;
    margin-top: 80px;
    background: var(--grad-primary);
    padding: 70px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(28px, 3.6vw, 42px);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    margin: 14px auto 34px;
    max-width: 520px;
}

.cta-band .blob {
    opacity: 0.3;
}

/* CONTACT */

.contact-form {
    background: var(--paper-2);
    border-radius: var(--radius-lg);
    padding: 44px;
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 20px;
}

.contact-grid {
    grid-template-columns: 1.45fr 1fr;
}

.phone-input-group input {
    min-width: 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: 'Space Mono', monospace;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    background: var(--paper);
    transition: all 0.25s ease;
    color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--indigo);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-input-group select {
    flex: 0 0 96px;
    width: 96px;
    padding: 14px 8px;
    font-size: 13.5px;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
}

.phone-input-group input {
    flex: 1;
    min-width: 0;
}

.contact-info-card {
    padding: 34px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #fff;
}

.contact-info-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.contact-info-row .icon-box {
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

.contact-info-row .icon-box svg {
    stroke: var(--cyan);
}

.contact-info-row h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-info-row p,
.contact-info-row a {
    color: #A9AFC3;
    font-size: 14px;
}

/* Center helpers */

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-14 {
    margin-bottom: 14px;
}

.mb-60 {
    margin-bottom: 60px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Creates a cascading "wave" effect for elements stacked inside containers */

.section .reveal:nth-child(1) {
    transition-delay: 0.05s;
}

.section .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.section .reveal:nth-child(3) {
    transition-delay: 0.25s;
}

.section .reveal:nth-child(4) {
    transition-delay: 0.35s;
}

.section .reveal:nth-child(5) {
    transition-delay: 0.30s;
}

.contact-info-row a {
    display: inline-block;
    padding: 4px 0;
    margin: -4px 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: 8px;
    background: #fff;
    color: #04060C;
    font-weight: 600;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.legal {
    max-width: 820px;
}

.legal h2 {
    font-size: 22px;
    margin: 36px 0 10px;
}

.legal p {
    color: var(--slate);
    line-height: 1.75;
}

.footer-legal {
    margin-left: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal:hover {
    color: var(--cyan);
}

.contact-info-card h3 {
    color: #fff;
}

.form-group input,
.form-group select {
    height: 48px;
}

@media (min-width: 981px) {
    .page-header-compact {
        padding: 112px 0 36px;
    }
    .page-header-compact h1 {
        font-size: clamp(34px, 3.4vw, 46px);
        line-height: 1.15;
    }
    .page-header-compact .lede {
        margin-top: 10px !important;
        max-width: none;
        font-size: 16px;
    }
    .contact-section {
        padding: 36px 0 70px;
    }
    .contact-section .contact-form {
        padding: 28px 32px;
    }
    .contact-section .form-group {
        margin-bottom: 16px;
    }
    .contact-section .form-group label {
        margin-bottom: 6px;
    }
    .contact-section .form-group input,
    .contact-section .form-group select,
    .contact-section .form-group textarea {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .contact-section .form-group input,
    .contact-section .form-group select {
        height: 44px;
    }
    .contact-section .form-group textarea {
        min-height: 84px;
    }
    .contact-section .contact-info-card {
        padding: 28px;
    }
    .contact-section .contact-info-card h3 {
        margin-bottom: 20px !important;
    }
    .contact-section .contact-info-row {
        margin-bottom: 18px;
    }
}

/* HERO */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 0 50vw;
    background: linear-gradient(180deg, #00112b 0%, #092c59 100%);
    overflow: hidden;
    isolation: isolate;
}

.hero .hero-bg {
    inset: auto 0 0 0;
}

.hero .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(2, 10, 34, 0.5), transparent 70%);
    pointer-events: none;
}

.hero-img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 32%);
    transform-origin: 50% 100%;
    animation: hero-bg-in 1.6s ease-out both;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: auto;
    text-align: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: clamp(10px, 2.9vw, 13px);
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #e8eefc;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: "";
    flex: none;
    width: 24px;
    height: 1px;
    background: rgba(232, 238, 252, 0.55);
}

.hero-eyebrow span {
    color: #1aa0ff;
    font-weight: 700;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 10vw, 4.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 6px 40px rgba(2, 8, 30, 0.5);
}

.hero-line {
    display: block;
}

.hero-accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #1aa8ff, #0a78ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 22px rgba(20, 140, 255, 0.45));
}

.hero-swoosh {
    position: absolute;
    left: -2%;
    bottom: -0.14em;
    width: 104%;
    height: 0.2em;
    overflow: visible;
}

.hero-sub {
    max-width: 34em;
    margin-top: 16px;
    font-size: clamp(0.95rem, 3.9vw, 1.1rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(220, 228, 248, 0.88);
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(2, 8, 30, 0.7);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    margin-top: 24px;
}

.hero .hero-cta {
    gap: 10px;
    padding: 14px 22px;
    border: 1px solid rgba(120, 200, 255, 0.5);
    border-radius: 999px;
    font-size: 0.95rem;
    background: linear-gradient(180deg, #22a9ff 0%, #0b6cff 100%);
    box-shadow: 0 12px 36px -10px rgba(16, 128, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

.hero-watch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.hero-play {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(110, 180, 255, 0.6);
    border-radius: 50%;
    background: rgba(8, 26, 70, 0.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-play svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.hero-watch:hover .hero-play {
    transform: scale(1.08);
    background: rgba(20, 120, 255, 0.35);
}

.hero-scroll {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin-inline: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.hero-mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
}

.hero-mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: hero-wheel 1.8s ease-in-out infinite;
}

.hero-scroll svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    animation: hero-chevron 1.8s ease-in-out infinite;
}


/* ===== BRAND (favicon mark + "Craft Solve" wordmark) ===== */
.nav-logo { gap: 9px; padding: 5px 16px 5px 10px; }
.nav-logo .nav-logo-mark { height: 30px; width: 30px; object-fit: contain; }
.nav-logo .nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 21px;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}
.nav-logo .nav-logo-text { color: #0E8F8F; }
.nav-logo .nav-logo-text b { font-weight: 500; color: #14213D; }

/* ===== SOCIAL DROPDOWN (desktop) ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #C6CBDD;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.25s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: #fff; }
.nav-dropdown-toggle .chev,
.drawer-social-toggle .chev { transition: transform 0.25s ease; }
.nav-dropdown.open .chev,
.drawer-social.open .chev { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    min-width: 210px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(8, 11, 20, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}
.nav-links .nav-dropdown-menu a.social-item,
.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #E3E7F3;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-links .nav-dropdown-menu a.social-item:hover,
.social-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.social-item svg { width: 20px; height: 20px; flex-shrink: 0; color: #2CC5C5; }

/* ===== SOCIAL (mobile drawer) ===== */
.drawer-social-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    background: none;
    border: 0;
    padding: 5px 0;
    cursor: pointer;
}
.drawer-social-list {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding-left: 4px;
}
.drawer-social.open .drawer-social-list { display: flex; }
.mobile-drawer .drawer-social-list a.social-item {
    font-size: 17px;
    font-weight: 500;
    padding: 9px 12px;
    color: #E3E7F3;
}


/* ===== Brand without white pill (transparent, on dark nav) ===== */
.nav-logo { background: transparent; padding: 2px 8px 2px 4px; }
.nav-logo .nav-logo-mark { height: 34px; width: 34px; }
.nav-logo .nav-logo-text { color: #2CC5C5; font-size: 22px; }
.nav-logo .nav-logo-text b { color: #fff; }


/* ===== LIGHT NAV BAR + exact logo colours ===== */
.nav-inner {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}
.navbar.scrolled .nav-inner {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.20);
}
.nav-logo { background: transparent; }
.nav-logo .nav-logo-text { color: #0E9A9A; }
.nav-logo .nav-logo-text b { color: #14213D; }

.nav-links a,
.nav-dropdown-toggle { color: #4A5368; }
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: #0B1020; }

.nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}
.nav-links .nav-dropdown-menu a.social-item { color: #1F2937; }
.nav-links .nav-dropdown-menu a.social-item:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0B1020;
}
.nav-dropdown-menu .social-item svg { color: #0E9A9A; }

.hamburger span { background: #14213D; }

/* ===== HOME CTA BANNER (picture) ===== */
.cta-banner-link {
    display: block;
    border-radius: 4% / 10.1%;
    overflow: hidden;
    margin-top: 80px;
    box-shadow: 0 24px 60px -20px rgba(11, 79, 200, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -18px rgba(11, 79, 200, 0.55);
}
.cta-banner-link img { display: block; width: 100%; height: auto; }
.cta-band-mobile { display: none; }
@media (max-width: 767px) {
    .cta-banner-link { display: none; }
    .cta-band-mobile { display: block; }
}


/* ===== GLASS NAV BAR ===== */
.nav-inner,
.navbar.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.70);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 32px rgba(8, 16, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.navbar.scrolled .nav-inner { background: rgba(255, 255, 255, 0.80); }
.nav-links a,
.nav-dropdown-toggle { color: #1B2236; }
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: #0B1020; }
.nav-logo .nav-logo-text { color: #086D6D; }
.nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}


/* Smaller, centred CTA banner on the home page */
.cta-banner-link {
    width: 100%;
    max-width: 980px;
    margin: 56px auto 0;
}


/* ===== GLASSMORPHISM NAV (final) ===== */
.nav-inner,
.navbar.scrolled .nav-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.40) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 10px 34px rgba(8, 16, 40, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.navbar.scrolled .nav-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.52) 100%);
}
.nav-links a,
.nav-dropdown-toggle { color: #0B1020; font-weight: 500; }
.nav-links a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: #000; }
.nav-logo .nav-logo-text { color: #065B5B; }
.nav-dropdown-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 44px rgba(8, 16, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* ===== HOME CTA CARD (picture background + live text & button) ===== */
.cta-card {
    container-type: inline-size;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 980px;
    margin: 56px auto 0;
    aspect-ratio: 1739 / 686;
    border-radius: clamp(24px, 4vw, 40px);
    overflow: hidden;
    background: #0a3fc4 url(../images/cta-bg.jpg) center / cover no-repeat;
    box-shadow: none;
}
.cta-card-text { position: relative; z-index: 2; padding-left: 6.2cqw; max-width: 64cqw; }
.cta-card h2 {
    margin: 0 0 1.6cqw;
    font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 4.5cqw;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.02em;
    color: #fff;
}
.cta-card p {
    margin: 0 0 3.2cqw;
    max-width: 47cqw;
    font-size: 2cqw;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}
.cta-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2cqw;
    padding: 1.7cqw 3.2cqw;
    border-radius: 999px;
    background: #fff;
    color: #0b1b5e;
    font-weight: 600;
    font-size: 1.9cqw;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(5, 20, 90, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-card-btn svg { width: 1.2em; height: 1.2em; transition: transform 0.25s ease; }
.cta-card-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(5, 20, 90, 0.45); }
.cta-card-btn:hover svg { transform: translateX(4px); }

@media (max-width: 767px) {
    .cta-card {
        display: block;
        aspect-ratio: auto;
        margin-top: 40px;
        padding: 34px 24px calc(min(62vw, 300px) - 6px);
        background: linear-gradient(170deg, #04268f 0%, #0540c4 42%, #0a68ee 72%, #11a6ff 100%);
    }
    .cta-card::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -10px;
        height: calc(min(62vw, 300px) + 10px);
        background: url(../images/cta-bg-mobile.jpg) 100% 50% / cover no-repeat;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
        pointer-events: none;
    }
    .cta-card-text { padding: 0; max-width: none; }
    .cta-card h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 8.6vw, 2.5rem); white-space: normal; }
    .cta-card p { margin: 0 0 22px; max-width: 26em; font-size: 1rem; }
    .cta-card-btn { gap: 10px; padding: 15px 26px; font-size: 1rem; }
}


/* ===== CTA CARD: wider (full container) and slimmer ===== */
@media (min-width: 768px) {
    .cta-card {
        max-width: none;
        aspect-ratio: 3.8 / 1;
        min-height: 240px;
        border-radius: clamp(24px, 3vw, 36px);
        background: linear-gradient(100deg, #03238a 0%, #0436b0 38%, #0546cf 70%);
    }
    .cta-card::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: -10px;
        right: 0;
        aspect-ratio: 1739 / 686;
        background: url(../images/cta-bg.jpg) center / 100% 100% no-repeat;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
        pointer-events: none;
    }
    .cta-card-text { padding-left: 5cqw; max-width: 60cqw; }
    .cta-card h2 {
        font-size: clamp(1.6rem, 3.5cqw, 2.8rem);
        margin-bottom: clamp(8px, 1.1cqw, 14px);
    }
    .cta-card p {
        font-size: clamp(0.9rem, 1.5cqw, 1.12rem);
        max-width: 52cqw;
        text-wrap: balance;
        margin-bottom: clamp(16px, 2.2cqw, 28px);
    }
    .cta-card-btn {
        gap: clamp(8px, 0.9cqw, 12px);
        padding: clamp(11px, 1.15cqw, 15px) clamp(22px, 2.4cqw, 32px);
        font-size: clamp(0.9rem, 1.45cqw, 1.08rem);
    }
}
/* mobile: a bit slimmer too */
@media (max-width: 767px) {
    .cta-card {
        padding: 28px 22px calc(min(52vw, 240px) - 6px);
    }
    .cta-card::after { height: calc(min(52vw, 240px) + 10px); }
}
