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

/* Suppress all transitions until after first paint — prevents white flash on load */
html.preload * { transition: none !important; }

/* ─── VARIABLES ─── */
:root {
    --bg:        #ffffff;
    --bg-2:      #f8fafc;
    --bg-3:      #f0fdfe;
    --dark:      #0f172a;
    --text:      #1e293b;
    --muted:     #64748b;
    --border:    #cbd5e1;
    --cyan:      #0891b2;
    --cyan-dk:   #0e7490;
    --cyan-lgt:  #e0f7fa;
    --cyan-glow: rgba(8, 145, 178, 0.18);
    --radius-sm: 14px;
    --radius:    22px;
    --radius-lg: 32px;
    --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    /* Futura first (system font on macOS/iOS), Jost as Google Fonts fallback */
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ─── CUSTOM CURSOR GLOW ─── */
.cursor-glow {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* ─── NAVBAR ─── */
#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Default: over dark hero → white text */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s var(--ease);
}

.logo-brace {
    flex-shrink: 0;
    opacity: 0.42;
    transition: opacity 0.4s var(--ease);
}

.logo-tree {
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-spring);
}

.logo-studio {
    font-weight: 300;
    letter-spacing: 0.15px;
    opacity: 0.62;
    transition: opacity 0.3s var(--ease);
}

.logo:hover .logo-brace  { opacity: 0.88; }
.logo:hover .logo-tree   { transform: translateY(-2px); }
.logo:hover .logo-studio { opacity: 1; }

#navbar.scrolled .logo { color: var(--dark); }

.accent-dot { color: var(--cyan); }

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.22s var(--ease);
}

.nav-links a:hover              { color: #ffffff; }
#navbar.scrolled .nav-links a  { color: var(--muted); }
#navbar.scrolled .nav-links a:hover { color: var(--dark); }

.nav-cta {
    background: var(--cyan);
    color: #fff;
    padding: 10px 22px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover { background: var(--cyan-dk); }
#navbar.scrolled .nav-cta { background: var(--dark); }
#navbar.scrolled .nav-cta:hover { background: var(--cyan); }

/* ─── HAMBURGER ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
    transform-origin: center;
}

#navbar.scrolled .hamburger span { background: var(--dark); }

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
    position: fixed;
    top: 66px; inset-inline: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 899;
    padding: 8px 28px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu ul { list-style: none; }

.mobile-link {
    display: block;
    text-decoration: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.2s var(--ease);
}

.mobile-link:hover { color: var(--cyan); }

.mobile-cta {
    margin-top: 14px;
    background: var(--cyan) !important;
    color: #fff !important;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 15px 20px !important;
    font-weight: 700 !important;
    border: none !important;
}


/* ─── HERO ─── */
.hero {
    min-height: 100svh;
    background: #070711;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    transition: background 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stars canvas */
.stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: opacity 2s var(--ease);
}

/* Cyan glow blobs on dark */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 1; transition: opacity 1.6s var(--ease); }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
}

.blob-1 {
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(6,182,212,0.22) 0%, transparent 65%);
    top: -200px; right: -120px;
    animation: blobDrift 14s ease-in-out infinite;
}

.blob-2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(8,145,178,0.16) 0%, transparent 65%);
    bottom: -100px; left: -80px;
    animation: blobDrift 18s ease-in-out infinite reverse;
}

.blob-3 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
    top: 50%; left: 38%;
    animation: blobDrift 22s ease-in-out infinite 5s;
}

/* ─── ROCKET ─── */
.rocket-wrap {
    position: absolute;
    bottom: -200px;
    left: -200px;
    z-index: 1;
    pointer-events: none;
}

.rocket-svg {
    width: 90px;
    height: auto;
    transform: rotate(45deg);    /* nose pointing upper-right (NE) */
    filter: drop-shadow(0 0 18px rgba(6,182,212,0.75)) drop-shadow(0 0 48px rgba(6,182,212,0.35));
    opacity: 0.88;
}

