:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #0a0d0b;
  --surface-strong: #101512;
  --text: #eef0ec;
  --muted: #a9ada9;
  --line: rgba(238, 240, 236, 0.16);
  --line-strong: rgba(138, 217, 165, 0.34);
  --accent: #8ad9a5;
  --accent-bright: #b8ffca;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Space Grotesk", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea { font: inherit; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 5, 6, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.section__inner,
.hero__inner,
.site-footer__inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(138, 217, 165, 0.72);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--accent-bright); }

.site-nav .site-nav__cta {
  margin-left: 8px;
  color: var(--bg);
  background: var(--text);
  border-radius: 3px;
}

.service-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--bg);
  background-image: url("/visuals/astudio-crt-hero.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -180px 180px rgba(5, 5, 6, 0.82);
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 6, 0.5);
}

.hero__inner { padding: 110px 0 76px; }

.eyebrow,
.section-label,
.terminal-label {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

.service-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: 68px;
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #d8dcd8;
  font-size: 21px;
  line-height: 1.55;
}

.hero__actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: rgba(5, 5, 6, 0.78);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.button--primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg);
}

.section { border-bottom: 1px solid var(--line); }

.section--muted { background: #080a09; }

.section__inner { padding: 104px 0; }

.intro-grid,
.content-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 80px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: 0;
  text-wrap: balance;
}

.section h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.prose {
  display: grid;
  gap: 20px;
}

.prose p,
.process-item p,
.deliverable p,
.case-study p,
.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.signal-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.signal-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.signal-list span:first-child {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
}

