:root {
  --bg: #f5f6f4;
  --ink: #101415;
  --muted: #5d6868;
  --line: rgba(16, 20, 21, 0.12);
  --panel: #ffffff;
  --graphite: #171d1f;
  --teal: #18a999;
  --amber: #f1a33c;
  --red: #d94d45;
  --green: #6a994e;
  --shadow: 0 24px 80px rgba(16, 20, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.js body {
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js body.page-enter-reverse {
  transform: translateX(-36px);
}

.js body.page-ready {
  opacity: 1;
  transform: none;
}

.js body.page-leave {
  opacity: 0;
  transform: translateX(-36px);
}

.js body.page-leave-reverse {
  opacity: 0;
  transform: translateX(36px);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(20px, 4vw, 64px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  color: var(--ink);
  background: rgba(245, 246, 244, 0.92);
  box-shadow: 0 10px 40px rgba(16, 20, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #0d1515;
  background: linear-gradient(135deg, #fff, #89e5d4 52%, #f5bc62);
  background-size: 220% 220%;
  animation: gradient-flow 8s ease-in-out infinite alternate;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.72) 50%, transparent 78%);
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}

.brand__mark.is-sheening::before {
  animation: logo-sheen 1100ms ease-out;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px clamp(12px, 1.6vw, 24px);
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav a,
.nav-dropdown button {
  opacity: 0.82;
}

.nav a:hover,
.nav a.is-active,
.nav-dropdown button:hover,
.nav-dropdown.is-active button {
  opacity: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 230px;
  height: 18px;
  transform: translateX(-50%);
}

.nav-dropdown button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown button::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 110;
  display: grid;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 246, 244, 0.96);
  box-shadow: 0 24px 70px rgba(16, 20, 21, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  backdrop-filter: blur(18px);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown__menu a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.is-active {
  background: #ffffff;
}

.nav-dropdown__menu a.is-active {
  box-shadow: inset 3px 0 0 var(--teal);
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(16, 20, 21, 0.16);
}

.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -42%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  opacity: 0;
  transform: skewX(-18deg);
  transition:
    opacity 180ms ease,
    left 420ms ease;
}

.button:hover::before {
  left: 112%;
  opacity: 1;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.header-cta {
  font-size: 14px;
}

.button--primary {
  border-color: var(--teal);
  color: #071615;
  background: var(--teal);
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.52);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background: #0d1213;
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 12, 13, 0.95) 0%, rgba(8, 12, 13, 0.82) 32%, rgba(8, 12, 13, 0.28) 72%),
    linear-gradient(0deg, rgba(8, 12, 13, 0.85) 0%, rgba(8, 12, 13, 0.06) 42%);
  background-size: 180% 180%, 180% 180%;
  animation: gradient-flow-layered 16s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 40px));
  padding: 22vh 0 120px clamp(20px, 5vw, 82px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero__lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 24px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section {
  padding: clamp(72px, 10vw, 136px) clamp(20px, 5vw, 82px);
}

.quick-nav {
  position: sticky;
  top: 80px;
  z-index: 40;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(16, 20, 21, 0.1);
  padding: 10px clamp(20px, 5vw, 82px);
  color: var(--ink);
  background: rgba(245, 246, 244, 0.96);
  box-shadow: 0 14px 40px rgba(16, 20, 21, 0.08);
  backdrop-filter: blur(18px);
}

.quick-nav__indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 10px;
  width: 0;
  height: 38px;
  border: 1px solid rgba(24, 169, 153, 0.34);
  border-radius: 8px;
  background: #a6eadc;
  opacity: 0;
  transform: translateX(0);
  transition:
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease;
  pointer-events: none;
}

.quick-nav::before {
  position: relative;
  z-index: 1;
  content: "Разделы";
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-nav a {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 13px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.quick-nav a:hover {
  border-color: rgba(24, 169, 153, 0.26);
  color: #071615;
  background: rgba(24, 169, 153, 0.1);
  transform: translateY(-1px);
}

.quick-nav a.is-active {
  color: #071615;
  background: transparent;
}

.quick-nav a:focus-visible {
  outline: 3px solid rgba(24, 169, 153, 0.24);
  outline-offset: 2px;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 70;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(16, 20, 21, 0.12);
  border-radius: 50%;
  color: #071615;
  background: rgba(166, 234, 220, 0.96);
  box-shadow: 0 18px 44px rgba(16, 20, 21, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  backdrop-filter: blur(14px);
}

.back-to-top::before {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

html.has-back-to-top .back-to-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: #18a999;
  box-shadow: 0 22px 54px rgba(16, 20, 21, 0.22);
  transform: translateY(-2px) scale(1);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(24, 169, 153, 0.28);
  outline-offset: 3px;
}

.cookie-consent {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(640px, calc(100vw - 32px));
  border: 1px solid rgba(16, 20, 21, 0.12);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(16, 20, 21, 0.18);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(18px);
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent.is-hidden {
  opacity: 0;
  transform: translateY(18px);
}

.cookie-consent strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.2;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-consent a {
  color: #168f82;
  font-weight: 900;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.cookie-consent__button--primary {
  border-color: var(--teal);
  color: #071615;
  background: var(--teal);
}

.cookie-consent__button--secondary {
  color: var(--ink);
  background: #f8f9f7;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 20, 21, 0.14);
}

.cookie-consent__button--secondary:hover {
  background: #ffffff;
}

.cookie-consent__button:focus-visible {
  outline: 3px solid rgba(24, 169, 153, 0.24);
  outline-offset: 2px;
}

main section[id] {
  scroll-margin-top: 72px;
}

.page-main {
  padding-top: 78px;
}

.page-hero {
  padding: clamp(58px, 6vw, 88px) clamp(20px, 5vw, 82px) clamp(36px, 5vw, 64px);
  background: #ffffff;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  color: var(--ink);
}

.page-hero > p:not(.eyebrow) {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--ink);
  background: #f8f9f7;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.page-back::before {
  content: "<";
  color: var(--teal);
  font-weight: 900;
}

.page-back:hover {
  transform: translateX(-3px);
  border-color: rgba(24, 169, 153, 0.36);
  background: #ffffff;
}

.not-found-body {
  min-height: 100vh;
  background: #0a1113;
}

.not-found {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 17, 19, 0.98), rgba(10, 17, 19, 0.82)),
    url("assets/hero-studio.webp") center / cover;
  background-size: 220% 220%, cover;
  animation: gradient-flow-photo 18s ease-in-out infinite alternate;
}

.not-found__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(34px, 6vw, 74px);
  color: #ffffff;
  font-weight: 900;
}

.not-found__copy h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
}

.not-found__copy > p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.5vw, 21px);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.not-found .button--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.not-found-game {
  width: 100%;
  max-width: 780px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.not-found-game__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.not-found-game__head h2 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
}

