/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:       #0a0c0e;
  --bg-2:     #14171b;
  --bg-3:     #1c2126;
  --ink:      #eef1f4;
  --ink-soft: #a7b0b9;
  --mute:     #6b7580;
  --line:     rgba(238, 241, 244, 0.09);
  --line-strong: rgba(238, 241, 244, 0.16);

  --accent:   #ff5a1f;
  --accent-2: #3aa0ff;

  --display: "Rajdhani", ui-sans-serif, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-crearte: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.65;
  background: var(--bg); color: var(--ink);
  -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%; }
button, select { 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.05; letter-spacing: .01em; font-family: var(--display); font-weight: 700; color: var(--ink); text-transform: uppercase; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 720px) { .container { padding-inline: 2.5rem; } }

.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; padding: .6rem 1rem;
  background: var(--accent); color: var(--bg); z-index: 9999; border-radius: 4px; font-weight: 600;
  transition: top .3s var(--ease-crearte);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 20px; height: 1px; background: var(--accent); display: inline-block; }

.accent-word { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-crearte), transform .9s var(--ease-crearte); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .micro-intro { display: none; }
.no-js .servicio-card, .no-js .proyecto-card { opacity: 1 !important; transform: none !important; }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .5s var(--ease-crearte), box-shadow .5s var(--ease-crearte), height .4s var(--ease-crearte);
}
.nav.is-solid {
  background: rgba(10, 12, 14, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  height: 64px;
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: baseline; gap: .3rem; }
.nav-brand-dot { color: var(--accent); }
.nav-brand-sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; position: relative; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-crearte);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: .7rem; }

.nav-portfolio-link {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--mute);
  padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 2px;
  opacity: .85;
  transition: opacity .3s var(--ease-crearte), border-color .3s var(--ease-crearte), color .3s var(--ease-crearte);
}
.nav-portfolio-link:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.nav-portfolio-link svg { width: 12px; height: 12px; flex-shrink: 0; }
.nav-portfolio-text { display: none; }
@media (min-width: 540px) { .nav-portfolio-text { display: inline; } }

.nav-right .nav-cta { display: none; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-crearte); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Panel fuera de <header> a propósito: si quedara anidado dentro de .nav,
   el backdrop-filter de .nav.is-solid crea un containing block nuevo para
   position:fixed y el panel queda encajado en la altura del header (76px)
   en vez de ocupar toda la pantalla. */