.deliverable,
.case-study {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.deliverable {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.deliverable__index {
  margin-bottom: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.process-list {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-item__number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 52px;
}

.case-study {
  display: grid;
  gap: 18px;
  align-content: start;
}

.case-study a {
  width: fit-content;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.faq {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 22px 42px 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  max-width: 820px;
  padding: 0 0 24px;
}

.contact-grid { align-items: stretch; }

.contact-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-copy .contact-links {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 44px;
  font-family: var(--mono);
  font-size: 13px;
}

.contact-links a {
  width: fit-content;
  color: var(--accent-bright);
  text-decoration: none;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.field textarea {
  min-height: 122px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus { border-color: var(--accent); }

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.form-status[data-state="success"] { color: var(--accent-bright); }
.form-status[data-state="error"] { color: #ff9ca8; }

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.related-links a {
  display: grid;
  gap: 12px;
  padding: 22px 22px 22px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.related-links a + a { padding-left: 22px; border-left: 1px solid var(--line); }

.related-links small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.site-footer { padding: 34px 0; }

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent-bright); }

@media (max-width: 900px) {
  .site-header__inner,
  .section__inner,
  .hero__inner,
  .site-footer__inner { width: min(100% - 40px, 760px); }

  .site-nav a:not(.site-nav__cta) { display: none; }
  .service-hero h1 { font-size: 52px; }
  .intro-grid,
  .content-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .deliverables { grid-template-columns: 1fr 1fr; }
  .process-item { grid-template-columns: 54px minmax(0, 1fr); }
  .process-item p { grid-column: 2; }
  .related-links { grid-template-columns: 1fr; }
  .related-links a + a { padding-left: 0; border-left: 0; }
}

@media (max-width: 620px) {
  .site-header__inner { min-height: 62px; }
  .site-nav__cta { padding: 9px 10px !important; }
  .service-hero { min-height: 82svh; background-position: 62% center; }
  .hero__inner { padding: 92px 0 56px; }
  .service-hero h1 { font-size: 40px; line-height: 1.02; }
  .hero__lead { font-size: 18px; }
  .section__inner { padding: 76px 0; }
  .section h2 { font-size: 34px; }
  .deliverables,
  .case-grid { grid-template-columns: 1fr; }
  .deliverable { min-height: 210px; }
  .process-item { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .lead-form { padding: 22px 18px; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Unified ASTUDIO CRT direction for service pages. */
body {
  min-height: 100%;
  overflow-x: hidden;
  isolation: isolate;
  background: #030404;
  --page-progress: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
}

main,
.site-footer { z-index: 10; }

.studio-visual {
  position: fixed;
  inset: 0;
  z-index: auto;
  overflow: hidden;
  pointer-events: none;
  background: #030404;
}

.studio-visual__image,
.studio-visual__canvas,
.studio-visual__grid,
.studio-visual__scanlines,
.studio-visual__noise,
.studio-visual__vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-visual__image {
  inset: -3%;
  width: 106%;
  height: 106%;
  background-image: url("/visuals/astudio-crt-hero.webp");
  background-position: 52% 36%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(0.78) contrast(1.18) brightness(0.4);
  opacity: 0.34;
  transform: scale(1.025);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.92) 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.92) 58%, transparent 100%);
}

body[data-service="software"] .studio-visual__image {
  background-position: 60% 38%;
  filter: grayscale(0.72) hue-rotate(8deg) contrast(1.2) brightness(0.38);
}

body[data-service="seo"] .studio-visual__image {
  background-position: 44% 34%;
  filter: grayscale(0.82) sepia(0.08) contrast(1.18) brightness(0.4);
}

.studio-visual__canvas {
  z-index: 2;
  opacity: 0.92;
}

.studio-visual__grid {
  z-index: 3;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(138, 217, 165, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 183, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(720px) rotateX(68deg) translateY(58%);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent 18%, #000 88%);
  mask-image: linear-gradient(to bottom, transparent 18%, #000 88%);
}

.studio-visual__scanlines {
  z-index: 70;
  opacity: 0.46;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0,
    rgba(0, 0, 0, 0.28) 1px,
    transparent 1px,
    transparent 4px
  );
}

.studio-visual__noise {
  z-index: 71;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22><filter id=%22n%22><feTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%222%22/></filter><rect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/></svg>");
}

.studio-visual__vignette {
  z-index: 6;
  background:
    linear-gradient(90deg, rgba(255, 54, 96, 0.035), transparent 7%, transparent 93%, rgba(75, 135, 255, 0.04)),
    radial-gradient(110% 92% at 50% 40%, transparent 18%, rgba(3, 4, 4, 0.46) 58%, rgba(3, 4, 4, 0.96) 100%);
}

.studio-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 92;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.studio-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--text), #7c9fd8);
  box-shadow: 0 0 12px rgba(138, 217, 165, 0.55);
  will-change: transform;
}

.studio-frame {
  position: fixed;
  inset: 10px;
  z-index: 90;
  border: 1px solid rgba(238, 240, 236, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.78),
    inset 0 0 120px rgba(0, 0, 0, 0.28);
}

.studio-frame__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(138, 217, 165, 0.46);
}

.studio-frame__corner--tl { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.studio-frame__corner--tr { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; }
.studio-frame__corner--bl { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; }
.studio-frame__corner--br { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }

.studio-hud {
  position: fixed;
  z-index: 91;
  bottom: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(138, 217, 165, 0.38);
  transition: opacity 180ms ease, transform 180ms ease;
}

.studio-visual.is-footer-visible .studio-hud {
  opacity: 0;
  transform: translateY(12px);
}

.studio-hud--record {
  left: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.studio-hud--record i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5b6e;
  box-shadow: 0 0 9px rgba(255, 91, 110, 0.9);
  animation: studio-record-pulse 1.7s ease-in-out infinite;
}

.studio-hud--clock { right: 26px; }

@keyframes studio-record-pulse {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 1; }
}

.site-header {
  z-index: 80;
  background: rgba(3, 4, 4, 0.72);
  border-bottom-color: rgba(238, 240, 236, 0.1);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 4, 4, 0.94);
  border-color: rgba(138, 217, 165, 0.2);
}

.site-header__inner,
.section__inner,
.hero__inner,
.site-footer__inner {
  width: min(1240px, calc(100% - 80px));
}

.site-header__inner { min-height: 76px; }

.brand {
  gap: 11px;
  color: var(--text);
  letter-spacing: 0;
}

.brand::before {
  width: 8px;
  height: 8px;
  background: var(--text);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.82),
    -1px 0 rgba(255, 65, 103, 0.6),
    1px 0 rgba(93, 149, 255, 0.6);
}

.site-nav a {
  position: relative;
  padding: 11px 13px;
  letter-spacing: 0.04em;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(138, 217, 165, 0.6);
}

.site-nav .site-nav__cta {
  border: 1px solid var(--text);
  border-radius: 2px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-nav .site-nav__cta:hover,
.site-nav .site-nav__cta:focus-visible {
  color: var(--bg);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 24px rgba(138, 217, 165, 0.24);
}

.service-hero {
  min-height: min(82svh, 900px);
  align-items: center;
  background: transparent;
  border-bottom-color: rgba(238, 240, 236, 0.12);
  box-shadow: none;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 4, 4, 0.91) 0, rgba(3, 4, 4, 0.72) 48%, rgba(3, 4, 4, 0.16) 79%, rgba(3, 4, 4, 0.42) 100%),
    linear-gradient(to bottom, rgba(3, 4, 4, 0.08), rgba(3, 4, 4, 0.22) 70%, rgba(3, 4, 4, 0.88));
}

.service-hero::after {
  z-index: -1;
  opacity: 0.34;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(238, 240, 236, 0.045) 119px 120px),
    repeating-linear-gradient(to bottom, transparent 0 119px, rgba(238, 240, 236, 0.035) 119px 120px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 82%);
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.hero__inner {
  position: relative;
  padding: 108px 0 92px;
}

.hero__inner::before {
  content: "ASTUDIO / 24";
  position: absolute;
  top: 44px;
  right: 0;
  color: rgba(238, 240, 236, 0.28);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.hero__inner::after {
  content: "SIGNAL ONLINE\AOBJECT RENDERED\AUTC+03 / RU";
  position: absolute;
  right: 0;
  bottom: 60px;
  padding: 13px 16px;
  border-top: 1px solid rgba(138, 217, 165, 0.22);
  border-bottom: 1px solid rgba(138, 217, 165, 0.22);
  color: rgba(138, 217, 165, 0.65);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  white-space: pre;
}

.eyebrow,
.section-label,
.terminal-label {
  letter-spacing: 0.08em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 8px 0;
  border-top: 1px solid rgba(138, 217, 165, 0.22);
  border-bottom: 1px solid rgba(138, 217, 165, 0.22);
  text-shadow: 0 0 10px rgba(138, 217, 165, 0.3);
}

.service-hero h1 {
  width: min(850px, 69vw);
  max-width: none;
  font-size: clamp(56px, 6.1vw, 96px);
  line-height: 0.94;
  font-weight: 650;
  letter-spacing: 0;
  text-shadow:
    0 0 34px rgba(200, 255, 220, 0.09),
    1px 0 0 rgba(255, 60, 102, 0.26),
    -1px 0 0 rgba(73, 135, 255, 0.28),
    0 12px 42px rgba(0, 0, 0, 0.52);
}

body[data-service="software"] .service-hero h1 {
  width: min(920px, 73vw);
  font-size: clamp(52px, 5.5vw, 86px);
}

.hero__lead {
  max-width: 720px;
  margin-top: 30px;
  color: rgba(226, 230, 225, 0.84);
  font-size: 19px;
  line-height: 1.65;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.68);
}

.button {
  border-radius: 2px;
  background: rgba(3, 4, 4, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.button--primary {
  background: var(--text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section {
  position: relative;
  overflow: hidden;
  background: rgba(3, 4, 4, 0.76);
  border-bottom-color: rgba(238, 240, 236, 0.11);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section--muted { background: rgba(7, 10, 8, 0.86); }

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(138, 217, 165, 0.03) 50%, transparent),
    repeating-linear-gradient(90deg, transparent 0 159px, rgba(238, 240, 236, 0.026) 159px 160px);
}

.section:nth-of-type(3n)::after {
  content: "ASTUDIO / DIGITAL SYSTEM";
  position: absolute;
  top: 34px;
  right: 40px;
  color: rgba(238, 240, 236, 0.09);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.section__inner { padding: 118px 0; }

.intro-grid,
.content-grid,
.contact-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(54px, 8vw, 116px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(138, 217, 165, 0.78);
}

.section-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(138, 217, 165, 0.68);
}

.section h2 {
  max-width: 900px;
  font-size: clamp(40px, 4.3vw, 66px);
  line-height: 1;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.34);
}

.section h3 { font-size: 22px; }

.prose p,
.process-item p,
.deliverable p,
.case-study p,
.faq p {
  color: rgba(194, 200, 194, 0.82);
  line-height: 1.78;
}

.signal-list {
  border-color: rgba(138, 217, 165, 0.18);
}

.signal-list li {
  padding: 18px 0;
  border-color: rgba(238, 240, 236, 0.1);
}

.signal-list li:hover {
  padding-left: 10px;
  color: var(--accent-bright);
  background: linear-gradient(90deg, rgba(138, 217, 165, 0.055), transparent);
}

.signal-list li,
.signal-list li:hover { transition: padding 180ms ease, color 180ms ease, background 180ms ease; }

.deliverables {
  gap: 16px;
  margin-top: 58px;
}

.deliverable,
.case-study {
  position: relative;
  overflow: hidden;
  border-color: rgba(138, 217, 165, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(12, 20, 15, 0.91), rgba(4, 7, 5, 0.96));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(138, 217, 165, 0.035);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.deliverable:hover,
.case-study:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 217, 165, 0.42);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(138, 217, 165, 0.07),
    inset 0 -48px 100px rgba(65, 156, 94, 0.055);
}

.deliverable {
  min-height: 300px;
  padding: 64px 26px 28px;
}

.deliverable::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 36px;
  border-bottom: 1px solid rgba(138, 217, 165, 0.16);
  background: linear-gradient(90deg, rgba(138, 217, 165, 0.105), rgba(138, 217, 165, 0.015));
}

.deliverable::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b6e;
  box-shadow:
    15px 0 rgba(138, 217, 165, 0.52),
    30px 0 rgba(145, 183, 255, 0.42);
}

