[data-hero-parallax] {
  --hero-parallax-y: 0px;
  translate: 0 var(--hero-parallax-y);
  will-change: translate;
}

/* Keep the dark bottom fade aligned with the front screen's maximum parallax rise. */
.hero-variants > section:first-child {
  -webkit-mask-image: linear-gradient(#000 calc(65% - 112px), #0000 100%);
  mask-image: linear-gradient(#000 calc(65% - 112px), #0000 100%);
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-parallax] {
    translate: none;
    will-change: auto;
  }
}

@media (min-width: 768px) {
  .hero-variants > section > div {
    padding-top: 8rem;
  }
}

/* Compact Russian hero copy without changing the screen composition. */
.hero-variants > section > div {
  gap: 2.5rem;
  padding-top: 6rem;
}

.hero-variants > section > div > div:first-child {
  gap: 1.25rem;
}

.hero-variants h1 {
  font-size: 1.8rem;
  line-height: 1.15;
}

.hero-variants h1 + p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero-variants h1 + p + div {
  margin-top: 0.75rem;
}

.hero-variants h1 + p + div + div {
  margin-top: 0.5rem;
}

.hero-social-placeholder {
  min-height: 3rem;
  align-items: center;
  visibility: hidden;
}

.about-company__section {
  overflow-x: clip;
}

.section-anchor-target {
  scroll-margin-top: 150px;
}

html {
  scroll-behavior: smooth;
}

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

[data-site-nav] {
  transition: color 180ms ease-out;
}

[data-site-nav].is-active {
  color: var(--foreground);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-foreground) 78%, white);
  outline-offset: 3px;
}

.about-company__content {
  gap: 2rem;
}

.about-solutions-shell {
  margin-top: 4rem;
}

.solutions__section .about-solutions-shell {
  margin-top: 0;
}

.how-we-work__section .about-solutions-heading {
  margin-bottom: 0;
}

.how-we-work__section {
  padding-top: 8rem;
}

@media (min-width: 768px) {
  .how-we-work__section {
    padding-top: 10rem;
  }
}

.about-solutions-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  text-align: center;
}

.about-solutions-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-solutions-description {
  max-width: 38rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: balance;
}

.solution-schedule-visual {
  min-height: clamp(8rem, 22vw, 15rem);
}

.solution-schedule-visual > [data-slot="glow"] {
  left: 0;
}

.solution-schedule-visual > [data-slot="glow"] > div:nth-child(2) {
  --tw-gradient-from: color-mix(in oklab, var(--brand) 30%, transparent);
  translate: 0 -30rem;
}

.solution-schedule-layers {
  position: absolute;
  top: clamp(-2.5rem, calc(10vw - 8.5rem), -1.5rem);
  left: 50%;
  width: 110%;
  transform: translateX(-50%);
}

/* Keep the hero's horizontal offsets; only open the vertical cascade. */
.solution-schedule-layers > div:first-child,
.solution-schedule-layers > div:nth-child(2) {
  height: 2.5rem;
}

.solution-schedule-layers--ais > div:nth-child(1) {
  translate: 0 220px;
}

.solution-schedule-layers--ais > div:nth-child(2) {
  translate: 50px 80px;
}

.solution-schedule-layers--ais > div:nth-child(3) {
  translate: 50px -50px;
}

.solution-schedule-layers--cms > div:nth-child(1) {
  translate: 0 220px;
}

.solution-schedule-layers--cms > div:nth-child(2) {
  translate: 50px 80px;
}

.solution-schedule-layers--cms > div:nth-child(3) {
  translate: 50px -50px;
}

.solution-schedule-layers img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.solution-schedule-layers [data-slot="mockup-frame"] {
  padding: 0.25rem;
}

.solution-schedule-layers,
.solution-schedule-layers > div,
.solution-schedule-layers [data-slot="mockup-frame"],
.solution-schedule-layers [data-slot="mockup"],
.solution-schedule-layers img {
  animation: none !important;
  transition: none !important;
  opacity: 1;
}

@media (max-width: 767px) {
  .solution-schedule-visual {
    min-height: 12rem;
  }

  .solution-schedule-layers {
    top: -4rem;
    width: 120%;
  }
}

