:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --ice: #92cbd8;
  --line: rgba(255, 255, 255, 0.14);
  --font: "Golos Text", sans-serif;
  --heading: "Unbounded", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
  overflow-x: hidden;
}

body.is-modal { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; }

button, input, textarea { font: inherit; letter-spacing: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: #fff;
  color: #000;
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { transform: none; }

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.site-foot {
  position: relative;
  z-index: 1;
}

.site-nav {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.block, .site-foot { scroll-margin-top: 76px; }

.logo, .pill a, .site-foot a { pointer-events: auto; }

.logo {
  color: #fff;
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.logo span { color: var(--ice); }

.pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border-radius: 0;
}

.pill a {
  color: #000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 0;
}

.pill a:hover,
.pill a:focus-visible { background: #111; color: #fff; }

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 108px var(--pad) 28px;
  overflow: hidden;
  background: transparent;
}

.mark {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
  pointer-events: none;
}

.mark::before {
  content: "";
  position: absolute;
  width: min(760px, 80%);
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(146, 203, 216, 0.16), transparent 72%);
}

.mark-move {
  position: relative;
  transform: translate3d(var(--mark-x, 0px), var(--mark-y, 0px), 0) scale(var(--mark-scale, 1));
}

.mark-spin {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--spin, 0deg));
}

