/**
 * Loop Premium Direction: a restrained cinematic layer for the approved identity.
 * No changes to font-size, font-family, line-height, letter-spacing or section padding.
 * Everything is scoped to a server-set body class, and can be switched off.
 */
.lc-premium-mode {
  --lc-premium-pearl: rgba(255,255,255,.72);
  --lc-premium-sheen: rgba(231,218,255,.16);
  --lc-premium-silk: cubic-bezier(.2,.76,.16,1);
}

/* Premium navigation: a light-polished surface on scroll, with exactly the same geometry. */
.lc-premium-mode .header {
  transition: background-color .6s var(--lc-premium-silk),box-shadow .6s var(--lc-premium-silk),border-color .6s ease;
}
.lc-premium-mode.lc-premium-scrolled .header {
  background-color:rgba(17,15,23,.92);
  box-shadow:0 16px 42px rgba(6,3,15,.22),inset 0 -1px rgba(216,201,255,.20);
}
@supports (backdrop-filter:blur(12px)) {
  .lc-premium-mode.lc-premium-scrolled .header {backdrop-filter:blur(14px) saturate(1.25);}
}

/* Editorial film light on the homepage's infinity, without altering text metrics. */
.lc-premium-mode.lc-theme-home .hero:before {
  content:"";position:absolute;z-index:0;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 48% 50% at 79% 41%,rgba(158,78,248,.13),transparent 84%),
    linear-gradient(107deg,transparent 53%,rgba(213,192,255,.09) 60%,transparent 68%);
  opacity:calc(.50 + var(--lc-premium-hero-light,.35));
  transition:opacity .16s linear;
}
.lc-premium-mode.lc-theme-home .hero .hero-sculpture svg {
  filter:drop-shadow(0 18px 38px rgba(69,30,128,.35)) drop-shadow(0 0 26px rgba(153,93,249,.16));
}

/* Real work: depth and an editorial specular gleam, with no injected fake projects. */
.lc-premium-mode .projects .lc-real-project-card {
  isolation:isolate;
  box-shadow:0 18px 45px rgba(20,11,32,.07);
  transition:transform .6s var(--lc-premium-silk),box-shadow .55s ease,border-color .45s ease;
}
.lc-premium-mode .projects .lc-real-project-card::after {
  content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:radial-gradient(circle at var(--lc-premium-x,52%) var(--lc-premium-y,30%),rgba(255,255,255,.20),transparent 33%),
    linear-gradient(116deg,transparent 35%,rgba(255,255,255,.10) 49%,transparent 61%);
  opacity:0;transition:opacity .65s ease;
}
.lc-premium-mode .projects .lc-real-project-card:is(:hover,:focus-visible)::after {
  opacity:.75;
}
.lc-premium-mode .projects .lc-real-project-card:is(:hover,:focus-visible) {
  box-shadow:0 28px 68px rgba(20,11,32,.22);
}
.lc-premium-mode .projects .lc-project-artwork-image img {
  will-change:auto;
  transition:transform 1s var(--lc-premium-silk),filter 1s ease;
  transform:scale(1.018) translate3d(0,var(--lc-premium-image-y,0px),0);
}
.lc-premium-mode .projects .lc-real-project-card:is(:hover,:focus-visible) .lc-project-artwork-image img {
  transform:scale(1.075) translate3d(0,var(--lc-premium-image-y,0px),0);
}
.lc-premium-mode .projects .project-meta,
.lc-premium-mode .projects .lc-real-project-description {z-index:2;}

/* Product/system scene: precise technical polish instead of generic glass cards. */
.lc-premium-mode.lc-theme-home .tech-shell {
  isolation:isolate;
  transition:box-shadow .7s var(--lc-premium-silk),border-color .5s ease;
}
.lc-premium-mode.lc-theme-home .tech-shell::after {
  content:"";position:absolute;z-index:3;inset:0;pointer-events:none;
  border:1px solid rgba(213,193,252,.24);
  background:linear-gradient(133deg,rgba(250,250,255,.045) 0%,transparent 30%,transparent 79%,rgba(238,199,255,.05) 100%);
}
.lc-premium-mode.lc-theme-home .tech-shell.lc-premium-seen {
  border-color:rgba(197,164,252,.62);
  box-shadow:20px 20px 0 #3d1b85,0 15px 65px rgba(90,45,156,.20);
}
.lc-premium-mode.lc-theme-home .dash-card {
  transition:border-color .5s ease,background-color .5s ease;
}
.lc-premium-mode.lc-theme-home .tech-shell.lc-premium-seen .dash-card {
  border-color:rgba(216,191,255,.34);
}

