/* ============================================
   VELES LABS — Matte Black + Deep Emerald
   State-of-the-art luxury theme
   ============================================ */

:root {
    /* Matte Black Palette */
    --black: #0a0a0a;
    --black-soft: #111111;
    --black-card: #131313;
    --black-border: #1a1a1a;
    --black-hover: #1e1e1e;

    /* Neutrals */
    --gray-900: #1a1a1a;
    --gray-800: #252525;
    --gray-700: #333333;
    --gray-600: #444444;
    --gray-500: #666666;
    --gray-400: #888888;
    --gray-300: #aaaaaa;
    --gray-200: #cccccc;
    --gray-100: #e5e5e5;
    --white: #f0f0f0;
    --white-pure: #ffffff;

    /* Accent — Veles Green (matched to logo) */
    --accent: #14ac5a;
    --accent-light: #1ccc6f;
    --accent-glow: rgba(20, 172, 90, 0.15);
    --accent-soft: rgba(20, 172, 90, 0.08);
    --accent-border: rgba(20, 172, 90, 0.2);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Cinzel', 'Times New Roman', serif;

    /* Spacing */
    --section-pad: clamp(80px, 12vw, 160px);
    --container-max: 1240px;
    --grid-gap: clamp(24px, 4vw, 48px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.6s;
    --duration-fast: 0.3s;
    --duration-slow: 1s;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--gray-300);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

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

strong {
    font-weight: 500;
    color: var(--white);
}

em {
    font-family: inherit;
    font-style: normal;
    color: var(--accent-light);
}

/* Branded "V" — used in every visible mention of "Veles" on the site */
.veles-v {
    color: var(--accent-light);
    font-weight: inherit;
    font-family: inherit;
    font-style: inherit;
}

/* Keep the emphasised phrase in our big titles from breaking mid-phrase on
   mobile. e.g. "Intelligent systems, built to scale." should wrap at the
   comma, never between "built" and "to scale." */
.services-title em,
.projects-title em,
.hero-tagline em {
    white-space: nowrap;
}

/* ---- Particles Canvas ---- */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
}

/* ---- Section Defaults ---- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.section-number {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    line-height: 1;
}

.section-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.6;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
    z-index: 0;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn span, .btn svg { position: relative; z-index: 1; }

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    color: var(--white-pure);
}

.btn-primary svg {
    transition: transform var(--duration-fast) ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-ghost:hover {
    color: var(--white);
    border-color: var(--accent);
}

.btn-ghost::before {
    background: var(--accent-soft);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 14px;
}

/* Magnetic class — JS applies transform */
.magnetic {
    will-change: transform;
    transition: transform 0.3s var(--ease-elastic);
}


/* ============================================
   NAVIGATION — Hidden Corner Menu
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.nav-brand {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 1001;
    pointer-events: auto;
}

.nav-brand a {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--white);
    opacity: 0.75;
    transition: opacity var(--duration-fast) ease, color var(--duration-fast) ease;
    text-decoration: none;
    mix-blend-mode: difference;
}

.nav-brand a:hover { opacity: 1; color: var(--accent-light); }

.nav-trigger {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    mix-blend-mode: difference;
    pointer-events: auto;
}

.nav-trigger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white-pure);
    transition: all 0.4s var(--ease-out);
    transform-origin: center;
}

.nav-trigger:hover span:first-child {
    transform: translateX(4px);
}

.nav-trigger:hover span:last-child {
    transform: translateX(-4px);
}

.nav-trigger.active span:first-child {
    transform: rotate(45deg) translateY(3.5px);
}

.nav-trigger.active span:last-child {
    transform: rotate(-45deg) translateY(-3.5px);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;                     /* handle mobile browser chrome */
    background: var(--black);           /* solid carries through when menu scrolls */
    clip-path: circle(0% at calc(100% - 56px) 56px);
    transition: clip-path 0.8s var(--ease-out);
    pointer-events: none;
    overflow: hidden;
}

