:root {
  --paper: #efeee9;
  --paper-2: #deddd7;
  --ink: #10100f;
  --ink-2: #1d1d1b;
  --muted: #77756d;
  --soft: rgba(16, 16, 15, 0.1);
  --soft-dark: rgba(255, 255, 255, 0.14);
  --orange: #ff4f14;
  --orange-2: #ff7a1a;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(16, 16, 15, 0.16);
  --font: "Helvetica Neue", Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  cursor: auto;
  font-family: var(--font);
  line-height: 1.35;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--white);
  background: var(--orange);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

h1,
h2,
h3,
strong {
  overflow-wrap: break-word;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2), #fff1df);
}

.cursor-dot,
.cursor-halo {
  position: fixed;
  z-index: 260;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 120ms ease;
}

.cursor-dot {
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate3d(-20px, -20px, 0);
}

.cursor-halo {
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 79, 20, 0.13);
  border: 1px solid rgba(255, 79, 20, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(255, 79, 20, 0.18);
  transform: translate3d(-50px, -50px, 0);
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-halo {
  opacity: 1;
}

body.cursor-active .cursor-halo {
  background: rgba(255, 79, 20, 0.2);
}

@media (pointer: fine) {
  body,
  a,
  button,
  input,
  textarea,
  select {
    cursor: none;
  }
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 62px;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(239, 238, 233, 0.82);
  border: 1px solid rgba(16, 16, 15, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(16, 16, 15, 0.08);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.site-header.is-dark {
  color: var(--white);
  background: rgba(16, 16, 15, 0.74);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.62;
}

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

.site-nav a,
.phone-link,
.header-cta {
  min-height: 40px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav a {
  color: currentColor;
  opacity: 0.7;
  transition: background 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(16, 16, 15, 0.07);
  opacity: 1;
  outline: 0;
}

.site-header.is-dark .site-nav a:hover,
.site-header.is-dark .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  color: currentColor;
  opacity: 0.74;
}

.header-cta {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(255, 79, 20, 0.24);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: currentColor;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(16, 16, 15, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.nav-toggle::before {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 79, 20, 0.62);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition: top 180ms ease, transform 180ms ease, width 180ms ease;
}

.nav-toggle span:first-child {
  top: 18px;
}

.nav-toggle span + span {
  top: 25px;
  width: 14px;
}

.section[id],
.lead-section[id] {
  scroll-margin-top: 116px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 126px 0 70px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.82), transparent 28%),
    var(--paper);
}

.hero-orbit {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: end;
}

.kicker {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1040px;
  font-size: 5.35rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero h1 span {
  display: block;
  color: rgba(16, 16, 15, 0.28);
}

.hero-side {
  display: grid;
  gap: 24px;
  padding-bottom: 10px;
}

.hero-side p {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.36) 50%, transparent 65% 100%);
  opacity: 0;
  transform: translateX(-70%);
  transition: transform 620ms ease, opacity 240ms ease;
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
  transform: translateX(70%);
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 20px 40px rgba(255, 79, 20, 0.22);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(16, 16, 15, 0.12);
}

.service-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 44px;
  counter-reset: rail-card;
}

.rail-card {
  --rail-light: rgba(255, 79, 20, 0.13);
  --rail-fill: 34%;
  counter-increment: rail-card;
  position: relative;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, var(--rail-light), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24));
  border: 1px solid rgba(16, 16, 15, 0.11);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(16, 16, 15, 0.07);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.rail-card::before {
  position: absolute;
  top: 12px;
  right: 12px;
  content: counter(rail-card, decimal-leading-zero);
  color: rgba(16, 16, 15, 0.11);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
}

.rail-card::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  height: 5px;
  content: "";
  background:
    linear-gradient(90deg, var(--orange) 0 var(--rail-fill), rgba(16, 16, 15, 0.18) var(--rail-fill) 100%);
  border-radius: 99px;
}

.rail-card:nth-child(2) {
  --rail-light: rgba(255, 79, 20, 0.2);
  --rail-fill: 58%;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 79, 20, 0.52), transparent 46%),
    linear-gradient(145deg, #11100f, #302019);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 60px rgba(255, 79, 20, 0.14);
}

