/*
 * Editorial campaign layer.
 *
 * The product UI stays quiet and utilitarian. These rules are intentionally
 * limited to the public acquisition surfaces, authentication, and the one
 * post-auth handoff card. The portrait is Zinaida's existing local asset;
 * the poster effect is built with CSS, not copied artwork or a new runtime.
 */

.editorial-landing .hero-screen {
  background: #050807;
}

.editorial-landing .hero-screen::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, 0.99) 0%, rgba(5, 8, 7, 0.93) 35%, rgba(5, 8, 7, 0.38) 58%, rgba(5, 8, 7, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 8, 7, 0.04), rgba(5, 8, 7, 0.28));
}

.editorial-landing .hero-portrait {
  z-index: 1;
  inset: 0 0 0 39%;
  background: #050807;
  isolation: isolate;
}

.editorial-landing .hero-photo-base,
.editorial-landing .hero-photo-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.editorial-landing .hero-photo-base {
  z-index: 0;
  opacity: 0.38;
  filter: grayscale(0.36) saturate(0.55) contrast(1.12) brightness(0.52);
}

.editorial-landing .hero-photo-cutout {
  z-index: 3;
  pointer-events: none;
  filter: saturate(0.72) contrast(1.06) brightness(0.83);
  -webkit-mask: url("/assets/zinaida-person-mask.png") center / cover no-repeat;
  mask: url("/assets/zinaida-person-mask.png") center / cover no-repeat;
  mask-mode: luminance;
}

.hero-editorial-type {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  color: #fbf8f0;
  pointer-events: none;
}