.mobile-menu-panel {
  position: fixed; inset: 0; z-index: 490; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease-crearte), visibility 0s linear .35s;
}
.mobile-menu-panel.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s var(--ease-crearte), visibility 0s linear;
}
.mobile-menu-panel a { font-family: var(--display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-right .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu-panel { display: none !important; }
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.7rem; font-size: .82rem; font-weight: 600; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .03em;
  border-radius: 2px;
  transition: transform .5s var(--ease-crearte), background .3s var(--ease-crearte), color .3s var(--ease-crearte), border-color .3s var(--ease-crearte);
}
.btn-primary { background: var(--accent); color: #0a0c0e; }
.btn-primary:hover { background: #ff7a45; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 700; pointer-events: none; }
.progress-bar-fill { height: 100%; width: 0%; background: var(--accent); transform-origin: left; }

/* HUD — elemento persistente entre secciones */
.hud {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 400;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--ink-soft); pointer-events: none;
  display: none;
}
.hud-label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem; border: 1px solid var(--line-strong); border-radius: 2px;
  background: rgba(10,12,14,.6); backdrop-filter: blur(6px);
}
.hud-label::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
@media (min-width: 720px) { .hud { display: block; } }

.cursor { display: none; position: fixed; top: 0; left: 0; z-index: 800; pointer-events: none; }
.cursor.is-ready { display: block; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 801; transform: translate(-50%,-50%); }
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--ink); pointer-events: none; z-index: 800; transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: width .3s var(--ease-crearte), height .3s var(--ease-crearte);
}
.cursor-ring.is-hover { width: 52px; height: 52px; }
.cursor-coord {
  position: fixed; top: 0; left: 0; z-index: 799; pointer-events: none;
  font-family: var(--mono); font-size: .66rem; color: var(--accent-2);
  white-space: nowrap; opacity: 0; transition: opacity .25s var(--ease-crearte);
  transform: translate(16px, 16px);
}
.cursor-coord.is-visible { opacity: .85; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot, .cursor-ring, .cursor-coord { display: none; } }

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.micro-intro { position: fixed; inset: 0; z-index: 900; background: var(--bg); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.micro-intro-line { width: 1px; height: 40%; background: var(--accent); transform: scaleY(0); transform-origin: center; }

/* =============================================================
   6. Hero — parallax de capas por mouse + estructura dibujada
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 40%, transparent 90%);
}
.hero-structure {
  position: relative; z-index: 1;
  display: block;
  opacity: .8;
  max-width: 420px; margin-inline: auto;
}
.hero-structure-svg { width: 100%; height: auto; overflow: visible; }
.bp-line { stroke: var(--accent-2); stroke-width: 1.4; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.bp-brace { stroke: var(--line-strong); opacity: .35; }
.bp-ridge { stroke: var(--accent); opacity: .8; stroke-width: 1.8; }
.bp-dim-line { stroke: var(--mute); opacity: .5; stroke-width: 1; }
.bp-dim-text { fill: var(--mute); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; opacity: 0; }
.bp-dim.is-lit .bp-dim-text { opacity: .8; transition: opacity .5s var(--ease-crearte); }

.hero-content {
  position: relative; z-index: 1; width: 100%; padding-block: 3rem 4.5rem;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 2.5rem;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.4rem; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.2); }
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4.2rem); max-width: 15ch; line-height: 1.04; }
.hero-sub { max-width: 42ch; margin-top: 1.8rem; font-size: 1.05rem; color: var(--ink-soft); font-family: var(--sans); text-transform: none; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.3rem; }
.hero-scroll-hint { position: absolute; bottom: 1.6rem; left: 0; right: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: center; }

@media (min-width: 960px) {
  .hero-content { grid-template-columns: 1.05fr .95fr; gap: 1.5rem; }
  .hero-structure { opacity: .95; max-width: none; margin-inline: 0; }
}

/* =============================================================
   7. Servicios — cascada con overlap + parallax por ítem
   ============================================================= */
.servicios { padding-block: 7rem; }
.servicios-head { max-width: 56ch; margin-bottom: 3.5rem; }
.servicios-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.servicios-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.servicio-card {
  position: relative; padding: 2.2rem 1.9rem;
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden;
  will-change: transform, opacity;
  transition: border-color .4s var(--ease-crearte), transform .4s var(--ease-crearte), box-shadow .4s var(--ease-crearte);
}
.servicio-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-crearte);
}
.servicio-card::after {
  content: attr(data-num); position: absolute; right: .3rem; bottom: -.15rem;
  font-family: var(--mono); font-weight: 600; font-size: 4.2rem; line-height: 1;
  color: var(--ink); opacity: .06;
  transform: rotate(0deg) scale(1);
  transition: opacity .4s var(--ease-crearte), transform .5s var(--ease-crearte);
  pointer-events: none;
}
.servicio-card:hover {
  border-color: var(--accent); transform: translateY(-6px);
  box-shadow: 0 18px 40px -20px rgba(255,90,31,.35);
}
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-card:hover::after { opacity: .12; transform: rotate(-8deg) scale(1.12); color: var(--accent); }
.servicio-num { position: relative; z-index: 1; font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.servicio-card h3 { position: relative; z-index: 1; font-size: 1.35rem; margin: 1.1rem 0 .8rem; text-transform: none; }
.servicio-card p { position: relative; z-index: 1; color: var(--ink-soft); font-size: .98rem; max-width: 36ch; }
@media (min-width: 720px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }

/* =============================================================
   8. Nosotros — contador con textura de datos
   ============================================================= */
.nosotros { padding-block: 7rem; background: var(--bg-2); }
.nosotros-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
.nosotros-text h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1.3rem; }
.nosotros-text p { color: var(--ink-soft); font-size: 1.02rem; max-width: 46ch; }
.nosotros-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.stat-item { display: flex; flex-direction: column; gap: .5rem; will-change: transform; }
.stat-number { display: flex; align-items: center; gap: .55rem; }
.stat-number [data-stat-number] {
  font-family: var(--mono); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--ink); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.stat-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  animation: stat-blink 1.8s ease-in-out infinite;
}
@keyframes stat-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,90,31,.4); } 50% { opacity: .3; box-shadow: 0 0 0 4px rgba(255,90,31,0); } }
.stat-label { font-size: .84rem; color: var(--mute); max-width: 22ch; }
.stat-bar { display: block; height: 2px; width: 100%; background: var(--line); overflow: hidden; margin-top: .3rem; }
.stat-bar-fill { display: block; height: 100%; width: 0%; background: var(--accent-2); }
@media (prefers-reduced-motion: reduce) { .stat-live { animation: none; } }
@media (min-width: 860px) { .nosotros-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* =============================================================
   9. Proyectos — filtro con morph de grid (FLIP manual)
   ============================================================= */
.proyectos { padding-block: 7rem; }
.proyectos-head { max-width: 56ch; margin-bottom: 2.4rem; }
.proyectos-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

.proyectos-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.6rem; }
.filter-btn {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .55rem 1rem; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink-soft);
  transition: color .3s var(--ease-crearte), border-color .3s var(--ease-crearte), background .3s var(--ease-crearte);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #0a0c0e; }