.mark-tilt {
  display: flex;
  align-items: center;
  gap: 0.03em;
  transform-style: preserve-3d;
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: clamp(112px, 24vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  transform: rotateX(8deg) rotateY(-12deg);
}

.rest-ring {
  position: fixed;
  width: 54px;
  height: 54px;
  left: 0;
  top: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.rest-track,
.rest-fill {
  fill: none;
  stroke-width: 3;
}

.rest-track {
  stroke: rgba(255, 255, 255, 0.28);
  fill: rgba(0, 0, 0, 0.62);
}

.rest-fill {
  stroke: var(--ice);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
}

.glyph {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
}

.slab {
  grid-area: 1 / 1;
  display: block;
  user-select: none;
}

.slab.front {
  background: linear-gradient(168deg, #d8f4f8 0%, #92cbd8 42%, #2f6d7c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  pointer-events: none;
}

.hero-digital {
  font-family: var(--heading);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-tag {
  color: var(--ice);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.world {
  position: absolute;
  inset: 0;
  z-index: 0;
  --parx: 0px;
  --pary: 0px;
  transform: translate(var(--parx), var(--pary)) scale(1.06);
}

.world-soft {
  z-index: 1;
  opacity: 0.55;
  transform: translate(var(--parx), var(--pary));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.world-soft .world-layer {
  filter: blur(48px) brightness(0.9) saturate(0.8);
  transform: scale(1.18);
}

.frost {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.my-neon {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #b7e3ee;
  filter: drop-shadow(0 0 10px rgba(146, 203, 216, 0.9));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.world-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.15s ease;
}

.world-layer.is-on { opacity: 1; }

.world-layer img,
.world-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-layer img { animation: ken 9s ease-in-out both; }

@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate(-1.6%, 1%); }
}

.plate {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.digital-svg {
  fill: #fff;
}

.tagline-svg {
  fill: var(--ice);
  text-transform: uppercase;
}

.hero-dock {
  position: relative;
  z-index: 6;
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.hero-offer {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 8px 28px #000;
}

.plaque {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.plaque input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.plaque input::placeholder { color: rgba(255, 255, 255, 0.42); }

.plaque button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-weight: 500;
  cursor: pointer;
}

.plaque button:hover,
.plaque button:focus-visible { background: var(--ice); }

.plaque button:disabled { opacity: 0.55; cursor: wait; }

.plaque-note {
  position: absolute;
  left: 16px;
  top: calc(100% + 8px);
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.block {
  padding: 96px var(--pad);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
}

.kicker {
  margin: 0 0 16px;
  color: var(--ice);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
}

.lead {
  max-width: 42rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.case-slider {
  position: relative;
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  height: min(640px, 70vh);
  margin: 10px calc(var(--pad) * -1) 0;
  perspective: 2200px;
  perspective-origin: 50% 62%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.case-slider.is-drag { cursor: grabbing; }
.case-slider img { pointer-events: none; }

.case-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  --wheel-tilt: -18deg;
  transform: rotateX(var(--wheel-tilt));
}

.case-wheel {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.case-wheel > .case {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(280px, 28vw);
  min-width: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  box-shadow: none;
  transform-style: preserve-3d;
}

.case-wheel > .case > .case-back {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), transparent 42%),
    #1a1c1d;
  border: 1px solid rgba(146, 203, 216, 0.28);
  box-shadow: inset 0 0 0 12px rgba(0, 0, 0, 0.38);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  pointer-events: none;
}

.case-wheel > .case > img,
.case-wheel > .case > .case-body {
  position: relative;
  transform: translateZ(1px);
  backface-visibility: hidden;
}

.case-wheel > .case > img {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.case-wheel > .case > .case-body {
  background: #050505;
  border: 1px solid var(--line);
  border-top: 0;
}

#portfolio.block {
  box-sizing: border-box;
  padding-top: 92px;
  padding-bottom: 36px;
  scroll-margin-top: 0;
}

#portfolio h2 { font-size: clamp(28px, 3vw, 44px); }
#portfolio .lead { margin-top: 8px; font-size: 15px; }
#portfolio .portfolio-more { margin-top: 10px; }

#portfolio .case-body,
.portfolio .case-body {
  height: auto;
  padding: 14px 16px 16px;
  overflow: visible;
}

#portfolio .case h3 { font-size: 18px; }

#portfolio .case-body p {
  font-size: 13px;
}

.portfolio-more {
  display: inline-block;
  margin-top: 22px;
  color: var(--ice);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-more:hover,
.portfolio-more:focus-visible { color: #fff; }

.case-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #050505;
}

a.case:hover,
a.case:focus-visible {
  border-color: var(--ice);
}

.case img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #111;
  flex: none;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
  height: auto;
  padding: 14px 16px 16px;
  overflow: visible;
}

.case-kind {
  margin: 0;
  color: var(--ice);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case h3 {
  margin: 0;
  height: auto;
  font-size: 22px;
  line-height: 1.12;
}

.case-feature h3 { font-size: 28px; }

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
}

.case-go {
  margin-top: auto;
  padding-top: 10px;
  color: #fff;
  font-size: 13px;
}

.service-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
}

.service-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.service-list li span {
  color: var(--ice);
  font-size: 14px;
  letter-spacing: 0.08em;
  padding-top: 8px;
}

h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.service-list p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.tariff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.tariff {
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 0;
}

.tariff-name {
  margin: 0;
  color: var(--ice);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tariff-price {
  margin: 16px 0 0;
  font-family: var(--heading);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tariff-price span {
  color: var(--muted);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.tariff ul, .dev-rates ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tariff li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.dev-rates {
  margin-top: 56px;
}

.dev-rates li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.dev-rates span { color: var(--muted); }

.dev-rates b {
  flex: none;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plaque input:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.contact-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 760px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  font-family: var(--heading);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.contact-list a:hover,
.contact-list a:focus-visible { color: var(--ice); }

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
}

.site-foot p { margin: 0; }

.site-foot nav {
  display: flex;
  gap: 18px;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-foot a:hover { color: #fff; }

.scan-overlay,
.mac-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.scan-overlay[hidden],
.mac-sheet[hidden] { display: none; }

.scan-glass {
  position: relative;
  width: min(92vw, 420px);
  overflow: hidden;
  padding: 28px 26px 24px;
  text-align: center;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.72);
}

.scan-beam {
  position: absolute;
  left: -20%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(146, 203, 216, 0.28), transparent);
  animation: scan-sweep 1.4s ease-in-out infinite;
}

@keyframes scan-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(320%); }
}

.scan-kicker, .rpt-kicker {
  margin: 0;
  color: var(--ice);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scan-glass h2, .mac-body h2 {
  margin: 10px 0 8px;
  max-width: none;
  font-size: 26px;
}

.scan-status, .rpt-meta, .rpt-foot, .rpt-item p, .rpt-score p {
  color: var(--muted);
}

.scan-track, .rpt-bar {
  height: 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.scan-track { margin-top: 18px; }

.scan-track i, .rpt-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ice);
}

.mac-sheet { z-index: 41; }

.mac-win {
  width: min(92vw, 720px);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.92);
}

.mac-bar {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.mac-dots { display: flex; gap: 8px; }

.mac-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  padding: 0;
}

.mac-dot.is-close { background: #ff5f57; cursor: pointer; }
.mac-dot.is-min { background: #febc2e; }
.mac-dot.is-zoom { background: #28c840; }

.mac-title {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.mac-dl {
  color: var(--ice);
  font-size: 13px;
  text-decoration: none;
}

.mac-body {
  overflow: auto;
  padding: 22px 26px 28px;
}

.rpt-url {
  margin: 0;
  color: var(--ice);
  word-break: break-all;
}

.rpt-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

.rpt-grade {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: rgba(146, 203, 216, 0.16);
  color: var(--ice);
  font-family: var(--heading);
  font-size: 28px;
}

.rpt-metrics {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.rpt-metrics > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.rpt-metrics dt { color: var(--muted); }
.rpt-metrics dd { display: flex; gap: 10px; align-items: center; margin: 0; }
.rpt-bar { flex: 1; height: 6px; }

.rpt-h {
  margin: 22px 0 10px;
  font-size: 18px;
}

.rpt-item {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 0;
  border-left: 3px solid var(--ice);
  background: rgba(255, 255, 255, 0.04);
}

.rpt-item.is-crit { border-left-color: #ff5f57; }
.rpt-item.is-warn { border-left-color: #febc2e; }

.rpt-item header {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.rpt-item header span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rpt-item h3 { margin: 0; font-size: 16px; }
.rpt-item p, .rpt-score p, .rpt-foot { margin: 6px 0 0; }
.rpt-recs { margin: 0; padding-left: 18px; color: var(--muted); }
.rpt-foot { margin-top: 22px; font-size: 13px; }

@media (max-width: 1100px) {
  .case-slider { height: min(520px, 62vh); }
  .case-stage { --wheel-tilt: -16deg; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .case-grid, .tariff-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { top: 12px; }
  .pill a { padding: 8px 10px; letter-spacing: 0.04em; }
}

@media (max-width: 640px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding-bottom: 12px; }
  .case-grid, .tariff-grid { grid-template-columns: 1fr; }
  .dev-rates li, .contact-list li { flex-direction: column; gap: 6px; }
  #portfolio.block { padding-top: 150px; }
  #portfolio .case-kind { letter-spacing: 0.08em; }
  .hero { padding-top: 132px; }
  .mark-tilt { font-size: clamp(96px, 28vw, 160px); }
  .hero-offer { font-size: 13px; }
  .plaque { flex-wrap: wrap; }
  .plaque button { width: 100%; }
  .site-foot { flex-direction: column; }
  .hero { min-height: 100svh; }
}

html.is-deck,
html.is-deck body {
  height: 100%;
  overflow: hidden;
}

html.is-deck .scene,
html.is-deck .scene-pin {
  position: static;
  height: auto;
  overflow: visible;
}

html.is-deck .deck-panel {
  position: fixed;
  inset: 0;
  z-index: 3;
  height: 100svh;
  max-height: 100svh;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-top: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.97);
}

html.is-deck .deck-panel.hero {
  background: transparent;
}

html.is-deck .manifesto.deck-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10vh;
  background: #000;
}

html.is-deck .portfolio.deck-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 108px;
  padding-bottom: 16px;
  background: transparent;
}

html.is-deck .portfolio .block-head { flex: none; }

html.is-deck .portfolio .case-slider {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

html.is-deck .portfolio .case img {
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: none;
}

html.is-deck #services.deck-panel,
html.is-deck #tariffs.deck-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 28px;
}

html.is-deck #services h2,
html.is-deck #tariffs h2 { font-size: clamp(32px, 4vw, 52px); }
html.is-deck #services .lead,
html.is-deck #tariffs .lead { margin-top: 10px; font-size: 16px; }
html.is-deck #services .service-list { margin-top: 8px; }
html.is-deck #services .service-list li { padding: 8px 0; }
html.is-deck #services h3 { font-size: 22px; margin-bottom: 4px; }

html.is-deck #tariffs .tariff-grid { margin-top: 14px; }
html.is-deck #tariffs .tariff { padding: 14px 16px 10px; }
html.is-deck #tariffs .tariff-price { font-size: 36px; }
html.is-deck #tariffs .tariff ul { margin-top: 8px; }
html.is-deck #tariffs .tariff li { padding: 6px 0; }
html.is-deck #tariffs .dev-rates { margin-top: 12px; }
html.is-deck #tariffs .dev-rates h3 { font-size: 22px; }
html.is-deck #tariffs .dev-rates li { padding: 7px 0; }

html.is-deck #contact.deck-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 96px;
}

html.is-deck .site-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  padding-right: 150px;
}

html.is-deck.is-end .site-foot {
  opacity: 1;
  pointer-events: auto;
}

html.is-deck main { z-index: 3; }

html.is-deck .mark {
  position: fixed;
  inset: 0;
  z-index: 4;
  flex: none;
  opacity: var(--mark-dim, 1);
}

html.is-deck.is-back .mark { z-index: 1; }
html.is-deck.is-reel .mark { z-index: 2; }
html.is-deck.is-back .mark::before { opacity: 0; }

html.is-deck .rest-ring {
  right: 28px;
  bottom: 28px;
  left: auto;
  top: auto;
  margin: 0;
  opacity: 1;
  z-index: 8;
}

@media (max-width: 760px) {
  .site-nav {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
  }
  .logo { font-size: 15px; }
  .pill { flex-wrap: nowrap; padding: 3px; }
  .pill a { padding: 7px 6px; font-size: 9px; letter-spacing: 0.01em; }

  .case-stage { --wheel-tilt: -22deg; }
  .case-slider { height: min(620px, 70svh); }
  html.is-deck #portfolio .case-body { padding: 7px 9px 8px; gap: 3px; }
  html.is-deck #portfolio .case h3 { font-size: 14px; }
  html.is-deck #portfolio .case-body p:not(.case-kind) { display: none; }
  html.is-deck #portfolio .case-kind { font-size: 10px; }
  html.is-deck #portfolio .lead { margin-top: 4px; font-size: 13px; }
  html.is-deck #portfolio h2 { font-size: 30px; }
  html.is-deck #portfolio .kicker,
  html.is-deck #portfolio h2,
  html.is-deck #portfolio .lead,
  html.is-deck #portfolio .portfolio-more { text-shadow: 0 2px 16px #000; }
  html.is-deck .hero-dock { width: calc(100% - 62px); }
  html.is-deck .rest-ring { width: 44px; height: 44px; right: 10px; bottom: 20px; }

  html.is-deck .hero.deck-panel,
  html.is-deck .manifesto.deck-panel,
  html.is-deck #services.deck-panel,
  html.is-deck #tariffs.deck-panel,
  html.is-deck #contact.deck-panel { padding-top: 148px; }

  html.is-deck #portfolio.deck-panel {
    padding-top: 128px;
    padding-left: 0;
    padding-right: 0;
  }

  html.is-deck #portfolio .block-head {
    padding-left: 16px;
    padding-right: 16px;
  }

  html.is-deck .portfolio .case-slider {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  html.is-deck #services .lead,
  html.is-deck #tariffs .lead { display: none; }
  html.is-deck #tariffs h2,
  html.is-deck #services h2 { font-size: 30px; }
  html.is-deck #tariffs .kicker,
  html.is-deck #services .kicker { margin-bottom: 6px; }
  html.is-deck #tariffs .tariff { padding: 8px 12px 6px; }
  html.is-deck #tariffs .tariff-price { font-size: 26px; margin-top: 4px; }
  html.is-deck #tariffs .tariff ul,
  html.is-deck #tariffs .dev-rates { margin-top: 6px; }
  html.is-deck #tariffs .tariff li,
  html.is-deck #tariffs .dev-rates li { padding: 3px 0; font-size: 13px; line-height: 1.25; }
  html.is-deck #tariffs.deck-panel,
  html.is-deck #services.deck-panel { padding-bottom: 84px; }
  html.is-deck #services .service-list { margin-top: 4px; }
  html.is-deck #services .service-list li { padding: 5px 0; }
  html.is-deck #services h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world-layer img,
  .scan-beam { animation: none; }
  .world, .world-soft { transform: none; }
}
