/* ==========================================================================
   Hardwired Productions — "SIGNAL & CIRCUIT" experience layer
   Loaded ONLY on the homepage (views/index.ejs).
   Concept: the page behaves like an electric signal traveling a circuit.
   Bold, editorial, asymmetric. Prefixed `exp-` to avoid clashing with
   the base style.css.
   ========================================================================== */

:root {
  --exp-bg: #07090c; /* carbón casi-negro con tinte frío */
  --exp-bg-2: #0d1318;
  --exp-surface: #11181d;
  --exp-line: rgba(255, 255, 255, 0.08);
  --exp-current: #00e5a0; /* "la corriente" — teal eléctrico, uso escaso */
  --exp-current-dim: #00c896;
  --exp-ink: #edefef; /* blanco hueso */
  --exp-muted: #5f6f6c;
  --exp-font-display: 'Bricolage Grotesque', sans-serif;
  --exp-font-mono: 'Space Mono', monospace;
  --exp-font-body: 'Space Grotesk', sans-serif;
}

/* --------------------------------------------------------------------------
   Lenis (smooth scroll) — required companion styles.
   CSS `scroll-behavior: smooth` MUST be disabled while Lenis is active or the
   two smoothing systems fight each other and scrolling feels broken/laggy.
   `has-lenis` is added by experience.js; the `lenis*` classes by the library.
   -------------------------------------------------------------------------- */
html.has-lenis,
html.lenis {
  scroll-behavior: auto !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Scope everything under .exp so other pages are untouched. */
.exp {
  background: var(--exp-bg);
  color: var(--exp-ink);
  font-family: var(--exp-font-body);
  overflow-x: clip; /* clip (no "hidden") para no romper position:sticky del navbar */
}

/* Normal arrow cursor, tinted in the brand teal, across the whole site
   (body carries the .exp class on every page). Hotspot at the tip (4,2). */
body.exp,
body.exp * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M5 3 L5 21 L10 16.5 L13 22.5 L16 21 L13 15 L19 15 Z' fill='%2300e5a0' stroke='%2307090c' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E")
      4 2,
    auto;
}

/* Text fields keep a natural caret. */
body.exp input,
body.exp textarea,
body.exp select {
  cursor: auto;
}

/* Touch / no-pointer devices keep the native cursor. */
@media (hover: none), (pointer: coarse) {
  body.exp,
  body.exp * {
    cursor: auto;
  }
}

/* --------------------------------------------------------------------------
   Preloader / ignition
   -------------------------------------------------------------------------- */
.exp-preloader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--exp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.exp-preloader.is-done {
  pointer-events: none;
}

/* Skip the ignition instantly when it already played this session. */
html.hw-skip-intro .exp-preloader {
  display: none !important;
}

.exp-preloader__mark {
  font-family: var(--exp-font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 9rem);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--exp-muted);
  position: relative;
}

.exp-preloader__mark span {
  position: absolute;
  inset: 0;
  color: var(--exp-current);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  text-shadow: 0 0 30px rgba(0, 229, 160, 0.7);
}

/* Logo-image variant: the dim mark "powers on" as progress fills. */
.exp-preloader__mark--logo {
  width: clamp(96px, 18vw, 160px);
  -webkit-text-stroke: 0;
}

.exp-preloader__mark--logo img {
  width: 100%;
  display: block;
}

.exp-preloader__logo-dim {
  opacity: 0.16;
  filter: grayscale(1);
}

.exp-preloader__mark--logo span {
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(0, 229, 160, 0.55));
}

.exp-preloader__bar {
  width: min(280px, 60vw);
  height: 2px;
  background: var(--exp-line);
  position: relative;
  overflow: hidden;
}

.exp-preloader__bar i {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--exp-current);
  box-shadow: 0 0 14px var(--exp-current);
}

.exp-preloader__pct {
  font-family: var(--exp-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--exp-muted);
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */
.exp-tag {
  font-family: var(--exp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--exp-current);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.exp-tag::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--exp-current);
}

.exp-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.exp-section {
  position: relative;
  padding: clamp(80px, 14vh, 200px) 0;
}