.nav-overlay.active {
    clip-path: circle(150% at calc(100% - 56px) 56px);
    pointer-events: auto;
    overflow-y: auto;                   /* allow the whole menu to scroll when content exceeds viewport */
    overscroll-behavior: contain;       /* don't bleed scroll into the page behind */
    -webkit-overflow-scrolling: touch;  /* momentum scroll on iOS */
}

/* Layered background with subtle gradient orb */
.nav-overlay-bg {
    position: absolute;
    inset: 0;
    background: var(--black);
    z-index: 0;
}

.nav-overlay-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(20,172,90,0.06) 0%, transparent 60%);
    animation: navGlow 6s ease-in-out infinite;
}

.nav-overlay-bg::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(20,172,90,0.03) 0%, transparent 60%);
    animation: navGlow 8s ease-in-out infinite reverse;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.nav-content {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 100px clamp(24px, 5vw, 48px) 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;        /* nav links + contact info stay grouped near the top */
    gap: 32px;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: clamp(20px, 3.2vw, 36px);
    font-weight: 400;
    color: var(--gray-600);
    padding: 6px 0;
    transition: all 0.4s ease;
    transform: translateY(40px);
    opacity: 0;
    border-bottom: 1px solid var(--black-border);
    position: relative;
    overflow: hidden;
}

.nav-overlay.active .nav-link {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay.active .nav-link:nth-child(1) { transition-delay: 0.12s; }
.nav-overlay.active .nav-link:nth-child(2) { transition-delay: 0.17s; }
.nav-overlay.active .nav-link:nth-child(3) { transition-delay: 0.22s; }
.nav-overlay.active .nav-link:nth-child(4) { transition-delay: 0.27s; }
.nav-overlay.active .nav-link:nth-child(5) { transition-delay: 0.32s; }
.nav-overlay.active .nav-link:nth-child(6) { transition-delay: 0.37s; }
.nav-overlay.active .nav-link:nth-child(7) { transition-delay: 0.42s; }
.nav-overlay.active .nav-link:nth-child(8) { transition-delay: 0.47s; }
.nav-overlay.active .nav-link:nth-child(9) { transition-delay: 0.52s; }
.nav-overlay.active .nav-link:nth-child(10) { transition-delay: 0.57s; }

.nav-link::before {
    content: attr(data-index);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gray-700);
    min-width: 28px;
    transition: all 0.4s var(--ease-out);
}

.nav-link-text {
    transition: transform 0.4s var(--ease-out);
    display: inline-block;
}

/* Emerald accent line that sweeps in on hover */
.nav-link-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.nav-link:hover {
    color: var(--white-pure);
}

.nav-link:hover .nav-link-text {
    transform: translateX(12px);
}

.nav-link:hover .nav-link-hover-line {
    transform: scaleX(1);
}

.nav-link:hover::before {
    color: var(--accent-light);
    transform: translateX(4px);
}

.nav-link--cta {
    color: var(--accent);
    opacity: 0.7;
}

.nav-link--cta:hover {
    opacity: 1;
    color: var(--accent-light);
}

/* Divider between links and footer */
.nav-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.6s var(--ease-out) 0.45s;
}

.nav-overlay.active .nav-divider {
    opacity: 0.5;
    transform: scaleX(1);
}

.nav-footer {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--duration) var(--ease-out) 0.5s;
    width: 100%;
    border-top: 1px solid var(--black-border);
    padding-top: 16px;
    margin-top: 16px;
    flex-shrink: 0;
}

.nav-overlay.active .nav-footer {
    transform: translateY(0);
    opacity: 1;
}

.nav-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}

.nav-footer-col a {
    font-size: 16px;
    color: var(--gray-300);
    position: relative;
    display: inline-block;
}

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

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

.nav-footer-col a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    z-index: 1;
}

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

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(20,172,90,0.06) 0%, transparent 60%);
    animation: heroGradientPulse 8s ease-in-out infinite;
}

