/* ==========================================================================
   KK Consulting — design tokens
   Abyss petrol base, pearl type, thin-film iridescence reserved for the
   mark, the lead point and focus states. Shape language: the pointed
   hexagon taken from the KK monogram.
   ========================================================================== */

:root {
  --abyss: #041316;
  --abyss-2: #061a1e;
  --petrol: #0c2a2e;
  --pearl: #e4edeb;
  --pearl-2: rgba(228, 237, 235, .82);
  --fog: #86a0a0;
  --line: rgba(228, 237, 235, .12);
  --line-strong: rgba(228, 237, 235, .26);

  --film-cyan: #7fe6dd;
  --film-violet: #a897ff;
  --film-peach: #ffcdb2;
  --film: linear-gradient(115deg, var(--film-cyan) 0%, var(--film-violet) 55%, var(--film-peach) 100%);
  --film-v: linear-gradient(180deg, var(--film-cyan), var(--film-violet) 60%, var(--film-peach));

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hex: 14px;
}

/* ---------- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--pearl);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 350;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--film-violet); color: var(--abyss); }

/* Film grain over everything, static */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 200;
  padding: .6em 1em;
  background: var(--pearl);
  color: var(--abyss);
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 1px solid var(--film-cyan);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons: pointed hexagon from the monogram ---------------- */
.btn {
  --hex-shape: polygon(var(--hex) 0, calc(100% - var(--hex)) 0, 100% 50%, calc(100% - var(--hex)) 100%, var(--hex) 100%, 0 50%);
  position: relative;
  display: inline-flex;
  padding: 1px;
  clip-path: var(--hex-shape);
  background: var(--line-strong);
  font-size: .9375rem;
  font-weight: 450;
  font-stretch: 112%;
  letter-spacing: .005em;
  line-height: 1;
  white-space: nowrap;
  transition: background .4s var(--ease);
}
.btn > span {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 1.15em 2.1em;
  clip-path: var(--hex-shape);
  background: rgba(4, 19, 22, .82);
  transition: background .5s var(--ease), color .4s var(--ease);
}
.btn--primary { background: var(--film); }
.btn--primary > span {
  color: var(--abyss);
  background: var(--pearl);
}
.btn--primary > span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--film);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.btn--primary:hover > span::before,
.btn--primary:focus-visible > span::before { opacity: 1; }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--film); }
.btn--ghost:hover > span,
.btn--ghost:focus-visible > span { background: rgba(4, 19, 22, .92); }
.btn:focus-visible { outline: none; padding: 2px; background: var(--film); }
.btn[hidden] { display: none; }

