/* ============================================================
   IRVSANZ ARQUITECTURA — design system
   Brand palette: ink #191919 · steel #474748 · yellow #FFC400 · light #EFEFEF
   Display: Fira Sans Black · Body: Montserrat · Labels: IBM Plex Mono (mono accent)
   Supporting neutrals (carbon/line/grey) derived on the manual's neutral axis.
   ============================================================ */

:root {
  --ink: #191919;      /* manual — negro */
  --carbon: #202020;   /* derivado — superficie */
  --carbon-2: #292929; /* derivado — superficie */
  --line: #2E2E2E;     /* derivado — bordes sutiles */
  --steel: #474748;    /* manual — gris */
  --bone: #EFEFEF;     /* manual — claro */
  --grey: #8A8A8C;     /* derivado — texto atenuado legible sobre ink */
  --yellow: #FFC400;   /* amarillo marca oficial (actualizado 2026-07-03) */
  --yellow-dim: #B38A00; /* derivado de #FFC400 */
  --display: "Fira Sans", "Montserrat", sans-serif; /* Fira Sans Black (900) */
  --body: "Montserrat", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --nav-h: 72px;
  --pad: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300; /* Montserrat Light — cercano al Extra Light del manual, legible */
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.container { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--yellow); flex: none; }

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}

h1.display { font-size: clamp(40px, 6.6vw, 88px); }
h2.display { font-size: clamp(32px, 5.4vw, 68px); }

.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--grey); max-width: 60ch; }
.lead strong, .lead b { color: var(--bone); font-weight: 500; }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.btn .arr { transition: transform .25s; }
.btn:hover { border-color: var(--yellow); color: var(--yellow); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--solid { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 500; }
.btn--solid:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(25,25,25,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.nav-in { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; transform: rotate(-10deg); } /* tilted like a signature */
.brand-name { font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.brand-name span { color: var(--yellow); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); transition: color .2s; position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow);
}
.nav-cta { border-color: var(--yellow); color: var(--yellow); padding: 10px 22px; }

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 8px 13px; color: var(--grey); transition: color .2s, background .2s;
}
.lang-toggle a.on { background: var(--yellow); color: var(--ink); font-weight: 500; }
.lang-toggle a:not(.on):hover { color: var(--bone); }

