:root {
  --bg: #0c1117;
  --bg-2: #10161d;
  --panel: rgba(16, 22, 29, 0.72);
  --panel-2: rgba(22, 30, 39, 0.84);
  --text: #eef2f5;
  --muted: #93a3b0;
  --accent: #ffffff;
  --accent-2: #facc15;
  --gold: #ffd166;
  --border: rgba(80, 130, 160, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(250, 204, 21, 0.09), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(56, 130, 180, 0.10), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, #070a0e);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: visible;
}

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

img {
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  z-index: 50;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.14), transparent 65%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
}

.hero {
  min-height: 100vh;
  padding: 28px 8% 80px;
  position: relative;
}

/* Decorative triangle pattern removed for a cleaner background. */

.navbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 8% 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(12, 7, 16, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: opacity .35s ease, transform .35s ease;
}

.navbar.nav-hidden {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  color: var(--accent);
}

.logo .mc-accent {
  color: var(--accent-2);
  text-shadow:
    0 0 2px var(--accent-2),
    0 0 6px rgba(250, 204, 21, 0.45);
}

.logo-textwrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 17, 23, 0.6);
}

.studio-badge img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.studio-badge .studio-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.studio-badge .studio-text b {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.logo-img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .92rem;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 12px;
  transition: .25s ease;
}

.nav-links a:hover {
  color: #0c0610;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.30);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.hero-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.hero-visual {
  width: 100%;
  max-width: 389px;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 50px rgba(250, 204, 21, 0.16));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 16px;
}

.tag,
.section-tag {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .78rem;
  margin-bottom: 14px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  max-width: 661px;
  color: var(--text);
}

.hero-text {
  max-width: 661px;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 400;
  margin: 0;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
  padding: 22px 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  max-width: 661px;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.hero-stats:hover {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: var(--shadow), 0 22px 70px rgba(250, 204, 21, 0.10);
}

.hero-stats__item {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.hero-stats__item:last-child {
  border-right: none;
}

.hero-stats__item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.hero-stats__item span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
}

.hero-buttons,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn,
.contact-links a {
  position: relative;
  overflow: hidden;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 900;
  transition: .25s ease;
  isolation: isolate;
}

.btn::before,
.contact-links a::before,
.project-card::before,
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: .25s ease;
  z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-100%);
}

.btn:hover::before,
.contact-links a:hover::before,
.project-card:hover::before,
.skill-card:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.primary {
  background: var(--accent-2);
  color: #0a1015;
  border-color: transparent;
  box-shadow: 0 14px 42px rgba(250, 204, 21, 0.20);
}

.secondary,
.contact-links a {
  background: rgba(255,255,255,.045);
}

.btn:hover,
.contact-links a:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(250, 204, 21, 0.45);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 50px;
  max-width: 460px;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
}

.stats strong {
  display: block;
  color: var(--accent-2);
  font-size: 1.45rem;
}

.stats span {
  color: var(--muted);
  font-size: .86rem;
}

.hero-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 661px;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  background: linear-gradient(180deg, rgba(20, 28, 36, 0.88), rgba(10, 14, 18, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.hero-card:hover {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: var(--shadow), 0 22px 70px rgba(250, 204, 21, 0.10);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px -40px;
  height: 190px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.20), transparent 70%);
}

.hero-card h2 {
  font-size: 2.125rem;
}

.hero-card p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 1.125rem;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.social-icons a,
.social-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.social-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 8px 16px rgba(250, 204, 21, 0.35));
}

.social-icons__soon {
  opacity: .4;
  cursor: default;
}

.section {
  padding: 96px 8%;
  border-top: 1px solid rgba(255,255,255,.07);
  position: relative;
}

.section h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.about p:last-child,
.contact p,
.heading-note,
.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-intro {
  max-width: 900px;
  margin-bottom: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.projects-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.skill-card,
.project-card,
.timeline div {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 12px 50px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 16px 20px 14px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill-card__index {
  font-size: .85rem;
  font-weight: 900;
  color: var(--accent-2);
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.skill-card:hover,
.project-card:hover,
.timeline div:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 22px 70px rgba(250, 204, 21, 0.10);
}

.skill-card h3,
.project-card h3,
.timeline h3 {
  font-size: 1.18rem;
  margin: 12px 0 8px;
}

.skill-card p,
.project-card p,
.timeline p {
  color: var(--muted);
}

.project-card {
  min-height: 260px;
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.portada {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.placeholder-card {
  cursor: default;
  border-style: dashed;
  border-color: var(--border);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-card:hover {
  transform: none;
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: none;
}

.placeholder-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.placeholder-card h3 {
  color: var(--muted);
}

.project-card span {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.timeline div {
  padding: 28px;
}

.timeline span {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 20px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
  transform: rotate(45deg);
}

.contact {
  text-align: center;
}

.contact p {
  max-width: 720px;
  margin: 0 auto 28px;
}

.contact-links {
  justify-content: center;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.social-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .045);
  transition: .25s ease;
}

.social-grid__item img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  image-rendering: pixelated;
}

a.social-grid__item:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 14px 30px rgba(250, 204, 21, 0.16);
}

.social-grid__item--soon {
  opacity: .5;
  cursor: default;
}

footer {
  padding: 32px 8%;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.07);
}

/* IMPORTANTE:
   Por defecto todo queda visible.
   Solo se oculta para animación cuando JavaScript funciona.
   Así GitHub Pages no deja los proyectos invisibles si script.js falla.
*/
.reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .75s ease;
}

body.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transform-style: preserve-3d;
}