/* ---------- Loader ----------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: var(--abyss);
  transition: opacity .9s var(--ease-io), visibility 0s linear .9s;
}
.loader__mark {
  width: 132px;
  height: auto;
  overflow: visible;
}
.loader__mark path {
  fill: rgba(228, 237, 235, 0);
  stroke: var(--pearl);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--draw, 1);
  transition: fill .6s var(--ease);
}
.loader__mark circle { fill: url(#kk-film); opacity: 0; transition: opacity .5s var(--ease); }
.loader__pct {
  font-size: .8125rem;
  font-stretch: 112%;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  text-align: center;
}
.is-loaded .loader__mark path { fill: rgba(228, 237, 235, 1); }
.is-loaded .loader__mark circle { opacity: 1; }
.is-started .loader { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .loader { display: none; }

/* ---------- Header ----------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s;
}
.is-started .site-header,
html:not(.js) .site-header { opacity: 1; transform: none; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px 0;
  z-index: -1;
  background: linear-gradient(var(--abyss) 64%, rgba(4, 19, 22, 0));
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}
.brand__mark { width: 36px; height: 30px; color: var(--pearl); }
.brand__name {
  font-size: .9375rem;
  font-weight: 500;
  font-stretch: 120%;
  letter-spacing: .01em;
}

.nav {
  --hex: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 22px;
  clip-path: polygon(var(--hex) 0, calc(100% - var(--hex)) 0, 100% 50%, calc(100% - var(--hex)) 100%, var(--hex) 100%, 0 50%);
  background: rgba(12, 42, 46, .5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: .875rem;
  font-weight: 450;
  font-stretch: 112%;
  color: var(--fog);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--film);
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--pearl); }
.nav a.is-current::after { opacity: 1; transform: none; }
.nav a:focus-visible { outline-offset: -2px; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: .8125rem;
  font-stretch: 112%;
}
.lang button {
  padding: 8px 8px;
  color: var(--fog);
  transition: color .3s var(--ease);
}
.lang button + button::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}
.lang button[aria-pressed="true"] { color: var(--pearl); }
.lang button:hover { color: var(--pearl); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px 8px;
  font-size: .875rem;
  font-stretch: 112%;
}
.menu-toggle__icon {
  position: relative;
  width: 22px;
  height: 8px;
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4px; transform: rotate(35deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4px; transform: rotate(-35deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(4, 19, 22, .96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 8px; }
.mobile-menu nav a {
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  font-weight: 300;
  font-stretch: 118%;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.mobile-menu__foot {
  display: flex;
  gap: 24px;
  color: var(--fog);
  font-size: .9375rem;
}

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 12% 0%, rgba(38, 112, 112, .28), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(80, 70, 160, .14), transparent 70%),
    radial-gradient(40% 40% at 50% 46%, rgba(12, 42, 46, .9), transparent 80%),
    var(--abyss);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  place-items: center;
  padding-bottom: 18vh;
}
.hero__fallback svg {
  width: min(42vw, 340px);
  height: auto;
  aspect-ratio: 120 / 100;
  color: var(--pearl);
  filter: drop-shadow(0 0 40px rgba(127, 230, 221, .25));
}
.no-webgl .hero__fallback { display: grid; }
.no-webgl .hero__canvas { display: none; }

.hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(56px, 10vh, 120px);
  max-width: 1040px;
}
.hero__title {
  font-size: clamp(2.125rem, 4.4vw, 4.75rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.028em;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}
.hero__line > span {
  display: inline-block;
  font-stretch: 62%;
  opacity: 0;
  transform: translateY(55%);
  transition:
    font-stretch 2.2s var(--ease),
    opacity 1s var(--ease),
    transform 1.4s var(--ease);
}
.hero__line + .hero__line > span { transition-delay: .14s; }
.is-started .hero__line > span,
html:not(.js) .hero__line > span {
  font-stretch: 112%;
  opacity: 1;
  transform: none;
}
.hero__lede {
  max-width: 46ch;
  margin-top: 28px;
  color: var(--pearl-2);
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__lede, .hero__actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease) .7s, transform 1.2s var(--ease) .7s;
}
.hero__actions { transition-delay: .85s; }
.is-started .hero__lede, .is-started .hero__actions,
html:not(.js) .hero__lede, html:not(.js) .hero__actions { opacity: 1; transform: none; }

.hero__readout {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 10vh, 120px);
  display: grid;
  justify-items: end;
  gap: 2px;
  font-size: .8125rem;
  font-stretch: 112%;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1.1s;
}
.hero__readout > span:first-child { color: var(--pearl); }
.is-started .hero__readout { opacity: 1; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 64px;
  margin-left: -20px;
  display: grid;
  justify-items: center;
}
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 100%;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 40%;
  background: var(--film-v);
  animation: scroll-hint 2.4s var(--ease-io) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ---------- Shared section heads -------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-title {
  grid-column: 1 / span 7;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 300;
  font-stretch: 116%;
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-title--xl {
  grid-column: 1 / -1;
  font-size: clamp(2.5rem, 7.4vw, 7.25rem);
  font-stretch: 118%;
  letter-spacing: -.035em;
}
.section-intro {
  grid-column: 9 / -1;
  max-width: 40ch;
  color: var(--fog);
}
.section-title--xl + .section-intro { grid-column: 1 / span 6; }
.section-head--stack { display: block; }
.section-head--stack .section-intro { margin-top: 24px; }

/* ---------- Approach --------------------------------------------------- */
.approach {
  padding-block: clamp(120px, 20vh, 240px) clamp(96px, 14vh, 180px);
}
.approach__statement {
  max-width: 24em;
  font-size: clamp(1.625rem, 3.3vw, 3rem);
  font-weight: 300;
  font-stretch: 106%;
  line-height: 1.22;
  letter-spacing: -.018em;
  text-wrap: pretty;
}
.approach__statement .w {
  opacity: .2;
  transition: opacity .5s var(--ease);
}
.approach__statement .w.is-lit { opacity: 1; }
.approach__note {
  max-width: 42ch;
  margin-top: clamp(40px, 6vw, 72px);
  margin-left: auto;
  margin-right: 8%;
  color: var(--fog);
  font-size: 1.0625rem;
}

