/* SN games — главная. Имиджевый публичный экран без демонстрационных данных. */

body.public-home{
  --home-pad:clamp(20px,4vw,64px);
  overflow-x:hidden;
}

.public-home .pub-topbar{
  background:rgba(5,5,5,.9);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.public-home .pub-topbar-in{
  max-width:none;
  padding-inline:var(--home-pad);
}

.home-main{display:block}

/* Первый экран: один образ, одна мысль, два спокойных действия. */
.home-hero{
  position:relative;
  min-height:calc(100svh - var(--pub-header-h));
  overflow:hidden;
  isolation:isolate;
  border-bottom:1px solid var(--line-soft);
  background:#070707;
}

.home-hero-art{
  position:absolute;
  inset:0;
  z-index:-1;
  overflow:hidden;
  background:
    linear-gradient(90deg,transparent 0 57%,rgba(255,255,255,.035) 57% 57.08%,transparent 57.08%),
    radial-gradient(circle at 78% 44%,#1b1b1b 0,rgba(18,18,18,.72) 27%,rgba(7,7,7,0) 59%),
    #070707;
}

.home-hero-art::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.38;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:clamp(72px,8vw,126px) clamp(72px,8vw,126px);
  mask-image:linear-gradient(90deg,transparent 0,#000 49%,#000 100%);
}

.home-monogram{
  position:absolute;
  right:-.04em;
  top:50%;
  transform:translateY(-51%);
  font-family:var(--site-font);
  font-size:clamp(360px,48vw,760px);
  font-weight:700;
  line-height:.72;
  letter-spacing:-.13em;
  color:rgba(255,255,255,.022);
  -webkit-text-stroke:1px rgba(255,255,255,.16);
  user-select:none;
  white-space:nowrap;
}

.home-monogram::after{
  content:"SOCIAL / NETWORK";
  position:absolute;
  right:clamp(72px,7vw,112px);
  bottom:-2.8em;
  font-family:var(--pub-mono);
  font-size:11px;
  font-weight:400;
  letter-spacing:.15em;
  color:var(--muted-2);
  -webkit-text-stroke:0;
}

.home-axis{
  position:absolute;
  right:var(--home-pad);
  top:38px;
  bottom:38px;
  width:1px;
  background:linear-gradient(transparent,var(--line),var(--line),transparent);
}

.home-axis::before,.home-axis::after{
  content:"";
  position:absolute;
  left:-3px;
  width:7px;
  height:7px;
  border:1px solid var(--muted-2);
  background:#070707;
}
.home-axis::before{top:19%}
.home-axis::after{bottom:15%}

.home-hero-in{
  position:relative;
  min-width:0;
  min-height:calc(100svh - var(--pub-header-h));
  padding:clamp(72px,10vh,130px) var(--home-pad) 34px;
  display:grid;
  grid-template-rows:1fr auto;
  gap:54px;
}

.home-hero-copy{
  width:min(780px,67vw);
  min-width:0;
  align-self:center;
  display:grid;
  justify-items:start;
  gap:22px;
}

.home-identity{display:flex;align-items:center;gap:14px;min-height:30px}
.home-identity .pub-decode{min-width:132px;font-size:12px;letter-spacing:.12em}
.home-identity .pub-hero-sub{font-size:10px;letter-spacing:.1em}

.home-title{
  max-width:900px;
  margin:0;
  font-size:clamp(54px,7.3vw,112px);
  font-weight:600;
  line-height:.92;
  letter-spacing:-.055em;
  text-wrap:balance;
}

.home-lead{
  max-width:610px;
  margin:4px 0 0;
  color:var(--muted);
  font-size:clamp(16px,1.45vw,20px);
  line-height:1.52;
}

.home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:8px}
.home-actions .btn{min-height:44px;padding-inline:20px;border-radius:6px}

.home-hero-foot{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  font-family:var(--pub-mono);
  color:var(--muted-2);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.home-hero-foot::before{content:"01 / HOME"}
.home-hero-foot .line{height:1px;background:var(--line-soft)}
.home-hero-foot a{color:var(--muted);transition:color var(--dur-fast) var(--ease-out)}
.home-hero-foot a:hover{color:var(--text-strong)}

/* Редакционные блоки ниже героя. */
.home-section{
  padding:clamp(82px,10vw,150px) var(--home-pad);
  border-bottom:1px solid var(--line-soft);
}

.home-section-in{max-width:var(--shell-max);margin:0 auto}

.home-section-label{
  margin:0 0 34px;
  font-family:var(--pub-mono);
  color:var(--muted-2);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.home-statement-grid{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(260px,.65fr);
  gap:clamp(46px,9vw,150px);
  align-items:end;
}

.home-statement h2{
  max-width:920px;
  margin:0;
  font-size:clamp(38px,5.5vw,78px);
  line-height:1.04;
  letter-spacing:-.04em;
  font-weight:550;
  text-wrap:balance;
}

.home-statement-copy{display:grid;gap:20px;color:var(--muted);font-size:16px;line-height:1.65}
.home-statement-copy p{margin:0}
.home-statement-copy strong{color:var(--text);font-weight:500}

.home-wordmark{
  position:relative;
  overflow:hidden;
  min-height:clamp(260px,38vw,560px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px var(--home-pad);
  border-bottom:1px solid var(--line-soft);
  background:#0a0a0a;
}
.home-wordmark::before,.home-wordmark::after{
  content:"";
  position:absolute;
  background:var(--line-soft);
}
.home-wordmark::before{left:50%;top:0;bottom:0;width:1px}
.home-wordmark::after{top:50%;left:0;right:0;height:1px}
.home-wordmark span{
  position:relative;
  z-index:1;
  font-size:clamp(88px,20vw,330px);
  line-height:.75;
  letter-spacing:-.085em;
  font-weight:650;
  color:#0a0a0a;
  -webkit-text-stroke:1px rgba(255,255,255,.46);
}

.home-guides-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:30px;
  margin-bottom:42px;
}
.home-guides-head h2{
  max-width:850px;
  margin:0;
  font-size:clamp(38px,5.2vw,72px);
  line-height:1;
  letter-spacing:-.04em;
  font-weight:550;
}
.home-guides-head > a{font-size:13px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:4px}
.home-guides-head > a:hover{color:var(--text-strong)}

.home-guide-list{
  position:relative;
  isolation:isolate;
  border-top:1px solid var(--line);
}
.home-guide{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:70px minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  min-height:126px;
  padding:24px 0;
  border-bottom:1px solid var(--line-soft);
  color:var(--text);
}
.home-guide > *{
  position:relative;
  z-index:1;
  transition:transform 440ms cubic-bezier(.16,1,.3,1),color 220ms var(--ease-out);
}
.home-guide:hover > span:nth-child(2),
.home-guide:focus-visible > span:nth-child(2){transform:translateX(10px)}
.home-guide:hover .num,
.home-guide:focus-visible .num{transform:translateX(4px);color:var(--muted)}
.home-guide:hover .meta,
.home-guide:focus-visible .meta{transform:translateX(-4px);color:var(--muted)}
.home-guide-hover{
  position:absolute;
  top:0;
  left:-14px;
  right:-14px;
  z-index:0;
  height:var(--guide-h,0px);
  pointer-events:none;
  border:1px solid var(--line-soft);
  border-radius:4px;
  background:linear-gradient(90deg,rgba(255,255,255,.035),var(--card) 18%,var(--card));
  opacity:0;
  transform:translate3d(0,var(--guide-y,0px),0) scaleY(.9);
  transform-origin:center;
  transition:
    height 440ms cubic-bezier(.16,1,.3,1),
    opacity 180ms var(--ease-out),
    transform 440ms cubic-bezier(.16,1,.3,1);
  will-change:height,opacity,transform;
}
.home-guide-hover.is-on{
  opacity:1;
  transform:translate3d(0,var(--guide-y,0px),0) scaleY(1);
}
.home-guide .num{font-family:var(--pub-mono);font-size:10px;color:var(--muted-2);letter-spacing:.1em}
.home-guide h3{margin:0 0 7px;font-size:clamp(21px,2.5vw,32px);line-height:1.15;font-weight:500;letter-spacing:-.02em}
.home-guide p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.home-guide .meta{font-family:var(--pub-mono);font-size:10px;color:var(--muted-2);white-space:nowrap}

.home-final{
  min-height:62svh;
  display:flex;
  align-items:center;
  background:#ededed;
  color:#0b0b0b;
}
.home-final-in{width:100%;max-width:var(--shell-max);margin:0 auto;padding:90px var(--home-pad)}
.home-final .home-section-label{color:#666}
.home-final h2{
  max-width:1020px;
  margin:0 0 40px;
  color:#0b0b0b;
  font-size:clamp(48px,7vw,102px);
  line-height:.94;
  letter-spacing:-.055em;
  font-weight:600;
}
.home-final .btn{background:#0b0b0b;color:#ededed;border-color:#0b0b0b;border-radius:6px;min-height:46px;padding-inline:22px}
.home-final .btn:hover{background:#222;color:#fff}

@media (prefers-reduced-motion:no-preference){
  .home-monogram{animation:home-mark-in 900ms cubic-bezier(.2,.8,.2,1) both}
  .home-title,.home-lead,.home-actions{animation:home-copy-in 560ms var(--ease-out) both}
  .home-lead{animation-delay:80ms}
  .home-actions{animation-delay:140ms}
  @keyframes home-mark-in{from{opacity:0;transform:translateY(-48%) translateX(6%)}to{opacity:1;transform:translateY(-51%) translateX(0)}}
  @keyframes home-copy-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

  /* Секции после первого экрана появляются как отдельные сцены при скролле. */
  html.home-reveal-ready .home-scene{
    opacity:.08;
    transform:translateY(64px);
    clip-path:inset(0 0 13% 0);
    transition:
      opacity 760ms cubic-bezier(.2,.8,.2,1),
      transform 920ms cubic-bezier(.16,1,.3,1),
      clip-path 920ms cubic-bezier(.16,1,.3,1);
    will-change:opacity,transform,clip-path;
  }
  html.home-reveal-ready .home-scene.is-visible{
    opacity:1;
    transform:none;
    clip-path:inset(0);
  }

  html.home-reveal-ready .home-statement .home-section-label,
  html.home-reveal-ready .home-statement h2,
  html.home-reveal-ready .home-statement-copy,
  html.home-reveal-ready .home-guides .home-section-label,
  html.home-reveal-ready .home-guides-head,
  html.home-reveal-ready .home-guide,
  html.home-reveal-ready .home-final .home-section-label,
  html.home-reveal-ready .home-final h2,
  html.home-reveal-ready .home-final .btn{
    opacity:0;
    transform:translateY(28px);
    transition:opacity 620ms var(--ease-out),transform 760ms cubic-bezier(.16,1,.3,1);
  }
  html.home-reveal-ready .home-scene.is-visible .home-section-label,
  html.home-reveal-ready .home-statement.is-visible h2,
  html.home-reveal-ready .home-statement.is-visible .home-statement-copy,
  html.home-reveal-ready .home-guides.is-visible .home-guides-head,
  html.home-reveal-ready .home-guides.is-visible .home-guide,
  html.home-reveal-ready .home-final.is-visible h2,
  html.home-reveal-ready .home-final.is-visible .btn{
    opacity:1;
    transform:none;
  }
  html.home-reveal-ready .home-statement.is-visible h2{transition-delay:70ms}
  html.home-reveal-ready .home-statement.is-visible .home-statement-copy{transition-delay:170ms}
  html.home-reveal-ready .home-guides.is-visible .home-guides-head{transition-delay:80ms}
  html.home-reveal-ready .home-guides.is-visible .home-guide:nth-child(1){transition-delay:150ms}
  html.home-reveal-ready .home-guides.is-visible .home-guide:nth-child(2){transition-delay:230ms}
  html.home-reveal-ready .home-guides.is-visible .home-guide:nth-child(3){transition-delay:310ms}
  html.home-reveal-ready .home-final.is-visible h2{transition-delay:90ms}
  html.home-reveal-ready .home-final.is-visible .btn{transition-delay:210ms}

  html.home-reveal-ready .home-wordmark span{
    opacity:0;
    transform:scale(.82) translateY(22px);
    letter-spacing:-.02em;
    transition:
      opacity 600ms var(--ease-out) 80ms,
      transform 1100ms cubic-bezier(.16,1,.3,1) 80ms,
      letter-spacing 1100ms cubic-bezier(.16,1,.3,1) 80ms;
  }
  html.home-reveal-ready .home-wordmark.is-visible span{
    opacity:1;
    transform:none;
    letter-spacing:-.085em;
  }
}

/* Низкое окно браузера без F11: убираем лишний верхний воздух и сохраняем CTA в кадре. */
@media (min-width:901px) and (max-height:820px){
  .home-hero-in{padding-top:26px;padding-bottom:14px;gap:20px}
  .home-hero-copy{align-self:start;gap:18px}
  .home-actions{margin-top:4px}
}

@media (max-width:900px){
  .home-hero-art{background:radial-gradient(circle at 76% 34%,#1a1a1a 0,rgba(7,7,7,0) 56%),#070707}
  .home-hero-art::before{mask-image:linear-gradient(180deg,#000,transparent 78%)}
  .home-monogram{right:-.12em;top:32%;font-size:clamp(300px,88vw,560px);opacity:.72}
  .home-axis{display:none}
  .home-hero-copy{width:100%;align-self:end;margin-bottom:8vh}
  .home-title{font-size:clamp(52px,11vw,82px)}
  .home-statement-grid{grid-template-columns:1fr;align-items:start}
  .home-statement-copy{max-width:620px}
}

@media (max-width:640px){
  body.public-home{--home-pad:16px}
  .home-hero-in{padding-top:58px;padding-bottom:20px;gap:28px}
  .home-identity{align-items:flex-start;flex-direction:column;gap:6px}
  .home-identity .pub-hero-sub::before{width:22px}
  .home-hero-copy{gap:18px;margin-bottom:3vh}
  .home-title{max-width:100%;font-size:clamp(42px,12vw,54px);line-height:.96}
  .home-lead{font-size:16px}
  .home-actions{width:100%}
  .home-actions .btn{flex:1 1 140px;justify-content:center;padding-inline:14px}
  .home-hero-foot{grid-template-columns:auto 1fr}
  .home-hero-foot a{display:none}
  .home-section{padding-block:74px}
  .home-section-label{margin-bottom:24px}
  .home-statement h2{font-size:clamp(36px,11vw,52px)}
  .home-wordmark{min-height:230px}
  .home-guides-head{grid-template-columns:1fr;align-items:start;margin-bottom:30px}
  .home-guide{grid-template-columns:36px minmax(0,1fr);gap:12px;min-height:0;padding:22px 0}
  .home-guide .meta{grid-column:2;white-space:normal}
  .home-guide p{display:none}
  .home-final{min-height:56svh}
  .home-final-in{padding-block:72px}
  .home-final h2{font-size:clamp(46px,14vw,68px)}
}

@media (prefers-reduced-motion:reduce){
  .home-guide:hover,
  .home-guide:focus-visible{background:var(--card)}
  .home-guide > *{transition:none}
}