.hero-gradient-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(20,172,90,0.03) 0%, transparent 60%);
    animation: heroGradientPulse 12s ease-in-out infinite reverse;
}

@keyframes heroGradientPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---- Hero Logo — Centrepiece ---- */
.hero-logo {
    margin-bottom: 24px;
    width: 100%;
    max-width: clamp(200px, 28vw, 360px);
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1);
    transition: filter 0.4s ease;
}

/* ---- Thin accent divider below logo ---- */
.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    margin-bottom: 28px;
}

/* ---- Hero Tagline ---- */
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.hero-tagline em {
    color: var(--accent-light);
    position: relative;
}

.hero-tagline em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out) 1s;
}

.hero-tagline.revealed em::after {
    transform: scaleX(1);
}

.hero-sub {
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.8;
    color: var(--white);
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-sub em {
    color: var(--accent-light);
    font-style: normal;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-600);
    z-index: 1;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}


/* ============================================
   MARQUEE
   ============================================ */

.marquee {
    border-top: 1px solid var(--accent-border);
    border-bottom: 1px solid var(--accent-border);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: rgba(20, 172, 90, 0.04);
}

.marquee-track {
    display: flex;
    gap: 32px;
    align-items: center;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
}

.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--white);
    opacity: 1;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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


/* ============================================
   ORIGIN SECTION — Pyramid Layout
   ============================================ */

.origin {
    border-top: none;
    position: relative;
    overflow: hidden;
}

.origin-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    z-index: 0;
}

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

.origin .section-header {
    text-align: left;
}

.origin-pyramid-top {
    text-align: center;
}

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

/* Tier 1: The name — large, centered, top of pyramid */
.origin-pyramid-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.origin-word-meta {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.5;
    margin-bottom: 8px;
}

.origin-word-name {
    font-family: var(--font-sans);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    font-style: normal;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.origin-word-pronunciation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.origin-word-phonetic {
    font-family: var(--font-sans);
    font-size: clamp(13px, 1.4vw, 18px);
    font-weight: 300;
    color: var(--gray-300);
    letter-spacing: 0.04em;
}

.origin-word-say {
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 400;
    color: var(--accent-light);
    letter-spacing: 0.08em;
}

/* Tier 2: Tagline — medium, centered */
.origin-tagline {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.2vw, 40px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--white);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(48px, 7vw, 80px);
}

/* Tier 3: Story — two columns, text-left */
.origin-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    text-align: left;
    border-top: 1px solid var(--black-border);
    padding-top: clamp(40px, 5vw, 64px);
}

.origin-story-col p {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--gray-300);
    line-height: 1.8;
}

.origin-story-col p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .origin-story {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ============================================
   SERVICES SECTION — Alive & Interactive
   ============================================ */

.services {
    border-top: 1px solid var(--black-border);
}

.services-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--white-pure);
    margin-bottom: clamp(48px, 6vw, 80px);
    /* wraps naturally on narrow screens; stays one line at >=700px */
}

/* Pulse Coming Soon Banner */
.pulse-coming-soon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(20, 172, 90, 0.04);
    border: 1px solid rgba(20, 172, 90, 0.15);
    border-radius: 8px;
    margin-bottom: 20px;
    width: fit-content;
}

.pulse-cs-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.04em;
}

.pulse-cs-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(20, 172, 90, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;            /* all rows equal height */
    gap: 20px;
    align-items: stretch;
}

a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    height: 100%;                    /* fill its grid cell */
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15%;
    right: 15%;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(20, 172, 90, 0.12) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(20, 172, 90, 0.06);
}

/* Animated gradient border */
.service-card-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, var(--accent) 50%, transparent 70%);
    background-size: 300% 300%;
    background-position: 0% 0%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.service-card:hover .service-card-border {
    opacity: 1;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 300%; }
}

/* Shimmer sweep on hover */
.service-card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(20,172,90,0.04) 45%, rgba(20,172,90,0.08) 50%, rgba(20,172,90,0.04) 55%, transparent 60%);
    background-size: 200% 100%;
    background-position: 200% 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.service-card:hover .service-card-shimmer {
    animation: shimmerSweep 1.2s ease forwards;
}

