/*
  DPMO-KRG — Project Showcase
  Cinematic full-screen presentation CSS
  Designed for showroom / projection environments
*/

/* ─── Design Tokens ─── */
:root {
  --ink: #0d0f14;
  --charcoal: #1a1d25;
  --paper: #f2f1f1;
  --gold: #d2a639;
  --teal: #4daeb5;
  --steel: #979da9;
  --muted: rgba(242, 241, 241, 0.58);
  --glass: rgba(242, 241, 241, 0.06);
  --glass-border: rgba(242, 241, 241, 0.12);
  --slide-duration: 8s;

  /* TV scaling factor — drives all size tokens */
  --tv-scale: 1;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* ─── Particle Canvas ─── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

/* ─── Top Bar ─── */
.showcase-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(80px * var(--tv-scale));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(3rem, 4vw, 6rem);
  background: linear-gradient(to bottom, rgba(13, 15, 20, 0.72), transparent);
  animation: barReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes barReveal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.showcase-logo {
  width: calc(46px * var(--tv-scale));
  height: calc(46px * var(--tv-scale));
  border-radius: 14px;
  background: rgba(242, 241, 241, 0.95);
  border: 1px solid rgba(210, 166, 57, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  padding: 3px;
}

.showcase-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.showcase-brand-text strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.1vw, 2rem);
  letter-spacing: 0.01em;
}

