@font-face {
  font-family: "Lebowski GB Preview";
  src: url("/ru-v1-home-v1/assets/lebowski-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #08080a;
  --black-soft: #111114;
  --paper: #f4f3ef;
  --paper-cool: #e8edf5;
  --white: #fff;
  --ink: #0b0b0d;
  --muted: #6e6d70;
  --blue: #1769e0;
  --blue-hover: #0f5dce;
  --line-dark: rgba(11, 11, 13, 0.17);
  --line-light: rgba(255, 255, 255, 0.2);
  --gradient-muted: linear-gradient(106deg, #b8d0ca 0%, #91b2b0 33%, #7898af 68%, #6f7fa2 100%);
  --gradient-orange: linear-gradient(104deg, #f38a01 0%, #f27e10 36%, #f26139 70%, #f2534e 100%);
  --display: "Lebowski GB Preview", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 76px;
  --gutter: clamp(24px, 3.3vw, 64px);
  --section-space: clamp(96px, 10.5vw, 168px);
  --content-max: 1680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

html.is-static {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-h);
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.section--black a:focus-visible,
.hero a:focus-visible,
.contact a:focus-visible,
.site-header a:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

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

.shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.038em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(58px, 5.6vw, 92px);
  line-height: 0.94;
}

.section {
  padding-block: var(--section-space);
}

.section--paper {
  background: var(--paper);
}

.section--black {
  background: var(--black);
  color: var(--white);
}

.section-intro {
  max-width: 1320px;
}

.section-intro .eyebrow {
  margin-bottom: 38px;
}

.section-intro--split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
}

.section-intro--split > :first-child {
  grid-column: 1 / span 6;
}

.section-intro--split > :last-child {
  grid-column: 8 / -1;
}

.lead-stack,
.section-lead {
  max-width: 690px;
  font-size: clamp(19px, 1.35vw, 23px);
  line-height: 1.46;
  letter-spacing: -0.015em;
}

.lead-stack p:last-child,
.section-lead:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--small {
  min-height: 44px;
  padding-inline: 19px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  text-underline-offset: 0.23em;
  text-decoration-thickness: 1px;
}

.text-link::after {
  content: "↗";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translate(5px, -3px);
}

.text-link--dark {
  color: var(--white);
}

.gradient-text {
  color: #d7dcde;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .gradient-text {
    color: transparent;
    background: var(--text-gradient, var(--gradient-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.gradient-text--orange {
  --text-gradient: var(--gradient-orange);
}

/* Header */

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-light);
  background: rgba(8, 8, 10, 0.94);
  color: var(--white);
  font-family: var(--sans);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
}

.brand img {
  width: 190px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.2vw, 38px);
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  inset: var(--header-h) 0 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 20px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  padding: 15px 0 18px;
  border-bottom: 1px solid var(--line-light);
  font: 400 clamp(47px, 14vw, 68px)/0.92 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mobile-menu__footer {
  display: grid;
  gap: 15px;
  font-size: 14px;
}

.mobile-menu__footer .button {
  margin-bottom: 8px;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero__main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  padding-top: clamp(20px, 3vh, 44px);
  padding-bottom: clamp(28px, 4vh, 54px);
}

.hero h1 {
  position: relative;
  z-index: 3;
  width: min(100%, 1580px);
  margin: 0;
  font-size: clamp(76px, 7.2vw, 116px);
  line-height: 0.875;
  letter-spacing: -0.046em;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero h1 {
    margin-top: clamp(64px, 7vh, 96px);
  }
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-copy {
  display: block;
}

.hero-copy--mobile {
  display: none;
}

.inline-keycaps {
  display: inline-flex;
  width: 1.28em;
  height: 0.66em;
  margin-left: calc(0.14em + 10px);
  vertical-align: -0.02em;
  isolation: isolate;
  pointer-events: auto;
}

.inline-keycaps img,
.inline-project img {
  width: 100%;
  height: 100%;
}

.inline-keycap {
  position: relative;
  width: 50%;
  height: 100%;
  cursor: pointer;
}

.inline-keycap:first-child {
  width: 49.5%;
}

.inline-keycap:last-child {
  width: 50.5%;
}

.inline-keycap:hover {
  z-index: 2;
}

.inline-keycap img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  transition: opacity 140ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms ease;
}

.inline-keycap__hover {
  opacity: 0;
  transform: translateY(0.035em) scale(0.98);
  filter: brightness(0.96);
}

.inline-keycap:hover .inline-keycap__idle {
  opacity: 0;
  transform: translateY(0.025em) scale(0.985);
}

.inline-keycap:hover .inline-keycap__hover {
  opacity: 1;
  transform: translateY(0.035em) scale(0.985);
  filter: brightness(1.05) drop-shadow(0 0.05em 0.09em rgba(255, 92, 34, 0.22));
}

.inline-project {
  display: inline-block;
  width: calc(1.95em - 10px);
  height: calc(0.60em + 10px);
  margin: 0 calc(0.07em + 5px);
  overflow: hidden;
  border-radius: 999px;
  vertical-align: calc(0.015em - 7.5px);
  background: #aeb8e7;
}

.inline-project img {
  object-fit: cover;
  object-position: 50% 52%;
}

.hero__support {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 24px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.hero__method {
  max-width: 690px;
  margin: 0;
  font: 400 clamp(28px, 2.35vw, 40px)/1 var(--display);
  letter-spacing: -0.032em;
}

.hero__lead {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.48;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__actions .button {
  width: 100%;
}

.hero-symbol {
  --symbol-x: 50%;
  --symbol-y: 50%;
  position: absolute;
  z-index: 2;
  top: clamp(230px, 30vh, 390px);
  right: var(--gutter);
  width: clamp(360px, 34vw, 680px);
  aspect-ratio: 106.55 / 85.9;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: crosshair;
  contain: layout paint;
}

.hero-symbol::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22%;
  background: radial-gradient(circle at var(--symbol-x) var(--symbol-y), rgba(242, 97, 58, 0.22) 0, rgba(243, 138, 1, 0.11) 22%, rgba(23, 105, 224, 0.1) 42%, transparent 68%);
  filter: blur(26px);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.hero-symbol__visual,
.hero-symbol__light {
  position: absolute;
  inset: 0;
}

.hero-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-symbol__base {
  opacity: 0.5;
  filter: grayscale(1) brightness(0.22) contrast(1.45);
  transition: opacity 220ms ease, filter 220ms ease;
}

.hero-symbol__light {
  opacity: 0;
  filter: brightness(1.08) saturate(1.08) drop-shadow(0 0 18px rgba(242, 97, 58, 0.36)) drop-shadow(0 0 48px rgba(23, 105, 224, 0.16));
  -webkit-mask-image: radial-gradient(circle at var(--symbol-x) var(--symbol-y), #000 0, #000 12%, rgba(0, 0, 0, 0.88) 26%, transparent 56%);
  mask-image: radial-gradient(circle at var(--symbol-x) var(--symbol-y), #000 0, #000 12%, rgba(0, 0, 0, 0.88) 26%, transparent 56%);
  transition: opacity 180ms ease, filter 260ms ease;
  pointer-events: none;
}

.hero-symbol.is-tracking::before,
.hero-symbol.is-tracking .hero-symbol__light,
.hero-symbol:focus-visible::before,
.hero-symbol:focus-visible .hero-symbol__light {
  opacity: 1;
}

.hero-symbol.is-tracking .hero-symbol__base,
.hero-symbol:focus-visible .hero-symbol__base {
  opacity: 0.68;
  filter: grayscale(1) brightness(0.3) contrast(1.35);
}

.hero-symbol.is-fully-lit::before {
  opacity: 1;
  background: radial-gradient(circle at 50% 50%, rgba(242, 97, 58, 0.24) 0, rgba(243, 138, 1, 0.13) 30%, rgba(23, 105, 224, 0.1) 48%, transparent 72%);
}

.hero-symbol.is-fully-lit .hero-symbol__base {
  opacity: 0.2;
}

.hero-symbol.is-fully-lit .hero-symbol__light {
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
  filter: brightness(1.16) saturate(1.12) drop-shadow(0 0 22px rgba(242, 97, 58, 0.48)) drop-shadow(0 0 70px rgba(23, 105, 224, 0.2));
}

.hero-symbol:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.58);
  outline-offset: 12px;
}

@media (max-width: 767px) {
  .hero-symbol {
    top: clamp(300px, 45svh, 430px);
    right: -10vw;
    width: min(76vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-symbol::before,
  .hero-symbol__base,
  .hero-symbol__light {
    transition: none;
  }
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}

.proof-rail a {
  min-height: 118px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto 1fr;
  gap: 6px 12px;
  padding: 18px clamp(18px, 2vw, 34px) 20px;
  border-right: 1px solid var(--line-light);
  color: var(--white);
  text-decoration: none;
  transition: background 200ms ease;
}

.proof-rail a:last-child {
  border-right: 0;
}

.proof-rail a:hover,
.proof-rail a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.proof-rail span {
  grid-row: 1 / span 2;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

.proof-rail strong {
  font: 400 27px/0.95 var(--display);
  letter-spacing: -0.025em;
}

.proof-rail small {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.35;
}

/* Situations */

.situations__body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  margin-top: clamp(72px, 7vw, 112px);
}

.situation-proof {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  overflow: hidden;
  background: #deddd8;
}

.situation-proof > img {
  width: 100%;
  height: clamp(470px, 48vw, 690px);
  object-fit: cover;
  object-position: center;
  transition: opacity 180ms ease, transform 360ms ease;
}

.situation-proof.is-changing > img {
  opacity: 0.4;
  transform: scale(1.01);
}

.situation-proof--contain {
  background: #fff;
}

.situation-proof--contain > img,
.situation-proof--contain.is-changing > img {
  object-fit: contain;
  background: #fff;
  transform: scale(1.12);
}

.situation-proof figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 60px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: var(--white);
}

.situation-proof figcaption span {
  font: 400 30px/1 var(--display);
}

.situation-proof figcaption small {
  max-width: 220px;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.situation-list .eyebrow {
  margin-bottom: 18px;
}

.situation-item {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 16px;
  align-items: center;
  min-height: 100px;
  padding-block: 21px;
  border-top: 1px solid var(--line-dark);
  color: var(--ink);
  text-decoration: none;
}

.situation-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.situation-item > span {
  color: var(--muted);
  font-size: 12px;
}

.situation-item strong {
  max-width: 780px;
  font: 400 clamp(28px, 2.5vw, 43px)/0.98 var(--display);
  letter-spacing: -0.035em;
  transition: color 180ms ease;
}

.situation-item i {
  font-style: normal;
  transition: transform 180ms ease;
}

.situation-item:hover strong,
.situation-item:focus-visible strong,
.situation-item.is-active strong {
  color: var(--blue);
}

.situation-item:hover i,
.situation-item:focus-visible i,
.situation-item.is-active i {
  transform: translate(4px, -3px);
}

/* Founders */

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

.founders__intro .eyebrow {
  grid-column: 1 / span 2;
}

.founders__intro h2 {
  grid-column: 1 / span 9;
  margin-top: 42px;
}

.founders__intro > p:last-child {
  grid-column: 10 / -1;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
}

.founder-composition {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: start;
  margin-top: clamp(78px, 8vw, 130px);
}

.founder--alexander {
  margin-top: 120px;
}

.founder__image {
  overflow: hidden;
  background: #18181b;
}

.founder--alexander .founder__image {
  aspect-ratio: 4 / 5;
}

.founder--evgeny .founder__image {
  aspect-ratio: 7 / 6;
}

.founder__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.03);
  transition: transform 420ms ease;
}

.founder:hover .founder__image img {
  transform: scale(1.015);
}

.founder__copy {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.95fr);
  gap: 18px 24px;
  padding-top: 18px;
}

.founder__copy .eyebrow {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.55);
}

.founder__copy h3 {
  margin: 0;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 0.95;
}

.founder__copy p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.5;
}

.founder__copy .text-link {
  grid-column: 2;
}

.founders__principle {
  display: grid;
  grid-template-columns: 5fr 6fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: clamp(90px, 9vw, 145px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.founders__principle p {
  max-width: 670px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
}

.founders__principle strong {
  font: 400 clamp(35px, 3.5vw, 58px)/0.96 var(--display);
  letter-spacing: -0.035em;
}

.founders__principle .text-link {
  justify-self: end;
  white-space: nowrap;
}


/* Projects */

/* A concise team introduction on Home; full portraits remain in Studio. */
.founders--compact .founders__intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; }
.founders--compact .founders__intro .eyebrow { grid-column: 1 / -1; }
.founders--compact .founders__intro h2 { grid-column: 1; margin-top: 0; }
.founders--compact .founders__intro > p:last-child { grid-column: 2; max-width: 520px; margin-top: 0; font-size: 18px; line-height: 1.55; }
.founders__areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 64px; }
.founders__areas article { border-top: 1px solid var(--line-light); padding-top: 24px; }
.founders__areas .eyebrow { color: #aaa; }
.founders__areas h3 { margin: 24px 0 20px; font: 400 clamp(42px, 4vw, 66px)/1 var(--display); letter-spacing: -.025em; }
.founders__areas article > p:last-child { max-width: 580px; font-size: 18px; line-height: 1.55; color: #bbb; }
.founders--compact .founders__principle { grid-template-columns: 1fr auto; align-items: center; margin-top: 46px; }
.founders--compact .founders__principle p { max-width: 800px; }
@media (max-width: 800px) {
  .founders--compact .founders__intro { grid-template-columns: 1fr; gap: 24px; }
  .founders--compact .founders__intro h2, .founders--compact .founders__intro > p:last-child { grid-column: 1; }
  .founders__areas { gap: 32px; }
  .founders--compact .founders__principle { grid-template-columns: 1fr; }
  .founders--compact .founders__principle .text-link { grid-column: 1; justify-self: start; }
}
@media (max-width: 560px) { .founders__areas { grid-template-columns: 1fr; margin-top: 40px; } }

.projects__intro {
  max-width: 1160px;
}

.project-scroll {
  margin-top: clamp(82px, 7vw, 118px);
}

.project-story__open {
  display: inline-flex;
  margin-top: 18px;
}

.project-story--rueporte .project-story__open {
  margin-top: 210px;
}

.project-story + .project-story {
  margin-top: clamp(140px, 13vw, 220px);
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.project-story__header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.project-story__meta {
  grid-column: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.project-story__header h3 {
  grid-column: 4 / span 5;
  margin: 0;
  font-size: clamp(70px, 7vw, 116px);
  line-height: 0.86;
}

.project-story__summary {
  grid-column: 9 / -1;
  padding-top: 7px;
}

.project-story__summary p {
  max-width: 500px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.project-story__summary .project-story__note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.project-story__gallery {
  position: relative;
  height: clamp(900px, 78vw, 1260px);
  margin-top: clamp(62px, 6vw, 94px);
}

.project-story__gallery figure {
  position: absolute;
  margin: 0;
}

.project-story__gallery figure:nth-child(1) {
  top: 0;
  left: 0;
  width: 40%;
}

.project-story__gallery figure:nth-child(2) {
  top: 20%;
  left: 44%;
  width: 21%;
}

.project-story__gallery figure:nth-child(3) {
  top: 3%;
  right: 0;
  width: 31%;
}

.project-story__gallery figure:nth-child(4) {
  top: 60%;
  left: 0;
  width: 26%;
}

.project-story__gallery figure:nth-child(5) {
  top: 56%;
  left: 42%;
  width: 45%;
}

.project-story__gallery img {
  width: 100%;
  height: auto;
  background: #e1e0dc;
}

.project-story--octo .project-story__gallery figure:nth-child(2) img {
  background: transparent;
}

.project-story--octo .project-story__gallery figure:nth-child(2) figcaption {
  padding-top: 28px;
}

.project-story--podimis .project-story__gallery figure:nth-child(5) img {
  background: transparent;
}

@media (min-width: 761px) {
  .project-story--podimis .project-story__gallery figure:nth-child(5) {
    left: calc(42% - 15px);
    width: 54%;
  }
}

.project-story--rueporte .project-story__gallery {
  height: clamp(1370px, calc(95vw + 250px), 1700px);
}

.project-story--rueporte .project-story__gallery figure:nth-child(1) {
  top: 19%;
  left: 0;
  width: 34%;
}

.project-story--rueporte .project-story__gallery figure:nth-child(2) {
  top: 3%;
  right: 0;
  left: auto;
  width: 51%;
}

.project-story--rueporte .project-story__gallery figure:nth-child(3) {
  top: 60%;
  left: 0;
  width: 26%;
}

.project-story--rueporte .project-story__gallery figure:nth-child(4) {
  top: calc(50% + 320px);
  left: 42%;
  width: 45%;
}

.project-story--rueporte .project-story__site-stack {
  display: grid;
  gap: 0;
}

.project-story--rueporte .project-story__site-stack img {
  display: block;
}

.project-story--rueporte .project-story__site-stack img:first-child {
  aspect-ratio: 1280 / 633;
  object-fit: cover;
  object-position: top;
}

.project-story--rueporte .project-story__site-stack img:last-child {
  aspect-ratio: 1280 / 652;
  object-fit: cover;
  object-position: bottom;
}

.project-story--rueporte .project-story__gallery img {
  background: transparent;
}

.project-story__gallery figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.project-story--octo .project-story__gallery {
  height: clamp(760px, 66vw, 1060px);
}

.project-story--octo .project-story__gallery figure:nth-child(1) {
  top: 0;
  left: 0;
  width: 36%;
}

.project-story--octo .project-story__gallery figure:nth-child(2) {
  top: 14%;
  right: 4%;
  left: auto;
  width: 28%;
}

.project-story--octo .project-story__gallery figure:nth-child(3) {
  top: 56%;
  right: auto;
  left: 40%;
  width: 46%;
}

.project-story--orbit360 .project-story__gallery figure:nth-child(4) {
  top: 60%;
  left: 0;
  width: 41%;
}

.project-story--orbit360 .project-story__gallery figure:nth-child(5) {
  top: 57%;
  right: 5%;
  left: auto;
  width: 29%;
}

.projects__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 14px;
}

.projects__all .text-link {
  color: var(--ink);
}

/* Continuity */

.continuity {
  background: var(--paper-cool);
}

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

.continuity__intro .eyebrow {
  grid-column: 1 / span 2;
}

.continuity__intro h2 {
  grid-column: 1 / span 8;
  margin-top: 42px;
}

.continuity__intro > div {
  grid-column: 9 / -1;
  align-self: end;
}

.continuity__intro > div p:last-child {
  margin-bottom: 0;
}

.continuity__visual {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: end;
  margin-top: 90px;
}

.continuity__visual figure {
  margin: 0;
}

.continuity__visual figure:first-child img {
  aspect-ratio: 16 / 10;
}

.continuity__visual figure:last-child img {
  aspect-ratio: 4 / 5;
  object-position: center 54%;
}

.continuity__visual img {
  width: 100%;
  object-fit: cover;
}

.continuity__visual figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.continuity__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 100px 0 0;
  padding: 0;
  list-style: none;
}

.continuity__steps li {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px 0;
  border-top: 1px solid var(--ink);
}

.continuity__steps li + li {
  padding-left: 18px;
  border-left: 1px solid rgba(11, 11, 13, 0.11);
}

.continuity__steps span,
.continuity__steps small {
  color: var(--muted);
  font-size: 12px;
}

.continuity__steps strong {
  margin-top: 34px;
  font: 400 clamp(30px, 2.7vw, 44px)/0.96 var(--display);
  letter-spacing: -0.03em;
}

.continuity__steps small {
  margin-top: auto;
}

/* Approach */

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

.approach-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(72px, 7vw, 112px) 0 0;
  padding: 0;
  list-style: none;
}

.approach-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
}

.approach-steps li {
  position: relative;
  min-height: 360px;
  padding: 0 24px 24px 0;
}

.approach-steps li + li {
  padding-left: 24px;
}

.approach-steps span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 12px;
}

.approach-steps h3 {
  margin: 72px 0 24px;
  font-size: clamp(33px, 2.9vw, 48px);
  line-height: 0.95;
}

.approach-steps p {
  max-width: 290px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.approach__link {
  margin-top: 42px;
}

/* Capabilities */

.capabilities {
  background: var(--paper-cool);
}

.capabilities__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.capabilities__intro > :first-child {
  grid-column: 1 / span 8;
}

.capabilities__intro .eyebrow {
  margin-bottom: 38px;
}

.capabilities__lead {
  grid-column: 9 / -1;
  max-width: 560px;
  padding-bottom: 5px;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.46;
  letter-spacing: -0.015em;
}

.capabilities__lead p {
  margin-bottom: 18px;
}

.capabilities__lead p:last-child {
  margin-bottom: 0;
}

.capabilities__lead strong {
  font-weight: 500;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(54px, 5vw, 80px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.capability {
  min-width: 0;
  min-height: 410px;
  padding: 24px clamp(24px, 2.25vw, 40px) 34px;
  border-right: 1px solid var(--line-dark);
}

.capability:last-child {
  border-right: 0;
}

.capability__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(68px, 6vw, 96px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.capability__meta strong {
  color: var(--ink);
  font-weight: 500;
}

.capability h3 {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: clamp(46px, 3.9vw, 66px);
  line-height: 0.92;
}

.capability p {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.52;
}

.capability__description {
  min-height: 74px;
}

.capability__scope {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.capabilities__outro {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
  align-items: start;
  margin-top: 48px;
}

.capabilities__outro > p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.48;
}

.capabilities__outro .text-link {
  justify-self: end;
}

/* Contact and footer */

.contact {
  padding-top: var(--section-space);
  background: var(--black);
  color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(70px, 8vw, 140px);
}

.contact__main .eyebrow {
  margin-bottom: 40px;
}

.contact__main h2 {
  max-width: 980px;
  margin-bottom: 50px;
}

.contact__main > p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 18px;
}

.contact__main .button {
  margin-top: 24px;
}

.contact__channels {
  align-self: end;
  font-style: normal;
}

.contact__channels > a,
.contact__phone,
.contact__office {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line-light);
  color: var(--white);
  text-decoration: none;
}

.contact__channels > a:last-of-type,
.contact__office {
  border-bottom: 1px solid var(--line-light);
}

.contact__channels span,
.contact__phone span,
.contact__office span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__channels strong,
.contact__phone strong,
.contact__office strong {
  font: 400 clamp(26px, 2.4vw, 39px)/0.98 var(--display);
  letter-spacing: -0.03em;
}

.contact__channels i {
  align-self: end;
  font-style: normal;
  transition: transform 180ms ease;
}

.contact__channels > a:hover i {
  transform: translate(4px, -3px);
}

.contact__phone a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
}

.contact__phone button {
  align-self: end;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 12px;
}

.site-footer {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 130px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.site-footer img {
  width: 185px;
}

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

.site-footer nav a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.site-footer > span {
  justify-self: end;
}

.copy-feedback {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: none;
}

/* Reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.js [data-reveal].is-visible,
.js.is-static [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Tablet */

@media (max-width: 1199px) {
  :root {
    --gutter: 32px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .brand img {
    width: 170px;
  }

  .hero h1 {
    font-size: clamp(72px, 7.5vw, 94px);
  }

  .hero__support {
    grid-template-columns: 5fr 4fr 3fr;
  }

  .proof-rail a {
    min-height: 126px;
    padding-inline: 18px;
  }

  .proof-rail strong {
    font-size: 24px;
  }

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

  .founder__copy .text-link {
    grid-column: 1;
  }

  .capabilities__intro > :first-child {
    grid-column: 1 / span 7;
  }

  .capabilities__lead {
    grid-column: 8 / -1;
  }

  .capability {
    min-height: 430px;
    padding-inline: 24px;
  }

  .capability__meta {
    margin-bottom: 62px;
  }
}

@media (max-width: 959px) {
  :root {
    --gutter: 24px;
  }

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

  .desktop-nav {
    display: none;
  }

  .header-cta {
    margin-right: 64px;
  }

  .menu-toggle {
    position: absolute;
    right: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 16px;
    height: 1px;
    background: var(--white);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    display: flex;
  }

  .section-intro--split > :first-child,
  .section-intro--split > :last-child {
    grid-column: 1 / -1;
  }

  .section-intro--split > :last-child {
    margin-top: 26px;
  }

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

  .situation-proof {
    position: relative;
    top: auto;
  }

  .situation-proof > img {
    height: min(70vw, 610px);
  }

  .founders__intro h2 {
    grid-column: 1 / span 10;
  }

  .founders__intro > p:last-child {
    grid-column: 9 / -1;
  }

  .founder-composition {
    grid-template-columns: 1fr 1fr;
  }

  .founder--alexander {
    margin-top: 70px;
  }

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

  .founders__principle .text-link {
    grid-column: 2;
  }

  .project-story__meta {
    grid-column: 1 / span 3;
  }

  .project-story__header h3,
  .project-story__summary {
    grid-column: 4 / -1;
  }

  .project-story__summary {
    margin-top: 20px;
  }

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

  .approach-steps::before {
    display: none;
  }

  .approach-steps li {
    min-height: 330px;
    border-top: 1px solid var(--line-dark);
  }

  .approach-steps li:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .capabilities__intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .capabilities__intro > :first-child,
  .capabilities__lead {
    grid-column: 1;
  }

  .capabilities__lead {
    max-width: 720px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 0;
    padding: 24px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .capability:last-child {
    border-bottom: 0;
  }

  .capability__meta {
    margin-bottom: 46px;
  }

  .capability__description {
    min-height: 0;
  }

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

  .contact__channels {
    max-width: 720px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --gutter: 18px;
    --section-space: 82px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 12px);
  }

  body {
    font-size: 17px;
  }

  .site-header {
    padding-inline: var(--gutter);
  }

  .brand img {
    width: 142px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    right: 14px;
  }

  h2 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.96;
  }

  .eyebrow {
    font-size: 10px;
  }

  .section-intro .eyebrow,
  .contact__main .eyebrow {
    margin-bottom: 26px;
  }

  .lead-stack,
  .section-lead {
    font-size: 18px;
    line-height: 1.45;
  }

  .hero {
    min-height: 0;
  }

  .hero__main {
    min-height: 710px;
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(48px, 13.5vw, 61px);
    line-height: 0.9;
    letter-spacing: -0.046em;
  }

  .hero-line {
    white-space: nowrap;
  }

  .hero-copy--desktop {
    display: none;
  }

  .hero-copy--mobile {
    display: block;
  }

  .hero-copy--mobile .inline-keycaps {
    display: inline-flex;
    width: 1.26em;
    height: 0.76em;
    margin: 0 0.06em 0 0;
    vertical-align: -0.12em;
  }

  .inline-project {
    width: 1.72em;
    height: 0.60em;
    margin-left: 0;
  }

  .hero__support {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 56px;
    padding-top: 20px;
  }

  .hero__method {
    font-size: 29px;
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero__actions {
    gap: 15px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .proof-rail {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .proof-rail::-webkit-scrollbar {
    display: none;
  }

  .proof-rail a {
    min-width: 78vw;
    min-height: 118px;
    scroll-snap-align: start;
  }

  .section-intro--split,
  .founders__intro,
  .continuity__intro {
    display: block;
  }

  .section-intro--split > :last-child {
    margin-top: 34px;
  }

  .situations__body {
    gap: 38px;
    margin-top: 56px;
  }

  .situation-proof > img {
    height: 72vw;
    min-height: 270px;
  }

  .situation-proof figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .situation-proof figcaption small {
    max-width: 260px;
    text-align: left;
  }

  .situation-item {
    grid-template-columns: 30px 1fr 18px;
    gap: 10px;
    min-height: 86px;
  }

  .situation-item strong {
    font-size: clamp(27px, 8vw, 34px);
  }

  .founders__intro h2 {
    margin-top: 28px;
  }

  .founders__intro > p:last-child {
    margin-top: 32px;
    font-size: 16px;
  }

  .founder-composition {
    grid-template-columns: 1fr;
    gap: 76px;
    margin-top: 60px;
  }

  .founder--alexander {
    margin-top: 0;
  }

  .founder--evgeny .founder__image {
    aspect-ratio: 4 / 5;
  }

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

  .founder__copy .text-link {
    grid-column: auto;
  }

  .founders__principle {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 80px;
  }

  .founders__principle .text-link {
    grid-column: 1;
    justify-self: start;
  }

  .project-scroll {
    margin-top: 62px;
  }

  .project-story + .project-story {
    margin-top: 104px;
    padding-top: 22px;
  }

  .project-story__header {
    display: block;
  }

  .project-story__meta {
    padding-top: 0;
  }

  .project-story__header h3 {
    margin-top: 24px;
    font-size: clamp(58px, 17vw, 76px);
  }

  .project-story__summary {
    margin-top: 24px;
    padding-top: 0;
  }

  .project-story__summary p {
    font-size: 14px;
  }

  .project-story__gallery,
  .project-story--octo .project-story__gallery {
    display: flex;
    flex-direction: column;
    gap: 42px;
    height: auto;
    margin-top: 42px;
  }

  .project-story__gallery figure,
  .project-story--octo .project-story__gallery figure,
  .project-story--orbit360 .project-story__gallery figure {
    position: static;
    width: 100%;
    margin: 0;
  }

  .project-story__gallery figure:nth-child(2),
  .project-story--octo .project-story__gallery figure:nth-child(2) {
    width: 72%;
    margin-left: auto;
  }

  .project-story__gallery figure:nth-child(3),
  .project-story--octo .project-story__gallery figure:nth-child(3) {
    width: 88%;
  }

  .project-story__gallery figure:nth-child(4),
  .project-story--orbit360 .project-story__gallery figure:nth-child(4) {
    width: 68%;
    margin-left: 8%;
  }

  .project-story--rueporte .project-story__gallery figure:nth-child(4) {
    width: 90%;
    margin-left: auto;
  }

  .project-story__gallery figure:nth-child(5),
  .project-story--orbit360 .project-story__gallery figure:nth-child(5) {
    width: 90%;
    margin-left: auto;
  }

  .projects__all {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 80px;
  }

  .continuity__intro h2 {
    margin-top: 28px;
  }

  .continuity__intro > div {
    margin-top: 34px;
  }

  .continuity__visual {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 54px;
  }

  .continuity__visual figure:last-child {
    width: 78%;
    margin-left: auto;
  }

  .continuity__steps {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .continuity__steps li,
  .continuity__steps li + li {
    min-height: 142px;
    padding: 16px 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .continuity__steps strong {
    margin-top: 20px;
  }

  .approach-steps {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .approach-steps li,
  .approach-steps li + li,
  .approach-steps li:nth-child(4) {
    min-height: 0;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 18px;
    padding: 22px 0 28px;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .approach-steps span {
    grid-row: 1 / span 2;
  }

  .approach-steps h3 {
    margin: 7px 0 18px;
  }

  .approach-steps p {
    max-width: none;
  }

  .capability h3 {
    font-size: 43px;
  }

  .capabilities__intro .eyebrow {
    margin-bottom: 26px;
  }

  .capabilities__lead {
    font-size: 18px;
  }

  .capability-list {
    margin-top: 48px;
  }

  .capability__meta {
    margin-bottom: 38px;
  }

  .capability__scope {
    margin-top: 24px;
  }

  .capabilities__outro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .capabilities__outro .text-link {
    justify-self: start;
  }

  .contact__grid {
    gap: 72px;
  }

  .contact__main h2 {
    margin-bottom: 34px;
  }

  .contact__main > p {
    font-size: 16px;
  }

  .contact__main .button {
    width: 100%;
  }

  .contact__channels strong,
  .contact__phone strong,
  .contact__office strong {
    font-size: clamp(25px, 7.6vw, 34px);
  }

  .site-footer {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 90px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > span {
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(46px, 13.4vw, 52px);
  }

  .hero-copy--mobile .inline-keycaps {
    width: 1.2em;
  }

  .inline-project {
    width: 1.62em;
  }
}

@media (max-width: 359px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero__method {
    font-size: 26px;
  }

  .button {
    padding-inline: 14px;
    font-size: 14px;
  }
}

/* Match the desktop hero scale and placement used on the Capabilities page. */
@media (min-width: 768px) {
  .hero .shell {
    width: min(1540px, calc(100% - 80px));
    margin-inline: auto;
  }

  .hero__main::before {
    content: "";
    display: block;
    flex: 0 0 11px;
  }

  .hero h1 {
    width: min(100%, 1540px);
    margin: clamp(60px, 7vh, 96px) 0 clamp(70px, 9vh, 132px);
    font-size: clamp(76px, 7.2vw, 148px);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(72px, 8.5vw, 112px);
  }
}

/* Match the desktop hero scale and placement used on the Capabilities page. */
@media (min-width: 768px) {
  .hero .shell {
    width: min(1540px, calc(100% - 80px));
    margin-inline: auto;
  }

  .hero__main::before {
    content: "";
    display: block;
    flex: 0 0 11px;
  }

  .hero h1 {
    width: min(100%, 1540px);
    margin: clamp(60px, 7vh, 96px) 0 clamp(70px, 9vh, 132px);
    font-size: clamp(76px, 7.2vw, 148px);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(72px, 8.5vw, 112px);
  }
}

@media (forced-colors: active) {
  .gradient-text {
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: currentColor;
  }

  .button,
  .menu-toggle {
    border: 1px solid ButtonText;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Integrated 3D GB hero */

.hero {
  background: #000;
}

.hero__gb {
  position: absolute;
  z-index: 2;
  top: clamp(-100px, -5vh, -48px);
  right: clamp(-220px, -8vw, -88px);
  width: min(86vw, 1320px);
  min-width: 760px;
  aspect-ratio: 1.2 / 1;
  contain: layout;
}

.hero__gb .gb-hero__fallback svg {
  width: 74%;
  height: 74%;
}

@media (min-width: 768px) {
  .hero__main {
    flex: 0 0 clamp(860px, calc(100svh - var(--header-h) - 18px), 1040px);
    height: clamp(860px, calc(100svh - var(--header-h) - 18px), 1040px);
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  .hero__main::before {
    content: none;
    display: none;
  }

  .hero h1 {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(225px, 25vh, 300px);
    left: var(--gutter);
    width: auto;
    margin: 0;
    transform: translateY(0.9em);
  }

  .hero__support {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(28px, 4vh, 54px);
    left: var(--gutter);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .hero__main {
    flex-basis: 900px;
    height: 900px;
    min-height: 0;
  }

  .hero .hero__gb {
    /* Keep the component's own relative positioning from shifting the canvas. */
    position: absolute;
    top: -34px;
    right: -8vw;
    width: min(112vw, 1040px);
    min-width: 700px;
  }

  .hero h1 {
    bottom: clamp(302px, calc(654px - 34.375vw), 390px);
  }

  .hero__support {
    bottom: 32px;
  }
}


@media (max-width: 767px) {
  .hero__main {
    min-height: 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  .hero__gb {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    align-self: center;
    width: min(138vw, 560px);
    min-width: 0;
    aspect-ratio: 1.18 / 1;
    margin: -58px 0 0;
  }

  .hero h1 {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
  }

  .hero__support {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 72px;
  }
}

/* Case section navigation scrolls with the page, independently of the site header. */
main > nav[aria-label="Разделы кейса"] {
  position: relative !important;
  top: auto !important;
}

/* Common section-link feedback; existing case palettes remain authoritative. */
main > nav:is([aria-label="Разделы кейса"], [aria-label="Навигация по кейсу"]) > a {
  transition: background-color 180ms ease, color 180ms ease;
}

main > nav:is([aria-label="Разделы кейса"], [aria-label="Навигация по кейсу"]) > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

:is(.cheesedairy-case, .complexis-case, .dust-case, .gkb-case, .greenday-case,
    .hormann-case, .infinite-case, .nii-case, .octo-case, .orange-black-case,
    .orbit-case, .place-case, .royal-wedding-case, .sea-blast-case, .smi-case,
    .souvenir-case, .yourbackpack-case) main > nav[aria-label="Разделы кейса"] > a:is(:hover, :focus-visible) {
  background: #1469e8;
  color: #fff;
}

:is(.cheesedairy-case, .complexis-case, .dust-case, .gkb-case, .greenday-case,
    .hormann-case, .infinite-case, .nii-case, .octo-case, .orange-black-case,
    .orbit-case, .place-case, .royal-wedding-case, .sea-blast-case, .smi-case,
    .souvenir-case, .yourbackpack-case) main > nav[aria-label="Разделы кейса"] > a:is(:hover, :focus-visible) span {
  color: inherit;
}

/* Full contact composition for cases that previously used a CTA-only layout. */
.contact.case-contact--standard {
  padding-top: clamp(96px, 10vw, 180px);
}

.case-contact--standard .contact__grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
}

.case-contact--standard .contact__main h2 {
  margin: 0 0 42px;
  font-size: clamp(56px, 6vw, 108px);
  line-height: .92;
}

.case-contact--standard .contact__main .eyebrow {
  margin: 0 0 40px;
}

.case-contact--standard .contact__main > p:not(.eyebrow) {
  max-width: 720px;
  line-height: 1.5;
}

.case-contact--standard .contact__channels {
  min-width: 0;
}

.case-contact--standard .contact__channels strong {
  overflow-wrap: anywhere;
}

.case-contact--standard .site-footer nav {
  flex-wrap: wrap;
}

.dust-case .case-contact--standard h2 { color: var(--dust-lime); }
.dust-case .case-contact--standard .button { background: var(--dust-lime); color: var(--dust-ink); }
.royal-wedding-case .case-contact--standard h2 { color: var(--royal-pink); }
.place-case .case-contact--standard h2 { color: var(--place-paper); }
.cheesedairy-case .case-contact--standard h2 { color: var(--cheese-paper-light); }

@media (max-width: 1100px) {
  .case-contact--standard .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .case-contact--standard .contact__main h2 { font-size: clamp(48px, 13vw, 72px); }
}

@media (prefers-reduced-motion: reduce) {
  main > nav:is([aria-label="Разделы кейса"], [aria-label="Навигация по кейсу"]) > a { transition: none !important; }
}
