/* ============================================
   GRUPO TSO — v3 Epic & Perfect
   ============================================ */

:root {
    --bg-deep: #09090B;
    --bg-surface: #111114;
    --bg-card: #16161A;
    --bg-elevated: #1C1C21;

    --gold: #D4A843;
    --gold-light: #E8C77B;
    --coral: #E8785E;
    --coral-light: #F09A82;
    --amber: #F5A623;

    --text-primary: #FAFAF9;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --gradient-main: linear-gradient(135deg, var(--gold), var(--coral));
    --gradient-text: linear-gradient(135deg, var(--gold-light), var(--coral-light));
    --gradient-border: linear-gradient(135deg, rgba(212,168,67,0.3), rgba(232,120,94,0.15), transparent);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --gap: clamp(1.25rem, 4vw, 2rem);
    --section-pad: clamp(5rem, 12vw, 10rem);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }

/* === Loader === */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2rem; transition: opacity 0.8s ease, visibility 0.8s ease; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { opacity: 0; transform: scale(0.8) translateY(10px); animation: loaderIn 0.8s var(--ease-out) 0.2s forwards; }
.loader-bar-track { width: 180px; height: 2px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; opacity: 0; animation: loaderIn 0.6s var(--ease-out) 0.5s forwards; }
.loader-bar { height: 100%; width: 0%; background: var(--gradient-main); border-radius: 2px; transition: width 0.3s ease; }
.loader-text { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0; animation: loaderIn 0.6s var(--ease-out) 0.7s forwards; }
@keyframes loaderIn { to { opacity: 1; transform: scale(1) translateY(0); } }

/* === Custom Cursor === */
.cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.25s, height 0.25s, background 0.25s; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 36px; height: 36px; border: 1px solid rgba(212,168,67,0.35); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.25s, background 0.25s; }
.cursor-dot.hover { width: 10px; height: 10px; background: var(--coral); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: rgba(232,120,94,0.25); background: rgba(232,120,94,0.04); }
.cursor-dot.press { width: 4px; height: 4px; }
.cursor-ring.press { width: 28px; height: 28px; }

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

/* === Page Transition === */
.page-transition { position: fixed; inset: 0; z-index: 9500; background: var(--bg-deep); transform: translateY(100%); transition: transform 0.6s var(--ease-out); pointer-events: none; }
.page-transition.active { transform: translateY(0); }

/* === Reveals === */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-children .reveal:nth-child(1) { transition-delay: 0.04s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.22s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.28s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.34s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.40s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.46s; }

/* === Navigation === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.25rem 0; transition: all 0.5s var(--ease-smooth); }
.nav.scrolled { background: rgba(9,9,11,0.82); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; font-size: 1.05rem; font-weight: 300; letter-spacing: 0.02em; transition: opacity 0.3s; }
.nav-logo strong { font-weight: 700; }
.nav-logo:hover { opacity: 0.75; }
.nav-links { display: flex; gap: 2.25rem; }
.nav-links a { font-size: 0.82rem; font-weight: 400; color: var(--text-secondary); letter-spacing: 0.04em; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gradient-main); transition: width 0.4s var(--ease-out); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); transition: all 0.3s; border-radius: 1px; }

/* === Hero === */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(212,168,67,0.2) 0%, rgba(232,120,94,0.08) 50%, transparent 70%); top: -20%; right: -15%; animation: orbFloat1 25s ease-in-out infinite; }
.orb-2 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(232,120,94,0.15) 0%, transparent 70%); bottom: -15%; left: -12%; animation: orbFloat2 30s ease-in-out infinite; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%); top: 35%; left: 50%; animation: orbFloat3 22s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 25%{transform:translate(40px,-30px) scale(1.06)} 50%{transform:translate(-25px,40px) scale(0.96)} 75%{transform:translate(35px,20px) scale(1.03)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(35px,-45px) scale(1.05)} 66%{transform:translate(-35px,25px) scale(0.95)} }
@keyframes orbFloat3 { 0%,100%{transform:translateX(-50%) scale(1)} 33%{transform:translateX(-50%) translate(40px,-25px) scale(1.08)} 66%{transform:translateX(-50%) translate(-30px,35px) scale(0.92)} }
.grid-overlay { position: absolute; inset: 0;
    background-image: linear-gradient(rgba(212,168,67,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(212,168,67,0.02) 1px, transparent 1px);
    background-size: 80px 80px; mask-image: radial-gradient(ellipse at center, black 15%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 60%); }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 950px; padding: 0 var(--gap); }