.showcase-brand-text span {
  color: var(--steel);
  font-size: clamp(0.68rem, 0.7vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.12rem;
}

/* Counter */
.showcase-counter {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.counter-current {
  font-size: clamp(2rem, 2.4vw, 4rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-divider {
  color: rgba(242, 241, 241, 0.25);
  font-size: clamp(1.4rem, 1.7vw, 2.8rem);
  font-weight: 300;
  margin: 0 0.15rem;
}

.counter-total {
  font-size: clamp(1.1rem, 1.3vw, 2.2rem);
  font-weight: 500;
  color: var(--steel);
}

/* Controls */
.showcase-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ctrl-btn {
  width: clamp(46px, 3.2vw, 72px);
  height: clamp(46px, 3.2vw, 72px);
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--paper);
  font-size: clamp(1.25rem, 1.4vw, 2.2rem);
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ctrl-btn:hover {
  background: rgba(77, 174, 181, 0.18);
  border-color: rgba(77, 174, 181, 0.35);
  transform: scale(1.08);
}

.ctrl-playpause {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.ctrl-fullscreen svg,
.ctrl-home svg {
  transition: transform 0.25s ease;
}

.ctrl-fullscreen:hover svg,
.ctrl-home:hover svg {
  transform: scale(1.12);
}

.hidden {
  display: none !important;
}

/* ─── Progress Ring ─── */
.progress-ring-wrapper {
  position: fixed;
  bottom: clamp(2.5rem, 3vh, 5rem);
  right: clamp(3rem, 3.5vw, 6rem);
  z-index: 100;
  width: clamp(56px, 4.2vw, 90px);
  height: clamp(56px, 4.2vw, 90px);
  animation: barReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(242, 241, 241, 0.08);
  stroke-width: 2;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 301.59;
  /* 2 * PI * 48 */
  stroke-dashoffset: 301.59;
}

.progress-ring-fill.animating {
  animation: progressFill var(--slide-duration) linear forwards;
}

@keyframes progressFill {
  from {
    stroke-dashoffset: 301.59;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* ─── Stage ─── */
.showcase-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
}

/* ─── Individual Slide ─── */
.showcase-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.showcase-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
  will-change: opacity, transform;
}

/* Contain paint/layout for off-screen slides */
.showcase-slide:not(.active):not(.exiting) {
  contain: strict;
}

/* Background image layer */
.slide-bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(1.15);
  transform: scale(1);
  transition: none;
}

.showcase-slide.active .slide-bg {
  animation: slideBgZoom 12s ease-out forwards;
}

@keyframes slideBgZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* Dark overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg,
      rgba(13, 15, 20, 0.92) 0%,
      rgba(13, 15, 20, 0.78) 35%,
      rgba(13, 15, 20, 0.45) 70%,
      rgba(13, 15, 20, 0.25) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(210, 166, 57, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(77, 174, 181, 0.06), transparent 40%);
}

/* ─── Slide Content (Left Side) ─── */
.slide-content {
  position: relative;
  z-index: 10;
  padding: 0 clamp(3.5rem, 3vw, 5rem) 0 clamp(5rem, 5vw, 8rem);
  max-width: 780px;
}

/* Staggered entrance for each child */
.showcase-slide.active .slide-content>* {
  animation: contentReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.showcase-slide.active .slide-chip {
  animation-delay: 0.15s;
}

.showcase-slide.active .slide-title {
  animation-delay: 0.28s;
}

.showcase-slide.active .slide-desc {
  animation-delay: 0.40s;
}

.showcase-slide.active .slide-meta-row {
  animation-delay: 0.52s;
}

.showcase-slide.active .slide-tags {
  animation-delay: 0.62s;
}

.showcase-slide.active .slide-achievements {
  animation-delay: 0.70s;
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Chip / badge */
.slide-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.5rem, 0.6vh, 0.85rem) clamp(1rem, 1.2vw, 1.8rem);
  border-radius: 999px;
  background: rgba(77, 174, 181, 0.12);
  border: 1px solid rgba(77, 174, 181, 0.35);
  color: var(--teal);
  font-size: clamp(0.72rem, 0.8vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(1.4rem, 1.8vh, 2.5rem);
}

.slide-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(77, 174, 181, 0.2);
}

.slide-chip .chip-icon {
  font-size: 1rem;
  margin-right: 0.15rem;
}

/* Title */
.slide-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: clamp(1.3rem, 1.8vh, 2.8rem);
  max-width: 700px;
}

.slide-title .title-accent {
  color: var(--gold);
}

/* Description */
.slide-desc {
  font-size: clamp(1.05rem, 1.2vw, 1.85rem);
  line-height: 1.8;
  color: rgba(242, 241, 241, 0.72);
  max-width: 580px;
  margin-bottom: clamp(1.6rem, 2vh, 3rem);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta row */
.slide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: clamp(0.55rem, 0.7vh, 1rem) clamp(0.9rem, 1vw, 1.6rem);
  border-radius: 14px;
  background: rgba(242, 241, 241, 0.06);
  border: 1px solid rgba(242, 241, 241, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(0.78rem, 0.9vw, 1.4rem);
  font-weight: 600;
  color: rgba(242, 241, 241, 0.85);
}

.meta-pill .meta-label {
  color: var(--steel);
  font-weight: 500;
  font-size: clamp(0.68rem, 0.75vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-pill .meta-value {
  font-weight: 700;
  color: var(--paper);
}

/* Tags */
.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.slide-tag {
  padding: clamp(0.4rem, 0.5vh, 0.7rem) clamp(0.85rem, 1vw, 1.4rem);
  border-radius: 999px;
  background: rgba(242, 241, 241, 0.07);
  border: 1px solid rgba(242, 241, 241, 0.1);
  font-size: clamp(0.72rem, 0.8vw, 1.25rem);
  font-weight: 700;
  color: rgba(242, 241, 241, 0.7);
  letter-spacing: 0.02em;
}

/* Achievements */
.slide-achievements {
  display: grid;
  gap: 0.6rem;
  max-width: 520px;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: clamp(0.88rem, 1vw, 1.55rem);
  line-height: 1.55;
  color: rgba(242, 241, 241, 0.72);
}

.achievement-item::before {
  content: "→";
  color: var(--gold);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ─── Slide Visual (Right Side) ─── */
.slide-visual {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 2.5vw, 4rem);
}

/* Screenshot mockup — fills the right column as much as possible */
.visual-mockup {
  position: relative;
  /* Grows from 580px up to ~900px on wide/TV screens */
  width: clamp(480px, 46vw, 960px);
  border-radius: clamp(18px, 1.5vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(242, 241, 241, 0.14);
  background: rgba(26, 29, 37, 0.85);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(242, 241, 241, 0.06),
    inset 0 1px 0 rgba(242, 241, 241, 0.08);
  transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-slide.active .visual-mockup {
  animation: mockupReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes mockupReveal {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) translateX(60px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateX(0) scale(1);
  }
}

/* Browser chrome */
.mockup-chrome {
  height: clamp(38px, 3vh, 58px);
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.5vw, 0.7rem);
  padding: 0 clamp(1rem, 1.2vw, 1.8rem);
  background: rgba(242, 241, 241, 0.07);
  border-bottom: 1px solid rgba(242, 241, 241, 0.08);
}

.chrome-dot {
  width: clamp(9px, 0.7vw, 14px);
  height: clamp(9px, 0.7vw, 14px);
  border-radius: 50%;
  background: rgba(242, 241, 241, 0.2);
}

.chrome-dot:first-child {
  background: rgba(255, 95, 86, 0.65);
}

.chrome-dot:nth-child(2) {
  background: rgba(255, 189, 46, 0.65);
}

.chrome-dot:nth-child(3) {
  background: rgba(40, 201, 64, 0.65);
}

.chrome-url {
  flex: 1;
  height: 14px;
  margin-left: 0.6rem;
  border-radius: 999px;
  background: rgba(242, 241, 241, 0.07);
}

/* Screenshot image */
.mockup-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(13, 15, 20, 0.4);
}

.screen-blur-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.6);
  opacity: 0.8;
  z-index: 1;
}

.screen-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mockup-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 29, 37, 0.35), transparent 50%);
  pointer-events: none;
  z-index: 3;
}

