@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@300;400;600;800&family=Space+Mono:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@400;700;900&display=swap');

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
@media (pointer: fine) {
    body, a, button { cursor: none; }
}
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background-color: white;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), height 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: width, height, transform;
    display: none;
}
@media (pointer: fine) {
    .custom-cursor { display: block; }
}
.custom-cursor.hovering {
    width: 60px; height: 60px;
    background-color: transparent;
    border: 1px solid white;
}

/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent; /* Rely on fixed backgrounds */
    overflow-x: hidden;
}
body.loading {
    overflow: hidden;
}

/* ==========================================================================
   CUSTOM SCROLLBAR (Dynamic)
   ========================================================================== */
:root {
    --scroll-bg: #0a0a0a;
    --scroll-thumb: #ff0055;
    --scroll-thumb-hover: #00ffff;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scroll-bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000;
    color: #fff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-text {
    position: relative;
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 2px;
    color: #fff;
}

.loader-text::before,
.loader-text::after {
    content: 'WEBINTELLICA';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
}

.loader-text::before {
    left: 4px;
    text-shadow: -2px 0 #ff0055;
    animation: loader-glitch-1 2s infinite linear alternate-reverse;
}

.loader-text::after {
    left: -4px;
    text-shadow: 2px 0 #00ffff;
    animation: loader-glitch-2 3s infinite linear alternate-reverse;
}

@keyframes loader-glitch-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  5% { clip-path: inset(10% 0 60% 0); }
  10% { clip-path: inset(80% 0 5% 0); }
  15% { clip-path: inset(40% 0 20% 0); transform: translate(-5px, 2px); }
  20% { clip-path: inset(90% 0 10% 0); transform: translate(5px, -2px); }
  25% { clip-path: inset(15% 0 80% 0); }
  30% { clip-path: inset(50% 0 30% 0); }
  35% { clip-path: inset(5% 0 90% 0); transform: translate(-2px, 5px); }
  40% { clip-path: inset(70% 0 15% 0); }
  45% { clip-path: inset(30% 0 50% 0); }
  50% { clip-path: inset(85% 0 5% 0); transform: translate(5px, -5px); }
  55% { clip-path: inset(10% 0 75% 0); }
  60% { clip-path: inset(60% 0 25% 0); }
  65% { clip-path: inset(25% 0 60% 0); }
  70% { clip-path: inset(95% 0 2% 0); transform: translate(-3px, 3px); }
  75% { clip-path: inset(45% 0 45% 0); }
  80% { clip-path: inset(15% 0 70% 0); }
  85% { clip-path: inset(80% 0 10% 0); transform: translate(3px, -3px); }
  90% { clip-path: inset(5% 0 85% 0); }
  95% { clip-path: inset(55% 0 35% 0); }
  100% { clip-path: inset(35% 0 55% 0); }
}

@keyframes loader-glitch-2 {
  0% { clip-path: inset(15% 0 75% 0); }
  5% { clip-path: inset(85% 0 10% 0); transform: translate(4px, -2px); }
  10% { clip-path: inset(40% 0 30% 0); }
  15% { clip-path: inset(5% 0 90% 0); }
  20% { clip-path: inset(60% 0 15% 0); transform: translate(-4px, 2px); }
  25% { clip-path: inset(25% 0 50% 0); }
  30% { clip-path: inset(95% 0 2% 0); }
  35% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -4px); }
  40% { clip-path: inset(75% 0 10% 0); }
  45% { clip-path: inset(35% 0 45% 0); }
  50% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 4px); }
  55% { clip-path: inset(20% 0 65% 0); }
  60% { clip-path: inset(50% 0 35% 0); }
  65% { clip-path: inset(5% 0 85% 0); }
  70% { clip-path: inset(90% 0 5% 0); transform: translate(3px, -1px); }
  75% { clip-path: inset(30% 0 55% 0); }
  80% { clip-path: inset(65% 0 20% 0); }
  85% { clip-path: inset(15% 0 80% 0); transform: translate(-3px, 1px); }
  90% { clip-path: inset(85% 0 10% 0); }
  95% { clip-path: inset(45% 0 40% 0); }
  100% { clip-path: inset(10% 0 70% 0); }
}

.loader-hidden {
    transform: translateY(-100%);
}

/* ==========================================================================
   LIQUID PARALLAX SECTIONS
   ========================================================================== */
section {
    min-height: 120vh;
    width: 100vw;
    position: relative;
    padding: 15rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    transform: translateZ(0); /* Hardware acceleration */
}

.brutal-container, .apple-container, .cyber-container, .editorial-container, .neo-container {
    will-change: transform, opacity;
}

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

/* ==========================================================================
   FIXED BACKGROUND CROSSFADING LAYERS
   ========================================================================== */
.fixed-bgs {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    will-change: opacity;
}

.bg-layer.active {
    opacity: 1;
}