.burger { display: none; z-index: 102; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--bone);
  transition: transform .3s, opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 101;
  background: rgba(25,25,25,.97); backdrop-filter: blur(10px);
  flex-direction: column; justify-content: center; padding: var(--pad);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(34px, 9vw, 56px); text-transform: uppercase;
  line-height: 1.25; color: var(--bone); transition: color .2s;
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--yellow); }
.mobile-menu .mono-label { margin-top: 32px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 5vh, 64px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-bg img.on { opacity: 1; }

/* ---------- hero scroll-scrub video ---------- */
.hero-track { position: relative; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
/* scrub active: tall runway + sticky stage; JS sets the runway height */
.hero-track.scrub-on .hero {
  position: sticky; top: 0;
  height: 100svh; min-height: 0;
}
.hero-track.scrub-on .hero-video { opacity: 1; }
.hero-track.scrub-on .hero-content,
.hero-track.scrub-on .scroll-hint { will-change: opacity; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(25,25,25,.55) 0%, rgba(25,25,25,.12) 38%, rgba(25,25,25,.55) 72%, rgba(25,25,25,.92) 100%);
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 12ch; }
.hero h1 .y { color: var(--yellow); }
.hero-sub { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.hero-sub .lead { max-width: 46ch; }

.scroll-hint {
  position: absolute; right: var(--pad); bottom: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 48px; background: var(--grey); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--carbon); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(24px, 3.4vw, 48px) var(--pad); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1; color: var(--bone);
}
.stat b .y { color: var(--yellow); }
.stat > span { display: block; margin-top: 8px; }
.stat b .y { display: inline; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 16px; }

/* ---------- hexagon spectrum ---------- */
.spectrum { background: var(--carbon); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hexwrap { display: flex; flex-direction: column; align-items: center; }
.hexrow { display: flex; justify-content: center; gap: clamp(6px, 1vw, 14px); }
.hexrow + .hexrow { margin-top: calc(var(--hex-w) * -0.22); }
.hexwrap { --hex-w: clamp(170px, 21vw, 300px); }

.hex {
  position: relative;
  width: var(--hex-w);
  aspect-ratio: 0.8660; /* pointy-top hexagon */
  display: block;
}
/* NEON HEX GLOW — a technological light in the seams, driven by mouse proximity (--glow 0..1) */
.hex, .hexcard { --glow: 0; }
/* additive bloom bleeding into the gaps between hexagons */
.hex::before, .hexcard::before {
  content: ""; position: absolute; inset: -28%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,246,200, calc(1 * var(--glow))) 0%,
    rgba(255,208,30, calc(.92 * var(--glow))) 24%,
    rgba(255,196,0, calc(.42 * var(--glow))) 48%,
    transparent 70%);
  filter: blur(13px);
  mix-blend-mode: screen;
  transform: scale(calc(.5 + .5 * var(--glow)));
  transition: transform .22s ease-out;
}
/* crisp neon rim tracing the hexagon edge */
.hex::after, .hexcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #FFF8DA 0%, #FFC400 50%, #6f5400 100%);
  opacity: calc(.1 + .9 * var(--glow));
  transition: opacity .15s linear;
}
.hex-in {
  position: absolute; inset: 2px; z-index: 2;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 18%;
  overflow: hidden;
}
.hex-in img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: calc(.46 + .48 * var(--glow));
  filter: saturate(calc(.72 + .78 * var(--glow))) brightness(calc(.84 + .3 * var(--glow)));
  transform: scale(calc(1.04 + .07 * var(--glow)));
  transition: opacity .3s, filter .3s, transform .5s;
}
.hex-in::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,25,25,.14), rgba(25,25,25, calc(.72 - .3 * var(--glow))));
  transition: background .3s;
}
@media (hover: none) { .hex, .hexcard { --glow: .5; } }
.hex-name {
  position: relative; z-index: 1;
  font-family: var(--display); font-size: clamp(13px, 1.25vw, 18px);
  text-transform: uppercase; line-height: 1.15; letter-spacing: .02em;
}
.hex-scale { position: relative; z-index: 1; color: var(--yellow); }
.hex-count { position: relative; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--grey); }
.hex:focus-visible, .hexcard:focus-visible { outline: none; --glow: 1; }

.spectrum-axis {
  margin-top: clamp(30px, 4vw, 54px);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey);
}
.spectrum-axis .bar { flex: 1; height: 1px; background: linear-gradient(90deg, var(--yellow), var(--line)); position: relative; }

/* ---------- featured: short full-width parallax bands ---------- */
.fbands { display: flex; flex-direction: column; }
.fband {
  position: relative; display: flex; align-items: flex-end;
  height: clamp(320px, 52vh, 520px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.fband-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fband-bg img { width: 100%; height: 132%; object-fit: cover; will-change: transform; }
.fband::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(25,25,25,.28), transparent 42%, rgba(25,25,25,.82));
  transition: background .4s;
}
.fband-body {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 28px;
  padding-bottom: clamp(18px, 3vh, 34px);
}
.fband h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.6vw, 52px); text-transform: uppercase; line-height: 1; transition: color .3s; }
.fband:hover h3 { color: var(--yellow); }
.fband .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.fband .arrgo {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(237,234,226,.4);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--bone);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.fband:hover .arrgo { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: rotate(45deg); }

/* ---------- project modal (subwindow over the honeycomb) ---------- */
.pmodal {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center;
  padding: clamp(10px, 3vw, 48px);
  background: rgba(25,25,25,.72); backdrop-filter: blur(8px);
}
.pmodal.open { display: flex; }
.pmodal-win {
  position: relative; width: min(1240px, 100%); max-height: 92svh;
  display: flex; flex-direction: column;
  background: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--yellow);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.pmodal-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.strip { padding: 14px clamp(20px, 3vw, 40px); }