.hero-badge { display: inline-block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(212,168,67,0.2); padding: 0.45rem 1.5rem; border-radius: 100px; margin-bottom: 2.5rem; background: rgba(212,168,67,0.03); opacity: 0; transform: translateY(20px); animation: heroFade 0.8s var(--ease-out) 1.6s forwards; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 400; line-height: 1.08; margin-bottom: 1.75rem; letter-spacing: -0.025em; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; transform: translateY(115%); animation: heroLine 1s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) .line-inner { animation-delay: 1.8s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 1.92s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 2.04s; }
.hero-title .accent-line .line-inner { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; font-weight: 500; }
@keyframes heroLine { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }
.hero-subtitle { font-size: clamp(0.95rem, 1.8vw, 1.1rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.8; opacity: 0; transform: translateY(20px); animation: heroFade 0.8s var(--ease-out) 2.3s forwards; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(20px); animation: heroFade 0.8s var(--ease-out) 2.5s forwards; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 100px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; transition: all 0.4s var(--ease-out); border: none; position: relative; overflow: hidden; }
.btn-primary { background: var(--gradient-main); color: var(--bg-deep); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(212,168,67,0.3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover { border-color: rgba(212,168,67,0.3); color: var(--text-primary); background: rgba(212,168,67,0.04); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.92rem; }

/* Scroll Indicator */
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; opacity: 0; animation: heroFade 0.8s var(--ease-out) 2.8s forwards; }
.scroll-text { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.scroll-line { width: 1px; height: 48px; position: relative; overflow: hidden; }
.scroll-line::before { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, var(--gold)); animation: scrollDrop 2.2s ease-in-out infinite; }
@keyframes scrollDrop { 0%{top:-100%} 100%{top:100%} }

/* === Marquee === */
.marquee { padding: 1.25rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 50s linear infinite; gap: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.04em; padding: 0 1.25rem; white-space: nowrap; transition: color 0.3s; }
.marquee-item:hover { color: var(--gold); }
.marquee-sep { color: var(--gold); opacity: 0.25; font-size: 0.6rem; padding: 0 0.5rem; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-label { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.section-title em { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.section-desc { max-width: 560px; margin: 1.25rem auto 0; color: var(--text-secondary); font-weight: 300; font-size: 1rem; line-height: 1.75; }

/* === Tríade === */
.triade { padding: var(--section-pad) 0; }
.triade-visual { position: relative; }
.triade-triangle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 450px; opacity: 0; transition: opacity 1.5s; pointer-events: none; }
.triade-triangle.visible { opacity: 0.3; }
.triangle-svg { width: 100%; height: 100%; }
.triangle-svg polygon { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.5s var(--ease-out); }
.triade-triangle.visible .triangle-svg polygon { stroke-dashoffset: 0; }
.triade-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.pillar { background: rgba(17,17,20,0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.04); border-radius: 20px; padding: 2.5rem; transition: all 0.5s var(--ease-out); position: relative; overflow: hidden; }
.pillar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: var(--gradient-main); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.pillar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(212,168,67,0.05), transparent 50%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.pillar:hover { transform: translateY(-8px); border-color: rgba(212,168,67,0.1); }
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover::after { opacity: 1; }
.pillar-number { font-family: var(--font-display); font-size: 3rem; font-weight: 400; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.25; margin-bottom: 1rem; line-height: 1; }
.pillar h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.3; margin-bottom: 0.85rem; }
.pillar p { color: var(--text-secondary); font-size: 0.9rem; font-weight: 300; line-height: 1.75; margin-bottom: 1.25rem; }
.pillar-brands { font-size: 0.75rem; color: var(--gold); font-weight: 500; letter-spacing: 0.02em; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.04); }

/* === Ecosystem === */
.ecossistema { padding: var(--section-pad) 0; background: var(--bg-surface); position: relative; }
.ecossistema::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,67,0.12), transparent); }
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.brand-card { position: relative; border-radius: 18px; display: block; transition: transform 0.5s var(--ease-out); transform-style: preserve-3d; }
.brand-card-glow { position: absolute; inset: -1px; border-radius: inherit; background: var(--gradient-border); opacity: 0; transition: opacity 0.5s; z-index: 0; }
.brand-card:hover .brand-card-glow { opacity: 1; }
.brand-card-inner { position: relative; z-index: 1; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); border-radius: inherit; padding: 2rem; height: 100%; display: flex; flex-direction: column; transition: border-color 0.4s; }
.brand-card:hover .brand-card-inner { border-color: transparent; }
.brand-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1.25rem; opacity: 0.65; transition: all 0.4s var(--ease-out); }
.brand-card:hover .brand-icon { opacity: 1; transform: scale(1.08); }
.brand-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.6rem; line-height: 1.3; }
.brand-desc { font-size: 0.82rem; color: var(--text-secondary); font-weight: 300; line-height: 1.7; flex-grow: 1; margin-bottom: 1.25rem; }
.brand-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.04); }
.brand-tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); opacity: 0.7; }
.brand-arrow { font-size: 1.1rem; color: var(--text-muted); transition: all 0.3s var(--ease-out); }
.brand-card:hover .brand-arrow { color: var(--coral); transform: translate(3px, -3px); }