@media (min-width: 1200px) {
  .solution-schedule-layers--ais {
    translate: 0 -4rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .solution-schedule-layers--ais {
    translate: 0 -1.5rem;
  }
}

.solution-card-actions__break {
  display: none;
}

@media (min-width: 1200px) {
  .solution-card-actions--ais .solution-card-actions__break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
}

.about-company__logo {
  margin-top: -0.75rem;
}

.about-company__facts {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-inline: auto;
}

.about-company__fact {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-self: center;
  gap: 0.875rem;
  text-align: left;
}

.about-company__fact-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  color: var(--foreground);
  opacity: 0.72;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.about-company__fact-icon--image {
  width: 2.25rem;
  height: 2.25rem;
  flex-basis: 2.25rem;
  object-fit: contain;
  filter: invert(1);
}

.about-company__fact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
  white-space: nowrap;
}

.about-company__fact-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.about-company__fact-copy span {
  color: var(--muted-foreground);
  font-size: 0.6375rem;
  line-height: 1.25;
}

.about-company__fact-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  border-radius: 999px;
  background: var(--brand);
}

.about-company__fact-label-icon {
  width: 0.75rem;
  height: 0.75rem;
  object-fit: contain;
}

.about-company__story {
  --about-story-measure: 63ch;
  --about-story-inset: clamp(0.75rem, 1.5vw, 1.25rem);
  --about-story-panel-padding: clamp(4rem, 6vw, 5rem);
  --about-story-separator-gap: 3.5rem;
  --about-story-copy-offset: var(--about-story-separator-gap);
  display: flex;
  width: min(100%, calc(var(--about-story-measure) + 11rem + var(--about-story-inset)));
  flex-direction: column;
  align-items: flex-start;
  gap: var(--about-story-separator-gap);
  margin-top: -2rem;
  padding-left: var(--about-story-inset);
  padding-top: var(--about-story-copy-offset);
  position: relative;
  isolation: isolate;
  text-align: left;
}

.about-company__story-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: var(--about-story-separator-gap);
  padding-block: calc(clamp(3rem, 5vw, 4rem) + 0.5rem);
  padding-inline: calc(var(--about-story-panel-padding) + 0.5rem);
  border: 0;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.about-company__story-panel::before {
  position: absolute;
  inset: 0.5rem;
  border-color: transparent;
  border-radius: 0.625rem;
  background: var(--background);
  box-shadow: none;
  content: "";
  z-index: 0;
  pointer-events: none;
}

.about-company__story-panel::after {
  position: absolute;
  inset: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 12%, transparent);
  border-radius: 0.625rem;
  content: "";
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 1.5rem, transparent 8rem);
  mask-image: linear-gradient(to bottom, #000 0, #000 1.5rem, transparent 8rem);
}

.about-company__story-paragraph {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  color: color-mix(in srgb, var(--foreground) 75%, var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.75;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .about-company__facts {
    display: grid;
    width: min(100%, 22rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    transform: translateX(0.75rem);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--border) 12%, transparent), transparent) 1;
  }

  .about-company__fact {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--border) 12%, transparent), transparent) 1;
  }

  .about-company__fact-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-basis: 2.25rem;
    margin-top: 0.125rem;
  }

  .about-company__fact-copy {
    white-space: normal;
  }

  .about-company__fact-copy strong {
    font-size: 1rem;
    line-height: 1.25;
  }

  .about-company__fact-copy span {
    font-size: 0.8125rem;
    line-height: 1.45;
    overflow-wrap: normal;
  }

  .about-company__story {
    --about-story-inset: 0px;
    --about-story-panel-padding: 1.25rem;
    --about-story-copy-offset: var(--about-story-separator-gap);
  }

  .about-company__story-panel {
    padding: calc(1.25rem + 0.5rem);
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  .about-company__facts {
    display: grid;
    width: min(100%, 62rem);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem 0;
  }

  .about-company__fact {
    grid-column: span 2;
  }

  .about-company__fact:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .about-company__fact:nth-child(5) {
    grid-column: 4 / span 2;
  }

}

/* Header and hero use the same container inset at every viewport. */
.site-menu-trigger {
  order: 2;
}

.site-phone-link {
  flex-shrink: 0;
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.site-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 0.36);
  backdrop-filter: blur(0.2rem);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.site-mobile-menu.is-open .site-mobile-menu-backdrop {
  opacity: 1;
}

.site-mobile-menu-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(20rem, calc(100% - 2rem));
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0.75rem 0 2.5rem rgb(0 0 0 / 0.34);
  backdrop-filter: blur(1rem);
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-mobile-menu.is-open .site-mobile-menu-panel {
  transform: translateX(0);
}