.not-found-game__start {
  flex: 0 0 auto;
}

.not-found-game__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.not-found-game__stats span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 800;
}

.not-found-game__stats strong {
  color: #ffffff;
}

.not-found-game__field {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0a1113;
}

.not-found-game__field canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 7;
}

.not-found-game__message {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(10, 17, 19, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.not-found-game__controls {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.not-found-game__controls button {
  width: 54px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.not-found-game__controls button:active {
  transform: translateY(1px);
  background: rgba(24, 169, 153, 0.3);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 56px;
  background: #ffffff;
}

.about-copy {
  display: grid;
  gap: 24px;
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-points article {
  border-left: 3px solid var(--teal);
  padding-left: 16px;
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points strong {
  margin-bottom: 4px;
  font-size: 17px;
}

.about-points span {
  color: var(--muted);
}

.device-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 52px;
  background: #eef1ee;
}

.device-preview p {
  color: var(--muted);
  font-size: 19px;
}

.device-preview .button {
  margin-top: 20px;
}

.device-preview__panel,
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.device-preview__panel article,
.device-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.device-preview__panel article:first-child {
  grid-column: span 2;
}

.device-preview__panel span,
.device-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 8px;
  color: #071615;
  background: #a6eadc;
  font-weight: 900;
}

.device-preview__panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.device-preview__panel p,
.device-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.intro p:last-child,
.about-copy > p,
.stack p,
.contact-copy p {
  color: var(--muted);
  font-size: 19px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.directions {
  background: var(--bg);
}

.audit-entry {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 32px;
  background: #ffffff;
}

.audit-entry p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.direction-grid article {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.direction-grid article > a {
  display: block;
  min-height: 240px;
  padding: 24px;
}

.direction-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 40px;
  border-radius: 8px;
  color: #071615;
  background: #a6eadc;
  font-weight: 900;
}

.direction-grid article:nth-child(2n) span {
  background: #ffd28b;
}

.direction-grid article:nth-child(3n) span {
  background: #f7aaa5;
}

.direction-grid p {
  color: var(--muted);
}

.case-card,
.format-grid article,
.outcome-list article,
.faq-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(16, 20, 21, 0.02);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.case-card:hover,
.format-grid article:hover,
.outcome-list article:hover,
.faq-grid article:hover,
.direction-grid article:hover,
.device-preview__panel article:hover,
.device-grid article:hover,
.collab-main article:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 169, 153, 0.34);
  box-shadow: 0 22px 60px rgba(16, 20, 21, 0.1);
}

.case-body p,
.timeline p,
.form-note {
  color: var(--muted);
}

.work {
  color: #fff;
  background: var(--graphite);
}

.case-teaser {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 32px;
  background: var(--graphite);
  color: #fff;
}

.case-teaser .eyebrow {
  color: #89e5d4;
}

.case-teaser p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
}

.work--page {
  padding-top: clamp(56px, 7vw, 96px);
}

.work .eyebrow,
.contact .eyebrow {
  color: #89e5d4;
}

.work .section-heading {
  align-items: start;
}

.work .section-heading > p:last-child {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: #f8faf7;
  border-color: rgba(255, 255, 255, 0.12);
}

.case-card .case-visual,
.case-card .case-visual::before,
.case-card .case-visual::after,
.case-card .case-tags span,
.case-card .case-meta div {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.case-card:hover .case-visual {
  transform: translateY(-4px) scale(1.015);
}

.case-card:hover .case-visual::before {
  opacity: 0.9;
}

.case-card:hover .case-visual::after {
  transform: scale(1.04);
  opacity: 0.9;
}

.case-card:hover .case-tags span,
.case-card:hover .case-meta div {
  transform: translateY(-2px);
  border-color: rgba(24, 169, 153, 0.24);
}

.case-card--wide {
  grid-row: span 2;
}

.case-visual {
  position: relative;
  display: flex;
  min-height: 208px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.42), transparent 15%),
    linear-gradient(135deg, #172021, #1aa999 44%, #f2ad4a);
  background-position: center;
  background-size: 220% 220%, 220% 220%;
  animation: gradient-flow-layered 14s ease-in-out infinite alternate;
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 13, 0.62) 0%, rgba(7, 12, 13, 0.16) 43%, rgba(7, 12, 13, 0.76) 100%),
    linear-gradient(90deg, rgba(7, 12, 13, 0.52), transparent 58%);
  background-size: 170% 170%, 170% 170%;
  opacity: 0.82;
  animation: gradient-flow-layered 18s ease-in-out infinite alternate;
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 18% 86%, rgba(24, 169, 153, 0.24), transparent 28%);
  background-size: 180% 180%, 180% 180%;
  opacity: 0.7;
  animation: gradient-flow-layered 20s ease-in-out infinite alternate-reverse;
}

