/* =============================================================================
   Hero — Framer corner layout (imTheo) + Plasma shader background
   ============================================================================= */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: sticky;
  top: 0;
  padding:
    calc(4.35rem + env(safe-area-inset-top, 0px))
    max(0.45rem, env(safe-area-inset-right, 0px))
    max(0.45rem, env(safe-area-inset-bottom, 0px))
    max(0.45rem, env(safe-area-inset-left, 0px));
  background-color: #000;
  z-index: 1;
  box-sizing: border-box;
}

.hero.hero--past-overlay {
  visibility: hidden;
  pointer-events: none;
}

.hero-content.hero-framer {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: calc(100svh - 4.85rem);
  min-height: calc(100vh - 4.85rem);
  height: 100%;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  background: #000;
  transform: translate3d(0, var(--hero-lift), 0) scale(var(--hero-scale));
  transform-origin: center top;
  opacity: var(--hero-dim);
  backface-visibility: hidden;
}

/* Shader bg animation */
.hero-framer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-framer__bg-shader {
  position: absolute;
  inset: 0 0 -12rem;
  overflow: hidden;
}

.hero-framer__bg-shader canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-framer__bg-noise {
  position: absolute;
  inset: -50%;
  z-index: 1;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png");
  background-size: 180px 180px, 64px 64px;
  background-repeat: repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
  animation: heroNoiseDrift 18s steps(10) infinite;
}

@keyframes heroNoiseDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  10% {
    transform: translate3d(-1.5%, -1%, 0);
  }
  20% {
    transform: translate3d(1%, 1.5%, 0);
  }
  30% {
    transform: translate3d(-0.5%, 2%, 0);
  }
  40% {
    transform: translate3d(2%, -0.5%, 0);
  }
  50% {
    transform: translate3d(-2%, 1%, 0);
  }
  60% {
    transform: translate3d(0.5%, -2%, 0);
  }
  70% {
    transform: translate3d(1.5%, 0.5%, 0);
  }
  80% {
    transform: translate3d(-1%, -1.5%, 0);
  }
  90% {
    transform: translate3d(1%, 1%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.hero-framer__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 4, 4, 0) 55%, #000 100%);
}

/* Absolute Framer-style placement */
.hero-framer__content {
  --hero-pad: clamp(1.35rem, 3.2vw, 2.75rem);
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 100%;
  color: #fff;
  padding: var(--hero-pad);
  box-sizing: border-box;
  font-family: var(--font, var(--font-system));
}

