:root {
  --bg: #0b0912;
  --paper: #f4efe9;
  --grad-a: #ffb62e;
  --grad-b: #c44bd1;
  --grad-c: #8b3ff5;

  /* driven by script.js */
  --scrub-progress: 0;
  --hero-opacity: 1;    --hero-y: 0px;
  --work-opacity: 0;    --work-y: 40px;
  --cta-opacity: 0;     --cta-y: 40px;
  --hint-opacity: 1;

  font-family: "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--bg);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }

body { min-height: 100%; margin: 0; overflow-x: clip; background: var(--bg); }

/* ---- Scroll rig ---- */

.scrub {
  position: relative;
  /* 100vh viewport + scrub distance. Tune SCRUB_LENGTH in script.js to match. */
  height: calc(100svh + 4200px);
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

/* ---- Video + fallback ---- */

.poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 20% 110%, rgba(255, 182, 46, 0.28), transparent 55%),
    radial-gradient(120% 90% at 85% -10%, rgba(139, 63, 245, 0.35), transparent 60%),
    radial-gradient(90% 70% at 60% 70%, rgba(196, 75, 209, 0.18), transparent 60%),
    var(--bg);
}

.scrub-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.scrub-canvas.is-ready { opacity: 1; }

.scrub-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.scrub-video.is-ready { opacity: 1; }

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 9, 18, 0.55) 0%, rgba(11, 9, 18, 0) 26%),
    linear-gradient(0deg, rgba(11, 9, 18, 0.6) 0%, rgba(11, 9, 18, 0) 32%);
}

/* ---- Header ---- */

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
}

.logo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(11, 9, 18, 0.35);
  border: 1px solid rgba(244, 239, 233, 0.22);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* ---- Copy overlays ---- */

.copy {
  position: absolute;
  z-index: 5;
  left: 50%;
  width: min(720px, calc(100vw - 48px));
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}

.copy .kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.72);
}

.copy h1,
.copy h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.02;
  text-shadow: 0 1px 6px rgba(11, 9, 18, 0.35), 0 6px 30px rgba(11, 9, 18, 0.3);
}

.copy h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.copy h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }

.copy .sub {
  margin: 20px auto 0;
  max-width: 460px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(244, 239, 233, 0.85);
  text-shadow: 0 1px 12px rgba(11, 9, 18, 0.35);
}

.copy-hero {
  top: 40%;
  transform: translate3d(-50%, calc(-50% + var(--hero-y)), 0);
  opacity: var(--hero-opacity);
}

.copy-work {
  top: 50%;
  transform: translate3d(-50%, calc(-50% + var(--work-y)), 0);
  opacity: var(--work-opacity);
}

.copy-cta {
  top: 46%;
  transform: translate3d(-50%, calc(-50% + var(--cta-y)), 0);
  opacity: var(--cta-opacity);
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper);
  background: rgba(11, 9, 18, 0.7);
  border: 1px solid rgba(244, 239, 233, 0.28);
  box-shadow: 0 8px 30px rgba(11, 9, 18, 0.35);
  text-shadow: 0 1px 8px rgba(11, 9, 18, 0.6);
}

/* soft dark scrim behind every copy block so it reads on busy frames */
.copy::before {
  content: "";
  position: absolute;
  inset: -140px -220px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 9, 18, 0.22), rgba(11, 9, 18, 0.1) 55%, rgba(11, 9, 18, 0));
  pointer-events: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b0912;
  text-decoration: none;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  box-shadow: 0 16px 44px rgba(196, 75, 209, 0.35);
  pointer-events: auto;
}

/* ---- Progress + hint ---- */

.progress {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(244, 239, 233, 0.12);
}

.progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--scrub-progress));
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
}

.scroll-hint {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 26px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.6);
  transform: translateX(-50%);
  opacity: var(--hint-opacity);
}

/* ---- After the rig ---- */

.after {
  position: relative;
  padding: 120px 36px 160px;
  max-width: 960px;
  margin: 0 auto;
}

.after h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.after p {
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.75);
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .scrub { height: calc(100svh + 2600px); }
  .stage { min-height: 0; }
  .site-header { padding: 20px 20px; }
  .contact-link { min-height: 38px; padding: 0 16px; font-size: 14px; }
  .copy-hero { top: 42%; }
  .services { gap: 8px; }
  .services li { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
  .after { padding: 80px 24px 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrub-video { transition: none; }
}

/* ---- Sections after the scrub ---- */

.after {
  position: relative;
  padding: 130px 36px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.after .kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.55);
}

