/* David Vanegas · sitio personal
   Tema: cielo nocturno con aurora. Una sola hoja, sin dependencias. */

:root {
  --bg: #060a13;
  --bg-alt: #080d19;
  --panel: #0c1322;
  --panel-2: #101a2e;
  --line: rgba(160, 182, 226, 0.14);
  --line-2: rgba(160, 182, 226, 0.26);
  --text: #eaf0fa;
  --muted: #a6b1c8;
  --dim: #7c89a6;
  --mint: #5cf2c2;
  --cyan: #4cc9f0;
  --violet: #9b8cff;
  --pink: #f283d6;
  --amber: #ffc46b;
  --grad: linear-gradient(100deg, var(--mint) 0%, var(--cyan) 45%, var(--violet) 100%);
  --r: 22px;
  --r-sm: 14px;
  --wrap: 1180px;
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: rgba(92, 242, 194, 0.3); }

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

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: #04120d;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

.muted { color: var(--muted); }

/* ---------------------------------------------------------------- tipografía */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; }

h1 {
  font-size: clamp(2.55rem, 6.1vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* la cursiva no se corta al final */
  margin-right: -0.05em;
}
h1 em { font-size: 1.06em; }
h2 em { font-size: 1.08em; }

.kicker, .eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mint);
}

.big { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.62; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--mint);
  color: #04130e;
  box-shadow: 0 10px 34px -10px rgba(92, 242, 194, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(92, 242, 194, 0.7); }