.rail-card:nth-child(2)::before {
  color: rgba(255, 255, 255, 0.14);
}

.rail-card:nth-child(2)::after {
  background:
    linear-gradient(90deg, var(--orange) 0 var(--rail-fill), rgba(255, 255, 255, 0.22) var(--rail-fill) 100%);
}

.rail-card:nth-child(2) span,
.rail-card:nth-child(2) a {
  color: rgba(255, 255, 255, 0.66);
}

.rail-card:nth-child(3),
.rail-card:nth-child(5) {
  --rail-light: rgba(255, 122, 26, 0.17);
  --rail-fill: 46%;
}

.rail-card:nth-child(4) {
  --rail-fill: 64%;
}

.rail-card:nth-child(6) {
  --rail-light: rgba(16, 16, 15, 0.08);
  --rail-fill: 28%;
}

.rail-card:hover {
  border-color: rgba(255, 79, 20, 0.34);
  box-shadow: 0 22px 58px rgba(16, 16, 15, 0.12);
  transform: translateY(-3px);
}

.rail-card span,
.rail-card a {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  padding: 0;
  color: rgba(16, 16, 15, 0.62);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-card h2 {
  position: relative;
  z-index: 2;
  max-width: 190px;
  margin-top: 18px;
  margin-bottom: 20px;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

.rail-card p {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 150px;
  margin: 0 0 14px;
  color: rgba(16, 16, 15, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.16;
}

.rail-card-media {
  box-shadow: none;
  transform: none;
}

.rail-card-media img {
  display: none;
}

.rail-card-media a {
  display: none;
}

.dark-story {
  overflow: hidden;
  padding: 98px 0 120px;
  color: var(--white);
  background: #050505;
}

.story-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 850px);
  gap: 40px;
  align-items: start;
  justify-content: center;
}

.spark {
  display: none;
}

.story-copy h2,
.section-top h2,
.lead-copy h2 {
  max-width: 920px;
  font-size: 3.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.story-copy h2 {
  max-width: 850px;
}

.portfolio-flow {
  display: flex;
  width: max-content;
  gap: 16px;
  margin-top: 76px;
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  animation: slowPan 22s linear infinite alternate;
}

.flow-card {
  position: relative;
  width: 260px;
  height: 260px;
  overflow: hidden;
  background: #202020;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.flow-card.small {
  width: 210px;
  height: 178px;
  align-self: end;
}

.flow-card.large {
  width: 330px;
  height: 330px;
}

.flow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.82) contrast(1.18);
  transition: filter 420ms ease, transform 420ms ease;
}

.flow-card:hover img {
  filter: grayscale(0.18) contrast(1.12);
  transform: scale(1.035);
}

.flow-card div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  color: var(--white);
}

.flow-card strong,
.flow-card span {
  display: block;
}

.flow-card strong {
  font-size: 1.6rem;
  line-height: 1;
}

.flow-card span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.section {
  padding: 104px 0;
}

.section-top {
  display: grid;
  grid-template-columns: 210px minmax(0, 800px);
  gap: 44px;
  align-items: start;
}

.section-top.center {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 46px;
}

.service-card,
.process-step {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(16, 16, 15, 0.1);
  border-radius: 8px;
}

.service-card {
  min-height: 245px;
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-card::before,
.process-step::before,
.lead-form::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      360px circle at var(--mx, 50%) var(--my, 0%),
      rgba(255, 79, 20, 0.16),
      transparent 60%
    );
  opacity: 0;
  transition: opacity 240ms ease;
}

.service-card:hover,
.process-step:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card:hover::before,
.process-step:hover::before,
.lead-form:hover::before {
  opacity: 1;
}

.service-card span,
.process-step span {
  display: inline-flex;
  min-width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3,
.process-step h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.service-card p,
.process-step p,
.lead-copy p {
  margin-top: 14px;
  color: var(--muted);
}

.growth {
  color: var(--white);
  background:
    radial-gradient(circle at 22% 70%, rgba(255, 79, 20, 0.32), transparent 28%),
    #090706;
}

.growth-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  align-items: start;
}

