/* =============================================================
   WEBEXPRES — Premium landing
   Deep black + electric blue. Glassmorphism, glow, microinteractions.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Core palette — inspired by the hero video */
  --bg:         #04060d;
  --bg-2:       #070b17;
  --bg-3:       #0b1122;
  --panel:      rgba(255, 255, 255, 0.035);
  --panel-brd:  rgba(120, 165, 255, 0.14);
  --ink:        #eef3ff;
  --muted:      rgba(224, 232, 252, 0.62);
  --muted-2:    rgba(224, 232, 252, 0.40);

  --blue:        #2f7bff;   /* electric blue */
  --blue-bright: #5aa0ff;
  --blue-soft:   #8fbcff;
  --blue-deep:   #0b3aa8;
  --cyan:        #57c8ff;   /* derived tone */

  --grad-blue: linear-gradient(120deg, #2f7bff 0%, #57c8ff 100%);
  --grad-ink:  linear-gradient(180deg, #ffffff 0%, #b9cdf5 100%);

  --glow: 0 0 40px rgba(47, 123, 255, 0.45);

  --radius:    22px;
  --radius-lg: 30px;
  --radius-sm: 14px;

  --gutter: clamp(1.2rem, 4vw, 3rem);
  --maxw: 1200px;

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p  { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-family: var(--display); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Persistent page ambience (aurora glows) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(47, 123, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 95% 20%, rgba(87, 200, 255, 0.10), transparent 60%),
    radial-gradient(60% 50% at 50% 110%, rgba(11, 58, 168, 0.22), transparent 65%);
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: 1; padding-block: clamp(5rem, 11vw, 9rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue-soft);
  padding: .45rem .9rem;
  border: 1px solid var(--panel-brd);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-bright); box-shadow: 0 0 10px var(--blue-bright);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.6rem, 6vw, 4.5rem); }
.section-head h2 {
  font-size: clamp(2.1rem, 5.6vw, 3.7rem);
  margin-top: 1.1rem;
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 1.1rem; color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 46ch; margin-inline: auto;
}

.grad-text {
  background: var(--grad-blue);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  --btn-pad: .95rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--btn-pad);
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  border-radius: 999px;
  position: relative; isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  --bx: 50%; --by: 50%;
  color: #fff;
  background: var(--grad-blue);
  box-shadow: 0 10px 30px -8px rgba(47, 123, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease-out);
  transform-style: preserve-3d;
}
/* hover brighten — sits beneath the moving light */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  background: linear-gradient(120deg, #57c8ff, #2f7bff);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
/* soft light that follows the cursor */
.btn-primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(90px circle at var(--bx) var(--by), rgba(255,255,255,0.5), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
.btn-primary svg { transition: transform .2s var(--ease-out); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(47, 123, 255, 0.75); }
  .btn-primary:hover::after { opacity: 1; }
  .btn-primary:hover::before { opacity: 0.85; }
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--panel-brd);
  background: var(--panel);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (hover: hover) {
  .btn-ghost:hover { transform: translateY(-3px); border-color: rgba(120,165,255,0.4); background: rgba(120,165,255,0.08); }
}

.btn-lg { --btn-pad: 1.15rem 2.2rem; font-size: 1.05rem; }

/* =============================================================
   5. Scroll progress bar
   ============================================================= */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad-blue);
  box-shadow: 0 0 12px rgba(87, 200, 255, 0.7);
  z-index: 1000;
}

