/* ============================================================
   Ian Healy — Portfolio Hi-Fi
   Full black · lime primary (#95E916) · dark-green accent (#0B5000)
   Display: Unbounded · Body / Mono: Geist
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@300..700&family=Unbounded:wght@300..900&display=swap');

:root {
  /* full black base */
  --background: #000000;
  --surface: #0b0d0a;
  --foreground: #ffffff;
  --muted: #070807;
  --muted-foreground: #9aa39a;
  --border: #1c241a;
  --input: #2a352a;
  /* destacados */
  --amber: #95e916;        /* primary — lime */
  --amber-strong: #7ec40f; /* primary hover (tono sólido) */
  --accent: #0b5000;       /* accent — dark green */
  --violet: var(--amber);  /* destacados unificados: todo lime */
  /* bloque oscuro (footer / overlay) */
  --dark: #000000;
  --dark-2: #0b0d0a;
  --dark-border: #1c241a;
  --off: #ffffff;
  --off-dim: #9aa39a;
  /* tipografía — Unbounded + Geist (Google Fonts) */
  --font-display: 'Unbounded', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-sans: 'Geist', sans-serif;
  /* layout */
  --gutter: clamp(20px, 4.5vw, 64px);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: #0a0a0a; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- utilidades tipográficas ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.mono-dim { color: var(--muted-foreground); }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
/* todo lo que usa la display condensada va en bold */
.wd-name, .svc-name, .proj-name, .arch-name, .strip-card .nm, .overlay-nav > a, .op-num, .op h3 { font-weight: 700; }

/* ---------- botones ----------
   Estilo unificado (Figma · Section "Ian Healy — Buttons"):
   smooth corners 16px (radius limpio, como garash — sin squircle por el bug
   del borde en Chrome), Geist Medium 15px en sentence-case (sin uppercase). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--foreground);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, backdrop-filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
/* Primary: lime sólido → en hover se transparenta y revela el borde lime */
.btn-primary {
  background: var(--amber);
  border-color: transparent;
  color: #0a0a0a;
}
.btn-primary:hover {
  background: rgba(149, 233, 22, 0.8);
  border-color: var(--amber);
}
/* Ghost: glassmorphism (blur + blanco 8% + borde blanco) → hover blanco sólido */
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--foreground);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
  color: var(--foreground);
}
.btn-ghost:hover {
  background: var(--foreground);
  color: #000000;
  border-color: var(--foreground);
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader .display { color: var(--off); font-size: clamp(40px, 11vw, 150px); }
.loader.hide { transform: translateY(-100%); pointer-events: none; }

/* ---------- nav flotante ---------- */
.nav {
  position: fixed;
  top: 14px; left: 18px; right: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 26px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65); }
.nav-logo { font-weight: 700; color: var(--foreground); }
.nav-logo .dot { color: var(--violet); }
.nav-center {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  color: var(--muted-foreground);
  background: none; border: 0; cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--foreground); }
.nav-link::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 5px;
  height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.open { color: var(--foreground); background: var(--muted); }
.nav-link.open::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  background: none; border: 0; cursor: pointer; padding: 10px 2px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.lang-toggle b { font-weight: 700; color: var(--foreground); }
.nav .btn { padding: 10px 18px; }
.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 20px; line-height: 1;
  color: var(--foreground); padding: 8px 4px;
}

/* ---------- dropdown WORK ---------- */
.work-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}
.work-dropdown.open { display: grid; }
.wd-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wd-item:hover { border-color: var(--foreground); background: var(--muted); }
.wd-thumb {
  flex: 0 0 auto;
  width: 56px; height: 42px;
  border-radius: 8px;
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground);
}
.wd-item:hover .wd-thumb { color: var(--amber); }
.wd-name { font-family: var(--font-display); text-transform: uppercase; font-size: 16px; line-height: 1.05; }
.wd-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 5px; }
.wd-all { justify-content: center; gap: 14px; }
.wd-all:hover { border-color: var(--amber); background: rgba(149, 233, 22, 0.08); }
.wd-all .arrow { color: var(--violet); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 0;
}
/* fondo animado del hero (ColorBends — shader Three.js) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .color-bends-container { width: 100%; height: 100%; }
.hero-main, .hero-foot { position: relative; z-index: 1; }
.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 34px; padding-bottom: 44px; }
.hero-title { font-size: clamp(38px, min(8vw, 13svh), 118px); }
.hero-title .hl { display: block; overflow: hidden; }
.hero-title .hl-in { display: block; }
.hero-title .dot-a { color: var(--amber); }
html.js .hero-title .hl-in { transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .hero-title .hl:nth-child(2) .hl-in { transition-delay: 0.08s; }
html.js .hero-title .hl:nth-child(3) .hl-in { transition-delay: 0.16s; }
html.js body.ready .hero-title .hl-in { transform: translateY(0); }
.hero-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-foot {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--border);
}
.hero-foot .mid { margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.scroll-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---------- secciones ---------- */
.section { padding: clamp(80px, 10vw, 150px) var(--gutter); }
.section-alt { background: var(--muted); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.rule-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); }

