/* ============================================
   JAVIER URREA — Marca Personal
   Estética limpia, honesta, orientada a salud.
   Sin degradados. Tipografía humanista.
   Espacios amplios que respiran.
   ============================================ */

/* --- Custom Properties --- */
:root {
    /* Warm, honest palette — healthcare with humanity */
    --white:     #ffffff;
    --cream:     #faf9f7;
    --sand:      #f3f1ed;
    --warm-100:  #ebe8e2;
    --warm-200:  #d8d3ca;
    --warm-300:  #b8b0a2;
    --warm-400:  #9a9081;
    --warm-500:  #7a7062;

    /* Text */
    --ink:       #1a1a1a;
    --ink-light: #4a4a4a;
    --ink-muted: #7a7a7a;

    /* Accent — muted teal (health, trust, calm) */
    --teal:      #2a8f82;
    --teal-light:#e8f4f2;
    --teal-dark: #1d6b61;

    /* Functional */
    --border:    #e6e3dd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

    /* Typography */
    --sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --section-py: clamp(80px, 10vh, 140px);

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--teal);
    color: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right {
    display: none;
}

/* Mobile lang selector hidden on desktop */
.lang-selector--mobile {
    display: none;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--ink);
    letter-spacing: -0.3px;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover { color: var(--teal); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--teal);
    transition: width 0.3s var(--ease);
}

.nav-link:hover::after { width: 100%; }

.nav-link--cta {
    color: var(--white);
    background: var(--teal);
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
    background: var(--teal-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Language Selector */
.lang-selector {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
}

.lang-selector-current {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}

.lang-selector-current:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lang-selector.open .lang-selector-current {
    border-color: var(--teal);
    background: var(--teal-light);
}

.flag-icon {
    font-size: 1.3rem;
    line-height: 1;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flag-icon--cat {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.lang-selector-current .flag-icon--cat {
    width: 22px;
    height: 22px;
}

.lang-option .flag-icon--cat {
    width: 20px;
    height: 20px;
}

.flag-icon--cat svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-selector-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.lang-selector.open .lang-selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
}

.lang-option:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}

.lang-option.active {
    background: var(--teal-light);
    color: var(--teal);
    font-weight: 600;
}

.lang-option .flag-icon {
    font-size: 1.2rem;
}

.lang-name {
    flex: 1;
    text-align: left;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 160px 0 100px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--teal);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--teal);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--ink-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-subtitle strong {
    color: var(--teal-dark);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    border: none;
    transition: all 0.35s var(--ease);
}

.btn svg, .btn i { width: 18px; height: 18px; }

.btn--solid {
    background: var(--teal);
    color: var(--white);
}

.btn--solid:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 143, 130, 0.25);
}

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

.btn--outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 22px; font-size: 0.875rem; }

/* Hero image */
.hero-image-wrap {
    display: flex;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--warm-100);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero-image.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
}

.hero-image.no-img::before {
    content: 'JU';
    font-family: var(--serif);
    font-size: 5rem;
    color: var(--warm-200);
    font-style: italic;
}

.hero-image.no-img .hero-image-badge { display: flex; }

.hero-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.badge-number {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--teal);
    line-height: 1;
}

.badge-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero reveal */
.reveal-hero {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn 0.9s var(--ease) forwards;
}

.reveal-hero:nth-child(1) { animation-delay: 0.1s; }
.reveal-hero:nth-child(2) { animation-delay: 0.25s; }
.reveal-hero:nth-child(3) { animation-delay: 0.4s; }
.reveal-hero:nth-child(4) { animation-delay: 0.55s; }
.hero-image-wrap.reveal-hero { animation-delay: 0.3s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 18px 0;
    background: var(--teal);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    padding-right: 24px;
}

.marquee-content span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

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

/* ============================================
   SECTION SHARED
   ============================================ */
.section {
    padding: var(--section-py) 0;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--teal);
    margin-bottom: 14px;
}

.section-heading {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.section-heading em {
    font-style: italic;
    color: var(--teal);
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--ink-muted);
    margin-top: 14px;
    line-height: 1.7;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}

.about-lead .section-heading {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 20px;
}

.about-image {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center 40%;
    aspect-ratio: 21 / 9;
}

/* Desktop only */
@media (min-width: 769px) {
    .about-body {
        padding-top: 68px;
    }
}

.about-body p {
    color: var(--ink-light);
    font-size: 1.02rem;
    margin-bottom: 16px;
    line-height: 1.85;
}

