/* =========================================================
   LAO Studio — estilos
   Paleta: fondo #05070d · esmeralda · violeta
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-2: #0a0e19;
  --bg-3: #0f1524;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --dim: #646d80;
  --emerald: #34d399;
  --emerald-2: #10b981;
  --emerald-soft: rgba(52, 211, 153, 0.12);
  --violet: #b77cff;
  --violet-2: #9b5cf0;
  --violet-soft: rgba(183, 124, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grano sutil fijo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--emerald); color: var(--bg); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--emerald); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }

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

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }
.dot--violet { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }

.title-display { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.04em; }
.title-xl { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.title-lg { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); max-width: 62ch; margin-top: 18px; }
.lead strong { color: var(--text); font-weight: 600; }

.grad {
  background: linear-gradient(100deg, #fff 10%, var(--emerald) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-violet { color: var(--violet); }
.accent-emerald { color: var(--emerald); }

/* ---------- Botones ---------- */
.btn {
  --pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--sm { --pad: 10px 16px; font-size: 14px; }
.btn--lg { --pad: 16px 26px; font-size: 16px; }
.btn--primary { background: var(--emerald); color: #04120c; box-shadow: 0 8px 30px -10px rgba(52, 211, 153, 0.55); }
.btn--primary:hover { background: #4ee3ad; transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(52, 211, 153, 0.65); }
.btn--ghost { border-color: var(--line-2); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet); background: var(--violet-soft); transform: translateY(-2px); }
.btn--sm .ico { width: 18px; height: 18px; }
.btn--primary.btn--sm:hover .ico, .nav__cta:hover .ico { transform: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 7, 13, 0.78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__logo { width: 30px; height: auto; transition: transform 0.4s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand__name span { color: var(--muted); font-weight: 500; }
.brand__name sup { font-size: 0.5em; color: var(--muted); margin-left: 2px; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links > a {
  position: relative; padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links > a:hover { color: var(--text); background: var(--surface-2); }
.nav__links > a.is-active { color: var(--violet); }
.nav__links > a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--violet); transform: translateX(-50%);
}
.nav__mobile-extra { display: none; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.socials { display: flex; align-items: center; gap: 4px; }
.socials a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: var(--muted); transition: color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--text); background: var(--surface-2); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 120px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__watermark {
  position: absolute; right: -6%; top: 50%; width: min(760px, 68vw);
  transform: translateY(-50%);
  opacity: 0.07; filter: blur(3px);
  animation: float 14s ease-in-out infinite;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  opacity: 0.45;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.hero__glow--a { width: 520px; height: 520px; left: -160px; top: 10%; background: rgba(52, 211, 153, 0.16); }
.hero__glow--b { width: 560px; height: 560px; right: -120px; bottom: -160px; background: rgba(155, 92, 240, 0.18); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }

.hero__inner { position: relative; }
.hero__eyebrow { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5, 7, 13, 0.5); backdrop-filter: blur(6px); color: var(--muted); }
.hero__title { font-size: clamp(2.8rem, 8.2vw, 6.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin-top: 6px; }
.hero__subtitle { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 30ch; margin-top: 28px; color: #d6dbe6; }
.hero__desc { max-width: 56ch; margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 760px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero__meta li { display: flex; align-items: center; gap: 10px; }
.hero__meta .mono { color: var(--emerald); font-size: 12px; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll svg { width: 18px; height: 18px; animation: bob 2s ease-in-out infinite; }

.load-in { opacity: 0; transform: translateY(22px); animation: loadIn 0.9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 120ms); }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.strip__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.strip span { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; }
.strip i { width: 8px; height: 8px; background: var(--emerald); transform: rotate(45deg); opacity: 0.6; flex: none; }
.strip i:nth-of-type(even) { background: var(--violet); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section--tight { padding: 40px 0 clamp(60px, 8vw, 100px); }
.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.section__head--split .lead { margin-top: 0; justify-self: end; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; margin: 0 auto 44px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.filter { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.25s; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); }
a.filter { display: inline-flex; align-items: center; gap: 8px; }
.filter__count { font-family: var(--font-mono); font-size: 11px; min-width: 20px; padding: 2px 6px; border-radius: 999px; text-align: center; background: var(--surface-2); color: var(--dim); transition: background 0.2s, color 0.2s; }
.filter.is-active .filter__count { background: rgba(5, 7, 13, 0.12); color: var(--bg); }

/* Cabecera de cada categoría */
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.cat-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cat-head p { color: var(--muted); }

/* ---------- Proyectos ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease), opacity 0.35s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(183, 124, 255, 0.4); box-shadow: 0 30px 60px -30px rgba(155, 92, 240, 0.45); }
.project--feature { grid-column: 1 / -1; flex-direction: row; }
.project--feature .project__media { flex: 1.35; aspect-ratio: auto; min-height: 380px; }
.project--feature .project__body { flex: 1; justify-content: center; padding: 44px; }
.project--feature h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.project__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; filter: saturate(0.9); }
.project:hover .project__media img { transform: scale(1.06); filter: saturate(1.05); }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 25, 0.85)); }
.project--feature .project__media::after { background: linear-gradient(90deg, transparent 60%, rgba(10, 14, 25, 0.9)); }

.project__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; flex: 1; }
.project h3 { font-size: 1.5rem; }
.project h3 em { font-style: normal; color: var(--muted); font-weight: 500; }
.project p { color: var(--muted); }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project__by { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; }
.project__by span { color: var(--emerald); font-weight: 600; }

.tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.tag--java { color: #ffb86b; border-color: rgba(255, 184, 107, 0.3); background: rgba(255, 184, 107, 0.07); }
.tag--bedrock { color: #7cc7ff; border-color: rgba(124, 199, 255, 0.3); background: rgba(124, 199, 255, 0.07); }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.project .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.badge--live { background: rgba(5, 7, 13, 0.72); backdrop-filter: blur(8px); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.35); }
.badge--soon { background: var(--violet-soft); color: var(--violet); border: 1px solid rgba(183, 124, 255, 0.3); }
.badge--locked { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.badge .ico { width: 13px; height: 13px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: pulse 1.8s ease-out infinite; }

.projects--three { grid-template-columns: repeat(3, 1fr); }

/* Portada a partir de un icono cuadrado (DynastyMC) */
.project__media--icon { display: grid; place-items: center; background: #0a0d1c; isolation: isolate; }
.project__media--icon::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--cover) center / cover; filter: blur(38px) saturate(1.3) brightness(0.55); transform: scale(1.1); }
.project__media--icon img { width: min(58%, 280px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 22%; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); filter: none; }
.project:hover .project__media--icon img { transform: scale(1.04) rotate(-1.5deg); filter: none; }
.project--feature .project__media--icon::after, .project__media--icon::after { background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 14, 25, 0.55)); }
.badge--dev { background: rgba(5, 7, 13, 0.72); backdrop-filter: blur(8px); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.project__status { color: #fbbf24 !important; }

.projects__empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 70px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface);
  animation: cardIn 0.5s var(--ease) both;
}
.projects__empty .ico { width: 42px; height: 42px; color: var(--violet); margin-bottom: 6px; }
.projects__empty h3 { font-size: 1.3rem; }
.projects__empty--soon { min-height: 340px; }
.projects__empty--soon .badge { margin-bottom: 8px; }
.projects__empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.projects__empty p { color: var(--muted); max-width: 46ch; margin-bottom: 8px; }

/* ---------- Inicio: accesos a cada página ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile {
  --acc: var(--emerald); --acc-soft: var(--emerald-soft);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; min-height: 260px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
}
.tile--violet { --acc: var(--violet); --acc-soft: var(--violet-soft); }
.tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: var(--surface-2); box-shadow: 0 30px 60px -35px var(--acc); }
.tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tile__top .mono { font-size: 12px; color: var(--dim); letter-spacing: 0.12em; }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--muted); }
.tile__go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font-weight: 700; font-size: 14.5px; }
.tile__go .ico { transition: transform 0.25s var(--ease); }
.tile:hover .tile__go .ico { transform: translateX(4px); }
.tile--feature { grid-column: span 2; grid-row: span 2; padding: 40px; }
.tile--feature h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tile--feature p { max-width: 34ch; font-size: 1.05rem; }
.tile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: 60%; }
.tile__chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: #cfd5e1; }
.tile__art { position: absolute; right: -36px; bottom: -36px; width: 52%; max-width: 300px; border-radius: 22%; z-index: -1; opacity: 0.85; transform: rotate(-8deg); transition: transform 0.6s var(--ease); -webkit-mask-image: linear-gradient(200deg, #000 40%, transparent 95%); mask-image: linear-gradient(200deg, #000 40%, transparent 95%); }
.tile--feature:hover .tile__art { transform: rotate(-4deg) scale(1.04); }

/* Páginas interiores: el primer bloque deja sitio a la barra fija */
.page-top { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 100px)); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.service {
  position: relative; overflow: hidden;
  padding: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 211, 153, 0.1), transparent 60%);
}
.service:hover { transform: translateY(-5px); border-color: rgba(52, 211, 153, 0.35); }
.service:hover::before { opacity: 1; }
.service--bots { grid-row: span 2; display: flex; flex-direction: column; }
.service h3 { font-size: 1.45rem; margin: 22px 0 10px; }
.service p { color: var(--muted); }

.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.25); }
.service__icon--violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(183, 124, 255, 0.25); }
.service__icon svg { width: 26px; height: 26px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.checks svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: #cfd5e1; transition: border-color 0.2s, color 0.2s; }
.service:hover .pills li { border-color: rgba(183, 124, 255, 0.3); }

.chat { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.chat__msg { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line); font-size: 14px; }
.chat__msg b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.chat__msg b i { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; }
.chat__msg p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.chat__msg .mono { color: var(--emerald); font-size: 13px; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--emerald); color: var(--bg); font-weight: 800; font-family: var(--font-display); font-size: 13px; }
.chat__avatar--alt { background: var(--violet); }

