/**
 * Studio 360 — Home page
 */

.s360-page-home {
  background: var(--s360-bg);
  background-image:
    radial-gradient(ellipse 58% 48% at 0% 22%, rgba(212, 175, 55, 0.13) 0%, transparent 68%),
    radial-gradient(ellipse 54% 46% at 100% 72%, rgba(75, 44, 94, 0.17) 0%, transparent 68%),
    radial-gradient(ellipse 34% 28% at 92% 6%, rgba(212, 175, 55, 0.09) 0%, transparent 74%),
    radial-gradient(ellipse 34% 30% at 8% 94%, rgba(75, 44, 94, 0.1) 0%, transparent 76%);
  background-repeat: no-repeat;
  background-position: left top, right bottom, right top, left bottom;
  background-size: 64% 58%, 58% 55%, 32% 30%, 34% 32%;
}

/* ===== Hero ===== */
.s360-hero {
  position: relative;
  padding-top: clamp(2rem, 4vw + 1rem, 4rem);
  overflow: hidden;
}

.s360-hero__spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.s360-hero__spot--a {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, transparent 72%);
}

.s360-hero__spot--b {
  width: min(360px, 50vw);
  height: min(360px, 50vw);
  bottom: -6%;
  right: -10%;
  background: radial-gradient(circle, rgba(75, 44, 94, 0.34) 0%, transparent 72%);
}

.s360-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.s360-hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  animation: s360-float-particle 8s ease-in-out infinite;
}

.s360-hero__particle:nth-child(1) { top: 18%; left: 22%; animation-delay: 0s; }
.s360-hero__particle:nth-child(2) { top: 42%; left: 8%; animation-delay: 1.2s; }
.s360-hero__particle:nth-child(3) { top: 28%; right: 18%; animation-delay: 2.1s; }
.s360-hero__particle:nth-child(4) { bottom: 22%; right: 30%; animation-delay: 0.6s; }

@keyframes s360-float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-12px) scale(1.2); opacity: 1; }
}

.s360-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .s360-hero__grid {
    grid-template-columns: minmax(380px, min(48vw, 620px)) 1fr;
    gap: 4rem;
  }
}

.s360-hero__logo-wrap {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.s360-hero-logo {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 16 / 11;
  margin-inline: auto;
}

.s360-hero-logo__frame {
  position: absolute;
  inset: 0;
  border-radius: var(--s360-radius-lg);
  padding: clamp(0.75rem, 1.6vw, 1.1rem);
  overflow: hidden;
  background: var(--s360-bg);
}

.s360-hero-logo__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--s360-radius) + 2px);
  overflow: hidden;
}

.s360-hero-logo__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s360-hero-logo__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(18, 23, 33, 0.58) 80%, var(--s360-bg) 100%),
    linear-gradient(180deg, var(--s360-bg) 0%, transparent 20%, transparent 80%, var(--s360-bg) 100%),
    linear-gradient(90deg, var(--s360-bg) 0%, transparent 15%, transparent 85%, var(--s360-bg) 100%);
}

.s360-hero-logo__viewport::after {
  content: none;
}

.s360-hero-logo--portrait {
  width: min(320px, 68%);
  aspect-ratio: 9 / 14;
  z-index: 1;
  transition: opacity 0.65s var(--s360-ease-out), transform 0.65s var(--s360-ease-out);
}

.s360-hero-logo--portrait .s360-hero-logo__frame {
  padding: clamp(0.65rem, 1.3vw, 0.9rem);
  border-radius: var(--s360-radius);
}

.s360-hero-logo--portrait .s360-hero-logo__viewport {
  border-radius: var(--s360-radius-sm);
}

.s360-hero-logo--portrait .s360-hero-logo__viewport::before {
  background:
    radial-gradient(130% 115% at 50% 50%, transparent 48%, rgba(18, 23, 33, 0.72) 76%, var(--s360-bg) 100%),
    linear-gradient(180deg, var(--s360-bg) 0%, rgba(18, 23, 33, 0.2) 18%, rgba(18, 23, 33, 0.2) 82%, var(--s360-bg) 100%),
    linear-gradient(90deg, var(--s360-bg) 0%, rgba(18, 23, 33, 0.24) 20%, rgba(18, 23, 33, 0.24) 80%, var(--s360-bg) 100%);
}

.s360-hero-logo--portrait.is-fading-out {
  opacity: 0;
  transform: translateY(10px);
}

.s360-hero-logo-fallback {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(500px, 88%);
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.97);
  transition: opacity 0.8s var(--s360-ease-out), transform 0.8s var(--s360-ease-out);
}

.s360-hero-logo-fallback__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.28);
  pointer-events: none;
}

.s360-hero-logo-fallback__core {
  position: absolute;
  inset: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1), transparent 55%);
  animation: s360-core-pulse 4.5s ease-in-out infinite;
}