/* line "current" decorative separator between sections */
.exp-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--exp-line) 12%,
    var(--exp-line) 88%,
    transparent
  );
  position: relative;
}

.exp-rule::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--exp-current);
  box-shadow: 0 0 10px var(--exp-current);
  transform: translateY(-50%);
  animation: exp-trace 6s linear infinite;
}

@keyframes exp-trace {
  from {
    left: -60px;
  }
  to {
    left: 100%;
  }
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.exp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 8vh, 90px);
  overflow: hidden;
}

/* Festival photo slideshow behind the hero text (subtle crossfade). */
.exp-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.exp-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlides 21s infinite;
  will-change: opacity, transform;
}

.exp-hero__slide:nth-child(1) {
  animation-delay: 0s;
}
.exp-hero__slide:nth-child(2) {
  animation-delay: 7s;
}
.exp-hero__slide:nth-child(3) {
  animation-delay: 14s;
}

@keyframes heroSlides {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  4% {
    opacity: 0.5;
  }
  28% {
    opacity: 0.5;
    transform: scale(1.12);
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Darken the photos so the headline + circuit stay readable. */
.exp-hero__slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 9, 12, 0.5) 0%, rgba(7, 9, 12, 0.84) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .exp-hero__slide {
    animation: none;
  }
  .exp-hero__slide:nth-child(1) {
    opacity: 0.4;
  }
}

.exp-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
}

.exp-hero__glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 229, 160, 0.12), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.exp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.exp-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(24px, 5vh, 60px);
  flex-wrap: wrap;
  gap: 20px;
}

.exp-hero__sub {
  max-width: 360px;
  color: var(--exp-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.exp-hero__title {
  font-family: var(--exp-font-display);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 11.5rem);
  margin: 0;
}

.exp-hero__title .exp-line {
  display: block;
  overflow: hidden;
  white-space: nowrap; /* never break a word mid-line */
}

.exp-hero__title .exp-line:nth-child(2) {
  padding-left: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--exp-ink);
}

.exp-hero__title .exp-line:nth-child(3) {
  text-align: right;
  color: var(--exp-current);
  text-shadow: 0 0 60px rgba(0, 229, 160, 0.35);
}

.exp-hero__title .exp-char {
  display: inline-block;
  transform: translateY(110%);
}

.exp-hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(28px, 6vh, 70px);
  flex-wrap: wrap;
  gap: 24px;
}

.exp-scroll-hint {
  font-family: var(--exp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--exp-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-scroll-hint i {
  display: inline-block;
  width: 1px;
  height: 40px;
  background: var(--exp-line);
  position: relative;
  overflow: hidden;
}

.exp-scroll-hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--exp-current);
  animation: exp-scroll-dot 2s ease-in-out infinite;
}

@keyframes exp-scroll-dot {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Magnetic CTA button */
.exp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 34px;
  border: 1px solid var(--exp-current);
  color: var(--exp-ink);
  font-family: var(--exp-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: transparent;
  overflow: hidden;
  transition: color 0.4s ease;
}

.exp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--exp-current);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: -1;
}

.exp-btn:hover {
  color: var(--exp-bg);
}

.exp-btn:hover::before {
  transform: translateY(0);
}

.exp-btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--exp-current);
  box-shadow: 0 0 10px var(--exp-current);
}

.exp-btn:hover .exp-btn__dot {
  background: var(--exp-bg);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Data-stream marquee (clients)
   -------------------------------------------------------------------------- */
.exp-stream {
  border-top: 1px solid var(--exp-line);
  border-bottom: 1px solid var(--exp-line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--exp-bg-2);
}

.exp-stream__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: exp-stream 30s linear infinite;
  will-change: transform;
}