/* ─── READY FOR TAKEOFF ─── */
.ready-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.25);
    white-space: nowrap;
}

.ready-text.visible { opacity: 1; }

.rocket-wrap.flying {
    /* linear timing + quadratic keyframe positions = smooth ease-in without per-segment resets */
    animation: rocketDiag 5.5s linear forwards;
}

@keyframes rocketDiag {
    /* X = T²·100vw (quadratic = ease-in acceleration)                   */
    /* Y = -(T²·100 + T·(1-T)·12)vh  →  slight arc: steeper up at start */
    0%   { transform: translate(0, 0);                                               opacity: 0;    }
    6%   { transform: translate(calc(0.4vw),  calc(-1.0vh));                         opacity: 0.88; }
    15%  { transform: translate(calc(2.3vw),  calc(-3.8vh));                         opacity: 0.88; }
    25%  { transform: translate(calc(6.3vw),  calc(-8.5vh));                         opacity: 0.88; }
    35%  { transform: translate(calc(12.3vw), calc(-15.0vh));                        opacity: 0.88; }
    45%  { transform: translate(calc(20.3vw), calc(-23.2vh));                        opacity: 0.88; }
    55%  { transform: translate(calc(30.3vw), calc(-33.2vh));                        opacity: 0.88; }
    65%  { transform: translate(calc(42.3vw), calc(-45.0vh));                        opacity: 0.88; }
    75%  { transform: translate(calc(56.3vw), calc(-58.5vh));                        opacity: 0.88; }
    85%  { transform: translate(calc(72.3vw), calc(-73.8vh));                        opacity: 0.88; }
    92%  { transform: translate(calc(84.6vw), calc(-85.5vh));                        opacity: 0.40; }
    100% { transform: translate(calc(100vw + 320px), calc(-100vh - 320px));          opacity: 0;    }
}

/* ─── HERO INTRO SEQUENCE ─── */
.hero-text,
.hero-visual,
.scroll-hint {
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.rocket-intro .hero-text {
    opacity: 0;
    transform: translateY(22px);
}

.rocket-intro .hero-visual {
    opacity: 0;
    transform: translateY(14px);
    transition-delay: 0.15s;
}

.rocket-intro .scroll-hint {
    opacity: 0;
    transition-delay: 0.3s;
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -30px) scale(1.03); }
    66%       { transform: translate(-15px, 18px) scale(0.97); }
}

/* Hero layout */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

.hero-text { position: relative; width: 100%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cyan-lgt);
    border: 1px solid rgba(6,182,212,0.2);
    color: var(--cyan-dk);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.badge-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulseDot 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(6,182,212,0.4); }
    50%       { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}

.hero-title {
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.06;
    letter-spacing: -2px;
    margin-bottom: 24px;
    transition: color 1.6s var(--ease);
}

.cyan-text {
    color: var(--cyan);
    text-shadow: 0 0 32px rgba(8, 145, 178, 0.25);
}

.text-cycle {
    display: inline-block;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-cycle.switching {
    opacity: 0;
    transform: translateY(-8px);
}

.hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 44px;
    transition: color 1.6s var(--ease);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cyan {
    background: var(--cyan);
    color: #fff;
    padding: 15px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-cyan:hover {
    background: var(--cyan-dk);
    box-shadow: 0 12px 36px rgba(8,145,178,0.35), 0 0 0 4px rgba(8,145,178,0.08);
}

.btn-ghost-dark {
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 15px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.8s var(--ease), background 0.25s var(--ease), color 0.8s var(--ease);
}

.btn-ghost-dark:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(6,182,212,0.08);
}

/* ─── HERO GLOBE VISUAL ─── */
.hero-visual {
    display: none;
}

.globe-canvas {
    width: 440px;
    height: 440px;
    display: block;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.38);
    transition: color 1.2s var(--ease);
}