.s360-hero-logo-fallback__core img {
  width: 105%;
  max-width: none;
  height: auto;
}

.s360-hero-logo-fallback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@keyframes s360-core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.95; }
}

.s360-hero__tagline {
  margin: 1rem 0 0;
  text-align: center;
  font-size: var(--s360-step-2);
  font-family: var(--s360-font-handwriting);
  color: var(--s360-gold);
}

.s360-hero__copy {
  max-width: 48rem;
}

.s360-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--s360-step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s360-gold);
}

.s360-hero__title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--s360-white) 0%, rgba(245, 245, 245, 0.88) 45%, rgba(212, 175, 55, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s360-hero__lead {
  max-width: 42rem;
  margin-bottom: 1.75rem;
  font-size: var(--s360-step-1);
}

.s360-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.s360-hero__guarantee {
  margin: 0.75rem 0 0;
  font-size: var(--s360-step--1);
  color: rgba(245, 245, 245, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.s360-hero__guarantee::before,
.s360-cta-final__microcopy::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    rgba(61, 214, 140, 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%233dd68c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 9px no-repeat;
  border: 1px solid rgba(61, 214, 140, 0.38);
  flex: 0 0 auto;
}

.s360-hero__scroll {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  color: var(--s360-white-muted);
  transition: color var(--s360-duration) var(--s360-ease-out);
}

.s360-hero__scroll:hover { color: var(--s360-gold); }

.s360-hero__scroll-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 0 0 0 1px;
  animation: s360-scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes s360-scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ===== Suite heading ===== */
.s360-suite {
  padding-bottom: 0;
}

.s360-suite__head {
  margin-bottom: 0;
  text-align: center;
}

.s360-suite__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
  font-size: var(--s360-step-4);
}

.s360-suite__title-line {
  flex: 1;
  min-width: 3rem;
  max-width: 8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.s360-suite__title-text {
  white-space: nowrap;
}


/* ============================================================
   THEATER — immersive tool showcase
   ============================================================ */

.s360-theater {
  --theater-accent: rgba(212, 175, 55, 0.6);
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.s360-theater__glow {
  position: absolute;
  top: 8%;
  left: auto;
  right: -14%;
  width: min(620px, 80vw);
  height: min(600px, 80vh);
  transform: none;
  background: radial-gradient(ellipse at center, var(--theater-accent), transparent 70%);
  opacity: 0.08;
  filter: blur(60px);
  pointer-events: none;
  transition: background 0.8s ease, opacity 0.8s ease;
  will-change: background, opacity;
}

.s360-theater[data-accent-active="plum"] { --theater-accent: rgba(75, 44, 94, 0.55); }
.s360-theater[data-accent-active="bonus"] { --theater-accent: rgba(212, 175, 55, 0.45); }
.s360-theater[data-accent-active="gold"]  { --theater-accent: rgba(212, 175, 55, 0.55); }

.s360-theater__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .s360-theater__layout {
    grid-template-columns: 260px 1fr;
    gap: clamp(2rem, 3vw, 3rem);
  }
}

@media (min-width: 1200px) {
  .s360-theater__layout {
    grid-template-columns: 300px 1fr;
  }
}

/* ---- Tab Navigation ---- */
.s360-theater__nav {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
  .s360-theater__nav {
    flex-direction: column;
    gap: 2px;
    overflow-x: visible;
    position: sticky;
    top: 6rem;
  }
}

.s360-theater__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  color: var(--s360-white-muted);
  font-family: var(--s360-font-heading);
  font-size: var(--s360-step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
  border-radius: var(--s360-radius);
}

@media (max-width: 959px) {
  .s360-theater__tab {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}

.s360-theater__tab:hover {
  color: var(--s360-white);
  background: rgba(255, 255, 255, 0.04);
}

.s360-theater__tab.is-active {
  color: var(--s360-white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.s360-theater__tab-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--s360-gold);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.s360-theater__tab.is-active .s360-theater__tab-num {
  opacity: 1;
}

.s360-theater__tab-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s360-theater__tab-progress {
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 960px) {
  .s360-theater__tab-progress {
    top: 0;
    bottom: auto;
    left: 0;
    right: auto;
    width: 2px;
    height: auto;
    border-radius: 2px;
  }
}

.s360-theater__tab.is-active .s360-theater__tab-progress {
  opacity: 1;
}

.s360-theater__tab-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--s360-gold);
  border-radius: 2px;
  transition: none;
}

@media (min-width: 960px) {
  .s360-theater__tab-fill {
    width: 100%;
    height: 0%;
  }
}

.s360-theater__tab.is-active .s360-theater__tab-fill {
  transition: none;
}

.s360-theater__tab.is-active.is-running .s360-theater__tab-fill {
  width: 100%;
  transition-property: width;
  transition-timing-function: linear;
}

@media (min-width: 960px) {
  .s360-theater__tab.is-active.is-running .s360-theater__tab-fill {
    width: 100%;
    height: 100%;
    transition-property: height;
    transition-timing-function: linear;
  }
}


/* ---- Stage ---- */
.s360-theater__stage {
  position: relative;
  min-height: 340px;
}

@media (min-width: 960px) {
  .s360-theater__stage {
    min-height: 440px;
  }
}

.s360-theater__panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}

.s360-theater__panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s, visibility 0s linear 0s;
  pointer-events: auto;
}

@media (min-width: 700px) {
  .s360-theater__panel {
    grid-template-columns: 1fr;
  }
}


/* ---- Browser Frame (the screen) ---- */
.s360-theater__screen {
  position: relative;
}

.s360-theater__frame {
  position: relative;
  border-radius: var(--s360-radius-lg);
  overflow: hidden;
  background: var(--s360-navy-mid);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.s360-theater__frame-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(18, 23, 33, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.s360-theater__frame-chrome span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.s360-theater__frame-chrome span:first-child { background: rgba(255, 95, 87, 0.7); }
.s360-theater__frame-chrome span:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.s360-theater__frame-chrome span:nth-child(3) { background: rgba(39, 201, 63, 0.7); }

.s360-theater__frame-viewport {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}

.s360-theater__shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---- Preview surface inside frame ---- */
.s360-theater__frame-viewport .s360-tool-card__screen {
  position: absolute;
  inset: 0;
  background: var(--s360-navy-mid) url("../images/video-poster-placeholder.svg") center / cover no-repeat;
}

.s360-theater__frame-viewport .s360-tool-card__screen--demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(212, 175, 55, 0.07) 50%, transparent 60%);
  animation: s360-shimmer 3.5s ease-in-out infinite;
}

.s360-tool-card__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s360-tool-card__screen-label {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s360-white-muted);
  background: rgba(18, 23, 33, 0.65);
  border-radius: 4px;
}