/* =============================================================
   6. Navbar
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  z-index: 900;
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 6, 13, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(120,165,255,0.10);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(47,123,255,0.55)); }
.brand span {
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em;
}

.nav-links { display: none; align-items: center; gap: .35rem; }
.nav-links a {
  font-family: var(--display); font-weight: 500; font-size: .93rem;
  color: var(--muted); padding: .5rem .9rem; border-radius: 999px;
  position: relative; transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: .28rem; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px; background: var(--grad-blue);
  transition: width .3s var(--ease-out);
}
@media (hover: hover) { .nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 18px; } }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-cta { display: none; }

.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; padding: .55rem;
  border-radius: 10px; border: 1px solid var(--panel-brd); background: var(--panel);
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 890;
  background: rgba(4, 6, 13, 0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120,165,255,0.12);
  padding: 1rem var(--gutter) 1.8rem;
  display: grid; gap: .3rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-family: var(--display); font-weight: 500; font-size: 1.15rem;
  padding: .85rem .4rem; border-bottom: 1px solid rgba(120,165,255,0.08); color: var(--ink);
}
.nav-mobile .btn { margin-top: 1rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 4rem;
  overflow: hidden;
  text-align: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  background: radial-gradient(80% 80% at 50% 30%, #0a1330, #04060d);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,6,13,0.55) 0%, rgba(4,6,13,0.35) 40%, rgba(4,6,13,0.85) 100%),
    radial-gradient(70% 60% at 50% 45%, transparent 30%, rgba(4,6,13,0.5) 100%);
}
.hero-inner { position: relative; max-width: 940px; padding-inline: var(--gutter); will-change: transform; }

.hero-title {
  font-size: clamp(2.6rem, 8.2vw, 6rem);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 700;
  text-transform: uppercase;
  max-width: 16ch; margin-inline: auto;
  text-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char {
  display: inline-block; position: relative;
  /* transform is driven per-frame by JS (lerped) → no CSS transition on it,
     so tracking stays perfectly smooth. Only the glow eases via CSS. */
  transition: color .5s var(--ease-out), text-shadow .5s var(--ease-out);
  will-change: transform;
}
.hero-title .char.is-near {
  color: var(--blue-soft);
  text-shadow: 0 0 16px rgba(90, 160, 255, 0.5);
}

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

.hero-sub {
  margin: 1.6rem auto 0; max-width: 40ch;
  color: rgba(234,241,255,0.82); font-size: clamp(1.02rem, 2vw, 1.22rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-cta { margin-top: 2.3rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted-2); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  font-family: var(--display);
}
.hero-scroll .mouse {
  width: 22px; height: 34px; border: 1.5px solid rgba(143,188,255,0.5); border-radius: 12px;
  position: relative;
}
.hero-scroll .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px; background: var(--blue-bright);
  animation: wheel 1.8s var(--ease-out) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* =============================================================
   8. Reveal system
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(8px);
  transition: opacity 1.05s var(--ease-out), transform 1.05s var(--ease-out), filter 1.05s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-split] { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }
/* Once the entrance stagger has played, drop the delay so it never leaks into
   hover transitions (kept the same for every card/step → uniform, instant hover). */
.reveal.is-done { transition-delay: 0s; }

/* =============================================================
   9. Services ("¿Qué hacemos?")
   ============================================================= */
.services-grid {
  display: grid; gap: clamp(1rem, 2.2vw, 1.4rem);
  grid-template-columns: 1fr;
}
.card {
  position: relative; isolation: isolate;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out);
}
.card::before {
  /* pointer-follow sheen */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(47,123,255,0.16), transparent 60%);
  transition: opacity .4s var(--ease-out);
}
@media (hover: hover) {
  .card:hover { border-color: rgba(120,165,255,0.35); background: rgba(120,165,255,0.05); }
  .card:hover::before { opacity: 1; }
}
.service-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; margin-bottom: 1.3rem;
  background: linear-gradient(150deg, rgba(47,123,255,0.22), rgba(87,200,255,0.06));
  border: 1px solid rgba(120,165,255,0.22);
  color: var(--blue-bright);
  box-shadow: inset 0 0 18px rgba(47,123,255,0.18);
}
.service-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* =============================================================
   10. Process ("Cómo trabajamos")
   ============================================================= */