.strip img { border-radius: 14px; background: var(--carbon-2); }
.strip button { border-radius: 14px; overflow: hidden; }
.pmodal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px) 12px;
}
.pmodal-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 44px); text-transform: uppercase; line-height: 1; }
.pmodal-close {
  flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  transition: color .2s, border-color .2s;
}
.pmodal-close:hover { color: var(--yellow); border-color: var(--yellow); }
.pmodal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 0 clamp(20px, 3vw, 40px) 18px;
}
.pmodal-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.pmodal-meta span b { color: var(--yellow); font-weight: 500; }

/* horizontal filmstrip — natural aspect ratios, pans with the mouse */
.strip-wrap { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--carbon); }
.strip {
  display: flex; gap: 6px; height: clamp(300px, 52svh, 560px);
  width: max-content; will-change: transform;
}
.strip button { flex: none; height: 100%; padding: 0; cursor: zoom-in; }
.strip img { height: 100%; width: auto; display: block; }
.strip-hint {
  position: absolute; right: 14px; bottom: 12px; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone); background: rgba(25,25,25,.65); padding: 7px 12px; border-radius: 999px;
}
.pmodal-desc { padding: clamp(18px, 2.6vw, 30px) clamp(20px, 3vw, 40px); color: #B7B7B9; max-width: 84ch; }
.pmodal-video { padding: 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px); }
.pmodal-video video { width: 100%; border: 1px solid var(--line); }
.pmodal-foot { margin-top: 6px; }
/* barra amarilla full-width al pie del modal — negro sobre amarillo, hover invierte */
.pmodal-full {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: clamp(18px, 2.4vw, 26px) 24px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .28s, color .28s;
}
.pmodal-full .arr { transition: transform .28s; }
.pmodal-full:hover { background: var(--ink); color: var(--yellow); }
.pmodal-full:hover .arr { transform: translate(3px, -3px); }
@media (max-width: 700px) {
  .pmodal { padding: 0; }
  .pmodal-win { max-height: 100svh; height: 100svh; border-left: 0; border-right: 0; }
  .strip-wrap { overflow-x: auto; }
  .strip { height: clamp(240px, 40svh, 420px); }
  .c-a, .c-b, .c-c, .c-d, .c-e, .c-f { grid-column: span 12; grid-row: span 2; }
}

/* ---------- about (integrated cutout portrait) ---------- */
.about-teaser { background: var(--carbon); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.cutout { position: relative; display: flex; justify-content: center; }
.cutout::before {
  content: ""; position: absolute; inset: 8% 6% 0 6%; z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255,196,0,.14), transparent 70%);
}
.cutout img {
  position: relative; z-index: 1; width: min(100%, 420px);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.55));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
}
.portrait-tag {
  position: absolute; left: 8%; bottom: 26px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 10px 14px;
}

/* ---------- socials ---------- */
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  border: 1.5px solid var(--line); color: var(--bone);
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.socials a svg { width: 21px; height: 21px; display: block; }
.socials a:hover { border-color: var(--yellow); background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
.socials--big { margin-top: 0; align-items: center; }
.socials--big a { width: 54px; height: 54px; border-radius: 16px; }
blockquote.quote {
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.45; font-weight: 500; color: var(--bone);
  border: 0; margin: 26px 0;
}
blockquote.quote em { color: var(--yellow); font-style: normal; }
.quote-src { color: var(--grey); }

/* ---------- clients marquee ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee-set { display: flex; align-items: center; }
.marquee .c {
  font-family: var(--display); font-size: clamp(18px, 2vw, 26px); text-transform: uppercase;
  color: var(--line); padding: 0 34px; white-space: nowrap;
  transition: color .3s;
}
.marquee .c:hover { color: var(--yellow); }
.marquee .dot { color: var(--yellow); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; position: relative; overflow: hidden; }
.cta-band .display a { color: inherit; transition: color .3s; }
.cta-band .display a:hover { color: var(--yellow); }
.cta-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--carbon); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding: 44px 0; }
.foot .brand img { height: 22px; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; font-weight: 400; }
.foot-col a { display: block; color: var(--bone); padding: 3px 0; font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: var(--yellow); }
.foot-base { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-base, .foot-base a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--grey); text-transform: uppercase; }
.foot-base a:hover { color: var(--yellow); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(36px, 5vw, 72px); }
.page-hero .eyebrow { margin-bottom: 18px; }

/* ---------- projects page ---------- */
.filters {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25,25,25,.88); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters-in { display: flex; gap: 8px; padding: 14px var(--pad); width: max-content; margin: 0 auto; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--grey);
  transition: all .2s; white-space: nowrap;
}
.chip:hover { color: var(--bone); border-color: var(--grey); }
.chip.active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 500; }

