/* ==========================================================================
   QUOYO LAB — REBUILT FOR NEW TEMPLATE
   Customer-facing editorial page
   ========================================================================== */

.qy-page--lab {
  --lab-max: 1600px;
  --lab-narrow: 1120px;
  --lab-text: 720px;
  --lab-pad: clamp(24px, 4vw, 48px);
  --lab-white: #f7f7f4;
  --lab-off: #efefec;
  --lab-black: #0b0b0b;
  --lab-muted: #666;
  --lab-line: rgba(0,0,0,.88);
  --lab-soft-line: rgba(0,0,0,.12);
  --lab-section-gap: clamp(56px, 6vw, 88px);

  background: var(--lab-white);
  color: var(--qy-black);
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block;
}

.qy-page--lab > .qy-lab-hero:first-child {
  margin-top: 0 !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.qy-lab-hero {
  position: relative;
  min-height: clamp(340px, 56vw, 700px);
  overflow: hidden;
  background: #000;
  margin-top: 0;
}

.qy-lab-hero__media,
.qy-lab-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qy-lab-hero__image {
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.04) brightness(.8);
}

.qy-lab-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.48) 0%, rgba(0,0,0,.14) 46%, rgba(0,0,0,.04) 100%);
}

.qy-lab-hero__content {
  position: relative;
  z-index: 3;
  min-height: clamp(340px, 56vw, 700px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--lab-pad) 24px;
}

.qy-lab-hero__label {
  display: inline-block;
  width: fit-content;
  margin: 0 0 10px;
  color: rgba(245, 242, 236, .62);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.2;
}

.qy-lab-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: .88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, .88);
}

.qy-lab-hero__copy {
  margin: 14px 0 0;
  max-width: 22ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.16rem);
  line-height: 1.5;
  color: rgba(245, 242, 236, .82);
}

/* ==========================================================================
   COMMON TYPOGRAPHY
   ========================================================================== */

.qy-lab-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lab-muted);
  line-height: 1.2;
}

.qy-lab-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: .94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--qy-black);
}

.qy-lab-copy {
  margin: 0;
  max-width: 56ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.08vw, 1.16rem);
  line-height: 1.62;
  color: var(--qy-black);
}

.qy-lab-copy + .qy-lab-copy {
  margin-top: 18px;
}

/* ==========================================================================
   SPACING RHYTHM
   ========================================================================== */

.qy-lab-intro,
.qy-lab-section,
.qy-lab-cycle,
.qy-lab-timeline,
.qy-lab-proof,
.qy-lab-final-cta {
  margin-top: var(--lab-section-gap);
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.qy-lab-intro {
  background: var(--lab-white);
  padding: 0 var(--lab-pad);
}

.qy-lab-intro__inner {
  max-width: var(--lab-text);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 88px) 0 0;
}

.qy-lab-intro__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--qy-black);
}

.qy-lab-intro__copy {
  margin: 0;
  max-width: 58ch;
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.12vw, 1.18rem);
  line-height: 1.64;
  color: var(--qy-black);
}

.qy-lab-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ==========================================================================
   SPLIT SECTIONS
   ========================================================================== */

.qy-lab-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--lab-white);
}

.qy-lab-section--off {
  background: var(--lab-off);
}

.qy-lab-section--reverse .qy-lab-section__text {
  order: 2;
}

.qy-lab-section--reverse .qy-lab-section__visual {
  order: 1;
}

.qy-lab-section__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 108px) var(--lab-pad);
  min-height: 560px;
}

.qy-lab-section__visual {
  min-height: 440px;
  max-height: 700px;
  overflow: hidden;
  background: #dcdcd8;
}

.qy-lab-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

/* ==========================================================================
   PRODUCTION CYCLE BLOCK
   ========================================================================== */

.qy-lab-cycle {
  max-width: var(--lab-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--lab-pad);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 26px;
  align-items: start;
}

.qy-lab-cycle__text {
  padding: clamp(32px, 4vw, 48px) 0;
}

.qy-lab-cycle__card {
  background: var(--lab-off);
  border: 1px solid var(--lab-line);
  padding: clamp(24px, 3vw, 32px);
}

.qy-lab-cycle__card-label {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--qy-black);
}

.qy-lab-cycle__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qy-lab-cycle__item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--lab-soft-line);
}

.qy-lab-cycle__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.qy-lab-cycle__item strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--qy-black);
}

.qy-lab-cycle__item span {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
  color: var(--qy-black);
}

.qy-lab-cycle__actions {
  margin-top: 26px;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.qy-lab-timeline {
  max-width: var(--lab-max);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(18px, 2vw, 8px) var(--lab-pad) 0;
}

.qy-lab-timeline__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.qy-lab-timeline__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--lab-line);
  border-left: 1px solid var(--lab-line);
}

.qy-lab-timeline__item {
  min-height: 260px;
  padding: 22px 20px 24px;
  border-right: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
  background: var(--lab-white);
}

