/* OurWork/01-hero/style.css - Section-specific styles */

/* 01 hero: title on the left, pixel mosaic (purple into amber) on the right */
.owh {
  position: relative;
  overflow: hidden;
  padding-top: clamp(34px, 3.2cqi, 52px);
}

.owh-px {
  --u: 1cqi;
  position: absolute;
  left: calc(var(--u) * 44.2);
  top: calc(var(--u) * -.15);
  width: calc(var(--u) * 57.2);
  height: calc(var(--u) * 20.7);
  pointer-events: none;
}

.owh-px i {
  position: absolute;
  display: block;
  width: calc(var(--u) * 3.04);
  height: calc(var(--u) * 2.99);
  transition: transform .6s var(--ease), opacity .6s;
}

.owh-px i:nth-child(7n+3) {
  animation: owPx 6s ease-in-out infinite alternate;
}

.owh-px i:nth-child(11n+5) {
  animation: owPx 7.5s ease-in-out 1.2s infinite alternate;
}

@keyframes owPx {
  0%, 55% { opacity: 1; }
  100% { opacity: .62; }
}

.owh-in {
  position: relative;
  z-index: 2;
}

.owh-h1 {
  max-width: 44cqi;
  margin-top: clamp(22px, 2.3cqi, 34px);
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(40px, 4.05cqi, 64px);
  line-height: 1.02;
  letter-spacing: -.036em;
}

.owh-h1 .l {
  display: block;
}

.owh-h1 .p {
  color: var(--purple);
}

.owh-s {
  max-width: 40cqi;
  margin-top: clamp(22px, 2.3cqi, 34px);
  padding-left: clamp(20px, 2.3cqi, 34px);
  border-left: 1.5px solid rgba(0, 0, 0, .24);
  font-size: clamp(17px, 1.38cqi, 22px);
  line-height: 1.45;
  color: rgba(0, 0, 0, .86);
  text-wrap: pretty;
}

/* Responsive */
@container page (max-width: 1100px) {
  .owh-px { left: 50cqi; }
  .owh-h1 { max-width: 46cqi; font-size: clamp(36px, 4.3cqi, 48px); }
  .owh-s { max-width: 42cqi; }
}
@media (max-width: 1100px) {
  .owh-px { left: 50vw; }
  .owh-h1 { max-width: 46vw; font-size: clamp(36px, 4.3vw, 48px); }
  .owh-s { max-width: 42vw; }
}

@container page (max-width: 760px) {
  .owh-px { display: none; }
  .owh-h1 { max-width: none; font-size: 36px; }
  .owh-s { max-width: none; }
}
@media (max-width: 760px) {
  .owh-px { display: none; }
  .owh-h1 { max-width: none; font-size: 36px; }
  .owh-s { max-width: none; }
}