.site-mobile-menu-header {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 0 0.75rem;
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-mobile-menu-close {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
}

.site-mobile-menu-close:hover,
.site-mobile-menu-close:focus-visible {
  color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}

.site-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-mobile-menu a:hover,
.site-mobile-menu a:focus-visible {
  color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}

.site-mobile-menu a.is-active {
  color: var(--foreground);
  background: color-mix(in srgb, var(--brand-foreground) 8%, transparent);
}

body.site-menu-open {
  overflow: hidden;
}

/* Final contact story: centered invitation with an on-demand glass dialog. */
.contact-cta {
  padding-bottom: clamp(3rem, 5vw, 4rem);
  isolation: isolate;
}

.contact-cta__layout {
  display: flex;
  justify-content: center;
}

.contact-cta__glow {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(11rem, 20vw, 16rem);
  overflow: hidden;
  pointer-events: none;
}

.contact-cta__glow::before,
.contact-cta__glow::after {
  position: absolute;
  bottom: -52%;
  left: 50%;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.contact-cta__glow::before {
  width: min(150vw, 96rem);
  height: 150%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 68%);
}

.contact-cta__glow::after {
  bottom: -68%;
  width: min(92vw, 56rem);
  height: 130%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand-foreground) 10%, transparent) 0%, transparent 66%);
}

.contact-cta__intro {
  display: flex;
  width: min(100%, 52rem);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.contact-cta__intro h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.contact-cta__intro p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.contact-cta__action {
  transition: filter 180ms ease-out, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-cta__action:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.contact-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.9);
  backdrop-filter: blur(12px);
  animation: contact-modal-in 180ms ease-out both;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: default;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-form {
  position: relative;
  display: grid;
  width: min(100%, 52rem);
  max-height: calc(100svh - 2rem);
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--border) 22%, transparent);
  border-radius: 1rem;
  background: rgb(9 9 11 / 0.92);
  box-shadow: -12px 16px 48px rgb(0 0 0 / 0.58);
  animation: contact-dialog-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-modal__close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--border) 18%, transparent);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.035);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: border-color 160ms ease-out, color 160ms ease-out, background-color 160ms ease-out;
}

.contact-modal__close:hover {
  border-color: color-mix(in srgb, var(--border) 34%, transparent);
  background: rgb(255 255 255 / 0.06);
  color: var(--foreground);
}

.contact-form__heading,
.contact-form__field--wide {
  grid-column: 1 / -1;
}

.contact-form__heading {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.contact-form__heading h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact-form__heading p,
.contact-form__hint {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
}

.contact-form__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-form__field label {
  color: color-mix(in srgb, var(--foreground) 88%, var(--muted-foreground));
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--border) 18%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  color: var(--foreground);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  height: 2.75rem;
  padding: 0 0.75rem;
}

.contact-form textarea {
  min-height: 7.5rem;
  padding: 0.75rem;
  line-height: 1.5;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: color-mix(in srgb, var(--border) 34%, transparent);
}

.contact-form [aria-invalid="true"] {
  border-color: color-mix(in srgb, var(--destructive-foreground) 68%, transparent);
}

.contact-form__error {
  min-height: 0;
  color: color-mix(in srgb, var(--destructive-foreground) 88%, white);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.contact-form__error:empty {
  display: none;
}

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

.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
}

.contact-form__consent input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin-top: 0.125rem;
  accent-color: var(--brand-foreground);
}

.contact-form__consent a,
.site-footer a:hover {
  color: var(--foreground);
}

.contact-form__consent a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
  text-underline-offset: 0.2em;
}

.contact-form__footer {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 1rem;
}

.contact-form__footer button {
  display: inline-flex;
  min-width: 10.5rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 160ms ease-out, transform 180ms ease-out;
}

.contact-form__footer button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.contact-form__footer button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.contact-form__status {
  flex: 1 1 auto;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.45;
}

.contact-form__status.is-success {
  color: color-mix(in srgb, var(--brand-foreground) 78%, white);
}

.contact-form__status.is-error {
  color: color-mix(in srgb, var(--destructive-foreground) 84%, white);
}

@keyframes contact-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contact-dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Compact corporate footer. */
.site-footer {
  padding-top: 0;
  background: var(--background);
  color: var(--foreground);
}