@keyframes shimmerSweep {
    to { background-position: -200% 0; }
}

.service-card-inner {
    position: relative;
    z-index: 2;
    background: var(--black-card);
    padding: clamp(32px, 4vw, 48px);
    border-radius: 12px;
    border: 1px solid var(--black-border);
    transition: background 0.4s ease, border-color 0.4s ease;
    min-height: 400px;
    height: 100%;                    /* fill the full card height so the border never cuts off short */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.service-card:hover .service-card-inner {
    background: #141414;
    border-color: transparent;
}

/* Header row: number + icon + arrow */
.service-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-number {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    opacity: 0.4;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-number {
    opacity: 1;
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    opacity: 0.5;
    transition: all 0.5s var(--ease-out);
}

.service-card:hover .service-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Subtle pulse on icon detail lines */
.service-card:hover .icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

.service-arrow {
    margin-left: auto;
    color: var(--accent);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-arrow {
    opacity: 0.8;
    transform: translate(0, 0);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.service-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-200);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--white);
}

/* Stat highlight — appears on hover */
.service-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
    opacity: 0.7;
    transition: all 0.5s var(--ease-out);
}

.service-card:hover .service-stat {
    opacity: 1;
    border-color: var(--accent-border);
}

.service-stat-value {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--accent-light);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.service-stat-label {
    font-size: 13px;
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.service-card:hover .service-stat-label {
    color: var(--white);
}

.service-tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* always 4 across, all cards uniform */
    gap: 6px;
    list-style: none;
    margin-top: auto;
}

.service-tags li {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(20, 172, 90, 0.08);
    border: 1px solid var(--accent-border);
    color: var(--gray-300);
    text-align: center;
    transition: all 0.4s ease;
    /* Prevent overflow on longer labels — wraps gracefully inside the pill */
    word-break: break-word;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .service-tags { grid-template-columns: repeat(2, 1fr); }
}

.service-card:hover .service-tags li {
    border-color: var(--accent-border);
    color: var(--accent);
    background: rgba(20, 172, 90, 0.1);
}


/* ============================================
   PHILOSOPHY SECTION
   ============================================ */

.philosophy {
    border-top: 1px solid var(--black-border);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.philosophy-main h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--white-pure);
    margin-bottom: 24px;
}

.philosophy-main p {
    font-size: 15px;
    color: var(--gray-300);
    line-height: 1.8;
}

.philosophy-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pillar {
    padding: 32px 0;
    border-bottom: 1px solid var(--black-border);
    position: relative;
    overflow: hidden;
    transition: padding-left 0.4s var(--ease-out);
}

.pillar:first-child {
    border-top: 1px solid var(--black-border);
}

.pillar:hover {
    padding-left: 16px;
}

.pillar-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s var(--ease-out);
}

.pillar:hover .pillar-line {
    transform: scaleY(1);
}

.pillar-number {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.pillar:hover .pillar-number {
    opacity: 1;
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.pillar p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.8;
}


/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    border-top: 1px solid var(--black-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.globe-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
}

/* ---- Section Background Canvases ---- */
.hero-constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    z-index: 0;
}

.services { position: relative; }
.services > .container { position: relative; z-index: 1; }
.philosophy { position: relative; }
.philosophy > .container { position: relative; z-index: 1; }
.projects { position: relative; }
.projects > .container { position: relative; z-index: 1; }
.partners { position: relative; }
.partners > .container { position: relative; z-index: 1; }

/* ---- Partners section — title + sub (aliased to projects-* for legacy) ---- */
.projects-title,
.partners-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.projects-title em,
.partners-title em {
    color: var(--accent-light);
    font-style: normal;
    font-family: var(--font-serif);
}

.projects-sub,
.partners-sub {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-300);
    margin: 0 0 56px;
}

