/* Sentryc Premium — cohesive visual layer (loads last) */

:root {
  --premium-bg: #03040a;
  --premium-surface: rgba(12, 16, 32, 0.72);
  --premium-border: rgba(255, 255, 255, 0.1);
  --premium-border-strong: rgba(34, 211, 238, 0.35);
  --premium-text: #f4f7ff;
  --premium-muted: rgba(196, 210, 240, 0.62);
  --premium-radius: 20px;
  --premium-radius-lg: 28px;
  --premium-glow: 0 0 80px color-mix(in srgb, var(--scene-accent, #22d3ee) 18%, transparent);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 5%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(167, 139, 250, 0.08), transparent 55%),
    var(--premium-bg) !important;
  color: var(--premium-text);
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent);
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

/* ── Header ── */

.header {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px);
  background: rgba(3, 4, 10, 0.72);
}

.nav a {
  color: rgba(220, 230, 255, 0.55);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--premium-text);
}

/* ── Typography ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--scene-accent, #22d3ee) 85%, white);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--scene-accent, #22d3ee), transparent);
}

.section-heading h2,
.unfold-scene__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  max-width: 14ch;
}

.section-heading__lead {
  margin: 0.75rem 0 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--premium-muted);
}

/* ── Hero premium split ── */

.hero--premium {
  min-height: calc(100vh - 72px);
  display: block !important;
  text-align: left !important;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem) !important;
}

.hero-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-premium__copy {
  max-width: 640px;
}

.hero--premium h1 {
  font-size: clamp(2.75rem, 5.8vw, 4.75rem) !important;
  line-height: 0.98 !important;
  max-width: none !important;
  margin-inline: 0 !important;
  text-align: left !important;
  letter-spacing: -0.045em;
}

.hero--premium .hero__kicker {
  margin: 1.25rem 0 0 !important;
  max-width: 38ch !important;
  margin-inline: 0 !important;
  text-align: left !important;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--premium-muted);
}

.hero--premium .hero__actions {
  justify-content: flex-start;
  margin-top: 2rem;
}

.hero__accent {
  background: linear-gradient(120deg, #a78bfa 0%, #22d3ee 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-premium__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--premium-radius-lg);
  border: 1px solid var(--premium-border-strong);
  box-shadow: var(--premium-glow), 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transform-origin: center right;
}

.hero-premium__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), transparent 50%, rgba(34, 211, 238, 0.1));
  pointer-events: none;
  z-index: 3;
}

.hero__scroll-hint {
  left: 0 !important;
  transform: none !important;
  bottom: 1rem;
}

/* ── Unfold scene fix ── */

.unfold-scene__stage {
  height: 300vh;
}

.unfold-object {
  width: min(580px, 92vw) !important;
  height: min(360px, 56vw) !important;
  transform:
    rotateX(calc(18deg - var(--unfold-p) * 18deg))
    rotateY(calc(-24deg + var(--unfold-p) * 24deg))
    scale(calc(0.78 + var(--unfold-p) * 0.35)) !important;
}

