/* Богдана Шевченко — v16. Первый экран = утверждённый «Свет за портретом» (bg-lab/svet, 08.11), ниже — блоки в том же стиле.
   Первый экран: фон «Свет за портретом».
   Вырезанная фигура без рамки стоит справа, низ и правый край уходят за экран. За головой и плечом —
   тёплый объёмный свет цвета её медных волос: он пробивается лучами сквозь волосы, дышит и тянется к курсору
   (bg.js, WebGL, один проход). Цвета сцены — токены --gl-*; шейдер читает их при загрузке.
   Палитра «Медный вечер». Cormorant Garamond 600 + Manrope. */

:root {
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 4.6vw, 76px); --top: 88px;
  --ph: min(560px, calc(100svh - var(--top) - 100px));
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

:root {
  /* сцена */
  --gl-bg: #120c0a;     /* тёплый почти чёрный */
  --gl-deep: #2e1810;   /* сумрак вокруг света */
  --gl-glow: #e8925c;   /* медный свет, из её волос */
  --gl-core: #ffd8b4;   /* горячий персиковый у самого края силуэта */
  --gl-haze: #f2a97a;   /* дымка, которую ловит свет */
  --gl-ember: #9c3a22;  /* тлеющий красный на спаде света */
  /* текст и действия */
  --bg: #120c0a; --ink: #f7ece1; --ink-2: rgb(247 236 225 / 0.74); --line: rgb(247 236 225 / 0.16);
  --acc: #f7ece1; --on-acc: #1a0f0b; --cta-i: #e8925c; --cta-arrow: #1a0f0b;
  --hl: #f0a674; --mark: rgb(176 70 40 / 0.78);
  /* фигура */
  --fh: min(calc(100svh - 30px), 1000px);
  --fw: min(calc(var(--fh) * 0.8086), 46vw);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { min-height: 100svh; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 99px; }
.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* шапка: имя, ссылки, одно действие */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--top); max-width: 1640px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 36px; }
.top::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); z-index: -1; background: rgb(18 12 10 / 0.88); opacity: 0; transition: opacity 0.4s ease; }
.top.solid::before { opacity: 1; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1; letter-spacing: -0.01em; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color 0.2s ease; }
.menu a:hover { color: var(--ink); }
.tg { padding: 12px 20px; border-radius: 99px; font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color 0.2s ease, color 0.2s ease; }
.tg:hover { background: var(--ink); color: var(--bg); }

/* первый экран: текст вровень с фото */
.hero { position: relative; z-index: 1; max-width: 1640px; margin: 0 auto; padding: clamp(10px, 2vh, 24px) var(--pad) clamp(24px, 4vh, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 5vw, 96px); align-items: stretch; }
.copy { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.head { display: grid; gap: 22px; justify-items: start; }
h1 { margin: -0.06em 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 4.9vw, 80px); line-height: 1.02; letter-spacing: -0.02em; overflow-wrap: break-word; min-width: 0; }
h1 .ln { display: block; }
.c1 { color: var(--hl); }
.c2 { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.04em; }
.lead { margin: 0; max-width: 31em; font-size: clamp(18px, 1.45vw, 21.5px); font-weight: 500; line-height: 1.55; color: var(--ink); }
.act { margin-top: 10px; }
.cta { display: inline-flex; align-items: center; gap: 18px; min-height: 72px; padding: 0 9px 0 32px; border-radius: 99px; background: var(--acc); color: var(--on-acc);
  font-size: 17.5px; font-weight: 700; white-space: nowrap; transition: transform 0.35s var(--ease); will-change: transform; }
.cta i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cta-i, var(--on-acc)); }
.cta svg { width: 22px; height: 22px; fill: none; stroke: var(--cta-arrow, var(--acc)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: scale(0.97); }

/* доказательства: три цифры, без карточек */
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.proof b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 4.8vw, 76px); line-height: 0.9; letter-spacing: -0.015em; white-space: nowrap; }
.proof li.hl b { color: var(--hl); }
.proof span { display: block; margin-top: 10px; max-width: 13em; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }

.portrait { margin: 0; align-self: start; }
.portrait img { display: block; height: var(--ph); width: auto; aspect-ratio: 1035 / 1280; object-fit: cover; border-radius: 30px; }

/* появление (контент видим и без скрипта: анимации только при .js) */
.js h1 .ln, .js .lead, .js .act, .js .proof li { animation: rise 1.1s var(--ease) both; }
.js h1 .ln:nth-child(2) { animation-delay: 0.08s; }
.js .lead { animation-delay: 0.18s; } .js .act { animation-delay: 0.28s; }
.js .proof li:nth-child(1) { animation-delay: 0.38s; } .js .proof li:nth-child(2) { animation-delay: 0.46s; } .js .proof li:nth-child(3) { animation-delay: 0.54s; }
.js .portrait img { animation: show 1.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes show { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js h1 .ln, .js .lead, .js .act, .js .proof li, .js .portrait img { animation: none; }
  .cta, .cta svg, .menu a, .tg { transition: none; }
}

@media (min-width: 901px) and (max-width: 1340px) {
  :root { --ph: min(520px, calc(100svh - var(--top) - 80px)); }
  .proof span { font-size: 14px; }
  .menu { gap: 20px; }
}

/* телефон */
@media (max-width: 900px) {
  :root { --top: 72px; }
  .menu, .tg-w { display: none; }
  h1 .ln { display: inline; }
  .top { justify-content: space-between; }
  .brand { font-size: 23px; white-space: nowrap; }
  .tg { padding: 10px 16px; font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 6px; }
  .copy { display: contents; }
  .head { order: 1; gap: 16px; }
  h1 { font-size: clamp(38px, 10.4vw, 64px); }
  .lead { font-size: 18px; }
  .act { align-self: stretch; width: 100%; margin-top: 4px; }
  .cta { width: 100%; justify-content: space-between; font-size: 15.5px; padding-left: 22px; gap: 12px; }
  .portrait { order: 2; margin-top: 28px; }
  .portrait img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-position: 50% 30%; border-radius: 26px; }
  .proof { order: 3; margin-top: 28px; gap: 14px; }
  .proof b { font-size: 40px; }
  .proof span { font-size: 13px; }
}

/* фигура без рамки: прижата к правому и нижнему краю экрана, свет — в канвасе за ней */
.hero-wrap { position: relative; min-height: 100svh; padding-top: var(--top); }
.hero { position: static; }
.copy { position: relative; z-index: 2; }
.hero { grid-template-columns: minmax(0, 1fr); padding-right: max(var(--pad), calc(var(--fw) * 0.9 - (100vw - min(100vw, 1640px)) / 2)); }
.portrait { position: absolute; right: 0; bottom: 0; z-index: 1; margin: 0; height: var(--fh); width: var(--fw); pointer-events: none; }
.portrait { display: flex; align-items: flex-end; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1035 / 1280; border-radius: 0; } /* блок картинки = сама картинка, маска в шейдере совпадает */
.js .portrait img { animation: figin 1.8s var(--ease) both; }
@keyframes figin { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) and (max-width: 1340px) { :root { --ph: auto; } }
@media (max-width: 900px) {
  .hero { padding-right: var(--pad); }
  .portrait { position: relative; right: auto; bottom: auto; height: auto; width: calc(100% + var(--pad)); margin: 18px calc(-1 * var(--pad)) 0 auto; }
  .portrait img { height: auto; aspect-ratio: 1035 / 1280; border-radius: 0; object-position: 100% 0;
    -webkit-mask-image: linear-gradient(#000 50%, transparent 88%); mask-image: linear-gradient(#000 50%, transparent 88%); }
  .proof { position: relative; z-index: 2; margin-top: -70px; }
}
@media (prefers-reduced-motion: reduce) { .js .portrait img { animation: none; } }
.tg:hover { color: #1a0f0b; }
::selection { background: rgb(232 146 92 / 0.55); color: #fff; }