.case-card--wide .case-visual {
  min-height: 332px;
}

.case-visual span,
.case-visual strong {
  position: relative;
  z-index: 1;
}

.case-visual span {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.case-visual strong {
  max-width: 320px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.92;
}

.case-visual--gisp {
  background-color: #172021;
  background-image:
    linear-gradient(135deg, rgba(23, 32, 33, 0.2), rgba(26, 169, 153, 0.08)),
    url("assets/case-ai-documents.webp");
}

.case-visual--karaoke {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.72), transparent 14%),
    linear-gradient(135deg, #191d20, #d94d45, #f2c36e);
  background-size: 220% 220%, 220% 220%;
}

.case-visual--fixhome {
  background-color: #273027;
  background-image:
    linear-gradient(135deg, rgba(39, 48, 39, 0.16), rgba(119, 168, 90, 0.08)),
    url("assets/case-service-desk.webp");
}

.case-visual--affiliate {
  background-color: #1e2526;
  background-image:
    linear-gradient(135deg, rgba(30, 37, 38, 0.16), rgba(24, 169, 153, 0.08)),
    url("assets/case-sales-catalog.webp");
}

.case-visual--forecast {
  background-color: #202829;
  background-image:
    linear-gradient(135deg, rgba(32, 40, 41, 0.14), rgba(79, 143, 120, 0.08)),
    url("assets/case-data-api.webp");
}