/* dynamic parallax background behind the honeycomb */
.projbg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.projbg img {
  position: absolute; inset: -12% 0 0 0; width: 100%; height: 118%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease; will-change: transform, opacity;
}
.projbg img.on { opacity: .34; }
.projbg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,25,25,.86), rgba(25,25,25,.55) 40%, rgba(25,25,25,.9));
}

/* honeycomb of project hexagons (positioned by JS) */
.honey { position: relative; margin: clamp(36px, 5vw, 64px) 0; }
.hexcard {
  position: absolute; top: 0; left: 0; display: block;
  aspect-ratio: 0.866;
  transition: transform .55s cubic-bezier(.2,.6,.2,1), opacity .4s;
}
.hexcard .hex-in { gap: 4px; inset: 2px; }
.hexcard:hover { z-index: 2; }
.hexcard .hex-name { font-size: clamp(11px, 1.1vw, 15px); }
.hexcard.hidden-card { display: none; }
.cards-empty { padding: 60px 0; color: var(--grey); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; display: none; }

/* ---------- project detail ---------- */
.proj-hero { position: relative; margin-top: var(--nav-h); }
.proj-hero img { width: 100%; height: min(72svh, 760px); object-fit: cover; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,25,25,.35), transparent 30%, transparent 60%, rgba(25,25,25,.9)); }
.proj-head { position: relative; margin-top: -110px; z-index: 2; padding-bottom: clamp(30px, 4vw, 56px); }
.proj-head h1 { font-size: clamp(36px, 6.4vw, 92px); }

.proj-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin: clamp(24px, 3vw, 40px) 0;
}
.proj-meta > div { background: var(--carbon); padding: 18px 20px; }
.proj-meta b { display: block; font-weight: 500; color: var(--bone); margin-top: 6px; font-size: 15px; }

.proj-desc { max-width: 72ch; font-size: clamp(16px, 1.5vw, 19px); color: #B7B7B9; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); padding: clamp(36px, 5vw, 64px) 0; }
.gallery button { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--carbon); padding: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; transition: transform .5s, opacity .3s; cursor: zoom-in; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .tall img { aspect-ratio: 4/5; }

.proj-video { padding-bottom: clamp(36px, 5vw, 64px); }
.proj-video video { width: 100%; border: 1px solid var(--line); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; }
/* botones amarillos — negro sobre amarillo, hover invierte a negro con letras amarillas */
.prevnext a { padding: clamp(28px, 4vw, 52px) var(--pad); background: var(--yellow); color: var(--ink); transition: background .3s, color .3s; }
.prevnext a .mono-label { color: rgba(25,25,25,.72); transition: color .3s; }
.prevnext a:hover { background: var(--ink); }
.prevnext a:hover .mono-label { color: var(--yellow); }
.prevnext a + a { border-left: 1px solid rgba(25,25,25,.28); text-align: right; }
.prevnext h4 { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.4vw, 30px); text-transform: uppercase; margin-top: 8px; color: var(--ink); transition: color .3s; }
.prevnext a:hover h4 { color: var(--yellow); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(25,25,25,.96);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; width: auto; height: auto; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); padding: 16px; transition: color .2s; z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--yellow); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--grey); }

