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

@keyframes cdBlk {
  from { transform: scale(.94); }
  to { 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;
}

/* Breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.crumbs a {
  transition: color .2s;
}

.crumbs a:hover {
  color: var(--purple);
}

.crumbs .ic {
  width: 14px;
  height: 14px;
  opacity: .6;
}

.crumbs [aria-current] {
  color: #000;
  font-weight: 600;
}

.bh-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

/* 01 HERO SECTION */
.cdh {
  position: relative;
  overflow: hidden;
  min-height: clamp(500px, 38cqi, 640px);
  display: flex;
  background: radial-gradient(55% 85% at 0% 100%, rgba(206, 196, 234, .62), rgba(206, 196, 234, 0) 70%),
              radial-gradient(60% 90% at 100% 0%, rgba(237, 157, 33, .26), rgba(237, 157, 33, 0) 65%),
              linear-gradient(90deg, #F5EEF6 0%, #FBF6F0 48%, #FCF0E2 100%);
}

.cdh-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(92, 72, 156, .055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(92, 72, 156, .055) 1px, transparent 1px);
  background-size: clamp(30px, 2.5cqi, 40px) clamp(30px, 2.5cqi, 40px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35));
  pointer-events: none;
}

.cdh-bl {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 14cqi;
  height: 12cqi;
  pointer-events: none;
  transform: scale(.62);
  transform-origin: 0 100%;
}

.cdh-bl i {
  position: absolute;
  display: block;
}

.cdh-bl .a {
  left: 0;
  bottom: 3.45cqi;
  width: 4.1cqi;
  height: 5.75cqi;
  background: rgba(206, 196, 234, .7);
}