.exp-stream__item {
  font-family: var(--exp-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--exp-ink);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.exp-stream__item:hover {
  opacity: 1;
  color: var(--exp-current);
}

.exp-stream__sep {
  color: var(--exp-current);
  font-family: var(--exp-font-mono);
  opacity: 0.7;
}

@keyframes exp-stream {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Manifesto (Plug Into Perfection)
   -------------------------------------------------------------------------- */
.exp-manifesto__text {
  font-family: var(--exp-font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.exp-manifesto__text b {
  color: var(--exp-current);
  font-weight: 700;
}

.exp-manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-top: clamp(40px, 7vh, 80px);
}

.exp-manifesto__body p {
  color: var(--exp-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.exp-reveal-word {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.4s ease;
}

/* --------------------------------------------------------------------------
   Services — interactive patch bay
   -------------------------------------------------------------------------- */
.exp-services__list {
  margin-top: clamp(30px, 6vh, 70px);
  border-top: 1px solid var(--exp-line);
}

.exp-service {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--exp-line);
  text-decoration: none;
  color: var(--exp-ink);
  overflow: hidden;
}

.exp-service__index {
  font-family: var(--exp-font-mono);
  font-size: 0.85rem;
  color: var(--exp-current);
  width: 60px;
  flex-shrink: 0;
}

/* Visible thumbnail on each service row */
.exp-service__thumb {
  width: 110px;
  height: 70px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--exp-surface);
  border: 1px solid var(--exp-line);
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.5s ease, opacity 0.5s ease, border-color 0.5s ease;
}

.exp-service:hover .exp-service__thumb {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--exp-current);
}

@media (max-width: 760px) {
  .exp-service__thumb {
    display: none;
  }
}

.exp-service__name {
  font-family: var(--exp-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  flex: 1;
}

.exp-service:hover .exp-service__name {
  transform: translateX(28px);
  color: var(--exp-current);
}

.exp-service__arrow {
  font-family: var(--exp-font-mono);
  color: var(--exp-muted);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}

.exp-service:hover .exp-service__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--exp-current);
}

/* floating image preview that follows the cursor */
.exp-service__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--exp-surface);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  clip-path: inset(0 0 0 0);
  border: 1px solid var(--exp-line);
}

.exp-service__preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --------------------------------------------------------------------------
   Rentals — asymmetric editorial grid
   -------------------------------------------------------------------------- */
.exp-rentals__grid {
  margin-top: clamp(30px, 6vh, 70px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.exp-rental {
  position: relative;
  text-decoration: none;
  color: var(--exp-ink);
  border: 1px solid var(--exp-line);
  background: var(--exp-surface);
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}

.exp-rental:hover {
  border-color: var(--exp-current);
  transform: translateY(-6px);
}

/* Photo-backed rental cards (homepage grid) */
.exp-rental--photo {
  background-size: cover;
  background-position: center;
  background-color: var(--exp-surface);
}

.exp-rental--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.45) 0%, rgba(7, 9, 12, 0.9) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.exp-rental--photo:hover::after {
  background: linear-gradient(180deg, rgba(0, 60, 45, 0.4) 0%, rgba(7, 9, 12, 0.88) 100%);
}

.exp-rental > * {
  position: relative;
  z-index: 2;
}

.exp-rental::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 160, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.exp-rental:hover::before {
  opacity: 1;
}

/* size variants for the broken grid */
.exp-rental--lg {
  grid-column: span 7;
  min-height: 360px;
}
.exp-rental--sm {
  grid-column: span 5;
}
.exp-rental--md {
  grid-column: span 4;
}
.exp-rental--wide {
  grid-column: span 8;
}

.exp-rental__num {
  font-family: var(--exp-font-mono);
  font-size: 0.8rem;
  color: var(--exp-current);
}

.exp-rental__name {
  font-family: var(--exp-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}

.exp-rental__desc {
  color: var(--exp-muted);
  font-size: 0.88rem;
  margin-top: 8px;
  max-width: 36ch;
}

/* --------------------------------------------------------------------------
   Featured work — horizontal pinned scroll
   -------------------------------------------------------------------------- */
.exp-work {
  overflow: hidden;
}

.exp-work__track {
  display: flex;
  gap: 28px;
  padding: clamp(30px, 6vh, 60px) clamp(20px, 5vw, 80px);
  width: max-content;
}

.exp-work__card {
  position: relative;
  width: clamp(280px, 42vw, 560px);
  height: clamp(340px, 58vh, 620px);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--exp-surface);
  border: 1px solid var(--exp-line);
  overflow: hidden;
  text-decoration: none;
  color: var(--exp-ink);
  display: flex;
  align-items: flex-end;
}

.exp-work__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 12, 0.95), transparent 55%);
}