.terminal { margin-top: 22px; border-radius: 12px; border: 1px solid var(--line); background: #03050a; overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3142; }
.terminal__bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.terminal pre { margin: 0; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: #cfd5e1; overflow-x: auto; }
.t-dim { color: var(--dim); }
.t-ok { color: var(--emerald); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--emerald); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }

/* ---------- Reclutamiento ---------- */
.recruit {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 28px;
  border: 1px solid rgba(183, 124, 255, 0.25);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(52, 211, 153, 0.14), transparent 60%),
    radial-gradient(700px circle at 100% 100%, rgba(155, 92, 240, 0.22), transparent 60%),
    var(--bg-3);
}
.recruit__mark { position: absolute; right: -40px; bottom: -60px; width: 380px; opacity: 0.06; z-index: -1; transform: rotate(-6deg); }
.recruit__content { max-width: 780px; }
.recruit .title-lg { line-height: 1.18; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.roles li {
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  background: rgba(5, 7, 13, 0.55); border: 1px solid var(--line-2);
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
}
.roles li::before { content: "#"; color: var(--emerald); margin-right: 6px; font-family: var(--font-mono); }
.roles li:hover { transform: translateY(-3px); border-color: var(--emerald); color: var(--emerald); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 38px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--emerald) 70%, transparent); opacity: 0.5; }
.timeline__item { position: relative; }
.timeline__node { position: absolute; left: -38px; top: 30px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--violet); }
.timeline__node::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--violet); transform: scale(0); transition: transform 0.5s var(--ease) 0.2s; }
.timeline__item.is-visible .timeline__node::after { transform: scale(1); }
.timeline__card {
  padding: 26px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  display: grid; grid-template-columns: 1fr; gap: 8px;
  transition: border-color 0.3s, background 0.3s, transform 0.45s var(--ease);
}
.timeline__item:hover .timeline__card { border-color: rgba(183, 124, 255, 0.35); background: var(--surface-2); transform: translateX(6px); }
.timeline__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.timeline__top .mono { font-size: 12px; color: var(--dim); letter-spacing: 0.12em; }
.timeline__card h3 { font-size: 1.3rem; }
.timeline__card p { color: var(--muted); max-width: 62ch; }
.redacted { display: grid; gap: 7px; margin-top: 8px; }
.redacted span { display: block; height: 9px; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.timeline__item--locked .timeline__node { border-style: dashed; border-color: var(--dim); }
.timeline__item--locked .timeline__node::after { background: var(--dim); }
.timeline__item--locked .timeline__card { border-style: dashed; background: transparent; }

@media (min-width: 900px) {
  .timeline { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 26px; }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline__item:nth-child(odd) { grid-column: 1; }
  .timeline__item:nth-child(even) { grid-column: 2; margin-top: 90px; }
  .timeline__item:nth-child(odd) .timeline__node { left: auto; right: -50px; }
  .timeline__item:nth-child(even) .timeline__node { left: -50px; }
  .timeline__item:nth-child(odd):hover .timeline__card { transform: translateX(-6px); }
}

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1040px; margin-inline: auto; }
.member {
  --acc: var(--emerald); --acc-soft: var(--emerald-soft);
  position: relative; padding: 34px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--bg-3), var(--bg-2));
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.member::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--acc), transparent); }
.member--violet { --acc: var(--violet); --acc-soft: var(--violet-soft); }
.member:hover { border-color: color-mix(in srgb, var(--acc) 40%, transparent); box-shadow: 0 30px 60px -35px var(--acc); }
.member__head { display: flex; align-items: center; gap: 18px; }
.member__avatar {
  width: 76px; height: 76px; border-radius: 22px; flex: none; position: relative;
  display: grid; place-items: center;
  background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--acc);
}
.member__avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.member__presence {
  position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px;
  border: 3px solid var(--bg-3); border-radius: 50%;
}
.member__presence--online { background: #23a559; }
.member__presence--dnd { display: grid; place-items: center; background: #f23f43; }
.member__presence--dnd::before { content: ""; width: 7px; height: 2px; border-radius: 2px; background: #fff; }
.member__status, .discord-soon { color: var(--muted); font-size: .85rem; }
.discord-soon { display: inline-block; white-space: nowrap; }
.nav__cta.discord-soon { padding-inline: 8px; }
.member__status { margin-top: 4px; }
.member h3 { font-size: 1.5rem; }
.member__role { color: var(--acc); font-weight: 600; font-size: 14.5px; margin-top: 6px; line-height: 1.45; }
.member__bio { color: var(--muted); margin-top: 22px; }
.member__skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.member__skills li { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: #cfd5e1; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__intro .lead { margin-top: 24px; margin-bottom: 34px; }
.contact__mail {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-top: 12px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.25s, transform 0.3s var(--ease);
  width: fit-content; max-width: 100%;
  font-weight: 700; font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  word-break: break-word;
}
.contact__mail small { display: block; font-weight: 500; font-size: 12.5px; color: var(--dim); }
.contact__mail:hover { border-color: var(--emerald); transform: translateX(4px); }
.contact__mail-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); flex: none; }
.contact__mail-icon--violet { background: var(--violet-soft); color: var(--violet); }
.contact__mail-icon svg { width: 22px; height: 22px; }

.form {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px;
  padding: clamp(26px, 4vw, 40px); border-radius: 24px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: #d6dbe6; }
.req { color: var(--violet); }
.field__control { position: relative; }
.field__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; transition: color 0.2s; }
.field__control--area .field__icon { top: 17px; transform: none; }
.field__chevron { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 14px 16px 14px 46px;
  border-radius: 14px; border: 1px solid var(--line-2); background: #070a13;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { cursor: pointer; padding-right: 44px; }
.field select:invalid { color: var(--dim); }
.field option { background: var(--bg-3); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); background: #080c16; }
.field__control:focus-within .field__icon { color: var(--emerald); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1); }
.field.has-error .field__icon { color: #f87171; }
.field__error { font-size: 13px; color: #fca5a5; min-height: 0; }
.field__error:empty { display: none; }

.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 13.5px; color: var(--dim); }
.form__note a { color: var(--emerald); }
.form__note a:hover { text-decoration: underline; }
.form__submit { min-width: 200px; }
.form__submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form__submit.is-loading .ico { display: none; }
.form__submit.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(4, 18, 12, 0.3); border-top-color: #04120c; animation: spin 0.7s linear infinite; }

.form__status { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.form__status.is-error { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.3); color: #fca5a5; }

.form__success {
  position: absolute; inset: 0; z-index: 3; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px;
  background: var(--bg-2);
  animation: cardIn 0.5s var(--ease) both;
}
.form__success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.35); }
.form__success-icon svg { width: 34px; height: 34px; }
.form__success h3 { font-size: 1.6rem; }
.form__success p { color: var(--muted); max-width: 40ch; }

/* ---------- Footer ---------- */
.footer { background: #0c111d; border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin-top: 16px; color: var(--dim); font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 48px; }
.footer__cols h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer__cols a { display: block; width: fit-content; color: var(--emerald); font-weight: 500; font-size: 15px; padding: 3px 0; transition: color 0.2s, transform 0.25s var(--ease); }
.footer__cols a:hover { color: #7cf0c4; transform: translateX(3px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 26px; }
.footer__bottom p { color: var(--dim); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
/* main.js retira la clase .reveal al terminar la animación para que los hovers usen sus propias transiciones */

/* ---------- Keyframes ---------- */
@keyframes loadIn { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(-50%) rotate(0deg); } 50% { transform: translateY(-53%) rotate(-2deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
  .socials--nav { display: none; }
}

@media (max-width: 1100px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px 24px 28px;
    background: rgba(5, 7, 13, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links > a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav__links > a.is-active::after { left: auto; right: 14px; top: 50%; bottom: auto; transform: translateY(-50%); width: 6px; height: 6px; }
  .nav__mobile-extra { display: block; margin-top: 12px; }
  .nav__mobile-extra .btn { width: 100%; --pad: 14px 18px; }
  .nav__actions { margin-left: auto; }
  .nav.menu-open { background: rgba(5, 7, 13, 0.97); }

  .services { grid-template-columns: 1fr; }
  .projects--three { grid-template-columns: repeat(2, 1fr); }
  /* Con 2 columnas, la última tarjeta suelta pasa a formato horizontal */
  .projects--three > .project:last-child:not(.project--feature) { grid-column: 1 / -1; flex-direction: row; }
  .projects--three > .project:last-child:not(.project--feature) .project__media { flex: 1.2; aspect-ratio: auto; min-height: 300px; }
  .projects--three > .project:last-child:not(.project--feature) .project__body { flex: 1; justify-content: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-row: auto; }
  .service--bots { grid-row: auto; }
  .contact { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; }
  .section__head--split .lead { justify-self: start; }
}

@media (max-width: 780px) {
  .container { width: min(1200px, 100% - 36px); }
  .projects, .projects--three { grid-template-columns: 1fr; }
  .projects--three > .project:last-child:not(.project--feature) { grid-column: auto; flex-direction: column; }
  .projects--three > .project:last-child:not(.project--feature) .project__media { min-height: 0; aspect-ratio: 16 / 9; }
  .project__media--icon img { width: 40%; }
  .tiles { grid-template-columns: 1fr; }
  .tile--feature { grid-column: auto; padding: 28px; }
  .tile__chips { max-width: 100%; }
  .tile__art { width: 46%; opacity: 0.35; }
  .cat-head { flex-direction: column; gap: 6px; }
  .project--feature { flex-direction: column; }
  .project--feature .project__media { min-height: 0; aspect-ratio: 16 / 9; }
  .project--feature .project__media::after { background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 25, 0.85)); }
  .project--feature .project__body { padding: 26px 28px 30px; }
  .team { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .checks { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero__watermark { right: -30%; width: 110vw; opacity: 0.06; }
  .hero__meta { gap: 12px; flex-direction: column; }
  .filters { border-radius: 20px; }
  .service, .member { padding: 26px; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .load-in { opacity: 1; transform: none; }
  .strip__track { animation: none; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--nav-h) + 70px) 0 100px; max-width: 780px; }
.legal h2 { font-size: 1.2rem; margin: 42px 0 12px; }
.legal p:not(.eyebrow):not(.lead) { color: var(--muted); }
.legal a:not(.btn) { color: var(--emerald); }
.legal a:not(.btn):hover { text-decoration: underline; }
.legal-page .footer { padding: 30px 0; }

/* A quieter visual treatment across the studio site. */
:root {
  --bg: #111412;
  --bg-2: #181c19;
  --bg-3: #202620;
  --emerald: #c6ed85;
  --font-display: "Manrope", system-ui, sans-serif;
}

.page-top, .section--alt { background: var(--bg); }
.page-top::before { display: none; }
.title-xl { letter-spacing: -.055em; }
.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 30%);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding-top: clamp(120px, 16vw, 210px);
  padding-bottom: clamp(64px, 10vw, 132px);
}
.studio-hero h1 {
  font-size: clamp(3rem, 9vw, 9rem);
  letter-spacing: -.085em;
  line-height: .95;
}
.studio-hero h1 span { color: var(--emerald); }
.studio-hero p { margin-top: 24px; max-width: 37ch; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.studio-hero__art { width: 100%; height: auto; }
.studio-section { border-top: 1px solid var(--line); }
.studio-links, .studio-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.studio-links a, .studio-gallery figure { padding: 22px; border: 1px solid var(--line-2); background: var(--bg-2); }
.studio-links strong, .studio-links span { display: block; }
.studio-links span { color: var(--muted); }
.studio-links a:hover { border-color: var(--emerald); }
.studio-gallery figure { margin: 0; padding: 0; }
.studio-gallery img { display: block; width: 100%; height: auto; }
.studio-gallery figcaption { padding: 14px 18px; }
#galeria { scroll-margin-top: 90px; }
@media (max-width: 650px) {
  .studio-hero, .studio-links, .studio-gallery { grid-template-columns: 1fr; }
  .studio-hero__art { width: min(140px, 45%); }
}

.nav__links > a { white-space: nowrap; }
.page-top { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px)); }
.services { grid-template-rows: auto; align-items: start; }
.service--bots { grid-row: auto; }
.chat { margin-top: 24px; padding-top: 0; }
.footer__independence { color: var(--muted); font-size: .875rem; max-width: 70ch; margin-block: 24px; }

.studio-hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 84px));
  padding-bottom: clamp(42px, 6vw, 84px);
}
.studio-hero h1 { font-size: clamp(2.7rem, 5.6vw, 6.2rem); letter-spacing: -.065em; line-height: 1; }
.studio-hero h1 span { display: block; }
.studio-hero p { max-width: 53ch; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.studio-hero .hero__ctas { margin-top: 24px; }
.studio-hero__copy { animation: studio-intro .65s ease-out both; }
.studio-hero__art {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #170e23;
  animation: studio-intro .65s .12s ease-out both;
}
.studio-hero__art img { display: block; width: 100%; height: auto; }
@keyframes studio-intro { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.strip__track { gap: 0; }
.strip__group { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }

.gallery-carousel { max-width: 920px; }
.gallery-carousel .studio-gallery {
  display: grid;
  grid-template-columns: none;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.studio-gallery > * { scroll-snap-align: start; min-width: 0; }
.gallery-carousel .studio-gallery img { aspect-ratio: 16 / 9; object-fit: contain; background: #0c0f0c; }
.gallery-carousel figure a { display: block; }
.gallery-carousel figcaption { font-weight: 700; }
.gallery-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.gallery-position { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 750px) {
  .studio-hero { grid-template-columns: 1fr; }
  .studio-hero__art { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero__copy, .studio-hero__art, .strip__track { animation: none; }
}

.brand__lao { font-weight: 800; }
.brand__lao .brand__a {
  display: inline-block;
  position: relative;
  width: .76em;
  color: transparent;
  font-weight: inherit;
}
.brand__a::after {
  content: "";
  position: absolute;
  inset: .32em 0 .24em;
  background: var(--text);
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 44%, 24% 100%, 0 100%);
}
.member__profile { margin-top: 18px; }
.extun-page {
  background: radial-gradient(ellipse at 83% 0%, #28213b 0%, transparent 36rem), var(--bg);
}
.extun-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 6vw, 78px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(118deg, #1b231b 0%, #171c19 54%, #1c1826 100%);
}
.extun-intro::after {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  background: url("img/lao-logo.png") 85% center / min(72%, 290px) auto no-repeat;
  opacity: .07;
}
.extun-intro .eyebrow { color: var(--emerald); }
.extun-intro h1 { margin-top: 10px; font-size: clamp(3.25rem, 9vw, 7rem); line-height: 1; letter-spacing: -.085em; }
.extun-intro h1 span { color: var(--emerald); }
.extun-intro .lead { max-width: 56ch; }
.extun-intro strong { color: var(--text); }
.extun-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.extun-section { margin-top: clamp(44px, 7vw, 86px); padding-top: clamp(26px, 4vw, 54px); border-top: 1px solid var(--line-2); }
.extun-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 14px; margin-top: 24px; }
.extun-grid .service { padding: 22px; }
.extun-grid .service h3 { margin-top: 12px; }
.extun-card-icon { display: block; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--emerald-soft); color: var(--emerald); }
#staff .extun-card-icon { background: var(--violet-soft); color: var(--violet); }
.extun-tech-title { margin-top: 36px; }
.extun-tech-filters[hidden] { display: none; }
.extun-tech-filters:not([hidden]) { display: flex; margin: 16px 0; }
.extun-tech-filters button { font: inherit; font-weight: 600; cursor: pointer; }
.extun-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 125px), 1fr)); gap: 12px; margin-top: 16px; }
.extun-tech__card:not([hidden]) {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 112px;
  padding: 12px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  text-align: center;
  font-size: .875rem;
  font-weight: 650;
}
.extun-tech__card img { object-fit: contain; }
.extun-tech__card:hover { border-color: var(--emerald); }