.process {
  position: relative;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.process::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(120,165,255,0.4) 12%, rgba(120,165,255,0.4) 88%, transparent);
}
.step {
  position: relative; display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-sm);
  transition: background .4s var(--ease-out);
}
.step-num {
  flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--blue-soft);
  background: var(--bg-2);
  border: 1px solid rgba(120,165,255,0.3);
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px rgba(47,123,255,0.18);
  position: relative; z-index: 1;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s var(--ease-out);
}
.step-body h3 { font-size: 1.28rem; margin-bottom: .25rem; }
.step-body p { color: var(--muted); font-size: .98rem; max-width: 44ch; }
@media (hover: hover) {
  .step:hover { background: rgba(120,165,255,0.05); }
  .step:hover .step-num { color: #fff; background: var(--grad-blue); border-color: transparent; box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(47,123,255,0.5); }
}

/* =============================================================
   11. Plan
   ============================================================= */
.plan-wrap { display: flex; justify-content: center; }
.plan-card {
  position: relative; isolation: isolate;
  width: 100%; max-width: 640px;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13,20,40,0.85), rgba(6,10,22,0.85));
  border: 1px solid rgba(120,165,255,0.22);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(11,58,168,0.6);
}
/* animated conic border glow */
.plan-card::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, rgba(47,123,255,0.0) 200deg, var(--blue-bright) 300deg, var(--cyan) 340deg, transparent 360deg);
  animation: spin 8s linear infinite;
  opacity: .8;
}
.plan-card::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, #0a1024, #05070f);
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
/* Pause the animated glow (a per-frame conic repaint) when the card is offscreen */
.plan-card.is-paused::before { animation-play-state: paused; }

.plan-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: var(--blue-soft); padding: .4rem .85rem; border-radius: 999px;
  background: rgba(47,123,255,0.12); border: 1px solid rgba(120,165,255,0.25);
}
.plan-name { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 1.2rem 0 1.4rem; }
.plan-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4rem); letter-spacing: -0.03em; line-height: 1; }
.plan-price .cur { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 1.1rem; }
.plan-price .note { color: var(--muted); font-size: .95rem; width: 100%; }
.plan-monthly {
  margin-top: .9rem; padding: .8rem 1.1rem; border-radius: 12px;
  background: rgba(120,165,255,0.06); border: 1px solid rgba(120,165,255,0.14);
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.plan-monthly strong { font-family: var(--display); font-size: 1.1rem; }
.plan-monthly span { color: var(--muted); font-size: .9rem; }
.plan-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(120,165,255,0.25), transparent); margin: 1.8rem 0; }
.plan-features { display: grid; gap: .85rem; margin-bottom: 2rem; }
.plan-features li { display: flex; gap: .8rem; align-items: flex-start; color: rgba(234,241,255,0.85); font-size: 1rem; }
.plan-features .tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; margin-top: 1px;
}
.plan-features .tick svg { width: 13px; height: 13px; }
.plan-card .btn { width: 100%; }
.plan-foot { text-align: center; margin-top: 1rem; color: var(--muted-2); font-size: .84rem; }

/* =============================================================
   12. Final CTA block
   ============================================================= */
.final { text-align: center; }
.final-inner {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-brd);
  background: radial-gradient(120% 130% at 50% 0%, rgba(47,123,255,0.16), transparent 55%), var(--bg-2);
}
.final-inner h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: -0.03em; }
.final-inner p { color: var(--muted); margin: 1rem auto 0; max-width: 44ch; }
.final-inner .btn { margin-top: 2.2rem; }

/* =============================================================
   13. Footer / Contact
   ============================================================= */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(120,165,255,0.10);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--bg-2);
}
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.footer-brand img { width: 150px; height: auto; filter: drop-shadow(0 0 16px rgba(47,123,255,0.35)); margin-bottom: 1.1rem; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.footer h4 { font-family: var(--display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: .6rem; color: var(--muted); padding: .35rem 0; font-size: .96rem; transition: color .3s var(--ease-out); }
.footer-col a svg { width: 17px; height: 17px; color: var(--blue-soft); }
@media (hover: hover) { .footer-col a:hover { color: var(--ink); } }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(120,165,255,0.08);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted-2); font-size: .84rem;
}

/* =============================================================
   14. Works page
   ============================================================= */
.page-hero {
  position: relative; z-index: 1;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); letter-spacing: -0.035em; text-transform: uppercase; }
.page-hero p { color: var(--muted); margin: 1.2rem auto 0; max-width: 44ch; }

.projects-grid {
  display: grid; gap: clamp(1.1rem, 2.4vw, 1.6rem);
  grid-template-columns: 1fr;
}
.project-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-brd); background: var(--panel);
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out);
}
.project-thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47,123,255,0.14), rgba(87,200,255,0.05)),
    repeating-linear-gradient(45deg, rgba(120,165,255,0.05) 0 12px, transparent 12px 24px);
  display: grid; place-items: center;
}
.project-thumb .ph {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--muted-2); font-family: var(--display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
}
.project-thumb .ph svg { width: 18px; height: 18px; }
.project-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: left center;
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) { .project-card:hover .project-thumb img { transform: scale(1.05); } }
.project-body { padding: 1.3rem 1.4rem 1.5rem; }
.project-cat { font-family: var(--display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); }
.project-body h3 { font-size: 1.3rem; margin: .5rem 0 1rem; }
.project-body .btn { width: 100%; }
@media (hover: hover) {
  .project-card:hover { transform: translateY(-6px); border-color: rgba(120,165,255,0.35); }
}