@keyframes s360-shimmer {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}


/* ---- Info Block ---- */
.s360-theater__info {
  padding: 0.5rem 0;
}

.s360-theater__info-title {
  margin: 0 0 0.65rem;
  font-size: var(--s360-step-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.s360-theater__info-desc {
  margin: 0 0 1.25rem;
  font-size: var(--s360-step-1);
  color: var(--s360-white-muted);
  line-height: 1.7;
  max-width: 52ch;
}

.s360-theater__info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--s360-font-heading);
  font-weight: 600;
  font-size: var(--s360-step-0);
  color: var(--s360-gold);
  transition: gap 0.3s var(--s360-ease-out), color 0.3s ease;
}

.s360-theater__info-link:hover {
  color: var(--s360-gold-hover);
  gap: 0.75rem;
}


.s360-cta-final__microcopy {
  margin: 0.75rem 0 0;
  font-size: var(--s360-step--1);
  color: rgba(245, 245, 245, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

/* ============================================================
   Founders
   ============================================================ */

.s360-founders {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 34, 51, 0.5) 35%, rgba(18, 23, 33, 0.92) 100%);
  border-top: 1px solid var(--s360-glass-border);
}

.s360-founders__inner {
  max-width: min(1200px, var(--s360-container));
}

.s360-founders__intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.s360-founders__title {
  margin: 0 0 0.35rem;
  font-size: var(--s360-step-4);
}

.s360-founders__names {
  margin: 0 0 0.5rem;
  font-size: var(--s360-step-2);
  font-weight: 600;
  color: var(--s360-gold);
}

.s360-founders__hand {
  margin: 0;
  font-family: var(--s360-font-handwriting);
  font-size: var(--s360-step-3);
  color: var(--s360-white-muted);
}

.s360-founders__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .s360-founders__grid {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }
}

.s360-founders__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.s360-founders__img {
  border-radius: var(--s360-radius-lg);
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--s360-shadow-card);
}

.s360-founders__quote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid rgba(212, 175, 55, 0.45);
  font-size: var(--s360-step-1);
  line-height: 1.75;
  color: var(--s360-white-muted);
}

.s360-founders__quote p:last-child { margin-bottom: 0; }

.s360-founders__cta {
  margin-top: 2.5rem;
  text-align: center;
}


/* ============================================================
   Final CTA
   ============================================================ */

.s360-cta-final {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.s360-cta-final__card {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.s360-cta-final__title {
  margin: 0 0 0.75rem;
  font-size: var(--s360-step-4);
}

.s360-cta-final__lead {
  margin: 0 0 1.5rem;
  font-size: var(--s360-step-1);
}


/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .s360-hero__particle,
  .s360-hero__scroll-icon,
  .s360-theater__frame-viewport .s360-tool-card__screen--demo::after {
    animation: none;
  }

  .s360-theater__panel {
    transition-duration: 0.01s;
  }

  .s360-theater__glow {
    transition-duration: 0.01s;
  }
}