.studio-links a, .project, .service, .member {
  background-color: var(--bg-2);
  border-color: var(--line-2);
}
.studio-links a { border-radius: var(--radius-sm); }
.studio-links strong { font-size: 1.12rem; margin-bottom: 3px; }
.section__head .lead { color: #aeb8b3; }
.footer { border-top-color: var(--line-2); background: #0e110f; }

.staff-history {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding-inline-start: 25px;
  border-inline-start: 2px solid var(--line-2);
}
.staff-history__item { position: relative; min-width: 0; }
.staff-history__item::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -32px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--violet);
  border-radius: 50%;
  background: var(--bg);
}
.staff-history__card {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 24px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.staff-history__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.staff-history__head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.staff-history__head h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); overflow-wrap: anywhere; }
.staff-history__address { color: var(--emerald); font-family: var(--font-mono); font-size: .82rem; overflow-wrap: anywhere; }
.staff-history__status {
  justify-self: start;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}
.staff-history__status--transition { background: var(--emerald-soft); color: var(--emerald); }
.staff-history__duration, .staff-history__exit { color: var(--muted); font-size: .9rem; }
.staff-history__roles { margin: 0; }
.staff-history__roles li { background: var(--violet-soft); color: var(--text); }
@media (max-width: 540px) {
  .staff-history { padding-inline-start: 15px; }
  .staff-history__item::before { left: -22px; }
  .staff-history__head { grid-template-columns: auto minmax(0, 1fr); }
  .staff-history__status { grid-column: 2; }
}