/* Brand top-left */
.hero-framer__brand-block {
  position: absolute;
  top: calc(var(--hero-pad) + clamp(5.5rem, 12vw, 10rem));
  left: var(--hero-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(78%, 58rem);
}

.hero-framer__title {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
}

.hero-framer__brand {
  margin: 0;
  font-size: clamp(5.5rem, 17.5vw, 15.5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.82;
  color: #fff;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hero-framer__letter {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.55em, 0) scale(0.92);
  animation:
    heroLetterIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.08s + var(--i, 0) * 0.07s) both,
    heroLetterGlow 4.8s ease-in-out calc(1.2s + var(--i, 0) * 0.12s) infinite;
  will-change: transform, opacity;
}

.hero-framer__mark {
  font-size: clamp(1.75rem, 4.8vw, 4.85rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #fff;
  margin-top: 0.12em;
  margin-left: 0.04em;
  opacity: 0;
  animation: heroMarkIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-framer__studio-row {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.2vw, 1rem);
  margin-top: clamp(0.25rem, 0.8vw, 0.65rem);
  align-self: flex-end;
}

.hero-framer__studio {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #fff;
  opacity: 0;
  transform: translate3d(1.25rem, 0, 0);
  animation: heroStudioIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.hero-framer__studio-text {
  display: inline-block;
  animation: heroStudioFloat 5.5s ease-in-out 1.5s infinite;
}

.hero-framer__brand-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  opacity: 0;
  animation: heroPlusIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}

.hero-framer__brand-plus--corner {
  position: absolute;
  left: 0.15rem;
  bottom: -0.15rem;
  animation-delay: 0.72s;
}

.hero-framer__brand-plus > i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  font-style: normal;
  animation: heroPlusPulse 2.8s ease-in-out 1.4s infinite;
}

.hero-framer__brand-plus--corner > i {
  animation-delay: 1.7s;
}

.hero-framer__brand-plus span {
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.hero-framer__brand-plus span:first-child {
  width: 100%;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.hero-framer__brand-plus span:last-child {
  width: 1.5px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Services top-right */
.hero-framer__services {
  position: absolute;
  top: calc(var(--hero-pad) + clamp(5.5rem, 12vw, 10rem));
  right: var(--hero-pad);
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  max-width: min(42%, 22rem);
}

.hero-framer__services li {
  margin: 0;
  font-size: clamp(0.875rem, 1.35vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  animation: heroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-framer__services li:nth-child(1) { animation-delay: 0.28s; }
.hero-framer__services li:nth-child(2) { animation-delay: 0.36s; }
.hero-framer__services li:nth-child(3) { animation-delay: 0.44s; }
.hero-framer__services li:nth-child(4) { animation-delay: 0.52s; }

/* Four pluses — mid band */
.hero-framer__pluses {
  position: absolute;
  left: var(--hero-pad);
  right: var(--hero-pad);
  top: 52%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-framer__plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0;
  animation: heroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-framer__plus:nth-child(1) { animation-delay: 0.35s; }
.hero-framer__plus:nth-child(2) { animation-delay: 0.42s; }
.hero-framer__plus:nth-child(3) { animation-delay: 0.49s; }
.hero-framer__plus:nth-child(4) { animation-delay: 0.56s; }

.hero-framer__plus > i {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  font-style: normal;
  animation: heroPlusPulse 3.2s ease-in-out infinite;
}

.hero-framer__plus:nth-child(1) > i { animation-delay: 1.5s; }
.hero-framer__plus:nth-child(2) > i { animation-delay: 1.85s; }
.hero-framer__plus:nth-child(3) > i { animation-delay: 2.2s; }
.hero-framer__plus:nth-child(4) > i { animation-delay: 2.55s; }

.hero-framer__plus span {
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.hero-framer__plus span:first-child {
  width: 11px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.hero-framer__plus span:last-child {
  width: 1.5px;
  height: 11px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Lede bottom-left */
.hero-framer__lede {
  position: absolute;
  left: var(--hero-pad);
  bottom: calc(var(--hero-pad) + 2.25rem);
  z-index: 2;
  margin: 0;
  max-width: min(42%, 26rem);
  font-size: clamp(0.9375rem, 1.45vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: #fff;
  animation: heroEnter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-framer__lede strong {
  font-weight: 700;
}

/* Copyright bottom-center */
.hero-framer__copyright {
  position: absolute;
  left: 50%;
  bottom: var(--hero-pad);
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  animation: heroEnterCopyright 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* Talk card bottom-right */
.hero-talk {
  position: absolute;
  right: var(--hero-pad);
  bottom: var(--hero-pad);
  z-index: 3;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0.65rem;
  width: min(100%, 26.5rem);
  text-decoration: none;
  color: #0a0a0a;
  align-items: stretch;
  animation: heroEnter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-talk:hover {
  transform: translateY(-3px);
}

.hero-talk:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 16px;
}

.hero-talk__photo {
  background: #fff;
  border-radius: 18px;
  padding: 0.45rem;
  overflow: hidden;
  position: relative;
  min-height: 128px;
  width: 100%;
}

.hero-talk__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 128px;
  border-radius: 14px;
  overflow: hidden;
}

.hero-talk__slide {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  border-radius: 14px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.15s ease,
    transform 6.5s ease;
  pointer-events: none;
}

.hero-talk__slide.is-active {
  opacity: 1;
  transform: scale(1);
  position: relative;
  z-index: 1;
}

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

.hero-talk__card {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}

.hero-talk__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-talk__role {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0a0a0a;
}

.hero-talk__at {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #090909;
  opacity: 0.6;
}

.hero-talk__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #090909;
}

.hero-talk__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.42rem 0.42rem 0.42rem 0.9rem;
  border-radius: 50px;
  background: #0a0a0a;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-talk:hover .hero-talk__btn,
.hero-talk:focus-visible .hero-talk__btn {
  background: #1a1a1a;
}

.hero-talk__btn-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-talk__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hero-talk__btn-icon svg {
  display: block;
}

.hero-talk:hover .hero-talk__btn-icon,
.hero-talk:focus-visible .hero-talk__btn-icon {
  transform: translateX(2px);
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroLetterIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.55em, 0) scale(0.92);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes heroLetterGlow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
  }
}

@keyframes heroMarkIn {
  from {
    opacity: 0;
    transform: translate3d(0, -0.35em, 0) scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroStudioIn {
  from {
    opacity: 0;
    transform: translate3d(1.25rem, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroStudioFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -0.18rem, 0);
  }
}

@keyframes heroPlusIn {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-40deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroPlusPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.18) rotate(90deg);
  }
}

@keyframes heroEnterCopyright {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero-framer__services {
    max-width: min(46%, 16rem);
  }

  .hero-framer__lede {
    max-width: min(48%, 22rem);
    bottom: calc(var(--hero-pad) + 11.5rem);
  }

  .hero-talk {
    width: min(100%, 24rem);
  }
}

@media (max-width: 900px) {
  .hero {
    padding:
      calc(4.25rem + env(safe-area-inset-top, 0px))
      max(0.4rem, env(safe-area-inset-right, 0px))
      max(0.4rem, env(safe-area-inset-bottom, 0px))
      max(0.4rem, env(safe-area-inset-left, 0px));
  }

  .hero-content.hero-framer {
    min-height: calc(100svh - 4.7rem);
    min-height: calc(100vh - 4.7rem);
    border-radius: 18px;
  }

  .hero-framer__brand {
    font-size: clamp(4.25rem, 20vw, 9rem);
  }

  .hero-framer__brand-block {
    top: auto;
  }

  .hero-framer__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: calc(var(--hero-pad) + 0.25rem);
  }

  .hero-framer__brand-block,
  .hero-framer__services,
  .hero-framer__pluses,
  .hero-framer__lede,
  .hero-framer__copyright,
  .hero-talk {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: none;
    width: auto;
  }

  .hero-framer__brand-block {
    order: 1;
  }

  .hero-framer__studio {
    align-self: flex-start;
  }

  .hero-framer__services {
    order: 2;
  }

  .hero-framer__pluses {
    order: 3;
    margin: 0.5rem 0;
  }

  .hero-framer__lede {
    order: 4;
    max-width: 36rem;
  }

  .hero-talk {
    order: 5;
    width: min(100%, 22rem);
    margin-top: auto;
  }

  .hero-framer__copyright {
    order: 6;
    transform: none;
    text-align: center;
    align-self: center;
    white-space: normal;
    animation: heroEnter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  }
}

@media (max-width: 640px) {
  .hero {
    padding:
      calc(4.1rem + env(safe-area-inset-top, 0px))
      max(0.35rem, env(safe-area-inset-right, 0px))
      max(0.35rem, env(safe-area-inset-bottom, 0px))
      max(0.35rem, env(safe-area-inset-left, 0px));
  }

  .hero-content.hero-framer {
    min-height: calc(100svh - 4.5rem);
    min-height: calc(100vh - 4.5rem);
    border-radius: 16px;
  }

  .hero-talk {
    grid-template-columns: 120px 1fr;
    width: 100%;
  }

  .hero-talk__name {
    font-size: 1.1rem;
  }

  .hero-framer__studio {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-framer__brand,
  .hero-framer__letter,
  .hero-framer__mark,
  .hero-framer__studio,
  .hero-framer__studio-text,
  .hero-framer__brand-plus,
  .hero-framer__brand-plus > i,
  .hero-framer__services li,
  .hero-framer__plus,
  .hero-framer__plus > i,
  .hero-framer__lede,
  .hero-framer__copyright,
  .hero-talk,
  .hero-framer__bg-noise {
    animation: none !important;
  }

  .hero-framer__brand,
  .hero-framer__letter,
  .hero-framer__mark,
  .hero-framer__studio,
  .hero-framer__studio-text,
  .hero-framer__brand-plus,
  .hero-framer__brand-plus > i,
  .hero-framer__services li,
  .hero-framer__plus,
  .hero-framer__plus > i,
  .hero-framer__lede,
  .hero-framer__copyright,
  .hero-talk {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-framer__bg-noise {
    transform: none !important;
  }

  .hero-framer__copyright {
    transform: translateX(-50%) !important;
  }

  @media (max-width: 900px) {
    .hero-framer__copyright {
      transform: none !important;
    }
  }
}

#studio.trusted-section {
  position: relative;
  z-index: 2;
  transform: translateY(var(--trusted-offset));
  will-change: transform;
}
