/* ════════════════════════════════════════════════════
   wena studio — página blanca, letras que se iluminan
   ════════════════════════════════════════════════════ */

:root {
  --white: #ffffff;
  --ink: #1d1d1f;
  --gray: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);

  /* espectro estilo Apple */
  --spectrum: linear-gradient(
    95deg,
    #0a84ff 0%,
    #30d158 22%,
    #ffd60a 42%,
    #ff9f0a 56%,
    #ff375f 74%,
    #bf5af2 92%,
    #0a84ff 100%
  );

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(10, 132, 255, 0.18); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes hueflow {
  to { filter: hue-rotate(360deg); }
}

/* ── color ambiental ────────────────────────────── */
/* la página sigue siendo blanca, pero respira color:
   manchas espectrales difusas derivando muy lento detrás de todo */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.au {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.au-1 {
  top: -14vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.16), transparent 65%);
  animation: drift1 46s ease-in-out infinite alternate;
}

.au-2 {
  right: -14vmax;
  top: 24%;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.14), transparent 65%);
  animation: drift2 58s ease-in-out infinite alternate;
}

.au-3 {
  left: 18%;
  bottom: -18vmax;
  background: radial-gradient(circle, rgba(255, 159, 10, 0.13), transparent 65%);
  animation: drift3 52s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to { transform: translate(28vw, 22vh) scale(1.25); }
}
@keyframes drift2 {
  to { transform: translate(-24vw, -14vh) scale(0.85); }
}
@keyframes drift3 {
  to { transform: translate(20vw, -20vh) scale(1.2); }
}

/* luz espectral que sigue el cursor (solo desktop) */
.cursor-glow {
  position: fixed;
  z-index: -1;
  top: -280px;
  left: -280px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.12), rgba(191, 90, 242, 0.06) 45%, transparent 68%);
  pointer-events: none;
  opacity: 0;
  animation: hueflow 9s linear infinite;
  will-change: transform;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* progreso del viaje: hilo espectral arriba */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  background: var(--spectrum);
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left;
  animation: hueflow 10s linear infinite;
}

/* ── header ─────────────────────────────────────── */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 34px;
  font-size: 14px;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.site-head a { pointer-events: auto; }

.brand {
  font-weight: 640;
  letter-spacing: -0.03em;
}

.brand-dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin: 0 0.12em;
  border-radius: 50%;
  background: linear-gradient(120deg, #0a84ff, #bf5af2, #ff375f);
  animation: hueflow 10s linear infinite;
}

.head-mail {
  color: var(--gray);
  transition: color 0.25s ease;
}
.head-mail:hover { color: var(--ink); }

/* ── ACTO 1 · la frase ──────────────────────────── */

#act-phrase {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* transparente: deja ver la aurora de fondo */
}

.phrase {
  text-align: center;
  font-weight: 650;
  font-size: clamp(44px, 9.2vw, 152px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  animation: hueflow 14s linear infinite;
}

.line { display: block; }

/* con JS activo la frase parte oculta (evita el flash antes de
   que GSAP tome control); main.js la revela letra por letra */
.js .phrase { visibility: hidden; }

.word {
  display: inline-block;
  white-space: nowrap;
  background-image: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* el degradado solo pinta dentro de la caja del elemento:
     sin este respiro, ascendentes y descendentes salen cortados */
  padding: 0.18em 0.08em;
  margin: -0.18em -0.08em;
}

/* al dividir en letras, el degradado vive en cada .ch */
.word.is-split { background-image: none; }

.ch {
  display: inline-block;
  background-image: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.18em 0.08em;
  margin: -0.18em -0.08em;
  will-change: opacity, transform, filter;
}

.hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.02em;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hint-arrow {
  display: inline-block;
  background-image: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hintfloat 1.6s ease-in-out infinite, hueflow 8s linear infinite;
}

@keyframes hintfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── ACTO 2 · la pantalla ───────────────────────── */

#act-screen {
  min-height: 100vh;
  position: relative;
  overflow: clip;
}

.menu-bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  font-size: 12.5px;
  color: #3a3a3c;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.mb-logo {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: conic-gradient(#0a84ff, #30d158, #ffd60a, #ff9f0a, #ff375f, #bf5af2, #0a84ff);
  animation: hueflow 10s linear infinite;
}

.mb-strong { font-weight: 640; }

.mb-right {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.screen-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  position: relative;
}

.win-glow {
  position: absolute;
  width: min(80vw, 1220px);
  aspect-ratio: 16 / 10;
  max-height: 76vh;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.14), transparent 70%);
  transform: translateY(5%) scale(1.12);
  filter: blur(10px);
}

