.frame-corners {
  position: absolute;
  z-index: 3;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.brand,
.footer-brand {
  background: transparent;
}

.brand img,
.footer-brand img {
  mix-blend-mode: multiply;
}

.visual-stage {
  isolation: isolate;
}

.hero-loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86);
}

.alternate-loop {
  z-index: 1;
  opacity: 0;
  animation: piano-crossfade 3.805s ease-in-out infinite;
}

.visual-stage::before {
  content: "";
  position: absolute;
  z-index: 5;
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(215, 25, 32, 0.78), transparent);
  box-shadow: 0 0 16px rgba(215, 25, 32, 0.5);
  animation: stage-scan 5.6s ease-in-out infinite;
}

.recording,
.timecode {
  position: absolute;
  z-index: 4;
  margin: 0;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.recording {
  top: 31px;
  left: 32px;
}

.recording i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: rec-pulse 1.2s ease-in-out infinite;
}

.timecode {
  right: 32px;
  bottom: 31px;
}

.portfolio {
  position: relative;
}

.portfolio::before {
  content: "PRODUCTION REEL / 2026";
  display: block;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #777;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: right;
}

.portfolio-card::before,
.portfolio-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 0 rgba(255, 255, 255, 0.68),
    0 36px 0 rgba(255, 255, 255, 0.68),
    0 54px 0 rgba(255, 255, 255, 0.68);
}

.portfolio-card::before {
  left: 11px;
}

.portfolio-card::after {
  right: 11px;
}

.portfolio-card.wide {
  grid-column: span 2;
  min-height: 310px;
}

.portfolio-card > div {
  z-index: 4;
  inset: auto 30px 22px;
}

.portfolio-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.portfolio-card > div::before {
  content: "FRAME / AF";
  display: block;
  width: max-content;
  margin-bottom: 8px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.visual-card {
  animation: card-float 5s ease-in-out infinite;
}

.visual-card.bottom {
  animation-delay: 1.4s;
}

.visual-dock span {
  position: relative;
  overflow: hidden;
}

.visual-dock span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(215, 25, 32, 0.09), transparent 80%);
  transform: translateX(-110%);
  animation: dock-shimmer 4.8s ease-in-out infinite;
}

.skyline {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 18px;
  padding-top: 18px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.skyline p {
  margin: 0;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skyline svg {
  width: 100%;
  height: auto;
  margin-top: 5px;
  overflow: visible;
}

.skyline img {
  width: 100%;
  height: auto;
  margin-top: 6px;
  mix-blend-mode: multiply;
  transform-origin: center bottom;
  animation: skyline-rise 1.15s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 760px;
  margin: 30px auto 0;
  border-block: 1px solid var(--line);
}

.contact-details a,
.contact-details span {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  color: #4d4d4d;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details :last-child {
  border-right: 0;
}

.whatsapp-button {
  gap: 9px;
  border-color: rgba(18, 140, 126, 0.28);
  background: rgba(18, 140, 126, 0.07);
}

.whatsapp-button i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #128c7e;
  box-shadow: 0 0 0 4px rgba(18, 140, 126, 0.12);
}

.made-by {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777;
}

.made-by small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.made-by img {
  width: 58px;
  height: auto;
}

.skyline-line,
.tower-line {
  fill: none;
  stroke: rgba(215, 25, 32, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: skyline-draw 3.2s ease forwards;
}

.tower-line {
  stroke-width: 2.4;
  animation-delay: 0.35s;
}

@keyframes piano-crossfade {
  0%, 40% { opacity: 0; }
  52%, 74% { opacity: 0.94; }
  88%, 100% { opacity: 0; }
}

@keyframes rec-pulse {
  50% { opacity: 0.35; transform: scale(0.8); }
}

@keyframes stage-scan {
  0%, 100% { top: 7%; opacity: 0; }
  18% { opacity: 0.7; }
  76% { opacity: 0.45; }
  88% { top: 92%; opacity: 0; }
}

@keyframes card-float {
  50% { transform: translateY(-7px); }
}

@keyframes dock-shimmer {
  0%, 54% { transform: translateX(-110%); }
  84%, 100% { transform: translateX(110%); }
}

@keyframes skyline-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes skyline-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto 1fr 42px;
  }

  .menu-button {
    grid-column: 3;
    justify-self: end;
    margin-right: -8px;
  }

  .portfolio-card.wide {
    grid-column: auto;
  }

  .recording {
    top: 26px;
    left: 27px;
  }

  .timecode {
    right: 27px;
    bottom: 26px;
  }

  .skyline {
    width: min(100% - 28px, var(--max));
  }

  .contact-details {
    flex-direction: column;
    align-items: stretch;
    max-width: 430px;
  }

  .contact-details a,
  .contact-details span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-details :last-child {
    border-bottom: 0;
  }
}