/* Floating accent glow behind mockup */
.visual-glow {
  position: absolute;
  width: clamp(380px, 30vw, 600px);
  height: clamp(380px, 30vw, 600px);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  z-index: -1;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    transform: scale(1);
    opacity: 0.18;
  }

  100% {
    transform: scale(1.15);
    opacity: 0.28;
  }
}

/* Ecosystem badge on mockup */
.mockup-ecosystem {
  position: absolute;
  bottom: clamp(10px, 1.2vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: clamp(0.5rem, 0.6vh, 0.85rem) clamp(1rem, 1.2vw, 1.8rem);
  border-radius: 999px;
  background: rgba(26, 29, 37, 0.88);
  border: 1px solid rgba(242, 241, 241, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: clamp(0.72rem, 0.8vw, 1.25rem);
  font-weight: 700;
  color: rgba(242, 241, 241, 0.85);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mockup-ecosystem strong {
  color: var(--gold);
}

/* ─── Exit Animations ─── */
.showcase-slide.exiting .slide-content>* {
  animation: contentExit 0.55s cubic-bezier(0.55, 0, 1, 0.45) both;
}

.showcase-slide.exiting .slide-content .slide-chip {
  animation-delay: 0s;
}

.showcase-slide.exiting .slide-content .slide-title {
  animation-delay: 0.04s;
}

.showcase-slide.exiting .slide-content .slide-desc {
  animation-delay: 0.08s;
}

.showcase-slide.exiting .slide-content .slide-meta-row {
  animation-delay: 0.12s;
}

.showcase-slide.exiting .slide-content .slide-tags {
  animation-delay: 0.14s;
}

.showcase-slide.exiting .slide-content .slide-achievements {
  animation-delay: 0.16s;
}

.showcase-slide.exiting .visual-mockup {
  animation: mockupExit 0.55s cubic-bezier(0.55, 0, 1, 0.45) both;
  animation-delay: 0.05s;
}

@keyframes contentExit {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-24px);
    filter: blur(3px);
  }
}

@keyframes mockupExit {
  from {
    opacity: 1;
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) scale(1);
  }

  to {
    opacity: 0;
    transform: perspective(1200px) rotateY(4deg) rotateX(-2deg) translateX(-40px) scale(0.94);
  }
}

/* Background crossfade */
.showcase-slide.exiting .slide-bg {
  transition: opacity 0.8s ease;
  opacity: 0;
}

.showcase-slide.active .slide-bg {
  animation: slideBgZoom 12s ease-out forwards, slideBgFadeIn 0.9s ease both;
}