/* ---------- about page ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.exp-list { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.exp-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.exp-item .n { font-family: var(--mono); color: var(--yellow); font-size: 13px; }
.exp-item p { color: #B7B7B9; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(36px, 5vw, 56px); }
.skill-col { background: var(--carbon); padding: clamp(24px, 3vw, 40px); }
.skill-col h3 { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; margin-bottom: 16px; }
.skill-col h3 span { color: var(--yellow); }
.skill-col li { list-style: none; color: var(--grey); padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.skill-col li:last-child { border-bottom: 0; }

/* ---------- contact: yellow board ---------- */
.contact-sec {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(25,25,25,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.07) 1px, transparent 1px),
    var(--yellow);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ink);
}
.contact-sec::before {
  content: ""; position: absolute; right: -160px; bottom: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(25,25,25,.14), transparent 65%);
  pointer-events: none;
}
.contact-sec .eyebrow { color: var(--ink); }
.contact-sec .eyebrow::before { background: var(--ink); }
.contact-sec .lead { color: rgba(25,25,25,.72); }
.contact-sec .lead strong { color: var(--ink); }
.contact-sec .mono-label { color: rgba(25,25,25,.6); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.contact-rows { border-top: 1.5px solid var(--ink); counter-reset: crow; }
.contact-row {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(20px, 3vw, 30px) 8px; border-bottom: 1.5px solid var(--ink);
  isolation: isolate; overflow: hidden;
}
.contact-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .35s cubic-bezier(.3,.7,.2,1);
}
.contact-row:hover::before { transform: translateY(0); }
.contact-row::after {
  counter-increment: crow; content: counter(crow, decimal-leading-zero);
  position: absolute; right: 14px; top: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: rgba(25,25,25,.55);
  transition: color .25s;
}
.contact-row b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 3vw, 38px); text-transform: uppercase; line-height: 1.1;
  color: var(--ink);
  transition: color .25s, transform .35s;
}
.contact-row .arr { color: var(--ink); font-size: 24px; transition: color .25s, transform .3s; }
.contact-row:hover b { color: var(--yellow); transform: translateX(10px); }
.contact-row:hover .mono-label, .contact-row:hover::after { color: rgba(255,196,0,.8); }
.contact-row:hover .arr { color: var(--yellow); transform: translate(4px, -4px); }
.contact-sec .btn--solid { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.contact-sec .btn--solid:hover { background: var(--carbon-2); }
.contact-sec .socials a { border-color: rgba(25,25,25,.4); color: var(--ink); }
.contact-sec .socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.contact-aside { position: relative; }
.contact-aside .avatar { max-width: 340px; margin-bottom: 8px; filter: drop-shadow(0 18px 34px rgba(25,25,25,.35)); }
.hours { border-top: 1.5px solid var(--ink); }
.hours li { list-style: none; display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(25,25,25,.35); color: rgba(25,25,25,.65); font-size: 14px; }
.hours li span:last-child { color: var(--ink); font-weight: 600; }

/* ---------- 360 panoramas ---------- */
.panos-sec { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.pano-stage {
  position: relative; width: 100%;
  height: min(70svh, 620px);
  background: var(--carbon); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
}
.pano-stage .pnlm-container { background: var(--carbon) !important; }
.pano-cta {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(25,25,25,.45); color: var(--bone);
  cursor: pointer; width: 100%;
}
.pano-cta .mono-label { color: var(--bone); }
.pano-cta .ring {
  width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--yellow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pano-label {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(25,25,25,.7); color: var(--yellow); padding: 9px 14px; border-radius: 999px;
}
.pano-thumbs {
  display: flex; gap: 10px; margin-top: 14px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.pano-thumbs::-webkit-scrollbar { display: none; }
.pano-thumb {
  flex: none; width: 132px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; padding: 0; position: relative;
  transition: border-color .25s, opacity .25s;
  opacity: .6;
}
.pano-thumb img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.pano-thumb.on, .pano-thumb:hover { border-color: var(--yellow); opacity: 1; }
.pano-thumb span {
  position: absolute; left: 6px; bottom: 5px; right: 6px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone); text-shadow: 0 1px 4px rgba(0,0,0,.9);
  text-align: left; line-height: 1.2;
}

/* ---------- 360 section: tablero amarillo (destaca sobre el fondo oscuro) ---------- */
.panos-sec--gold {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(25,25,25,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,.07) 1px, transparent 1px),
    var(--yellow);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--ink);
  border-top: 1px solid var(--yellow);
}
.panos-sec--gold .eyebrow { color: var(--ink); }
.panos-sec--gold .eyebrow::before { background: var(--ink); }
.panos-sec--gold .display { color: var(--ink); }
.panos-sec--gold .lead { color: rgba(25,25,25,.72); }
.panos-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 60px); margin-bottom: clamp(28px, 4vw, 48px); }
.panos-head-txt { max-width: 62ch; }
.panos-head-txt .display { margin: 12px 0 16px; }
.panos-head-txt .lead { max-width: 46ch; }
/* IRV_02 se "recarga" sobre el borde superior del visor 360 */
.panos-guide { position: relative; z-index: 2; width: clamp(130px, 15vw, 210px); align-self: flex-end; margin-bottom: clamp(-58px, -4vw, -28px); filter: drop-shadow(0 14px 26px rgba(25,25,25,.3)); flex: none; }
/* el visor 360 conserva su marco oscuro para que el render se lea bien sobre el amarillo */
.panos-sec--gold .pano-stage { border-color: rgba(25,25,25,.22); box-shadow: 0 26px 60px rgba(25,25,25,.28); }
.panos-sec--gold .pano-thumb.on, .panos-sec--gold .pano-thumb:hover { border-color: var(--ink); }
@media (max-width: 560px) { .panos-guide { display: none; } }