.mac-window {
  position: relative;
  width: min(78vw, 1160px);
  aspect-ratio: 16 / 10;
  max-height: 74vh;
  border-radius: 14px;
  background: #f6f6f7;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.16),
    0 2px 10px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
  /* las medidas internas de los mockups escalan con el viewport */
  font-size: clamp(7px, 0.82vw, 11.5px);
}

.win-chrome {
  flex: none;
  background: rgba(246, 246, 247, 0.96);
  border-bottom: 1px solid var(--hairline);
}

.win-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px 7px;
}

.traffic { display: flex; gap: 7px; }

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.nav-arrows {
  display: flex;
  gap: 14px;
  font-size: 17px;
  color: #6e6e73;
  line-height: 1;
}
.nav-arrows .dim { opacity: 0.35; }

.url-bar {
  position: relative;
  flex: 1;
  max-width: 46%;
  margin: 0 auto;
  height: 26px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.055);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #3a3a3c;
  overflow: hidden;
}

.lock { color: #86868b; flex: none; }

.urls {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 90px;
  justify-content: center;
}

.url {
  position: absolute;
  white-space: nowrap;
}
.url-2, .url-3 { opacity: 0; }

.loadbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #0a84ff;
  transform: scaleX(0);
  transform-origin: left;
}

.win-actions {
  font-size: 17px;
  color: #6e6e73;
  line-height: 1;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
  overflow: hidden;
}

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 150px;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.045);
  font-size: 11.5px;
  color: #48484a;
  white-space: nowrap;
  overflow: hidden;
}

.tab span { overflow: hidden; text-overflow: ellipsis; }

