@import url('/portfolio/visual-first.css');

/* Conversion-focused finishing layer: control the showreel first frame,
   surface the digital-studio offer without diluting the visual portfolio,
   and simplify contact for a local Zermatt buyer. */

.portfolio-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #0b0b0a;
  color: #f2efe8;
  text-align: left;
}

.portfolio-video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.78) contrast(1.05) brightness(.62);
  transform: scale(1.02);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

.portfolio-video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,6,.82) 0%, rgba(7,7,6,.35) 52%, rgba(7,7,6,.55) 100%),
    linear-gradient(180deg, transparent 42%, rgba(7,7,6,.74) 100%);
}

.portfolio-video-poster-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 62px);
  bottom: clamp(24px, 5vw, 58px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.portfolio-video-play {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2efe8;
  color: #11110f;
  font-size: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
}

.portfolio-video-poster-copy strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-video-poster-copy span:last-child {
  display: block;
  margin-top: 5px;
  color: rgba(242,239,232,.62);
  font-size: 12px;
}

@media (hover:hover) and (pointer:fine) {
  .portfolio-video-poster:hover img {
    transform: scale(1.045);
    filter: saturate(.85) contrast(1.06) brightness(.69);
  }
}

.portfolio-studio-teaser {
  padding: clamp(70px, 8vw, 118px) 0;
  border-top: 1px solid rgba(242,239,232,.08);
  border-bottom: 1px solid rgba(242,239,232,.08);
  background:
    radial-gradient(circle at 84% 18%, rgba(199,168,107,.10), transparent 30rem),
    #0a0a09;
}

.portfolio-studio-teaser-grid {
  display: grid;
  grid-template-columns: minmax(150px,.55fr) minmax(0,1.45fr);
  gap: 30px;
}

.portfolio-studio-teaser-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(28px, 4.6vw, 56px);
  border: 1px solid rgba(199,168,107,.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 46%),
    #10100e;
}

.portfolio-studio-teaser-card::after {
  content: "WEB / DIGITAL / AI";
  position: absolute;
  right: -15px;
  top: 34px;
  color: rgba(242,239,232,.055);
  font-family: 'DM Mono', monospace;
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: .08em;
  white-space: nowrap;
  transform: rotate(8deg);
  pointer-events: none;
}

.portfolio-studio-teaser-card h2 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  margin: 0 0 20px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 400;
}

.portfolio-studio-teaser-card p {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0;
  color: rgba(242,239,232,.65);
  font-size: 16px;
  line-height: 1.65;
}

.portfolio-studio-teaser-note {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: rgba(242,239,232,.42);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-studio-teaser .portfolio-btn {
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

.portfolio-instagram-section {
  padding-top: clamp(64px, 7vw, 96px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
}

.portfolio-contact-details {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

@media (max-width: 860px) {
  .portfolio-studio-teaser-grid { grid-template-columns: 1fr; }
  .portfolio-studio-teaser-card { min-height: 300px; }
}

@media (max-width: 560px) {
  .portfolio-video-poster-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .portfolio-video-play {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .portfolio-studio-teaser { padding: 64px 0; }
  .portfolio-studio-teaser-card {
    min-height: 310px;
    padding: 24px;
    border-radius: 18px;
  }
  .portfolio-studio-teaser-card h2 { font-size: clamp(44px, 14vw, 60px); }
  .portfolio-studio-teaser-card p { font-size: 14px; }
  .portfolio-studio-teaser .portfolio-btn { width: 100%; }
  .portfolio-contact-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-video-poster img { transition: none; }
  .portfolio-video-poster:hover img { transform: scale(1.02); }
}
