:root {
  --black: #050505;
  --soft-black: #0d0d0e;
  --white: #ffffff;
  --paper: #f4f4f2;
  --ink: #101011;
  --muted: #747477;
  --line: rgba(0, 0, 0, .12);
  --glass: rgba(255, 255, 255, .09);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity .22s ease;
}
body.is-lang-changing { opacity: .72; }
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 26px;
  align-content: center;
  background: var(--black);
  transition: opacity .7s var(--ease-out), visibility .7s;
}
.boot img { width: 258px; }
.boot span { width: 130px; height: 2px; overflow: hidden; background: rgba(255,255,255,.16); }
.boot span::after { content: ""; display: block; width: 100%; height: 100%; background: #fff; transform: translateX(-100%); animation: boot-line 1.15s var(--ease-out) forwards; }
body.is-ready .boot { opacity: 0; visibility: hidden; }
@keyframes boot-line { to { transform: translateX(0); } }

.scroll-progress { position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 2px; transform-origin: left; transform: scaleX(0); background: #fff; mix-blend-mode: difference; }
.cursor-glow { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; opacity: .2; background: radial-gradient(circle, rgba(255,255,255,.32) 0%, rgba(255,255,255,.13) 30%, transparent 70%); transform: translate3d(-50%, -50%, 0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  height: var(--header-h);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(8,8,9,.68);
  color: #fff;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 14px 40px rgba(0,0,0,.2);
  transition: transform .45s var(--ease-out), background .35s;
}
.site-header.is-hidden { transform: translate(-50%, -130%); }
.header-brand img { width: 172px; }
.site-header nav { display: flex; gap: 26px; font-size: 14px; color: rgba(255,255,255,.7); }
.site-header nav a, .footer-links a { transition: color .25s; }
.site-header nav a:hover, .footer-links a:hover { color: #fff; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0; transform: translate(-50%, 5px); transition: opacity .3s, transform .3s var(--ease-out); }
.site-header nav a.is-active { color: #fff; }
.site-header nav a.is-active::after { opacity: 1; transform: translate(-50%, 0); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-cta { padding: 14px 20px; border-radius: 999px; background: #fff; color: #050505; font-size: 14px; font-weight: 650; box-shadow: 0 0 0 rgba(255,255,255,.32); transition: transform .3s var(--ease-out), box-shadow .3s; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 34px rgba(255,255,255,.22); }
.language-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 92px; height: 44px; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); }
.language-thumb { position: absolute; left: 4px; top: 4px; width: 40px; height: 34px; border-radius: 999px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.28); transition: transform .42s var(--ease-out); }
.language-switch[data-active="ru"] .language-thumb { transform: translateX(42px); }
.language-switch button { position: relative; z-index: 2; padding: 0; border: 0; color: rgba(255,255,255,.52); background: transparent; font: inherit; font-size: 11px; font-weight: 750; letter-spacing: .08em; cursor: pointer; transition: color .3s; }
.language-switch button[aria-pressed="true"] { color: #050505; }

section { position: relative; margin-top: -1px; }
.section-dark { color: #fff; background: var(--black); }
.section-light { color: var(--ink); background: var(--paper); }
.section-warm { color: #fff; background: #151312; }
.kicker { margin: 0 0 28px; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .58; }
h1, h2, h3, p { text-wrap: balance; }
h1, h2, h3 { margin: 0; letter-spacing: -.055em; }
h1 { font-size: clamp(64px, 8vw, 136px); line-height: .89; }
h2 { font-size: clamp(54px, 7vw, 112px); line-height: .92; }
h3 { font-size: 34px; line-height: 1; }
html[lang="ru"] .hero h1 { font-size: clamp(58px, 7vw, 118px); }
html[lang="ru"] .hero-copy { width: min(880px, 63vw); }

.hero { min-height: 1140px; height: 125vh; max-height: 1420px; overflow: hidden; isolation: isolate; }
.hero-noise { position: absolute; inset: 0; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(38px); transform: translateZ(0); }
.hero-orb-one { width: 820px; height: 820px; right: -300px; top: -280px; opacity: .68; background: radial-gradient(circle at 36% 42%, #fafafa, #777 20%, #171717 48%, transparent 62%); }
.hero-orb-two { width: 560px; height: 560px; left: -360px; bottom: -80px; opacity: .38; background: radial-gradient(circle, #aaa, #242424 44%, transparent 70%); }
.hero-copy { position: absolute; z-index: 5; left: max(7vw, 56px); top: 190px; width: min(780px, 58vw); }
.hero h1 span { color: #8e8e91; }
.hero-lead { width: min(650px, 90%); margin: 42px 0 0; color: rgba(255,255,255,.58); font-size: clamp(18px, 1.6vw, 25px); line-height: 1.45; }
.hero-actions { display: flex; gap: 12px; margin-top: 42px; }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 650; transition: transform .3s var(--ease-out), background .3s, color .3s; }
.button::after { content: ""; position: absolute; z-index: -1; top: -120%; left: -45%; width: 36%; height: 340%; transform: rotate(22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent); transition: left .65s var(--ease-out); }
.button:hover { transform: translateY(-3px) scale(1.02); }
.button:hover::after { left: 120%; }
.button-light { color: #050505; background: #fff; }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.button-dark { color: #fff; background: #050505; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-highlights span { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 7px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-highlights b { font-size: 14px; }
.hero-highlights i { color: rgba(255,255,255,.48); font-size: 11px; font-style: normal; letter-spacing: .05em; }

.hero-stage { position: absolute; z-index: 4; right: -4vw; bottom: -280px; width: 770px; height: 930px; perspective: 1600px; }
.phone { position: absolute; overflow: hidden; border: 9px solid #111; border-radius: 62px; background: #111; box-shadow: 0 48px 120px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.22); transform-style: preserve-3d; }
.phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 52px; }
.dynamic-island { position: absolute; z-index: 3; top: 12px; left: 50%; width: 118px; height: 34px; transform: translateX(-50%); border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.phone-main { z-index: 5; width: 380px; height: 824px; left: 195px; top: 30px; transform: rotateY(-8deg) rotateZ(2deg); }
.phone-left { z-index: 3; width: 315px; height: 684px; left: -20px; top: 178px; opacity: .82; transform: rotateY(18deg) rotateZ(-8deg); }
.phone-right { z-index: 4; width: 325px; height: 706px; right: -30px; top: 150px; opacity: .88; transform: rotateY(-20deg) rotateZ(9deg); }
.floating-symbol { position: absolute; z-index: 8; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 24px; color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0,0,0,.34); }
.floating-symbol svg, .feature-icon svg, .privacy-lock svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.symbol-sliders { left: 86px; top: 74px; transform: rotate(-9deg); }
.symbol-sparkles { right: 52px; top: 42px; transform: rotate(8deg); }
.symbol-shield { right: 4px; top: 505px; transform: rotate(10deg); }
.scroll-hint { position: absolute; z-index: 8; left: max(7vw, 56px); bottom: 44px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.48); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.scroll-hint i { font-style: normal; }
.scroll-hint span { position: relative; width: 20px; height: 32px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
.scroll-hint span::after { content: ""; position: absolute; left: 8px; top: 7px; width: 2px; height: 7px; border-radius: 2px; background: #fff; animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.manifesto { min-height: 1060px; padding: 220px max(7vw, 56px) 170px; overflow: hidden; }
.manifesto::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 230px; pointer-events: none; background: linear-gradient(to bottom, #050505 0%, rgba(5,5,5,.88) 14%, rgba(244,244,242,0) 100%); }
.manifesto > * { position: relative; z-index: 1; }
.manifesto h2 { max-width: 1100px; }
.manifesto h2 em { color: #888; font-style: normal; }
.manifesto > p:last-of-type { max-width: 650px; margin: 56px 0 0 43%; color: var(--muted); font-size: 24px; line-height: 1.45; }
.manifesto-symbol { position: absolute; right: -100px; bottom: -210px; width: 510px; height: 510px; transform: rotate(16deg); border-radius: 130px; box-shadow: 0 50px 130px rgba(0,0,0,.18); }
.manifesto-symbol img { width: 100%; }
.choice-strip { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1120px; margin-top: 100px; }
.choice-strip > div { min-height: 150px; padding: 25px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); border-radius: 30px; background: rgba(255,255,255,.58); box-shadow: 0 18px 60px rgba(0,0,0,.045); transition: transform .45s var(--ease-out), box-shadow .45s; }
.choice-strip > div:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(0,0,0,.1); }
.choice-strip span { display: block; margin-bottom: 35px; color: #999; font-size: 11px; letter-spacing: .16em; }
.choice-strip strong, .choice-strip small { display: block; }
.choice-strip strong { font-size: 21px; letter-spacing: -.03em; }
.choice-strip small { margin-top: 7px; color: #888; font-size: 13px; }

.glass-story { min-height: 1230px; overflow: hidden; padding: 250px max(7vw, 56px) 170px; background: radial-gradient(circle at 88% 26%, #63666a 0, #191a1c 24%, #050505 58%); }
.glass-story::before { content: ""; position: absolute; z-index: 7; left: 0; right: 0; top: 0; height: 230px; pointer-events: none; background: linear-gradient(to bottom, var(--paper) 0%, rgba(244,244,242,.8) 12%, rgba(5,5,5,0) 100%); }
.story-copy { position: relative; z-index: 8; width: 48%; }
.story-copy > p:last-of-type, .profile-copy > p:last-of-type, .privacy-copy > p:last-of-type { max-width: 600px; margin: 42px 0 0; color: rgba(255,255,255,.58); font-size: 22px; line-height: 1.5; }
.material-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.material-pills span { padding: 12px 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass-devices { position: absolute; right: -60px; bottom: -170px; width: 760px; height: 1020px; perspective: 1600px; }
.glass-phone { width: 390px; height: 846px; border-color: rgba(220,225,230,.28); background: rgba(255,255,255,.12); }
.glass-phone-back { left: 10px; top: 30px; transform: rotateY(18deg) rotateZ(-7deg); }
.glass-phone-front { z-index: 3; right: 20px; top: 130px; transform: rotateY(-12deg) rotateZ(6deg); }

.feature-section { padding: 250px max(7vw, 56px) 190px; }
.feature-section::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 230px; background: linear-gradient(to bottom, #050505 0%, rgba(5,5,5,.82) 12%, rgba(244,244,242,0) 100%); }
.feature-section > * { position: relative; z-index: 1; }
.feature-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 90px; }
.feature-heading .kicker { align-self: start; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.feature-card { --mx: 50%; --my: 50%; position: relative; min-height: 410px; padding: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 44px; background: rgba(255,255,255,.56); transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(0,0,0,.22); box-shadow: 0 28px 80px rgba(0,0,0,.12); }
.feature-card-dark { color: #fff; background: #090909; }
.feature-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(0,0,0,.12), transparent 72%); transition: opacity .35s; }
.feature-card:hover::after { opacity: 1; }
.feature-card-dark::after { background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.2), transparent 72%); }
.feature-number { font-size: 12px; letter-spacing: .18em; opacity: .42; }
.feature-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-top: 72px; border-radius: 22px; color: currentColor; border: 1px solid currentColor; opacity: .8; }
.feature-card h3 { margin-top: 28px; }
.feature-card p { max-width: 490px; margin: 18px 0 0; color: currentColor; opacity: .56; font-size: 18px; line-height: 1.45; }
.feature-wide { grid-column: 1 / -1; min-height: 360px; }
.feature-wide .feature-icon { margin-top: 42px; }
.equalizer { position: absolute; right: 70px; bottom: 70px; display: flex; align-items: end; gap: 12px; height: 130px; }
.equalizer i { width: 12px; height: 30%; border-radius: 999px; background: #111; animation: equalize 1.6s ease-in-out infinite alternate; animation-play-state: paused; }
.feature-wide.is-animating .equalizer i { animation-play-state: running; }
.equalizer i:nth-child(2) { height: 80%; animation-delay: -.9s; }
.equalizer i:nth-child(3) { height: 52%; animation-delay: -.3s; }
.equalizer i:nth-child(4) { height: 100%; animation-delay: -1.2s; }
.equalizer i:nth-child(5) { height: 66%; animation-delay: -.6s; }
.equalizer i:nth-child(6) { height: 38%; animation-delay: -1.5s; }
.equalizer i:nth-child(7) { height: 88%; animation-delay: -.2s; }
.equalizer i:nth-child(8) { height: 48%; animation-delay: -1s; }
@keyframes equalize { to { transform: scaleY(.35); } }

.profile-story { min-height: 1220px; padding: 260px max(7vw, 56px) 180px; overflow: hidden; background: radial-gradient(circle at 18% 72%, #8f8f8f 0, #32302e 32%, #151312 66%); }
.profile-story::before { content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 230px; background: linear-gradient(to bottom, var(--paper) 0%, rgba(244,244,242,.82) 10%, rgba(21,19,18,0) 100%); }
.profile-copy { position: relative; z-index: 6; margin-left: 56%; }
.profile-device { z-index: 5; width: 430px; height: 934px; left: 10%; top: 240px; border-color: #050505; background: #050505; box-shadow: 0 48px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(-4deg); }
.profile-ring { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.ring-one { width: 720px; height: 720px; left: -210px; bottom: -190px; }
.ring-two { width: 520px; height: 520px; right: -170px; top: -190px; }

.gallery-section { padding: 250px 0 190px; overflow: hidden; }
.gallery-section::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 230px; background: linear-gradient(to bottom, #151312 0%, rgba(21,19,18,.82) 10%, rgba(244,244,242,0) 100%); }
.gallery-section > * { position: relative; z-index: 1; }
.gallery-heading { padding: 0 max(7vw, 56px); margin-bottom: 80px; }
.gallery-track { display: flex; gap: 24px; width: max-content; padding: 0 7vw; }
.gallery-card { width: 330px; margin: 0; overflow: hidden; border-radius: 34px; box-shadow: 0 26px 70px rgba(0,0,0,.14); background: #fff; transition: transform .5s var(--ease-out), box-shadow .5s; }
.gallery-card:hover { transform: translateY(-14px) rotate(-1deg); box-shadow: 0 42px 100px rgba(0,0,0,.22); }
.gallery-card:nth-child(even) { transform: translateY(54px); }
.gallery-card:nth-child(even):hover { transform: translateY(40px) rotate(1deg); }
.gallery-card img { width: 100%; }

.privacy-section { min-height: 1080px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding: 250px max(7vw, 56px) 160px; overflow: hidden; }
.privacy-section::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 230px; background: linear-gradient(to bottom, var(--paper) 0%, rgba(244,244,242,.82) 10%, rgba(5,5,5,0) 100%); }
.privacy-section > * { position: relative; z-index: 3; }
.privacy-copy { order: 2; }
.privacy-orbit { position: relative; width: min(520px, 40vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.privacy-orbit::before, .privacy-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.privacy-orbit::before { inset: 12%; }
.privacy-orbit::after { inset: 27%; }
.privacy-orbit > span { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 25px rgba(255,255,255,.65); }
.privacy-orbit > span:nth-child(1) { left: 49%; top: -8px; }
.privacy-orbit > span:nth-child(2) { right: 7%; bottom: 18%; }
.privacy-orbit > span:nth-child(3) { left: 12%; bottom: 12%; }
.privacy-lock { position: absolute; inset: 32%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 34%; background: rgba(255,255,255,.1); backdrop-filter: blur(22px); }
.privacy-lock svg { width: 44%; }

.download-section { min-height: 1050px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 160px; text-align: center; overflow: hidden; background: #fff; }
.download-section::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 230px; background: linear-gradient(to bottom, #050505 0%, rgba(5,5,5,.82) 10%, rgba(255,255,255,0) 100%); }
.download-section > * { position: relative; z-index: 1; }
.download-glow { position: absolute; top: -300px; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.18), transparent 66%); }
.download-icon { position: relative; width: 180px; margin-bottom: 60px; border-radius: 38px; box-shadow: 0 32px 80px rgba(0,0,0,.22); transform: rotate(7deg); }
.download-section h2 { font-size: clamp(70px, 9vw, 142px); }
.download-section > p:not(.kicker) { margin: 32px 0; color: var(--muted); font-size: 20px; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 44px max(4vw, 32px); color: rgba(255,255,255,.58); background: #050505; font-size: 13px; }
footer > img { width: 172px; }
.footer-links { display: flex; gap: 28px; }
footer > p { justify-self: end; margin: 0; }

/* Layered page transitions */
main > section:not(.hero) {
  margin-top: -72px;
  border-radius: 72px 72px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.12), 0 -30px 90px rgba(0,0,0,.2);
  overflow: hidden;
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}
main > section:not(.hero)::after {
  content: "";
  position: absolute;
  z-index: 20;
  left: 7%;
  right: 7%;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.manifesto::before,
.glass-story::before,
.feature-section::before,
.profile-story::before,
.gallery-section::before,
.privacy-section::before,
.download-section::before,
.community-section::before { display: none; }

/* Solid iPhone frame for the cold-glass showcase */
.glass-phone {
  border-color: #060607;
  background: #060607;
  box-shadow: 0 48px 120px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.16);
}

/* Native horizontal gallery */
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.gallery-controls { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.gallery-arrow { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 1px solid rgba(0,0,0,.14); border-radius: 50%; color: #111; background: rgba(255,255,255,.65); box-shadow: 0 14px 40px rgba(0,0,0,.08); cursor: pointer; transition: transform .35s var(--ease-out), color .3s, background .3s, opacity .3s; }
.gallery-arrow:hover { transform: scale(1.08); color: #fff; background: #090909; }
.gallery-arrow:disabled { opacity: .28; cursor: default; transform: none; }
.gallery-arrow svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery-position { display: flex; align-items: center; gap: 8px; min-width: 86px; color: #999; font-size: 11px; font-style: normal; letter-spacing: .12em; }
.gallery-position b, .gallery-position em { font: inherit; }
.gallery-position b { color: #111; }
.gallery-position i { width: 28px; height: 1px; background: #bbb; }
.gallery-viewport { overflow-x: auto; overflow-y: hidden; padding: 30px 0 100px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.gallery-viewport:active { cursor: grabbing; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { transform: none !important; }
.gallery-card { flex: 0 0 auto; scroll-snap-align: start; }

.privacy-device {
  position: relative;
  justify-self: center;
  width: min(440px, 40vw);
  aspect-ratio: 945 / 2048;
  overflow: hidden;
  border: 9px solid #050505;
  border-radius: 62px;
  background: #050505;
  box-shadow: 0 48px 120px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotate(-4deg);
  contain: layout paint;
}
.privacy-device img { width: 100%; height: 100%; object-fit: cover; border-radius: 52px; }

/* Developer projects */
.community-section {
  min-height: 1500px;
  padding: 210px max(6vw, 48px) 180px;
  background: radial-gradient(circle at 88% 8%, #31363a 0, #111315 22%, #050505 52%);
}
.community-telegram { position: absolute; right: -80px; top: 90px; width: 520px; height: 520px; opacity: .14; transform: rotate(10deg); }
.community-telegram img { width: 100%; height: 100%; }
.community-heading { position: relative; z-index: 2; max-width: 980px; margin-bottom: 110px; }
.community-heading > p:last-child { max-width: 650px; margin: 42px 0 0; color: rgba(255,255,255,.56); font-size: 21px; line-height: 1.5; }
.project-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1240px; margin: 0 auto; }
.project-card { position: relative; min-width: 0; min-height: 840px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 48px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); box-shadow: 0 34px 100px rgba(0,0,0,.32); transition: transform .55s var(--ease-out), border-color .4s, box-shadow .55s; }
.project-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,.28); box-shadow: 0 50px 130px rgba(0,0,0,.48); }
.project-card-wide { grid-column: 1 / -1; min-height: 760px; display: grid; grid-template-columns: .78fr 1.22fr; }
.project-copy { position: relative; z-index: 4; padding: 44px; }
.project-index { display: block; margin-bottom: 34px; color: rgba(255,255,255,.34); font-size: 11px; letter-spacing: .18em; }
.project-avatar, .project-avatar-pair img { width: 70px; height: 70px; object-fit: cover; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; box-shadow: 0 15px 34px rgba(0,0,0,.28); }
.project-avatar-pair { display: flex; }
.project-avatar-pair img + img { margin-left: -18px; }
.project-card h3 { margin-top: 28px; font-size: 48px; }
.project-card p { max-width: 480px; margin: 18px 0 30px; color: rgba(255,255,255,.54); font-size: 17px; line-height: 1.48; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; }
.telegram-button { display: inline-grid; grid-template-columns: 28px auto 18px; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px 8px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; background: rgba(255,255,255,.11); transition: transform .35s var(--ease-out), background .35s, border-color .35s; }
.telegram-button:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.14); }
.telegram-button img { width: 28px; height: 28px; }
.telegram-button span { font-size: 13px; font-weight: 650; }
.telegram-button b { font-size: 14px; font-weight: 400; opacity: .52; }
.project-shot { position: relative; overflow: visible; padding: 7px 7px 0; border: 1px solid rgba(255,255,255,.32); border-bottom: 0; border-radius: 48px 48px 0 0; background: linear-gradient(105deg, #050505 0%, #2c2c2e 48%, #050505 100%); box-shadow: 0 30px 90px rgba(0,0,0,.52), inset 0 0 0 2px rgba(255,255,255,.07); contain: layout; }
.project-shot::before { content: ""; position: absolute; z-index: 2; left: -5px; top: 112px; width: 4px; height: 58px; border-radius: 4px 0 0 4px; background: linear-gradient(#555, #111); box-shadow: 0 74px 0 #242426; }
.project-shot::after { content: ""; position: absolute; z-index: 2; right: -5px; top: 145px; width: 4px; height: 94px; border-radius: 0 4px 4px 0; background: linear-gradient(#555, #111); }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 39px 39px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.project-card:not(.project-card-wide) { display: grid; grid-template-rows: auto 470px; }
.project-card:not(.project-card-wide) > .project-shot { width: 80%; height: 590px; margin: -10px 26px -180px auto; transform: rotate(3deg); transition: transform .65s var(--ease-out); }
.project-card:not(.project-card-wide):hover > .project-shot { transform: rotate(1deg) translateY(-12px); }
.project-card-wide > .project-shot { align-self: end; justify-self: center; width: min(390px, 82%); height: 680px; margin-bottom: -110px; transform: rotate(3deg); }
.project-double-shot { display: flex; align-items: end; justify-content: center; gap: 16px; min-width: 0; padding: 60px 30px 0 0; }
.project-double-shot .project-shot { width: min(310px, 47%); height: 640px; margin-bottom: -90px; transform: rotate(-4deg); transition: transform .6s var(--ease-out); }
.project-double-shot .project-shot + .project-shot { transform: rotate(5deg) translateY(34px); }
.project-card:hover .project-double-shot .project-shot { transform: rotate(-2deg) translateY(-12px); }
.project-card:hover .project-double-shot .project-shot + .project-shot { transform: rotate(3deg) translateY(16px); }
.project-whitegram { background: radial-gradient(circle at 90% 10%, rgba(77,116,156,.28), transparent 38%), linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); }
.project-chats { background: radial-gradient(circle at 86% 18%, rgba(61,88,145,.28), transparent 35%), linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); }

.phone, .feature-card, .gallery-card, .project-card { contain: layout paint; }

.hero-reveal { opacity: 0; transform: translateY(40px); }
body.is-ready .hero-reveal { animation: hero-in .95s var(--ease-out) forwards; }
body.is-ready .hero-reveal:nth-child(2) { animation-delay: .09s; }
body.is-ready .hero-reveal:nth-child(3) { animation-delay: .18s; }
body.is-ready .hero-reveal:nth-child(4) { animation-delay: .27s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
.hero-stage { opacity: 0; transform: translateY(100px) scale(.94); }
body.is-ready .hero-stage { animation: stage-in 1.25s .2s var(--ease-out) forwards; }
@keyframes stage-in { to { opacity: 1; transform: none; } }

.reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: opacity .85s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal, .reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-80px) rotate(-8deg); }
.reveal-right { transform: translateX(80px) rotate(8deg); }
.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero { min-height: 1260px; height: auto; }
  .hero-copy { width: calc(100% - 112px); }
  .hero-stage { right: 50%; bottom: -260px; transform: translateX(50%); }
  body.is-ready .hero-stage { animation-name: stage-in-tablet; }
  @keyframes stage-in-tablet { to { opacity: 1; transform: translateX(50%); } }
  .story-copy { width: 58%; }
  .glass-devices { right: -230px; }
  .profile-copy { margin-left: 52%; }
  .profile-device { left: 2%; }
  .choice-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  html, body { background: var(--black); }
  body { width: 100%; max-width: 100%; }
  main > section:not(.hero) { margin-top: -42px; border-radius: 42px 42px 0 0; }
  main > section:not(.hero) { content-visibility: visible; contain-intrinsic-size: none; }
  .cursor-glow { display: none; }
  .site-header { top: 10px; grid-template-columns: 1fr auto; padding-left: 14px; }
  .header-brand img { width: 122px; }
  .site-header nav { display: none; }
  .header-cta { display: none; }
  .language-switch { width: 86px; height: 40px; }
  .language-thumb { width: 37px; height: 30px; }
  .language-switch[data-active="ru"] .language-thumb { transform: translateX(39px); }
  h1 { font-size: clamp(50px, 14vw, 62px); }
  h2 { font-size: clamp(44px, 12.5vw, 58px); }
  h1, h2, h3 { overflow-wrap: anywhere; }
  html[lang="ru"] .hero h1 { font-size: clamp(46px, 12.4vw, 56px); line-height: .92; }
  .hero { min-height: 1220px; }
  .hero-copy { left: 24px; top: 135px; width: calc(100% - 48px); }
  .hero-copy h1 { max-width: 100%; }
  .hero-lead { width: 100%; }
  .hero-actions { flex-wrap: wrap; }
  .hero-highlights { position: relative; z-index: 7; max-width: 340px; margin-top: 26px; }
  .button { min-height: 50px; }
  .hero-stage { left: 50%; right: auto; top: 650px; bottom: auto; width: 570px; height: 690px; transform: translateX(-50%) scale(.76); transform-origin: bottom center; }
  body.is-ready .hero-stage { animation-name: stage-in-mobile; }
  @keyframes stage-in-mobile { to { opacity: 1; transform: translateX(-50%) scale(.76); } }
  .phone-main { left: 95px; }
  .phone-left { left: -30px; }
  .phone-right { right: -70px; }
  .scroll-hint { left: 24px; bottom: 28px; }
  .manifesto, .feature-section, .gallery-section { padding-top: 58px; padding-bottom: 96px; }
  .manifesto, .feature-section { padding-left: 24px; padding-right: 24px; }
  .manifesto > p:last-of-type { margin-left: 0; font-size: 19px; }
  .manifesto-symbol { width: 300px; height: 300px; right: -110px; bottom: -100px; border-radius: 74px; }
  .choice-strip { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 70px; }
  .choice-strip > div { min-height: 130px; padding: 20px; border-radius: 24px; }
  .choice-strip span { margin-bottom: 24px; }
  .choice-strip strong { font-size: 18px; }
  .choice-strip small { font-size: 11px; }
  .glass-story { min-height: 1120px; padding: 58px 24px 92px; }
  .story-copy { width: 100%; }
  .glass-devices { right: 50%; bottom: -190px; transform: translateX(50%) scale(.74); transform-origin: bottom center; }
  .feature-heading { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature-card { min-height: 350px; padding: 30px; border-radius: 34px; }
  .equalizer { right: 30px; bottom: 34px; opacity: .28; }
  .profile-story { min-height: 1170px; padding: 58px 24px 92px; }
  .profile-copy { margin-left: 0; }
  .profile-device { left: 50%; top: 540px; width: 360px; height: 782px; transform: translateX(-50%) rotate(-3deg); }
  .gallery-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; padding: 0 24px; margin-bottom: 42px; }
  .gallery-heading h2 { max-width: 100%; }
  .gallery-controls { justify-content: flex-start; gap: 8px; padding-bottom: 0; }
  .gallery-arrow { width: 44px; height: 44px; }
  .gallery-position { display: flex; min-width: 76px; }
  .gallery-viewport { padding-top: 12px; padding-bottom: 54px; }
  .gallery-card { width: 260px; }
  .privacy-section { min-height: 920px; grid-template-columns: 1fr; align-content: center; gap: 48px; padding: 58px 24px 92px; }
  .privacy-copy { order: 1; }
  .privacy-device { order: 2; width: min(82vw, 360px); justify-self: center; border-width: 7px; border-radius: 52px; }
  .privacy-device img { border-radius: 43px; }
  .download-section { min-height: 720px; padding: 80px 24px; }
  .community-section { min-height: 0; padding: 58px 16px 90px; }
  .community-telegram { width: 300px; height: 300px; right: -80px; top: 70px; }
  .community-heading { padding: 0 8px; margin-bottom: 52px; }
  .community-heading > p:last-child { font-size: 18px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card, .project-card-wide { grid-column: auto; min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 440px; border-radius: 36px; }
  .project-copy { padding: 28px; }
  .project-index { margin-bottom: 24px; }
  .project-avatar, .project-avatar-pair img { width: 58px; height: 58px; border-radius: 18px; }
  .project-card h3 { margin-top: 22px; font-size: 38px; }
  .project-card p { margin-bottom: 24px; font-size: 15px; }
  .telegram-button { grid-template-columns: 26px auto 16px; min-height: 50px; }
  .telegram-button img { width: 26px; height: 26px; }
  .project-card:not(.project-card-wide) > .project-shot,
  .project-card-wide > .project-shot { align-self: start; justify-self: end; width: 78%; height: auto; aspect-ratio: 945 / 2048; margin: 0 20px -180px 0; transform: rotate(3deg); }
  .project-double-shot { position: relative; display: block; height: 610px; padding: 0; }
  .project-double-shot .project-shot { position: absolute; top: 12px; left: -3%; width: 68%; height: auto; aspect-ratio: 945 / 2048; margin: 0; padding: 5px 5px 0; border-radius: 38px 38px 0 0; transform: rotate(-4deg); }
  .project-double-shot .project-shot + .project-shot { top: 70px; left: auto; right: -3%; transform: rotate(5deg); }
  .project-double-shot .project-shot img { border-radius: 28px 28px 0 0; }
  .project-card-wide { grid-template-rows: auto 570px; }
  .project-card:hover .project-double-shot .project-shot { transform: rotate(-4deg); }
  .project-card:hover .project-double-shot .project-shot + .project-shot { transform: rotate(5deg); }
  footer { grid-template-columns: 1fr; gap: 28px; padding: 58px 24px; text-align: center; justify-items: center; }
  footer > img { width: min(220px, 70vw); }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
  footer > p { justify-self: center; }
}

@media (max-width: 390px) {
  html[lang="ru"] .hero h1 { font-size: 44px; }
  .hero-copy { left: 20px; width: calc(100% - 40px); }
  .manifesto, .feature-section { padding-left: 20px; padding-right: 20px; }
  .gallery-heading { padding-left: 20px; padding-right: 20px; }
  .gallery-arrow { width: 42px; height: 42px; }
  .project-copy { padding: 24px 22px; }
  .telegram-button span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-reveal, .hero-stage, .reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .cursor-glow { display: none; }
}