.fav {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.fav-1 { background: linear-gradient(135deg, #c9a24b, #100b0a); }
.fav-2 { background: linear-gradient(135deg, #d62f27, #f2b705); }
.fav-3 { background: linear-gradient(135deg, #f5c33b, #e2542c); }
.fav-4 { background: linear-gradient(135deg, #17546b, #ff6b4a); }
.fav-5 { background: linear-gradient(135deg, #7c5cff, #0b0c10); }
.fav-6 { background: linear-gradient(135deg, #b0552f, #f2ede3); }

.win-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

.site {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── proyectos reales · capturas de las webs ────── */
/* EOS y Los Rickys se muestran tal cual son: screenshots
   reales de los sitios corriendo; el segundo cuadro se
   desliza como si alguien navegara la página */

.site-eos { background: #100b0a; }
.site-rickys { background: #0d0d0d; visibility: hidden; }
.site-koko { background: #161010; visibility: hidden; }

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.shot-b { visibility: hidden; }

/* ── mockup concepto · Ondamar (restaurante) ────── */

.site-ondamar {
  background:
    radial-gradient(120% 90% at 85% 10%, #1d6a85 0%, transparent 55%),
    linear-gradient(160deg, #0c2b36 0%, #14485c 100%);
  color: #f6efe3;
  display: flex;
  flex-direction: column;
  padding: 2.4em 3.2em;
  visibility: hidden;
}

.om-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15em;
}

.om-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5em;
}

.om-links { display: flex; gap: 2.2em; opacity: 0.8; }
.om-links i { font-style: normal; }

.om-cta {
  background: #ff6b4a;
  color: #2a130c;
  font-weight: 600;
  padding: 0.55em 1.4em;
  border-radius: 10em;
}

.om-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.om-kicker {
  font-size: 1.1em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 1.2em;
}

.om-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 420;
  font-size: 5.6em;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.om-cards {
  display: flex;
  gap: 1.4em;
  z-index: 1;
}

.om-card {
  flex: 1;
  border-radius: 1.2em;
  padding: 4.6em 1.4em 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: 1.2em;
}
.om-card b { font-weight: 600; }
.om-card i { font-style: normal; opacity: 0.75; font-size: 0.9em; }

.om-c1 { background: linear-gradient(160deg, #ff6b4a, #b23a20); color: #fff4ee; }
.om-c2 { background: linear-gradient(160deg, #1d6a85, #0e3241); }
.om-c3 { background: linear-gradient(160deg, #f6efe3, #d8c8a8); color: #2c2417; }

.om-sun {
  position: absolute;
  right: -6em;
  top: 16%;
  width: 24em;
  height: 24em;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffb347, #ff6b4a 65%, transparent 72%);
  opacity: 0.85;
  filter: blur(2px);
}

/* ── mockup 2 · Klaro (fintech) ─────────────────── */

.site-klaro {
  background: #0b0c10;
  color: #f2f3f7;
  display: flex;
  /* oculto hasta que GSAP lo posiciona; con movimiento
     reducido o sin JS solo se muestra el primer proyecto */
  visibility: hidden;
}

.kl-side {
  flex: none;
  width: 6em;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding: 2.2em 0;
}

.kl-logo {
  width: 3em;
  height: 3em;
  border-radius: 0.9em;
  background: linear-gradient(135deg, #7c5cff, #4a2fd6);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 1em;
}

.kl-ic {
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.35em;
  background: rgba(255, 255, 255, 0.16);
}
.kl-ic.on { background: #7c5cff; }

.kl-main {
  flex: 1;
  padding: 2.6em 3.4em;
  display: flex;
  flex-direction: column;
}

.kl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25em;
}

.kl-hola { font-weight: 600; }

.kl-pill {
  font-size: 0.75em;
  padding: 0.5em 1.1em;
  border-radius: 10em;
  background: rgba(124, 92, 255, 0.16);
  color: #b6a3ff;
}

.kl-balance { margin: 2.4em 0 2.6em; }
.kl-balance small { color: #8e8e99; font-size: 1.05em; display: block; }
.kl-balance b {
  font-size: 4.6em;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: block;
  font-variant-numeric: tabular-nums;
}
.kl-balance em {
  font-style: normal;
  color: #30d158;
  font-size: 1.1em;
}

.kl-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.6em;
  min-height: 0;
}

.kl-chart {
  border-radius: 1.4em;
  background: #14151c;
  padding: 1.6em;
  display: flex;
  flex-direction: column;
}
.kl-chart small { color: #8e8e99; font-size: 1em; }

.kl-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.8em;
  padding-top: 1.2em;
}

.kl-bars i {
  flex: 1;
  border-radius: 0.4em 0.4em 0 0;
  background: linear-gradient(180deg, #7c5cff, #4a2fd6);
  transform-origin: bottom;
}
.kl-bars i:nth-child(1)  { height: 34%; opacity: .5; }
.kl-bars i:nth-child(2)  { height: 52%; opacity: .5; }
.kl-bars i:nth-child(3)  { height: 41%; opacity: .6; }
.kl-bars i:nth-child(4)  { height: 66%; opacity: .6; }
.kl-bars i:nth-child(5)  { height: 48%; opacity: .7; }
.kl-bars i:nth-child(6)  { height: 74%; opacity: .7; }
.kl-bars i:nth-child(7)  { height: 58%; opacity: .8; }
.kl-bars i:nth-child(8)  { height: 82%; opacity: .8; }
.kl-bars i:nth-child(9)  { height: 63%; opacity: .9; }
.kl-bars i:nth-child(10) { height: 90%; opacity: .9; }
.kl-bars i:nth-child(11) { height: 71%; }
.kl-bars i:nth-child(12) { height: 100%; }

.kl-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  min-height: 0;
}

.kl-card {
  flex: 1;
  border-radius: 1.4em;
  background: linear-gradient(135deg, #7c5cff, #38227f);
  padding: 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kl-card span { font-size: 1em; opacity: 0.8; }
.kl-card b { font-size: 1.6em; letter-spacing: 0.08em; }

.kl-goal {
  flex: 1;
  border-radius: 1.4em;
  background: #14151c;
  padding: 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kl-goal span { font-size: 1em; color: #8e8e99; }
.kl-goal b { font-size: 1.4em; }

.kl-track {
  display: block;
  height: 0.6em;
  border-radius: 10em;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.kl-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c5cff, #b6a3ff);
  transform-origin: left;
}

/* ── mockup 3 · RUDA (moda) ─────────────────────── */

.site-ruda {
  background: #f2ede3;
  color: #16130e;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.rd-strip {
  display: flex;
  justify-content: space-between;
  padding: 1.2em 2.6em;
  font-size: 1em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(22, 19, 14, 0.14);
}

.rd-mast {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 11em;
  line-height: 0.94;
  text-align: center;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(22, 19, 14, 0.14);
}

.rd-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 0;
}

.rd-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(22, 19, 14, 0.14);
  padding: 1.4em;
  gap: 1em;
  min-height: 0;
}
.rd-item:last-child { border-right: none; }

.rd-item i {
  flex: 1;
  border-radius: 0.4em;
  min-height: 0;
}
.rd-i1 i { background: linear-gradient(160deg, #b0552f, #7a3a20); }
.rd-i2 i { background: linear-gradient(160deg, #8a8f6a, #5c6046); }
.rd-i3 i { background: linear-gradient(160deg, #ddd3bd, #b8ab8e); }
.rd-i4 i { background: linear-gradient(160deg, #4b4740, #2b2823); }

.rd-item figcaption {
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
.rd-item b { font-weight: 500; opacity: 0.7; }

/* ── ACTO 3 · secciones normales ────────────────── */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22vh 34px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 34px;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 46px;
  height: 2px;
  margin-left: 14px;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--spectrum);
  background-size: 300% 100%;
  animation: hueflow 10s linear infinite;
}

.lit, .cta-lit {
  font-style: normal;
  display: inline-block;
  background-image: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0.14em 0.06em;
  margin: -0.14em -0.06em;
  animation: hueflow 12s linear infinite;
}

.mani {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 21em;
}

/* servicios */

.rows { list-style: none; }

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid var(--hairline);
}
.row:last-child { border-bottom: 1px solid var(--hairline); }

.row-title {
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.05;
  transition: opacity 0.2s ease;
}

.row:hover .row-title {
  background-image: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueflow 8s linear infinite;
}

.row p {
  color: var(--gray);
  max-width: 34ch;
  text-align: right;
  font-size: 15px;
}

/* trabajos */

.works {
  list-style: none;
  display: grid;
  gap: 90px;
}

.work {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: end;
}

.thumb {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  padding: 2em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 50px rgba(0, 0, 0, 0.1);
  font-size: clamp(6px, 0.7vw, 10px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work:hover .thumb { transform: translateY(-6px) scale(1.015); }

.thumb-eos {
  background: url(../img/eos-1.jpg) center top / cover no-repeat #100b0a;
}

.thumb-rickys {
  background: url(../img/rickys-1.jpg) center top / cover no-repeat #0d0d0d;
}

.thumb-koko {
  background: url(../img/koko-1.jpg) center top / cover no-repeat #161010;
}

.thumb-ondamar {
  background:
    radial-gradient(120% 90% at 85% 10%, #1d6a85 0%, transparent 55%),
    linear-gradient(160deg, #0c2b36 0%, #14485c 100%);
  color: #f6efe3;
}
.thumb-ondamar b {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2em;
  display: block;
}
.thumb-ondamar span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.6em;
  line-height: 1.05;
  display: block;
  margin-top: 1.6em;
}

.thumb-klaro { background: #0b0c10; color: #f2f3f7; }
.thumb-klaro b {
  display: inline-grid;
  place-items: center;
  width: 3em;
  height: 3em;
  border-radius: 0.9em;
  background: linear-gradient(135deg, #7c5cff, #4a2fd6);
  font-size: 1.6em;
}
.thumb-klaro span {
  display: block;
  font-size: 5.4em;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-top: 1em;
  font-variant-numeric: tabular-nums;
}
.thumb-klaro i {
  position: absolute;
  bottom: 0;
  width: 7%;
  border-radius: 0.6em 0.6em 0 0;
  background: linear-gradient(180deg, #7c5cff, #4a2fd6);
}
.thumb-klaro i:nth-of-type(1) { left: 56%; height: 22%; opacity: .55; }
.thumb-klaro i:nth-of-type(2) { left: 65%; height: 34%; opacity: .7; }
.thumb-klaro i:nth-of-type(3) { left: 74%; height: 27%; opacity: .8; }
.thumb-klaro i:nth-of-type(4) { left: 83%; height: 44%; opacity: .9; }
.thumb-klaro i:nth-of-type(5) { left: 92%; height: 56%; }

.thumb-ruda {
  background: #f2ede3;
  color: #16130e;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.thumb-ruda b {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: 9em;
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.04em;
}
.thumb-ruda span {
  font-size: 1.4em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.work-meta h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 640;
  letter-spacing: -0.03em;
}
.work-meta p {
  color: var(--gray);
  margin-top: 10px;
  font-size: 15px;
}
.work-meta span {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--gray);
  border: 1px solid var(--hairline);
  border-radius: 10em;
  padding: 4px 14px;
}

/* contacto */

#contacto { text-align: left; }

.cta {
  font-size: clamp(56px, 11vw, 185px);
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.mail-big {
  display: inline-block;
  margin-top: 48px;
  font-size: clamp(18px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  color: var(--gray);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.mail-big:hover {
  background-image: var(--spectrum);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-color: var(--ink);
  animation: hueflow 8s linear infinite;
}

/* footer */

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 34px 36px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--gray);
}

/* ── responsive ─────────────────────────────────── */

@media (max-width: 820px) {
  .site-head { padding: 18px 20px; }
  .head-mail { display: none; }

  .mac-window { width: 94vw; font-size: clamp(4.5px, 1.15vw, 9px); }
  .win-glow { width: 96vw; }
  .url-bar { max-width: 58%; }
  .menu-bar .mb-item:nth-child(n + 4):not(#mb-clock) { display: none; }
  .tab { width: 92px; }

  .wrap { padding: 16vh 20px; }

  .row { flex-direction: column; gap: 10px; }
  .row p { text-align: left; }

  .work { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .works { gap: 64px; }

  .site-foot { padding: 24px 20px 30px; }
}

/* ── movimiento reducido ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .phrase, .brand-dot, .mb-logo, .lit, .cta-lit,
  .row:hover .row-title, .hint-arrow, .au,
  .cursor-glow, .scroll-progress, .eyebrow::after, .mail-big:hover {
    animation: none;
  }
  .cursor-glow { display: none; }
  .thumb, .work:hover .thumb { transition: none; transform: none; }
}