/* === Flow === */
.flow { padding: var(--section-pad) 0; }
.flow-content { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.flow-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; line-height: 1.15; margin-bottom: 1.25rem; }
.flow-title em { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.flow-desc { max-width: 560px; margin: 0 auto; color: var(--text-secondary); font-weight: 300; font-size: 1rem; line-height: 1.75; }
.flow-steps { max-width: 680px; margin: 0 auto; position: relative; padding-left: 40px; }
.flow-steps::before { content: ''; position: absolute; top: 20px; left: 15px; bottom: 20px; width: 1px; background: linear-gradient(to bottom, var(--gold), rgba(232,120,94,0.2), transparent); }
.flow-step { display: flex; gap: 2rem; align-items: flex-start; padding: 1.75rem 0; position: relative; }
.flow-step-marker { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-deep); border: 1px solid rgba(212,168,67,0.25); display: flex; align-items: center; justify-content: center; position: absolute; left: -40px; flex-shrink: 0; }
.flow-step-marker span { font-family: var(--font-display); font-size: 0.75rem; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 500; }
.flow-step-content h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.4rem; }
.flow-step-content p { color: var(--text-secondary); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }

/* === Impact === */
.impacto { padding: var(--section-pad) 0; background: var(--bg-surface); position: relative; }
.impacto::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,67,0.12), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 2rem 1rem; position: relative; }
.stat::after { content: ''; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,0.04); }
.stat:last-child::after { display: none; }
.stat-number { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 400; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 300; line-height: 1.5; }


/* === Footer === */
.footer { padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.03); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 300; color: var(--text-secondary); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }

/* === Brand Page Styles === */
.brand-hero { min-height: 70vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 8rem 0 4rem; }
.brand-hero .orb { filter: blur(140px); }
.brand-hero-content { position: relative; z-index: 1; max-width: 700px; }
.brand-hero-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2rem; transition: color 0.3s; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-hero-back:hover { color: var(--gold); }
.brand-hero-back .back-arrow { transition: transform 0.3s var(--ease-out); }
.brand-hero-back:hover .back-arrow { transform: translateX(-4px); }
.brand-hero-tag { display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem; border: 1px solid; }
.brand-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.brand-hero h1 em { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.brand-hero-desc { font-size: 1.05rem; color: var(--text-secondary); font-weight: 300; line-height: 1.75; margin-bottom: 2.5rem; }
.brand-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.brand-about { padding: 6rem 0; }
.brand-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.brand-about-text h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-bottom: 1.25rem; line-height: 1.2; }
.brand-about-text p { color: var(--text-secondary); font-weight: 300; line-height: 1.75; margin-bottom: 0.85rem; }
.brand-services { padding: 6rem 0; background: var(--bg-surface); }
.brand-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.service-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); border-radius: 18px; padding: 2rem; transition: all 0.5s var(--ease-out); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: var(--gradient-main); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.service-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.06); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.85rem; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }
.brand-ecosystem { padding: 6rem 0; text-align: center; background: var(--bg-surface); position: relative; }
.brand-ecosystem::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,67,0.1), transparent); }
.brand-ecosystem h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; margin-bottom: 0.85rem; }
.brand-ecosystem h2 em { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.brand-ecosystem p { color: var(--text-secondary); font-weight: 300; max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; font-size: 0.95rem; }
.ecosystem-brands-row { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.ecosystem-brand-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.1rem; border: 1px solid rgba(255,255,255,0.05); border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); transition: all 0.3s; }
.ecosystem-brand-pill:hover { border-color: rgba(212,168,67,0.25); color: var(--text-primary); background: rgba(212,168,67,0.04); }
.ecosystem-brand-pill.current { border-color: rgba(212,168,67,0.35); color: var(--gold); background: rgba(212,168,67,0.06); }
/* === CTA Section (brand pages) === */
.cta-section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 60%); pointer-events: none; }
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; line-height: 1.15; margin-bottom: 1.25rem; }
.cta-desc { max-width: 500px; margin: 0 auto 2.5rem; color: var(--text-secondary); font-size: 1rem; font-weight: 300; line-height: 1.75; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-brands { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.cta-brands a { font-size: 0.75rem; color: var(--text-muted); padding: 0.35rem 0.85rem; border: 1px solid rgba(255,255,255,0.05); border-radius: 100px; transition: all 0.3s; }
.cta-brands a:hover { color: var(--gold); border-color: rgba(212,168,67,0.25); background: rgba(212,168,67,0.04); }

/* === Clients Strip === */
.clients-strip { overflow: hidden; padding: 1.75rem 0; border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); background: var(--bg-surface); }
.clients-strip .clients-track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
.clients-strip:hover .clients-track { animation-play-state: paused; }
.client-name { font-family: var(--font-body); font-size: 0.88rem; font-weight: 400; color: var(--text-muted); white-space: nowrap; letter-spacing: 0.02em; transition: color 0.3s; padding: 0 0.25rem; }
.client-name:hover { color: var(--text-primary); }
.client-sep { color: rgba(212,168,67,0.2); font-size: 0.75rem; padding: 0 1rem; user-select: none; }

/* === Certifications Strip === */
.certs { padding: 3rem 0; }
.certs-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.cert { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); position: relative; transition: color 0.3s; }
.cert:hover { color: var(--gold); }
.cert::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin-right: 0.6rem; opacity: 0.3; vertical-align: middle; }