.exp-work__meta {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.exp-work__cat {
  font-family: var(--exp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--exp-current);
}

.exp-work__title {
  font-family: var(--exp-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 6px;
}

/* On mobile/tablet the GSAP horizontal pin is disabled, so make the track a
   native touch-swipeable carousel instead (was stuck/unscrollable before). */
@media (max-width: 900px) {
  .exp-work {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .exp-work__track {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .exp-work__card {
    scroll-snap-align: start;
    width: 78vw;
    height: 60vh;
  }
}

/* --------------------------------------------------------------------------
   Stats — VU meters
   -------------------------------------------------------------------------- */
.exp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(30px, 6vh, 60px);
}

.exp-stat__num {
  font-family: var(--exp-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--exp-ink);
}

.exp-stat__num b {
  color: var(--exp-current);
}

.exp-stat__label {
  font-family: var(--exp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--exp-muted);
  margin-top: 10px;
}

.exp-stat__meter {
  display: flex;
  gap: 3px;
  margin-top: 16px;
  height: 8px;
}

.exp-stat__meter span {
  flex: 1;
  background: var(--exp-line);
  transform: scaleY(0.4);
  transform-origin: bottom;
}

.exp-stat__meter span.on {
  background: var(--exp-current);
  transform: scaleY(1);
  box-shadow: 0 0 8px rgba(0, 229, 160, 0.5);
}

/* --------------------------------------------------------------------------
   CTA / connect
   -------------------------------------------------------------------------- */
.exp-cta {
  text-align: center;
  position: relative;
}

.exp-cta__title {
  font-family: var(--exp-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 11rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.85;
}

.exp-cta__title b {
  color: var(--exp-current);
}

.exp-cta__row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Reduced motion: calm fallback
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .exp *,
  .exp *::before,
  .exp *::after {
    animation: none !important;
    transition: none !important;
  }
  .exp-hero__title .exp-char {
    transform: none;
  }
  .exp-reveal-word {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .exp-manifesto__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .exp-rental--lg,
  .exp-rental--sm,
  .exp-rental--md,
  .exp-rental--wide {
    grid-column: span 12;
    min-height: 240px;
  }
  .exp-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .exp-service__index {
    width: 36px;
  }
}

@media (max-width: 540px) {
  .exp-stats {
    grid-template-columns: 1fr;
  }
  .exp-hero__title .exp-line:nth-child(3) {
    text-align: left;
  }
}

/* ==========================================================================
   GLOBAL SKIN — Signal & Circuit identity on EVERY page.
   `body.exp` remaps the base theme variables (style.css), so all existing
   components (navbar, footer, forms, cards, filters, stats, timeline…)
   automatically adopt the experience palette and typography.
   ========================================================================== */
body.exp {
  --color-primary: var(--exp-current);
  --color-primary-dark: var(--exp-current-dim);
  --color-bg-dark: var(--exp-bg);
  --color-bg-medium: var(--exp-bg-2);
  --color-text-white: var(--exp-ink);
  --color-text-gray: #9aa7a3;
  --color-border: var(--exp-line);
  --font-heading: var(--exp-font-display);
  --font-body: var(--exp-font-body);
  background: var(--exp-bg);
  color: var(--exp-ink);
}

/* Tight display tracking (low specificity so component classes still win). */
:where(body.exp) h1,
:where(body.exp) h2,
:where(body.exp) h3,
:where(body.exp) h4,
:where(body.exp) h5 {
  letter-spacing: -0.02em;
}

/* The "///" separators become mono data-labels. */
body.exp .separator {
  font-family: var(--exp-font-mono);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

/* Light sections go dark for full cohesion. */
body.exp .section--light {
  background: var(--exp-bg-2);
  color: var(--exp-ink);
}

body.exp .section--light .item-card {
  background: var(--exp-surface);
  border-color: var(--exp-line);
}

body.exp .section--light .item-card__title {
  color: var(--exp-ink);
}

body.exp .section--light .item-card__desc,
body.exp .intro-block p {
  color: #9aa7a3;
}

body.exp .prose h2 {
  color: var(--exp-ink);
}

body.exp .prose p {
  color: #9aa7a3;
}

/* Cards on dark sections pick up the surface tone. */
body.exp .item-card {
  background: var(--exp-surface);
}

/* Buttons: mono, technical, square — same language as the home CTAs. */
body.exp .btn {
  font-family: var(--exp-font-mono);
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  border-radius: 0;
}

body.exp .btn--primary {
  background: transparent;
  border: 1px solid var(--exp-current);
  color: var(--exp-ink);
}

body.exp .btn--primary:hover {
  background: var(--exp-current);
  color: var(--exp-bg);
  transform: none;
}

body.exp .btn--quote {
  background: transparent;
  border: 1px solid var(--exp-current);
}

body.exp .btn--quote:hover {
  background: var(--exp-current);
  color: var(--exp-bg);
}

/* CTA strip: from flat teal block to charged dark panel. */
body.exp .cta-strip {
  background: var(--exp-bg-2);
  color: var(--exp-ink);
  border-top: 1px solid var(--exp-line);
  border-bottom: 1px solid var(--exp-line);
}

body.exp .cta-strip h2 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  letter-spacing: -0.03em;
}

body.exp .cta-strip .btn--outline {
  border: 1px solid var(--exp-current);
  color: var(--exp-ink);
}

body.exp .cta-strip .btn--outline:hover {
  background: var(--exp-current);
  border-color: var(--exp-current);
  color: var(--exp-bg);
}

/* Topbar — clean, simple Roboto (Google-style). */
body.exp .topbar {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Internal page hero — giant editorial title + mono breadcrumb
   -------------------------------------------------------------------------- */
.exp-page-hero {
  position: relative;
  padding: clamp(80px, 14vh, 170px) 0 clamp(34px, 6vh, 64px);
  background: var(--exp-bg);
  overflow: hidden;
}

.exp-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: grayscale(1);
}

.exp-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--exp-bg) 5%, transparent 80%);
  pointer-events: none;
}

.exp-page-hero__inner {
  position: relative;
  z-index: 2;
}

.exp-page-hero__crumb a {
  color: inherit;
  text-decoration: none;
}

.exp-page-hero__crumb a:hover {
  text-decoration: underline;
}

.exp-page-hero__title {
  font-family: var(--exp-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-top: 22px;
}

.exp-page-hero__rule {
  position: relative;
  z-index: 2;
  margin-top: clamp(30px, 5vh, 50px);
}

/* ==========================================================================
   PORTFOLIO ALBUMS — gallery + lightbox
   ========================================================================== */
.portfolio-item__view {
  display: block;
  font-family: var(--exp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--exp-current);
  margin-top: 6px;
}

.album-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.album-desc {
  color: var(--exp-muted);
  margin-top: 12px;
  max-width: 52ch;
}

.album-gallery {
  margin-top: clamp(30px, 5vh, 50px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.album-shot {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--exp-surface);
  border: 1px solid var(--exp-line);
  cursor: pointer;
  padding: 0;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.album-shot:hover {
  transform: scale(1.02);
  border-color: var(--exp-current);
}

/* "Next project" banner */
.album-next {
  display: block;
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.album-next::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 9, 12, 0.72), rgba(7, 9, 12, 0.88));
}

.album-next__inner {
  position: relative;
  z-index: 2;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.album-next__title {
  font-family: var(--exp-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.album-next:hover .album-next__title {
  color: var(--exp-current);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(5, 7, 9, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 22px;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lightbox__nav:hover {
  opacity: 1;
  color: var(--exp-current);
}

.lightbox__nav--prev {
  left: 6px;
}

.lightbox__nav--next {
  right: 6px;
}

@media (max-width: 600px) {
  .lightbox__nav {
    font-size: 2.2rem;
    padding: 0 12px;
  }
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.career-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--exp-surface);
  border: 1px solid var(--exp-line);
  padding: 24px 28px;
  transition: border-color 0.3s ease;
}

.career-card:hover {
  border-color: var(--exp-current);
}

.career-card__title {
  color: var(--exp-ink);
  font-family: var(--exp-font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.career-card__desc {
  color: var(--exp-muted);
  margin-top: 4px;
  max-width: 52ch;
}

.career-card__side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.career-card__type {
  font-family: var(--exp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--exp-current);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .career-card__side {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   BLOG / NEWS
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--exp-surface);
  border: 1px solid var(--exp-line);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--exp-current);
}

.blog-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--exp-bg-2);
}

.blog-card__body {
  padding: 22px 24px 26px;
}

.blog-card__date {
  font-family: var(--exp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--exp-current);
}

.blog-card__title {
  color: var(--exp-ink);
  font-family: var(--exp-font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
}

.blog-card__excerpt {
  color: var(--exp-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

/* =========================================================================
   Mensajes rotativos del hero (slides 2 y 3 del sitio viejo) y titular
   "PLUG INTO PERFECTION". Se apoyan en el MISMO ciclo de 21s que ya usaba el
   crossfade de fotos de fondo (.exp-hero__slide), con los mismos retardos, así
   el texto cambia junto con la imagen. Grid apilado: todos los mensajes ocupan
   la misma celda, sin position:absolute ni saltos de layout.
   ========================================================================= */
.hw-rot {
  display: grid;
}

.hw-rot > * {
  grid-area: 1 / 1;
  opacity: 0;
  animation: hwRotText 21s infinite;
}

.hw-rot > *:nth-child(1) { animation-delay: 0s; }
.hw-rot > *:nth-child(2) { animation-delay: 7s; }
.hw-rot > *:nth-child(3) { animation-delay: 14s; }

@keyframes hwRotText {
  0%   { opacity: 0; transform: translateY(10px); }
  3%   { opacity: 1; transform: none; }
  30%  { opacity: 1; transform: none; }
  33%  { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* El CTA que acompaña a cada mensaje: alineado con el botón fijo del hero. */
.hw-rot--cta {
  align-items: center;
}

.hw-rot--cta > * {
  white-space: nowrap;
}

/* Si el visitante pidió menos movimiento, se muestra solo el primer mensaje. */
@media (prefers-reduced-motion: reduce) {
  .hw-rot > * { animation: none; }
  .hw-rot > *:nth-child(1) { opacity: 1; }
  .hw-rot > *:nth-child(n + 2) { display: none; }
}

/* Titular institucional: mismo tamaño que el del hero pero sin ocupar toda la
   pantalla, porque va dentro de una sección de contenido. */
.hw-plug {
  margin: 24px 0 8px;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
}

/* Tira de destacados de las páginas de servicio (partials/highlights.ejs). */
.hw-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 34px;
  justify-content: center;
}

.hw-highlight {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
}

.section--light .hw-highlight {
  border-color: rgba(0, 0, 0, 0.15);
}

/* Selector de categorías de rentals (partials/rental-tabs.ejs). */
.hw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 34px;
  justify-content: center;
}

.hw-tab {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hw-tab:hover {
  border-color: var(--color-primary);
}

.hw-tab.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #000;
}

/* Fecha y venue del portfolio (estaban en el sitio viejo y se habían perdido). */
.portfolio-item__date,
.portfolio-item__venue {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.portfolio-item__venue {
  opacity: 0.7;
}

.album-date {
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.album-venue {
  opacity: 0.75;
  margin-top: 2px;
}

.album-credits {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.album-credits + .btn {
  margin-top: 10px;
}

/* =========================================================================
   Chatbot del sitio (views/partials/chatbot.ejs). Solo aparece si está
   encendido en /hwpanel/integrations y hay clave de Claude cargada.
   ========================================================================= */
.hw-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  font-size: 0.92rem;
}

.hw-chat__toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #000;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hw-chat__panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(360px, calc(100vw - 40px));
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.hw-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hw-chat__head button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.hw-chat__log {
  max-height: 340px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-chat__msg {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  max-width: 88%;
  white-space: pre-wrap;
}

.hw-chat__msg--bot {
  background: rgba(255, 255, 255, 0.08);
  align-self: flex-start;
}

.hw-chat__msg--user {
  background: var(--color-primary);
  color: #000;
  align-self: flex-end;
}

.hw-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hw-chat__form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.hw-chat__form button {
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--color-primary);
  color: #000;
  cursor: pointer;
}

.hw-chat__pie {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.72rem;
  opacity: 0.6;
}