.about-body strong {
    color: var(--teal-dark);
    font-weight: 600;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--cream);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

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

.stat-value {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--teal);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--teal);
}

.stat-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ============================================
   APPROACH / VERTICALS
   ============================================ */
.approach { background: var(--cream); }

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

.approach-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

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

.approach-card:hover .approach-card-icon {
    background: var(--teal);
}

.approach-card:hover .approach-card-icon i {
    color: var(--white);
}

.approach-card-number {
    font-family: var(--serif);
    font-size: 3.5rem;
    color: var(--sand);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
    font-style: italic;
    transition: color 0.4s;
}

.approach-card:hover .approach-card-number {
    color: var(--teal-light);
}

.approach-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: background 0.4s var(--ease);
}

.approach-card-icon i {
    width: 24px;
    height: 24px;
    color: var(--teal);
    transition: color 0.4s;
}

.approach-card h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--teal-dark);
}

.approach-card p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

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

.approach-tags li {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-light);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.2px;
}

/* ============================================
   CONSULTING
   ============================================ */
.consulting { background: var(--white); }

.consulting-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 32px;
}

.consulting-text .section-heading {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 20px;
}

.consulting-desc {
    font-size: 1.02rem;
    color: var(--ink-light);
    line-height: 1.85;
    margin-top: 60px;
}

.consulting-desc strong {
    color: var(--teal-dark);
    font-weight: 600;
}

/* Diagram */
.consulting-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.diagram-ring {
    width: 320px;
    height: 320px;
    position: relative;
    border-radius: 50%;
    border: 1.5px dashed var(--warm-200);
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 8px 30px rgba(42, 143, 130, 0.25);
    z-index: 2;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 8px 30px rgba(42, 143, 130, 0.25); }
    50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 12px 40px rgba(42, 143, 130, 0.4); }
}

.diagram-center i {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.diagram-center span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Orbit wrapper — rotates all nodes together */
.diagram-orbit {
    position: absolute;
    inset: 0;
    animation: orbitSpin 60s linear infinite;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.diagram-node {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    animation: counterSpin 60s linear infinite;
    transition: border-color 0.4s, box-shadow 0.4s;
}

@keyframes counterSpin {
    to { transform: rotate(-360deg); }
}

.diagram-node:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

.diagram-node i {
    width: 18px;
    height: 18px;
    color: var(--teal);
}

.diagram-node span {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5 nodes at 72° intervals — equidistant on 320px ring */
.diagram-node--1 { top: -36px;  left: 124px; }  /* 0°   */
.diagram-node--2 { top: 75px;   left: 276px; }  /* 72°  */
.diagram-node--3 { top: 253px;  left: 218px; }  /* 144° */
.diagram-node--4 { top: 253px;  left: 30px;  }  /* 216° */
.diagram-node--5 { top: 75px;   left: -28px; }  /* 288° */

.consulting-services {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consulting-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}

.consulting-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.consulting-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s var(--ease);
}

.consulting-card:hover .consulting-card-icon {
    background: var(--teal);
}

.consulting-card-icon i {
    width: 20px;
    height: 20px;
    color: var(--teal);
    transition: color 0.4s;
}

.consulting-card:hover .consulting-card-icon i {
    color: var(--white);
}

.consulting-card h3 {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.consulting-card p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.65;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio { background: var(--cream); }

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

.project {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.project-top > :not(.project-type) {
    margin-left: auto;
}

.project-type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    background: var(--teal-light);
    padding: 4px 12px;
    border-radius: 100px;
}

.project-ext {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.project-ext i {
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
    transition: color 0.3s;
}

.project-ext:hover {
    border-color: var(--teal);
    background: var(--teal-light);
}

.project-ext:hover i { color: var(--teal); }

.project-link-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.project-link-badge i {
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
    transition: color 0.3s;
}

.project-link-badge:hover {
    border-color: var(--teal);
    background: var(--teal-light);
}

.project-link-badge:hover i { color: var(--teal); }

.project-icon {
    width: 24px;
    height: 24px;
    color: var(--teal);
    margin-bottom: 16px;
}

.project h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--ink);
}

.project p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 16px;
}

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

.project-tags span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--warm-400);
    background: var(--sand);
    padding: 3px 10px;
    border-radius: 100px;
}

