@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed/BarlowCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed/BarlowCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed/BarlowCondensed-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Permanent Marker";
  src: url("assets/fonts/permanent-marker/PermanentMarker-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Velo negro de fondos: denso al centro, transparente hacia los bordes (aligera el grunge) */
  --bg-veil: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0) 100%);
  --bg-veil-strong: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
  --font-display: "Anton", "Barlow Condensed", Impact, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-marker: "Permanent Marker", "Barlow Condensed", sans-serif;
  --ink: #0a0a0a;
  --paper: #ececec;
  --black: #000;
  --white: #fff;
  --violet: #7d39eb;
  --lime: #c6ff33;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Barlow Condensed", Arial, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--black);
  background: var(--lime);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(150px, 0.6fr);
  align-items: center;
  width: min(100% - 40px, 1560px);
  height: 100%;
  margin-inline: auto;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.nav-brand__logo {
  display: block;
  width: clamp(74px, 7vw, 112px);
  height: 60px;
  object-fit: contain;
}

.nav-brand__meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 44px);
}

.main-nav a {
  position: relative;
  padding: 10px clamp(10px, 1.2vw, 22px) 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a::before {
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.58);
  content: attr(data-index);
}

.main-nav a.is-active::before {
  color: var(--lime);
}

.main-nav a:last-child {
  padding-right: 0;
  border-right: 0;
}

.main-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--violet);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.language-switcher button {
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.language-switcher button.is-active {
  color: var(--white);
}

.smiley {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background-color: #050505;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.03)),
    url("assets/images/hero-bg.webp");
  background-position: center;
  background-size: cover;
}

/* Velo del hero: va por encima del fondo y del collage, por debajo de la foto y el contenido */
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--bg-veil-strong);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 38px;
  content: "";
  background: linear-gradient(176deg, transparent 38%, #eee 39% 47%, #050505 48%);
  filter: contrast(1.25);
}

.hero__decor {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(53vw, 980px);
  background-image: url("assets/images/hero-collage.webp");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(40vw, 620px);
  margin-left: clamp(28px, 7vw, 132px);
  padding-block: 34px 76px;
}

/* Logo + nombre + rol escalan como un solo bloque (unidades cqi = % del ancho del bloque),
   así mantienen la misma proporción en cualquier pantalla. */
.hero__lockup {
  container-type: inline-size;
  width: clamp(230px, 25vw, 380px);
  margin: 0 0 22px;
}

.brand-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1671.7 / 1511.69;
  pointer-events: none;
}

