/*
 * Showcase V2 — a deliberately isolated polish layer for the home experience.
 * The generative scene and content engine remain untouched underneath.
 */

:root {
  --showcase-accent: #aa8cff;
  --showcase-accent-soft: rgba(170, 140, 255, 0.22);
  --showcase-ink: rgba(242, 245, 255, 0.96);
  --showcase-muted: rgba(221, 228, 250, 0.72);
  --showcase-line: rgba(235, 240, 255, 0.2);
  --showcase-ease: cubic-bezier(0.2, 0.82, 0.22, 1);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 11, 22, 0.94);
  color: var(--showcase-ink);
  font: 650 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 180ms var(--showcase-ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--showcase-accent);
  outline-offset: 2px;
}

/* Visible positioning statement */
#main.home-intro {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
  pointer-events: none;
  transition: opacity 320ms var(--showcase-ease), visibility 320ms linear;
}

.home-intro__content {
  position: absolute;
  left: clamp(34px, 5.2vw, 84px);
  top: 49%;
  width: min(460px, 37vw);
  box-sizing: border-box;
  padding-left: clamp(17px, 1.6vw, 24px);
  transform: translateY(-50%);
  color: var(--showcase-ink);
  pointer-events: auto;
  isolation: isolate;
  opacity: 0;
  animation: homeIntroIn 900ms 180ms var(--showcase-ease) forwards;
}

.home-intro__content::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -72px -110px -72px -64px;
  background: radial-gradient(
    ellipse at 22% 50%,
    rgba(5, 8, 24, 0.52) 0%,
    rgba(5, 8, 24, 0.25) 42%,
    rgba(5, 8, 24, 0) 74%
  );
  filter: blur(10px);
  pointer-events: none;
}

.home-intro__content::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(198, 181, 255, 0.72) 28%,
    rgba(255, 255, 255, 0.12) 82%,
    rgba(255, 255, 255, 0)
  );
  box-shadow: 0 0 22px var(--showcase-accent-soft);
}

.home-intro__eyebrow {
  margin: 0 0 clamp(13px, 1.8vh, 19px);
  color: rgba(231, 236, 255, 0.84);
  font: 720 10px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 1;
}

.home-intro__eyebrow span {
  color: rgba(218, 224, 248, 0.5);
  font-weight: 620;
}

.home-intro h1 {
  max-width: 10.8ch;
  margin: 0;
  color: rgba(247, 249, 255, 0.98);
  font-size: clamp(2.45rem, 4.1vw, 3.85rem);
  font-weight: 540;
  letter-spacing: -0.047em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
}

.home-intro__lead {
  max-width: 42ch;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  color: var(--showcase-muted);
  font: 430 clamp(0.84rem, 1.12vw, 0.98rem)/1.62 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.012em;
  opacity: 1;
  text-wrap: pretty;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.home-intro__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: clamp(20px, 3vh, 30px);
}

.home-intro__services {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  max-width: 450px;
  margin-top: 15px;
  pointer-events: auto;
}

.home-intro__services a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(220, 228, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(217, 225, 249, 0.62);
  font: 650 0.53rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease;
}

.home-intro__services a:hover,
.home-intro__services a:focus-visible {
  border-color: rgba(205, 193, 255, 0.4);
  background: rgba(142, 119, 225, 0.1);
  color: rgba(244, 246, 255, 0.94);
}

.home-intro__services a:focus-visible {
  outline: 2px solid var(--showcase-accent);
  outline-offset: 2px;
}