.deliverable__index {
  margin-bottom: auto;
  color: rgba(138, 217, 165, 0.68);
}

.deliverable h3 {
  color: #dfeee2;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.35;
  text-transform: uppercase;
}

.process-list { border-color: rgba(138, 217, 165, 0.2); }

.process-item {
  position: relative;
  grid-template-columns: 86px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  padding: 30px 18px 30px 0;
  border-color: rgba(238, 240, 236, 0.1);
  transition: padding 200ms ease, background 200ms ease, border-color 200ms ease;
}

.process-item::after {
  content: "READY";
  position: absolute;
  top: 11px;
  right: 0;
  color: rgba(138, 217, 165, 0.24);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.process-item:hover {
  padding-right: 18px;
  padding-left: 18px;
  border-color: rgba(138, 217, 165, 0.28);
  background: linear-gradient(90deg, rgba(138, 217, 165, 0.055), transparent 72%);
}

.process-item__number {
  width: 42px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 217, 165, 0.24);
  color: var(--accent);
  background: rgba(138, 217, 165, 0.045);
}

.case-grid {
  gap: 18px;
  margin-top: 58px;
}

.case-study {
  min-height: 430px;
  padding: 0 28px 30px;
}

.case-study::before {
  content: "";
  height: 210px;
  margin: 0 -28px 4px;
  border-bottom: 1px solid rgba(138, 217, 165, 0.18);
  background-color: #060807;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(0.72) contrast(1.08) brightness(0.72);
  transition: filter 220ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study::after {
  content: "PROJECT / VIEW";
  position: absolute;
  top: 14px;
  left: 18px;
  padding: 6px 9px;
  color: rgba(220, 255, 228, 0.82);
  background: rgba(3, 4, 4, 0.75);
  border: 1px solid rgba(138, 217, 165, 0.22);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.case-study:hover::before {
  filter: grayscale(0.25) contrast(1.05) brightness(0.88);
  transform: scale(1.018);
}

body[data-service="sites"] .case-study:nth-child(1)::before { background-image: url("/portfolio/advokat-dmitrievcev.png"); }
body[data-service="sites"] .case-study:nth-child(2)::before { background-image: url("/portfolio/hydrogenium.png"); }
body[data-service="software"] .case-study:nth-child(1)::before { background-image: url("/portfolio/assistent.png"); }
body[data-service="software"] .case-study:nth-child(2)::before { background-image: url("/portfolio/hydrogenium.png"); }
body[data-service="software"] .case-study:nth-child(3)::before { background-image: url("/portfolio/most.png"); }
body[data-service="software"] .case-study:nth-child(4)::before { background-image: url("/portfolio/1.png"); }
body[data-service="seo"] .case-study:nth-child(1)::before { background-image: url("/portfolio/advokat-dmitrievcev.png"); }
body[data-service="seo"] .case-study:nth-child(2)::before { background-image: url("/portfolio/assistent.png"); }

.case-study .terminal-label {
  margin-top: 18px;
  margin-bottom: 0;
  color: rgba(138, 217, 165, 0.62);
}

.case-study a {
  margin-top: auto;
  padding-bottom: 3px;
  color: var(--accent-bright);
  border-color: rgba(138, 217, 165, 0.4);
}

.faq { border-color: rgba(138, 217, 165, 0.2); }

.faq details {
  position: relative;
  border-color: rgba(238, 240, 236, 0.1);
  background: rgba(3, 4, 4, 0.18);
  transition: background 180ms ease, border-color 180ms ease;
}

.faq details[open] {
  border-color: rgba(138, 217, 165, 0.3);
  background: linear-gradient(90deg, rgba(138, 217, 165, 0.05), transparent 74%);
}

.faq summary {
  position: relative;
  padding: 24px 60px 24px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(138, 217, 165, 0.22);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
}

.faq details[open] summary::after { content: "-"; }

.related-links {
  gap: 0;
  border-color: rgba(138, 217, 165, 0.2);
}

.related-links a {
  position: relative;
  min-height: 116px;
  padding: 24px;
  border-color: rgba(238, 240, 236, 0.1);
  background: rgba(3, 4, 4, 0.18);
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.related-links a + a { padding-left: 24px; }

.related-links a::after {
  content: "->";
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: rgba(138, 217, 165, 0.42);
  font-family: var(--mono);
}

.related-links a:hover,
.related-links a:focus-visible {
  color: var(--accent-bright);
  background: rgba(138, 217, 165, 0.055);
}

.contact-copy {
  min-height: 440px;
  padding: 34px 0;
}

.lead-form {
  position: relative;
  gap: 17px;
  padding: 66px 30px 32px;
  border-color: rgba(138, 217, 165, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(10, 18, 13, 0.96), rgba(4, 7, 5, 0.98));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(138, 217, 165, 0.035);
}

.lead-form::before {
  content: "ASTUDIO / NEW PROJECT REQUEST";
  position: absolute;
  inset: 0 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 18px 0 72px;
  border-bottom: 1px solid rgba(138, 217, 165, 0.17);
  color: rgba(138, 217, 165, 0.58);
  background:
    radial-gradient(circle at 18px 19px, #ff5b6e 0 3px, transparent 4px),
    radial-gradient(circle at 36px 19px, rgba(138, 217, 165, 0.58) 0 3px, transparent 4px),
    radial-gradient(circle at 54px 19px, rgba(145, 183, 255, 0.46) 0 3px, transparent 4px),
    linear-gradient(90deg, rgba(138, 217, 165, 0.095), rgba(138, 217, 165, 0.015));
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.field label {
  color: rgba(138, 217, 165, 0.68);
  letter-spacing: 0.08em;
}

.field input,
.field textarea {
  border-color: rgba(138, 217, 165, 0.18);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(138, 217, 165, 0.64);
  background: rgba(138, 217, 165, 0.035);
  box-shadow: 0 0 0 3px rgba(138, 217, 165, 0.06);
}

.site-footer {
  z-index: 3;
  padding: 42px 0 66px;
  background: rgba(3, 4, 4, 0.94);
  border-top: 1px solid rgba(238, 240, 236, 0.1);
}

.design-motion [data-design-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.design-motion [data-design-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.design-motion .deliverables .deliverable:nth-child(2),
.design-motion .case-grid .case-study:nth-child(2) { transition-delay: 60ms; }
.design-motion .deliverables .deliverable:nth-child(3),
.design-motion .case-grid .case-study:nth-child(3) { transition-delay: 120ms; }
.design-motion .deliverables .deliverable:nth-child(4),
.design-motion .case-grid .case-study:nth-child(4) { transition-delay: 180ms; }
.design-motion .deliverables .deliverable:nth-child(5) { transition-delay: 240ms; }
.design-motion .deliverables .deliverable:nth-child(6) { transition-delay: 300ms; }

@media (max-width: 1000px) {
  .site-header__inner,
  .section__inner,
  .hero__inner,
  .site-footer__inner {
    width: min(100% - 48px, 860px);
  }

  .site-header__inner { min-height: 68px; }
  .service-hero { min-height: 78svh; }
  .service-hero h1,
  body[data-service="software"] .service-hero h1 {
    width: min(760px, 88vw);
    font-size: clamp(48px, 8.2vw, 74px);
  }
  .hero__inner::after { display: none; }
  .intro-grid,
  .content-grid,
  .contact-grid { gap: 50px; }
  .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-item { grid-template-columns: 62px minmax(0, 0.7fr) minmax(0, 1.3fr); }
}

@media (max-width: 760px) {
  .studio-frame { inset: 6px; }
  .studio-frame__corner { width: 18px; height: 18px; }
  .studio-hud { bottom: 13px; font-size: 8px; }
  .studio-hud--record { left: 16px; }
  .studio-hud--clock { right: 16px; }
  .studio-visual__image {
    opacity: 0.25;
    background-position: 62% 26%;
  }
  .studio-visual__grid { opacity: 0.18; background-size: 48px 48px; }
  .studio-visual__scanlines { opacity: 0.32; }
  .studio-visual__noise { opacity: 0.035; }

  .site-header__inner,
  .section__inner,
  .hero__inner,
  .site-footer__inner { width: min(100% - 32px, 640px); }

  .site-header { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .site-header__inner { min-height: 62px; }
  .service-hero { min-height: 80svh; }
  .service-hero::before {
    background:
      linear-gradient(to bottom, rgba(3, 4, 4, 0.48), rgba(3, 4, 4, 0.8) 64%, rgba(3, 4, 4, 0.94)),
      linear-gradient(90deg, rgba(3, 4, 4, 0.82), rgba(3, 4, 4, 0.24));
  }
  .hero__inner { padding: 92px 0 64px; }
  .hero__inner::before { top: 32px; right: 0; }
  .service-hero h1,
  body[data-service="software"] .service-hero h1 {
    width: 100%;
    font-size: clamp(40px, 11vw, 58px);
    line-height: 0.98;
  }
  .hero__lead { max-width: 94%; font-size: 17px; line-height: 1.58; }
  .hero__actions { margin-top: 28px; }

  .section__inner { padding: 78px 0; }
  .section:nth-of-type(3n)::after { display: none; }
  .section h2 { font-size: clamp(34px, 9vw, 48px); }
  .intro-grid,
  .content-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .deliverables,
  .case-grid { grid-template-columns: 1fr; }
  .deliverable { min-height: 270px; }
  .process-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }
  .process-item p { grid-column: 2; }
  .process-item:hover { padding-right: 8px; padding-left: 8px; }
  .case-study { min-height: 390px; }
  .case-study::before { height: 180px; }
  .related-links { grid-template-columns: 1fr; }
  .related-links a,
  .related-links a + a { padding: 22px 18px; border-left: 0; }
  .contact-copy { min-height: 270px; padding: 0; }
  .lead-form { padding: 62px 18px 24px; }
  .site-footer { padding-bottom: 58px; }
}

@media (max-width: 420px) {
  .studio-hud--clock { display: none; }
  .studio-hud--record span { max-width: 250px; overflow: hidden; white-space: nowrap; }
  .eyebrow { font-size: 10px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .service-hero h1,
  body[data-service="software"] .service-hero h1 { font-size: 40px; }
  .section h2 { font-size: 34px; }
  .faq summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-hud--record i { animation: none; opacity: 0.78; }
  .deliverable,
  .case-study,
  .button,
  .process-item,
  .signal-list li,
  .case-study::before,
  [data-design-reveal] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