/* ---------- approach (pinned scrub) ---------- */
.pin-wrap { height: 230vh; background: var(--muted); }
.pin-sticky {
  position: sticky; top: 0;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.approach { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.paint {
  font-size: clamp(30px, 4.4vw, 70px);
}
.paint .pa, .paint .pb {
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.paint .pa { background-position-x: calc((1 - var(--pa, 0)) * 100%); }
.paint .pb { background-position-x: calc((1 - var(--pb, 0)) * 100%); }
.paint .pa { background-image: linear-gradient(90deg, var(--foreground) 50%, #3a3a3a 50%); }
.paint .pb { background-image: linear-gradient(90deg, var(--violet) 50%, #3a3a3a 50%); }
.approach-copy { display: flex; flex-direction: column; gap: 28px; }
.approach-copy p { margin: 0; max-width: 46ch; text-wrap: pretty; }
.approach-copy p strong { font-weight: 600; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  cursor: default;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.svc:hover, .svc.open { border-color: var(--foreground); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.svc-count { font-family: var(--font-mono); font-size: 13px; color: var(--amber); }
.svc-name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(19px, 2vw, 30px); line-height: 1.04; }
.svc-items {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}
.svc:hover .svc-items, .svc.open .svc-items { grid-template-rows: 1fr; margin-top: 18px; }
.svc-items > div { overflow: hidden; }
.svc-items ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.svc-items li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-foreground);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px;
}
/* icono pixel */
.pix { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pix i { background: var(--foreground); border-radius: 2px; }
.pix i.a { background: var(--amber); }
.svc:hover .pix i.a, .svc.open .pix i.a { background: var(--amber-strong); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
.proj { text-decoration: none; display: block; }
.proj-media {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s ease;
}
.proj:hover .proj-media { transform: scale(0.985); }
.proj-media image-slot { width: 100%; aspect-ratio: 2 / 3; }
.proj-row { display: flex; align-items: baseline; gap: 20px; margin-top: 18px; }
.proj-name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.04; }
.proj-name .idx { font-family: var(--font-mono); font-size: 13px; color: var(--amber); vertical-align: super; margin-right: 8px; letter-spacing: 0; }
.proj-meta { margin-left: auto; text-align: right; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.proj-desc { margin: 10px 0 0; color: var(--muted-foreground); max-width: 52ch; }
.proj:hover .proj-name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }

.proj-all {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  text-decoration: none;
  padding: 40px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.proj-all:hover { border-color: var(--violet); background: rgba(149, 233, 22, 0.08); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-grid span {
  width: 52px; height: 38px;
  border-radius: 6px;
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted-foreground);
}
.proj-all:hover .mini-grid span { color: var(--violet); }
.proj-all .label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.proj-all .label .arrow { color: var(--violet); }

/* ---------- operating ---------- */
.op-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.op {
  border-top: 2px solid var(--foreground);
  padding-top: 22px;
}
.op-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--amber); }
.op h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 21px; margin: 14px 0 10px; line-height: 1.05; }
.op p { margin: 0; color: var(--muted-foreground); text-wrap: pretty; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: var(--off); padding: clamp(90px, 10vw, 150px) var(--gutter) 36px; border-top: 1px solid var(--dark-border); }
.footer-cta { display: inline-block; text-decoration: none; color: var(--off); }
.footer-cta .display { font-size: clamp(48px, 10vw, 156px); transition: color 0.25s ease; }
.footer-cta .arrow { color: var(--amber); }
.footer-cta:hover .display { color: var(--amber); }
.footer-sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--off-dim); margin: 18px 0 0; }

.strip { display: flex; gap: 14px; align-items: flex-end; margin: clamp(60px, 8vw, 110px) 0; }
.strip-card {
  flex: 1;
  aspect-ratio: 4 / 5;
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform-origin: bottom center;
  will-change: transform;
}
.strip-card .num { font-family: var(--font-mono); font-size: 11px; color: var(--amber); }
.strip-card .nm { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(11px, 1.3vw, 18px); line-height: 1.08; color: var(--off); }

.wordmark {
  font-size: 15.5vw;
  line-height: 0.9;
  color: var(--off);
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0 calc(var(--gutter) * -1 + 8px);
  user-select: none;
}
.wordmark .dot { color: var(--violet); }

.footer-links {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--dark-border);
  margin-top: clamp(40px, 5vw, 70px);
  padding-top: 26px;
}
.footer-links a { color: var(--off-dim); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--amber); }
.footer-micro { margin-left: auto; display: flex; gap: 24px; align-items: center; color: var(--off-dim); flex-wrap: wrap; }

/* ---------- overlay mobile ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--dark); color: var(--off);
  display: none;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
}
.overlay.open { display: flex; }
.overlay-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 20px; border-bottom: 1px solid var(--dark-border); }
.overlay-close { background: none; border: 0; color: var(--off); font-family: var(--font-mono); font-size: 20px; cursor: pointer; }
.overlay-lang { display: flex; gap: 14px; align-items: center; padding: 22px 8px 6px; color: var(--off-dim); }
.overlay-lang .lang-toggle { color: var(--off-dim); }
.overlay-lang .lang-toggle b { color: var(--off); }
.overlay-nav { display: flex; flex-direction: column; padding: 10px 8px; }
.overlay-nav > a {
  font-family: var(--font-display); text-transform: uppercase; text-decoration: none;
  color: var(--off); font-size: clamp(30px, 8.5vw, 54px); line-height: 1.18;
  padding: 6px 0;
}
.overlay-nav > a:active { color: var(--amber); }
.overlay-sub { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; padding-left: 18px; border-left: 1px solid var(--dark-border); }
.overlay-sub a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--off-dim); text-decoration: none; padding: 9px 0; }
.overlay-sub a:active, .overlay-sub a:hover { color: var(--amber); }
.overlay-sub a .i { color: var(--amber); margin-right: 10px; }
.overlay-pages { padding: 18px 8px; border-top: 1px solid var(--dark-border); margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.overlay-pages .cap { color: var(--off-dim); margin-bottom: 6px; }
.overlay-pages a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--off); text-decoration: none; padding: 10px 0; }
.overlay-pages a .arrow { color: var(--violet); }
.overlay-foot { margin-top: auto; padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 18px; }
.overlay-foot .socials { display: flex; gap: 22px; color: var(--off-dim); }
.overlay-foot .socials a { color: var(--off-dim); }
.overlay-foot .btn { border-color: transparent; background: var(--amber); color: #0a0a0a; width: 100%; }

/* ---------- páginas internas ---------- */
.page-head { padding: calc(var(--nav-h) + 70px) var(--gutter) 0; }
.back-link { color: var(--muted-foreground); }
.back-link:hover { color: var(--foreground); }
.page-title-row { display: flex; align-items: baseline; gap: 22px; margin-top: 22px; }
.page-title { font-size: clamp(38px, 6.4vw, 100px); }
.page-count { font-family: var(--font-mono); font-size: 18px; color: var(--amber); }

/* archivo de proyectos */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.arch { text-decoration: none; display: block; }
.arch image-slot { width: 100%; aspect-ratio: 4 / 3; }
.arch-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.3s ease; }
.arch:hover .arch-media { transform: scale(0.98); }
.arch-name { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; line-height: 1.05; margin-top: 14px; }
.arch-name .idx { font-family: var(--font-mono); font-size: 11px; color: var(--amber); vertical-align: super; margin-right: 6px; }
.arch-ind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 7px; }
.arch:hover .arch-name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* contacto */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: 16px;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--input);
  border-radius: 12px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.form .btn { align-self: flex-start; padding: 16px 36px; }