/* Background Definitions */
.layer-brutalist {
    background-color: #d1d1d1;
    background-image: linear-gradient(#000 2px, transparent 2px), linear-gradient(90deg, #000 2px, transparent 2px);
    background-size: 80px 80px;
    background-position: -2px -2px;
}
.layer-apple {
    background-color: #000;
}
.layer-apple::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(66, 133, 244, 0.15), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(219, 68, 55, 0.1), transparent 30%);
    z-index: 0; pointer-events: none;
}
.layer-cyberpunk {
    background-color: #050510;
}
.layer-editorial {
    background-color: #f4f4f0;
}
.layer-neobrutal {
    background-color: #ffb7b2;
}


/* ==========================================================================
   REVEAL ANIMATIONS (SCROLL-TRIGGERED)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }

/* ── ARTISTIC TYPOGRAPHY CLASSES ── */
.anim-word, .anim-char {
    display: inline-block;
}

/* 1. Brutal Skew */
[data-animate="brutal-skew"] .anim-word {
    opacity: 0;
    transform: translateX(-50px) skewX(-20deg);
}
[data-animate="brutal-skew"].is-animated .anim-word {
    animation: brutal-skew-anim 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc(var(--word-index) * 0.1s);
}
@keyframes brutal-skew-anim {
    to { opacity: 1; transform: translateX(0) skewX(0); }
}

/* 2. Apple Blur */
[data-animate="apple-blur"] .anim-word {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.1) translateY(20px);
}
[data-animate="apple-blur"].is-animated .anim-word {
    animation: apple-blur-anim 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--word-index) * 0.1s);
}
@keyframes apple-blur-anim {
    to { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); }
}

/* 3. Cyber Glitch */
[data-animate="cyber-glitch"] .anim-char {
    opacity: 0;
    transform: scaleY(0.1);
}
[data-animate="cyber-glitch"].is-animated .anim-char {
    animation: cyber-glitch-anim 0.4s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    animation-delay: calc((var(--char-index) * 0.02s) + (random() * 0.1s)); /* Pseudo random stagger */
}
/* A CSS hack for pseudo-random delay without SASS: we just use char-index */
[data-animate="cyber-glitch"].is-animated .anim-char {
    animation-delay: calc(var(--char-index) * 0.03s);
}
@keyframes cyber-glitch-anim {
    0% { opacity: 1; transform: scaleY(0.1); color: #fff; background: #00ff00; }
    50% { opacity: 0; transform: scaleY(1.5); color: #00ff00; background: transparent; }
    100% { opacity: 1; transform: scaleY(1); }
}

/* 4. Editorial Mask */
[data-animate="editorial-mask"] .anim-word {
    overflow: hidden;
    vertical-align: top;
}
[data-animate="editorial-mask"] .anim-char {
    transform: translateY(100%);
    opacity: 0;
}
[data-animate="editorial-mask"].is-animated .anim-char {
    animation: editorial-mask-anim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--char-index) * 0.015s);
}
@keyframes editorial-mask-anim {
    to { transform: translateY(0); opacity: 1; }
}