.growth-copy {
  position: sticky;
  top: 132px;
  min-height: 0;
  padding-right: 40px;
}

.growth-copy h2 {
  max-width: 600px;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 0.92;
}

.growth-copy p {
  max-width: 470px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.62);
}

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

.case-tile {
  position: relative;
  display: grid;
  min-height: 360px;
  align-content: end;
  overflow: hidden;
  padding: 22px;
  color: var(--white);
  background: #17100d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.case-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, transparent 0 38%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 20% 82%, rgba(255, 79, 20, 0.48), transparent 34%);
}

.case-tile::after {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  content: "+";
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.case-tile:hover,
.case-tile:focus-visible {
  border-color: rgba(255, 79, 20, 0.7);
  box-shadow: 0 28px 80px rgba(255, 79, 20, 0.16);
  outline: 0;
  transform: translateY(-5px);
}

.case-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.42) contrast(1.08);
  transition: filter 280ms ease, transform 420ms ease;
}

.case-tile.hot img {
  object-fit: contain;
  padding: 58px 18px 132px;
  background: linear-gradient(180deg, #2a1510, #ff4f14);
  filter: none;
}

.case-tile:hover img,
.case-tile:focus-visible img {
  filter: grayscale(0.08) contrast(1.06);
  transform: scale(1.035);
}

.case-tile span,
.case-tile strong,
.case-tile em {
  position: relative;
  z-index: 2;
  display: block;
}

.case-tile span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.case-tile strong {
  margin-top: 10px;
  font-size: 2rem;
  line-height: 0.98;
}

.case-tile em {
  max-width: 310px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-style: normal;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
}

.gallery-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  color: var(--white);
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.54);
}

.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-copy {
  align-self: end;
  padding: 28px 18px;
}

.gallery-copy span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-copy h2 {
  margin-top: 12px;
  font-size: 2.4rem;
  line-height: 0.96;
}

.gallery-copy p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.64);
}

.gallery-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 79, 20, 0.2), transparent 35%),
    #141414;
  border-radius: 8px;
}

.gallery-stage img {
  max-width: 100%;
  max-height: calc(100vh - 136px);
  object-fit: contain;
  border-radius: 8px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-nav.prev {
  left: 14px;
}

.gallery-nav.next {
  right: 14px;
}

.gallery-count {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 4;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 52px;
}

.process-step {
  min-height: 250px;
  padding: 22px;
  background: var(--paper-2);
}

.lead-section {
  padding: 118px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 79, 20, 0.34), transparent 25%),
    radial-gradient(circle at 70% 88%, rgba(255, 79, 20, 0.18), transparent 30%),
    #100604;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: start;
}

.lead-copy {
  position: sticky;
  top: 130px;
}

.lead-copy h2 {
  font-size: 4.5rem;
  line-height: 0.9;
}

.lead-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.64);
}

.lead-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form label.wide,
.lead-form .wide {
  grid-column: 1 / -1;
}

.lead-form span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  outline: 0;
  padding: 12px 0 14px;
}

.lead-form select option {
  color: var(--ink);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  border-color: var(--orange);
}

.form-note {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.62);
  background: #050505;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--delay, 0ms);
}

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

.hero .reveal.is-visible {
  animation: introRise 760ms ease both;
}

@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowPan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-180px);
  }
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 4.15rem;
  }

  .hero-grid,
  .growth-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: 620px;
  }

  .service-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .growth-copy {
    position: static;
    min-height: auto;
    padding-right: 0;
  }

  .lead-copy {
    position: static;
  }
}