.after h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
}

.after h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.05;
}

.grad-word {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  margin: 18px 0 0;
  max-width: 560px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---- Services ---- */

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

.svc {
  position: relative;
  padding: 24px 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(244, 239, 233, 0.12);
  background: rgba(244, 239, 233, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease;
}

.svc:hover { background: rgba(244, 239, 233, 0.08); border-color: rgba(244, 239, 233, 0.22); }

.svc .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.svc .num {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(244, 239, 233, 0.45);
}

.svc .ic {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(244, 239, 233, 0.07);
  border: 1px solid rgba(244, 239, 233, 0.14);
}

.svc .ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: url(#svcGrad);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc h3 { font-size: 1.15rem; line-height: 1.1; }

.svc > p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.68);
}

.svc .inside {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.svc .inside > ul {
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc.open .inside { grid-template-rows: 1fr; }

.svc .inside li {
  position: relative;
  margin-top: 10px;
  padding-left: 16px;
  font-size: 0.85rem;
  color: rgba(244, 239, 233, 0.78);
}

.svc .inside li:first-child { margin-top: 16px; }

.svc .inside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-c));
}

/* ---- Steps ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.step {
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(244, 239, 233, 0.12);
  background: rgba(244, 239, 233, 0.045);
}

.step .n {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(244, 239, 233, 0.4);
}

.step h4 {
  margin: 8px 0 0;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.step p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(244, 239, 233, 0.68);
}

.step .bar {
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: rgba(244, 239, 233, 0.1);
  overflow: hidden;
}

.step .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step.in .bar i { width: 100%; }

/* ---- Portal + hub mocks ---- */

.portal-block {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: center;
  margin-top: 72px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(244, 239, 233, 0.1);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(244, 239, 233, 0.18);
}

.mock-bar span {
  margin-left: 10px;
  font-size: 0.78rem;
  color: rgba(244, 239, 233, 0.55);
}

.portal-mock,
.hub-mock {
  border-radius: 20px;
  border: 1px solid rgba(244, 239, 233, 0.12);
  background: rgba(11, 9, 18, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.mock-body { padding: 22px; }

.mock-label {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.5);
}

.mock-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(244, 239, 233, 0.1);
  background: rgba(244, 239, 233, 0.04);
}

.mock-thumb {
  flex: 0 0 74px;
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b), var(--grad-c));
}

.mock-item b { display: block; font-size: 0.95rem; }

.mock-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(244, 239, 233, 0.6);
}

.mock-actions { display: flex; gap: 8px; margin-top: 12px; }

.mock-actions em {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
  color: rgba(244, 239, 233, 0.8);
  border: 1px solid rgba(244, 239, 233, 0.2);
}

.mock-actions em.ok {
  color: #0b0912;
  font-weight: 600;
  background: #6fce8f;
  border-color: transparent;
}

.portal-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.portal-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid rgba(244, 239, 233, 0.1);
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(244, 239, 233, 0.78);
}

.portal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--grad-a), var(--grad-c));
}

.hub-block { margin-top: 96px; }

.hub-block .section-lead { max-width: 640px; }

.hub-mock { margin-top: 30px; }

.hub-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.hub-body aside {
  padding: 20px;
  border-right: 1px solid rgba(244, 239, 233, 0.1);
}

.hub-body aside b { font-size: 0.95rem; }

.hub-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(244, 239, 233, 0.5);
}

.hub-nav { margin-top: 18px; }

.hub-nav em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-style: normal;
  color: rgba(244, 239, 233, 0.72);
}

.hub-nav em.on {
  color: var(--paper);
  background: rgba(244, 239, 233, 0.08);
}

.hub-nav em i {
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(244, 239, 233, 0.45);
}

.hub-main { padding: 20px; }

.hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(244, 239, 233, 0.65);
}

.hub-zip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: #0b0912;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
}

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

.hub-grid i {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid rgba(244, 239, 233, 0.1);
  background: rgba(244, 239, 233, 0.05);
}

.hub-grid i[data-badge]::after {
  content: attr(data-badge);
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
}