/* CTA project */
.project--cta {
    background: linear-gradient(135deg, #e8f5f3 0%, #f0f9f7 100%);
    text-align: center;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: var(--teal);
    border-width: 2px;
}

.project--cta:hover {
    border-style: solid;
    border-color: var(--teal);
}

.project--cta .project-icon { color: var(--warm-300); margin-bottom: 12px; }
.project--cta h3 { color: var(--ink-light); }

/* Video button */
.project-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--teal-light);
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.project-video-btn:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
}

.project-video-btn i {
    width: 16px;
    height: 16px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 1;
    animation: slideUp 0.4s var(--ease);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.video-modal-close:hover {
    background: var(--teal);
    transform: rotate(90deg);
}

.video-modal-close i {
    width: 20px;
    height: 20px;
    color: var(--ink);
}

.video-modal-close:hover i {
    color: var(--white);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ink);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners { background: var(--white); }

.partners-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.partners-text p {
    font-size: 1rem;
    color: var(--ink-light);
    line-height: 1.8;
    margin-top: 14px;
}

.partners-text strong {
    color: var(--teal-dark);
    font-weight: 600;
}

/* Ecosystem ring — Redesigned */
.partners-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecosystem-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

/* SVG connection lines */
.ecosystem-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.eco-line {
    stroke: var(--teal);
    stroke-width: 1;
    stroke-dasharray: 6 4;
    opacity: 0.25;
    animation: linePulse 3s ease-in-out infinite;
}

.eco-line:nth-child(1) { animation-delay: 0s; }
.eco-line:nth-child(2) { animation-delay: 0.6s; }
.eco-line:nth-child(3) { animation-delay: 1.2s; }
.eco-line:nth-child(4) { animation-delay: 1.8s; }
.eco-line:nth-child(5) { animation-delay: 2.4s; }

.eco-orbit-path {
    stroke: var(--teal);
    stroke-width: 1;
    stroke-dasharray: 4 8;
    opacity: 0.12;
    animation: orbitDash 30s linear infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.15; stroke-dashoffset: 0; }
    50% { opacity: 0.45; stroke-dashoffset: 10; }
}

@keyframes orbitDash {
    to { stroke-dashoffset: -120; }
}

/* Floating particles */
.eco-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0;
    z-index: 1;
    animation: particleDrift 8s ease-in-out infinite;
}

.eco-particle--1 { top: 15%; left: 30%; animation-delay: 0s; }
.eco-particle--2 { top: 60%; right: 12%; animation-delay: 1.5s; }
.eco-particle--3 { bottom: 10%; left: 45%; animation-delay: 3s; }
.eco-particle--4 { top: 35%; left: 10%; animation-delay: 4.5s; }
.eco-particle--5 { top: 20%; right: 25%; animation-delay: 6s; }
.eco-particle--6 { bottom: 25%; right: 35%; animation-delay: 2s; }

@keyframes particleDrift {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.6; transform: translateY(-8px) scale(1); }
    80% { opacity: 0.3; transform: translateY(-20px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}

/* Center hub */
.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow:
        0 0 0 8px rgba(42, 143, 130, 0.08),
        0 0 0 20px rgba(42, 143, 130, 0.04),
        0 8px 32px rgba(42, 143, 130, 0.25);
}

.eco-center-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    opacity: 0;
    animation: centerPulseRing 3s ease-out infinite;
}

@keyframes centerPulseRing {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ecosystem-center span {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Nodes — positioned with trigonometry at 72° intervals, r=170px from center (200,200) */
/* Node 1: 270° → top center */
/* Node 2: 342° → top-right */
/* Node 3: 54°  → bottom-right */
/* Node 4: 126° → bottom-left */
/* Node 5: 198° → left */
.ecosystem-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.ecosystem-node i {
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--white);
    border: 2px solid rgba(42, 143, 130, 0.15);
    border-radius: 14px;
    color: var(--teal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s var(--ease);
    position: relative;
    z-index: 2;
}

.ecosystem-node:hover i {
    border-color: var(--teal);
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(42, 143, 130, 0.2);
}

.eco-node-glow {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--teal);
    opacity: 0;
    filter: blur(12px);
    z-index: 0;
    animation: nodeGlow 4s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.15; transform: scale(1.2); }
}