/* ---- Partner grid ---- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 72px;
}
.partner-card {
    padding: 26px 22px;
    background: var(--black-card, #111);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.partner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.partner-card:hover {
    border-color: rgba(20,172,90,0.28);
    background: rgba(20,172,90,0.03);
    transform: translateY(-2px);
}
.partner-card:hover::before { opacity: 0.6; }
.partner-category {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-light);
}
.partner-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1.3;
}
.partner-icon {
    width: 38px;
    height: 38px;
    color: var(--accent);
    margin-bottom: 14px;
    transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out);
    will-change: transform;
}
.partner-card:hover .partner-icon {
    transform: translateY(-3px);
    color: var(--accent-light);
}
.partner-card {
    min-height: 130px;
    justify-content: flex-start;
}

/* ---- Slide-to-unlock CTA ---------------------------------------------
   Drag-the-handle interaction that redirects to /book once swiped fully.
   Falls back to a regular link on no-JS / keyboard / quick-tap.
---------------------------------------------------------------------- */
.slide-unlock {
    position: relative;
    display: block;
    width: 100%;
    max-width: 480px;
    height: 64px;
    margin: 0 auto;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(20,172,90,0.22);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    touch-action: pan-y;
    transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.slide-unlock,
.slide-unlock * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}
.slide-unlock-fill,
.slide-unlock-text,
.slide-unlock-success,
.slide-unlock-handle svg {
    pointer-events: none;
}
.slide-unlock:hover {
    border-color: rgba(20,172,90,0.5);
    background: rgba(20,172,90,0.04);
    box-shadow: 0 0 32px rgba(20,172,90,0.12);
}
.slide-unlock-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(20,172,90,0.18), rgba(20,172,90,0.42));
    pointer-events: none;
    transition: width 0.08s linear;
}
.slide-unlock.completing .slide-unlock-fill {
    transition: width 0.45s var(--ease-out);
}
.slide-unlock.resetting .slide-unlock-fill {
    transition: width 0.35s var(--ease-out);
}
.slide-unlock-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 70px 0 70px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), color 0.3s var(--ease-out);
    text-align: center;
}
.slide-unlock:hover .slide-unlock-text {
    color: rgba(255,255,255,0.95);
}
.slide-unlock-success {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-light);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}
.slide-unlock-handle {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    z-index: 2;
    cursor: grab;
    box-shadow: 0 6px 24px rgba(20,172,90,0.45), inset 0 0 0 1px rgba(255,255,255,0.12);
    transition: background 0.3s var(--ease-out), transform 0.05s linear;
    will-change: transform;
}
.slide-unlock-handle:active {
    cursor: grabbing;
    background: var(--accent-light);
}
.slide-unlock.completing .slide-unlock-handle {
    transition: transform 0.45s var(--ease-out), background 0.3s var(--ease-out);
}
.slide-unlock.resetting .slide-unlock-handle {
    transition: transform 0.35s var(--ease-out), background 0.3s var(--ease-out);
}
.slide-unlock.unlocked .slide-unlock-handle {
    background: var(--accent-light);
    box-shadow: 0 6px 32px rgba(28,204,111,0.6), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.slide-unlock.unlocked .slide-unlock-text { opacity: 0; }
.slide-unlock.unlocked .slide-unlock-success { opacity: 1; }
/* Subtle hint shimmer to suggest interactivity */
@keyframes slideUnlockShimmer {
    0% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(6px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.6; }
}
.slide-unlock:not(.dragging):not(.unlocked):not(.completing) .slide-unlock-handle svg {
    animation: slideUnlockShimmer 2.4s ease-in-out infinite;
}
@media (max-width: 520px) {
    .slide-unlock { height: 60px; }
    .slide-unlock-handle { width: 48px; height: 48px; }
    .slide-unlock-text { font-size: 10.5px; padding: 0 60px; letter-spacing: 0.26em; }
    .slide-unlock-success { font-size: 10.5px; letter-spacing: 0.26em; }
}
/* Long/short text swap — long version on desktop/tablet, shorter version on phones */
.slide-unlock-text-short { display: none; }
@media (max-width: 480px) {
    .slide-unlock-text-long { display: none; }
    .slide-unlock-text-short { display: inline; }
}

/* Extra-small phones (iPhone SE / 320–380px) — keep text readable, hit target ≥44px */
@media (max-width: 380px) {
    .slide-unlock {
        height: 56px;
        max-width: 100%;
    }
    .slide-unlock-handle {
        width: 44px;
        height: 44px;
        top: 6px;
        left: 6px;
    }
    .slide-unlock-text {
        font-size: 10px;
        padding: 0 54px;
        letter-spacing: 0.18em;
    }
    .slide-unlock-success {
        font-size: 10px;
        letter-spacing: 0.18em;
    }
}

/* Partners grid responsive — at ≤640px, allow 2 cards to fit on phones (414px+),
   tighten card padding and icon scale so they don't feel oversized on small viewports. */
@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .partner-card {
        padding: 20px 16px;
        min-height: 120px;
    }
    .partner-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 10px;
    }
    .partner-name {
        font-size: 15px;
        line-height: 1.25;
    }
    .partner-category {
        font-size: 9.5px;
        letter-spacing: 0.2em;
    }
}
/* Single-column at extra-small phones for breathing room */
@media (max-width: 380px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .partner-card {
        min-height: 100px;
    }
}