.case-visual--wiki {
  background-color: #202426;
  background-image:
    linear-gradient(135deg, rgba(32, 36, 38, 0.16), rgba(24, 169, 153, 0.08)),
    url("assets/case-knowledge-base.webp");
}

.case-visual--gisp,
.case-visual--fixhome,
.case-visual--affiliate,
.case-visual--forecast,
.case-visual--wiki {
  background-position: center;
  background-size: 220% 220%, cover;
  animation: gradient-flow-photo 18s ease-in-out infinite alternate;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.case-body span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-weight: 900;
}

.case-body h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.case-card:not(.case-card--wide) .case-body h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.case-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  position: relative;
  padding-left: 22px;
  color: #2f3939;
}

.case-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

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

.case-card:not(.case-card--wide) .case-meta {
  grid-template-columns: 1fr;
}

.case-meta div {
  border: 1px solid rgba(16, 20, 21, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(16, 20, 21, 0.035);
}

.case-meta span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-meta strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.case-tags span {
  margin: 0;
  border: 1px solid rgba(16, 20, 21, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: #354142;
  background: rgba(16, 20, 21, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.case-card--wide .case-tags {
  margin-top: auto;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0 0;
}

dt {
  font-size: 26px;
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--muted);
}

.process {
  background: #ffffff;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 88px;
  height: 2px;
  pointer-events: none;
}

.timeline::before {
  background: rgba(16, 20, 21, 0.08);
}

.timeline::after {
  right: auto;
  width: calc(var(--process-progress, 0) * 100%);
  top: 83px;
  height: 12px;
  background: var(--teal);
  clip-path: polygon(0 41%, calc(100% - 12px) 41%, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, calc(100% - 12px) 59%, 0 59%);
  box-shadow: 0 0 22px rgba(24, 169, 153, 0.34);
  transition: width 180ms ease;
}

.timeline article {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #fff;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.timeline article.is-process-active {
  background: #f8fbf9;
  transform: translateY(-2px);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 74px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
  background: #ffffff;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.timeline article.is-process-active span {
  border-color: var(--teal);
  color: #071615;
  background: #a6eadc;
  transform: scale(1.08);
}

.formats {
  background: var(--bg);
}

.format-grid article {
  min-height: 280px;
  padding: 26px;
}

.format-grid span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 58px;
  border-radius: 8px;
  color: #071615;
  background: #a6eadc;
  font-weight: 900;
}

.format-grid article:nth-child(2) span {
  background: #ffd28b;
}

.format-grid article:nth-child(3) span {
  background: #f7aaa5;
}

.format-grid p,
.outcome-list p,
.collab-main p,
.faq-grid p {
  color: var(--muted);
}

.collaboration {
  background: #ffffff;
}

.collab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 18px;
}

.collab-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.collab-main article,
.collab-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.collab-main article {
  min-height: 230px;
  padding: 24px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.collab-side {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(145deg, #171d1f, #1a7f75 56%, #d94d45);
  background-size: 220% 220%, 220% 220%;
  animation: gradient-flow-layered 16s ease-in-out infinite alternate;
}

.collab-side strong {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.collab-side ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.collab-side li {
  color: rgba(255, 255, 255, 0.82);
}

.stack-track span:hover,
.industry-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 169, 153, 0.36);
  background: #ffffff;
}

.collab-note {
  max-width: 860px;
  margin: 22px 0 0;
  color: var(--muted);
}

.stack {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 52px;
  background: #eef1ee;
}

.device-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 52px;
  padding-top: clamp(48px, 7vw, 84px);
  background: #ffffff;
}

.device-detail__copy p:last-child {
  color: var(--muted);
  font-size: 19px;
}

.device-detail h2 {
  font-size: clamp(30px, 3.5vw, 46px);
}

.stack-marquee {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  align-content: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.stack-row {
  overflow: hidden;
}

.stack-track {
  display: flex;
  width: max-content;
  gap: 10px;
  will-change: transform;
}

.stack-row--right .stack-track {
  animation: stack-scroll-right 34s linear infinite;
}

.stack-row--left .stack-track {
  animation: stack-scroll-left 38s linear infinite;
}

.stack-track span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.stack-marquee:hover .stack-track {
  animation-play-state: paused;
}

.stack-marquee:hover .stack-track span {
  opacity: 0.54;
}

.stack-marquee .stack-track span:hover {
  opacity: 1;
  box-shadow: 0 12px 28px rgba(16, 20, 21, 0.1);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 24px;
}

.tech-categories article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.tech-categories strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.tech-categories p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes stack-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@keyframes stack-scroll-right {
  from {
    transform: translateX(calc(-50% - 5px));
  }
  to {
    transform: translateX(0);
  }
}

.outcomes {
  background: #ffffff;
}

.outcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 18px;
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.outcome-list article {
  min-height: 210px;
  padding: 24px;
}

.trust-grid,
.result-grid,
.scenario-grid,
.comparison-grid,
.contact-brief,
.problem-grid {
  display: grid;
  gap: 16px;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-grid,
.scenario-grid,
.comparison-grid,
.contact-brief,
.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-grid article,
.result-grid article,
.scenario-grid article,
.comparison-grid article,
.contact-brief article,
.problem-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.trust-grid strong,
.result-grid strong,
.scenario-grid strong,
.comparison-grid strong,
.contact-brief strong,
.problem-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.trust-grid p,
.result-grid p,
.scenario-grid p,
.comparison-grid p,
.contact-brief p,
.problem-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.problem-section {
  background: #ffffff;
}

.problem-grid article {
  display: grid;
  min-height: 190px;
}

.problem-grid a {
  align-self: end;
  margin-top: 22px;
  color: var(--teal);
  font-weight: 900;
}

.existing-projects {
  background: #eef1ee;
}

.inline-cta {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  margin-top: 28px;
  padding: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.inline-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.inline-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.inline-cta--light {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.inline-cta--light p {
  color: var(--muted);
}

.anti-list {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 52px;
  background: #eef1ee;
}

.anti-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.anti-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px 44px;
  background: #ffffff;
  font-weight: 800;
}

.anti-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.result-band {
  background: #ffffff;
}

.unique-section {
  background: #eef1ee;
}

.comparison-grid article:first-child {
  background: #f8f9f7;
}

.comparison-grid article:last-child {
  border-color: rgba(24, 169, 153, 0.28);
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.contact-brief {
  margin-top: 28px;
}

.contact-brief article {
  position: relative;
  min-height: 0;
  padding: 18px 18px 18px 22px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.contact-brief article::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.contact-brief strong {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-brief p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.45;
}

.contact-options a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.contact-options a:hover {
  border-color: rgba(137, 229, 212, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.proof-panel {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100%;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(145deg, #171d1f, #1a7f75 58%, #f1a33c);
  background-size: 220% 220%, 220% 220%;
  animation: gradient-flow-layered 16s ease-in-out infinite alternate;
}

.proof-panel strong {
  display: block;
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.proof-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.industries {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 52px;
  background: #eef1ee;
}

.start-options {
  background: var(--bg);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.start-grid article {
  display: grid;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.start-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  color: #071615;
  background: #a6eadc;
  font-weight: 900;
}

.start-grid p {
  color: var(--muted);
}

.start-grid a {
  align-self: end;
  color: var(--teal);
  font-weight: 900;
}

.client-input {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: 52px;
  background: #ffffff;
}

.client-input p:last-child {
  color: var(--muted);
  font-size: 19px;
}

.input-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.input-list span {
  display: flex;
  min-height: 56px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8f9f7;
  font-weight: 800;
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.industry-grid span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.faq {
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.faq-grid article.is-accordion {
  min-height: 0;
}

.faq-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 14px;
  width: 100%;
  border: 0;
  padding: 18px 20px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-toggle span:first-child {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 900;
  line-height: 1.15;
}

.faq-toggle__icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #071615;
  background: #ffffff;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.faq-toggle__icon::before,
.faq-toggle__icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.faq-toggle__icon::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.faq-grid article.is-open .faq-toggle__icon {
  border-color: rgba(24, 169, 153, 0.34);
  background: #a6eadc;
  transform: rotate(180deg);
}

.faq-grid article.is-open .faq-toggle__icon::after {
  transform: rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    margin-top 240ms ease;
}

.faq-panel > div {
  overflow: hidden;
  padding: 0 20px;
}

.faq-grid article.is-open .faq-panel {
  grid-template-rows: 1fr;
  margin-top: 0;
  opacity: 1;
}

.faq-grid article.is-open .faq-panel > div {
  padding-bottom: 20px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.7fr);
  gap: 48px;
  color: #fff;
  background: var(--graphite);
}

.service-cta {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 32px;
  background: #eef1ee;
}

.service-cta p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.service-detail-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 44px;
  background: var(--bg);
}

.service-detail-block p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.detail-list span {
  display: flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  font-weight: 800;
}

.flow-section {
  background: #ffffff;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-grid article {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #f8f9f7;
}

.flow-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -8px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  background: #f8f9f7;
  transform: rotate(45deg);
}

.flow-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #071615;
  background: #a6eadc;
  font-weight: 900;
}

.flow-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-formats {
  background: #ffffff;
}

.format-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.format-cards article {
  display: grid;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #f8f9f7;
}

.format-cards p {
  color: var(--muted);
}

.format-cards a {
  align-self: end;
  color: var(--teal);
  font-weight: 900;
}

.contact--page {
  min-height: calc(100vh - 78px);
  align-items: start;
}

.contact-copy {
  max-width: 680px;
}

.contact-copy h1 {
  max-width: 680px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  font-size: 22px;
  font-weight: 900;
}

.contact-lines a[href^="mailto:"],
.contact-lines a[href^="tel:"] {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

.contact-form.is-success-pulse {
  animation: form-success-pulse 520ms ease;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

label:focus-within {
  color: #168f82;
  transform: translateY(-1px);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #f8f9f7;
  font: inherit;
  resize: vertical;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(24, 169, 153, 0.22);
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 20, 21, 0.08);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(var(--hero-shift-x, 0), calc(var(--hero-shift-y, 0) + var(--hero-scroll-y, 0px)), 0);
  }
  to {
    transform: scale(1.08) translate3d(calc(1.4% + var(--hero-shift-x, 0)), calc(-1.2% + var(--hero-shift-y, 0) + var(--hero-scroll-y, 0px)), 0);
  }
}

@keyframes gradient-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes gradient-flow-layered {
  from {
    background-position: 0% 50%, 100% 50%;
  }
  to {
    background-position: 100% 50%, 0% 50%;
  }
}

@keyframes gradient-flow-photo {
  from {
    background-position: 0% 50%, center;
  }
  to {
    background-position: 100% 50%, center;
  }
}

@keyframes logo-sheen {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-18deg);
  }
  18%,
  72% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-18deg);
  }
}

@keyframes copy-return {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(-48px, 0, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes copy-confirm-pop {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes copy-push-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(54px, 0, 0) scale(0.94);
  }
}

@keyframes copied-text-shine {
  0% {
    background-position: 140% 50%, 0 0;
  }
  100% {
    background-position: -140% 50%, 0 0;
  }
}

@keyframes form-success-pulse {
  0% {
    box-shadow: 0 1px 0 rgba(16, 20, 21, 0.02);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(24, 169, 153, 0.16), 0 22px 60px rgba(16, 20, 21, 0.12);
  }
  100% {
    box-shadow: 0 1px 0 rgba(16, 20, 21, 0.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }

  .js body,
  .js body.page-ready,
  .js body.page-leave,
  .js body.page-enter-reverse,
  .js body.page-leave-reverse {
    opacity: 1;
    transform: none;
  }

  .quick-nav__indicator {
    display: none;
  }
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-note a {
  color: var(--teal);
  font-weight: 900;
}

.form-note.is-error {
  color: #d94d45;
}

.form-note.is-success {
  color: #1a7f75;
}

.form-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: start;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 82px);
  color: rgba(255, 255, 255, 0.72);
  background: #101415;
}

.footer--simple {
  grid-template-columns: 1fr;
}

.footer--simple .footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: flex-end;
}

.footer span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 900;
}

.footer p {
  max-width: 420px;
  margin-bottom: 0;
}

.footer-links,
.footer-contacts {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-contacts a,
.footer > a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.footer-contacts a[href^="mailto:"],
.footer-contacts a[href^="tel:"] {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

.footer-links a:hover,
.footer-contacts a:hover,
.footer > a:hover {
  color: #ffffff;
}

a[href^="mailto:"],
a[href^="tel:"] {
  display: inline-block;
  overflow: hidden;
  transform-origin: center;
  vertical-align: top;
}

a.is-copying {
  opacity: 0;
  pointer-events: none;
}

.copy-fly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  color: currentColor;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

a.is-copied {
  position: relative;
  color: var(--teal) !important;
  overflow: hidden;
  pointer-events: none;
  text-align: left;
  animation: copy-confirm-pop 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

a.is-copied.is-shining {
  background-image:
    linear-gradient(90deg, transparent 0%, transparent 44%, #ffffff 50%, transparent 56%, transparent 100%),
    linear-gradient(var(--teal), var(--teal));
  background-size: 520% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: 140% 50%, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: copied-text-shine 2600ms linear 1 forwards;
}

a.is-copied.is-restoring {
  animation: copy-push-out 280ms cubic-bezier(0.5, 0, 0.35, 1) forwards;
}

a.is-restored {
  animation: copy-return 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: grid;
    justify-content: stretch;
    white-space: normal;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav a,
  .site-header.is-open .nav-dropdown button {
    padding: 14px;
    text-align: left;
  }

  .site-header.is-open .nav-dropdown {
    display: grid;
  }

  .site-header.is-open .nav-dropdown__menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
  }

  .site-header.is-open .nav-dropdown__menu a {
    padding: 10px 14px;
  }

  .intro,
  .audit-entry,
  .device-preview,
  .device-detail,
  .anti-list,
  .case-teaser,
  .stack,
  .industries,
  .client-input,
  .outcome-layout,
  .collab-layout,
  .service-cta,
  .service-detail-block,
  .contact {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .format-cards,
  .tech-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid article:not(:last-child)::after {
    display: none;
  }

  .format-grid,
  .direction-grid,
  .device-preview__panel,
  .device-grid,
  .collab-main,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcome-list,
  .faq-grid,
  .trust-grid,
  .result-grid,
  .scenario-grid,
  .comparison-grid,
  .contact-brief,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .inline-cta {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before,
  .timeline::after {
    top: 0;
    bottom: 0;
    right: auto;
  }

  .timeline::before {
    left: 46px;
    width: 2px;
    height: auto;
  }

  .timeline::after {
    left: 41px;
    width: 12px;
    height: calc(var(--process-progress, 0) * 100%);
    clip-path: polygon(41% 0, 59% 0, 59% calc(100% - 12px), 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px), 41% calc(100% - 12px));
    transition: height 180ms ease;
  }

  .timeline article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline span {
    margin-bottom: 30px;
  }

  .not-found {
    grid-template-columns: 1fr;
  }

  .not-found-game {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .brand__text {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(8, 12, 13, 0.94), rgba(8, 12, 13, 0.64)),
      linear-gradient(0deg, rgba(8, 12, 13, 0.9), rgba(8, 12, 13, 0.08));
    background-size: 180% 180%, 180% 180%;
  }

  .hero__content {
    width: min(310px, calc(100vw - 64px));
    max-width: 100%;
    padding: 140px 20px 110px;
  }

  .hero__content h1 {
    max-width: 100%;
  }

  .hero__lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .quick-nav {
    max-width: 100vw;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 9px 16px;
    scrollbar-width: none;
  }

  .quick-nav::-webkit-scrollbar {
    display: none;
  }

  .quick-nav::before {
    margin-right: 2px;
    font-size: 11px;
  }

  .quick-nav a {
    min-height: 36px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .format-grid,
  .direction-grid,
  .device-preview__panel,
  .device-grid,
  .collab-main,
  .start-grid,
  .flow-grid,
  .format-cards,
  .detail-list,
  .input-list,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

  .device-preview__panel article:first-child {
    grid-column: auto;
  }

  .case-card--wide {
    grid-row: auto;
  }

  .footer {
    display: grid;
  }

  .not-found {
    padding: 22px;
    align-items: start;
  }

  .not-found__brand {
    margin-bottom: 42px;
  }

  .not-found__copy h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .not-found__actions,
  .not-found__actions .button {
    width: 100%;
  }

  .not-found__actions .button {
    justify-content: center;
  }

  .not-found-game__head {
    display: grid;
  }

  .not-found-game__start {
    width: 100%;
    justify-content: center;
  }

  .not-found-game__stats {
    grid-template-columns: 1fr;
  }

  .not-found-game__message {
    position: static;
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .not-found-game__controls {
    grid-template-columns: 52px 1fr 52px;
  }
}