/* Reading and conversion: premium interaction, not restyling the editable content. */
.lc-premium-mode .resources .resource-item {
  position:relative;
}
.lc-premium-mode .resources .resource-item::before {
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:linear-gradient(90deg,var(--violet),#c05ffd,var(--pink));
  transform:scaleX(0);transform-origin:left center;
  transition:transform .6s var(--lc-premium-silk);pointer-events:none;
}
.lc-premium-mode .resources .resource-item:is(:hover,:focus-visible)::before {transform:scaleX(1);}
.lc-premium-mode :is(.solid-btn,.outline-btn,.nav-cta,.lc-editorial-link) .lc-arrow-svg {
  transition:transform .45s var(--lc-premium-silk);
}
.lc-premium-mode :is(.solid-btn,.outline-btn,.nav-cta,.lc-editorial-link):is(:hover,:focus-visible) .lc-arrow-svg {
  transform:translate(3px,-3px);
}
.lc-premium-mode .lc-editorial-featured-img {
  transition:filter .7s ease;
}
.lc-premium-mode .lc-project-detail-page .lc-editorial-featured-img,
.lc-premium-mode.lc-project-detail-page .lc-editorial-featured-img {
  filter:contrast(1.035) saturate(.98);
}

/* Visible in-view polish, never hide real text or demand JavaScript. */
.lc-premium-mode.lc-theme-home .projects .project-meta:before {
  content:"";position:absolute;left:0;top:-10px;width:42px;height:1px;
  background:rgba(255,255,255,.72);
  transform:scaleX(.26);transform-origin:left;transition:transform .65s var(--lc-premium-silk);
}
.lc-premium-mode.lc-theme-home .projects .lc-premium-seen .project-meta:before {transform:scaleX(1);}

/* Mobile: keep animated entry and tonal transitions but turn off expensive depth tracking. */
@media (max-width:767px), (pointer:coarse) {
  .lc-premium-mode .projects .lc-project-artwork-image img,
  .lc-premium-mode .projects .lc-real-project-card:is(:hover,:focus-visible) .lc-project-artwork-image img {
    transform:none;
  }
  .lc-premium-mode .projects .lc-real-project-card::after {display:none;}
  .lc-premium-mode .lc-theme-home .tech-shell.lc-premium-seen,
  .lc-premium-mode.lc-theme-home .tech-shell.lc-premium-seen {box-shadow:12px 12px 0 #3d1b85;}
  .lc-premium-mode.lc-theme-home .hero:before {opacity:.34;}
}
@media (prefers-reduced-motion:reduce) {
  .lc-premium-mode .header,
  .lc-premium-mode .projects .lc-real-project-card,
  .lc-premium-mode .projects .lc-project-artwork-image img,
  .lc-premium-mode .resources .resource-item::before,
  .lc-premium-mode .tech-shell,
  .lc-premium-mode .lc-arrow-svg {transition:none!important;animation:none!important;transform:none!important;}
  .lc-premium-mode .projects .lc-real-project-card::after {display:none!important;}
}
.lc-premium-mode.no-motion .projects .lc-real-project-card::after{display:none!important;}
.lc-premium-mode.no-motion .projects .lc-project-artwork-image img{transform:none!important;transition:none!important;}

/* 1.1 — Cinematic refinement. Only paint and compositing; never font metrics or layout. */
.lc-premium-mode.lc-premium-intensity-subtle { --lc-premium-strength:.52; --lc-premium-card-shadow:.13; }
.lc-premium-mode.lc-premium-intensity-balanced { --lc-premium-strength:.82; --lc-premium-card-shadow:.19; }
.lc-premium-mode.lc-premium-intensity-cinematic { --lc-premium-strength:1.08; --lc-premium-card-shadow:.25; }

/* Follow the visitor's gaze without changing the hero artwork or its dimensions. */
.lc-premium-mode.lc-theme-home .hero::before {
  background:
    radial-gradient(ellipse 38% 47% at var(--lc-premium-hero-x,78%) var(--lc-premium-hero-y,38%),
      rgba(202,119,255,.19),transparent 82%),
    radial-gradient(ellipse 37% 35% at 68% 67%,rgba(32,200,255,.08),transparent 84%),
    linear-gradient(115deg,transparent 50%,rgba(230,206,255,.08) 59%,transparent 72%);
  opacity:clamp(.26,var(--lc-premium-strength,.82),.92);
}
.lc-premium-mode.lc-theme-home .hero .hero-sculpture svg {
  transition:filter .85s var(--lc-premium-silk);
}

/* Fine highlights on authentic projects; no alternate imagery or synthetic assets. */
.lc-premium-mode .projects .lc-real-project-card,
.lc-premium-mode .lc-editorial-related-card,
.lc-premium-mode .lc-related-module {
  backface-visibility:hidden;
}
.lc-premium-mode .projects .lc-real-project-card.lc-premium-inview {
  box-shadow:0 24px 64px rgba(18,7,28,var(--lc-premium-card-shadow,.19));
}
.lc-premium-mode .lc-editorial-related-card,
.lc-premium-mode .lc-related-module {
  transition:box-shadow .55s var(--lc-premium-silk),border-color .55s ease,filter .55s ease;
}
.lc-premium-mode .lc-editorial-related-card:is(:hover,:focus-visible),
.lc-premium-mode .lc-related-module:is(:hover,:focus-visible) {
  box-shadow:0 18px 38px rgba(23,8,46,.14);
  filter:brightness(1.025);
}
.lc-premium-mode .lc-editorial-featured {
  isolation:isolate;
}
.lc-premium-mode .lc-editorial-featured-img {
  filter:contrast(1.025) saturate(.99);
  transition:filter .7s ease;
}

/* Keyboard focus must be as considered as hover, and always visible. */
.lc-premium-mode :is(.nav-cta,.solid-btn,.outline-btn,.lc-editorial-link,.lc-editorial-related-card,.lc-related-module):focus-visible {
  outline:2px solid #a667ff;
  outline-offset:4px;
}

/* Extra polish on the system scene, with the same underlying geometry. */
.lc-premium-mode.lc-theme-home .tech-shell.lc-premium-inview {
  box-shadow:20px 20px 0 #3d1b85,0 15px 60px rgba(90,45,156,.23);
}
.lc-premium-mode.lc-theme-home .tech-shell::after {
  background:linear-gradient(128deg,rgba(255,255,255,.08),transparent 32%,transparent 70%,rgba(208,148,255,.07));
}

/* On touch devices keep the sequencing and tonal depth, not pointer-following or costly blur. */
@media (max-width:767px), (pointer:coarse) {
  .lc-premium-mode.lc-theme-home .hero::before {
    opacity:.31;
    background:radial-gradient(ellipse 55% 46% at 77% 38%,rgba(190,117,255,.16),transparent 90%);
  }
  .lc-premium-mode .projects .lc-real-project-card.lc-premium-inview {box-shadow:0 12px 30px rgba(18,7,28,.13);}
  .lc-premium-mode .lc-editorial-related-card:is(:hover,:focus-visible),
  .lc-premium-mode .lc-related-module:is(:hover,:focus-visible) {box-shadow:none;filter:none;}
  .lc-premium-mode.lc-theme-home .tech-shell.lc-premium-inview {box-shadow:12px 12px 0 #3d1b85;}
}
@media (prefers-reduced-motion: reduce) {
  .lc-premium-mode.lc-theme-home .hero::before,
  .lc-premium-mode.lc-theme-home .hero .hero-sculpture svg,
  .lc-premium-mode .lc-editorial-related-card,
  .lc-premium-mode .lc-related-module,
  .lc-premium-mode .lc-editorial-featured-img,
  .lc-premium-mode .tech-shell {transition:none!important;animation:none!important;}
  .lc-premium-mode .lc-editorial-related-card:is(:hover,:focus-visible),
  .lc-premium-mode .lc-related-module:is(:hover,:focus-visible) {filter:none;}
}
.lc-premium-mode.no-motion.lc-theme-home .hero::before,
.lc-premium-mode.no-motion.lc-theme-home .hero .hero-sculpture svg,
.lc-premium-mode.no-motion .lc-editorial-featured-img,
.lc-premium-mode.no-motion .lc-editorial-related-card,
.lc-premium-mode.no-motion .lc-related-module {transition:none!important;animation:none!important;}
.lc-premium-mode.no-motion .lc-editorial-related-card:is(:hover,:focus-visible),
.lc-premium-mode.no-motion .lc-related-module:is(:hover,:focus-visible) {filter:none;}