/* ---- Partnership values ---- */
.partners-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px 36px;
    padding: 48px 0;
    margin-bottom: 56px;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.partner-value {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.partner-value-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: 0.08em;
    opacity: 0.85;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 2px;
}
.partner-value h3 {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
}
.partner-value p {
    font-size: 14.5px;
    color: var(--gray-300);
    line-height: 1.65;
}

/* ---- Partners CTA ---- */
.partners-cta { text-align: center; }
.partners-cta-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.process-timeline {
    position: relative;
    padding-top: 40px;
}

.process-flow-canvas {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

.process-steps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--step-delay, 0ms);
}

.process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Step Node (glowing orb) ---- */
.step-node {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 28px;
}

.step-node-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(20, 172, 90, 0.25);
    animation: stepRingPulse 3.2s ease-in-out infinite;
}

.step-node-ring--2 {
    inset: -10px;
    border-color: rgba(20, 172, 90, 0.12);
    animation-delay: 1.6s;
}

.process-step[data-step="2"] .step-node-ring { animation-delay: 0.4s; }
.process-step[data-step="2"] .step-node-ring--2 { animation-delay: 2s; }
.process-step[data-step="3"] .step-node-ring { animation-delay: 0.8s; }
.process-step[data-step="3"] .step-node-ring--2 { animation-delay: 2.4s; }
.process-step[data-step="4"] .step-node-ring { animation-delay: 1.2s; }
.process-step[data-step="4"] .step-node-ring--2 { animation-delay: 2.8s; }

@keyframes stepRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 0.4; }
}

.step-node-core {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(28, 204, 111, 0.35) 0%, rgba(20, 172, 90, 0.15) 50%, rgba(0, 0, 0, 0.85) 100%);
    border: 1px solid rgba(28, 204, 111, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 32px rgba(20, 172, 90, 0.35),
        0 0 12px rgba(20, 172, 90, 0.5) inset;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.process-step:hover .step-node-core {
    transform: scale(1.08);
    box-shadow:
        0 0 48px rgba(20, 172, 90, 0.55),
        0 0 16px rgba(20, 172, 90, 0.7) inset;
}

.step-node-num {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(28, 204, 111, 0.6);
}

/* ---- Step Card ---- */
.step-card {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.85) 0%, rgba(8, 8, 8, 0.92) 100%);
    border: 1px solid var(--black-border);
    backdrop-filter: blur(6px);
    transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    min-height: 100%;
}