/* ---------- hero end-line: cierre contundente al final del scroll-scrub ---------- */
.hero-endline {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(34px, 8vh, 92px);
  z-index: 3; opacity: 0; pointer-events: none; transform: translateY(26px);
  transition: opacity .1s linear;
}
.hero-endline span {
  display: inline-block; font-family: var(--display); text-transform: uppercase;
  font-size: clamp(26px, 5vw, 66px); line-height: .95; letter-spacing: -.015em;
  color: var(--bone); max-width: 15ch;
  padding: 4px 0 4px 20px; border-left: 6px solid var(--yellow);
  text-shadow: 0 6px 44px rgba(0,0,0,.72);
}
.hero-endline b { color: var(--yellow); font-weight: inherit; }

/* ---------- contacto: sticker cómic ---------- */
.contact-aside .avatar--comic { max-width: 330px; margin-bottom: 8px; filter: drop-shadow(0 16px 30px rgba(25,25,25,.32)); }

/* ---------- hero: acciones + botón 360 ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-360-btn { padding-left: 14px; }
.hero-360-btn .ring360 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor;
  font-family: var(--mono); font-size: 10px; letter-spacing: .02em;
  transition: background .25s, color .25s;
}
.hero-360-btn:hover .ring360 { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
/* botón 360 reubicado en la sección "El espectro de diseño" */
.spec-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.spec-aside .lead { margin: 0; }

/* ---------- 360: leyenda de ayuda (amarilla) + botones de zoom ---------- */
#recorridos-360 { scroll-margin-top: 88px; }
.pano-hint {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  z-index: 6; max-width: min(90%, 580px); text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease; pointer-events: none;
}
.pano-hint.show { opacity: 1; visibility: visible; }
.pano-hint span {
  display: inline-block; background: rgba(25,25,25,.85); color: var(--yellow);
  border: 1px solid var(--yellow); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 16px; line-height: 1.35; backdrop-filter: blur(6px);
}
.pano-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: none; flex-direction: column; gap: 8px; }
.pano-zoom.show { display: flex; }
.pano-zoom-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(25,25,25,.72); border: 1px solid var(--yellow); color: var(--yellow);
  font-family: var(--display); font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .2s;
}
.pano-zoom-btn:hover { background: var(--yellow); color: var(--ink); }
.pano-zoom-btn:active { transform: scale(.92); }