.site-footer__inner {
  padding-block: clamp(1.5rem, 3vw, 2rem) 1.25rem;
  border-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.site-footer__brand,
.site-footer__column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.site-footer__brand img {
  width: auto;
  height: 2.5rem;
  filter: invert(1);
}

.site-footer__brand p {
  max-width: 31rem;
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.site-footer__column h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.site-footer__column a,
.site-footer__legal a {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color 160ms ease-out;
}

.site-footer__legal {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 10%, transparent);
  color: var(--muted-foreground);
  font-size: 0.6875rem;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 1023px) {
  .contact-cta__intro h2 {
    max-width: 22ch;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

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

  .site-footer__legal nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  .contact-cta__glow {
    height: 9rem;
    transform: translateY(1.5rem);
  }

  .contact-modal {
    align-items: end;
    padding: 0.75rem;
  }

  .contact-form {
    width: 100%;
    max-height: calc(100svh - 1.5rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
    border-radius: 1rem;
  }

  .contact-form__heading,
  .contact-form__field--wide {
    grid-column: auto;
  }

  .contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form__footer button {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .site-footer__column:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .site-footer__legal nav {
    grid-column: auto;
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-footer__details span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-form {
    animation: none;
  }
}

.hero-actions {
  flex-wrap: nowrap;
  width: 100%;
}

.hero-actions > a {
  max-width: 100%;
}

/* Phone composition: the message leads, promotion and product art support it. */
@media (max-width: 639px) {
  .hero-variants > section > div {
    gap: 1.75rem;
    padding-top: 5.5rem;
  }

  .hero-variants > section > div > div:first-child {
    gap: 1rem;
  }

  .hero-promo-source {
    display: inline-flex;
    width: fit-content;
    max-width: 50vw;
    align-items: center;
    gap: 0.25rem 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: clamp(0.375rem, 1.8vw, 0.4375rem);
    font-weight: 500;
    line-height: 1.15;
  }

  .hero-promo-copy {
    min-width: 0;
    white-space: nowrap;
  }

  .hero-promo-source a {
    justify-content: center;
    margin-inline-start: 0;
    font-size: clamp(0.375rem, 1.8vw, 0.4375rem);
    font-weight: 600;
    white-space: nowrap;
  }

  .hero-promo-link-text {
    display: none;
  }

  .hero-promo-source a svg {
    width: 0.625rem;
    height: 0.625rem;
  }

  .hero-variants h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.35rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .hero-variants h1 + p {
    max-width: 31ch;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .hero-variants h1 + p br {
    display: none;
  }

  .hero-variants h1 + p + div {
    margin-top: 0.25rem;
  }

  .hero-variants > section > div > .group {
    margin-top: 3rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-actions > a {
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
  }

  .hero-social-placeholder {
    display: none;
    min-height: 0;
  }

  .hero-variants [data-slot="mockup-frame"] {
    padding: 0.1875rem;
    border-radius: 0.75rem;
  }

  .hero-variants [data-slot="mockup"] {
    border-radius: 0.5rem;
  }
}

@media (min-width: 640px) {
  .hero-promo-source > a {
    margin-inline-start: 0.25rem;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hero-variants > section > div > .group {
    padding-inline: 0;
  }
}

@media (min-width: 768px) {
  .site-mobile-menu {
    display: none !important;
  }
}

/* Once the hero is constrained by its max width, the header no longer needs side padding. */
@media (min-width: 1312px) {
  nav > .max-w-container {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 374px) {
  .site-phone-link {
    width: 2.75rem;
    height: 2.75rem;
    justify-content: center;
  }

  .site-phone-number {
    display: none;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .hero-actions > a {
    min-width: 0;
    flex: 1 1 0;
    gap: 0.375rem;
    padding-right: 0.625rem;
    padding-left: 0.625rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 640px) {
  .hero-variants > section > div {
    padding-top: 7.5rem;
  }

  .hero-variants h1 {
    font-size: 2.4rem;
  }

  .hero-variants h1 + p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-variants h1 {
    font-size: 3rem;
  }
}

/* A restrained native scrollbar that belongs to the dark interface. */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*:hover,
*:focus-within,
html.is-scrolling,
html.is-scrolling * {
  scrollbar-color: color-mix(in srgb, var(--foreground) 36%, transparent) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
  transition: background-color 180ms ease;
}

*:hover::-webkit-scrollbar-thumb,
*:focus-within::-webkit-scrollbar-thumb,
html.is-scrolling::-webkit-scrollbar-thumb,
html.is-scrolling *::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--foreground) 36%, transparent);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--foreground) 52%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  *::-webkit-scrollbar-thumb {
    transition: none;
  }
}

/* 4K desktop: scale the layout, while keeping browser zoom under user control. */
@supports (zoom: 1) {
  @media (min-width: 2560px), (min-width: 1600px) and (min-resolution: 1.5dppx) {
    body {
      zoom: 1.3;
    }
  }
}