.home-intro__proof {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 14px 0 0;
  color: rgba(218, 225, 249, 0.48);
  font: 650 8px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-intro__proof > span {
  color: rgba(218, 225, 249, 0.42);
}

.home-intro__proof a {
  color: rgba(235, 239, 255, 0.82);
  text-decoration-color: rgba(192, 174, 255, 0.38);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.home-intro__proof a:hover,
.home-intro__proof a:focus-visible {
  color: rgba(250, 251, 255, 1);
  text-decoration-color: rgba(192, 174, 255, 0.9);
}

.home-intro__proof a:focus-visible {
  outline: 2px solid rgba(192, 174, 255, 0.95);
  outline-offset: 4px;
}

.home-intro__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  color: rgba(242, 246, 255, 0.94);
  font: 680 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.115em;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.home-intro__cta--primary {
  gap: 18px;
  padding: 0 15px 0 17px;
  border: 1px solid rgba(235, 240, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(18, 22, 38, 0.72), rgba(12, 16, 30, 0.5)),
    radial-gradient(circle at 15% 0%, rgba(170, 140, 255, 0.18), transparent 58%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition:
    transform 190ms var(--showcase-ease),
    border-color 190ms ease,
    background 190ms ease,
    box-shadow 190ms ease;
}

.home-intro__cta--primary span {
  color: rgba(196, 178, 255, 0.98);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 190ms var(--showcase-ease);
}

.home-intro__cta--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(209, 197, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(29, 33, 54, 0.82), rgba(14, 18, 34, 0.62)),
    radial-gradient(circle at 15% 0%, rgba(170, 140, 255, 0.3), transparent 62%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(151, 118, 255, 0.1);
}

.home-intro__cta--primary:hover span {
  transform: translate(2px, -3px);
}

.home-intro__cta--secondary {
  min-height: 36px;
  padding: 0 1px;
  border-bottom: 1px solid rgba(230, 236, 255, 0.3);
  color: rgba(224, 230, 251, 0.78);
  transition: color 180ms ease, border-color 180ms ease;
}

.home-intro__cta--secondary:hover {
  color: rgba(248, 250, 255, 0.98);
  border-color: rgba(192, 174, 255, 0.82);
}

.home-intro__cta:focus-visible {
  outline: 2px solid rgba(192, 174, 255, 0.95);
  outline-offset: 4px;
}

.home-intro__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: clamp(20px, 3vh, 30px) 0 0;
  color: rgba(218, 225, 249, 0.48);
  font: 650 8px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 1;
}

.home-intro__status-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b59aff;
  box-shadow: 0 0 0 4px rgba(181, 154, 255, 0.09), 0 0 14px rgba(181, 154, 255, 0.68);
  animation: homeStatusPulse 2.8s ease-in-out infinite;
}

body.logo-menu-open #main.home-intro,
body.logo-panel-open #main.home-intro,
body.photo-gallery-open #main.home-intro,
body.media-lightbox-open #main.home-intro,
body:has(.info-modal.visible) #main.home-intro,
body:has(#cookie-policy-panel.visible) #main.home-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Brand anchor and clearer, calmer top navigation */
#top-strip::after {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 94px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.2), rgba(5, 8, 20, 0));
  pointer-events: none;
}

#top-strip .top-strip-inner {
  justify-content: space-between;
  gap: 18px;
  padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px));
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: rgba(236, 240, 255, 0.9);
  text-decoration: none;
  pointer-events: auto;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms var(--showcase-ease);
}

.top-brand:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-brand:focus-visible {
  outline: 2px solid rgba(192, 174, 255, 0.9);
  outline-offset: 5px;
  border-radius: 4px;
}

.top-brand__mark {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: invert(1) brightness(1.35) saturate(0.12);
}

.top-brand__wordmark {
  display: grid;
  gap: 1px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.top-brand__wordmark strong {
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.12em;
}

.top-brand__wordmark > span {
  color: rgba(215, 222, 246, 0.54);
  font-size: 7px;
  font-weight: 630;
  line-height: 1;
  letter-spacing: 0.18em;
}

#top-strip-right {
  margin-left: auto;
}

#top-strip-bar {
  gap: 5px;
  min-height: 32px;
  padding: 2px 7px;
  border: 1px solid rgba(238, 242, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(12, 16, 31, 0.34), rgba(12, 16, 29, 0.16));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

#top-strip-runtime #fps-meter {
  display: none !important;
}

#top-strip-runtime #mode-toggle::before {
  content: "Tryb ";
  opacity: 0.52;
}

#top-tree-menu .top-tree-root:focus-visible,
#top-tree-menu .top-tree-branch-btn:focus-visible,
#top-tree-menu .top-tree-link:focus-visible,
#top-strip-runtime #mode-toggle:focus-visible {
  outline: 2px solid rgba(192, 174, 255, 0.9);
  outline-offset: 2px;
  border-radius: 3px;
  text-decoration: none;
}

/* The abstract footer mark now reads and behaves like a real menu trigger. */
#footer-logo {
  transition:
    bottom 320ms var(--showcase-ease),
    transform 180ms ease,
    filter 200ms ease,
    opacity 200ms ease;
}

#footer-logo:focus-visible {
  outline: 2px solid rgba(198, 181, 255, 0.88);
  outline-offset: 7px;
  border-radius: 10px;
}

#footer-logo-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-logo-bottom) - 19px);
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(219, 225, 247, 0.48);
  font: 690 7px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  transition: bottom 320ms var(--showcase-ease), opacity 220ms ease;
}

body.logo-menu-open #footer-logo-hint,
body.logo-panel-open #footer-logo-hint {
  opacity: 0;
}