.brand-art__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__name {
  position: relative;
  z-index: 3;
  display: table;
  margin: -10cqi 0 0 4cqi;
  padding: 0.2cqi 1.8cqi 0.5cqi;
  background: var(--black);
  font-size: 7cqi;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hero__role {
  position: relative;
  z-index: 3;
  display: table;
  margin: 0.8cqi 0 0;
  padding: 0.4cqi 2.4cqi 0.9cqi;
  color: var(--black);
  background: var(--lime);
  font-size: 9.8cqi;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.hero__statement {
  max-width: 34ch;
  margin: 0 0 clamp(22px, 2.2vw, 32px);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero__statement strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: clamp(1.4rem, 2.1vw, 2.35rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
}

.button {
  display: flex;
  min-width: 174px;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 13px 10px 19px;
  border: 2px solid var(--white);
  border-radius: 0 999px 999px 0;
  color: var(--white);
  background-color: transparent;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.button--primary {
  color: var(--black);
  background: var(--violet);
  border-color: var(--violet);
}

/* "Ver proyectos" del hero con texto blanco */
.hero .button--primary {
  color: var(--white);
}

.button__arrow {
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 0.6;
}

.button--download {
  grid-column: 1;
}

/* Portrait: centred on the right half like the Figma prototype (x≈61%),
   sized by the smaller of viewport width / hero height so it never drifts to an edge */
.hero__portrait-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__portrait {
  position: absolute;
  top: clamp(28px, 8%, 110px);
  left: var(--portrait-x, 62%);
  width: auto;
  height: min(172%, var(--portrait-max, 112vw));
  max-width: none;
  translate: -50% 0;
  filter: saturate(0.78) contrast(1.05);
}

.mascot {
  position: absolute;
  z-index: 6;
  right: 3.5vw;
  bottom: 0;
  width: clamp(210px, 20vw, 330px);
  aspect-ratio: 1;
}

/* Mascota: estado normal y, al pasar el mouse o tocarla, la versión feliz */
.mascot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.mascot__face--happy {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mascot:hover .mascot__face--happy,
.mascot.is-happy .mascot__face--happy {
  opacity: 1;
}

.mascot:hover .mascot__face:not(.mascot__face--happy),
.mascot.is-happy .mascot__face:not(.mascot__face--happy) {
  opacity: 0;
}

.parental-sticker {
  position: absolute;
  z-index: 5;
  bottom: 12%;
  left: 36%;
  width: clamp(145px, 15vw, 245px);
  transform: rotate(-4deg);
}

.mobile-note {
  display: none;
}


.anchor-targets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .hero__portrait {
    --portrait-x: 74%;
    --portrait-max: 118vw;
  }

  .hero__content {
    width: min(46vw, 500px);
  }
}

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: minmax(210px, 0.7fr) auto minmax(130px, 0.45fr);
    gap: 16px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.75rem;
  }

  .nav-brand__meta {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-shell {
    grid-template-columns: 58px 1fr auto;
    width: min(100% - 34px, 680px);
    gap: 10px;
  }

  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    align-content: center;
    gap: 7px;
    padding: 7px;
    color: var(--white);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 31px;
    height: 3px;
    background: currentColor;
  }

  .nav-brand {
    justify-content: center;
  }

  .nav-brand__logo {
    width: 82px;
    height: 50px;
  }

  .main-nav {
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 20px 28px 30px;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
    border-right: 0;
    font-size: 1.15rem;
  }

  .main-nav a::before {
    display: none;
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .main-nav a.is-active {
    color: var(--lime);
  }

  .nav-actions {
    gap: 0;
  }

  .language-switcher {
    padding: 0;
    border: 0;
    font-size: 0.95rem;
  }

  .smiley {
    display: none;
  }

  .hero {
    display: block;
    min-height: calc(100svh - var(--header-height));
    padding: 12px 0 34px;
    background-position: 35% center;
  }

  .hero::after,
  .hero__decor,
  .hero__portrait-frame,
  .parental-sticker {
    display: none;
  }

  .hero__content {
    width: min(100% - 46px, 520px);
    margin-inline: auto;
    padding: 0;
  }

  .hero__lockup {
    width: min(100%, 360px);
    margin: 0 auto 22px;
  }

  .hero__statement {
    max-width: none;
    margin-bottom: 28px;
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    line-height: 1.35;
  }

  .hero__statement strong {
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
    font-style: normal;
  }

  .hero__actions {
    display: flex;
    gap: 9px;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 58px;
    padding-inline: 22px 17px;
    border-radius: 0 999px 999px 0;
    font-size: 1.17rem;
  }

  .button--primary {
    background: linear-gradient(90deg, var(--violet), #9c45f4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  }

  .mascot {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(78vw, 390px);
    margin: -14px -30px -16px auto;
  }

  .mobile-note {
    position: absolute;
    bottom: 9%;
    left: 7%;
    display: block;
    margin: 0;
    color: #ad7aff;
    font-family: "Permanent Marker", sans-serif;
    font-size: clamp(1.45rem, 7vw, 2.2rem);
    line-height: 0.92;
    text-transform: uppercase;
    transform: rotate(-7deg);
  }

}

@media (max-width: 390px) {
  .hero__content {
    width: calc(100% - 34px);
  }


  .button {
    min-height: 54px;
  }

  .mobile-note {
    bottom: 7%;
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   Shared section helpers
   ========================================================= */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.section-index {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px 5px 0;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: -40px 0 0 rgba(0, 0, 0, 0.72);
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-index::before {
  width: 22px;
  height: 2px;
  content: "";
  background: var(--lime);
}

.button--lime {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
}

.button {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--violet);
}

.button--primary:hover {
  box-shadow: 4px 4px 0 var(--lime);
}

.button--outline:hover {
  color: var(--black);
  background: var(--white);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: square;
}

.icon-button--lime {
  color: var(--lime);
  border-color: var(--lime);
}

.icon-button:hover {
  color: var(--black);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   02. PROJECTS — ZHAW TV
   ========================================================= */

.projects {
  --rail-h: clamp(150px, 21svh, 200px);
  position: relative;
  background: #050505;
}

.projects.is-pinned {
  height: var(--projects-height, 100svh);
}

.projects__pin {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  flex-direction: column;
  gap: clamp(8px, 1.4svh, 16px);
  overflow: hidden;
  padding: clamp(18px, 3svh, 34px) clamp(20px, 3vw, 48px) clamp(14px, 2svh, 24px);
  background:
    var(--bg-veil),
    #050505 url("assets/images/projects/projects-bg.webp") center / cover no-repeat;
}

.projects.is-pinned .projects__pin {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
}

.projects__stage {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: clamp(150px, 15vw, 230px) minmax(0, 1fr) clamp(340px, 32vw, 480px);
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
}

/* ---------- Filters ---------- */

.projects__filters {
  position: relative;
  display: flex;
  align-self: end;
  flex-direction: column;
  gap: 6px;
  padding-bottom: clamp(10px, 5svh, 60px);
}

.filter-tape {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.filter-tape img {
  display: block;
  width: 100%;
  height: auto;
}

.filter-tape__on {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filter-tape:nth-child(2) {
  transform: rotate(0.8deg);
}

.filter-tape:nth-child(3) {
  transform: rotate(-0.6deg);
}

.filter-tape:hover {
  transform: translateX(6px) rotate(-1deg);
}

.filter-tape.is-active .filter-tape__on {
  opacity: 1;
}

.filter-tape.is-active {
  filter: drop-shadow(0 0 14px rgba(198, 255, 51, 0.25));
}

.filter-tape:focus-visible {
  outline-offset: 0;
}

.projects__sticker {
  position: absolute;
  pointer-events: none;
}

.projects__sticker--lightning {
  top: -80px;
  right: 6%;
  width: 54px;
  transform: rotate(12deg);
}

/* ---------- TV ---------- */

.zhaw-tv {
  position: relative;
  width: min(100%, calc((100svh - var(--header-height) - var(--rail-h) - 110px) * 1.2416));
  aspect-ratio: 1336 / 1076;
  justify-self: center;
}

.zhaw-tv__frame {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.7));
}

/* screen hole: x 188–1132 / 1336, y 222–833 / 1076 */
.zhaw-tv__screen {
  position: absolute;
  z-index: 1;
  top: 20.2%;
  left: 13.6%;
  width: 71.6%;
  height: 57.6%;
  overflow: hidden;
  background: #0b0b0b;
  border-radius: 7% / 10%;
}

.zhaw-tv__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
}

.zhaw-tv__bars {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      90deg,
      #c0c0c0 0 14.28%,
      #c0c000 0 28.56%,
      #00c0c0 0 42.84%,
      #00c000 0 57.12%,
      #c000c0 0 71.4%,
      #c00000 0 85.68%,
      #0000c0 0
    )
    top / 100% 68% no-repeat,
    linear-gradient(90deg, #0000c0 0 14.28%, #131313 0 28.56%, #c000c0 0 42.84%, #131313 0 57.12%, #00c0c0 0 71.4%, #131313 0 85.68%, #c0c0c0 0)
    0 68% / 100% 8% no-repeat,
    linear-gradient(90deg, #00214c 0 18%, #fff 0 36%, #32006a 0 54%, #131313 0 100%) bottom / 100% 24% no-repeat;
  filter: saturate(0.85) contrast(1.05);
}

.zhaw-tv__bars-label {
  max-width: 80%;
  padding: 0.25em 0.6em 0.3em;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 2.6rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--violet);
}

.zhaw-tv__channel {
  position: absolute;
  z-index: 2;
  top: 7%;
  left: 5%;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 2.2rem);
  letter-spacing: 0.04em;
  text-shadow:
    2px 0 0 rgba(125, 57, 235, 0.9),
    -2px 0 0 rgba(198, 255, 51, 0.8),
    0 0 12px rgba(0, 0, 0, 0.9);
}

.zhaw-tv__channel b {
  color: var(--lime);
  font-weight: 400;
}

.zhaw-tv__scanlines {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: multiply;
}

.zhaw-tv__noise {
  position: absolute;
  z-index: 2;
  inset: -10%;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #222;
}

.zhaw-tv__noise span {
  padding: 0.2em 0.5em;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 2rem);
  letter-spacing: 0.08em;
}

.zhaw-tv.is-switching .zhaw-tv__noise {
  animation: tv-static 0.42s steps(6) both;
}

.zhaw-tv.is-switching .zhaw-tv__cover,
.zhaw-tv.is-switching .zhaw-tv__bars {
  animation: tv-glitch 0.42s steps(4) both;
}

@keyframes tv-static {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-4%, 3%);
  }
  50% {
    opacity: 1;
    transform: translate(3%, -4%);
  }
  75% {
    opacity: 0.8;
    transform: translate(-2%, 2%);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes tv-glitch {
  0% {
    filter: hue-rotate(80deg) contrast(1.6);
    transform: translateX(-3%) skewX(-6deg);
  }
  50% {
    transform: translateX(2%) skewX(4deg);
  }
  100% {
    filter: none;
    transform: none;
  }
}

/* CH− / CH+ hardware buttons on the TV frame */
.zhaw-tv__knob {
  position: absolute;
  z-index: 4;
  top: 89.7%;
  width: 3.8%;
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.zhaw-tv__knob--prev {
  left: 39.1%;
}

.zhaw-tv__knob--next {
  left: 44.3%;
}

.zhaw-tv__knob:hover {
  box-shadow: 0 0 0 3px var(--lime);
}

/* ---------- Project panel ---------- */

.project-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6svh, 16px);
  padding: clamp(20px, 3svh, 34px) clamp(22px, 2.4vw, 38px) clamp(24px, 3.4svh, 38px);
  isolation: isolate;
}

.project-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 92% 38%, rgba(255, 255, 255, 0.14) 0 1.5px, transparent 2px) 0 0 / 9px 9px,
    linear-gradient(160deg, #161616, #050505 60%, #111);
  clip-path: polygon(0.0% 0.8%, 3.8% 0.4%, 7.7% 1.5%, 11.5% 0.3%, 15.4% 1.3%, 19.2% 0.9%, 23.1% 0.2%, 26.9% 1.2%, 30.8% 0.2%, 34.6% 1.1%, 38.5% 0.3%, 42.3% 0.3%, 46.2% 1.0%, 50.0% 1.9%, 53.8% 0.4%, 57.7% 0.6%, 61.5% 1.5%, 65.4% 2.2%, 69.2% 1.4%, 73.1% 1.0%, 76.9% 2.2%, 80.8% 0.2%, 84.6% 2.0%, 88.5% 0.7%, 92.3% 0.4%, 96.2% 0.4%, 99.7% 0.0%, 100.0% 5.6%, 99.4% 11.1%, 100.0% 16.7%, 100.0% 22.2%, 99.8% 27.8%, 100.0% 33.3%, 99.2% 38.9%, 99.2% 44.4%, 99.5% 50.0%, 100.0% 55.6%, 99.9% 61.1%, 99.7% 66.7%, 100.0% 72.2%, 99.9% 77.8%, 99.6% 83.3%, 100.0% 88.9%, 100.0% 94.4%, 100.0% 98.2%, 96.2% 99.0%, 92.3% 98.9%, 88.5% 99.6%, 84.6% 99.3%, 80.8% 98.3%, 76.9% 99.9%, 73.1% 98.0%, 69.2% 98.6%, 65.4% 99.4%, 61.5% 98.0%, 57.7% 98.8%, 53.8% 97.8%, 50.0% 99.2%, 46.2% 99.4%, 42.3% 99.0%, 38.5% 99.6%, 34.6% 98.4%, 30.8% 99.2%, 26.9% 99.0%, 23.1% 99.0%, 19.2% 98.7%, 15.4% 99.5%, 11.5% 99.8%, 7.7% 98.7%, 3.8% 99.2%, 0.0% 100.0%, 0.4% 94.4%, 0.3% 88.9%, 0.9% 83.3%, 0.6% 77.8%, 0.0% 72.2%, 0.0% 66.7%, 0.3% 61.1%, 0.0% 55.6%, 0.0% 50.0%, 0.0% 44.4%, 0.0% 38.9%, 0.0% 33.3%, 0.5% 27.8%, 0.0% 22.2%, 0.0% 16.7%, 0.0% 11.1%, 0.7% 5.6%);
  box-shadow: 0 0 0 2px #ddd;
  filter: drop-shadow(0 0 1px #fff);
}

.project-panel::after {
  position: absolute;
  z-index: -1;
  inset: -3px;
  content: "";
  background: #d9d9d9;
  clip-path: polygon(0.0% 0.8%, 3.8% 0.4%, 7.7% 1.5%, 11.5% 0.3%, 15.4% 1.3%, 19.2% 0.9%, 23.1% 0.2%, 26.9% 1.2%, 30.8% 0.2%, 34.6% 1.1%, 38.5% 0.3%, 42.3% 0.3%, 46.2% 1.0%, 50.0% 1.9%, 53.8% 0.4%, 57.7% 0.6%, 61.5% 1.5%, 65.4% 2.2%, 69.2% 1.4%, 73.1% 1.0%, 76.9% 2.2%, 80.8% 0.2%, 84.6% 2.0%, 88.5% 0.7%, 92.3% 0.4%, 96.2% 0.4%, 99.7% 0.0%, 100.0% 5.6%, 99.4% 11.1%, 100.0% 16.7%, 100.0% 22.2%, 99.8% 27.8%, 100.0% 33.3%, 99.2% 38.9%, 99.2% 44.4%, 99.5% 50.0%, 100.0% 55.6%, 99.9% 61.1%, 99.7% 66.7%, 100.0% 72.2%, 99.9% 77.8%, 99.6% 83.3%, 100.0% 88.9%, 100.0% 94.4%, 100.0% 98.2%, 96.2% 99.0%, 92.3% 98.9%, 88.5% 99.6%, 84.6% 99.3%, 80.8% 98.3%, 76.9% 99.9%, 73.1% 98.0%, 69.2% 98.6%, 65.4% 99.4%, 61.5% 98.0%, 57.7% 98.8%, 53.8% 97.8%, 50.0% 99.2%, 46.2% 99.4%, 42.3% 99.0%, 38.5% 99.6%, 34.6% 98.4%, 30.8% 99.2%, 26.9% 99.0%, 23.1% 99.0%, 19.2% 98.7%, 15.4% 99.5%, 11.5% 99.8%, 7.7% 98.7%, 3.8% 99.2%, 0.0% 100.0%, 0.4% 94.4%, 0.3% 88.9%, 0.9% 83.3%, 0.6% 77.8%, 0.0% 72.2%, 0.0% 66.7%, 0.3% 61.1%, 0.0% 55.6%, 0.0% 50.0%, 0.0% 44.4%, 0.0% 38.9%, 0.0% 33.3%, 0.5% 27.8%, 0.0% 22.2%, 0.0% 16.7%, 0.0% 11.1%, 0.7% 5.6%);
  transform: rotate(-0.8deg) scale(1.012);
  opacity: 0.9;
  z-index: -2;
}

.project-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-panel__counter {
  position: relative;
  margin: 0 0 0 -6px;
  padding: 6px 18px 8px;
  color: var(--white);
  background: rgba(190, 190, 190, 0.28);
  font-family: var(--font-marker);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1;
  transform: rotate(-4deg);
  clip-path: polygon(2% 8%, 98% 0, 100% 90%, 3% 100%, 0 50%);
}

.project-panel__counter [data-panel-index] {
  color: var(--lime);
}

.project-panel__arrows {
  display: flex;
  gap: 10px;
}

.project-panel__title {
  display: flex;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.1vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-panel__title-main:empty {
  display: none;
}

.project-panel__title-highlight {
  margin-top: 4px;
  padding: 0.04em 0.18em 0.08em;
  color: var(--black);
  background: var(--lime);
  transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
}

.project-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.project-panel__tags:empty {
  display: none;
}

.project-panel__tags li {
  padding: 5px 9px 4px;
  color: var(--black);
  background: var(--lime);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.project-panel__description {
  max-width: 44ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.55;
}

.project-panel__metric {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  color: var(--white);
  border-left: 4px solid var(--violet);
  background: rgba(125, 57, 235, 0.18);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.project-panel__actions .button {
  min-width: 160px;
  min-height: 48px;
}

.project-panel__actions [hidden] {
  display: none;
}

.projects__sticker--crown {
  top: -52px;
  right: -30px;
  width: 70px;
  transform: rotate(14deg);
}

.projects__sticker--star {
  bottom: -22px;
  left: -18px;
  width: 58px;
  transform: rotate(-12deg);
}

/* ---------- Channel rail ---------- */

.channel-rail {
  position: relative;
  height: var(--rail-h);
  flex: none;
  overflow: hidden;
  margin-inline: calc(clamp(20px, 3vw, 48px) * -1);
  padding-inline: clamp(20px, 3vw, 48px);
}

.channel-rail__track {
  display: flex;
  height: calc(100% - 10px);
  gap: clamp(14px, 1.6vw, 26px);
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
  will-change: transform;
}

.channel-card {
  position: relative;
  height: 100%;
  flex: none;
}

.channel-card__button {
  position: relative;
  display: flex;
  width: calc((var(--rail-h) - 36px) * 1.3);
  height: 100%;
  flex-direction: column;
  gap: 7px;
  padding: 8px 8px 9px;
  color: var(--white);
  background: #0d0d0d;
  border: 3px solid #cfcfcf;
  cursor: pointer;
  text-align: left;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(0 1%, 20% 0, 48% 1.5%, 75% 0, 100% 1%, 99% 30%, 100% 62%, 99% 100%, 70% 99%, 38% 100%, 1% 99%, 0 60%);
}

.channel-card__button::before {
  position: absolute;
  z-index: 2;
  top: -2px;
  left: 50%;
  width: 34%;
  height: 16px;
  content: "";
  background: rgba(200, 200, 200, 0.55);
  transform: translateX(-50%) rotate(-3deg);
}

.channel-card__button:hover {
  transform: translateY(-6px) rotate(0deg);
}

.channel-card__thumb {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #222;
  border: 2px solid #444;
}

.channel-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.6) contrast(1.05);
  transition: filter 0.25s ease;
}

.channel-card__thumb--empty {
  background:
    linear-gradient(90deg, #9a9a9a 0 14.28%, #9a9a00 0 28.56%, #009a9a 0 42.84%, #009a00 0 57.12%, #9a009a 0 71.4%, #9a0000 0 85.68%, #00009a 0)
      top / 100% 72% no-repeat,
    #161616;
  filter: grayscale(0.55) brightness(0.7);
}

.channel-card__label {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.channel-card__number {
  flex: none;
  padding: 3px 6px 1px;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.channel-card__name {
  overflow: hidden;
  padding: 3px 8px 1px;
  color: var(--black);
  background: #e6e6e6;
  font-family: var(--font-marker);
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.channel-card.is-active .channel-card__button {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 2px var(--lime);
  transform: translateY(-4px) rotate(-1deg);
}

.channel-card.is-active .channel-card__number {
  background: var(--lime);
}

.channel-card.is-active .channel-card__thumb img {
  filter: none;
}

.channel-card__crown {
  position: absolute;
  z-index: 3;
  top: -26px;
  left: -14px;
  width: 58px;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-16deg) scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.channel-card.is-active .channel-card__crown {
  opacity: 1;
  transform: rotate(-16deg) scale(1);
}

.channel-card--empty {
  display: grid;
  place-items: center;
  padding: 0 28px;
  color: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  font-family: var(--font-marker);
  font-size: 1.2rem;
  text-align: center;
}

.channel-rail__progress {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  bottom: 0;
  left: clamp(20px, 3vw, 48px);
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.channel-rail__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.projects__hint {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  top: clamp(18px, 3svh, 34px);
  margin: 0;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects__hint::after {
  margin-left: 8px;
  content: "↓ →";
  color: var(--lime);
}

/* =========================================================
   03. ABOUT ME
   ========================================================= */

.about {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 96px) clamp(60px, 8vw, 110px);
  background: var(--bg-veil), #050505 url("assets/images/hero-bg.webp") center / cover;
}

.about::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  z-index: 1;
  height: 40px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath fill='%23e8e8e8' d='M0.0 11.4L14.6 12.7L30.1 15.3L38.0 9.1L56.7 11.6L67.0 19.0L80.6 17.4L94.2 15.4L103.4 15.3L122.5 14.2L139.9 15.7L147.8 16.6L163.1 12.0L170.5 17.7L184.1 16.2L203.4 16.1L223.3 12.9L241.5 13.4L261.6 17.8L270.0 10.4L280.0 18.7L293.1 15.3L304.3 14.1L316.7 12.5L331.9 14.8L351.6 15.8L371.6 17.6L392.5 15.7L401.8 17.6L422.3 18.0L437.2 16.1L447.2 17.3L462.2 11.8L470.1 17.5L491.0 9.9L509.2 13.1L518.3 11.9L536.0 17.7L543.7 15.1L551.3 16.2L562.9 17.8L583.7 14.1L604.6 12.1L612.7 15.0L620.2 11.0L632.9 15.1L642.0 9.4L661.2 12.1L681.6 18.0L693.9 13.6L708.2 15.4L723.5 14.6L739.2 18.4L753.3 13.3L770.4 11.4L781.6 18.8L795.9 14.5L803.1 13.2L818.2 9.2L833.8 15.3L841.6 15.3L855.2 15.8L867.1 16.1L884.4 9.2L892.3 15.8L912.8 11.5L926.2 14.9L937.6 12.6L949.0 12.7L964.4 12.0L976.6 16.7L984.0 14.7L1001.3 12.1L1011.4 17.0L1021.8 10.9L1034.9 16.0L1043.3 12.2L1055.0 17.3L1068.1 17.6L1077.5 12.4L1093.6 17.8L1106.9 11.3L1115.6 14.3L1125.3 17.1L1144.0 10.8L1154.9 17.1L1170.9 17.1L1182.7 10.3L1200.0 11.4L1200.0 21.8L1186.0 20.6L1172.0 29.0L1160.0 19.6L1152.4 19.7L1145.0 29.0L1130.4 26.5L1118.2 20.3L1110.9 23.5L1096.3 27.3L1087.3 29.0L1075.1 23.7L1064.5 28.5L1051.2 23.6L1040.2 23.7L1025.3 19.0L1012.5 21.5L1003.9 19.4L995.1 23.7L989.9 20.0L982.2 25.2L968.7 22.8L956.6 21.1L942.1 26.7L934.8 21.4L923.9 19.8L916.2 19.6L904.0 23.2L893.9 29.8L881.4 18.3L874.9 29.6L863.5 23.8L853.3 26.4L840.7 26.7L834.1 27.5L825.0 30.6L815.0 18.2L805.8 21.9L796.8 22.1L787.9 27.5L776.8 20.5L770.0 20.4L756.7 24.9L748.4 17.9L734.1 27.5L728.0 27.0L717.9 27.7L712.5 28.2L701.7 30.3L688.4 26.4L674.9 18.7L661.5 17.3L654.7 29.3L648.7 18.3L643.3 27.8L636.9 17.1L626.0 18.4L615.4 27.3L603.7 28.1L589.8 26.3L576.7 18.7L567.0 20.7L554.1 29.6L545.4 30.1L531.6 23.0L522.3 18.0L510.4 24.5L502.9 23.5L491.0 22.9L479.0 23.9L470.2 23.0L459.0 28.2L450.2 28.0L439.2 22.2L432.4 18.1L423.6 27.0L413.0 18.7L404.7 19.7L396.1 25.2L384.7 21.9L376.5 21.4L366.5 18.2L352.9 30.6L347.3 18.7L341.0 17.8L336.0 27.9L326.2 22.9L316.0 20.8L308.3 17.7L294.6 25.8L289.6 28.5L276.5 29.9L263.6 19.4L250.4 24.5L243.4 21.9L230.6 23.7L217.0 20.5L208.6 25.6L194.2 22.8L183.9 26.3L175.9 19.4L163.5 17.2L152.7 29.6L138.8 29.9L126.8 29.7L121.4 28.3L113.5 25.2L107.8 20.2L99.4 21.0L89.2 26.3L75.8 27.4L68.6 30.0L54.1 23.1L39.3 29.3L24.8 17.1L18.3 29.9L9.2 22.9L0.0 21.8Z'/%3E%3Cpath fill='%23050505' d='M0 0H1200V11.4L1200.0 11.4L1182.7 10.3L1170.9 17.1L1154.9 17.1L1144.0 10.8L1125.3 17.1L1115.6 14.3L1106.9 11.3L1093.6 17.8L1077.5 12.4L1068.1 17.6L1055.0 17.3L1043.3 12.2L1034.9 16.0L1021.8 10.9L1011.4 17.0L1001.3 12.1L984.0 14.7L976.6 16.7L964.4 12.0L949.0 12.7L937.6 12.6L926.2 14.9L912.8 11.5L892.3 15.8L884.4 9.2L867.1 16.1L855.2 15.8L841.6 15.3L833.8 15.3L818.2 9.2L803.1 13.2L795.9 14.5L781.6 18.8L770.4 11.4L753.3 13.3L739.2 18.4L723.5 14.6L708.2 15.4L693.9 13.6L681.6 18.0L661.2 12.1L642.0 9.4L632.9 15.1L620.2 11.0L612.7 15.0L604.6 12.1L583.7 14.1L562.9 17.8L551.3 16.2L543.7 15.1L536.0 17.7L518.3 11.9L509.2 13.1L491.0 9.9L470.1 17.5L462.2 11.8L447.2 17.3L437.2 16.1L422.3 18.0L401.8 17.6L392.5 15.7L371.6 17.6L351.6 15.8L331.9 14.8L316.7 12.5L304.3 14.1L293.1 15.3L280.0 18.7L270.0 10.4L261.6 17.8L241.5 13.4L223.3 12.9L203.4 16.1L184.1 16.2L170.5 17.7L163.1 12.0L147.8 16.6L139.9 15.7L122.5 14.2L103.4 15.3L94.2 15.4L80.6 17.4L67.0 19.0L56.7 11.6L38.0 9.1L30.1 15.3L14.6 12.7L0.0 11.4Z'/%3E%3C/svg%3E") 0 0 / 1200px 40px repeat-x;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.about__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  max-width: 1400px;
  margin: clamp(24px, 3vw, 40px) auto 0;
}

.about__photo {
  position: relative;
  margin: 0;
}

.about__polaroid {
  padding: 12px 12px 46px;
  background: var(--paper);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg);
}

.about__polaroid::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 42%;
  height: 30px;
  content: "";
  background: rgba(210, 210, 210, 0.6);
  transform: translateX(-50%) rotate(3deg);
}

.about__polaroid img {
  display: block;
  width: 100%;
  height: auto;
}

.about__sticker {
  position: absolute;
  pointer-events: none;
}

.about__sticker--smiley {
  top: 38%;
  left: -34px;
  width: 64px;
  transform: rotate(-10deg);
}

.about__sticker--kid {
  bottom: -30px;
  left: -20px;
  width: 110px;
  transform: rotate(-8deg);
}

.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.about__title span {
  color: var(--lime);
}

.about__kicker {
  margin: 12px 0 22px;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__copy {
  max-width: 62ch;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.65;
}

.about__copy p {
  margin: 0 0 14px;
}

.about__content .button {
  display: inline-flex;
}

.about__side {
  position: relative;
}

.about__scribble {
  margin: 0 0 26px;
  color: var(--lime);
  font-family: var(--font-marker);
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  line-height: 0.95;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.about__stats {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__stats li {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.about__stats svg {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.about__stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.about__stats span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about__sticker--note {
  top: 70px;
  right: clamp(-40px, -1vw, 0px);
  width: clamp(110px, 10vw, 150px);
  transform: rotate(8deg);
}

.about__sticker--barcode {
  bottom: 34px;
  left: 50%;
  width: 200px;
  transform: rotate(-3deg);
}

.about__sticker--cassette {
  right: 3%;
  bottom: 24px;
  width: clamp(140px, 12vw, 190px);
  transform: rotate(-7deg);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive — Projects & About
   ========================================================= */

@media (max-width: 1280px) {
  .projects__stage {
    grid-template-columns: clamp(130px, 13vw, 180px) minmax(0, 1fr) clamp(320px, 34vw, 420px);
  }
}

@media (max-width: 1023px), (max-height: 639px) {
  .projects__pin {
    padding-block: 28px 36px;
  }

  .projects__stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .projects__filters {
    order: -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    gap: 8px;
    padding: 0;
  }

  .filter-tape:hover {
    transform: translateY(-3px);
  }

  .projects__sticker--lightning {
    display: none;
  }

  .zhaw-tv {
    width: min(100%, 640px);
  }

  .project-panel {
    width: min(100%, 640px);
    justify-self: center;
  }

  .channel-rail {
    height: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .channel-rail::-webkit-scrollbar {
    display: none;
  }

  .projects {
    --rail-h: clamp(170px, 42vw, 210px);
  }

  .channel-rail__track {
    height: calc(var(--rail-h) - 10px);
    padding-bottom: 6px;
    transform: none !important;
  }

  .channel-card {
    scroll-snap-align: center;
  }

  .channel-rail__progress,
  .projects__hint {
    display: none;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about__content {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .about__sticker--note,
  .about__sticker--barcode {
    display: none;
  }
}

@media (max-width: 820px) {
  .projects__pin {
    padding-inline: 16px;
  }

  .channel-rail {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .project-panel__title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .project-panel__actions .button {
    flex: 1 1 100%;
    width: 100%;
  }

  .zhaw-tv__channel {
    font-size: 1rem;
  }

  .about {
    padding-inline: 20px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about__photo {
    width: min(78%, 320px);
    margin-inline: auto;
  }

  .about__content,
  .about__photo,
  .about__side {
    grid-column: auto;
    grid-row: auto;
  }

  .about__content {
    order: -1;
  }

  .about__content .button {
    display: flex;
    width: 100%;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }

  .about__sticker--cassette {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .zhaw-tv.is-switching .zhaw-tv__noise,
  .zhaw-tv.is-switching .zhaw-tv__cover,
  .zhaw-tv.is-switching .zhaw-tv__bars {
    animation: none;
  }

  .button,
  .icon-button,
  .filter-tape,
  .channel-card__button {
    transition: none;
  }
}

.projects:not(.is-pinned) .projects__hint,
.projects:not(.is-pinned) .channel-rail__progress {
  display: none;
}

.channel-card--empty {
  min-width: 260px;
  background: rgba(0, 0, 0, 0.65);
}

/* =========================================================
   04. TECH / SKILLS
   ========================================================= */

.skills {
  position: relative;
  display: flex;
  min-height: min(56.25vw, 1080px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(56px, 7.5vw, 120px) clamp(20px, 11vw, 190px) clamp(64px, 8vw, 130px);
  background: var(--bg-veil), #050505 url("assets/images/skills/skills-bg.webp") center / cover no-repeat;
}

.skills > .section-index {
  align-self: flex-start;
}

.skills__header {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: clamp(14px, 2vw, 24px) auto clamp(22px, 2.6vw, 36px);
}

.skills__title {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.skills__title-accent {
  color: var(--lime);
}

.skills__sticker {
  position: absolute;
  pointer-events: none;
}

.skills__sticker--bolt {
  top: -10px;
  left: clamp(290px, 30vw, 440px);
  width: 46px;
  transform: rotate(10deg);
}

.skills__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 1.7vw, 24px);
  background: linear-gradient(170deg, rgba(22, 22, 22, 0.92), rgba(6, 6, 6, 0.94));
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(125, 57, 235, 0.55);
  transform: translate(-3px, -3px);
}

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

.skill-card__header h3 {
  margin: 0;
  flex: 1;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.skill-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  color: var(--black);
  background: var(--lime);
  border-radius: 50%;
}

.skill-card__icon--violet {
  color: var(--white);
  background: var(--violet);
}

.skill-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card__number {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-marker);
  font-size: 1.4rem;
}

.skill-card__logos:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.skill-card__logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 8px;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.skill-card__logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.skill-card__logos img,
.skill-card__text-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.skill-card__text-logo {
  display: grid;
  place-items: center;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.skill-card__logos li:hover img,
.skill-card__logos li:hover .skill-card__text-logo {
  transform: translateY(-4px) rotate(-6deg);
}

.skill-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card__chips li {
  padding: 6px 10px 5px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(198, 255, 51, 0.5);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .skills {
    min-height: 0;
    padding-inline: clamp(20px, 6vw, 60px);
  }

  .skills__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .skills {
    padding: 64px 20px 80px;
    background-position: 30% center;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .skills__sticker--bolt {
    top: -10px;
    right: 8px;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-card,
  .skill-card__logos img,
  .skill-card__text-logo {
    transition: none;
  }
}



/* =========================================================
   HERO — motion
   ========================================================= */

.hero__floaters {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.floater {
  position: absolute;
  display: block;
  translate: calc(var(--mx, 0) * var(--depth, 10px)) calc(var(--my, 0) * var(--depth, 10px));
  transition: translate 0.4s ease-out;
}

.floater--sparkle {
  top: 9%;
  left: min(37vw, 560px);
  width: clamp(40px, 3.6vw, 60px);
  --depth: 18px;
  animation: floater-in 0.6s 1.1s both, twinkle 2.8s 1.7s ease-in-out infinite;
}

.floater--star {
  top: 24%;
  left: 46%;
  width: clamp(44px, 4vw, 66px);
  --depth: -14px;
  animation: floater-in 0.6s 1.25s both, bob 5s 1.9s ease-in-out infinite;
}

.floater--bolt {
  top: 50%;
  left: 38%;
  width: clamp(34px, 3vw, 50px);
  --depth: 16px;
  animation: floater-in 0.6s 1.4s both, bob 4.2s 2s ease-in-out infinite;
}

/* Intro sequence */
.brand-art__logo {
  animation:
    logo-slam 0.75s 0.15s cubic-bezier(0.2, 1.4, 0.4, 1) both,
    logo-glitch 7s 2.5s steps(1) infinite;
}

.hero__name {
  animation: slide-in-left 0.5s 0.55s ease-out both;
}

.hero__role {
  animation: stamp 0.5s 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  transition: scale 0.2s ease;
}

.hero__role:hover {
  scale: 1.05;
}

.hero__statement {
  animation: rise 0.6s 0.85s ease-out both;
}

.hero__actions > * {
  animation: rise 0.5s ease-out both;
}

.hero__actions > :nth-child(1) {
  animation-delay: 1s;
}

.hero__actions > :nth-child(2) {
  animation-delay: 1.1s;
}

.hero__actions > :nth-child(3) {
  animation-delay: 1.2s;
}

.hero__portrait-frame {
  animation: portrait-rise 0.9s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.mascot {
  animation: pop-in 0.6s 1s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.mascot img {
  animation: mascot-float 4.5s 1.6s ease-in-out infinite;
}

.parental-sticker {
  animation: sticker-drop 0.6s 1.3s cubic-bezier(0.3, 1.5, 0.5, 1) both, sway 6s 2s ease-in-out infinite;
}

.hero__decor {
  animation: fade 1.2s ease both;
}

@keyframes logo-slam {
  0% {
    opacity: 0;
    transform: scale(1.5) rotate(-8deg);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes logo-glitch {
  0%,
  93%,
  100% {
    transform: none;
    filter: none;
  }
  94% {
    transform: translate(-4px, 1px) skewX(-6deg);
    filter: drop-shadow(4px 0 0 var(--violet)) drop-shadow(-4px 0 0 var(--lime));
  }
  95.5% {
    transform: translate(3px, -2px);
    filter: drop-shadow(-3px 0 0 var(--violet)) drop-shadow(3px 0 0 var(--lime));
  }
  97% {
    transform: translate(-1px, 0) skewX(4deg);
    filter: drop-shadow(2px 0 0 var(--lime));
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: rotate(-1.5deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes portrait-rise {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-3deg);
  }
}

@keyframes sticker-drop {
  from {
    opacity: 0;
    transform: translateY(-50px) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: rotate(-4deg);
  }
}

@keyframes sway {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 2.5deg;
  }
}

@keyframes floater-in {
  from {
    opacity: 0;
    scale: 0.2;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(0.72) rotate(45deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-14px) rotate(8deg);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .floater--star,
  .floater--bolt {
    display: none;
  }

  .floater--sparkle {
    top: 2%;
    right: 8%;
    left: auto;
  }

  .mascot {
    animation: none;
  }
}

/* =========================================================
   Custom cursor
   ========================================================= */

.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor [role="button"] {
  cursor: none;
}

.has-cursor input,
.has-cursor textarea {
  cursor: text;
}

.cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  pointer-events: none;
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor.is-visible .cursor__dot,
.cursor.is-visible .cursor__ring {
  opacity: 1;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 51, 0.8);
}

.cursor__ring {
  display: grid;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition:
    opacity 0.2s ease,
    width 0.22s ease,
    height 0.22s ease,
    margin 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    border-radius 0.22s ease;
}

/* spray-paint look: dashed "graffiti" ring that spins */
.cursor__ring::before {
  position: absolute;
  inset: -6px;
  content: "";
  border: 2px dashed rgba(125, 57, 235, 0.9);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: spin-slow 6s linear infinite;
}

.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(198, 255, 51, 0.14);
  border-color: var(--lime);
}

.cursor.is-hover .cursor__ring::before {
  opacity: 1;
}

.cursor.is-hover .cursor__dot {
  background: var(--violet);
  box-shadow: 0 0 10px rgba(125, 57, 235, 0.9);
}

.cursor.is-down .cursor__ring {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
}

.cursor__label {
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0;
  text-transform: uppercase;
}

.cursor.has-label .cursor__ring {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: var(--lime);
  border-color: var(--lime);
}

.cursor.has-label .cursor__label {
  opacity: 1;
}

.cursor-splat {
  position: fixed;
  z-index: 9998;
  width: var(--s, 6px);
  height: var(--s, 6px);
  margin: calc(var(--s, 6px) / -2) 0 0 calc(var(--s, 6px) / -2);
  pointer-events: none;
  background: var(--c, var(--lime));
  border-radius: 50%;
  animation: splat 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  box-shadow: 0 0 6px var(--c, var(--lime));
}

@keyframes splat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.3);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-art__logo,
  .hero__name,
  .hero__role,
  .hero__statement,
  .hero__actions > *,
  .hero__portrait-frame,
  .mascot,
  .mascot img,
  .parental-sticker,
  .hero__decor,
  .floater,
  .cursor__ring::before {
    animation: none !important;
  }

  .floater {
    translate: none;
  }
}

/* =========================================================
   CASE STUDY MODAL
   ========================================================= */

.modal-open,
.modal-open body {
  overflow: hidden;
}

.case-modal {
  width: min(1240px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #0a0a0a;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 10px 10px 0 var(--violet);
}

.case-modal::backdrop {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px),
    rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.case-modal[open] {
  display: flex;
  flex-direction: column;
  /* "backwards" y no "both": un transform que queda activo desplaza el cursor personalizado */
  animation: modal-in 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) backwards;
}

@keyframes modal-in {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
    filter: hue-rotate(60deg) contrast(1.4);
  }
  60% {
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* El scroll vive dentro para que el visor pueda cubrir todo el modal;
   la barra superior (CH + cerrar) queda fija fuera del scroll */
.case-modal__inner {
  min-height: 0;
  flex: 1;
  padding: clamp(14px, 2vw, 26px) clamp(16px, 3vw, 44px) clamp(24px, 3vw, 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--violet) #151515;
}

.case-modal__header {
  position: relative;
  z-index: 5;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 3vw, 44px);
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-modal__channel {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
  text-shadow: 2px 0 0 rgba(125, 57, 235, 0.9), -2px 0 0 rgba(198, 255, 51, 0.8);
}

.case-modal__channel b {
  color: var(--lime);
  font-weight: 400;
}

.case-section-title {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Portada del caso ---------- */

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.case-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-hero__actions .button[hidden] {
  display: none;
}

/* YouTube: miniatura en la galería e iframe en el visor */
.case-card--youtube .case-card__screen img {
  object-position: center;
}

.case-viewer__stage--youtube {
  flex-direction: column;
  gap: 12px;
}

.case-viewer__stage--youtube iframe {
  width: min(100%, calc((100svh - 160px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.case-viewer__yt-thumb {
  position: relative;
  display: block;
  width: min(100%, 960px);
}

.case-viewer__yt-thumb img {
  width: 100%;
  max-height: none;
}

.case-viewer__yt-thumb span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 12px 20px;
  color: var(--black);
  background: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  translate: -50% -50%;
  box-shadow: 5px 5px 0 var(--violet);
}

.case-viewer__yt-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-viewer__yt-link:hover {
  color: var(--lime);
}

.case-hero__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.case-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-hero__cats:empty {
  display: none;
}

.case-hero__cats li {
  padding: 3px 9px 4px;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-hero__cats li.is-active {
  color: var(--black);
  background: var(--violet);
  border-color: var(--violet);
}

.case-hero__logo {
  width: auto;
  max-width: min(100%, 300px);
  max-height: 64px;
  object-fit: contain;
}

.case-info__title {
  display: flex;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.case-info__title span:empty {
  display: none;
}

.case-info__highlight {
  margin-top: 4px;
  padding: 0.04em 0.18em 0.08em;
  color: var(--black);
  background: var(--lime);
  transform: rotate(-1.5deg);
}

.case-hero__summary {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.55;
}

.case-hero__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151515;
  border: 2px solid #cfcfcf;
  box-shadow: 8px 8px 0 var(--lime);
}

.case-hero__media video,
.case-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #000;
}

.case-hero__media.is-empty {
  display: grid;
  place-items: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"),
    #1b1b1b;
}

.case-hero__media.is-empty span,
.case-card--empty .case-card__screen span {
  padding: 0.25em 0.6em;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 5px 5px 0 var(--violet);
}

/* ---------- Historia + ficha ---------- */

.case-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(32px, 4.5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.case-story:has(.case-story__aside[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.case-story__text {
  max-width: 760px;
}

.case-story__headline {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.case-story__text h4 {
  margin: 20px 0 6px;
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-story__text h4:first-child {
  margin-top: 0;
}

.case-story__text p {
  margin: 0 0 1em;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.7;
}

.case-story__text p:last-child {
  margin-bottom: 0;
}

.case-story__aside {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-kpis {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-kpis[hidden] {
  display: none;
}

.case-kpis__note {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 20px;
  color: var(--black);
  background: var(--lime);
  box-shadow: 6px 6px 0 var(--violet);
  transform: rotate(-1.5deg);
}

.case-kpi[hidden] {
  display: none;
}

.case-kpi__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-kpi__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.case-kpi__text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.case-kpi__text:empty {
  display: none;
}

.case-kpi--list ul {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* segunda métrica en adelante: tarjeta violeta, girada al otro lado */
.case-kpi + .case-kpi {
  color: var(--white);
  background: var(--violet);
  box-shadow: 6px 6px 0 var(--lime);
  transform: rotate(1deg);
}

.case-kpi + .case-kpi .case-kpi__value {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.case-kpi + .case-kpi .case-kpi__text {
  font-size: 1rem;
}

.case-info__meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.case-info__meta[hidden] {
  display: none;
}

.case-info__meta div {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-info__meta dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-info__meta dd {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Galería ---------- */

.case-gallery[hidden] {
  display: none;
}

.case-gallery {
  margin-top: clamp(32px, 4.5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-card__button {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 0;
  color: inherit;
  text-align: left;
  background: #151515;
  border: 2px solid #555;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card__button:hover,
.case-card__button:focus-visible {
  border-color: var(--lime);
  box-shadow: 6px 6px 0 var(--violet);
  transform: translate(-2px, -2px);
}

.case-card__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #242424;
  border-bottom: 1px solid #333;
}

.case-card__chrome i {
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
}

.case-card__chrome i:first-child {
  background: var(--violet);
}

.case-card__chrome i:nth-child(2) {
  background: var(--lime);
}

.case-card__chrome span {
  overflow: hidden;
  flex: 1;
  margin-left: 6px;
  padding: 2px 8px;
  color: rgba(255, 255, 255, 0.6);
  background: #111;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card__screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.case-card__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* páginas completas: al pasar el mouse la captura se desplaza hacia abajo */
.case-card--page .case-card__screen img {
  transition: object-position 7s ease-in-out;
}

.case-card--page .case-card__button:hover .case-card__screen img {
  object-position: center bottom;
}

.case-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background: var(--lime);
  border-radius: 50%;
  translate: -50% -50%;
  box-shadow: 4px 4px 0 var(--violet);
}

.case-card__play::after {
  position: absolute;
  top: 50%;
  left: 54%;
  content: "";
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--black);
  translate: -50% -50%;
}

.case-card__label {
  padding: 10px 12px 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-card--empty .case-card__screen {
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  background: #141414;
}

.case-card--empty .case-card__screen span {
  font-size: 1rem;
}

/* ---------- Visor ---------- */

.case-viewer {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #050505;
}

.case-viewer[hidden] {
  display: none;
}

.case-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(12px, 2vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-viewer__title {
  overflow: hidden;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-viewer__title b {
  margin-right: 8px;
  padding: 2px 8px;
  color: var(--black);
  background: var(--lime);
  font-family: var(--font-display);
  font-weight: 400;
}

.case-viewer__controls {
  display: flex;
  gap: 8px;
}

.case-viewer__stage {
  display: flex;
  min-height: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 2vw, 28px);
  overflow: auto;
  overscroll-behavior: contain;
  outline: none;
}

.case-viewer__stage img,
.case-viewer__stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* una página completa se lee con scroll vertical */
.case-viewer__stage--page {
  align-items: flex-start;
}

.case-viewer__stage--page img {
  width: min(100%, 1100px);
  max-height: none;
  border: 2px solid #333;
}

@media (max-width: 860px) {
  .case-modal {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    box-shadow: 6px 6px 0 var(--violet);
  }


  .case-hero,
  .case-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-hero__media {
    order: -1;
  }

  .case-story__aside {
    position: static;
    order: -1;
  }

  .case-hero__actions .button,
  .case-hero__info .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-modal[open] {
    animation: none;
  }

  .case-card--page .case-card__screen img {
    transition: none;
  }
}

/* =========================================================
   Web: computador en lugar del televisor
   El contenedor sigue siendo el del televisor; el computador se escala
   para que su pantalla tenga el mismo ancho que la del TV (71.6 %) y el
   teclado/mouse sobresalen del recuadro.
   pc-frame.webp 1402×1122 · vidrio x 300–1036, y 167–722
   → al 90 %: ancho 122.8 %, alto 121.95 %, left −9 %, top −5 % (del recuadro del TV)
   ========================================================= */

.zhaw-tv__frame--pc {
  display: none;
}

/* si el teclado o el mouse alcanzan el carril o el panel, quedan por detrás */
.zhaw-tv {
  z-index: 0;
}

.channel-rail {
  z-index: 1;
}

.zhaw-tv.is-pc .zhaw-tv__frame:not(.zhaw-tv__frame--pc) {
  display: none;
}

.zhaw-tv.is-pc .zhaw-tv__frame--pc {
  top: -5%;
  left: -9%;
  display: block;
  width: 122.8%;
  height: 121.95%;
}

.zhaw-tv.is-pc .zhaw-tv__screen {
  top: 13.15%;
  left: 17.3%;
  width: 64.4%;
  height: 60.3%;
  border-radius: 5% / 6%;
}

/* botones del monitor (canal) y del mouse (proyecto) */
.zhaw-tv.is-pc .zhaw-tv__knob {
  top: 85.8%;
  width: 2.6%;
}

.zhaw-tv.is-pc .zhaw-tv__knob--prev {
  left: 55.6%;
}

.zhaw-tv.is-pc .zhaw-tv__knob--next {
  left: 59.1%;
}

.zhaw-tv__knob--mouse {
  display: none;
}

.zhaw-tv.is-pc .zhaw-tv__knob--mouse {
  display: block;
  width: 3.6%;
  border-radius: 45% 45% 30% 30%;
}

.zhaw-tv.is-pc .zhaw-tv__knob--mouse-left {
  top: 99.1%;
  left: 96.5%;
}

.zhaw-tv.is-pc .zhaw-tv__knob--mouse-right {
  top: 98.3%;
  left: 102%;
}

/* la estrellita del panel tapaba el mouse del computador */
.projects__stage:has(.zhaw-tv.is-pc) .projects__sticker--star {
  display: none;
}

/* TV: VOL− / VOL+ */
.zhaw-tv__knob--vol-down {
  left: 51.3%;
}

.zhaw-tv__knob--vol-up {
  left: 56.4%;
}

.zhaw-tv.is-pc .zhaw-tv__knob--vol-down,
.zhaw-tv.is-pc .zhaw-tv__knob--vol-up {
  display: none;
}

/* indicador de volumen en pantalla, estilo TV viejo */
.zhaw-tv__osd {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 8%;
  left: 5%;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.7vw, 1.6rem);
  letter-spacing: 0.08em;
  text-shadow: 2px 0 0 rgba(125, 57, 235, 0.9), 0 0 10px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  pointer-events: none;
}

.zhaw-tv__osd[hidden] {
  display: none;
}

/* sin sección fija (tablet / móvil): el computador se ajusta al ancho para que quepan teclado y mouse */
@media (max-width: 1023px), (max-height: 639px) {
  .zhaw-tv.is-pc {
    width: min(81%, 520px);
    margin: 4% auto 12%;
  }
}

/* captura de la página completa que hace scroll dentro del monitor */
.zhaw-tv__site {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.zhaw-tv__site[hidden] {
  display: none;
}

.zhaw-tv__site img {
  display: block;
  width: 100%;
  height: auto;
  animation: site-scroll var(--site-dur, 24s) 1s ease-in-out infinite alternate;
  will-change: transform;
}

.zhaw-tv:hover .zhaw-tv__site img {
  animation-play-state: paused;
}

@keyframes site-scroll {
  0%,
  6% {
    transform: translateY(0);
  }
  94%,
  100% {
    transform: translateY(calc(var(--site-dist, 0px) * -1));
  }
}

.zhaw-tv.is-switching .zhaw-tv__site {
  animation: tv-glitch 0.42s steps(4) both;
}

@media (prefers-reduced-motion: reduce) {
  .zhaw-tv__site img {
    animation: none;
  }
}

/* =========================================================
   Reproductor de video
   ========================================================= */

.video-player {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(56px, 6vw, 72px) clamp(12px, 3vw, 48px) clamp(16px, 3vw, 40px);
  color: var(--white);
  background: rgba(0, 0, 0, 0.94);
  border: 0;
}

.video-player[open] {
  display: grid;
  place-items: center;
  animation: fade 0.25s ease backwards;
}

.video-player::backdrop {
  background: #000;
}

.video-player {
  --video-h: calc(100svh - 120px);
}

.video-player__video {
  display: block;
  width: min(100%, calc(var(--video-h) * var(--ar, 1.7778)));
  height: auto;
  max-height: var(--video-h);
  background: #000;
  box-shadow: 8px 8px 0 var(--violet);
  outline: 2px solid rgba(255, 255, 255, 0.85);
}

.video-player__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
}

.video-player__rotate {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
}

.video-player__rotate[hidden] {
  display: none;
}

.video-player__rotate p {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.video-player__phone {
  width: 54px;
  height: 92px;
  border: 4px solid var(--lime);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--violet);
  animation: phone-rotate 2.2s ease-in-out infinite;
}

@keyframes phone-rotate {
  0%,
  25% {
    transform: rotate(0deg);
  }
  60%,
  100% {
    transform: rotate(-90deg);
  }
}

/* móvil en horizontal: el video ocupa toda la pantalla */
@media (max-width: 1023px) and (orientation: landscape) {
  .video-player {
    --video-h: calc(100svh - 16px);
    padding: 8px 56px 8px 8px;
  }

  .video-player__video {
    box-shadow: none;
    outline: 0;
  }
}

/* =========================================================
   05. EDUCATION
   ========================================================= */

.education,
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(60px, 7.5vw, 120px) clamp(20px, 10vw, 180px) clamp(64px, 8vw, 130px);
  background: #050505 center / cover no-repeat;
}

.education {
  padding-bottom: clamp(40px, 4.5vw, 72px);
  background-image: var(--bg-veil), url("assets/images/education/education-bg.webp");
}

.contact {
  background-image: var(--bg-veil), url("assets/images/contact/contact-bg.webp");
  padding-inline: 22vw 21vw;
  padding-top: clamp(40px, 4.5vw, 72px);
}

.education > .section-index,
.contact > .section-index {
  align-self: flex-start;
}

.education__grid {
  display: grid;
  width: 100%;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  margin: clamp(14px, 2vw, 24px) auto 0;
}

.education__title,
.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.education__kicker,
.contact__kicker {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.education__books {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin-top: clamp(14px, 2vw, 26px);
  transform: rotate(-3deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6));
}

/* timeline */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
  margin: 0;
  padding: 6px 0 6px 38px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 3px;
  content: "";
  background: linear-gradient(var(--violet), var(--lime));
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  position: absolute;
  top: 4px;
  left: -38px;
  width: 21px;
  height: 21px;
  content: "";
  background: var(--violet);
  border: 3px solid #050505;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--violet), 0 0 16px rgba(125, 57, 235, 0.8);
}

.timeline__item:first-child::before {
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--lime), 0 0 16px rgba(198, 255, 51, 0.7);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
}

.timeline__school {
  margin: 4px 0 2px;
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.timeline__degree,
.timeline__dates {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.timeline__dates {
  color: var(--lime);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education__stickers {
  position: relative;
  display: grid;
  justify-items: center;
}

.education__learner {
  width: min(100%, 300px);
  height: auto;
  transform: rotate(6deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6));
}

.education__globe {
  width: min(62%, 190px);
  height: auto;
  margin: -18px 0 0 34%;
  transform: rotate(-8deg);
  animation: bob 6s ease-in-out infinite;
}

/* =========================================================
   06. CONTACT
   ========================================================= */

.contact__grid {
  display: grid;
  width: 100%;
  max-width: 1000px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(20px, 2.6vw, 48px);
  margin: clamp(14px, 2vw, 24px) auto 0;
}

.contact__kicker {
  padding-top: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.contact__copy {
  max-width: 32ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.contact__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(8, 8, 8, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  border-color: var(--lime);
  box-shadow: 5px 5px 0 var(--violet);
  transform: translate(-2px, -2px);
}

.contact-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  color: var(--white);
  background: #1a1a1a;
  border-radius: 8px;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-card__icon--mail {
  color: var(--lime);
  background: rgba(125, 57, 235, 0.3);
}

.contact-card__icon--wa {
  color: var(--white);
  background: #25d366;
}

.contact-card--wa {
  border-color: rgba(37, 211, 102, 0.55);
}

.contact-card__icon--cv {
  color: #050505;
  background: var(--lime);
}

.contact-card__icon--cv svg {
  fill: none;
}

.contact-card__icon--behance {
  background: #1769ff;
}

.contact-card__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-card__text small {
  color: rgba(255, 255, 255, 0.55);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__stickers {
  position: absolute;
  z-index: 1;
  top: 5%;
  right: 21vw;
  display: grid;
  width: clamp(170px, 15vw, 280px);
  justify-items: center;
  pointer-events: none;
}

.contact__grid {
  position: relative;
  z-index: 2;
  margin-top: clamp(90px, 9vw, 170px);
}

.contact__open {
  width: min(100%, 290px);
  height: auto;
  transform: rotate(-5deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6));
}

.contact__badge {
  display: inline-block;
  margin: 18px 0 0;
  padding: 5px 10px 4px;
  color: var(--black);
  background: var(--lime);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.contact__plane {
  position: absolute;
  top: 30%;
  left: -95%;
  width: clamp(90px, 8vw, 150px);
  height: auto;
  animation: fly 5s ease-in-out infinite;
}

@keyframes fly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  50% {
    transform: translate(14px, -12px) rotate(2deg);
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  padding: 40px clamp(20px, 5vw, 96px) 34px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__inner {
  display: flex;
  max-width: 1400px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 36px;
  margin: 0 auto;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__brand img {
  width: 104px;
  height: auto;
}

.site-footer__brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer__nav a,
.site-footer__copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__nav a:hover {
  color: var(--lime);
}

.site-footer__social {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--lime);
  transform: translateY(-3px);
}

.site-footer__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-footer__copy {
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.site-footer__dot {
  margin: 0 6px;
  color: var(--lime);
}

/* CV en el footer: opción de empleabilidad, discreta */
.site-footer__cv {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 12px;
  color: var(--white);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer__cv:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.site-footer__cv svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__cv span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer__top {
  position: absolute;
  top: -24px;
  right: clamp(20px, 5vw, 96px);
  background: var(--black);
  border-radius: 50%;
}

/* =========================================================
   Responsive — Education / Contact / Footer
   ========================================================= */

@media (max-width: 1100px) {
  .education,
  .contact {
    min-height: 0;
    padding-inline: clamp(20px, 7vw, 70px);
  }

  .education__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .contact {
    padding-inline: clamp(20px, 7vw, 70px);
  }

  .education::before,
  .contact::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(0, 0, 0, 0.55);
  }

  .education > *,
  .contact > * {
    position: relative;
  }

  .contact__grid {
    margin-top: 0;
  }

  .contact__stickers {
    position: static;
    top: auto;
    right: auto;
    order: 3;
    width: auto;
    margin-top: 30px;
  }

  .contact__plane {
    position: static;
  }

  .education__stickers,
  .contact__stickers {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .education__globe,
  .contact__plane {
    margin: 0;
  }
}

@media (max-width: 820px) {
  .education,
  .contact {
    padding: 64px 20px 80px;
    background-position: 20% center;
  }


  .education__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .education__books {
    width: min(70%, 260px);
  }

  .education__learner,
  .contact__open {
    width: min(46vw, 220px);
  }

  .education__globe,
  .contact__plane {
    width: min(28vw, 140px);
  }


  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .education__globe,
  .contact__plane,
  .contact-card {
    animation: none;
    transition: none;
  }
}

/* Nav: tighter between tablet and small desktop so nothing overflows */
@media (min-width: 821px) and (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    padding-right: 10px;
    font-size: 0.72rem;
  }

  .main-nav a::before {
    display: none;
  }

  .smiley {
    display: none;
  }
}


/* Hero en tablet horizontal: stickers reubicados (va al final para ganarle a las reglas base) */
@media (max-width: 1180px) and (min-width: 821px) {
  .floater--star {
    left: 50%;
  }

  .floater--bolt {
    top: 33%;
    left: 44%;
  }

  .parental-sticker {
    left: 47%;
  }
}

/* =========================================================
   MÓVIL — menú flotante tipo app (dock)
   Solo se muestra en pantallas ≤ 820 px; en escritorio sigue el header.
   ========================================================= */

.dock,
.dock-scrim {
  display: none;
}

@media (max-width: 820px) {
  :root {
    --header-height: 0px;
    --dock-space: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    display: none;
  }

  .dock-scrim {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
  }

  .dock-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .dock {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: block;
    max-width: 440px;
    margin-inline: auto;
    font-family: "Barlow Condensed", Arial, sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .modal-open .dock,
  .modal-open .dock-scrim {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }

  .dock__bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    align-items: center;
    height: 66px;
    padding: 0 6px;
    background: rgba(16, 16, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    transition: height 0.3s ease;
  }

  .dock__item {
    display: flex;
    min-width: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .dock__item svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dock__item span {
    max-height: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .dock__item.is-active {
    color: var(--lime);
  }

  .dock__item.is-active svg {
    filter: drop-shadow(0 0 6px rgba(198, 255, 51, 0.45));
  }

  .dock__toggle {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    justify-self: center;
    margin-top: -26px;
    padding: 0;
    color: var(--black);
    background: var(--lime);
    border: 4px solid #050505;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 22px rgba(125, 57, 235, 0.45);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.25s ease, color 0.25s ease, margin 0.3s ease;
  }

  .dock__toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    transition: transform 0.3s ease;
  }

  .dock.is-open .dock__toggle {
    color: var(--white);
    background: var(--violet);
  }

  .dock.is-open .dock__toggle svg {
    transform: rotate(135deg);
  }

  /* Compacto al bajar: solo iconos */
  .dock.is-compact .dock__bar {
    height: 54px;
  }

  .dock.is-compact .dock__item span {
    max-height: 0;
    opacity: 0;
  }

  .dock.is-compact .dock__toggle {
    width: 50px;
    height: 50px;
    margin-top: -18px;
  }

  /* Hoja que se despliega sobre la barra */
  .dock__sheet {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    left: 0;
    padding: 18px 16px 16px;
    background: rgba(14, 14, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.97);
    transform-origin: 50% 100%;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s linear 0.3s;
  }

  .dock.is-open .dock__sheet {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s;
  }

  .dock__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dock__links a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 12px 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .dock__links span {
    color: var(--lime);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .dock__links b {
    overflow: hidden;
    padding-top: 0.12em;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dock__links a.is-active {
    background: rgba(198, 255, 51, 0.12);
    border-color: rgba(198, 255, 51, 0.5);
  }

  .dock__extras {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }

  .dock__lang {
    display: flex;
    flex: none;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
  }

  .dock__lang button {
    min-width: 44px;
    height: 38px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .dock__lang button.is-active {
    color: var(--black);
    background: var(--white);
  }

  .dock__cv {
    display: flex;
    height: 46px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--black);
    background: var(--lime);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dock__cv svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .site-footer {
    padding-bottom: calc(var(--dock-space) + 12px);
  }

  /* Velo negro más marcado en Educación y Contacto para que el texto pese sobre el collage */
  .education::before,
  .contact::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.66) 32%, rgba(5, 5, 5, 0.72) 70%, rgba(5, 5, 5, 0.94) 100%),
      rgba(0, 0, 0, 0.45);
  }

  /* =======================================================
     MÓVIL — hero con foto y logo más compacto
     ======================================================= */

  .hero {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 calc(var(--dock-space) + 6px);
    background-position: 35% center;
  }

  .hero__decor {
    display: block;
    width: 100%;
    opacity: 0.5;
  }

  .hero__portrait-frame {
    display: block;
  }

  .hero__portrait-frame::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58%;
    content: "";
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.82) 42%, #050505 78%);
  }

  .hero__portrait {
    top: max(18px, 3svh);
    left: 64%;
    height: min(86svh, 205vw);
  }

  .hero__content {
    width: calc(100% - 36px);
    margin-inline: auto;
    padding: 0;
  }

  .hero__lockup {
    width: min(56vw, 250px);
    margin: 0 0 14px;
  }

  .hero__statement {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .hero__statement strong {
    margin-bottom: 4px;
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero__actions .button {
    min-width: 0;
    min-height: 50px;
    gap: 8px;
    padding-inline: 16px 12px;
    font-size: 1rem;
  }

  .mascot {
    position: absolute;
    top: max(14px, 2.5svh);
    left: 8px;
    width: min(26vw, 110px);
    margin: 0;
    transform: rotate(-8deg);
  }

  .mobile-note {
    display: none;
  }

  /* =======================================================
     MÓVIL — Proyectos en una sola pantalla:
     filtros + TV/PC + ficha compacta + canales
     ======================================================= */

  .projects {
    --rail-h: 92px;
    --tv-room: calc(100svh - var(--dock-space) - 400px);
  }

  .projects__pin {
    min-height: 100svh;
    gap: 10px;
    padding: max(12px, 2svh) 14px var(--dock-space);
  }

  .projects__pin > .section-index {
    display: none;
  }

  .projects__stage {
    gap: 10px;
  }

  .projects__filters {
    gap: 6px;
  }

  .filter-tape.is-active .filter-tape__off {
    opacity: 0;
  }

  .filter-tape:hover {
    transform: none;
  }

  .zhaw-tv {
    width: min(100%, calc(var(--tv-room) * 1.24));
  }

  .zhaw-tv.is-pc {
    width: min(76%, calc(var(--tv-room) * 0.9));
    margin: 2% auto 10%;
  }

  .zhaw-tv__channel {
    font-size: 0.85rem;
  }

  .project-panel {
    gap: 7px;
    padding: 12px 14px 14px;
  }

  .projects__sticker--crown,
  .projects__sticker--star {
    display: none;
  }

  .project-panel__top {
    position: absolute;
    top: 10px;
    right: 12px;
    gap: 8px;
  }

  .project-panel__counter {
    padding: 4px 10px 5px;
    font-size: 1rem;
  }

  .project-panel__arrows {
    gap: 6px;
  }

  .project-panel__arrows .icon-button {
    width: 36px;
    height: 36px;
  }

  .project-panel__arrows .icon-button svg {
    width: 18px;
    height: 18px;
  }

  .project-panel__title {
    min-height: 36px;
    justify-content: flex-end;
    padding-right: 150px;
    font-size: clamp(1.45rem, 6.6vw, 1.9rem);
  }

  .project-panel__title-main {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.55em;
    letter-spacing: 0.04em;
  }

  .project-panel__title-highlight {
    margin-top: 0;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  }

  .project-panel__tags {
    flex-wrap: nowrap;
    margin: 2px -14px 0 0;
    padding-right: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .project-panel__tags::-webkit-scrollbar {
    display: none;
  }

  .project-panel__tags li {
    flex: none;
    padding: 4px 7px 3px;
    font-size: 0.7rem;
  }

  .project-panel__description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .project-panel__metric {
    padding: 3px 8px;
    font-size: 0.82rem;
  }

  .project-panel__actions {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 2px;
  }

  .project-panel__actions .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    gap: 6px;
    padding: 8px 12px 8px 14px;
    font-size: 0.95rem;
  }

  .project-panel__actions .button__arrow {
    font-size: 1.4rem;
  }

  .channel-rail {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .channel-rail__track {
    gap: 10px;
    height: var(--rail-h);
    padding: 4px 0 2px;
  }

  .channel-card__button {
    width: 112px;
    gap: 4px;
    padding: 5px 5px 6px;
    border-width: 2px;
  }

  .channel-card__button::before {
    height: 10px;
  }

  .channel-card__number {
    padding: 2px 4px 0;
    font-size: 0.78rem;
  }

  .channel-card__name {
    font-size: 0.72rem;
  }

  .channel-card__crown {
    width: 34px;
  }
}

/* Pantallas bajitas (iPhone SE y similares): ficha aún más compacta */
@media (max-width: 820px) and (max-height: 700px) {
  .projects {
    --rail-h: 76px;
    --tv-room: calc(100svh - var(--dock-space) - 370px);
  }

  .project-panel__metric {
    display: none;
  }

  .channel-card__button {
    width: 96px;
  }
}

/* Lista de proyectos visible solo si el navegador no ejecuta JavaScript */
.projects__noscript {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 20px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.projects__noscript a {
  color: var(--lime);
}
