:root {
  color-scheme: dark;
  --background: #0c0d0f;
  --text: #eae9e3;
  --muted: #a1a1a6;
  --accent: #bec7a7;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; }
::selection { background: #c4c9b2; color: #141517; }
p, h1, h2, h3 { margin: 0; }
h2, h3 { font-weight: 400; }
a { color: inherit; }

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(34px, env(safe-area-inset-top)) max(5vw, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(5vw, env(safe-area-inset-left));
  overflow: hidden;
}

.atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c0d0f30 20%, transparent 65%), linear-gradient(0deg, #0c0d0f 0%, transparent 27%);
}
.light-position {
  position: absolute;
  top: 50%;
  left: 69%;
  width: min(82vw, 1200px);
  transform: translate(calc(-50% + var(--light-x, 0px)), calc(-52% + var(--light-y, 0px)));
  transition: transform 1.8s cubic-bezier(.2, .7, .3, 1);
}
.light-form { display: block; width: 100%; height: auto; animation: drift 24s ease-in-out infinite alternate; }
.grain {
  position: absolute;
  inset: 0;
  background-image: url("./assets/grain.svg");
  opacity: .055;
}
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.edition { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; letter-spacing: .035em; }
.edition span:first-child { color: #d0d0cd; }
.edition-divider { color: #55575a; }
.mark { flex: 0 0 auto; color: var(--accent); }

.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(70px, 10vh, 140px); }
h1 {
  width: fit-content;
  font-weight: 400;
  font-size: clamp(80px, 10.6vw, 174px);
  line-height: .96;
  letter-spacing: -.068em;
  margin-left: -.065em;
  text-wrap: nowrap;
}
.name-dot { color: var(--accent); }
.introduction { margin-top: 42px; }
.statement { max-width: 700px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 400; line-height: 1.35; letter-spacing: -.025em; }
.description { max-width: 515px; margin-top: 20px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.desktop-break { display: initial; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid #ffffff1c; padding-top: 24px; }
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #bec7a730; }
.contacts { display: flex; gap: 34px; }
.contact { display: inline-flex; min-height: 44px; align-items: center; gap: 26px; text-decoration: none; font-size: 14px; line-height: 1.4; transition: color .25s; }
.contact svg { width: 18px; height: 18px; transition: transform .25s; }
.contact[aria-disabled="true"] { cursor: default; }
.contact:focus-visible { outline: 1px solid var(--accent); outline-offset: 7px; border-radius: 2px; }
@media (hover: hover) {
  .contact[href]:hover { color: var(--accent); }
  .contact[href]:hover svg { transform: translate(2px, -2px); }
}

@keyframes drift {
  from { transform: translate3d(-1%, 1%, 0) rotate(-5deg) scale(.97); opacity: .78; }
  to { transform: translate3d(2%, -1%, 0) rotate(5deg) scale(1.03); opacity: 1; }
}

@media (min-width: 1800px) {
  .page { padding-inline: max(5vw, calc((100vw - 1680px) / 2)); }
}

@media (max-width: 767px) {
  .page {
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .edition { gap: 10px; font-size: 11px; }
  .mark { width: 18px; height: 18px; }
  .light-position { width: 760px; max-width: 190vw; top: 31%; left: 78%; opacity: .72; }
  .atmosphere::after { background: linear-gradient(0deg, var(--background), transparent 65%); }
  .hero-content { padding-block: 76px 68px; }
  h1 { font-size: clamp(52px, 17.8vw, 120px); line-height: 1.01; letter-spacing: -.063em; }
  .introduction { margin-top: 32px; }
  .statement { max-width: 700px; font-size: clamp(22px, 5.9vw, 30px); line-height: 1.32; letter-spacing: -.035em; }
  .desktop-break { display: none; }
  .description { margin-top: 20px; max-width: 355px; font-size: 15px; line-height: 1.6; }
  .footer { flex-direction: column; align-items: stretch; gap: 23px; padding-top: 18px; }
  .contacts { order: -1; gap: 28px; }
  .contact { justify-content: space-between; width: 50%; gap: 12px; font-size: 14px; border-bottom: 1px solid #ffffff26; padding-block: 0 9px; }
  .status { font-size: 11px; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hero-content { padding-block: 46px 40px; }
  .introduction { margin-top: 26px; }
  .footer { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Продолжение первой сцены: редакционные строки, лента и открытый финал. */
.section-shell {
  padding-inline: max(5vw, env(safe-area-inset-left)) max(5vw, env(safe-area-inset-right));
}
.focus { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(110px, 13vw, 200px); }
.section-title { font-size: clamp(56px, 6.6vw, 104px); line-height: .98; letter-spacing: -.065em; margin-bottom: 76px; }
.focus-list { position: relative; }
.focus-list::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 25% -5vw 0;
  background: radial-gradient(ellipse at 15% 50%, #7464870d, transparent 65%);
}
.focus-row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 48px; border-top: 1px solid #ffffff24; padding-block: 54px 64px; }
.focus-row:last-child { border-bottom: 1px solid #ffffff24; }
.focus-heading { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 54px); }
.focus-number { flex: 0 0 auto; font-size: 12px; letter-spacing: .04em; color: var(--accent); }
.focus-heading h3 { font-size: clamp(30px, 4.2vw, 66px); line-height: 1.08; letter-spacing: -.05em; text-transform: uppercase; }
.focus-copy { max-width: 450px; color: var(--muted); font-size: 17px; line-height: 1.65; padding-top: 6px; }
.focus-copy p + p { margin-top: 20px; }
.process { padding-block: clamp(110px, 13vw, 200px) clamp(100px, 11vw, 170px); overflow: hidden; }
.process-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.motion-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--muted); border: 1px solid #ffffff26; border-radius: 50%; background: transparent; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 20px; height: 20px; }
.motion-toggle .play-icon { display: none; }
.motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
.motion-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
.ticker { overflow: hidden; padding-block: 24px 36px; }
.ticker-track { display: flex; width: max-content; }
.motion-enabled .ticker-track { animation: ticker 95s linear infinite; }
.ticker-group { display: flex; align-items: center; flex: 0 0 auto; gap: 44px; padding: 0 44px 0 0; margin: 0; list-style: none; }
.ticker-group li { display: flex; align-items: center; gap: 44px; white-space: nowrap; font-size: clamp(58px, 8vw, 128px); line-height: 1.12; letter-spacing: -.055em; color: #d9d9d1; }
.ticker-group li::after { content: ""; width: 9px; height: 9px; border: 1px solid #bec7a780; border-radius: 50%; flex: 0 0 auto; }
.ticker-group li:nth-child(even) { color: #8f9297; }
.process-note { margin-top: 70px; margin-left: 32%; }
.process-statement { font-size: clamp(24px, 2.8vw, 42px); line-height: 1.3; letter-spacing: -.035em; }
.process-statement span { color: var(--muted); }
.process-caption { margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-section { position: relative; isolation: isolate; padding-bottom: max(90px, env(safe-area-inset-bottom)); overflow: hidden; }
.contact-section::before { content: ""; position: absolute; pointer-events: none; z-index: -1; inset: 0; background: radial-gradient(ellipse at 80% 100%, #747b5b16, transparent 60%); }
.contact-content { border-top: 1px solid #ffffff24; padding-top: clamp(70px, 9vw, 140px); }
.closing-title { font-size: clamp(64px, 9vw, 144px); line-height: 1.02; letter-spacing: -.065em; }
.closing-details { margin-top: 48px; margin-left: 50%; }
.closing-copy { max-width: 430px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.closing-links { display: flex; flex-direction: column; align-items: stretch; width: 280px; max-width: 100%; gap: 18px; margin-top: 32px; }
.contact-primary { justify-content: space-between; min-height: 60px; padding: 16px 24px; border: 1px solid #bec7a74d; gap: 48px; font-size: 15px; }
.reveal.is-entering { animation: appear .8s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes appear { from { opacity: .2; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
html[data-page-hidden] .light-form, html[data-page-hidden] .ticker-track,
.process.is-paused .ticker-track, .process.is-offscreen .ticker-track { animation-play-state: paused; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
@media (min-width: 1800px) { .section-shell { padding-inline: max(5vw, calc((100vw - 1680px) / 2)); } }
@media (max-width: 1023px) and (min-width: 768px) {
  .focus-row { grid-template-columns: 1.1fr 1fr; gap: 32px; }
  .focus-heading { gap: 20px; }
  .focus-heading h3 { font-size: 30px; }
  .focus-copy { font-size: 16px; }
  .process-note { margin-left: 15%; }
  .closing-details { margin-left: 35%; }
}
@media (max-width: 767px) {
  .section-shell { padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
  .hero-content { padding-block: 70px 48px; }
  .hero .statement { max-width: 370px; }
  .hero .description { max-width: 400px; }
  .hero-footer .status { align-items: baseline; }
  .focus { padding-top: 96px; }
  .section-title { font-size: clamp(52px, 13vw, 76px); margin-bottom: 46px; }
  .focus-row { display: block; padding-block: 32px 42px; }
  .focus-heading { gap: 17px; }
  .focus-number { font-size: 10px; }
  .focus-heading h3 { font-size: clamp(26px, 7.7vw, 48px); line-height: 1.13; }
  .focus-copy { margin-top: 24px; margin-left: 39px; padding-top: 0; font-size: 15px; line-height: 1.65; }
  .focus-copy p + p { margin-top: 18px; }
  .process { padding-block: 86px 92px; }
  .process-header { margin-bottom: 20px; }
  .ticker { padding-block: 16px 20px; }
  .ticker-group, .ticker-group li { gap: 26px; }
  .ticker-group { padding-right: 26px; }
  .ticker-group li { font-size: 62px; }
  .ticker-group li::after { width: 6px; height: 6px; }
  .process-note { margin-left: 0; margin-top: 40px; }
  .process-statement { max-width: 440px; font-size: 25px; line-height: 1.35; }
  .process-caption { margin-top: 23px; font-size: 13px; }
  .contact-section { padding-bottom: max(56px, env(safe-area-inset-bottom)); }
  .contact-content { padding-top: 64px; }
  .closing-title { font-size: clamp(38px, 10.7vw, 74px); line-height: 1.07; }
  .closing-details { margin-left: 0; margin-top: 28px; }
  .closing-copy { max-width: 355px; font-size: 15px; }
  .closing-links { width: 100%; gap: 14px; margin-top: 30px; }
  .contact-primary { width: 100%; padding: 17px 20px; min-height: 58px; font-size: 14px; }
}
@media (max-width: 767px) and (max-height: 700px) { .hero-content { padding-block: 44px 34px; } }
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
  .ticker-track { width: auto; }
  .ticker-group { flex: 0 1 100%; min-width: 0; flex-wrap: wrap; padding-inline: 5vw; gap: 20px 28px; }
  .ticker-group li { font-size: clamp(30px, 5vw, 72px); gap: 28px; white-space: normal; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .reveal.is-entering { opacity: 1; transform: none; }
}
