/* Flagship Hero: Ambient Interactive Canvas + Monumental Typography + Expanding 10-Syntrofos Portrait Deck */

.studio-hero {
  --stage-ink: #F5F6FA;
  --stage-muted: #9FA6B8;
  --stage-base: #090A0F;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(36px, 4.5vw, 56px);
  margin-inline: calc(-1 * var(--pad));
  padding: clamp(72px, 8.5vw, 128px) var(--pad) clamp(52px, 6vw, 84px);
  background:
    radial-gradient(ellipse 74% 52% at 50% -10%, rgba(124, 77, 255, 0.24), transparent 62%),
    radial-gradient(ellipse 46% 42% at 88% 20%, rgba(31, 99, 214, 0.16), transparent 60%),
    radial-gradient(ellipse 44% 40% at 12% 24%, rgba(212, 20, 46, 0.12), transparent 60%),
    linear-gradient(180deg, #090A0F 0%, #10121B 60%, #0E0F14 100%);
  color: var(--stage-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  z-index: 0;
}

.studio-intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #E2E6F2;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border: 3.5px solid var(--c-create);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--c-create);
}

.studio-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  color: #FFFFFF;
}

.studio-intro h1 span {
  display: block;
  color: #A6ADBF;
  margin-bottom: 0.05em;
}

.studio-intro p {
  max-width: 52ch;
  margin: 24px auto 36px;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
  color: #C9CEDB;
}

.studio-intro p a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}

.studio-intro p a:hover {
  text-decoration-color: #FFFFFF;
}

.studio-intro .actions {
  justify-content: center;
}

.studio-intro .primary {
  background: #FFFFFF;
  color: #14151A;
  padding: 0 30px;
  min-height: 52px;
  box-shadow: 0 18px 42px -14px rgba(255, 255, 255, 0.42);
}

.studio-intro .primary:hover {
  background: #ECEFF6;
}

.studio-intro .ghost-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  min-height: 52px;
  padding: 0 26px;
  backdrop-filter: blur(8px);
}

.studio-intro .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.42);
}

.studio-hero a:focus-visible,
.studio-hero button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* Interactive Expanding Portrait Deck */
.portrait-wall {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  text-align: left;
}

.portrait-deck {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: clamp(320px, 31vw, 430px);
  width: 100%;
}

.portrait {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #FFFFFF;
  background: #1C1E27;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.85);
  text-decoration: none;
  transition:
    flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.portrait.is-active,
.portrait:hover,
.portrait:focus-visible {
  flex-grow: 2.6;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 3;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transition: transform 0.65s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.92) brightness(0.92);
}

.portrait.is-active img,
.portrait:hover img,
.portrait:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.04) brightness(1.02);
}

.portrait-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 14px 14px;
  background: linear-gradient(to top, rgba(8, 9, 14, 0.94) 0%, rgba(8, 9, 14, 0.58) 54%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portrait-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.portrait-role-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: #C7CEE0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}

.portrait.is-active .portrait-role-tag,
.portrait:hover .portrait-role-tag,
.portrait:focus-visible .portrait-role-tag {
  opacity: 1;
}

.portrait-entity-tag {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  color: #D2C4FF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portrait-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portrait-footer .secondary {
  min-height: 44px;
  color: #E7EAF2;
  font-size: 14px;
  text-decoration-color: rgba(255, 255, 255, 0.32);
}

.portrait-footer .secondary:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.portrait-motion {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #D7DBE5;
  font-size: 12.5px;
  font-weight: 500;
}

.portrait-motion:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #FFFFFF;
}

.portrait-motion[hidden] {
  display: none;
}

.motion-icon {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 1020px) {
  .portrait-deck {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(195px, 32vw);
    height: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .portrait {
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
    flex: none;
  }
  .portrait.is-active,
  .portrait:hover,
  .portrait:focus-visible {
    flex-grow: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .studio-hero {
    padding-block: 48px 40px;
    gap: 28px;
  }
  .studio-intro h1 {
    font-size: clamp(36px, 9.5vw, 54px);
  }
  .studio-intro p {
    margin: 16px auto 24px;
    font-size: 16.5px;
  }
  .portrait-deck {
    grid-auto-columns: minmax(170px, 52vw);
    gap: 10px;
  }
  .portrait-motion {
    display: none;
  }
}
