:root {
  --bg: #1a1a1b;
  --ink: #fafafa;
  --dim: #7e7e80;
  --read: #d9d9d7;
  --line: rgba(250, 250, 250, 0.14);
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1500px;
  margin: 0 auto;
}
/* home intro — hero на первый экран */
.intro {
  font-size: clamp(27px, 2.95vw, 40px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 82vh;
  display: flex;
  align-items: center;
  will-change: opacity, filter, transform;
  transform-origin: center top;
}
.intro a {
  text-decoration: none;
}
.intro a:hover {
  opacity: 0.6;
}
/* gallery */
.gallery {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px 8px;
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 580px) {
  .gallery {
    column-count: 1;
  }
}
.tile {
  break-inside: avoid;
  margin: 0 0 20px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  display: block;
  cursor: pointer;
}
/* карточки растут и поднимаются по мере подъёма по экрану (JS, привязка к позиции) */
.tile {
  will-change: transform, opacity;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.frame {
  position: relative;
  width: 100%;
}
.sq {
  padding-top: 100%;
}
.port {
  padding-top: 150%;
}
.art {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover .art {
  transform: scale(1.03);
}
/* header for inner pages */
.site-head {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-head .word {
  font-size: 16px;
  font-weight: 500;
}
.site-head .word:hover {
  opacity: 0.6;
}
/* legal / content pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 32px 0;
}
.doc .back {
  display: inline-block;
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 30px;
}
.doc .back:hover {
  color: var(--ink);
}
.doc h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.doc .updated {
  color: var(--dim);
  font-size: 13px;
  margin: 12px 0 34px;
}
.doc h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 32px 0 10px;
  color: var(--ink);
}
.doc p {
  color: var(--read);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 12px;
  max-width: 70ch;
}
.doc a.inline {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* footer */
.footer {
  max-width: 1500px;
  margin: 64px auto 0;
  padding: 34px 32px 46px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}
.footer .cp {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
}
.footer .soc {
  display: flex;
  gap: 18px;
  font-size: 15px;
  font-weight: 500;
  flex-wrap: wrap;
}
.footer .soc a:hover {
  opacity: 0.6;
}
/* placeholder tile visuals (to be replaced by real app screenshots) */
.v-net {
  background: #070707;
}
.v-light {
  background: linear-gradient(160deg, #e9e7e2, #cfcdc7);
}
.v-light .ui {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 22%;
  bottom: 8%;
  background: #f6f5f2;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}
.v-calm {
  background: #0b0f0e;
}
.v-calm .bl {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}
.v-aqida {
  background: radial-gradient(
    70% 60% at 60% 38%,
    rgba(120, 104, 160, 0.22),
    #060609 66%
  );
}
.v-geo {
  background: #0a0e12;
}
.v-geo .g {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(150, 176, 170, 0.26) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000, transparent);
}
.v-sand {
  background: radial-gradient(60% 60% at 50% 42%, #5a4322, #160f06 72%);
}
.v-ebru {
  background: conic-gradient(
    from 210deg at 42% 46%,
    #33283c,
    #243640,
    #3f3326,
    #33283c
  );
}
.v-react {
  background: #0c0a0b;
  background-image: repeating-radial-gradient(
    circle at 50% 45%,
    #1b1316 0 7px,
    #0c0a0b 7px 15px
  );
}
.v-lightb {
  background: linear-gradient(150deg, #d9d6cf, #b7b4ad);
}