.cdh-bl .b {
  left: 0;
  bottom: 0;
  width: 4.1cqi;
  height: 3.45cqi;
  background: linear-gradient(180deg, #B9A9E2, #8C79C6);
}

.cdh-bl .c {
  left: 4.1cqi;
  bottom: 0;
  width: 3.9cqi;
  height: 5.6cqi;
  background: linear-gradient(180deg, rgba(237, 157, 33, .42), rgba(206, 196, 234, .75));
}

.cdh-bl .d {
  left: 8cqi;
  bottom: 0;
  width: 4.9cqi;
  height: 3.45cqi;
  background: rgba(206, 196, 234, .62);
}

.cdh-bl .e {
  left: 8cqi;
  bottom: 5.6cqi;
  width: 1.65cqi;
  height: 1.75cqi;
  background: rgba(237, 157, 33, .35);
}

.cdh-in {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(18px, 2cqi, 28px) var(--pad) clamp(56px, 6cqi, 92px);
}

.cdh-in .bh-bar {
  justify-content: flex-start;
  gap: 12px 28px;
}

.cdh-main {
  flex: 1;
  display: grid;
  grid-template-columns: max-content 1px minmax(0, 20cqi);
  grid-template-areas: "eb eb eb" "h1 dv s" "ct ct ct";
  column-gap: clamp(20px, 2.5cqi, 36px);
  align-items: center;
  align-content: center;
  justify-content: start;
  padding-top: clamp(16px, 1.8cqi, 28px);
  max-width: calc(100% - 27cqi);
}

.cdh-eb {
  grid-area: eb;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(14px, 1.15cqi, 17px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cdh-eb::before {
  content: "";
  width: clamp(18px, 1.5cqi, 22px);
  height: clamp(18px, 1.5cqi, 22px);
  border-radius: 4px;
  background: linear-gradient(165deg, #ED9D21, #E87A26);
  flex: none;
}

.cdh-h1 {
  grid-area: h1;
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(38px, 3.75cqi, 56px);
  line-height: 1.02;
  letter-spacing: -.036em;
  margin-top: clamp(22px, 2.4cqi, 34px);
}

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

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

.cdh-div {
  grid-area: dv;
  align-self: center;
  width: 1px;
  height: clamp(90px, 7.6cqi, 120px);
  background: rgba(0, 0, 0, .18);
  margin-top: clamp(22px, 2.4cqi, 34px);
}

.cdh-h2 {
  grid-area: s;
  font-family: var(--fs);
  font-weight: 400;
  font-size: clamp(16px, 1.3cqi, 19px);
  line-height: 1.5;
  color: rgba(0, 0, 0, .82);
  text-wrap: balance;
  margin-top: clamp(22px, 2.4cqi, 34px);
}

.cdh-ctas {
  grid-area: ct;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 2.4cqi, 34px);
}

.cdh-ctas .btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.cdh-ctas .btn-ghost {
  background: rgba(255, 255, 255, .4);
}

.cdh-ctas .btn-ghost:hover {
  background: #000;
  color: var(--paper);
}

/* Notebook device / composition */
.cdh-comp {
  position: absolute;
  z-index: 1;
  right: clamp(8px, .8cqi, 14px);
  bottom: clamp(14px, 2.5cqi, 40px);
  width: 35cqi;
  max-width: 600px;
  aspect-ratio: 740 / 595;
}

.cdh-blk {
  position: absolute;
  left: 22.7%;
  top: 22.2%;
  width: 58.4%;
  height: 75.2%;
  border-radius: clamp(22px, 2.2cqi, 32px);
  background: linear-gradient(155deg, #7562BC 0%, #5C489C 55%, #52408F 100%);
  box-shadow: 0 40px 70px -40px rgba(60, 40, 120, .6);
  animation: cdBlk 1.1s var(--ease) both;
}

.cdh-blk::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%);
}

.cdh-pic {
  position: absolute;
  z-index: 3;
  left: 26.1%;
  top: 7.3%;
  width: 71.8%;
  height: auto;
  pointer-events: none;
  animation: cdPic 1.2s var(--ease) both;
}

.cq {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: clamp(6px, .75cqi, 11px);
  animation: cdFlt 7s ease-in-out infinite alternate;
}

.cq.lav { background: rgba(196, 168, 236, .85); }
.cq.lav2 { background: linear-gradient(150deg, rgba(206, 196, 234, .95), rgba(186, 160, 232, .75)); mix-blend-mode: multiply; }
.cq.lav3 { z-index: 2; background: rgba(206, 196, 234, .78); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cq.gh { background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 14px 26px -18px rgba(0, 0, 0, .15); }
.cq.org { z-index: 2; border-radius: clamp(10px, 1.1cqi, 16px); background: linear-gradient(165deg, #ED9D21, #E87A26); }
.cq.org.s { border-radius: clamp(5px, .5cqi, 8px); }
.cq.amg { background: linear-gradient(165deg, rgba(237, 157, 33, .42), rgba(237, 157, 33, .08)); }
.cq.olv { background: var(--olive); }
.cq.olv2 { background: linear-gradient(155deg, #A39C44, #878232); }
.cq.ppr { background: var(--paper); border-radius: 3px; }

.cdh-comp:hover .cq.org {
  transform: translate(4px, -4px);
}

/* RESPONSIVE */
@container page (max-width: 1100px) {
  .cdh-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eb" "h1" "s" "ct";
    max-width: calc(100% - 46cqi);
  }
  .cdh-div { display: none; }
  .cdh-h2 { margin-top: 20px; }
  .cdh-comp { width: 46cqi; }
  .cdh-in .bh-bar { max-width: none; }
  .cdh-h1 { font-size: clamp(36px, 4.6cqi, 52px); }
}

@media (max-width: 1100px) {
  .cdh-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eb" "h1" "s" "ct";
    max-width: calc(100% - 46cqi);
  }
  .cdh-div { display: none; }
  .cdh-h2 { margin-top: 20px; }
  .cdh-comp { width: 46cqi; }
  .cdh-in .bh-bar { max-width: none; }
  .cdh-h1 { font-size: clamp(36px, 4.6cqi, 52px); }
}

@container page (max-width: 640px) {
  .cdh { display: block; min-height: 0; }
  .cdh-in { padding-bottom: 10px; }
  .cdh-main { max-width: none; padding-top: 28px; }
  .cdh-h1 { font-size: clamp(32px, 9.4cqi, 40px); margin-top: 18px; }
  .cdh-h1 .l { display: inline; }
  .cdh-eb { font-size: 13px; gap: 10px; }
  .cdh-eb::before { width: 16px; height: 16px; }
  .cdh-ctas .btn { flex: 1 1 auto; }
  .cdh-comp { position: relative; right: auto; bottom: auto; width: auto; max-width: 440px; margin: 8px var(--pad) 34px; }
  .cdh-bl { width: 30cqi; height: 26cqi; transform: scale(.8); }
}

@media (max-width: 640px) {
  .cdh { display: block; min-height: 0; }
  .cdh-in { padding-bottom: 10px; }
  .cdh-main { max-width: none; padding-top: 28px; }
  .cdh-h1 { font-size: clamp(32px, 9.4vw, 40px); margin-top: 18px; }
  .cdh-h1 .l { display: inline; }
  .cdh-eb { font-size: 13px; gap: 10px; }
  .cdh-eb::before { width: 16px; height: 16px; }
  .cdh-ctas .btn { flex: 1 1 auto; }
  .cdh-comp { position: relative; right: auto; bottom: auto; width: auto; max-width: 440px; margin: 8px var(--pad) 34px; }
  .cdh-bl { width: 30vw; height: 26vw; transform: scale(.8); }
}