/* === Testimonials === */
.testimonials { padding: var(--section-pad) 0; background: var(--bg-surface); position: relative; }
.testimonials::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,168,67,0.1), transparent); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); border-radius: 20px; padding: 2.5rem; display: flex; flex-direction: column; transition: all 0.4s var(--ease-out); position: relative; margin: 0; }
.testimonial::before { content: '\201C'; position: absolute; top: 1.25rem; left: 2rem; font-family: var(--font-display); font-size: 5rem; color: var(--gold); opacity: 0.07; line-height: 1; pointer-events: none; }
.testimonial:hover { transform: translateY(-5px); border-color: rgba(212,168,67,0.1); }
.testimonial p { font-size: 0.95rem; color: var(--text-secondary); font-weight: 300; line-height: 1.85; font-style: italic; flex-grow: 1; margin-bottom: 2rem; position: relative; z-index: 1; }
.testimonial footer { display: flex; flex-direction: column; gap: 0.15rem; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 1.25rem; }
.testimonial strong { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.testimonial span { font-size: 0.78rem; color: var(--text-muted); font-weight: 300; }
.testimonial cite { font-size: 0.7rem; color: var(--gold); font-weight: 500; letter-spacing: 0.08em; font-style: normal; opacity: 0.6; margin-top: 0.25rem; }

/* === Footer Enhanced === */
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-location { font-size: 0.72rem; color: var(--text-muted); }
.footer-social { color: var(--text-muted); transition: color 0.3s; display: flex; align-items: center; }
.footer-social:hover { color: var(--gold); }
.footer-links { display: flex; gap: 1rem; align-items: center; }

.page-enter { animation: pageEnter 0.7s var(--ease-out) forwards; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }

/* === Responsive === */
@media (max-width: 1024px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .triade-triangle { display: none; }
    .brand-about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 550px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none !important; }
    body, a, button { cursor: auto; }

    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(9,9,11,0.97); backdrop-filter: blur(24px); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.3rem; font-weight: 300; }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    .triade-pillars { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat::after { display: none; }

    .flow-steps { padding-left: 32px; }
    .flow-step-marker { left: -32px; width: 26px; height: 26px; }
    .flow-step-marker span { font-size: 0.65rem; }

    .footer-top { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .certs-row { gap: 1rem 1.5rem; }
    .testimonial { padding: 1.75rem; }

    .hero-scroll { display: none; }
}

@media (max-width: 480px) {
    :root { --gap: 1.1rem; }
    .hero-badge { font-size: 0.6rem; padding: 0.35rem 1rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.82rem; }
    .btn-lg { padding: 0.85rem 1.75rem; font-size: 0.85rem; }
    .pillar { padding: 1.75rem; }
    .brand-card-inner { padding: 1.5rem; }
    .contact-form-wrap { padding: 1.5rem; }
    .brands-grid { gap: 1rem; }
}

/* === Selection & Scrollbar === */
::selection { background: rgba(212,168,67,0.2); color: var(--text-primary); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(212,168,67,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,67,0.3); }