/* 5. Neo Bounce */
[data-animate="neo-bounce"] .anim-char {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
}
[data-animate="neo-bounce"].is-animated .anim-char {
    animation: neo-bounce-anim 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--char-index) * 0.03s);
}
@keyframes neo-bounce-anim {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   GLOBAL NAV (Adapts to background)
   ========================================================================== */
.global-nav {
    position: fixed;
    top: 0; left: 0; width: 100vw;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: color 0.5s ease;
    mix-blend-mode: normal; 
}

.logo-mark {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

/* Dynamic Logo Themes */
.logo-mark[data-theme="theme-brutal"] { font-family: 'Archivo Black', sans-serif; letter-spacing: -1px; }
.logo-mark[data-theme="theme-apple"] { font-family: 'Inter', sans-serif; font-weight: 300; letter-spacing: 2px; }
.logo-mark[data-theme="theme-cyber"] { font-family: 'Space Mono', monospace; font-weight: 700; text-shadow: 0 0 5px currentColor; }
.logo-mark[data-theme="theme-editorial"] { font-family: 'Playfair Display', serif; font-style: italic; letter-spacing: 0; }
.logo-mark[data-theme="theme-neobrutal"] { font-family: 'Outfit', sans-serif; font-weight: 900; text-transform: uppercase; }

/* The Glitch Switch Animation */
.glitch-switch {
    animation: logo-glitch-switch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes logo-glitch-switch {
    0% { transform: scale(1) skew(0); filter: blur(0); opacity: 1; }
    20% { transform: scale(1.1) skew(-10deg) translate(-2px, 2px); filter: blur(2px); opacity: 0.8; color: #00ffff; }
    40% { transform: scale(0.9) skew(10deg) translate(2px, -2px); filter: blur(4px); opacity: 0.5; color: #ff0055; }
    60% { transform: scale(1.2) skew(-5deg) translate(-2px, -2px); filter: blur(1px); opacity: 0.9; color: #00ff00; }
    80% { transform: scale(0.95) skew(5deg) translate(2px, 2px); filter: blur(0); opacity: 1; color: inherit; }
    100% { transform: scale(1) skew(0); filter: blur(0); opacity: 1; }
}

.global-nav > * {
    pointer-events: auto;
}

.logo-mark {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-cta {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s, color 0.3s;
}

.nav-cta.is-flying {
    transition: transform 0.15s ease-out; /* Bouncy rubber band trail */
    pointer-events: none; /* So clicks pass through to the page */
    z-index: 999999;
}

.nav-cta:hover {
    background: #fff;
    color: #000;
}


/* ==========================================================================
   THEME 1: CRAZY BRUTALIST (Hero)
   ========================================================================== */
.theme-brutalist {
    font-family: 'Space Mono', monospace;
    color: #000;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: #00ffff;
    border: 4px solid #000;
    padding: 0.5rem 1rem;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    box-shadow: 6px 6px 0px #000;
    margin-bottom: 2rem;
    transform: rotate(2deg);
}

.hero-title-group .hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3.5rem, 8vw, 10rem);
    text-transform: uppercase;
    background: #fff;
    border: 6px solid #000;
    display: table;
    padding: 0 1rem;
    box-shadow: 10px 10px 0px #000;
    font-weight: 700; /* was inherited from <h1>; keeps the same rendering */
    margin-top: 0; /* <p> now, not <h1>; keep the per-line margin-left offsets */
    margin-bottom: 1rem;
    line-height: 0.9;
}

.hero-title-1 { transform: rotate(-2deg); background: #ff0055 !important; color: #fff; }
.hero-title-2 { transform: rotate(1deg); margin-left: 5vw; }
.hero-title-3 { transform: rotate(-1deg); background: #ccff00 !important; margin-left: 2vw; }

.hero-sub {
    margin-top: 3rem;
    max-width: 800px;
    background: #000;
    color: #fff;
    padding: 2rem;
    border: 6px solid #000;
    box-shadow: 10px 10px 0px #fff;
}

.hero-sub p { font-size: 1.5rem; line-height: 1.4; }
.hero-h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2.75rem);
    line-height: 1.15;
    width: fit-content;
    max-width: 900px;
    background: #fff;
    color: #000;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    padding: 0.5rem 1rem;
    margin: 0 0 1rem;
}
.hero-plans-link {
    display: inline-block;
    margin-bottom: 2.5rem;
    padding: 0.4rem 0.9rem;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.hero-plans-link:hover, .hero-plans-link:focus-visible { background: #ff0055; }

.hero-actions {
    display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}

.brutal-btn {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 4px solid #000;
    box-shadow: 6px 6px 0px #000;
    cursor: pointer;
    transition: transform 0.1s;
    background: #fff;
    color: #000;
}
.brutal-btn.inverted { background: #000; color: #fff; border-color: #fff; }
.brutal-btn.lime { background: #ccff00; }
.brutal-btn:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0px #000; }

.rotating-star {
    position: absolute;
    right: -10%; top: 10%;
    width: 400px; height: 400px;
    animation: spin 15s linear infinite;
    z-index: 1;
    filter: drop-shadow(15px 15px 0px #000);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ==========================================================================
   THEME 2: APPLE / GLASSMORPHISM (About)
   ========================================================================== */
.theme-apple {
    font-family: 'Inter', sans-serif;
    color: #f5f5f7;
}

.apple-container {
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
}

.apple-eyebrow {
    font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #86868b; margin-bottom: 1rem;
}

.apple-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 4rem;
}

.apple-gradient {
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apple-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}

.apple-text-box {
    font-size: 1.2rem; line-height: 1.6; color: #a1a1a6;
}
.apple-text-box strong { color: #fff; font-weight: 600; }
.apple-text-box p { margin-bottom: 1.5rem; }

.apple-pillars {
    display: flex; flex-direction: column; gap: 2rem;
}

.apple-btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.apple-btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.apple-btn-outline:hover {
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}
.apple-btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.apple-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s, background 0.3s;
}

.apple-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.apple-icon {
    width: 48px; height: 48px; margin-bottom: 1.5rem; color: #fff;
}

.apple-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; color: #fff; }
.apple-card p { font-size: 1rem; color: #a1a1a6; line-height: 1.5; }

/* ==========================================================================
   CARE PLANS (Apple / Glassmorphism variant)
   ========================================================================== */
.theme-plans { padding-bottom: 40vh; }
.plans-heading { margin-bottom: 1.5rem; }
.plans-lede { font-size: 1.25rem; color: #a1a1a6; line-height: 1.6; max-width: 720px; margin-bottom: 3rem; }

.plans-chooser {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.plans-chooser h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.plans-chooser ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; }
.plans-chooser li { font-size: 1.1rem; color: #a1a1a6; line-height: 1.5; }
.plans-chooser strong { color: #fff; font-weight: 600; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}
.plan-card { display: flex; flex-direction: column; }
.plan-card .plan-name { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-card .plan-for { font-size: 0.95rem; min-height: 4.5em; margin-bottom: 1.25rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.25rem; flex-wrap: nowrap; white-space: nowrap; }
.plan-amount { font-size: clamp(2.25rem, 3vw, 3rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.plan-per { font-size: 1.1rem; font-weight: 600; color: #f5f5f7; }
.plan-price-custom { min-height: 3rem; align-items: center; white-space: normal; }
.plan-amount-text { font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.25; }
.plan-card .plan-yearly { font-size: 0.95rem; color: #f5f5f7; margin-top: 0.5rem; }
.plan-card .plan-yearly span { color: #a1a1a6; }
.plan-card .plan-terms-chip {
    display: inline-block;
    align-self: flex-start;
    margin: 0.75rem 0 1.25rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}
.plan-card .plan-summary { font-size: 0.95rem; font-style: italic; color: #d2d2d7; margin-bottom: 1.25rem; }
.plan-list { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.plan-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #a1a1a6;
    line-height: 1.5;
}
.plan-list li::before { content: '\2713'; position: absolute; left: 0; color: #fecfef; font-weight: 700; }
.plan-cta { align-self: flex-start; text-align: center; }

.plans-terms { margin-top: 4rem; }
.plans-terms h3 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.plans-terms dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.plans-terms dt { font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.plans-terms dd { color: #a1a1a6; line-height: 1.6; }
.plans-terms-more { margin-top: 2rem; }
.plans-terms-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.plans-terms-more a:hover, .plans-terms-more a:focus-visible { color: #fecfef; }

@media (max-width: 1200px) {
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .plans-chooser ul, .plans-terms dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .plans-grid { grid-template-columns: 1fr; }
    .plan-card .plan-for { min-height: 0; }
}

/* ==========================================================================
   THEME 3: CYBERPUNK / RETRO TERMINAL (Services)
   ========================================================================== */
.theme-cyberpunk {
    font-family: 'Space Mono', monospace;
    color: #00ff00;
}

.cyber-container {
    max-width: 1200px; margin: 0 auto; width: 100%;
}

.cyber-header {
    margin-bottom: 4rem;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 2rem;
}

.cyber-blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.cyber-glitch {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin: 1rem 0;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
}

.cyber-header p { font-size: 1.2rem; color: #00ff00; max-width: 800px; }

#work-intro, #work {
    display: block !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#work {
    height: 700vh; /* Scroll length — controls horizontal pacing */
    min-height: auto;
}

/* Horizontal Track Structure */
.horizontal-scroll-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center; 
    justify-content: flex-start;
}

.work-intro-block {
    width: 90vw;
    max-width: 800px;
    padding: 0 5vw;
}
.work-intro-block h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0;
}
.work-intro-block p.editorial-sub {
    max-width: 800px;
}

.horizontal-track {
    position: relative;
    display: flex;
    flex-direction: row;
    width: max-content;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 40vw 0 10vw; /* First card starts 10vw from left (in viewport) */
    gap: 6vw;
    align-items: center; /* Centers the cards inside the full height track */
}

.cyber-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.cyber-card {
    background: rgba(0, 255, 0, 0.05); border: 1px solid rgba(0, 255, 0, 0.2); padding: 2rem; text-align: left;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.cyber-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: #00ff00; transition: height 0.3s ease;
}
.cyber-card:hover { transform: translateY(-5px); border-color: #00ff00; box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1); }
.cyber-card:hover::before { height: 100%; }

.cyber-border {
    position: absolute; top: -5px; left: -5px; width: 20px; height: 20px;
    border-top: 3px solid #00ff00; border-left: 3px solid #00ff00;
}

.cyber-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.cyber-card p { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.5; }

.cyber-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cyber-tags span { border: 1px solid #00ff00; padding: 0.2rem 0.5rem; font-size: 0.8rem; }


/* ==========================================================================
   THEME 4: EDITORIAL MINIMALIST (Work)
   ========================================================================== */
.theme-editorial {
    font-family: 'Outfit', sans-serif;
    color: #1a1a1a;
}

.editorial-container { max-width: 1000px; margin: 0 auto; width: 100%; }

.editorial-header { text-align: center; margin-bottom: 6rem; }
.editorial-eyebrow { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.editorial-heading { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; }
.editorial-heading i { font-style: italic; color: #666; }
.editorial-sub { font-size: 1.2rem; color: #666; max-width: 600px; margin: 0 auto; }

.editorial-grid {
    display: flex;
    flex-direction: row;
    gap: 6vw;
    flex-shrink: 0;
    align-items: center;
}

.editorial-card {
    display: block; 
    width: clamp(280px, 28vw, 420px);
    flex-shrink: 0;
    will-change: transform;
    transition: opacity 0.3s, transform 0.3s;
}
.editorial-card:hover { opacity: 0.85; }

.editorial-img-wrapper {
    width: 100%; aspect-ratio: 16/10; overflow: hidden; margin-bottom: 1.25rem;
}
.editorial-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; filter: sepia(0.2) contrast(1.1); transition: transform 0.5s ease;
}
.editorial-card:hover img { transform: scale(1.05); }

.editorial-meta {
    display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #ddd; padding-bottom: 0.5rem; margin-bottom: 1rem;
}
.editorial-meta h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.editorial-meta span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.editorial-card p { font-size: 0.95rem; line-height: 1.6; color: #444; }

.editorial-more {
    text-align: center; border-top: 1px solid #ddd; padding-top: 4rem;
}
.editorial-more h3 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 1rem; }


/* ==========================================================================
   THEME 5: NEO-BRUTALISM (Contact)
   ========================================================================== */
.theme-neobrutal {
    font-family: 'Outfit', sans-serif;
    color: #222;
}

.neo-container {
    max-width: 1200px; margin: 0 auto; width: 100%;
}

.neo-header { margin-bottom: 4rem; text-align: center; }
.neo-header h2 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; letter-spacing: -1px; text-shadow: 4px 4px 0 #000; color: #fff; margin-bottom: 1.5rem; }
.neo-header h2 span { color: #e2f0cb; }
.neo-header p { font-size: 1.3rem; font-weight: 600; max-width: 800px; margin: 0 auto; }

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

.neo-btn {
    display: inline-block; background: #000; color: #fff; font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 900;
    padding: 1rem 2rem; border: 4px solid #000; border-radius: 50px; cursor: pointer; transition: all 0.2s;
}
.neo-btn:hover { background: #fff; color: #000; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #000; }

.neo-footer { text-align: center; font-weight: 700; margin-top: 4rem; padding-top: 2rem; border-top: 4px solid #000; }
.neo-footer a { text-decoration: underline; }
.ai-disclaimer {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: #ff0055;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    animation: blink 2s infinite;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
    .apple-grid, .editorial-grid { grid-template-columns: 1fr; gap: 3rem; }
    .editorial-card[style] { margin-top: 0 !important; } /* Reset offsets */
    .hero-title-group .hero-title { font-size: clamp(2rem, 10vw, 3.5rem); margin-left: 0 !important; transform: none !important; display: block; }
    .hero-title-1, .hero-title-2, .hero-title-3 { display: block; width: 100%; box-sizing: border-box; }
    .global-nav { padding: 1rem; }
    
    /* Ensure small screen text doesn't overflow */
    .loader-text { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    .apple-heading, .cyber-glitch, .editorial-heading, .neo-header h2 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    
    /* Fix grid overflows on very small devices */
    .cyber-grid { grid-template-columns: 1fr; }
    
    /* Scale decorative elements */
    .rotating-star { width: 150px; height: 150px; right: 5%; top: 5%; opacity: 0.5; }
    .hero-badge { font-size: 0.9rem; transform: none; }
    
    .horizontal-track { padding: 0 10vw 0 100vw; gap: 5vw; }
    .work-sticky-header { width: 90vw; }
    .editorial-card { width: 85vw; max-width: none; }
    .editorial-grid { gap: 10vw; }
    
    section { padding: 6rem 1rem; min-height: 100vh; } /* Reduce scroll distance slightly on mobile so it doesn't feel endless */
}

/* ==========================================================================
   COOKIE CONSENT BANNER & LEGAL PAGES
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: #fff;
    color: #000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999999;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 10px 10px 0px #ff00ff;
    border: 2px solid #000;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; letter-spacing: -0.5px;}
.cookie-banner a { color: #ff0055; text-decoration: underline; }
.cookie-banner button {
    background: #000;
    color: #00ffff;
    border: none;
    padding: 0.8rem 2rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.cookie-banner button:hover {
    background: #ff0055;
    color: #fff;
}
@media (max-width: 768px) {
    .cookie-banner { flex-direction: column; gap: 1rem; text-align: center; bottom: 1rem; left: 1rem; right: 1rem; }
}

/* Legal Pages Overrides */
.legal-page {
    padding: 15rem 2rem 10rem 2rem;
    background: #e4dccc; /* Neo-brutal bg */
    color: #111;
    font-family: 'Space Mono', monospace;
    min-height: 100vh;
}
.legal-page h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; text-transform: uppercase; border-bottom: 4px solid #111; padding-bottom: 2rem; margin-bottom: 1rem; }
.legal-page h2 { font-family: 'Syne', sans-serif; font-size: 2rem; margin-top: 4rem; margin-bottom: 1rem; text-transform: uppercase; }
.legal-page p, .legal-page ul { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 800px; }
.legal-page ul { padding-left: 2rem; }
.legal-page a { color: #ff0000; text-decoration: underline; }
.legal-page h2[id] { scroll-margin-top: 130px; }
.legal-terms { max-width: 800px; margin-bottom: 1.5rem; }
.legal-terms > div { margin-bottom: 1.25rem; }
.legal-terms dt { font-size: 1.1rem; font-weight: 700; }
.legal-terms dd { font-size: 1.1rem; line-height: 1.6; }
@media (max-width: 768px) {
    /* Legal pages on phones. Long uppercase words in the headings ("CONDITIONS", "INTELLECTUAL")
       were wider than the screen, which widened the whole page and pushed the cookie banner off the edge. */
    .legal-page { padding: 7rem 1.25rem 8rem; }
    .legal-page h1 { font-size: clamp(1.5rem, 7vw, 2.5rem); overflow-wrap: anywhere; }
    .legal-page h2 { font-size: clamp(1.1rem, 5.2vw, 1.75rem); margin-top: 3rem; overflow-wrap: anywhere; }
    .legal-page p, .legal-page ul, .legal-terms dt, .legal-terms dd { font-size: 1rem; overflow-wrap: anywhere; }
    .legal-page h2[id] { scroll-margin-top: 90px; }
}

/* ==========================================================================
   PICASSO-LEVEL KINETIC SVG BACKGROUNDS
   ========================================================================== */
.kinetic-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* 1. Brutalist Hero Animations */
.bg-brutal-svg .brutal-spin-1 { transform-origin: center; animation: spin-slow 40s linear infinite; }
.bg-brutal-svg .brutal-spin-2 { transform-origin: center; animation: spin-slow 30s linear infinite reverse; }

/* 2. Starry Night Animations (Apple Theme) */
.starry-twinkle {
    animation: twinkle 4s ease-in-out infinite alternate;
}
.starry-halo {
    animation: twinkle-halo 4s ease-in-out infinite alternate;
}
.s1 { animation-delay: 0s; }
.s2 { animation-delay: 1.5s; }
.s3 { animation-delay: 0.7s; }
.s4 { animation-delay: 2.2s; }

.wind-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: blow-wind 20s linear infinite;
}
.w1 { animation-delay: 0s; }
.w2 { animation-delay: 5s; animation-duration: 25s; }
.w3 { animation-delay: 10s; animation-duration: 18s; }

/* 3. Cyberpunk Terminal Animations */
.cyber-grid-anim { animation: scroll-grid 10s linear infinite; transform-origin: top; }
.cyber-spin { transform-origin: 500px 500px; animation: spin-slow 15s linear infinite; }
.radar-sweep { transform-origin: 500px 500px; animation: spin-slow 4s linear infinite; }

/* 4. Picasso Editorial Animations */
.picasso-line {
    stroke-dasharray: 4500;
    stroke-dashoffset: 4500;
    animation: draw-picasso 15s ease-in-out infinite alternate;
}

/* 5. Neo-Brutal Pop Art Animations */
.neo-shape { transform-origin: center; }
.neo-1 { animation: float-bounce 8s ease-in-out infinite alternate; }
.neo-2 { animation: float-bounce 6s ease-in-out infinite alternate-reverse; }
.neo-3 { animation: float-bounce 10s ease-in-out infinite alternate; }
.neo-4 { animation: float-bounce 7s ease-in-out infinite alternate-reverse; }
.neo-5 { animation: float-bounce 9s ease-in-out infinite alternate; }

/* Shared Keyframes */
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes scroll-grid { 0% { transform: translateY(0); } 100% { transform: translateY(50px); } }
@keyframes draw-picasso { 0% { stroke-dashoffset: 4500; } 100% { stroke-dashoffset: 0; } }
@keyframes float-bounce { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-50px) rotate(15deg); } }

@keyframes twinkle { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }
@keyframes twinkle-halo { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 0.3; transform: scale(1.5); } }
@keyframes blow-wind { 0% { stroke-dashoffset: 2000; } 100% { stroke-dashoffset: -2000; } }

/* ==========================================================================
   AI ROBOT WHATSAPP WIDGET
   ========================================================================== */
#wa-robot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 999999;
    cursor: none; /* Uses custom cinematic cursor */
    animation: robot-hover 3s ease-in-out infinite alternate;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#wa-robot:hover {
    animation: robot-excited 0.5s ease-in-out infinite alternate;
    transform: scale(1.2);
}

.robot-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Theme Defaults (Base transition for changing clothes) */
.robot-head, .robot-body, .robot-screen, .robot-antenna-bulb, .robot-antenna-line, .robot-eye, .robot-arm, .robot-ear, .robot-neck, .robot-emo-hair, .robot-tear {
    transition: all 0.5s ease;
}

/* Base Styles */
.robot-head, .robot-body, .robot-ear, .robot-neck { fill: #ccc; stroke: #333; stroke-width: 2; }
.robot-screen { fill: #111; }
.robot-eye { fill: #0f0; transition: transform 0.1s ease-out; } /* Fast transition for eye tracking */
.robot-antenna-line { stroke: #333; stroke-width: 2; }
.robot-antenna-bulb { fill: #f00; animation: blink 1s infinite alternate; }
.robot-arm { stroke: #333; }
.robot-arm.left { transform-origin: 25px 75px; }
.robot-arm.right { transform-origin: 75px 75px; }
.robot-emo-hair { fill: #000; opacity: 0; pointer-events: none; }
.robot-tear { fill: #00ffff; opacity: 0; }

/* Hugging Animation */
#wa-robot.robot-hugging .robot-arm.left { transform: rotate(130deg); }
#wa-robot.robot-hugging .robot-arm.right { transform: rotate(-130deg); }

/* THEME: Brutalist */
#wa-robot.theme-brutalist .robot-head, #wa-robot.theme-brutalist .robot-body, #wa-robot.theme-brutalist .robot-ear, #wa-robot.theme-brutalist .robot-neck { fill: #000; stroke: #fff; stroke-width: 3; stroke-dasharray: 5 2; }
#wa-robot.theme-brutalist .robot-screen { fill: #d1d1d1; }
#wa-robot.theme-brutalist .robot-eye { fill: #000; }
#wa-robot.theme-brutalist .robot-arm, #wa-robot.theme-brutalist .robot-antenna-line { stroke: #fff; stroke-width: 3; }
#wa-robot.theme-brutalist .robot-antenna-bulb { fill: #fff; }

/* THEME: Apple (Glassmorphism) */
#wa-robot.theme-apple .robot-head, #wa-robot.theme-apple .robot-body, #wa-robot.theme-apple .robot-ear, #wa-robot.theme-apple .robot-neck { fill: rgba(255, 255, 255, 0.8); stroke: rgba(0,0,0,0.1); backdrop-filter: blur(10px); }
#wa-robot.theme-apple .robot-screen { fill: #f5f5f7; }
#wa-robot.theme-apple .robot-eye { fill: #000; }
#wa-robot.theme-apple .robot-arm, #wa-robot.theme-apple .robot-antenna-line { stroke: rgba(255,255,255,0.8); }
#wa-robot.theme-apple .robot-antenna-bulb { fill: #4285f4; }

/* THEME: Cyberpunk */
#wa-robot.theme-cyberpunk .robot-head, #wa-robot.theme-cyberpunk .robot-body, #wa-robot.theme-cyberpunk .robot-ear, #wa-robot.theme-cyberpunk .robot-neck { fill: #050510; stroke: #00ff00; }
#wa-robot.theme-cyberpunk .robot-screen { fill: #00ff00; }
#wa-robot.theme-cyberpunk .robot-eye { fill: #050510; }
#wa-robot.theme-cyberpunk .robot-arm, #wa-robot.theme-cyberpunk .robot-antenna-line { stroke: #00ff00; }
#wa-robot.theme-cyberpunk .robot-antenna-bulb { fill: #ff00ff; }

/* THEME: Editorial (THE EMO PHASE) */
#wa-robot.theme-editorial .robot-head, #wa-robot.theme-editorial .robot-body, #wa-robot.theme-editorial .robot-ear, #wa-robot.theme-editorial .robot-neck { fill: #fff; stroke: #000; stroke-width: 2; }
#wa-robot.theme-editorial .robot-screen { fill: #000; }
#wa-robot.theme-editorial .robot-eye { fill: #fff; }
#wa-robot.theme-editorial .robot-arm, #wa-robot.theme-editorial .robot-antenna-line { stroke: #000; }
#wa-robot.theme-editorial .robot-antenna-bulb { fill: #000; animation: none; } /* Sad bulb */
#wa-robot.theme-editorial .robot-emo-hair { opacity: 1; transform: translateY(-5px); } /* Emo fringe appears! */
#wa-robot.theme-editorial .robot-tear { opacity: 1; animation: cry 2s ease-in infinite; } /* Crying animation */
#wa-robot.theme-editorial { animation: robot-sad 4s ease-in-out infinite alternate; } /* Sad floating */

/* THEME: Neo-Brutalism */
#wa-robot.theme-neobrutal .robot-head, #wa-robot.theme-neobrutal .robot-body, #wa-robot.theme-neobrutal .robot-ear, #wa-robot.theme-neobrutal .robot-neck { fill: #ffb7b2; stroke: #000; stroke-width: 4; }
#wa-robot.theme-neobrutal .robot-screen { fill: #fff; stroke: #000; stroke-width: 2; }
#wa-robot.theme-neobrutal .robot-eye { fill: #000; }
#wa-robot.theme-neobrutal .robot-arm, #wa-robot.theme-neobrutal .robot-antenna-line { stroke: #000; stroke-width: 4; }
#wa-robot.theme-neobrutal .robot-antenna-bulb { fill: #ffeb3b; stroke: #000; stroke-width: 2; }

/* Tooltip */
.robot-tooltip {
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%) translateY(-10px);
    background: #111;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
#wa-robot:hover .robot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

@keyframes robot-hover {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}
@keyframes robot-sad {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(5px) rotate(2deg); } /* Heavy, sad bobbing */
}
@keyframes robot-excited {
    0% { transform: translateY(0) rotate(-10deg); }
    100% { transform: translateY(-20px) rotate(10deg); }
}
@keyframes cry {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(15px); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ==========================================================================
   NAV LINKS (desktop: inline; phones: menu panel)
   ========================================================================== */
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.25rem; height: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* The hero's rotating star hangs off the right edge; clip it so the page never scrolls sideways */
#hero { overflow-x: clip; }

/* ==========================================================================
   MOBILE OPTIMIZATION (TOUCH & NARROW VIEWPORTS)
   ========================================================================== */
@media (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }

    /* --- Nav: hamburger + menu panel --- */
    /* Solid header on phones so page content never shows through behind the logo.
       Background follows the nav text colour set in script.js (setNavTone). */
    .global-nav {
        padding: 0.75rem 1rem;
        background: #fff;
        border-bottom: 2px solid #000;
        transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
    }
    .global-nav.nav-on-dark { background: #000; border-bottom-color: #fff; }
    /* Keep anchor targets (#plans, #contact) clear of the fixed header */
    html { scroll-padding-top: 76px; }
    .logo-mark { font-size: 1.2rem; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
        width: 48px; height: 48px; padding: 0;
        background: transparent; color: inherit; border: 2px solid currentColor; border-radius: 50%;
        cursor: pointer;
    }
    .nav-toggle-bar { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }
    .global-nav.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .global-nav.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .global-nav.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-links {
        position: fixed; top: 72px; left: 1rem; right: 1rem;
        flex-direction: column; align-items: stretch; gap: 0.75rem;
        padding: 1rem;
        background: #000; color: #fff;
        border: 3px solid #fff; border-radius: 20px; box-shadow: 6px 6px 0 #ff0055;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .global-nav.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
    .nav-links .nav-link, .nav-links .nav-cta {
        display: flex; align-items: center; justify-content: center;
        min-height: 48px; font-size: 1.1rem;
        color: #fff !important; border-color: #fff !important;
    }
    .nav-links .nav-link::after { display: none; }
    .nav-links .nav-cta { transform: none !important; pointer-events: auto !important; }
    /* Legal pages have no menu button: show HIRE US in the bar instead of in the hidden menu panel */
    .legal-nav .nav-links {
        position: static; flex-direction: row; padding: 0; gap: 0;
        background: none; border: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none;
    }
    .legal-nav .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }

    /* --- Sections --- */
    section { width: 100%; min-height: auto; padding: 6rem 1.25rem 4rem; }
    #hero { min-height: 100vh; min-height: 100svh; }

    /* --- Hero --- */
    .hero-badge { font-size: 0.8rem; border-width: 3px; box-shadow: 4px 4px 0 #000; margin-bottom: 1.5rem; }
    .hero-title-group .hero-title { font-size: clamp(2rem, 11vw, 3.25rem); border-width: 4px; box-shadow: 6px 6px 0 #000; padding: 0 0.5rem; }
    .hero-sub { margin-top: 2rem; padding: 1.25rem; border-width: 4px; box-shadow: 6px 6px 0 #fff; }
    .hero-sub p { font-size: 1.05rem; }
    .hero-h1 { font-size: clamp(1.35rem, 6.4vw, 2rem); border-width: 3px; box-shadow: 4px 4px 0 #000; padding: 0.4rem 0.75rem; }
    .hero-plans-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; font-size: 1rem; }
    .hero-actions a { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; text-align: center; }
    .brutal-btn { font-size: 1rem; padding: 0.85rem 1.25rem; box-shadow: 4px 4px 0 #000; }
    .rotating-star { width: 110px; height: 110px; right: 2%; top: 4.5rem; }

    /* --- About --- */
    .apple-heading { margin-bottom: 2rem; }
    .apple-text-box { font-size: 1.05rem; }
    .apple-card { padding: 1.5rem; }

    /* --- Services --- */
    .cyber-header p { font-size: 1rem; }
    .cyber-card { padding: 1.5rem; }
    .cyber-card h3 { font-size: 1.5rem; }

    /* --- Portfolio: horizontal pinned scroll becomes a simple vertical list --- */
    #work-intro { height: auto !important; }
    #work-intro > div { position: static !important; height: auto !important; padding: 6rem 1.25rem 2rem !important; }
    .work-intro-block { width: 100%; padding: 0; }
    #work { height: auto !important; }
    .horizontal-scroll-wrapper { position: static; height: auto; width: 100%; overflow: visible; display: block; }
    .horizontal-track { width: 100%; flex-direction: column; padding: 0 1.25rem 4rem !important; transform: none !important; }
    .editorial-grid { width: 100%; flex-shrink: 1; flex-direction: column; gap: 3rem; }
    .editorial-card { width: 100%; }
    .editorial-meta { flex-wrap: wrap; gap: 0.25rem 1rem; }

    /* --- Plans --- */
    .theme-plans { padding-bottom: 25vh; }
    .plans-lede { font-size: 1.05rem; margin-bottom: 2rem; }
    .plans-chooser { padding: 1.25rem; margin-bottom: 2rem; }
    .plans-chooser li { font-size: 1rem; }
    .plan-card { padding: 1.5rem; }
    .plan-cta { align-self: stretch; min-height: 48px; }
    .plans-terms { margin-top: 3rem; }
    .plans-terms h3 { font-size: 1.6rem; }

    /* --- Contact & footer --- */
    .neo-header { margin-bottom: 2rem; }
    .neo-header p { font-size: 1.05rem; }
    .neo-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; text-align: center; }
    .neo-footer { margin-top: 3rem; font-size: 0.9rem; }
    .neo-footer a { display: inline-block; padding: 0.85rem 0.25rem; }
    .ai-disclaimer { font-size: 0.7rem; }
    #wa-robot { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .cookie-banner button { min-height: 44px; }
}

/* --- Touch devices: no sticky hover lifts, pause decorative background loops --- */
@media (hover: none) {
    .apple-card:hover, .cyber-card:hover, .brutal-btn:hover, .plan-card:hover { transform: none; }
    .editorial-card:hover img { transform: none; }
}
@media (pointer: coarse) {
    .kinetic-svg, .kinetic-svg * { animation-play-state: paused !important; }
}

/* --- Reduced motion: show everything in its final state --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    [data-animate] .anim-word, [data-animate] .anim-char { opacity: 1 !important; transform: none !important; filter: none !important; }
}