.hero-editorial-type::before {
  position: absolute;
  z-index: 0;
  top: 24%;
  left: 49%;
  width: min(31vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6d2431;
  box-shadow: inset 0 0 0 1px rgba(251, 248, 240, 0.08);
  content: "";
  transform: translateX(-50%);
}

.hero-editorial-word {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 112%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(96px, 11.6vw, 184px);
  font-weight: 600;
  line-height: 0.68;
  letter-spacing: -0.075em;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-editorial-word-top {
  z-index: 4;
  top: 9%;
  opacity: 0.78;
}

.hero-editorial-word-bottom {
  z-index: 4;
  top: 58%;
}

.hero-editorial-index {
  position: absolute;
  z-index: 5;
  top: 15%;
  right: 6%;
  color: rgba(251, 248, 240, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5.5vw, 88px);
  line-height: 1;
}

.hero-editorial-caption {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: 5%;
  color: rgba(251, 248, 240, 0.72);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.editorial-landing .hero-copy {
  position: relative;
  z-index: 3;
  width: min(720px, 56vw);
}

.editorial-landing .hero-copy h1 {
  max-width: 690px;
  font-size: clamp(46px, 5.2vw, 78px);
}

.editorial-landing .hero-subtitle {
  color: #d5b070;
}

.editorial-landing .primary-cta,
.editorial-lab .primary-cta {
  border-color: rgba(251, 248, 240, 0.28);
  background: #6d2431;
}

.editorial-landing .primary-cta:hover,
.editorial-lab .primary-cta:hover {
  background: #863344;
}

/* Public Laboratory: the ad landing keeps the same editorial promise. */

.editorial-lab .lab-hero {
  background:
    radial-gradient(circle at 73% 38%, rgba(109, 36, 49, 0.2), transparent 30%),
    #050807;
}

.editorial-lab .lab-hero-inner {
  z-index: 4;
  padding-right: min(44vw, 530px);
}

.editorial-lab .lab-hero h1 {
  max-width: 720px;
  font-size: clamp(68px, 8.8vw, 134px);
}

.lab-editorial-art {
  position: absolute;
  z-index: 1;
  top: 7%;
  right: max(var(--gutter), calc((100vw - var(--content)) / 2));
  width: min(39vw, 500px);
  height: 86%;
  margin: 0;
  overflow: hidden;
  background: #080b0a;
  isolation: isolate;
}

.lab-editorial-photo-base,
.lab-editorial-photo-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.lab-editorial-photo-base {
  z-index: 0;
  opacity: 0.3;
  filter: grayscale(0.6) brightness(0.5) contrast(1.14);
}

.lab-editorial-halo {
  position: absolute;
  z-index: 1;
  top: 24%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6d2431;
  transform: translateX(-50%);
}

.lab-editorial-name {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: 112%;
  color: #fbf8f0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(82px, 9.2vw, 142px);
  font-weight: 600;
  line-height: 0.7;
  letter-spacing: -0.08em;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.lab-editorial-name-top {
  z-index: 4;
  top: 10%;
  opacity: 0.78;
}

.lab-editorial-name-bottom {
  z-index: 4;
  top: 63%;
}

.lab-editorial-photo-cutout {
  z-index: 3;
  filter: saturate(0.68) contrast(1.06) brightness(0.8);
  -webkit-mask: url("/assets/zinaida-person-mask.png") center / cover no-repeat;
  mask: url("/assets/zinaida-person-mask.png") center / cover no-repeat;
  mask-mode: luminance;
}

.lab-editorial-note {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  color: rgba(251, 248, 240, 0.68);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.editorial-lab .lab-orbit {
  z-index: 2;
  right: max(calc(var(--gutter) - 24px), calc((100vw - var(--content)) / 2 - 24px));
  width: min(20vw, 260px);
  opacity: 0.38;
  mix-blend-mode: screen;
}

/* Authentication: magazine-like left half, calm and readable form on right. */

.editorial-product .auth-screen {
  --brand: #6d2b38;
  --brand-hover: #55202a;
  --brand-soft: #f2e8e9;
  grid-template-columns: minmax(430px, 0.94fr) minmax(500px, 1.06fr);
  background: #f4f1ea;
}

.editorial-product .auth-visual,
.editorial-product .auth-portrait {
  background: #050807;
}

.editorial-product .auth-photo-base,
.editorial-product .auth-photo-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.editorial-product .auth-photo-base {
  z-index: 0;
  opacity: 0.34;
  filter: grayscale(0.48) saturate(0.54) contrast(1.12) brightness(0.52);
}

.editorial-product .auth-photo-cutout {
  z-index: 2;
  pointer-events: none;
  filter: saturate(0.68) contrast(1.07) brightness(0.82);
  -webkit-mask: url("/assets/zinaida-person-mask.png") center / cover no-repeat;
  mask: url("/assets/zinaida-person-mask.png") center / cover no-repeat;
  mask-mode: luminance;
}

.auth-editorial-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  color: #fbf8f0;
  pointer-events: none;
}

.auth-editorial-halo {
  position: absolute;
  z-index: 0;
  top: 23%;
  left: 50%;
  width: min(68%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6d2431;
  transform: translateX(-50%);
}

.auth-editorial-word {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: 110%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(92px, 10.4vw, 168px);
  font-weight: 600;
  line-height: 0.68;
  letter-spacing: -0.08em;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.auth-editorial-word-top {
  z-index: 3;
  top: 8%;
  opacity: 0.74;
}

.auth-editorial-word-bottom {
  z-index: 3;
  top: 58%;
}

.auth-editorial-index {
  position: absolute;
  z-index: 4;
  top: 10%;
  right: 6%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 5.6vw, 90px);
  line-height: 1;
}

.auth-editorial-caption {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 24px;
  color: rgba(251, 248, 240, 0.66);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.editorial-product .auth-portrait-shade {
  z-index: 4;
  inset: 44% 0 0;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0), rgba(5, 8, 7, 0.9));
}

.editorial-product .auth-portrait-copy {
  z-index: 5;
}

.editorial-product .auth-presence::before {
  background: #d3b06d;
}

.editorial-product .auth-panel {
  position: relative;
  width: min(540px, 100%);
  background: #f4f1ea;
  isolation: isolate;
}

.editorial-product .auth-panel::before {
  position: absolute;
  z-index: -1;
  top: 12px;
  right: 24px;
  color: rgba(109, 43, 56, 0.055);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 180px;
  line-height: 1;
  content: "01";
  pointer-events: none;
}

.editorial-product .auth-panel h1 {
  max-width: 470px;
  font-size: clamp(38px, 3.7vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.editorial-product .auth-kicker {
  color: #6d2b38;
  letter-spacing: 0.13em;
}

.editorial-product .auth-direct-note {
  border-color: rgba(109, 43, 56, 0.18);
  border-left-color: #6d2b38;
  background: rgba(109, 43, 56, 0.065);
}

.editorial-product .auth-direct-note > svg,
.editorial-product .auth-direct-note a,
.editorial-product .legal-consent a {
  color: #6d2b38;
}

.editorial-product .auth-form > .primary {
  background: #6d2b38;
}

.editorial-product .auth-form > .primary:hover {
  background: #55202a;
}

.editorial-product .auth-form > label[hidden] {
  display: none !important;
}

.editorial-product[data-entry-destination="lab"] .auth-direct-note {
  box-shadow: inset 0 0 0 1px rgba(211, 176, 109, 0.18);
}

/* One-step handoff shown only for a validated campaign intent. */

.lab-entry-intent {
  position: relative;
  margin: 0 0 18px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  color: #f8f5ee;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 86% 50%, rgba(109, 43, 56, 0.7), transparent 28%),
    #111a17;
}

.lab-entry-intent::before {
  position: absolute;
  right: 18%;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.05);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 170px;
  line-height: 1;
  content: "01";
  pointer-events: none;
}

.lab-entry-intent > div {
  position: relative;
  z-index: 1;
}

.lab-entry-intent .soft-label {
  color: #d7b875;
}

.lab-entry-intent h3 {
  margin: 7px 0 6px;
  color: #f8f5ee;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lab-entry-intent p {
  max-width: 720px;
  margin: 0;
  color: rgba(248, 245, 238, 0.72);
  line-height: 1.55;
}

.lab-entry-intent-action {
  display: grid;
  min-width: min(280px, 28vw);
  gap: 8px;
}

.lab-entry-intent-action .primary {
  min-height: 48px;
  background: #7a3140;
}

.lab-entry-intent-action small {
  color: rgba(248, 245, 238, 0.58);
  font-size: 11px;
  text-align: center;
}

.tool-card.is-recommended {
  border-color: rgba(122, 49, 64, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(122, 49, 64, 0.14), 0 18px 44px rgba(31, 39, 35, 0.1);
}

.tool-card.is-recommended::after {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #6d2b38;
  border: 1px solid rgba(109, 43, 56, 0.22);
  border-radius: 999px;
  background: #f7ecee;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.09em;
  content: "РЕКОМЕНДУЮ";
}

@media (max-width: 960px) {
  .editorial-landing .hero-screen::after {
    background: linear-gradient(180deg, rgba(5, 8, 7, 0.02) 0%, rgba(5, 8, 7, 0.13) 35%, rgba(5, 8, 7, 0.96) 57%, #050807 100%);
  }

  .editorial-landing .hero-portrait {
    inset: 0;
  }

  .hero-editorial-type::before {
    top: 11%;
    width: min(58vw, 360px);
  }

  .hero-editorial-word {
    font-size: clamp(82px, 20vw, 142px);
  }

  .hero-editorial-word-top {
    top: 6%;
  }

  .hero-editorial-word-bottom {
    top: 41%;
  }

  .hero-editorial-caption {
    bottom: 43%;
  }

  .editorial-landing .hero-copy {
    width: 100%;
  }

  .editorial-lab .lab-hero-inner {
    padding-right: 0;
  }

  .lab-editorial-art {
    top: 5%;
    right: var(--gutter);
    width: min(56vw, 420px);
    height: 48%;
  }

  .lab-editorial-name {
    font-size: clamp(70px, 16vw, 126px);
  }

  .editorial-lab .lab-orbit {
    top: 28%;
    right: 7%;
    width: min(30vw, 220px);
  }

  .editorial-product .auth-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-product .auth-panel h1 {
    font-size: clamp(37px, 6vw, 48px);
  }
}

@media (max-width: 760px) {
  .editorial-landing .hero-photo-base,
  .editorial-landing .hero-photo-cutout {
    object-position: 50% 18%;
  }

  .hero-editorial-index {
    top: 12%;
    right: 20px;
    font-size: 48px;
  }

  .hero-editorial-caption {
    display: none;
  }

  .editorial-lab .lab-hero {
    align-items: end;
  }

  .lab-editorial-art {
    top: 3%;
    right: 0;
    left: 0;
    width: 100%;
    height: 46%;
  }

  .lab-editorial-photo-base,
  .lab-editorial-photo-cutout {
    object-position: 50% 17%;
  }

  .lab-editorial-name-top {
    top: 7%;
  }

  .lab-editorial-name-bottom {
    top: 60%;
  }

  .editorial-lab .lab-orbit {
    display: none;
  }

  .editorial-product .auth-editorial-word {
    font-size: clamp(70px, 22vw, 108px);
  }

  .editorial-product .auth-editorial-word-top {
    top: 5%;
  }

  .editorial-product .auth-editorial-word-bottom {
    top: 56%;
  }

  .editorial-product .auth-editorial-index {
    top: 7%;
    font-size: 46px;
  }

  .editorial-product .auth-editorial-caption {
    display: none;
  }

  .editorial-product .auth-editorial-halo {
    top: 15%;
    width: min(52%, 250px);
  }

  .editorial-product .auth-panel::before {
    right: 10px;
    font-size: 130px;
  }

  .editorial-product .auth-panel h1 {
    font-size: 36px;
  }

  .lab-entry-intent {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }

  .lab-entry-intent-action {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .hero-editorial-word {
    width: 116%;
    font-size: clamp(74px, 24vw, 100px);
  }

  .hero-editorial-word-bottom {
    top: 38%;
  }

  .hero-editorial-type::before {
    width: min(64vw, 260px);
  }

  .lab-editorial-name {
    width: 116%;
    font-size: clamp(72px, 25vw, 104px);
  }

  .lab-editorial-note {
    display: none;
  }

  .editorial-product .auth-portrait-copy blockquote {
    max-width: 315px;
    font-size: 20px;
  }

  .editorial-product .auth-editorial-word-bottom {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-editorial-word,
  .lab-editorial-name,
  .auth-editorial-word {
    animation: editorial-arrive 760ms cubic-bezier(0.2, 0.76, 0.2, 1) both;
  }

  .hero-photo-cutout,
  .lab-editorial-photo-cutout,
  .auth-photo-cutout {
    animation: editorial-portrait-arrive 820ms cubic-bezier(0.2, 0.76, 0.2, 1) both;
  }
}

@keyframes editorial-arrive {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes editorial-portrait-arrive {
  from { opacity: 0; transform: scale(1.018); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-editorial-word,
  .lab-editorial-name,
  .auth-editorial-word,
  .hero-photo-cutout,
  .lab-editorial-photo-cutout,
  .auth-photo-cutout {
    animation: none !important;
    transform: none;
  }

  .hero-editorial-word,
  .lab-editorial-name,
  .auth-editorial-word {
    transform: translateX(-50%);
  }
}