@media (max-width: 900px) {
  .container,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  body.nav-open .nav-toggle {
    color: var(--white);
    background: var(--ink);
    border-color: rgba(255, 255, 255, 0.18);
    transform: none;
  }

  body.nav-open .nav-toggle::before {
    opacity: 0;
    transform: scale(0.2);
  }

  body.nav-open .nav-toggle span:first-child {
    top: 21px;
    width: 20px;
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle span + span {
    top: 21px;
    width: 20px;
    transform: rotate(-45deg);
  }

  body.nav-open .site-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    z-index: 140;
    display: grid;
    gap: 0;
    max-height: calc(100svh - 92px);
    overflow-y: auto;
    padding: 22px max(24px, calc((100vw - 1180px) / 2 + 24px)) 24px;
    color: var(--white);
    background:
      radial-gradient(circle at 88% 12%, rgba(255, 79, 20, 0.28), transparent 28%),
      #080807;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  }

  body.nav-open .site-nav::before {
    content: "Меню";
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.nav-open .site-nav::after {
    content: "+380 67 350 7156";
    width: min(100%, 360px);
    margin-top: 16px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 800;
  }

  body.nav-open .site-nav a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: min(100%, 520px);
    padding: 16px 0;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    font-size: 1.35rem;
    text-align: left;
    opacity: 1;
  }

  body.nav-open .site-nav a::after {
    content: "↗";
    color: var(--orange);
    font-size: 0.95rem;
  }

  body.nav-open .site-nav a:last-of-type {
    margin-top: 12px;
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 18px;
    color: var(--white);
    background: var(--orange);
    border-bottom: 0;
    border-radius: 8px;
    font-size: 1rem;
  }

  body.nav-open .site-nav a:last-of-type::after {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: 3.4rem;
    line-height: 0.92;
  }

  .story-head,
  .section-top {
    display: block;
  }

  .spark {
    margin: 0 0 20px;
  }

  .story-copy h2,
  .section-top h2,
  .lead-copy h2,
  .growth-copy h2 {
    font-size: 2.75rem;
    line-height: 0.98;
  }

  .service-grid,
  .process-line,
  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-flow {
    animation-duration: 16s;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 56px;
  }

  .kicker {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero h1 span {
    color: rgba(16, 16, 15, 0.36);
  }

  .hero-side {
    gap: 18px;
  }

  .hero-actions .button,
  .lead-form .button {
    width: 100%;
  }

  .service-rail,
  .service-grid,
  .case-gallery,
  .process-line,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .service-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
  }

  .rail-card {
    min-height: 132px;
    padding: 12px;
  }

  .rail-card-media {
    min-height: 132px;
    transform: none;
  }

  .rail-card::before {
    top: 10px;
    right: 10px;
    font-size: 2.05rem;
  }

  .rail-card::after {
    right: 12px;
    bottom: 11px;
    left: 12px;
    height: 4px;
  }

  .rail-card span {
    font-size: 0.58rem;
  }

  .rail-card h2 {
    max-width: 120px;
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .rail-card p {
    max-width: 126px;
    margin-bottom: 12px;
    font-size: 0.63rem;
    line-height: 1.13;
  }

  .dark-story,
  .section,
  .lead-section {
    padding: 72px 0;
  }

  .story-copy h2,
  .section-top h2,
  .lead-copy h2,
  .growth-copy h2 {
    font-size: 2.18rem;
    line-height: 1;
  }

  .portfolio-flow {
    display: flex;
    width: auto;
    max-width: 100vw;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    margin-top: 36px;
    padding: 0 14px 10px;
    animation: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-flow .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flow-card,
  .flow-card.small,
  .flow-card.large {
    flex: 0 0 min(76vw, 320px);
    width: min(76vw, 320px);
    min-width: min(76vw, 320px);
    height: 260px;
    align-self: auto;
    scroll-snap-align: center;
  }

  .flow-card img {
    pointer-events: none;
  }

  .case-tile {
    min-height: 340px;
  }

  .case-tile strong {
    font-size: 1.72rem;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-dialog {
    max-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .gallery-copy {
    padding: 54px 8px 4px;
  }

  .gallery-copy h2 {
    font-size: 1.8rem;
  }

  .gallery-stage {
    min-height: 420px;
  }

  .gallery-stage img {
    max-height: 60vh;
  }

  .lead-form label.wide,
  .lead-form .wide,
  .form-note {
    grid-column: auto;
  }

  .footer-inner {
    display: grid;
  }

  .cursor-dot,
  .cursor-halo {
    display: none;
  }
}

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