.hub-grid i.b-ok::after { color: #0b0912; background: #6fce8f; }
.hub-grid i.b-ch::after { color: #0b0912; background: var(--grad-a); }

/* ---- Closing ---- */

.after h3.team-head { margin-top: 72px; }

.closing .team-head + .section-lead { max-width: 620px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.team-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(244, 239, 233, 0.12);
  background: rgba(244, 239, 233, 0.045);
}

.team-card b {
  display: block;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.team-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(244, 239, 233, 0.62);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}

.cta-row .cta-button { margin-top: 0; }

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  background: rgba(244, 239, 233, 0.06);
  border: 1px solid rgba(244, 239, 233, 0.22);
}

/* ---- Footer ---- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 36px 60px;
  font-size: 0.9rem;
  color: rgba(244, 239, 233, 0.6);
}

.footer-links { display: flex; gap: 22px; }

.site-footer a { color: rgba(244, 239, 233, 0.85); text-decoration: none; }

/* ---- Responsive additions ---- */

@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-block { grid-template-columns: 1fr; gap: 30px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-body { grid-template-columns: 1fr; }
  .hub-body aside { border-right: 0; border-bottom: 1px solid rgba(244, 239, 233, 0.1); }
}

@media (max-width: 640px) {
  .after { padding: 90px 24px 30px; }
  .svc-grid, .steps, .team-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row .cta-button, .ghost-button { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 60px 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .step .bar i { transition: none; width: 100%; }
  .svc .inside { transition: none; }
}

/* ---- Gallery ---- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(244, 239, 233, 0.8);
  background: rgba(244, 239, 233, 0.06);
  border: 1px solid rgba(244, 239, 233, 0.18);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.filter-pill:hover { background: rgba(244, 239, 233, 0.12); }

.filter-pill.is-active {
  color: #0b0912;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  border-color: transparent;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.gal-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(244, 239, 233, 0.1);
  background: rgba(244, 239, 233, 0.04);
  cursor: pointer;
  margin: 0;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-item.in { opacity: 1; transform: none; }

.gal-item img,
.gal-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-item:hover img,
.gal-item:hover video { transform: scale(1.045); }

.gal-item .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(11, 9, 18, 0.78), transparent);
  pointer-events: none;
}

.gal-item .meta b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.gal-item .meta span {
  font-size: 0.78rem;
  color: rgba(244, 239, 233, 0.65);
}

.gal-item .type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.9);
  background: rgba(11, 9, 18, 0.55);
  border: 1px solid rgba(244, 239, 233, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(11, 9, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox[hidden] { display: none; }

.lightbox-media img,
.lightbox-media video {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: 16px;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  color: var(--paper);
  background: rgba(244, 239, 233, 0.1);
  border: 1px solid rgba(244, 239, 233, 0.22);
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gal-item { opacity: 1; transform: none; transition: none; }
  .gal-item img, .gal-item video { transition: none; }
}

/* ---- Cases ---- */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(244, 239, 233, 0.12);
  background: rgba(244, 239, 233, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-card .media {
  position: relative;
  min-height: 280px;
  background: rgba(244, 239, 233, 0.04);
}

.case-card .media img,
.case-card .media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card .body { padding: 34px 36px 32px; }

.case-card .k {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.55);
}

.case-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.case-card .body > p {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(244, 239, 233, 0.75);
}

.case-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.case-card .tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(244, 239, 233, 0.8);
  background: rgba(244, 239, 233, 0.07);
  border: 1px solid rgba(244, 239, 233, 0.16);
}

.case-card .stats {
  display: flex;
  gap: 34px;
  margin-top: 22px;
}

.case-card .stats b {
  display: block;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-card .stats span {
  font-size: 0.8rem;
  color: rgba(244, 239, 233, 0.6);
}

.case-card .act { margin-top: 22px; }

.case-card .act a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b0912;
  text-decoration: none;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
}

@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card .media { min-height: 230px; }
}

@media (max-width: 640px) {
  .case-card .body { padding: 26px 22px 26px; }
  .case-card .stats { gap: 24px; }
}

/* ==================================================================
   v2 additions: portal motion graphic, interactive media hub,
   case galleries, lightbox nav
================================================================== */