/* Consent stays legible but no longer owns the whole first impression. */
#cookie-banner {
  max-width: min(700px, calc(100vw - 40px));
}

#cookie-banner .cookie-inner {
  gap: 14px;
  padding: 12px 14px;
  border-radius: 20px;
}

#cookie-banner .cookie-title {
  font-size: 9px;
  letter-spacing: 0.14em;
}

#cookie-banner .cookie-text {
  max-width: 48ch;
  font-size: 10.5px;
  line-height: 1.45;
}

#cookie-banner .cookie-actions {
  gap: 6px;
  margin-left: 0;
}

#cookie-banner .cookie-actions button {
  min-height: 31px;
  padding: 0.38rem 0.7rem;
}

@media (min-width: 901px) {
  #cookie-banner {
    left: max(22px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: min(660px, calc(50vw - 40px));
    transform: translate(0, 20px);
  }

  #cookie-banner.visible {
    transform: translate(0, 0);
  }

  #cookie-banner .cookie-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  #cookie-banner,
  body.logo-panel-open #cookie-banner {
    left: max(18px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: min(440px, calc(50vw - 28px));
    max-width: min(440px, calc(50vw - 28px));
    transform: translate(0, 18px);
  }

  #cookie-banner.visible,
  body.logo-panel-open #cookie-banner.visible {
    transform: translate(0, 0);
  }

  #cookie-banner .cookie-inner,
  body.logo-panel-open #cookie-banner .cookie-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 9px;
    border-radius: 18px;
  }

  #cookie-banner .cookie-actions,
  body.logo-panel-open #cookie-banner .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .home-intro__content {
    left: clamp(28px, 4vw, 48px);
    width: min(410px, 41vw);
  }

  .home-intro h1 {
    font-size: clamp(2.25rem, 4.65vw, 3.2rem);
  }

  .top-brand__wordmark {
    display: none;
  }
}

@media (max-width: 900px) {
  .top-brand {
    display: none;
  }

  #top-strip .top-strip-inner {
    gap: 0;
  }
}

@media (max-width: 768px) {
  #main.home-intro {
    z-index: 3;
  }

  .home-intro__content {
    left: max(20px, env(safe-area-inset-left, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
    top: calc(env(safe-area-inset-top, 0px) + 94px);
    width: auto;
    max-width: 420px;
    padding-left: 16px;
    transform: none;
  }

  .home-intro__content::before {
    inset: -40px -32px -46px -38px;
    background: radial-gradient(
      ellipse at 24% 40%,
      rgba(5, 8, 24, 0.42) 0%,
      rgba(5, 8, 24, 0.16) 48%,
      rgba(5, 8, 24, 0) 76%
    );
  }

  .home-intro__eyebrow {
    margin-bottom: 12px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .home-intro h1 {
    max-width: 11.5ch;
    font-size: clamp(2.05rem, 10vw, 2.85rem);
    line-height: 1;
  }

  .home-intro__lead {
    max-width: 37ch;
    margin-top: 15px;
    font-size: clamp(0.78rem, 3.45vw, 0.9rem);
    line-height: 1.52;
  }

  .home-intro__actions {
    gap: 8px 14px;
    margin-top: 17px;
  }

  .home-intro__cta {
    min-height: 39px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .home-intro__cta--primary {
    gap: 14px;
    padding-inline: 14px;
  }

  .home-intro__status {
    margin-top: 12px;
    font-size: 7px;
    letter-spacing: 0.11em;
  }

  .home-intro__proof {
    margin-top: 11px;
    font-size: 7px;
    letter-spacing: 0.09em;
  }

  #top-strip .top-strip-inner {
    padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px));
  }

  #top-strip-bar {
    padding: 2px 5px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 14, 28, 0.28), rgba(10, 14, 28, 0.12));
  }

  #top-strip-runtime {
    display: none;
  }

  #cookie-banner {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    padding: 0;
    transform: translateY(20px);
  }

  #cookie-banner.visible {
    transform: translateY(0);
  }

  #cookie-banner .cookie-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  #cookie-banner .cookie-text {
    max-width: 50ch;
    font-size: 10.5px;
    line-height: 1.42;
  }

  #cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  #cookie-banner .cookie-actions button {
    min-height: 32px;
    padding-inline: 0.7rem;
    white-space: nowrap;
  }

  #cookie-banner.visible ~ #footer-logo {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 205px);
  }

  #cookie-banner.visible ~ #footer-logo-hint {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 183px);
  }

  #cookie-banner.visible ~ #footer-logo-arrow {
    opacity: 0;
  }
}

@media (max-width: 430px) {
  .home-intro__eyebrow span {
    display: none;
  }

  .home-intro__cta--secondary {
    font-size: 8.5px;
  }
}