/* ---------- Services --------------------------------------------------- */
.services { padding-block: clamp(80px, 12vh, 160px); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 3fr);
  column-gap: 32px;
  row-gap: 20px;
  padding-block: clamp(32px, 4.4vw, 56px);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 {
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 300;
  font-stretch: 100%;
  line-height: 1.05;
  letter-spacing: -.022em;
  transition: font-stretch .8s var(--ease);
}
.service:hover h3,
.service:focus-within h3 { font-stretch: 118%; }
.service__platforms {
  margin-top: 10px;
  color: var(--fog);
  font-size: .9375rem;
}
.service__desc {
  max-width: 40ch;
  color: var(--pearl-2);
}
.service__scope {
  display: grid;
  gap: 8px;
  align-content: start;
  color: var(--fog);
  font-size: .9375rem;
}
.service__scope li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.service__scope li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  transform: translateY(-2px) rotate(45deg);
  border: 1px solid var(--line-strong);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.service:hover .service__scope li::before {
  background: var(--film);
  border-color: transparent;
}

/* ---------- Method ----------------------------------------------------- */
.method { padding-block: clamp(80px, 12vh, 160px); }
.method__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.method__aside {
  grid-column: 1 / span 5;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.method__aside .section-head { margin-bottom: 48px; }
.method__aside .section-title { font-size: clamp(2.25rem, 4.4vw, 4rem); }

.terminal {
  --cut: 18px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  background: linear-gradient(180deg, rgba(12, 42, 46, .7), rgba(6, 26, 30, .7));
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-weight: 300;
  font-size: .78rem;
  line-height: 1.9;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--fog);
}
.terminal__bar::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--film-cyan);
  box-shadow: 0 0 10px var(--film-cyan);
}
.terminal__body {
  min-height: 21em;
  padding: 18px 20px 22px;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__line { display: block; }
.terminal__line .p { color: var(--fog); }
.terminal__line .c { color: var(--pearl); }
.terminal__line .ok { color: var(--film-cyan); }
.terminal__line .run { color: var(--film-violet); }
.terminal__caret {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -.2em;
  background: var(--pearl);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.steps {
  grid-column: 7 / -1;
  position: relative;
  counter-reset: step;
  margin-top: 8px;
}
.steps::before,
.steps__fill {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
}
.steps::before { bottom: 0; background: var(--line); }
.steps__fill {
  height: calc(var(--p, 0) * 100%);
  background: var(--film-v);
  transition: height .2s linear;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: clamp(36px, 5vh, 56px) 0 clamp(36px, 5vh, 56px) clamp(28px, 3vw, 48px);
}
.step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: calc(clamp(36px, 5vh, 56px) + .55em);
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--abyss);
  border: 1px solid var(--line-strong);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.step.is-active::before {
  background: var(--film);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(168, 151, 255, .6);
}
.step__num {
  padding-top: .6em;
  color: var(--fog);
  font-size: .875rem;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: clamp(1.625rem, 2.5vw, 2.375rem);
  font-weight: 300;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--fog);
  transition: color .6s var(--ease), font-stretch .8s var(--ease);
}
.step p {
  max-width: 44ch;
  margin-top: 12px;
  color: var(--fog);
  transition: color .6s var(--ease);
}
.step.is-active h3 { color: var(--pearl); font-stretch: 118%; }
.step.is-active p { color: var(--pearl-2); }
.step.is-active .step__num { color: var(--pearl); }

/* ---------- Contact ---------------------------------------------------- */
.contact {
  position: relative;
  padding-block: clamp(96px, 14vh, 180px);
  background:
    radial-gradient(50% 60% at 85% 0%, rgba(38, 112, 112, .16), transparent 70%),
    var(--abyss);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 64px;
}