/* ---- Portal motion graphic ---- */
.pm { border-radius: 20px; border: 1px solid rgba(244,239,233,.12); background: rgba(11,9,18,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.pm-stage { display: grid; grid-template-columns: 50px minmax(0,1fr); min-height: 330px; }
.pm-side { border-right: 1px solid rgba(244,239,233,.1); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; }
.pm-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(244,239,233,.08); transition: background .4s; }
.pm.play .pm-side i.a1 { animation: pmSide 16s infinite; animation-delay: var(--off,0s); }
.pm.play .pm-side i.a2 { animation: pmSide 16s infinite; animation-delay: calc(-12s + var(--off,0s)); }
.pm.play .pm-side i.a3 { animation: pmSide 16s infinite; animation-delay: calc(-8s + var(--off,0s)); }
.pm.play .pm-side i.a4 { animation: pmSide 16s infinite; animation-delay: calc(-4s + var(--off,0s)); }
@keyframes pmSide { 0%,24% { background: linear-gradient(135deg,var(--grad-a),var(--grad-c)); } 25%,100% { background: rgba(244,239,233,.08); } }
.pm-main { position: relative; padding: 20px; overflow: hidden; }
.pm-scene { position: absolute; inset: 20px; opacity: 0; transform: translateX(28px); }
.pm.play .pm-scene { animation: pmScene 16s infinite; animation-delay: var(--off,0s); }
.pm.play .s1 { animation-delay: calc(0s + var(--off,0s)); } .pm.play .s2 { animation-delay: calc(4s + var(--off,0s)); } .pm.play .s3 { animation-delay: calc(8s + var(--off,0s)); } .pm.play .s4 { animation-delay: calc(12s + var(--off,0s)); }
@keyframes pmScene { 0% { opacity: 0; transform: translateX(28px); } 4%,22% { opacity: 1; transform: none; } 26%,100% { opacity: 0; transform: translateX(-20px); } }
.pm-cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.pm-cal i { aspect-ratio: 1; border-radius: 6px; background: rgba(244,239,233,.06); }
.pm-cal i.p { background: linear-gradient(135deg,var(--grad-a),var(--grad-b)); opacity: 0; transform: scale(.4); }
.pm.play .pm-cal i.p { animation: pmPop 16s infinite; animation-delay: var(--off,0s); }
.pm.play .pm-cal i.p:nth-of-type(2) { animation-delay: calc(0.3s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(4) { animation-delay: calc(0.5s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(7) { animation-delay: calc(0.7s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(9) { animation-delay: calc(0.9s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(12) { animation-delay: calc(1.1s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(15) { animation-delay: calc(1.3s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(17) { animation-delay: calc(1.5s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(20) { animation-delay: calc(1.7s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(24) { animation-delay: calc(1.9s + var(--off,0s)); }
.pm.play .pm-cal i.p:nth-of-type(26) { animation-delay: calc(2.1s + var(--off,0s)); }
@keyframes pmPop { 0%,3% { opacity: 0 + var(--off,0s)); transform: scale(.4); } 6%,22% { opacity: 1; transform: none; } 26%,100% { opacity: 0; transform: scale(.4); } }
.pm-tag { margin-top: 14px; font-size: .8rem; color: rgba(244,239,233,.6); }
.pm-card { opacity: 0; }
.pm.play .pm-card { animation: pmIn 16s infinite; animation-delay: calc(4.2s + var(--off,0s)); }
@keyframes pmIn { 0% { opacity: 0; transform: translateY(10px); } 3%,22% { opacity: 1; transform: none; } 26%,100% { opacity: 0; } }
.pm-ok { position: relative; overflow: hidden; }
.pm-ok i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; background: #6fce8f; color: #0b0912; opacity: 0; }
.pm.play .pm-ok i { animation: pmOk 16s infinite; animation-delay: calc(4s + var(--off,0s)); }
@keyframes pmOk { 0%,12% { opacity: 0; } 13%,22% { opacity: 1; } 26%,100% { opacity: 0; } }
.pm-toast { margin-top: 14px; font-size: .8rem; padding: 9px 12px; border-radius: 10px; background: rgba(111,206,143,.15); color: #9fe6b8; opacity: 0; }
.pm.play .pm-toast { animation: pmToast 16s infinite; animation-delay: calc(4s + var(--off,0s)); }
@keyframes pmToast { 0%,13% { opacity: 0; transform: translateY(6px); } 15%,22% { opacity: 1; transform: none; } 26%,100% { opacity: 0; } }
.pm-cursor { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(244,239,233,.25); opacity: 0; left: 70%; top: 80%; pointer-events: none; }
.pm.play .pm-cursor { animation: pmCur 16s infinite; animation-delay: calc(4s + var(--off,0s)); }
@keyframes pmCur { 0%,4% { opacity: 0; left: 70%; top: 85%; } 6% { opacity: 1; } 11% { left: 27%; top: 64%; transform: scale(1); } 12% { transform: scale(.7); } 13% { transform: scale(1); } 20% { opacity: 1; left: 30%; top: 66%; } 22%,100% { opacity: 0; } }
.pm-bub { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .85rem; margin-bottom: 9px; opacity: 0; transform: translateY(8px); }
.pm-bub b { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,233,.5); margin-bottom: 3px; }
.pm-bub.h { background: rgba(244,239,233,.07); }
.pm-bub.j { background: rgba(139,63,245,.28); margin-left: auto; }
.pm-typing { display: flex; gap: 4px; padding: 10px 12px; width: max-content; border-radius: 14px; background: rgba(139,63,245,.2); margin: 0 0 9px auto; opacity: 0; }
.pm-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,239,233,.7); animation: pmDot 1s infinite; }
.pm-typing i:nth-child(2) { animation-delay: .15s; } .pm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pmDot { 50% { transform: translateY(-4px) + var(--off,0s)); opacity: .5 } }
.pm.play .b1 { animation: pmIn 16s infinite; animation-delay: calc(8.3s + var(--off,0s)); }
.pm.play .b2 { animation: pmTyping 16s infinite; animation-delay: calc(8s + var(--off,0s)); }
.pm.play .b3 { animation: pmIn 16s infinite; animation-delay: calc(9.6s + var(--off,0s)); }
.pm.play .b4 { animation: pmIn 16s infinite; animation-delay: calc(10.8s + var(--off,0s)); }
@keyframes pmTyping { 0%,5% { opacity: 0; } 6%,9% { opacity: 1; } 10%,100% { opacity: 0; height: 0; padding: 0; margin: 0; } }
.pm-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pm-kpis div { padding: 12px; border-radius: 12px; background: rgba(244,239,233,.05); border: 1px solid rgba(244,239,233,.1); }
.pm-kpis b { display: block; font-size: 1.4rem; font-weight: 600; background: linear-gradient(90deg,var(--grad-a),var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-kpis span { font-size: .72rem; color: rgba(244,239,233,.55); }
.pm-bars { display: flex; gap: 8px; align-items: flex-end; height: 80px; margin-top: 16px; }
.pm-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg,var(--grad-b),var(--grad-c)); transform: scaleY(0); transform-origin: bottom; }
.pm.play .pm-bars i { animation: pmBar 16s infinite; animation-delay: calc(12.2s + var(--d,0s) + var(--off,0s)); }
.pm-bars i:nth-child(2) { --d: .1s; } .pm-bars i:nth-child(3) { --d: .2s; } .pm-bars i:nth-child(4) { --d: .3s; } .pm-bars i:nth-child(5) { --d: .4s; } .pm-bars i:nth-child(6) { --d: .5s; }
@keyframes pmBar { 0% { transform: scaleY(0); } 5%,22% { transform: scaleY(1); } 26%,100% { transform: scaleY(0); } }
.pm-timeline { height: 3px; background: rgba(244,239,233,.1); }
.pm-timeline i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--grad-a),var(--grad-b),var(--grad-c)); }
.pm.play .pm-timeline i { animation: pmTl 16s linear infinite; animation-delay: var(--off,0s); }
@keyframes pmTl { from { width: 0 } to { width: 100% } }
.pm-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: pm; }
.pm-steps li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid rgba(244,239,233,.1); opacity: .45; transition: opacity .5s; cursor: pointer; }
.pm-steps li::before { counter-increment: pm; content: "0" counter(pm); position: absolute; left: 0; top: 13px; font-size: .78rem; font-weight: 600; color: rgba(244,239,233,.5); }
.pm-steps li.on { opacity: 1; }
.pm-steps li.on::before { background: linear-gradient(90deg,var(--grad-a),var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-steps b { display: block; font-size: 1rem; }
.pm-steps span { display: block; margin-top: 4px; font-size: .85rem; line-height: 1.45; color: rgba(244,239,233,.65); }

/* ---- Interactive media hub ---- */
.hub-body { position: relative; }
.hub-nav em { cursor: pointer; }
.hub-nav em > span { display: inline-flex; align-items: center; gap: 8px; }
.hub-nav em svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.hub-nav .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.hub-nav .dot.ok { background: #6fce8f; } .hub-nav .dot.ch { background: var(--grad-a); }
.hub-main { position: relative; min-height: 420px; }
.hub-tools { display: flex; gap: 8px; align-items: center; }
.hub-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: .8rem; font-style: normal; font-weight: 500; color: rgba(244,239,233,.85); border: 1px solid rgba(244,239,233,.2); cursor: pointer; transition: background .2s; }
.hub-btn:hover { background: rgba(244,239,233,.08); }
.hub-btn.ok.on { background: #6fce8f; color: #0b0912; border-color: transparent; }
.hub-btn.ch.on { background: var(--grad-a); color: #0b0912; border-color: transparent; }
.hub-zip { cursor: pointer; }
.hub-grid { max-height: 380px; overflow: auto; padding-right: 4px; }
.hub-card { position: relative; border-radius: 12px; border: 1px solid rgba(244,239,233,.1); background: rgba(244,239,233,.04); overflow: hidden; cursor: pointer; transition: transform .25s, border-color .25s; }
.hub-card:hover { transform: translateY(-2px); border-color: rgba(244,239,233,.3); }
.hub-card.sel { border-color: var(--grad-b); box-shadow: 0 0 0 2px rgba(196,75,209,.4); }
.hub-card .th { aspect-ratio: 16/10; overflow: hidden; background: rgba(244,239,233,.05); }
.hub-card .th img, .hub-card .th video { width: 100%; height: 100%; object-fit: cover; }
.hub-card .chk { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(244,239,233,.8); background: rgba(11,9,18,.5); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #0b0912; opacity: 0; transition: .15s; }
.hub-card:hover .chk, .hub-card.sel .chk { opacity: 1; }
.hub-card.sel .chk { background: var(--grad-a); border-color: var(--grad-a); }
.hub-card .badge { position: absolute; top: 8px; right: 8px; padding: 3px 10px; border-radius: 999px; font-size: .65rem; font-weight: 600; color: #0b0912; }
.hub-card .badge.ok { background: #6fce8f; } .hub-card .badge.ch { background: var(--grad-a); }
.hub-card .meta { padding: 8px 10px; font-size: .74rem; }
.hub-card .meta b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-card .meta span { color: rgba(244,239,233,.5); font-size: .68rem; }
.hub-selbar { display: none; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(244,239,233,.06); font-size: .85rem; }
.hub-selbar.on { display: flex; }
.hub-view { display: none; position: absolute; inset: 0; background: #0b0912; z-index: 3; grid-template-columns: minmax(0,1fr) 270px; border-radius: 0 0 20px 0; overflow: hidden; }
.hub-view.on { display: grid; }
.hv-stage { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 0; }
.hv-stage > div { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hv-stage img, .hv-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.hv-stage video { width: 100%; height: 100%; }
.hv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: 10px; background: linear-gradient(180deg, rgba(11,9,18,.75), transparent); flex-wrap: wrap; }
.hv-top b { flex: 1; font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-panel { border-left: 1px solid rgba(244,239,233,.1); display: flex; flex-direction: column; min-height: 0; }
.hv-tabs { display: flex; border-bottom: 1px solid rgba(244,239,233,.1); }
.hv-tabs span { flex: 1; text-align: center; padding: 11px; font-size: .78rem; color: rgba(244,239,233,.55); border-bottom: 2px solid transparent; cursor: pointer; }
.hv-tabs span.on { color: var(--paper); border-bottom-color: var(--grad-b); }
.hv-list { flex: 1; overflow: auto; padding: 10px 12px; font-size: .8rem; }
.hv-cm { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(244,239,233,.08); }
.hv-cm i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,var(--grad-a),var(--grad-b)); color: #0b0912; flex: none; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: .6rem; font-weight: 700; }
.hv-cm i.j { background: rgba(244,239,233,.12); color: var(--paper); }
.hv-cm b { font-size: .76rem; margin-right: 6px; } .hv-cm small { color: rgba(244,239,233,.45); }
.hv-cm .tc { font-family: ui-monospace, monospace; font-size: .68rem; background: rgba(255,182,46,.18); color: var(--grad-a); padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.hv-compose { border-top: 1px solid rgba(244,239,233,.1); padding: 10px 12px; display: flex; gap: 6px; }
.hv-compose input { flex: 1; min-width: 0; background: rgba(244,239,233,.06); border: 1px solid rgba(244,239,233,.14); border-radius: 999px; padding: 8px 14px; color: var(--paper); font-family: inherit; font-size: 16px; outline: none; }
@media (min-width: 641px) { .hv-compose input { font-size: .82rem; } }
.hub-dl { display: none; position: absolute; inset: 0; z-index: 4; background: rgba(11,9,18,.85); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 14px; }
.hub-dl.on { display: flex; }
.hub-dl .box { width: min(420px,100%); padding: 18px; border-radius: 16px; border: 1px solid rgba(244,239,233,.14); background: #16121f; }
.hub-dl .box > b { display: block; font-size: 1.1rem; margin-bottom: 12px; }
.hub-dl .box .hub-zip, .hub-dl .box .hub-btn { width: 100%; justify-content: center; margin-top: 6px; }
.hub-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.hub-presets span { border: 1px solid rgba(244,239,233,.14); border-radius: 10px; padding: 9px; font-size: .78rem; text-align: center; cursor: pointer; color: rgba(244,239,233,.7); }
.hub-presets span small { display: block; font-size: .64rem; opacity: .7; }
.hub-presets span.on { border-color: var(--grad-b); color: var(--paper); background: rgba(196,75,209,.15); }
.hub-hint { padding: 12px 20px; font-size: .76rem; color: rgba(244,239,233,.55); border-top: 1px solid rgba(244,239,233,.1); display: flex; gap: 16px; flex-wrap: wrap; }
.hub-hint b { color: var(--paper); font-weight: 500; }
.hub-toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(40px); background: var(--paper); color: #0b0912; padding: 9px 16px; border-radius: 999px; font-size: .78rem; font-weight: 500; opacity: 0; transition: .3s; z-index: 5; white-space: nowrap; }
.hub-toast.on { opacity: 1; transform: translateX(-50%); }
@media (max-width: 1000px) { .hub-view { grid-template-columns: 1fr; grid-template-rows: 1fr 46%; border-radius: 0; } .hv-panel { border-left: 0; border-top: 1px solid rgba(244,239,233,.1); } .hub-grid { max-height: none; } }

/* ---- Case galleries + lightbox nav ---- */
.case-gallery { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.case-gallery::-webkit-scrollbar { display: none; }
.case-gallery figure { margin: 0; flex: 0 0 96px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid rgba(244,239,233,.12); cursor: pointer; position: relative; transition: transform .25s, border-color .25s; }
.case-gallery figure:hover { transform: translateY(-2px); border-color: rgba(244,239,233,.4); }
.case-gallery img, .case-gallery video { width: 100%; height: 100%; object-fit: cover; }
.case-gallery figure.v::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244,239,233,.3); background: rgba(11,9,18,.6); color: var(--paper); font-size: 1.1rem; cursor: pointer; z-index: 2; }
.lightbox-nav.prev { left: 16px; } .lightbox-nav.next { right: 16px; }
.lightbox-cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,239,233,.6); white-space: nowrap; }
@media (max-width: 640px) { .lightbox-nav { top: auto; bottom: 48px; transform: none; } }

/* ---- Services: S3 live mini scenes ---- */
.svc .scene{height:64px;margin:-6px 0 16px;border-radius:12px;background:rgba(244,239,233,.04);border:1px solid rgba(244,239,233,.1);position:relative;overflow:hidden}
.svc .scene i,.svc .scene b,.svc .scene em{display:block}
.sc1 i{position:absolute;left:10px;top:10px;width:44px;height:44px;border-radius:8px;background:linear-gradient(135deg,var(--grad-a),var(--grad-c))}
.sc1 b{position:absolute;left:64px;top:14px;height:8px;width:90px;border-radius:4px;background:rgba(244,239,233,.14)}
.sc1 b+b{top:30px;width:60px}
.sc1 em{position:absolute;right:10px;bottom:10px;font-size:.62rem;font-style:normal;padding:4px 9px;border-radius:99px;background:#6fce8f;color:#0b0912;font-weight:600;animation:scSched 4s infinite}
@keyframes scSched{0%,35%{opacity:0;transform:translateY(6px)}45%,90%{opacity:1;transform:none}100%{opacity:0}}
.sc2 i{position:absolute;left:10px;top:10px;right:10px;bottom:10px;border-radius:8px;background:linear-gradient(90deg,#241c34,#3a2350)}
.sc2 b{position:absolute;left:18px;bottom:16px;height:3px;width:0;background:linear-gradient(90deg,var(--grad-a),var(--grad-b));animation:scBar 3s linear infinite}
@keyframes scBar{to{width:calc(100% - 36px)}}
.sc2 em{position:absolute;top:16px;right:18px;width:8px;height:8px;border-radius:50%;background:#ff4d4d;animation:scRec 1s steps(2) infinite}
@keyframes scRec{50%{opacity:0}}
.sc3{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:10px}
.sc3 i{border-radius:4px;background:rgba(244,239,233,.08)}
.sc3 i.p{background:linear-gradient(135deg,var(--grad-a),var(--grad-b));animation:scPop 4s infinite;animation-delay:calc(var(--d)*.25s);opacity:0}
@keyframes scPop{0%{opacity:0;transform:scale(.3)}10%,80%{opacity:1;transform:none}100%{opacity:0}}
.sc4 i{position:absolute;width:26px;height:26px;border-radius:6px;background:var(--grad-a);left:14px;top:19px;animation:scShape1 4s ease-in-out infinite}
.sc4 i+i{background:var(--grad-b);border-radius:50%;left:50px;animation-name:scShape2}
.sc4 i+i+i{background:var(--grad-c);left:86px;animation-name:scShape3;border-radius:2px}
@keyframes scShape1{50%{transform:translateX(72px) rotate(45deg)}}
@keyframes scShape2{50%{transform:scale(1.5)}}
@keyframes scShape3{50%{transform:translateX(-72px) rotate(-90deg)}}
.sc5 i{position:absolute;left:50%;transform:translateX(-50%);top:-30px;width:70px;height:40px;border-radius:4px;background:var(--paper);animation:scPrint 3.4s ease-in-out infinite}
@keyframes scPrint{0%{top:-40px}40%,70%{top:12px}100%{top:70px}}
.sc5 b{position:absolute;left:0;right:0;top:0;height:10px;background:#241c34;border-bottom:1px solid rgba(244,239,233,.1)}
.sc6 i{position:absolute;left:-30px;top:26px;width:12px;height:12px;background:linear-gradient(135deg,var(--grad-a),var(--grad-b));clip-path:polygon(0 0,100% 50%,0 100%,25% 50%);animation:scPlane 3s ease-in-out infinite}
.sc6 b{position:absolute;left:0;top:32px;height:1px;width:0;background:linear-gradient(90deg,transparent,var(--grad-b));animation:scTrail 3s ease-in-out infinite}
@keyframes scPlane{to{left:110%}}
@keyframes scTrail{to{width:110%}}
.sc7 em{position:absolute;left:14px;top:14px;font-size:1.4rem;font-style:normal;font-weight:600;background:linear-gradient(90deg,var(--grad-a),var(--grad-b));-webkit-background-clip:text;background-clip:text;color:transparent}
.sc7 b{position:absolute;right:14px;bottom:12px;font-size:.62rem;padding:3px 8px;border-radius:99px;background:rgba(111,206,143,.2);color:#6fce8f;font-weight:500}
.sc8{display:flex;gap:5px;align-items:flex-end;padding:10px 14px}
.sc8 i{flex:1;background:linear-gradient(180deg,var(--grad-b),var(--grad-c));border-radius:3px 3px 0 0;transform-origin:bottom;animation:scGrow 3s ease-in-out infinite;animation-delay:calc(var(--d)*.12s)}
@keyframes scGrow{0%{transform:scaleY(.1)}40%,75%{transform:scaleY(1)}100%{transform:scaleY(.1)}}
@media(prefers-reduced-motion:reduce){.svc .scene *{animation:none!important}.sc1 em,.sc3 i.p{opacity:1}.sc8 i{transform:none}.sc2 b{width:60%}}

/* ---------- intro loader (L3: first frame sharpens in) ---------- */
.logo img { height: 22px; width: auto; display: block; }
body.is-loading { overflow: hidden; height: 100svh; }
#loader { position: fixed; inset: 0; z-index: 1000; background: #080410; overflow: hidden; }
#loader .lim { position: absolute; inset: -6%; background: url("assets/img/first.webp") center / cover no-repeat; filter: blur(calc(28px * (1 - var(--lp, 0)))) brightness(calc(.3 + .7 * var(--lp, 0))) saturate(calc(.6 + .4 * var(--lp, 0))); transform: scale(calc(1.06 - .06 * var(--lp, 0))); will-change: filter, transform; }
#loader .lim::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,4,16,.15), rgba(8,4,16,.55)); }
#loader .lk { position: absolute; top: 22px; left: 22px; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(244,239,233,.7); }
#loader .ll { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: clamp(26px, 4vw, 44px); width: auto; filter: drop-shadow(0 4px 24px rgba(8,4,16,.6)); }
#loader .lpct { position: absolute; right: 22px; bottom: 30px; font-size: .8rem; letter-spacing: .2em; color: var(--paper); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(8,4,16,.6); }
#loader .lt { position: absolute; left: 22px; bottom: 32px; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,233,.7); }
#loader .lp { position: absolute; left: 22px; right: 22px; bottom: 20px; height: 1px; background: rgba(244,239,233,.2); }
#loader .lp i { display: block; height: 100%; width: calc(var(--lp, 0) * 100%); background: var(--paper); transition: width .25s linear; }
#loader.out { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#loader.out .ll, #loader.out .lk, #loader.out .lpct, #loader.out .lt, #loader.out .lp { opacity: 0; transition: opacity .35s; }
@media (prefers-reduced-motion: reduce) { #loader { display: none; } body.is-loading { overflow: auto; height: auto; } }