.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, currentColor, transparent);
    animation: scrollFade 2.4s ease-in-out infinite;
}

.scroll-chevron {
    width: 16px; height: 9px;
    animation: scrollChevron 2.4s ease-in-out infinite;
}

@keyframes scrollFade {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

@keyframes scrollChevron {
    0%, 100% { opacity: 0; transform: translateY(-4px); }
    50%       { opacity: 1; transform: translateY(0); }
}

/* ─── HERO LIGHT STATE (post-rocket intro) ─── */
/* Staggered: background first, then layers, then text — like a sunrise */
.hero.hero-light {
    background: var(--bg);
    /* no delay — background fades first */
}
.hero.hero-light .hero-blobs {
    opacity: 0;
    transition-delay: 0.2s;
}
.hero.hero-light .stars-canvas {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0.4s;
}
.hero.hero-light .hero-title {
    color: var(--dark);
    transition-delay: 0.55s;
}
.hero.hero-light .hero-sub {
    color: var(--muted);
    transition-delay: 0.75s;
}
.hero.hero-light .scroll-hint {
    color: rgba(15, 23, 42, 0.2);
}
.hero.hero-light .btn-ghost-dark {
    border-color: var(--border);
    color: var(--text);
    transition-delay: 0.9s;
}
.hero.hero-light .btn-ghost-dark:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(8,145,178,0.06);
    transition-delay: 0s;
}



/* ─── SERVICES ─── */
.services {
    padding: 120px 0;
    background: var(--bg);
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.label-dim  { color: rgba(255,255,255,0.35); }
.label-light { color: rgba(255,255,255,0.4); }

.section-head h2 {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-head p {
    font-size: 17.5px;
    font-weight: 300;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    cursor: default;
}

.card:hover { box-shadow: 0 24px 64px rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.2); }

.card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.35s var(--ease);
}

.card-icon svg {
    width: 22px; height: 22px;
    color: var(--cyan);
    transition: color 0.35s var(--ease);
}

.card:hover .card-icon {
    background: var(--cyan);
    box-shadow: 0 0 24px rgba(8,145,178,0.3);
}
.card:hover .card-icon svg { color: #fff; }

.card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags span {
    background: var(--bg-2);
    color: var(--muted);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* ─── STATS ─── */
.stats {
    padding: 80px 0;
    background: var(--bg-3);
    border-top: 1px solid rgba(6,182,212,0.1);
    border-bottom: 1px solid rgba(6,182,212,0.1);
}

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

.stat-item {
    text-align: center;
    padding: 20px 16px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(6,182,212,0.15);
}

.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.stat-num {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: -2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-suf {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}


/* ─── REFERENCES ─── */
.references {
    padding: 100px 0;
    background: var(--bg-2);
}

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

.ref-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    text-decoration: none;
    color: inherit;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.ref-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,145,178,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.ref-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(8,145,178,0.1);
    border-color: rgba(8,145,178,0.25);
}

.ref-card:hover::after { opacity: 1; }

.ref-inner { position: relative; z-index: 1; }

.ref-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.ref-name {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 12px;
    transition: color 0.25s var(--ease);
}

.ref-card:hover .ref-name { color: var(--cyan); }

.ref-url {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.ref-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    margin-top: 32px;
    position: relative;
    z-index: 1;
    transition: gap 0.25s var(--ease);
}

.ref-card:hover .ref-cta { gap: 12px; }


/* ─── MISSION ─── */
.mission {
    padding: 140px 28px;
    background: var(--dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.mission-inner { max-width: 740px; margin: 0 auto; position: relative; }

.mission blockquote {
    font-size: clamp(22px, 3.2vw, 40px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.6px;
    margin: 20px 0 28px;
}

.mission p {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
}


/* ─── ABOUT / TEAM ─── */
.about {
    padding: 120px 0;
    background: var(--bg-2);
}

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

.team-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 44px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    border: 1px solid var(--border);
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover { box-shadow: 0 24px 64px rgba(0,0,0,0.06); }

.team-avatar {
    flex-shrink: 0;
    width: 72px; height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--cyan) 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(8,145,178,0.3), 0 0 0 4px rgba(8,145,178,0.08);
}

.team-role {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
}

.team-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
}


/* ─── CONTACT ─── */
.contact {
    padding: 120px 0;
    background: var(--bg-2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.contact-intro { padding-top: 8px; }

.contact-intro h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin: 14px 0 18px;
}

.contact-intro > p {
    font-size: 16.5px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.contact-perks svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--cyan);
    stroke-width: 2.5;
}

/* Form card */
.form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--dark);
}

.req { color: var(--cyan); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}

.form-group input.invalid,
.form-group textarea.invalid,
.select-wrap.invalid select {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,0.1);
}

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

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: -12px;
    margin-bottom: 20px;
}