.qy-lab-timeline__step {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lab-muted);
}

.qy-lab-timeline__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.4vw, 1.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--qy-black);
}

.qy-lab-timeline__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
  color: var(--qy-black);
}

/* ==========================================================================
   PROOF SECTION
   ========================================================================== */

.qy-lab-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--lab-off);
}

.qy-lab-proof__visual {
  min-height: 460px;
  max-height: 760px;
  overflow: hidden;
  background: #d7d7d2;
}

.qy-lab-proof__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.qy-lab-proof__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 108px) var(--lab-pad);
}

.qy-lab-proof__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.qy-lab-final-cta {
  position: relative;
  padding: clamp(120px, 14vw, 190px) var(--lab-pad) clamp(140px, 16vw, 220px);
  background: var(--lab-off);
  border-top: 1px solid var(--qy-black);
  border-bottom: 1px solid var(--qy-black);
  overflow: hidden;
}

.qy-lab-final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.qy-lab-final-cta__title {
  position: relative;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--qy-black);
}

.qy-lab-final-cta__copy {
  margin: 0 auto;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.04vw, 1.12rem);
  line-height: 1.58;
  color: var(--qy-black);
}

.qy-lab-final-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.qy-lab-final-cta::before {
  content: "PROCESS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(8rem, 24vw, 24rem);
  line-height: .78;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.025);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* ==========================================================================
   BUTTON SAFETY INSIDE LAB
   ========================================================================== */

.qy-page--lab .qy-btn {
  min-width: 220px;
  justify-content: center;
  text-align: center;
}

.qy-page--lab .qy-btn--ghost,
.qy-page--lab .qy-btn.qy-btn--ghost {
  background: transparent;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 991px) {
  .qy-lab-cycle {
    grid-template-columns: 1fr;
  }

  .qy-lab-timeline__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qy-lab-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .qy-page--lab {
    --lab-pad: 16px;
    --lab-section-gap: 38px;
  }

  .qy-lab-hero {
    min-height: 280px;
  }

  .qy-lab-hero__content {
    min-height: 280px;
    padding: 0 var(--lab-pad) 16px;
  }

  .qy-lab-hero__label {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: .16em;
    color: rgba(245, 242, 236, .62);
  }

  .qy-lab-hero__title {
    font-size: clamp(2.3rem, 13vw, 4.4rem);
    line-height: .84;
  }

  .qy-lab-hero__copy {
    margin-top: 10px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.45;
  }

  .qy-lab-kicker {
    font-size: 10px;
    letter-spacing: .22em;
    margin-bottom: 14px;
  }

  .qy-lab-title,
  .qy-lab-intro__title,
  .qy-lab-final-cta__title {
    font-size: clamp(2.15rem, 12vw, 3.8rem);
    line-height: .94;
  }

  .qy-lab-copy,
  .qy-lab-intro__copy,
  .qy-lab-cycle__item span,
  .qy-lab-timeline__text,
  .qy-lab-final-cta__copy {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.5;
  }

  .qy-lab-intro__inner {
    padding-top: 34px;
  }

  .qy-lab-intro__actions,
  .qy-lab-proof__actions,
  .qy-lab-final-cta__actions {
    flex-direction: column;
    gap: 12px;
  }

  .qy-lab-section {
    grid-template-columns: 1fr;
  }

  .qy-lab-section--reverse .qy-lab-section__text,
  .qy-lab-section--reverse .qy-lab-section__visual {
    order: initial;
  }

  .qy-lab-section__text,
  .qy-lab-proof__text {
    padding: 34px var(--lab-pad) 40px;
    min-height: auto;
  }

  .qy-lab-section__visual,
  .qy-lab-proof__visual {
    min-height: 260px;
    max-height: 360px;
  }

  .qy-lab-cycle {
    gap: 18px;
  }

  .qy-lab-cycle__text {
    padding: 8px 0 0;
  }

  .qy-lab-cycle__card {
    padding: 18px;
  }

  .qy-lab-cycle__item strong {
    font-size: .95rem;
  }

  .qy-lab-timeline {
    padding-top: 0;
  }

  .qy-lab-timeline__head {
    margin-bottom: 18px;
  }

  .qy-lab-timeline__grid {
    grid-template-columns: 1fr;
  }

  .qy-lab-timeline__item {
    min-height: auto;
    padding: 18px 16px 20px;
  }

  .qy-lab-timeline__step {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .qy-lab-timeline__title {
    font-size: 1.35rem;
    line-height: 1.02;
  }

  .qy-lab-final-cta {
    padding: 84px var(--lab-pad) 120px;
  }

  .qy-lab-final-cta::before {
    font-size: clamp(5rem, 20vw, 8rem);
    letter-spacing: .08em;
  }

  .qy-page--lab .qy-btn,
  .qy-page--lab .qy-btn--ghost {
    width: 100%;
    min-width: 0;
  }
}