.ecosystem-node span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 5 nodes at 72° intervals, radius 170px, center at (200,200) in 400×400 box */
/* cos/sin in px from center, then converted to % of 400px */
/* Node 1: 270° (top)         → x=200, y=30   → 50%, 7.5%   */
/* Node 2: 342° (top-right)   → x=362, y=118  → 90.5%, 29.5% */
/* Node 3: 54°  (bottom-right)→ x=300, y=332  → 75%, 83%    */
/* Node 4: 126° (bottom-left) → x=100, y=332  → 25%, 83%    */
/* Node 5: 198° (left)        → x=38, y=118   → 9.5%, 29.5%  */

.ecosystem-node--1 {
    top: 7.5%;
    left: 50%;
    animation: nodeFloat1 6s ease-in-out infinite;
}
.ecosystem-node--2 {
    top: 29.5%;
    left: 90.5%;
    animation: nodeFloat2 6s ease-in-out infinite 1.2s;
}
.ecosystem-node--3 {
    top: 83%;
    left: 75%;
    animation: nodeFloat3 6s ease-in-out infinite 2.4s;
}
.ecosystem-node--4 {
    top: 83%;
    left: 25%;
    animation: nodeFloat4 6s ease-in-out infinite 3.6s;
}
.ecosystem-node--5 {
    top: 29.5%;
    left: 9.5%;
    animation: nodeFloat5 6s ease-in-out infinite 4.8s;
}

/* Each node floats in a unique micro-orbit direction */
@keyframes nodeFloat1 {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-8px); }
}
@keyframes nodeFloat2 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    50% { transform: translate(-50%, -50%) translate(6px, -5px); }
}
@keyframes nodeFloat3 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    50% { transform: translate(-50%, -50%) translate(4px, 6px); }
}
@keyframes nodeFloat4 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    50% { transform: translate(-50%, -50%) translate(-5px, 5px); }
}
@keyframes nodeFloat5 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    50% { transform: translate(-50%, -50%) translate(-6px, -4px); }
}

.ecosystem-node--1 .eco-node-glow { animation-delay: 0s; }
.ecosystem-node--2 .eco-node-glow { animation-delay: 0.8s; }
.ecosystem-node--3 .eco-node-glow { animation-delay: 1.6s; }
.ecosystem-node--4 .eco-node-glow { animation-delay: 2.4s; }
.ecosystem-node--5 .eco-node-glow { animation-delay: 3.2s; }

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.partner-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

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

.partner-card i {
    width: 28px;
    height: 28px;
    color: var(--teal);
    margin: 0 auto 12px;
}

.partner-card h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
}

.partner-card p {
    font-size: 0.8rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* ============================================
   VALUES
   ============================================ */
.values { background: var(--cream); }

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

.value {
    padding: 36px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.value:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: background 0.4s;
}

.value-icon i {
    width: 24px;
    height: 24px;
    color: var(--teal);
    transition: color 0.4s;
}

.value:hover .value-icon {
    background: var(--teal);
}

.value:hover .value-icon i {
    color: var(--white);
}

.value h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
}

.value p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* ============================================
   QUOTE
   ============================================ */
.quote-section {
    background: var(--cream);
}

.big-quote {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
}

.big-quote p {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.5;
    color: var(--ink);
    font-style: italic;
}

.big-quote em {
    color: var(--teal);
    font-style: italic;
}

.big-quote cite {
    display: block;
    margin-top: 20px;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--white); }

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

.contact-info p {
    font-size: 1.02rem;
    color: var(--ink-light);
    margin-top: 14px;
    line-height: 1.7;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s var(--ease);
}

.contact-channel:hover {
    border-color: var(--teal);
    background: var(--teal-light);
}

.contact-channel i {
    width: 22px;
    height: 22px;
    color: var(--teal);
    flex-shrink: 0;
}

.contact-channel strong {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
}

.contact-channel span {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

/* Form */
.contact-form-wrap { position: relative; }

.contact-form {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 143, 130, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--warm-300);
}

/* Form success */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 32px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.form-success.show {
    display: block;
    animation: fadeUp 0.6s var(--ease);
}

.form-success i {
    width: 40px;
    height: 40px;
    color: var(--teal);
    margin: 0 auto 14px;
}

.form-success h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-success p {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
}

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

.footer-logo {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--white);
    font-style: italic;
}

.footer-left p {
    font-size: 0.82rem;
    margin-top: 4px;
}

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

.footer-center a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

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

.footer-right p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

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