.proyectos-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.proyecto-card {
  padding: 1.8rem; background: var(--bg-2); border: 1px solid var(--line);
  will-change: transform, opacity;
}
.proyecto-icon { width: 100%; max-width: 140px; margin-bottom: 1.3rem; }
.proyecto-icon svg { width: 100%; height: auto; }
.pi-line { fill: none; stroke: var(--accent-2); stroke-width: 2; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pi-line-dash { stroke: var(--mute); opacity: .5; stroke-dasharray: 4 3; }
.proyecto-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.proyecto-card h3 { font-size: 1.12rem; margin: .7rem 0 .5rem; text-transform: none; }
.proyecto-card p { color: var(--ink-soft); font-size: .92rem; }
.proyecto-card.is-hidden { display: none; }
@media (min-width: 640px) { .proyectos-grid { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; } }
@media (min-width: 1024px) { .proyectos-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   10. Proceso
   ============================================================= */
.proceso { padding-block: 7rem; background: var(--bg-2); }
.proceso-head { max-width: 56ch; margin-bottom: 3rem; }
.proceso-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.proceso-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
.proceso-num { font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.proceso-item h3 { font-size: 1.2rem; margin: .9rem 0 .6rem; text-transform: none; }
.proceso-item p { color: var(--ink-soft); font-size: .95rem; max-width: 34ch; }
@media (min-width: 720px) { .proceso-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proceso-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   11. Testimonios — marquee infinito con pausa en hover
   ============================================================= */
.testimonios { padding-block: 7rem; overflow: hidden; }
.testimonios-head { max-width: 56ch; margin-bottom: 3rem; }
.testimonios-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 1.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.testimonio-item {
  flex: 0 0 min(84vw, 420px);
  background: var(--bg-2); border: 1px solid var(--line); padding: 2rem;
}
.testimonio-item p { font-size: 1.02rem; line-height: 1.55; color: var(--ink); margin-bottom: 1.4rem; }
.testimonio-item cite { font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--accent-2); }
.testimonio-item cite span { color: var(--mute); display: block; margin-top: .2rem; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; overflow-x: auto; } }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq { padding-block: 7rem; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.faq-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--line); padding: 1.2rem 1.4rem; background: var(--bg-2); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; flex-shrink: 0; transition: transform .3s var(--ease-crearte); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .9rem; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 860px) { .faq-grid { grid-template-columns: 1fr 1.4fr; } }

/* =============================================================
   13. CTA final — botón con trazo SVG
   ============================================================= */
.cta-final { padding-block: 8rem; text-align: center; }
.cta-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 2.6rem; }
.btn-draw {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.3rem 2.2rem; font-family: var(--mono); font-size: .88rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
}
.btn-draw-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.btn-draw-svg rect { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.btn-draw:hover { color: var(--accent); }
.btn-draw span { position: relative; z-index: 1; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { padding-block: 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; justify-content: space-between; font-size: .82rem; color: var(--mute); }
.footer-brand { font-size: 1.1rem; }
.footer-copy { font-family: var(--mono); font-size: .76rem; }

.credit-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .76rem; font-weight: 500; color: var(--ink-soft);
  padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 2px;
  transition: border-color .3s var(--ease-crearte), color .3s var(--ease-crearte);
}
.credit-badge svg { width: 12px; height: 12px; transition: transform .35s var(--ease-crearte); }
.credit-badge:hover { border-color: var(--accent); color: var(--accent); }
.credit-badge:hover svg { transform: translate(3px, -3px); }

@media (min-width: 720px) { .footer-inner { flex-direction: row; align-items: center; } }

/* =============================================================
   15. Responsive base
   ============================================================= */
@media (min-width: 1280px) { .container { padding-inline: 3rem; } }

/* =============================================================
   16. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .micro-intro { display: none; }
  .bp-line, .pi-line, .btn-draw-svg rect { stroke-dashoffset: 0 !important; }
}