@media (max-width: 350px) {
  .home-intro__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #cookie-banner .cookie-actions {
    flex-wrap: wrap;
  }
}

@media (max-height: 700px) and (max-width: 768px) {
  .home-intro__content {
    top: calc(env(safe-area-inset-top, 0px) + 78px);
  }

  .home-intro h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.35rem);
  }

  .home-intro__lead {
    margin-top: 11px;
    line-height: 1.42;
  }

  .home-intro__actions {
    margin-top: 12px;
  }

  .home-intro__status {
    display: none;
  }

  .home-intro__proof {
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro__content {
    opacity: 1;
    animation: none;
  }

  .home-intro__status-dot {
    animation: none;
  }

  .home-intro__cta,
  .top-brand,
  #footer-logo,
  #footer-logo-hint {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Case viewer V3
   The project story is the primary context. Taxonomy is reduced to a quiet row.
   -------------------------------------------------------------------------- */

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof {
  display: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-info-actions {
  display: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-index {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  min-width: 38px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0 9px;
  border: 1px solid rgba(226, 233, 255, 0.24);
  border-radius: 999px;
  background: rgba(6, 9, 22, 0.74);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(240, 244, 255, 0.86);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-index[hidden] {
  display: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane.code-agents-pane .video-thumb img {
  object-position: center top;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-tags {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  margin: 11px 0 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-tags::-webkit-scrollbar {
  display: none;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(209, 219, 251, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(207, 216, 242, 0.48);
  font: 650 0.48rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story {
  position: relative;
  isolation: isolate;
  width: min(100%, 620px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 0;
  box-sizing: border-box;
  margin-inline: auto;
  padding: 23px 21px 19px;
  overflow: hidden;
  border: 1px solid rgba(210, 220, 255, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(16, 21, 44, 0.9), rgba(7, 10, 24, 0.82)),
    radial-gradient(110% 90% at 8% 0%, rgba(164, 139, 255, 0.19), transparent 62%);
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.075) inset;
  text-align: left;
  transition: opacity 180ms ease, transform 220ms var(--showcase-ease), visibility 180ms ease;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(188, 165, 255, 0.78), transparent);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  top: 24%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(166, 143, 255, 0.075);
  border-radius: 50%;
  box-shadow:
    0 0 70px rgba(105, 82, 204, 0.11),
    0 0 0 34px rgba(171, 147, 255, 0.018),
    0 0 0 70px rgba(171, 147, 255, 0.012);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-eyebrow {
  margin: 0 0 13px;
  color: rgba(190, 168, 255, 0.94);
  font: 760 0.58rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-client {
  margin: 0;
  color: rgba(247, 249, 255, 0.98);
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-title {
  margin: 5px 0 0;
  color: rgba(214, 223, 249, 0.64);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.4;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-copy {
  min-height: 0;
  margin-top: 18px;
  padding-right: 5px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(194, 175, 255, 0.38) transparent;
  color: rgba(224, 231, 252, 0.76);
  font-size: clamp(0.76rem, 0.92vw, 0.86rem);
  line-height: 1.62;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-copy p {
  margin: 0;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-copy p + p {
  margin-top: 0.85em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 7px;
  margin-top: 17px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.showcase-case-story-open, .showcase-case-story-link) {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border-radius: 11px;
  padding: 0 12px;
  font: 720 0.58rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-open {
  border: 1px solid rgba(199, 185, 255, 0.38);
  background: linear-gradient(135deg, rgba(111, 91, 205, 0.44), rgba(40, 51, 100, 0.36));
  color: rgba(248, 249, 255, 0.98);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-link {
  width: 40px;
  min-height: 40px;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(213, 221, 248, 0.13);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(220, 228, 249, 0.68);
  font-size: 0;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-link span {
  font-size: 0.86rem;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.showcase-case-story-open, .showcase-case-story-link):hover {
  border-color: rgba(211, 201, 255, 0.56);
  background-color: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.showcase-case-story-open, .showcase-case-story-link):focus-visible {
  outline: 2px solid rgba(194, 177, 255, 0.95);
  outline-offset: 3px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane.is-case-open .showcase-case-story {
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.985);
  pointer-events: none;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.pane-header, .music-video-header) {
  overflow: visible;
  padding-top: 2px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.pane-title, .music-video-title) {
  overflow: visible;
  line-height: 1.14;
}

@media (max-width: 999px), (max-height: 799px) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story {
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-index {
    left: 9px;
    bottom: 9px;
    min-height: 25px;
    padding-inline: 8px;
    font-size: 0.54rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-tags {
    width: 100%;
    margin: 10px 0 0;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-tag {
    min-height: 19px;
    padding-inline: 6px;
    font-size: 0.46rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story {
    width: 100%;
    padding: 19px 16px 16px;
    border-radius: 18px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story-copy {
    overflow: visible;
    font-size: 0.8rem;
    line-height: 1.58;
  }

  .home-intro__services {
    gap: 6px;
    margin-top: 13px;
  }

  .home-intro__services a {
    min-height: 25px;
    padding-inline: 8px;
    font-size: 0.49rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story,
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.showcase-case-story-open, .showcase-case-story-link) {
    transition: none !important;
  }
}

@keyframes homeIntroIn {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 18px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes homeStatusPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  @keyframes homeIntroIn {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --------------------------------------------------------------------------
   Case viewer V2
   One shared presentation layer for project endpoints across disciplines.
   -------------------------------------------------------------------------- */

#logo-panel[data-pane-mode="feature"] .showcase-case-pane {
  --case-accent: rgb(var(--pane-accent-rgb, 132 92 255));
  --case-border: rgba(202, 213, 255, 0.2);
  --case-surface: rgba(7, 10, 23, 0.74);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane :is(.pane-stage, .music-video-stage) {
  --premium-shell-w: min(1000px, max(320px, calc(var(--fashion-w) - 36px)));
  --music-shell-w: min(1000px, max(320px, calc(var(--fashion-w) - 36px)));
  --premium-focus-w: min(100%, 620px);
  --music-focus-w: min(100%, 620px);
  gap: 12px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane :is(.pane-header, .music-video-header) {
  gap: 6px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane :is(.pane-title, .music-video-title) {
  color: rgba(244, 247, 255, 0.96);
  font-weight: 680;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane :is(.pane-kicker, .music-video-kicker) {
  color: rgba(222, 230, 255, 0.62);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.pane-card--pitch, .music-video-card--pitch) {
  position: relative;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.pane-card--pitch, .music-video-card--pitch)
  :is(.pane-card-title, .music-video-card-title) {
  color: rgba(239, 243, 255, 0.94);
  font-weight: 690;
  letter-spacing: 0.09em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.pane-card--pitch, .music-video-card--pitch)
  :is(.pane-card-copy, .music-video-card-copy) {
  max-width: 60ch;
  margin-inline: auto;
  color: rgba(224, 231, 252, 0.72);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
  .showcase-project-card {
  box-sizing: border-box;
  align-items: stretch;
  gap: 0;
  padding: 10px 10px 12px;
  border: 1px solid rgba(222, 229, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(15, 20, 42, 0.78), rgba(6, 9, 21, 0.58)),
    radial-gradient(120% 90% at 12% 0%, rgba(164, 140, 255, 0.12), transparent 62%);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  overflow: hidden;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
  .showcase-project-card.is-active {
  border-color: rgba(205, 216, 255, 0.24);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(167, 142, 255, 0.08) inset,
    0 0 34px rgba(116, 93, 210, 0.08);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
  .video-card-link {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  border-radius: 0;
  overflow: visible;
  text-decoration: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
  .video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(226, 233, 255, 0.18);
  border-radius: 15px;
  background: rgba(3, 6, 16, 0.76);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
  .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--showcase-ease), filter 300ms ease;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .showcase-project-card.is-active .video-card-link:hover .video-thumb img {
  transform: scale(1.025);
  filter: brightness(1.04) saturate(1.04);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-link-cue {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(233, 238, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 10, 24, 0.68);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  color: rgba(245, 248, 255, 0.92);
  font: 700 0.56rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.76;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms var(--showcase-ease), border-color 180ms ease;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-link-cue::after {
  content: "↗";
  margin-left: 8px;
  color: rgba(190, 171, 255, 0.98);
  font-size: 0.75rem;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-card-link:hover .showcase-project-link-cue,
#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-card-link:focus-visible .showcase-project-link-cue {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(211, 201, 255, 0.5);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
  .video-info {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0;
  padding: 15px 5px 3px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "client"
    "title";
  gap: 4px;
  align-items: center;
  text-align: left;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-eyebrow {
  grid-area: eyebrow;
  display: block;
  margin-bottom: 2px;
  color: rgba(205, 214, 242, 0.5);
  font: 700 0.52rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-info :is(.client, .title) {
  text-align: left !important;
  text-decoration: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-info .client {
  color: rgba(246, 248, 255, 0.98) !important;
  font-size: clamp(0.96rem, 1.25vw, 1.1rem) !important;
  font-weight: 720 !important;
  line-height: 1.2;
  letter-spacing: 0.015em !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-info .title {
  color: rgba(219, 227, 250, 0.7) !important;
  font-size: clamp(0.75rem, 0.94vw, 0.86rem) !important;
  line-height: 1.45 !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .premium-pane-scroller.has-case-previews .video-info {
  row-gap: 4px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane.premium-case-pane:not(.music-video-pane)
  .premium-pane-scroller.has-case-previews.pane-video-scroller[data-long-desc="true"]
  .video-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "client"
    "title";
  row-gap: 4px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-eyebrow {
  grid-area: eyebrow !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-info-actions {
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
  justify-content: space-between;
  padding: 0 4px 2px;
  margin-top: 10px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .premium-pane-scroller.has-case-previews .video-info-actions {
  width: 100%;
  margin-top: 10px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open {
  min-height: 44px;
  border: 1px solid rgba(188, 202, 255, 0.32);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(76, 89, 154, 0.32), rgba(9, 13, 29, 0.76)),
    radial-gradient(circle at 0% 0%, rgba(167, 139, 255, 0.14), transparent 56%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(242, 246, 255, 0.96);
  animation: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open::before {
  border-color: rgba(210, 220, 255, 0.68);
  background: rgba(160, 137, 255, 0.16);
  animation: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open:hover {
  border-color: rgba(213, 222, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(92, 108, 183, 0.48), rgba(12, 17, 36, 0.86)),
    radial-gradient(circle at 0% 0%, rgba(174, 149, 255, 0.2), transparent 60%);
  transform: translateY(-1px);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open:focus-visible {
  outline: 2px solid rgba(194, 177, 255, 0.95);
  outline-offset: 3px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-info-actions .pane-case-open--preview {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100%;
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: stretch;
  column-gap: 12px;
  row-gap: 4px;
  padding: 0.58rem 0.72rem;
  text-align: left;
  letter-spacing: 0;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-info-actions .pane-case-open--preview::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 24px;
  height: 24px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open-label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open-preview {
  grid-column: 2;
  grid-row: 2;
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.69rem;
  line-height: 1.35;
  color: rgba(224, 232, 255, 0.72);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open-action {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  min-width: 58px;
  justify-content: center;
  padding-left: 12px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open-action::after {
  content: "→" !important;
  font-size: 0.84rem;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-slider-index-inline {
  min-width: 38px;
  box-sizing: border-box;
  padding: 5px 8px;
  border-color: rgba(201, 211, 247, 0.22);
  background: rgba(6, 9, 21, 0.68);
  color: rgba(230, 236, 255, 0.78);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-slider-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(204, 214, 255, 0.38);
  background: rgba(7, 10, 25, 0.78);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(242, 246, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-slider-arrow:disabled {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof {
  box-sizing: border-box;
  border: 1px solid rgba(213, 222, 255, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(13, 17, 36, 0.7), rgba(7, 10, 23, 0.48)),
    radial-gradient(120% 120% at 15% 0%, rgba(163, 141, 255, 0.11), transparent 64%);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof .pane-card-mark {
  opacity: 0.055;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-trusted-title {
  color: rgba(239, 243, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: 0.13em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-brand-lines {
  gap: 7px;
  margin-top: 12px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-brand-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(210, 220, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(220, 228, 251, 0.66);
  font: 650 0.56rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint {
  box-sizing: border-box;
  border: 1px solid rgba(207, 218, 255, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(13, 17, 36, 0.97), rgba(6, 9, 21, 0.94)),
    radial-gradient(120% 100% at 10% 0%, rgba(165, 140, 255, 0.16), transparent 62%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.52),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(135, 111, 224, 0.06) inset;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 165, 255, 0.7), transparent);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-close {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(220, 228, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(238, 243, 255, 0.78);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-close:hover {
  border-color: rgba(226, 233, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(4deg);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-close:focus-visible {
  outline: 2px solid rgba(194, 177, 255, 0.95);
  outline-offset: 3px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-kicker {
  padding-right: 44px;
  color: rgba(197, 207, 238, 0.56);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.14em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-kicker::before {
  content: "Case study / ";
  color: rgba(190, 168, 255, 0.94);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-title {
  color: rgba(246, 248, 255, 0.98);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  font-weight: 690;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc {
  color: rgba(222, 230, 253, 0.78);
  font-size: clamp(0.78rem, 0.93vw, 0.88rem);
  line-height: 1.68;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc p + p {
  margin-top: 0.82em;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc ul {
  display: grid;
  gap: 7px;
  margin: 0.8em 0 0;
  padding: 0;
  list-style: none;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc li {
  position: relative;
  padding-left: 16px;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(185, 162, 255, 0.9);
  box-shadow: 0 0 10px rgba(155, 125, 255, 0.44);
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-link {
  box-sizing: border-box;
  justify-content: space-between;
  min-height: 42px;
  border-color: rgba(203, 214, 255, 0.25);
  border-radius: 12px;
  padding: 0.7rem 0.86rem;
  background: linear-gradient(135deg, rgba(89, 104, 173, 0.3), rgba(255, 255, 255, 0.035));
  color: rgba(245, 248, 255, 0.94);
  font-weight: 720;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-link::after {
  content: "↗";
  color: rgba(194, 175, 255, 0.98);
  font-size: 0.9rem;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-link:hover {
  border-color: rgba(215, 224, 255, 0.48);
  background: linear-gradient(135deg, rgba(107, 124, 201, 0.42), rgba(255, 255, 255, 0.065));
}

/* Wide screens: media and the project context form one two-column case viewer. */
@media (min-width: 1000px) and (min-height: 800px) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane :is(.pane-stage, .music-video-stage) {
    --premium-shell-w: 100%;
    --music-shell-w: 100%;
    --premium-focus-w: 100%;
    --music-focus-w: 100%;
    width: min(1000px, calc(100vw - 120px));
    max-width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.72fr) minmax(284px, 0.78fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "case-header case-header"
      "case-pitch case-pitch"
      "case-gallery case-aside";
    align-content: center;
    align-items: stretch;
    column-gap: 20px;
    row-gap: 12px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane :is(.pane-header, .music-video-header) {
    grid-area: case-header;
    width: min(720px, 100%);
    max-width: min(720px, 100%);
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.pane-card--pitch, .music-video-card--pitch) {
    grid-area: case-pitch;
    width: min(720px, 100%);
    max-width: min(720px, 100%);
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.pane-gallery, .music-video-gallery) {
    grid-area: case-gallery;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    align-self: start;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.pane-carousel, .music-video-carousel, .premium-pane-slider, .music-video-slider) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    align-self: start;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"] {
    height: auto;
    min-height: 0;
    align-items: flex-start;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .showcase-project-card {
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: flex-start;
    padding: 10px 10px 12px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .video-thumb {
    height: clamp(280px, 41vh, 360px);
    min-height: 0;
    aspect-ratio: auto;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-slider-arrow.is-prev {
    left: 18px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-slider-arrow.is-next {
    right: 18px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof {
    grid-area: case-aside;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 214px;
    margin: 0;
    padding: 22px 20px;
    text-align: left;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof .pane-trusted-title {
    text-align: left;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof .pane-brand-lines {
    margin-top: 18px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof .pane-brand-line {
    justify-content: flex-start;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof .showcase-case-chip {
    min-height: 28px;
    padding-inline: 10px;
    text-align: left;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint {
    position: relative;
    grid-area: case-aside;
    left: auto;
    right: auto;
    bottom: auto;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 22px 20px 18px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker"
      "title"
      "desc"
      "actions";
    row-gap: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(14px) scale(0.985);
  }

  #logo-panel[data-pane-mode="feature"]
    .showcase-case-pane.premium-case-pane:not(.music-video-pane)
    .pane-case-endpoint,
  #logo-panel[data-pane-mode="feature"]
    .showcase-case-pane.music-video-pane
    .pane-case-endpoint {
    position: relative !important;
    grid-area: case-aside;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    align-self: stretch;
    justify-self: stretch;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100%;
    max-height: none !important;
    margin: 0;
    padding: 22px 20px 18px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker"
      "title"
      "desc"
      "actions" !important;
    column-gap: 0;
    row-gap: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(14px) scale(0.985) !important;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint.is-open {
    opacity: 1;
    transform: translateX(0) scale(1) !important;
  }

  #logo-panel[data-pane-mode="feature"]
    .showcase-case-pane.premium-case-pane:not(.music-video-pane)
    .pane-case-endpoint.is-open,
  #logo-panel[data-pane-mode="feature"]
    .showcase-case-pane.music-video-pane
    .pane-case-endpoint.is-open {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc {
    grid-area: desc !important;
    min-height: 0;
    max-height: none !important;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 8px 4px 0;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-actions {
    grid-area: actions !important;
    width: 100%;
    align-self: end;
    margin-top: 4px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-link {
    width: 100%;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane.is-case-open .showcase-case-proof {
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px) scale(0.985);
    filter: none;
  }
}

/* Multi-view project reels keep one portfolio card per client while showing the
   most important screens of the delivered product. */
#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel .project-shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: opacity;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel .project-shot:first-child {
  opacity: 1 !important;
  animation: none !important;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel[data-project-shot-count="3"] .project-shot:not(:first-child) {
  animation-name: cadv-project-shot-cycle-3;
  animation-duration: 18s;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel[data-project-shot-count="4"] .project-shot:not(:first-child) {
  animation-name: cadv-project-shot-cycle-4;
  animation-duration: 24s;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel .project-shot:nth-of-type(2) {
  animation-delay: 0s;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel .project-shot:nth-of-type(3) {
  animation-delay: 6s;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .project-shot-reel .project-shot:nth-of-type(4) {
  animation-delay: 12s;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-card.is-active .project-shot-reel .project-shot {
  animation-play-state: running;
}

#logo-panel[data-pane-mode="feature"] .showcase-case-pane
  .video-card.is-active .project-shot-reel:hover .project-shot {
  animation-play-state: paused;
}

@keyframes cadv-project-shot-cycle-3 {
  0%, 27% { opacity: 0; }
  34%, 60% { opacity: 1; }
  67%, 100% { opacity: 0; }
}

@keyframes cadv-project-shot-cycle-4 {
  0%, 20% { opacity: 0; }
  26%, 45% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    .project-shot-reel .project-shot {
    animation: none !important;
    opacity: 0 !important;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    .project-shot-reel .project-shot:first-child {
    opacity: 1 !important;
  }
}

/* Stacked layouts: case details are presented above a calm backdrop. */
@media (max-width: 999px), (max-height: 799px) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane.is-case-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(3, 5, 14, 0.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint {
    z-index: 80;
  }
}

@media (max-width: 768px) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.pane-stage, .music-video-stage) {
    gap: 10px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .showcase-project-card {
    padding: 8px 8px 10px;
    border-radius: 18px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .video-thumb {
    border-radius: 12px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-link-cue {
    right: 9px;
    top: 9px;
    min-height: 27px;
    padding-inline: 9px;
    font-size: 0.51rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .video-info {
    padding: 12px 3px 2px;
    text-align: left;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-info .client,
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-info .title {
    text-align: left !important;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    .video-info-actions .pane-case-open--preview {
    min-height: 62px;
    max-width: none;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    column-gap: 9px;
    padding: 0.52rem 0.58rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open-preview {
    font-size: 0.66rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-open-action {
    min-width: 48px;
    padding-left: 8px;
    font-size: 0.53rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof {
    padding: 13px 12px 14px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-brand-lines {
    margin-top: 10px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-chip {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 0.53rem;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    max-height: min(72svh, 590px);
    padding: 19px 16px 16px;
    border-radius: 22px;
    row-gap: 9px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: rgba(227, 233, 255, 0.24);
    transform: translateX(-50%);
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-close {
    width: 38px;
    height: 38px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-desc {
    max-height: min(43svh, 330px);
    font-size: clamp(0.8rem, 3.35vw, 0.92rem);
    line-height: 1.62;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-actions,
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .video-thumb img,
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-project-link-cue,
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint,
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-proof {
    transition: none !important;
  }
}

/* Final wide-layout authority: keep the complete project frame above the footer. */
@media (min-width: 1000px) and (min-height: 800px) {
  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.pane-stage, .music-video-stage) {
    width: min(1040px, calc(100vw - 96px));
    grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.84fr);
    column-gap: 18px;
    row-gap: 10px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .showcase-project-card {
    padding: 8px 8px 10px;
    border-radius: 20px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .video-thumb {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.premium-pane-scroller, .music-video-scroller).pane-video-scroller[data-long-desc="true"]
    .video-info {
    padding-top: 13px;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .showcase-case-story {
    grid-area: case-aside;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0;
    align-self: stretch;
    justify-self: stretch;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane .pane-case-endpoint {
    min-height: 100%;
    max-height: 100% !important;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane
    :is(.pane-card--pitch, .music-video-card--pitch) {
    min-height: max-content;
    overflow: visible;
  }

  #logo-panel[data-pane-mode="feature"]
    .showcase-case-pane.premium-case-pane:not(.music-video-pane)
    .pane-case-endpoint,
  #logo-panel[data-pane-mode="feature"]
    .showcase-case-pane.music-video-pane
    .pane-case-endpoint {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    contain: size layout paint;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane.is-case-open
    .showcase-case-story {
    display: none;
  }

  #logo-panel[data-pane-mode="feature"] .showcase-case-pane.is-case-open
    :is(.pane-card--pitch, .music-video-card--pitch)
    :is(.pane-card-copy, .music-video-card-copy) {
    display: none;
  }
}