.unfold-flap {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.unfold-flap--left,
.unfold-flap--right,
.unfold-flap--top {
  opacity: calc(0.2 + (1 - var(--unfold-p)) * 0.45) !important;
}

.unfold-object__core {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 80px color-mix(in srgb, var(--scene-accent) 35%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.unfold-scene__steps span {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.unfold-scene__steps span.is-active {
  color: var(--premium-text);
  text-shadow: 0 0 24px color-mix(in srgb, var(--scene-accent) 40%, transparent);
}

/* ── Immersive video ── */

.video-immersive {
  position: relative;
  width: 100%;
  margin: clamp(3rem, 8vw, 6rem) 0;
  padding: 0;
}

.video-immersive__media {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 52vh, 560px);
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.video-immersive__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(3, 4, 10, 0.55) 0%, transparent 35%, transparent 55%, rgba(3, 4, 10, 0.85) 100%),
    linear-gradient(90deg, rgba(3, 4, 10, 0.5) 0%, transparent 30%, transparent 70%, rgba(3, 4, 10, 0.5) 100%);
  pointer-events: none;
}

.video-immersive__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  max-width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.video-immersive__copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.video-immersive__copy p {
  margin: 0.75rem 0 0;
  max-width: 40ch;
  color: var(--premium-muted);
  font-size: 1.05rem;
}

/* ── About split ── */

.about-premium {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-premium__aside .section-heading h2 {
  max-width: 12ch;
}

.about-strip {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-strip__card {
  padding: 1.75rem 2rem !important;
  border-radius: var(--premium-radius) !important;
}

.about-chips {
  margin-top: 1.5rem;
}

/* ── Bento directions ── */

.bento-grid {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 1rem;
}

.direction-card {
  min-height: 0 !important;
}

.bento-grid__item {
  grid-column: span 6;
  min-height: 200px;
  padding: 1.75rem !important;
  border-radius: var(--premium-radius) !important;
}

.bento-grid__item--wide {
  grid-column: span 8;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--scene-accent) 12%, transparent), transparent) !important;
}

.bento-grid__item--accent {
  grid-column: span 4;
}

.bento-grid__item h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.bento-grid__item p {
  color: var(--premium-muted);
  line-height: 1.6;
  margin: 0;
}

/* Icon fix — legacy padding was crushing SVGs to invisibility */
.direction-card__icon,
.case-panel__icon {
  all: unset;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
}

.direction-card__icon--svg,
.case-panel__icon--svg {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  margin-bottom: 1rem !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  overflow: visible !important;
}

.direction-card__svg,
.case-panel__svg {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35));
}

/* ── Premium cards ── */

.glass-card {
  background: var(--premium-surface) !important;
  border: 1px solid var(--premium-border) !important;
  border-radius: var(--premium-radius) !important;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card:hover {
  border-color: var(--premium-border-strong) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), var(--premium-glow) !important;
}

.glass-card::before {
  opacity: 0.35 !important;
}

/* ── Scenarios strip ── */

.cases-marquee {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.case-panel {
  min-height: 180px !important;
  padding: 1.5rem !important;
}

.case-panel__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--scene-accent) 70%, white);
  margin-bottom: 0.75rem;
}

/* ── Process ── */

.process-path--lean {
  padding: 2rem !important;
  border-radius: var(--premium-radius-lg) !important;
}

.process-step h3 {
  font-size: 1.1rem;
}

/* ── Contact ── */

.contact-hub--lean {
  border-radius: var(--premium-radius-lg) !important;
  overflow: hidden;
}

.contact-hub__marker::before,
.contact-hub__marker::after {
  border-color: color-mix(in srgb, var(--scene-accent) 60%, white) !important;
}

/* ── Buttons ── */

.button--primary {
  background: linear-gradient(135deg, #7c3aed, #22d3ee) !important;
  border: none !important;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35) !important;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* ── Section spacing ── */

.section--lean {
  padding-block: clamp(5rem, 12vw, 8rem) !important;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-premium {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero--premium h1,
  .hero--premium .hero__kicker,
  .hero--premium .hero__actions {
    text-align: center;
    justify-content: center;
    margin-inline: auto;
  }

  .hero-premium__visual {
    transform: none;
    max-width: 560px;
    margin-inline: auto;
  }

  .about-premium {
    grid-template-columns: 1fr;
  }

  .bento-grid__item,
  .bento-grid__item--wide,
  .bento-grid__item--accent {
    grid-column: span 12;
  }

  .cases-marquee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cases-marquee--scroll {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .cases-marquee--scroll .case-panel {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }

  .video-immersive__copy h2 {
    font-size: 1.5rem;
  }

  .unfold-scene__stage {
    height: 260vh;
  }
}

@media (max-width: 560px) {
  .cases-marquee {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium__visual {
    transform: none;
  }
}