.tst-grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.6rem); grid-template-columns: 1fr; }
.tst-card {
  padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--radius);
  border: 1px solid var(--panel-brd); background: var(--panel);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 1.3rem;
}
.tst-quote { color: rgba(234,241,255,0.85); font-size: 1.02rem; line-height: 1.65; flex: 1; }
.tst-quote::before { content: "\201C"; font-family: var(--display); font-size: 3rem; line-height: 0; color: var(--blue); display: block; margin-bottom: .4rem; }
.tst-person { display: flex; align-items: center; gap: .9rem; }
.tst-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(150deg, rgba(47,123,255,0.3), rgba(87,200,255,0.08));
  border: 1px solid rgba(120,165,255,0.25); display: grid; place-items: center; color: var(--blue-soft);
}
.tst-avatar svg { width: 24px; height: 24px; }
.tst-avatar.is-initial { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--blue-soft); }
.tst-person h4 { font-family: var(--display); font-size: 1rem; }
.tst-person span { color: var(--muted); font-size: .86rem; }

.page-note {
  text-align: center; margin-top: 3rem; color: var(--muted-2); font-size: .84rem;
  display: inline-flex; align-items: center; gap: .5rem;
}

/* =============================================================
   15. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-cta { gap: 1rem; }
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .tst-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   15b. Intro (entrance animation — once per session, index only)
   ============================================================= */
.intro { display: none; }                    /* default: no intro (already seen) */
html.intro-on .intro {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg);
  animation: introOut .4s var(--ease-out) 1.2s forwards;
  will-change: opacity;
}
html.intro-on .intro-inner {
  display: flex; flex-direction: column; align-items: center;
  animation: introContentOut .35s var(--ease-out) .98s forwards;
  will-change: transform, opacity;
}
html.intro-on .intro-logo {
  width: clamp(76px, 12vw, 104px); height: auto;
  opacity: 0; transform: scale(.9) translateZ(0);
  animation: introLogo .7s var(--ease-out) forwards;
}
html.intro-on .intro-word {
  margin-top: 1.25rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  letter-spacing: .34em; padding-left: .34em;   /* keep centered despite tracking */
  color: var(--ink);
  opacity: 0;
  animation: introWord .6s var(--ease-out) .38s forwards;
}

@keyframes introLogo {
  0%   { opacity: 0; transform: scale(.9) translateZ(0);  filter: drop-shadow(0 0 0 rgba(90,160,255,0)); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateZ(0);   filter: drop-shadow(0 0 26px rgba(90,160,255,.5)); }
}
@keyframes introWord {
  0%   { opacity: 0; transform: translate3d(0,10px,0); letter-spacing: .5em;
         text-shadow: 1.5px 0 rgba(87,200,255,.75), -1.5px 0 rgba(47,123,255,.75); }
  45%  { opacity: 1; text-shadow: .6px 0 rgba(87,200,255,.5), -.6px 0 rgba(47,123,255,.5); }
  100% { opacity: 1; transform: translate3d(0,0,0); letter-spacing: .34em;
         text-shadow: 0 0 0 rgba(87,200,255,0); }
}
@keyframes introContentOut {
  0%   { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translate3d(0,-6px,0) scale(1.03); filter: blur(3px); }
}
@keyframes introOut {
  0%   { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.intro-on .intro { animation: introOut .3s ease .3s forwards; }
  html.intro-on .intro-inner,
  html.intro-on .intro-logo,
  html.intro-on .intro-word { animation: none; opacity: 1; transform: none; filter: none; }
}

/* =============================================================
   16. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .plan-card::before { animation: none; }
  .hero-scroll .mouse::after { animation: none; }
}

/* Page transition (works pages) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(0.16,1,0.3,1);
}