/* Select */
.select-wrap {
    position: relative;
}

.select-wrap select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.select-wrap select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}

.select-wrap select option[value=""][disabled] { color: #94a3b8; }

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--muted);
    pointer-events: none;
}

/* Error message */
.form-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Submit button */
.form-submit {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    padding: 15px 32px;
}

.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--cyan-lgt);
    border: 2px solid rgba(8,145,178,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 28px; height: 28px;
    color: var(--cyan);
    stroke-width: 2.5;
}

.form-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.form-success p {
    font-size: 15.5px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
}


/* ─── FOOTER ─── */
footer {
    background: var(--dark);
    padding: 36px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-footer { color: #fff; font-size: 15px; }

.footer-copy {
    font-size: 13.5px;
    color: rgba(255,255,255,0.25);
}

.heart {
    color: var(--cyan);
    font-style: normal;
}

.footer-nav { display: flex; gap: 24px; }

.footer-nav a {
    text-decoration: none;
    font-size: 13.5px;
    color: rgba(255,255,255,0.25);
    transition: color 0.22s var(--ease);
}

.footer-nav a:hover { color: rgba(255,255,255,0.7); }


/* ─── REVEAL ANIMATIONS ─── */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

[data-delay="80"]  { transition-delay: 0.08s; }
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="120"] { transition-delay: 0.12s; }
[data-delay="160"] { transition-delay: 0.16s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="240"] { transition-delay: 0.24s; }



/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
    .cards-grid   { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .team-grid    { grid-template-columns: 1fr; }
    .ref-grid     { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-card    { padding: 32px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero-title  { letter-spacing: -1.5px; }
    .hero-visual { display: none; }

    /* Each cycling word + "gemacht." on its own line — no gap, no layout shift */
    .hero-title .text-cycle { display: block; min-width: 0 !important; }
    .hero-title .cyan-text  { display: block; }

    .team-card { flex-direction: column; gap: 20px; padding: 32px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav   { justify-content: center; }
}

@media (max-width: 540px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-cyan, .btn-ghost-dark { text-align: center; justify-content: center; }
    .card { padding: 32px 24px; }
    .form-card { padding: 24px 20px; }
}

/* ─── LEGAL PAGES ─── */
.legal-body #navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); }

.legal-page {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 70vh;
}

.legal-header {
    margin-bottom: 64px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.legal-header .label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.legal-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--dark);
    margin-bottom: 12px;
}

.legal-header p {
    color: var(--muted);
    font-size: 16px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.legal-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 16px 0 8px;
}

.legal-block p {
    color: var(--text);
    line-height: 1.75;
    font-size: 15px;
    margin-bottom: 12px;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul {
    list-style: none;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-block ul li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}

.legal-block a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-block a:hover { border-bottom-color: var(--cyan); }

.placeholder {
    color: var(--cyan-dk);
    font-weight: 600;
    background: var(--cyan-lgt);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
}