@keyframes slideBgFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ─── Timeline Nav ─── */
.showcase-timeline {
  position: fixed;
  bottom: clamp(2.5rem, 3vh, 5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 0.8vw, 1.2rem);
  padding: clamp(0.55rem, 0.7vh, 1rem) clamp(1.1rem, 1.4vw, 2rem);
  border-radius: 999px;
  background: rgba(26, 29, 37, 0.65);
  border: 1px solid rgba(242, 241, 241, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: barReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.timeline-dot {
  width: clamp(10px, 0.8vw, 16px);
  height: clamp(10px, 0.8vw, 16px);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(242, 241, 241, 0.22);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.timeline-dot:hover {
  background: rgba(242, 241, 241, 0.45);
}

.timeline-dot.active {
  width: clamp(38px, 3vw, 60px);
  background: var(--gold);
  box-shadow: 0 0 12px rgba(210, 166, 57, 0.35);
}

/* ─── Grain / Texture Overlay ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

/* ─── Responsive ─── */
@media (max-width: 1080px) {
  .showcase-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .slide-content {
    padding: 100px 2.5rem 0;
    max-width: 100%;
    order: 1;
  }

  .slide-visual {
    order: 2;
    padding: 1.5rem 2rem 5rem;
  }

  .visual-mockup {
    width: min(85%, 480px);
    transform: none;
  }

  .showcase-slide.active .visual-mockup {
    animation: mockupRevealMobile 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  }

  @keyframes mockupRevealMobile {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.94);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .slide-title {
    font-size: clamp(2rem, 5.5vw, 3rem);
  }
}

@media (max-width: 760px) {
  .showcase-bar {
    padding: 0 1.25rem;
    height: 68px;
  }

  .showcase-brand-text {
    display: none;
  }

  .slide-content {
    padding: 80px 1.25rem 0;
  }

  .slide-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .slide-desc {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .meta-pill {
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
  }

  .visual-mockup {
    width: min(90%, 360px);
  }

  .progress-ring-wrapper {
    bottom: 1.5rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }

  .showcase-timeline {
    bottom: 1.5rem;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
  }

  .timeline-dot {
    width: 8px;
    height: 8px;
  }

  .timeline-dot.active {
    width: 28px;
  }
}

@media (max-width: 480px) {
  .showcase-counter {
    display: none;
  }

  .slide-content {
    padding: 72px 0.85rem 0;
  }

  .slide-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
    letter-spacing: -0.04em;
  }

  .slide-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-achievements {
    display: none;
  }

  .slide-visual {
    padding: 1rem 0.85rem 4.5rem;
  }
}

/* Landscape short viewport */
@media (max-height: 600px) and (orientation: landscape) {
  .showcase-slide {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 1fr;
  }

  .slide-content {
    padding: 80px 2rem 1rem 3rem;
  }

  .slide-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 0.7rem;
  }

  .slide-desc {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-achievements {
    display: none;
  }
}

/* ─── Large Screen / TV Optimisation (≥ 1920px) ─── */
@media (min-width: 1920px) {
  :root {
    --tv-scale: 1.55;
  }

  /* Push the two-column split so the visual gets ~55% of the width */
  .showcase-slide {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .slide-content {
    padding: 0 3rem 0 6vw;
    max-width: 50vw;
  }

  .slide-title {
    font-size: clamp(3.5rem, 5.5vw, 7.5rem);
    max-width: 44vw;
  }

  .slide-desc {
    font-size: clamp(1.3rem, 1.6vw, 2.2rem);
    max-width: 42vw;
    -webkit-line-clamp: 4;
  }

  /* Larger mockup for TV */
  .visual-mockup {
    width: clamp(700px, 52vw, 1100px);
  }

  /* Bigger SVG icons in controls */
  .ctrl-fullscreen svg,
  .ctrl-home svg {
    width: clamp(24px, 1.8vw, 36px);
    height: clamp(24px, 1.8vw, 36px);
  }
}

/* ─── 4K screens (≥ 2560px) ─── */
@media (min-width: 2560px) {
  :root {
    --tv-scale: 2.2;
  }

  .showcase-slide {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .slide-content {
    padding: 0 2rem 0 7vw;
    max-width: 46vw;
  }

  .slide-title {
    font-size: clamp(5rem, 6vw, 10rem);
    max-width: 42vw;
  }

  .slide-desc {
    font-size: clamp(1.6rem, 1.9vw, 2.8rem);
    -webkit-line-clamp: 4;
  }

  .visual-mockup {
    width: clamp(900px, 54vw, 1400px);
  }
}