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

/* 00 hero (from the Our Processes hero reference): title on the left, notebook on a purple field on the right */
.oph {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 33.4cqi, 620px);
  display: flex;
  align-items: center;
  background: radial-gradient(42% 70% at 6% 8%, rgba(248, 214, 226, .75), rgba(248, 214, 226, 0) 70%),
              linear-gradient(100deg, #FBEFF0 0%, #FDF1E7 32%, #FDEBD7 58%, #FCE4C8 100%);
}

.oph-in {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(40px, 4cqi, 64px) var(--pad) clamp(56px, 5cqi, 84px);
}

.oph-h1 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(52px, 6.4cqi, 94px);
  line-height: .98;
  letter-spacing: -.04em;
  margin-top: clamp(24px, 3cqi, 44px);
}

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

.oph-s {
  margin-top: clamp(22px, 2.4cqi, 34px);
  padding-left: clamp(18px, 2.6cqi, 36px);
  border-left: 1.5px solid rgba(0, 0, 0, .25);
  font-size: clamp(18px, 1.55cqi, 22px);
  line-height: 1.45;
  max-width: 22em;
  color: rgba(0, 0, 0, .84);
  text-wrap: pretty;
}

.oph-comp {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  height: min(100%, 33cqi);
  aspect-ratio: 1230 / 667;
}

.oph-comp > * {
  position: absolute;
  display: block;
}

.oph-or {
  left: 64.2%;
  top: -8%;
  width: 40%;
  height: 62%;
  border-top-left-radius: 24% 40%;
  background: linear-gradient(200deg, #F6A63C 0%, #EF931F 55%, #E8861E 100%);
}

.oph-pr {
  left: 66.4%;
  top: 18.3%;
  width: 16.5%;
  height: 90%;
  border-top-right-radius: 38% 18%;
  background: #5E45A6;
}

.oph-ci {
  left: -9.7%;
  top: 37.7%;
  width: 138%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
                    linear-gradient(100deg, #C7A2EA 0%, #A07AD8 22%, #7B56C2 45%, #5E45A6 72%);
  background-size: clamp(28px, 2.6cqi, 40px) clamp(28px, 2.6cqi, 40px),
                   clamp(28px, 2.6cqi, 40px) clamp(28px, 2.6cqi, 40px),
                   100% 100%;
}

.oq {
  z-index: 2;
  aspect-ratio: 1;
  border-radius: clamp(6px, .9cqi, 14px);
  animation: cdFlt 7s ease-in-out infinite alternate;
}

.oq.or {
  background: linear-gradient(165deg, #F4A73E, #ED9D21 50%, #E8861E);
}

.oq.gh {
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.oq.ol {
  border-radius: clamp(5px, .6cqi, 9px);
  background: linear-gradient(155deg, #A39B3F, #878232);
}

.oq.lv {
  border-radius: clamp(4px, .4cqi, 6px);
  background: #D8C4F4;
}

.oph-pic {
  z-index: 3;
  left: 33.7%;
  top: 7.3%;
  width: 56.9%;
  height: auto;
  pointer-events: none;
  animation: cdPic 1.2s var(--ease) both;
}

.oph-bl {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 16.7cqi;
  height: 5.1cqi;
  pointer-events: none;
}

.oph-bl i {
  position: absolute;
  bottom: 0;
  display: block;
}

.oph-bl .a {
  left: 0;
  width: 8.35cqi;
  height: 5.05cqi;
  border-radius: 0 clamp(8px, 1cqi, 14px) 0 0;
  background: linear-gradient(180deg, rgba(214, 182, 242, .85), rgba(196, 160, 236, .95));
}

.oph-bl .b {
  left: 8.35cqi;
  width: 8.3cqi;
  height: 2.85cqi;
  border-radius: clamp(8px, 1cqi, 14px) clamp(8px, 1cqi, 14px) 0 0;
  background: linear-gradient(180deg, rgba(252, 222, 176, .9), rgba(247, 200, 132, .95));
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes cdPic {
  from { transform: translateY(16px); }
  to { transform: none; }
}

@keyframes cdFlt {
  from { transform: none; }
  to { transform: translateY(-8px); }
}

.pop {
  animation: pop .8s var(--ease) both;
}

/* Responsive Queries: Container Queries & Media Query Fallbacks */
@container page (max-width: 1240px) {
  .oph-comp { height: min(100%, 30.5cqi); }
}
@media (max-width: 1240px) {
  .oph-comp { height: min(100%, 30.5vw); }
}

@container page (max-width: 1100px) {
  .oph { min-height: clamp(400px, 40cqi, 480px); }
  .oph-comp { top: auto; bottom: 0; height: auto; width: 57cqi; }
  .oph-or { top: -40%; height: 94%; }
  .oph-h1 { font-size: clamp(46px, 6cqi, 66px); }
}
@media (max-width: 1100px) {
  .oph { min-height: clamp(400px, 40vw, 480px); }
  .oph-comp { top: auto; bottom: 0; height: auto; width: 57vw; }
  .oph-or { top: -40%; height: 94%; }
  .oph-h1 { font-size: clamp(46px, 6vw, 66px); }
}

@container page (max-width: 860px) {
  .oph { display: block; min-height: 0; }
  .oph-in { padding-top: 40px; padding-bottom: 28px; }
  .oph-comp { position: relative; top: auto; right: auto; height: auto; width: 118%; margin-left: -18%; }
  .oph-bl { display: none; }
  .oph-or { top: -8%; height: 62%; }
}
@media (max-width: 860px) {
  .oph { display: block; min-height: 0; }
  .oph-in { padding-top: 40px; padding-bottom: 28px; }
  .oph-comp { position: relative; top: auto; right: auto; height: auto; width: 118%; margin-left: -18%; }
  .oph-bl { display: none; }
  .oph-or { top: -8%; height: 62%; }
}