.btn--primary svg { transition: transform 0.25s ease; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.07); }
.btn--small { padding: 10px 16px; font-size: 0.9rem; gap: 8px; background: rgba(255, 255, 255, 0.92); color: #0a101e; }
.btn--small.btn--ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn--small svg { width: 15px; height: 15px; }
.btn--small:hover { transform: translateY(-1px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.chips--sm { gap: 6px; }
.chips--sm li { padding: 3px 9px; font-size: 0.72rem; }

/* ---------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 50;
  pointer-events: none;
}
.nav__in {
  pointer-events: auto;
  width: min(var(--wrap), 100% - 28px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-stuck .nav__in {
  background: rgba(8, 13, 25, 0.72);
  border-color: var(--line);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  padding: 6px 4px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.logo span:last-child { color: var(--mint); }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover, .nav__links a.is-here { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.nav__end { display: flex; align-items: center; gap: 8px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--f-mono);
  font-size: 0.76rem;
}
.lang a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: rgba(255, 255, 255, 0.12); color: var(--text); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.burger i {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}
.burger i:first-child { top: 15px; }
.burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  padding: 150px 0 84px;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 90% at 60% 0%, #0d1a38 0%, #080e1d 50%, var(--bg) 100%);
}
.stars { position: absolute; top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%; }

.rib {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 78%;
  stroke: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.rib--1 { top: -4%; filter: blur(28px); opacity: 0.8; animation: rib1 19s ease-in-out infinite alternate; }
.rib--2 { top: 4%; filter: blur(40px); opacity: 0.62; animation: rib2 26s ease-in-out infinite alternate; }
.rib--3 { top: -12%; filter: blur(56px); opacity: 0.55; animation: rib3 31s ease-in-out infinite alternate; }

@keyframes rib1 {
  from { transform: translate3d(-3%, 0, 0) scaleY(1) skewX(-4deg); opacity: 0.66; }
  to { transform: translate3d(4%, 3%, 0) scaleY(1.14) skewX(5deg); opacity: 0.92; }
}
@keyframes rib2 {
  from { transform: translate3d(4%, 2%, 0) scaleY(1.08) skewX(6deg); opacity: 0.46; }
  to { transform: translate3d(-5%, -2%, 0) scaleY(0.94) skewX(-5deg); opacity: 0.74; }
}
@keyframes rib3 {
  from { transform: translate3d(-2%, -2%, 0) scaleX(1.05); opacity: 0.4; }
  to { transform: translate3d(3%, 3%, 0) scaleX(0.96); opacity: 0.62; }
}

/* Estrías verticales: le dan a la luz su aspecto de cortina */
.rays {
  position: absolute;
  inset: -10% -10% 20% -10%;
  background: repeating-linear-gradient(96deg,
    rgba(6, 10, 19, 0) 0 9px,
    rgba(6, 10, 19, 0.2) 9px 11px,
    rgba(6, 10, 19, 0) 11px 23px,
    rgba(6, 10, 19, 0.13) 23px 24px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
}
.sky__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(6, 10, 19, 0) 0%, var(--bg) 88%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #c9f9ea; }
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(92, 242, 194, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 242, 194, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(92, 242, 194, 0); }
}

.lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  color: #c6cfe2;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 38px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* Traza del agente */
.trace {
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(17, 26, 48, 0.78), rgba(9, 14, 27, 0.86));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(76, 201, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  overflow: hidden;
}
.trace__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.trace__tabs { display: flex; gap: 4px; }
.trace__tabs button {
  padding: 5px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--dim);
  font-size: 0.78rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.trace__tabs button:hover { color: var(--text); }
.trace__tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.trace__note { margin-left: auto; font-size: 0.68rem; color: var(--dim); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trace__run { padding: 14px 6px 16px; min-height: 252px; }
.trace__run[hidden] { display: none; }
.trace__run li {
  display: grid;
  grid-template-columns: 52px 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 12px;
  border-radius: 8px;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.6s ease;
}
.trace__run li.is-wait { opacity: 0; transform: translateY(6px); }
.trace__run li.is-new { background: rgba(92, 242, 194, 0.07); }
.trace .ts { color: var(--dim); font-size: 0.74rem; }
.trace .kd { color: var(--violet); font-size: 0.74rem; }
.trace .nm { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace .rs { color: var(--muted); text-align: right; white-space: nowrap; }
.trace li.ok .rs { color: var(--mint); }
.trace li.ok .rs::before { content: "✓ "; }
.trace li.warn .rs { color: var(--amber); }
.trace li.dim .nm, .trace li.dim .rs { color: var(--dim); }
.trace li.end { margin-top: 6px; border-top: 1px dashed var(--line); border-radius: 0 0 8px 8px; padding-top: 12px; }
.trace li.end .kd { color: var(--mint); }
.trace li.end .rs { color: var(--text); }

/* -------------------------------------------------------------------- stats */
.stats { padding: 6px 0 40px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid li { padding: 30px 26px 30px 0; }
.stats__grid li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.stats__grid b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stats__grid span { display: block; margin-top: 12px; font-size: 0.92rem; line-height: 1.45; color: var(--muted); max-width: 22em; }

/* ----------------------------------------------------------------- secciones */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section[id], .hero { scroll-margin-top: 80px; }
.section--alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-alt));
  border-block: 1px solid var(--line);
}
.section__head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 56px); }
.section__head .kicker { margin-bottom: 16px; }
.section__intro { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 38em; }

/* -------------------------------------------------------------------- about */
.about { padding-top: clamp(48px, 7vw, 88px); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about .kicker { margin-bottom: 16px; }
.about h2 { margin-bottom: 26px; }
.about .big + .big { margin-top: 16px; }

.portrait {
  position: relative;
  max-width: 400px;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(140deg, rgba(92, 242, 194, 0.5), rgba(155, 140, 255, 0.2) 45%, rgba(255, 255, 255, 0.05));
  transform: rotate(-2.2deg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.portrait img { border-radius: 21px; }

.focus {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
}
.focus__item {
  padding: 24px 22px 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.focus__item svg { width: 26px; height: 26px; color: var(--mint); margin-bottom: 18px; }
.focus__item h3 { font-size: 1.14rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.focus__item p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------- work */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(76, 201, 240, 0.1), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.case + .case { margin-top: 22px; }
.case--pluralang {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(155, 140, 255, 0.2), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.case--mini {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.case__kicker { font-family: var(--f-mono); font-size: 0.78rem; color: var(--dim); letter-spacing: 0.02em; margin-bottom: 14px; }
.case h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.case--mini h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.case h3 small {
  display: block;
  margin-top: 8px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: 0;
  color: var(--violet);
}
.case__desc { margin-top: 18px; font-size: 1.06rem; color: #c6cfe2; }
.case--mini .case__desc { font-size: 0.98rem; color: var(--muted); }

.points { margin-top: 20px; display: grid; gap: 12px; }
.points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: var(--mint);
}
.points b { color: var(--text); font-weight: 600; }
.case .chips { margin-top: 24px; }
.case__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.case__visual--flow {
  padding: clamp(20px, 3vw, 34px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.5);
}
.bigstat { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.bigstat b {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bigstat span { font-size: 0.95rem; color: var(--muted); max-width: 11em; line-height: 1.3; }

.flow { font-family: var(--f-mono); font-size: 0.82rem; }
.flow__main { position: relative; display: grid; gap: 10px; }
.flow__main::before {
  content: "";
  position: absolute;
  left: 19px; top: 20px; bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), var(--mint));
}
.flow__main li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px 9px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
.flow .n {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-size: 0.7rem;
  color: var(--muted);
  flex: none;
}
.flow__main li.is-ok { border-color: rgba(92, 242, 194, 0.5); background: rgba(92, 242, 194, 0.08); }
.flow__main li.is-ok .n { background: var(--mint); border-color: var(--mint); color: #04130e; }
.flow em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--mint); }
.flow__alt {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 12px 0 0 34px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 196, 107, 0.5);
  background: rgba(255, 196, 107, 0.06);
}
.flow__alt b { font-weight: 500; color: var(--amber); }
.flow__alt em { color: var(--muted); }
.flow__branch {
  position: absolute;
  left: -16px; top: -13px;
  width: 16px; height: calc(50% + 13px);
  border-left: 1px dashed rgba(255, 196, 107, 0.6);
  border-bottom: 1px dashed rgba(255, 196, 107, 0.6);
  border-bottom-left-radius: 10px;
}

.case__visual--phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 10px 0;
}
.shot {
  width: 40%;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot--1 { transform: translate(18%, 4%) rotate(-7deg); }
.shot--2 { position: relative; z-index: 2; width: 44%; transform: translateY(-3%); }
.shot--3 { transform: translate(-18%, 4%) rotate(7deg); }
.case--pluralang:hover .shot--1 { transform: translate(8%, 2%) rotate(-9deg); }
.case--pluralang:hover .shot--3 { transform: translate(-8%, 2%) rotate(9deg); }

.window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0b111f;
}
.window__bar { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.window__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ------------------------------------------------------------------ projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.filter span { font-family: var(--f-mono); font-size: 0.72rem; color: var(--dim); }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0a101e; }
.filter[aria-pressed="true"] span { color: #4a5670; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 242, 194, 0.42);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 50px -24px rgba(92, 242, 194, 0.45);
}
.card[hidden] { display: none; }
.card__media { position: relative; padding: 12px 12px 0; }
.card__media .window, .poster { border-radius: 12px; }
.card__media .window img { aspect-ratio: 16 / 9.4; }

.poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10.6;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 90% at 80% 10%, var(--p2, rgba(155, 140, 255, 0.45)), transparent 60%),
    radial-gradient(80% 90% at 10% 100%, var(--p1, rgba(92, 242, 194, 0.3)), transparent 60%),
    #0a101e;
  color: #f2f6ff;
}
.poster svg { width: 82%; height: 82%; stroke: none; fill: none; }
.poster--auroras svg { width: 100%; height: 100%; }
.poster--pulso { --p1: rgba(76, 201, 240, 0.5); --p2: rgba(92, 242, 194, 0.4); }
.poster--aliento { --p1: rgba(255, 196, 107, 0.42); --p2: rgba(76, 201, 240, 0.5); }
.poster--youcali { --p1: rgba(242, 131, 214, 0.45); --p2: rgba(255, 196, 107, 0.45); }
.poster--auroras { background: linear-gradient(180deg, #0a1433, #0b1d2e 70%, #060a13); }
.poster--marketing { --p1: rgba(155, 140, 255, 0.5); --p2: rgba(242, 131, 214, 0.45); }
.poster--localchat { --p1: rgba(76, 201, 240, 0.45); --p2: rgba(155, 140, 255, 0.5); }
.poster--tefy { --p1: rgba(92, 242, 194, 0.5); --p2: rgba(76, 201, 240, 0.36); }
.poster--podcards { --p1: rgba(155, 140, 255, 0.45); --p2: rgba(76, 201, 240, 0.45); }

.status {
  position: absolute;
  top: 22px; right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 9px;
  border-radius: 999px;
  background: rgba(6, 10, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.status--live::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.status--internal::before, .status--tool::before, .status--self::before { background: var(--cyan); }
.status--dev::before { background: var(--amber); }
.status--proto::before { background: var(--violet); }
.status--hack::before { background: var(--pink); }
.status--oss::before { background: #fff; }
.card__media .window + .status { top: 46px; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__kind { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.card h3 { margin-top: 6px; font-size: 1.42rem; letter-spacing: -0.025em; }
.card__desc { margin-top: 10px; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 500;
}
.badge svg { width: 13px; height: 13px; }
.badge--ai { background: rgba(155, 140, 255, 0.16); color: #c9c0ff; }
.badge--built { background: rgba(92, 242, 194, 0.12); color: #9df6d9; }
.card .chips { margin-top: 12px; }
.card__links { display: flex; gap: 18px; margin-top: auto; padding-top: 18px; }
.card__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.card__links a:hover { color: var(--mint); border-color: var(--mint); }
.card__links svg { width: 14px; height: 14px; }

/* ----------------------------------------------------------------- approach */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 30px 26px 8px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps .num { font-family: var(--f-mono); font-size: 0.8rem; color: var(--mint); }
.steps h3 { margin: 18px 0 12px; font-size: 1.32rem; line-height: 1.15; letter-spacing: -0.02em; }
.steps p { font-size: 0.96rem; color: var(--muted); }

/* --------------------------------------------------------------- experience */
.jobs { border-top: 1px solid var(--line); }
.job {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.job__when { font-family: var(--f-mono); font-size: 0.82rem; color: var(--dim); padding-top: 6px; }
.job h3 { font-size: 1.36rem; letter-spacing: -0.02em; }
.job h3 span {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.72em;
  letter-spacing: 0;
  color: var(--mint);
  margin-left: 8px;
  white-space: nowrap;
}
.job p:not(.job__when) { margin-top: 8px; max-width: 48em; color: var(--muted); font-size: 0.99rem; }

/* -------------------------------------------------------------------- stack */
.stack { border-top: 1px solid var(--line); }
.stack__row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.stack__row h3 { font-size: 1.14rem; letter-spacing: -0.015em; }
.stack .chips li { font-size: 0.84rem; padding: 7px 14px; color: #c6cfe2; }

.community { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.community li {
  padding: 24px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.community h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.2; }
.community p { margin-top: 10px; font-size: 0.94rem; color: var(--muted); line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; margin-top: 34px; }
.facts dt { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin-top: 8px; color: #c6cfe2; }

/* ------------------------------------------------------------------ contact */
.contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 7vw, 88px) clamp(22px, 6vw, 80px);
  border-radius: 34px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0d1730, #080d1a);
  text-align: center;
}
.contact__glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 90%;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 25% 50%, rgba(92, 242, 194, 0.36), transparent 70%),
    radial-gradient(50% 60% at 60% 40%, rgba(76, 201, 240, 0.3), transparent 70%),
    radial-gradient(45% 60% at 85% 55%, rgba(155, 140, 255, 0.34), transparent 70%);
  filter: blur(30px);
  animation: glow 16s ease-in-out infinite alternate;
}
@keyframes glow {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.1); }
}
.contact__card .kicker { margin-bottom: 18px; }
.contact__card h2 { max-width: 15em; margin-inline: auto; font-size: clamp(2.2rem, 5.4vw, 4.3rem); }
.contact__card .big { max-width: 34em; margin: 24px auto 0; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 38px; }

.mailbox {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 4px 4px 18px;
  max-width: 100%;
}
.mailbox a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 500;
  text-decoration: none;
}
.mailbox a span { overflow: hidden; text-overflow: ellipsis; }
.mailbox a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.mailbox svg { width: 18px; height: 18px; flex: none; }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy svg { width: 15px; height: 15px; }
.copy:hover { background: rgba(255, 255, 255, 0.18); }
.copy.is-done { background: var(--mint); color: #04130e; }

/* ------------------------------------------------------------------- footer */
.footer { padding: 26px 0 40px; font-size: 0.88rem; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* -------------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero { padding-top: 128px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus, .community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps li { padding-bottom: 30px; }
  .case, .case--pluralang { grid-template-columns: 1fr; }
  .case--pluralang .case__visual { order: -1; }
  .job, .stack__row { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px; right: 14px;
    display: none;
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line-2);
    background: rgba(8, 13, 25, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 16px; font-size: 1.05rem; border-radius: 14px; }
  .burger { display: block; }
  .nav { position: fixed; }
  .nav__in { position: relative; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats__grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .case--mini { grid-template-columns: 1fr; }
  .job, .stack__row { grid-template-columns: 1fr; gap: 8px; }
  .stack__row { align-items: start; }
  .job__when { padding-top: 0; }
  .job h3 span { display: block; margin: 4px 0 0; white-space: normal; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hero { padding: 112px 0 56px; min-height: 0; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.06em; white-space: nowrap; }
  .cards, .focus, .community, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .stats__grid li { padding: 22px 16px 22px 0; }
  .stats__grid li + li { padding-left: 16px; }
  .stats__grid li:nth-child(3) { padding-left: 0; }
  .trace { font-size: 0.74rem; }
  .trace__run li { grid-template-columns: 40px 36px minmax(0, 1fr) auto; gap: 8px; padding: 7px 8px; }
  .trace__note { display: none; }
  .trace__run { min-height: 232px; }
  .case { border-radius: 24px; }
  .case__visual--phones { min-height: 300px; }
  .btn { padding: 13px 20px; }
  .contact__row { flex-direction: column; }
  .mailbox { padding-left: 14px; }
  .mailbox a { font-size: 0.9rem; }
  .copy span { display: none; }
  .copy { margin-left: 8px; padding: 10px; }
  .footer__in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