.contact-aside { display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--border); padding-left: clamp(24px, 3vw, 44px); }
.contact-aside a { color: var(--foreground); display: inline-flex; gap: 10px; align-items: baseline; width: fit-content; }
.contact-aside a:hover { color: var(--amber); }
.contact-aside .arrow { color: var(--amber); }
.contact-aside hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 8px 0; }

/* ---------- reveals ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv-d1.in { transition-delay: 0.08s; }
html.js .rv-d2.in { transition-delay: 0.16s; }
html.js .rv-d3.in { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-center, .nav .lang-toggle { display: none; }
  .burger { display: block; }
  .work-dropdown { display: none !important; }
}
@media (max-width: 860px) {
  .approach { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 44px; }
  .op-grid { grid-template-columns: 1fr; gap: 30px; }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(32px, min(10vw, 13svh), 80px); }
  .hero-foot { flex-wrap: wrap; gap: 10px 24px; }
  .hero-foot .mid { order: 3; margin: 0; }
  .proj-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .proj-meta { margin-left: 0; text-align: left; }
  /* texto sobre la imagen en pantallas chicas */
  .proj { position: relative; }
  .proj-info {
    position: absolute;
    left: 1px; right: 1px; bottom: 1px;
    padding: 56px 18px 18px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.86) 55%);
    border-radius: 0 0 20px 20px;
  }
  .proj-info .proj-row { margin-top: 0; }
  .proj-info .proj-desc { color: #d4d4d4; }
  .proj-info .proj-meta { color: #d4d4d4; }
  .strip { flex-wrap: wrap; }
  .strip-card { flex: 1 1 28%; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .arch-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-title .hl-in { transform: none; transition: none; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .scroll-dot { animation: none; }
  .loader { display: none; }
  .paint .pa, .paint .pb { background-position-x: 0; }
  .strip-card { transform: none !important; }
  .pin-wrap { height: auto; }
  .pin-sticky { position: static; min-height: 0; }
}