/* ---------- avatar cartoons ---------- */
.approach-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.avatar { max-width: 300px; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
.avatar-tagline { text-align: center; margin-top: 14px; }
@media (max-width: 860px) { .approach-grid { grid-template-columns: 1fr; } .avatar { max-width: 220px; } }

/* ---------- animation base states (JS + motion only) ---------- */
.js.motion .reveal { opacity: 0; transform: translateY(28px); }
.js.motion .reveal-img img { transform: scale(1.12); opacity: 0; }
.js.motion .hero .hero-eyebrow,
.js.motion .hero h1 .line,
.js.motion .hero .hero-sub { opacity: 0; transform: translateY(40px); }
.js.motion .stat b { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .skills-grid { grid-template-columns: 1fr; }
  .proj-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: block; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .about-grid, .about-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a + a { border-left: 0; border-top: 1px solid rgba(25,25,25,.28); }
  .scroll-hint { display: none; }
}

/* ---------- phone: designed, not shrunk ---------- */
@media (max-width: 700px) {
  /* hero: full-width action, tighter type */
  .hero-sub { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-sub .btn { justify-content: center; width: 100%; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }

  /* categories: honeycomb becomes a 2-col tile grid */
  .hexwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hexrow { display: contents; }
  .hexrow + .hexrow { margin-top: 0; }
  .hex { width: 100%; aspect-ratio: auto; height: 118px; }
  .hex::before, .hex::after { display: none; }
  .hex-in {
    clip-path: none; border-radius: 16px; border: 1px solid var(--line);
    align-items: flex-start; justify-content: flex-end; text-align: left;
    padding: 14px; gap: 3px;
  }
  .hex-in img { opacity: .6 !important; filter: none !important; transform: none !important; }
  .hex-name { font-size: 13px; }
  .hex-scale { font-size: 10px; }
  .hex-count { display: block; font-size: 9px; }

  /* projects: honeycomb becomes a vertical card list (JS skips hex layout) */
  .honey { display: flex; flex-direction: column; gap: 12px; }
  .hexcard { position: relative; width: 100% !important; transform: none !important; aspect-ratio: auto; height: 190px; }
  .hexcard::before, .hexcard::after { display: none; }
  .hexcard .hex-in {
    clip-path: none; border-radius: 16px; border: 1px solid var(--line);
    align-items: flex-start; justify-content: flex-end; text-align: left;
    padding: 16px; gap: 3px;
  }
  .hexcard .hex-in img { opacity: .62 !important; filter: none !important; transform: none !important; }
  .hexcard .hex-name { font-size: 16px; }
  .hexcard .hex-count { display: block; font-size: 10px; color: var(--bone); }

  /* touch targets */
  .chip { padding: 12px 18px; }
  .filters-in { padding: 12px var(--pad); }

  /* nav: brush logo only, room for the language toggle */
  .brand-name { display: none; }
  .brand img { height: 30px; }

  /* prevent grid children from forcing horizontal overflow */
  .contact-grid > *, .about-grid > *, .about-hero-grid > * { min-width: 0; }
  .contact-row b { font-size: 17px; overflow-wrap: anywhere; }
  blockquote.quote { font-size: 19px; }

  /* featured bands: compact */
  .fband { height: 300px; }
  .fband .arrgo { width: 42px; height: 42px; font-size: 16px; }

  /* contact + about */
  .contact-aside .avatar { max-width: 230px; margin: 0 auto 8px; display: block; }
  .cutout img { width: min(78vw, 340px); }
  .exp-item { grid-template-columns: 40px 1fr; gap: 12px; }

  /* 360 viewer */
  .pano-stage { height: 46svh; border-radius: 16px; }
  .pano-thumb { width: 108px; }

  /* modal head */
  .pmodal-head h2 { font-size: 22px; }
  .pmodal-close { padding: 10px 14px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