@media (max-width: 920px) {
  .hero-content,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-right {
    order: -1;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
  }
}

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

  .navbar {
    align-items: flex-start;
    flex-direction: column;
    top: 8px;
  }

  h1 {
    letter-spacing: -2px;
  }

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

  .section-heading {
    display: block;
  }
}

@media (max-width: 768px) {
  .logo-img {
    width: 20px;
    height: 20px;
  }

  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 20px;
    min-height: auto;
  }

  .navbar {
    position: relative;
    top: 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 18px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
    min-height: auto;
    text-align: center;
    padding-top: 40px;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero .tag {
    position: static;
    margin-bottom: 22px;
  }

  .hero-left {
    padding-top: 0;
  }

  h1 {
    font-size: 2.8rem;
    line-height: 1.05;
    letter-spacing: -1px;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-card {
    width: 100%;
    max-width: 380px;
    min-height: auto;
    margin: auto;
  }

  .stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .about {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .section {
    padding: 70px 20px;
  }

  .section h2 {
    font-size: 2rem;
    text-align: center;
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: 100%;
    min-height: auto;
  }

  .portada {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-links a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
/* Showcase gallery */
.showcase-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.showcase-filters__pill {
  appearance: none;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}

.showcase-filters__pill:hover {
  border-color: rgba(250, 204, 21, 0.4);
  color: var(--text);
}

.showcase-filters__pill.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #1a1400;
}

.showcase-card.is-filtered-out {
  display: none;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.showcase-card {
  position: relative;
  appearance: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 20px 60px rgba(250, 204, 21, 0.10);
  outline: none;
}

.showcase-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card > img.showcase-card__brand {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 87px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 1;
}

.showcase-card:hover .showcase-card__brand,
.showcase-card:focus-visible .showcase-card__brand {
  opacity: .9;
  transform: translateY(0);
}

.showcase-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 10, .92) 68%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  text-align: left;
  pointer-events: none;
}

.showcase-card:hover .showcase-overlay,
.showcase-card:focus-visible .showcase-overlay,
.showcase-card:active .showcase-overlay {
  opacity: 1;
  transform: translateY(0);
}

.showcase-overlay__avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .25);
}

.showcase-overlay__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  overflow: hidden;
}

.showcase-overlay__text strong {
  font-size: .92rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-overlay__text span {
  font-size: .78rem;
  color: var(--muted);
}

.showcase-card--placeholder {
  cursor: default;
  display: flex;
}

.showcase-card--placeholder:hover,
.showcase-card--placeholder:focus-visible {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 12px 50px rgba(0,0,0,.18);
}

.showcase-card--placeholder .showcase-card__watermark {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .5;
}

.showcase-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.showcase-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.showcase-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 7, 18, .86);
  backdrop-filter: blur(9px);
  cursor: pointer;
}

.showcase-modal-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.showcase-modal-content img {
  width: auto;
  height: auto;
  max-width: min(864px, 88vw);
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

.showcase-modal-content h3 {
  margin: 14px 44px 0 4px;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 800;
}

.showcase-modal-close {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(5, 10, 22, .78);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.showcase-modal-nav {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(5, 10, 22, .78);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s ease, color .25s ease, opacity .25s ease, transform .25s ease;
}

.showcase-modal-nav svg {
  width: 22px;
  height: 22px;
}

.showcase-modal-nav span {
  display: block;
  transform: translateY(-1px);
}

.showcase-modal-nav:hover {
  border-color: rgba(250, 204, 21, 0.5);
  color: var(--accent-2);
  transform: scale(1.06);
}

body.showcase-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .showcase-card {
    border-radius: 16px;
  }

  .showcase-modal {
    padding: 8px;
    gap: 6px;
  }

  .showcase-modal-content {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .showcase-modal-close {
    top: 18px;
    right: 18px;
  }

  .showcase-modal-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
}

/* Larger showcase tiles */
.showcase-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