.lead-form {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 28px;
}
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  color: var(--fog);
  font-size: .875rem;
  font-stretch: 108%;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--film-cyan), var(--film-violet)) no-repeat 0 100% / 0 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) no-repeat 0 100% / 100% 1px;
  background-color: transparent;
  color: var(--pearl);
  font-size: 1.0625rem;
  transition: background-size .6s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field ::placeholder { color: rgba(134, 160, 160, .6); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-size: 100% 1px, 100% 1px;
}
.field select {
  padding-right: 28px;
  background-image:
    linear-gradient(var(--film-cyan), var(--film-violet)),
    linear-gradient(var(--line-strong), var(--line-strong)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%2386a0a0' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%, right 4px center;
  background-size: 0 1px, 100% 1px, 12px 8px;
}
.field select:focus { background-size: 100% 1px, 100% 1px, 12px 8px; }
.field select option { background: var(--abyss); color: var(--pearl); }
.field [aria-invalid="true"] {
  background-image:
    linear-gradient(var(--film-peach), var(--film-peach)),
    linear-gradient(var(--film-peach), var(--film-peach)) !important;
  background-size: 100% 1px, 100% 1px !important;
}

.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.field--check label { font-size: .875rem; line-height: 1.55; }
.field--check a { color: var(--pearl); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.field--check a:hover { text-decoration-color: var(--film-cyan); }
.field input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.field input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--abyss);
  border-bottom: 1.5px solid var(--abyss);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .3s var(--ease);
}
.field input[type="checkbox"]:checked { background: var(--film); border-color: transparent; }
.field input[type="checkbox"]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field input[type="checkbox"][aria-invalid="true"] { border-color: var(--film-peach); }

.lead-form__error {
  grid-column: 1 / -1;
  color: var(--film-peach);
  font-size: .9375rem;
}
.lead-form__error:empty { display: none; }
.lead-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lead-form__note {
  grid-column: 1 / -1;
  margin-top: -12px;
  color: var(--fog);
  font-size: .8125rem;
}
.lead-form__success {
  grid-column: 1 / -1;
  color: var(--film-cyan);
  font-size: .9375rem;
}
.lead-form__success:empty { display: none; }

.channels {
  grid-column: 9 / -1;
  align-self: start;
  border-top: 1px solid var(--line);
}
.channel {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.channel[hidden] { display: none; }
.channel__label { color: var(--fog); font-size: .8125rem; font-stretch: 108%; }
.channel__value {
  font-size: 1.25rem;
  font-weight: 350;
  font-stretch: 106%;
  line-height: 1.35;
  transition: font-stretch .7s var(--ease);
}
.channel__hint {
  justify-self: start;
  margin-top: 4px;
  color: var(--fog);
  font-size: .875rem;
  background: linear-gradient(var(--film-cyan), var(--film-violet)) no-repeat 0 100% / 0 1px;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}
.channel:hover .channel__value,
.channel:focus-visible .channel__value { font-stretch: 116%; }
.channel:hover .channel__hint,
.channel:focus-visible .channel__hint { color: var(--pearl); background-size: 100% 1px; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer {
  padding-block: 72px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
}
.site-footer__brand { grid-column: 1 / span 4; }
.site-footer__mark { width: 60px; height: 50px; color: var(--pearl); }
.site-footer__brand p { max-width: 30ch; margin-top: 20px; color: var(--fog); }

.legal {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 20px;
}
.legal > div { display: grid; gap: 2px; align-content: start; }
.legal > div[hidden] { display: none; }
.legal dt { color: var(--fog); font-size: .8125rem; }
.legal dd { color: var(--pearl-2); }
.legal a:hover { color: var(--pearl); }

.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: .8125rem;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__links a[hidden] { display: none; }
.site-footer__links a:hover { color: var(--pearl); }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 1100px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service__name { grid-column: 1 / -1; }
  .lead-form { grid-column: 1 / -1; }
  .channels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-title, .section-intro, .section-title--xl + .section-intro { grid-column: 1 / -1; }
  .method__aside { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .steps { grid-column: 1 / -1; }
  .site-footer__brand, .legal { grid-column: 1 / -1; }
  .approach__note { margin-right: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero { min-height: 560px; }
  .hero__content { bottom: 88px; }
  .hero__title { letter-spacing: -.02em; }
  .is-started .hero__line > span, html:not(.js) .hero__line > span { font-stretch: 104%; }
  .hero__readout { display: none; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__actions .btn > span { width: 100%; text-align: center; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service:hover h3, .service:focus-within h3 { font-stretch: 108%; }
  .lead-form { grid-template-columns: minmax(0, 1fr); }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .terminal__body { min-height: 0; }
  .site-header { gap: 12px; }
  .brand { gap: 10px; margin-right: 0; }
  .brand__mark { width: 30px; height: 25px; }
  .brand__name { font-size: .875rem; font-stretch: 104%; white-space: nowrap; }
  .lang { margin-left: auto; }
  .lang button { padding-inline: 6px; }
  .lang button + button::before { margin-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  html:focus-within { scroll-behavior: auto; }
  .approach__statement .w { opacity: 1; }
}