/* --- Body scroll lock for mobile menu --- */
body.menu-open {
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

/* CRITICAL: When menu is open, expand .nav to full viewport.
   Use display:flex so .nav-inner can use z-index as flex item
   WITHOUT position:relative (which would create a containing block
   that traps the absolutely-positioned .nav-links). */
body.menu-open .nav {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom: none !important;
    transition: none !important;
    overflow: visible;
    padding: 0;
}

/* Toolbar visible above the menu overlay.
   z-index works here because it's a flex item (no position:relative needed,
   so it does NOT create a containing block for .nav-links). */
body.menu-open .nav-inner {
    z-index: 1002;
    padding-top: 14px;
    padding-bottom: 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image { width: 320px; height: 400px; margin: 0 auto; }

    .about-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }

    .approach-grid { grid-template-columns: 1fr; }

    .consulting-layout { grid-template-columns: 1fr; }
    .diagram-ring { width: 260px; height: 260px; }

    .partners-intro { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }

    .values-grid { grid-template-columns: repeat(2, 1fr); }

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

/* ---- Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {

    /* --- Global mobile touch optimizations --- */
    html {
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
    }

    /* ---- NAVIGATION ---- */
    .nav {
        padding: 14px 0;
    }

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

    .nav-inner {
        justify-content: space-between;
    }

    .nav-links {
        flex: none;
        justify-content: initial;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Show mobile lang selector, hide desktop one */
    .lang-selector--desktop {
        display: none !important;
    }

    .lang-selector--mobile {
        display: flex;
    }

    /* Hide lang-selector inside hamburger menu (it's now in toolbar) */
    .nav-links .lang-selector {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        position: relative;
        z-index: 1001;
        transition: background 0.3s ease;
    }

    .nav-toggle:active {
        background: var(--sand);
    }

    .nav-toggle span {
        transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                    opacity 0.25s ease,
                    width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        transform-origin: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ---- Mobile menu: full-screen overlay ---- */
    /* Uses position:absolute (not fixed) so it's relative to
       .nav which expands to full viewport via body.menu-open .nav */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s;
        padding: 0;
        gap: 0;
        align-items: stretch;
        overflow: hidden;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Slide-in panel on the right */
    .nav-links::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 78%;
        max-width: 320px;
        background: var(--white);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 0;
    }

    .nav-links.open::after {
        transform: translateX(0);
    }

    /* Position all menu children on the right panel */
    .nav-links > * {
        position: relative;
        z-index: 1;
        width: 78%;
        max-width: 320px;
        margin-left: auto;
        margin-right: 0;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    /* Top spacing for first item — just enough to clear the toolbar */
    .nav-links > :first-child {
        padding-top: 56px;
    }

    /* Last item bottom spacing */
    .nav-links > :last-child {
        padding-bottom: 32px;
    }

    /* Staggered entrance animations */
    .nav-links .nav-link,
    .nav-links .nav-link--cta {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                    color 0.2s ease, background 0.2s ease;
    }

    .nav-links.open .nav-link,
    .nav-links.open .nav-link--cta {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.open .nav-link:nth-child(1)  { transition-delay: 0.05s; }
    .nav-links.open .nav-link:nth-child(2)  { transition-delay: 0.09s; }
    .nav-links.open .nav-link:nth-child(3)  { transition-delay: 0.13s; }
    .nav-links.open .nav-link:nth-child(4)  { transition-delay: 0.17s; }
    .nav-links.open .nav-link:nth-child(5)  { transition-delay: 0.21s; }
    .nav-links.open .nav-link:nth-child(6)  { transition-delay: 0.25s; }
    .nav-links.open .nav-link--cta           { transition-delay: 0.29s; }

    /* Menu links */
    .nav-link {
        font-family: var(--sans);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--ink);
        letter-spacing: 0.01em;
        padding-top: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:active {
        color: var(--teal);
        background: var(--teal-light);
        transition: background 0.1s ease;
    }

    /* CTA button in menu */
    .nav-link--cta {
        margin-top: 20px;
        width: auto !important;
        max-width: none;
        align-self: flex-start;
        display: inline-flex;
        justify-content: center;
        padding: 10px 20px !important;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: 8px;
        min-height: auto;
        border-bottom: none;
        color: var(--white);
        background: var(--teal);
    }

    .nav-link--cta:active {
        background: var(--teal-dark);
        color: var(--white);
    }

    /* Mobile lang selector in toolbar */
    .lang-selector--mobile .lang-selector-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }

    .lang-selector--mobile .lang-option {
        padding: 12px 16px;
        min-height: 44px;
    }

    /* ---- HERO ---- */
    .hero {
        padding: 110px 0 60px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 52px;
    }

    .hero-image {
        width: 260px;
        height: 330px;
        border-radius: 20px;
    }

    .hero-image-badge {
        bottom: 14px;
        left: 14px;
        padding: 10px 14px;
        border-radius: 12px;
        gap: 8px;
    }

    .badge-number {
        font-size: 1.5rem;
    }

    .badge-label {
        font-size: 0.65rem;
    }

    /* ---- MARQUEE ---- */
    .marquee-section {
        padding: 14px 0;
    }

    .marquee-content span {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .marquee-content {
        gap: 18px;
        padding-right: 18px;
    }

    /* ---- SECTIONS SHARED ---- */
    :root {
        --section-py: clamp(56px, 8vh, 100px);
    }

    .section-label {
        font-size: 0.68rem;
        letter-spacing: 2.5px;
        margin-bottom: 10px;
    }

    .section-heading {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    }

    .section-intro {
        margin-bottom: 36px;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 20px;
    }

    /* ---- ABOUT ---- */
    .about-grid {
        gap: 28px;
        margin-bottom: 36px;
    }

    .about-lead .section-heading {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 16px;
    }

    .about-image {
        border-radius: 12px;
    }

    .about-body p {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 14px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 24px 12px;
        border-radius: 14px;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    .stat-suffix {
        font-size: 1.3rem;
    }

    .stat-name {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        margin-top: 6px;
    }

    /* ---- APPROACH CARDS ---- */
    .approach-grid {
        gap: 16px;
    }

    .approach-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .approach-card-number {
        font-size: 2.8rem;
        top: 12px;
        right: 16px;
    }

    .approach-card-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .approach-card h3 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .approach-card p {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .approach-tags {
        gap: 6px;
    }

    .approach-tags li {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Disable hover effects on touch */
    .approach-card:hover {
        transform: none;
        box-shadow: none;
    }

    .approach-card:active {
        transform: scale(0.98);
        transition: transform 0.15s ease;
    }

    /* ---- CONSULTING ---- */
    .consulting-layout {
        gap: 32px;
        margin-bottom: 24px;
    }

    .consulting-text .section-heading {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .consulting-desc {
        font-size: 0.95rem;
        margin-top: 16px;
        line-height: 1.75;
    }

    .consulting-diagram {
        padding-top: 0;
    }

    .diagram-ring {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .diagram-center {
        width: 76px;
        height: 76px;
    }

    .diagram-center i {
        width: 18px;
        height: 18px;
    }

    .diagram-center span {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .diagram-node {
        width: 54px;
        height: 54px;
    }

    .diagram-node i {
        width: 14px;
        height: 14px;
    }

    .diagram-node span {
        font-size: 0.5rem;
    }

    /* Recalculate node positions for smaller ring */
    .diagram-node--1 { top: -27px; left: 83px; }
    .diagram-node--2 { top: 52px;  left: 190px; }
    .diagram-node--3 { top: 175px; left: 150px; }
    .diagram-node--4 { top: 175px; left: 20px; }
    .diagram-node--5 { top: 52px;  left: -20px; }

    .consulting-services {
        gap: 12px;
    }

    .consulting-card {
        padding: 20px;
        border-radius: 14px;
        gap: 14px;
    }

    .consulting-card:hover {
        transform: none;
        box-shadow: none;
    }

    .consulting-card:active {
        background: var(--teal-light);
        border-color: var(--teal);
    }

    .consulting-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .consulting-card h3 {
        font-size: 0.9rem;
    }

    .consulting-card p {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    /* ---- PORTFOLIO ---- */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project {
        padding: 22px;
        border-radius: 16px;
    }

    .project:hover {
        transform: none;
        box-shadow: none;
    }

    .project:active {
        border-color: var(--teal-light);
        background: var(--cream);
    }

    .project-top {
        margin-bottom: 14px;
        gap: 8px;
    }

    .project-type {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .project-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 12px;
    }

    .project h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .project p {
        font-size: 0.85rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .project-tags {
        gap: 5px;
    }

    .project-tags span {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .project-video-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
        min-height: 36px;
        border-radius: 8px;
    }

    .project-ext,
    .project-link-badge {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .project--cta {
        padding: 28px 22px;
    }

    .project--cta .btn {
        min-height: 48px;
        padding: 14px 24px;
    }

    /* ---- PARTNERS ---- */
    .partners-intro {
        gap: 32px;
        margin-bottom: 36px;
    }

    .partners-text p {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .partners-visual {
        order: -1;
    }

    .ecosystem-wrapper {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .ecosystem-center {
        width: 88px;
        height: 88px;
    }

    .ecosystem-center span {
        font-size: 0.82rem;
    }

    .ecosystem-node i {
        width: 38px;
        height: 38px;
        padding: 8px;
        border-radius: 12px;
    }

    .ecosystem-node span {
        font-size: 0.6rem;
    }

    .eco-node-glow {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partner-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 22px 20px;
        text-align: left;
        border-radius: 16px;
    }

    .partner-card:hover {
        transform: none;
        box-shadow: none;
    }

    .partner-card:active {
        background: var(--teal-light);
        border-color: var(--teal);
    }

    .partner-card i {
        margin: 0;
        flex-shrink: 0;
    }

    .partner-card h4 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .partner-card p {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    /* ---- VALUES ---- */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 24px 20px;
        text-align: left;
        border-radius: 16px;
    }

    .value:hover {
        transform: none;
        box-shadow: none;
    }

    .value:active {
        background: var(--teal-light);
    }

    .value-icon {
        margin: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .value h3 {
        font-size: 1.05rem;
        margin-bottom: 2px;
    }

    .value p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    /* ---- QUOTE ---- */
    .big-quote {
        padding: 24px 0;
    }

    .big-quote p {
        font-size: clamp(1.15rem, 4.5vw, 1.6rem);
        line-height: 1.5;
    }

    .big-quote cite {
        margin-top: 16px;
        font-size: 0.78rem;
    }

    /* ---- CONTACT ---- */
    .contact-grid {
        gap: 36px;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-channels {
        gap: 10px;
        margin-top: 22px;
    }

    .contact-channel {
        padding: 14px 16px;
        border-radius: 12px;
        min-height: 52px;
    }

    .contact-channel:active {
        background: var(--teal-light);
        border-color: var(--teal);
    }

    .contact-form {
        padding: 24px 20px;
        border-radius: 16px;
        gap: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-field label {
        font-size: 0.75rem;
    }

    .form-field input,
    .form-field textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        border-radius: 10px;
        min-height: 48px;
    }

    .form-field textarea {
        min-height: 120px;
    }

    .contact-form .btn {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 12px;
    }

    .form-success {
        padding: 36px 24px;
        border-radius: 16px;
    }

    .form-success h3 {
        font-size: 1.2rem;
    }

    .form-success p {
        font-size: 0.88rem;
    }

    /* ---- VIDEO MODAL ---- */
    .video-modal {
        padding: 0;
        align-items: flex-start;
    }

    .video-modal-content {
        max-width: 100%;
        padding: 0 10px;
        margin-top: auto;
        margin-bottom: auto;
    }

    .video-modal-close {
        top: -48px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .video-wrapper {
        border-radius: 10px;
    }

    .video-wrapper iframe {
        border-radius: 10px;
    }

    /* ---- FOOTER ---- */
    .footer {
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-logo {
        font-size: 1rem;
    }

    .footer-left p {
        font-size: 0.78rem;
    }

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

    .footer-center a {
        font-size: 0.82rem;
        padding: 4px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-right p {
        font-size: 0.72rem;
    }
}

/* ---- Small mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 48px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-image {
        width: 220px;
        height: 280px;
        border-radius: 18px;
    }

    .hero-image-badge {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        gap: 6px;
        border-radius: 10px;
    }

    .badge-number {
        font-size: 1.3rem;
    }

    .badge-label {
        font-size: 0.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-suffix {
        font-size: 1.1rem;
    }

    .stat-name {
        font-size: 0.65rem;
    }

    .approach-card {
        padding: 22px 18px;
    }

    .consulting-desc {
        font-size: 0.9rem;
    }

    .diagram-ring {
        width: 200px;
        height: 200px;
    }

    .diagram-center {
        width: 68px;
        height: 68px;
    }

    .diagram-center i {
        width: 16px;
        height: 16px;
    }

    .diagram-center span {
        font-size: 0.55rem;
    }

    .diagram-node {
        width: 48px;
        height: 48px;
    }

    .diagram-node i {
        width: 13px;
        height: 13px;
    }

    .diagram-node span {
        font-size: 0.45rem;
    }

    .diagram-node--1 { top: -24px; left: 76px; }
    .diagram-node--2 { top: 46px;  left: 172px; }
    .diagram-node--3 { top: 158px; left: 136px; }
    .diagram-node--4 { top: 158px; left: 16px; }
    .diagram-node--5 { top: 46px;  left: -20px; }

    .ecosystem-wrapper {
        width: 260px;
        height: 260px;
    }

    .ecosystem-center {
        width: 76px;
        height: 76px;
    }

    .ecosystem-center span {
        font-size: 0.75rem;
    }

    .ecosystem-node i {
        width: 34px;
        height: 34px;
        padding: 7px;
        border-radius: 10px;
    }

    .ecosystem-node span {
        font-size: 0.55rem;
    }

    .eco-node-glow {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .project {
        padding: 18px;
    }

    .project h3 {
        font-size: 1.1rem;
    }

    .project p {
        font-size: 0.83rem;
    }

    .big-quote p {
        font-size: clamp(1.05rem, 4vw, 1.35rem);
    }

    .contact-form {
        padding: 20px 16px;
    }

    .nav-links > *,
    .nav-links::after {
        width: 88%;
    }

    .nav-links > * {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-link {
        font-size: 1rem;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* ---- Very small screens (max-width: 360px) ---- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-image {
        width: 200px;
        height: 250px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .ecosystem-wrapper {
        width: 230px;
        height: 230px;
    }

    .ecosystem-center {
        width: 68px;
        height: 68px;
    }

    .ecosystem-center span {
        font-size: 0.7rem;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 0 24px 24px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    pointer-events: none;
    display: block;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner.hiding {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.cookie-banner-text {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cookie-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner-icon i {
    width: 22px;
    height: 22px;
    color: var(--teal);
}

.cookie-banner-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
}

.cookie-banner-desc {
    font-size: 0.84rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.cookie-btn--accept {
    background: var(--teal);
    color: var(--white);
}

.cookie-btn--accept:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.cookie-btn--reject {
    background: var(--sand);
    color: var(--ink-muted);
    border: 1px solid var(--border);
}

.cookie-btn--reject:hover {
    color: var(--ink);
    border-color: var(--warm-300);
}

.cookie-btn--settings {
    background: transparent;
    color: var(--teal);
    padding: 10px 16px;
}

.cookie-btn--settings:hover {
    background: var(--teal-light);
}

.cookie-btn--save {
    background: var(--teal);
    color: var(--white);
    width: 100%;
}

.cookie-btn--save:hover {
    background: var(--teal-dark);
}

/* Settings panel */
.cookie-settings-panel {
    max-width: 720px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.cookie-settings-panel.open {
    max-height: 300px;
    padding-top: 4px;
}

.cookie-setting {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    margin-top: -1px;
}

.cookie-setting:first-child {
    border-top: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    margin-top: 12px;
}

.cookie-setting:last-of-type {
    border-radius: 0 0 12px 12px;
}

.cookie-setting-info h4 {
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.cookie-setting-info p {
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--warm-200);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--teal);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle--disabled .cookie-toggle-slider {
    background: var(--teal);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle--disabled .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-settings-actions {
    max-width: 720px;
    margin: 12px auto 0;
    padding: 0;
}

/* ---- Cookie banner responsive ---- */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 0 12px 12px;
    }

    .cookie-banner-inner {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .cookie-banner-text {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-banner-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }

    .cookie-banner-icon i {
        width: 18px;
        height: 18px;
    }

    .cookie-banner-title {
        font-size: 1.05rem;
    }

    .cookie-banner-desc {
        font-size: 0.8rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        min-height: 44px;
    }

    .cookie-btn--settings {
        order: 3;
    }

    .cookie-btn--reject {
        order: 2;
    }

    .cookie-btn--accept {
        order: 1;
    }

    .cookie-setting {
        padding: 14px 20px;
        gap: 12px;
    }

    .cookie-setting-info h4 {
        font-size: 0.84rem;
    }

    .cookie-setting-info p {
        font-size: 0.74rem;
    }

    .cookie-toggle {
        width: 42px;
        height: 24px;
    }

    .cookie-toggle-slider::before {
        width: 18px;
        height: 18px;
    }

    .cookie-toggle input:checked + .cookie-toggle-slider::before {
        transform: translateX(18px);
    }

    .cookie-toggle--disabled .cookie-toggle-slider::before {
        transform: translateX(18px);
    }
}

/* ============================================
   SCROLLBAR & ACCESSIBILITY
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--warm-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--warm-300); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