.process-step:hover .step-card {
    border-color: rgba(20, 172, 90, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(20, 172, 90, 0.08);
}

.step-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.step-phase {
    color: var(--accent-light);
}

.step-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-500);
}

.step-dur {
    color: var(--gray-300);
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent-light);
    margin-bottom: 14px;
    line-height: 1.2;
}

.step-card p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--gray-200);
    margin-bottom: 20px;
}

.step-card p em {
    color: var(--accent-light);
    font-style: normal;
    font-weight: 500;
}

.step-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-deliverables li {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray-300);
    letter-spacing: 0.01em;
}

.step-deliverables li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.step-tailored {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(20, 172, 90, 0.08);
    border: 1px solid rgba(20, 172, 90, 0.22);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.step-tailored svg {
    color: var(--accent-light);
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
    .process-flow-canvas {
        display: none;
    }
}

@media (max-width: 640px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .step-node {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    .step-card {
        padding: 24px 20px 22px;
    }
    .step-card h3 {
        font-size: 20px;
    }
}

/* ---- Contact ---- */
.contact-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact .section-header {
    justify-content: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--white-pure);
    margin-bottom: 20px;
}

.contact-sub {
    font-size: 15px;
    color: var(--gray-300);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-actions {
    margin-bottom: 40px;
}

.contact-availability {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto 48px;
    font-style: italic;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 2px;
}

.contact-item a {
    font-size: 18px;
    font-weight: 400;
    color: var(--white-pure);
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.contact-item a:hover {
    color: var(--white);
}

.contact-item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contact wide layout */
.contact-content--wide {
    max-width: 960px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
    margin-top: 40px;
}

/* Intake checklist (left column) */
.intake-heading {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.intake-subtext {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 24px;
    font-style: italic;
}

.intake-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intake-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-300);
    line-height: 1.6;
}

.check-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
    opacity: 0.6;
}

/* Right column */
.contact-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.contact-promise {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-300);
}

.contact-right .contact-actions {
    margin-bottom: 0;
}

.contact-right .contact-availability {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0;
    font-style: italic;
    max-width: none;
}

.contact-right .contact-details {
    justify-content: flex-start;
    gap: 32px;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-right {
        align-items: center;
        text-align: center;
    }
    .contact-right .contact-details {
        justify-content: center;
    }
    .contact-promise {
        align-items: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--black-border);
    position: relative;
    z-index: 1;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--gray-500);
}

.footer-tagline {
    font-size: 11px;
    color: var(--gray-600);
    padding-left: 16px;
    border-left: 1px solid var(--gray-800);
}

.footer-legal {
    font-size: 11px;
    color: var(--gray-600);
}


/* ============================================
   REVEAL ANIMATIONS — Enhanced
   ============================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* Stagger children within grids */
.services-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.services-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.services-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

.philosophy-pillars [data-reveal]:nth-child(1) { transition-delay: 0s; }
.philosophy-pillars [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.philosophy-pillars [data-reveal]:nth-child(3) { transition-delay: 0.24s; }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        border-radius: 10px;
        max-width: 100%;
    }
    .service-card-inner {
        border-radius: 10px;
        min-height: auto;
        padding: 28px 24px;          /* tighter, balanced inner padding on mobile */
    }
    .service-card h3 {
        font-size: 22px;
    }
    .service-card p {
        font-size: 14.5px;
        line-height: 1.7;
    }
    /* Section header wraps cleanly on phones */
    .section-header {
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }
    /* Pulse banner sits centred under the heading */
    .pulse-coming-soon {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-scroll {
        display: none;
    }

    .nav-footer {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .nav-footer-col {
        flex: 0 0 45%;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .contact-details {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .nav-trigger {
        top: 20px;
        right: 20px;
    }

    .nav-brand {
        top: 20px;
        left: 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .marquee-item {
        font-size: 11px;
    }

    /* Contact details — tighten gap so email + phone sit closer on small phones */
    .contact-details {
        gap: 28px;
    }
    .contact-item a {
        font-size: 16px;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}
