:root {
  color-scheme: light;
  --paper: #f2f0e8;
  --ink: #171815;
  --muted: #6c6d67;
  --line: rgba(23, 24, 21, 0.16);
  --card: #fbfaf6;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}

/* Home */
.masthead-stage {
  min-height: calc(100vh - clamp(12px, 1.5vw, 24px));
  min-height: calc(100svh - clamp(12px, 1.5vw, 24px));
}

.masthead {
  position: fixed;
  z-index: 100;
  top: clamp(12px, 1.5vw, 24px);
  left: 50%;
  display: grid;
  width: calc(100% - clamp(24px, 3vw, 48px));
  min-height: calc(100vh - clamp(24px, 3vw, 48px));
  min-height: calc(100svh - clamp(24px, 3vw, 48px));
  margin: 0;
  place-items: center;
  padding: 48px 24px;
  border: 1px solid rgba(23, 24, 21, 0.06);
  border-radius: clamp(20px, 2.5vw, 36px);
  background: #fff;
  box-shadow: 0 18px 60px rgba(36, 35, 29, 0.07);
  transform: translateX(-50%);
  transition:
    top 680ms cubic-bezier(0.16, 1, 0.3, 1),
    width 680ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 680ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 680ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 680ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 680ms ease;
}

.masthead.is-compact {
  top: 12px;
  width: min(calc(100% - 24px), 1180px);
  min-height: 82px;
  padding: 10px 18px;
  border-radius: 25px;
  box-shadow: 0 14px 42px rgba(36, 35, 29, 0.15);
}

.masthead-slider {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.masthead-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0.05), transparent 24%, transparent 74%, rgba(5, 8, 8, 0.08));
  content: "";
}

.masthead-slide.is-active {
  opacity: 1;
}

.masthead-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}

.masthead-slide-unai img {
  object-position: 58% center;
}

.masthead-slide-egofabula img {
  object-position: center;
}

.masthead-slide-unai.is-active img {
  animation: masthead-slide-unai-move 18s ease-in-out alternate infinite;
}

.masthead-slide-egofabula.is-active img {
  animation: masthead-slide-egofabula-move 20s ease-in-out alternate infinite;
}

.masthead-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: clamp(46px, 4.2vw, 58px);
  height: clamp(46px, 4.2vw, 58px);
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(23, 24, 21, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: clamp(18px, 1.8vw, 24px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.82);
  transition:
    background 180ms ease,
    color 180ms ease,
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead-slider-arrow-previous {
  left: clamp(12px, 1.6vw, 24px);
}

.masthead-slider-arrow-next {
  right: clamp(12px, 1.6vw, 24px);
}

.masthead.is-slider-ready:not(.is-compact):not(.is-phone-game):not(.is-coffee-machine) .masthead-slider-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.masthead-slider-arrow:hover,
.masthead-slider-arrow:focus-visible {
  background: #fff;
  color: var(--ink);
  transform: translateY(-50%) scale(1.06) !important;
}

.masthead.has-slider-image .brand-link {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition-delay: 0s, 0s, 520ms;
}

.masthead.is-slider-scrolling .masthead-slide {
  transition-duration: 280ms;
}

@keyframes masthead-slide-unai-move {
  from {
    transform: scale(1.025) translate3d(-0.35%, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(0.55%, -0.4%, 0);
  }
}

@keyframes masthead-slide-egofabula-move {
  from {
    transform: scale(1.025) translate3d(0.35%, 0.25%, 0);
  }

  to {
    transform: scale(1.065) translate3d(-0.45%, -0.3%, 0);
  }
}

.masthead-about {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 1.4vw, 22px);
  left: 50%;
  width: 176px;
  height: 60px;
  transform: translateX(-50%);
  transition:
    top 680ms cubic-bezier(0.16, 1, 0.3, 1),
    left 680ms cubic-bezier(0.16, 1, 0.3, 1),
    width 460ms cubic-bezier(0.16, 1, 0.3, 1),
    height 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead-about-trigger,
.masthead-about-action {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead-about-trigger {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  gap: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  box-shadow: 0 12px 28px rgba(23, 24, 21, 0.18);
  opacity: 1;
  transform: scale(1);
  transition:
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear;
}

.masthead-about-trigger span:last-child,
.masthead-about-action span:last-child {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead-about-trigger:hover,
.masthead-about-trigger:focus-visible,
.masthead-about-action:hover,
.masthead-about-action:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.masthead-about-trigger:hover span:last-child,
.masthead-about-trigger:focus-visible span:last-child,
.masthead-about-action:hover span:last-child,
.masthead-about-action:focus-visible span:last-child {
  transform: rotate(90deg);
}

.masthead-about-actions {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  visibility: hidden;
  pointer-events: none;
}

.masthead-about-action {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 12px 28px rgba(23, 24, 21, 0.14);
  opacity: 0;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    opacity 160ms ease,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead-about-action:first-child {
  transform: translateX(48%) scale(0.66) rotate(-2deg);
}

.masthead-about-action:last-child {
  transform: translateX(-48%) scale(0.66) rotate(2deg);
}

.masthead.has-slider-image .masthead-about:hover,
.masthead.has-slider-image .masthead-about:focus-within,
.masthead.has-slider-image .masthead-about.is-open {
  width: min(570px, calc(100vw - 64px));
}

.masthead.has-slider-image .masthead-about:hover .masthead-about-trigger,
.masthead.has-slider-image .masthead-about:focus-within .masthead-about-trigger,
.masthead.has-slider-image .masthead-about.is-open .masthead-about-trigger {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.64);
  transition-delay: 0s, 0s, 0s, 0s, 180ms;
}

.masthead.has-slider-image .masthead-about:hover .masthead-about-actions,
.masthead.has-slider-image .masthead-about:focus-within .masthead-about-actions,
.masthead.has-slider-image .masthead-about.is-open .masthead-about-actions {
  visibility: visible;
  pointer-events: auto;
}

.masthead.has-slider-image .masthead-about:hover .masthead-about-action,
.masthead.has-slider-image .masthead-about:focus-within .masthead-about-action,
.masthead.has-slider-image .masthead-about.is-open .masthead-about-action {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0);
}

.masthead.is-compact .masthead-about {
  top: 50%;
  left: 16px;
  width: 146px;
  height: 50px;
  transform: translate(0, -50%);
}

.masthead-contact {
  position: absolute;
  z-index: 2;
  bottom: clamp(14px, 1.4vw, 22px);
  left: 50%;
  width: 176px;
  height: 60px;
  transform: translateX(-50%);
  transition:
    left 680ms cubic-bezier(0.16, 1, 0.3, 1),
    bottom 680ms cubic-bezier(0.16, 1, 0.3, 1),
    width 460ms cubic-bezier(0.16, 1, 0.3, 1),
    height 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead.is-compact .masthead-contact {
  bottom: 50%;
  left: calc(100% - 16px);
  width: 146px;
  height: 50px;
  transform: translate(-100%, 50%);
}

.masthead-contact-trigger,
.masthead-contact-action {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead-contact-trigger {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  gap: 23px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(23, 24, 21, 0.18);
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear;
}

.masthead-contact-trigger span:last-child,
.masthead-contact-action span:last-child {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  transition: transform 180ms ease;
}

.masthead-contact-actions {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.45fr);
  gap: 8px;
  visibility: hidden;
  pointer-events: none;
}

.masthead-contact-action {
  display: flex;
  gap: 14px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  opacity: 0;
  box-shadow: 0 12px 28px rgba(23, 24, 21, 0.14);
  transition:
    background 180ms ease,
    color 180ms ease,
    opacity 160ms ease,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead-contact-action:first-child {
  transform: translateX(56%) scale(0.66) rotate(2deg);
}

.masthead-contact-action:last-child {
  transform: translateX(-33%) scale(0.66) rotate(-2deg);
}

.masthead-contact:hover,
.masthead-contact:focus-within {
  width: min(520px, calc(100vw - 64px));
}

.masthead.is-compact .masthead-contact:hover,
.masthead.is-compact .masthead-contact:focus-within {
  width: min(430px, calc(100vw - 64px));
}

.masthead-contact:hover .masthead-contact-trigger,
.masthead-contact:focus-within .masthead-contact-trigger {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.64);
  transition-delay: 0s, 0s, 180ms;
}

.masthead-contact:hover .masthead-contact-actions,
.masthead-contact:focus-within .masthead-contact-actions {
  visibility: visible;
  pointer-events: auto;
}

.masthead-contact:hover .masthead-contact-action,
.masthead-contact:focus-within .masthead-contact-action {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0);
}

a.masthead-contact-action:hover,
a.masthead-contact-action:focus-visible,
button.masthead-contact-action:hover,
button.masthead-contact-action:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

a.masthead-contact-action:hover span:last-child,
a.masthead-contact-action:focus-visible span:last-child,
button.masthead-contact-action:hover span:last-child,
button.masthead-contact-action:focus-visible span:last-child {
  transform: translateX(3px);
}

button.masthead-contact-action {
  cursor: pointer;
}

.masthead-contact-action.is-disabled {
  color: rgba(242, 240, 232, 0.5);
  cursor: not-allowed;
}

.about-dialog {
  width: min(680px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: clamp(24px, 4vw, 38px);
  background: transparent;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    display 420ms allow-discrete,
    overlay 420ms allow-discrete;
}

.about-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-dialog.is-closing {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
}

@starting-style {
  .about-dialog[open] {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

.about-dialog::backdrop {
  background: rgba(23, 24, 21, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition:
    background 300ms ease,
    -webkit-backdrop-filter 420ms ease,
    backdrop-filter 420ms ease,
    display 420ms allow-discrete,
    overlay 420ms allow-discrete;
}

.about-dialog[open]::backdrop {
  background: rgba(23, 24, 21, 0.38);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.about-dialog.is-closing::backdrop {
  background: rgba(23, 24, 21, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

@starting-style {
  .about-dialog[open]::backdrop {
    background: rgba(23, 24, 21, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

.about-dialog-card {
  position: relative;
  max-height: calc(100svh - 40px);
  padding: clamp(38px, 7vw, 70px);
  overflow-y: auto;
  border: 1px solid rgba(23, 24, 21, 0.07);
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 30px 90px rgba(23, 24, 21, 0.22);
}

.about-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  transition: background 180ms ease, color 180ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-dialog-close span {
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.about-dialog-close:hover,
.about-dialog-close:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: rotate(90deg);
}

.about-dialog-kicker {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-dialog h2 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.about-dialog-copy {
  display: grid;
  gap: 14px;
  max-width: 510px;
  margin-top: clamp(30px, 5vw, 48px);
  color: #3f403b;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
}

.about-dialog-copy p {
  margin: 0;
}

.about-dialog-copy strong {
  color: var(--ink);
  font-weight: 780;
}

.brand-link {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 4px;
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear;
}

.brand-logo {
  width: clamp(280px, 45vw, 560px);
  height: clamp(72px, 12vw, 132px);
  object-fit: cover;
  object-position: center;
  filter: invert(1);
  mix-blend-mode: multiply;
  transition:
    width 680ms cubic-bezier(0.16, 1, 0.3, 1),
    height 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead.is-compact .brand-logo {
  width: 176px;
  height: 42px;
}

.brand-logo-shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-logo-shard {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: invert(1);
  mix-blend-mode: multiply;
  opacity: 0;
  will-change: opacity, transform;
}

.brand-logo-shard-one {
  --shard-x: -13px;
  --shard-y: -11px;
  --shard-x-far: -26px;
  --shard-y-far: -22px;
  --shard-rotation: -1.4deg;
  clip-path: polygon(0 0, 100% 0, 100% 26%, 0 36%);
}

.brand-logo-shard-two {
  --shard-x: 11px;
  --shard-y: -4px;
  --shard-x-far: 22px;
  --shard-y-far: -8px;
  --shard-rotation: 0.8deg;
  clip-path: polygon(0 31%, 100% 22%, 100% 51%, 0 59%);
}

.brand-logo-shard-three {
  --shard-x: -9px;
  --shard-y: 7px;
  --shard-x-far: -18px;
  --shard-y-far: 14px;
  --shard-rotation: -0.7deg;
  clip-path: polygon(0 54%, 100% 46%, 100% 76%, 0 69%);
}

.brand-logo-shard-four {
  --shard-x: 14px;
  --shard-y: 13px;
  --shard-x-far: 28px;
  --shard-y-far: 26px;
  --shard-rotation: 1.2deg;
  clip-path: polygon(0 65%, 100% 72%, 100% 100%, 0 100%);
}

.masthead-claw-scene {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  visibility: hidden;
  pointer-events: none;
}

.masthead-claw-cut {
  position: absolute;
  display: block;
  aspect-ratio: 1600 / 1555;
  overflow: hidden;
  opacity: 0;
  filter:
    drop-shadow(2px 2px 0 rgba(242, 240, 232, 0.94))
    drop-shadow(-2px -2px 1px rgba(23, 24, 21, 0.18))
    drop-shadow(0 13px 15px rgba(23, 24, 21, 0.12));
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity, transform;
}

.masthead-claw-cut img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.masthead-claw-cut-main {
  top: 50%;
  left: 50%;
  width: clamp(430px, 58vw, 720px);
  transform: translate(-50%, -50%) rotate(-31deg) scale(1.04);
  transform-origin: center;
}

.masthead-claw-cut-top {
  top: -10%;
  right: 3%;
  width: clamp(230px, 28vw, 390px);
  transform: rotate(42deg) scale(0.95);
  transform-origin: center;
}

.masthead-claw-cut-bottom {
  bottom: -12%;
  left: 2%;
  width: clamp(230px, 27vw, 370px);
  transform: rotate(-48deg) scale(0.92);
  transform-origin: center;
}

.masthead.is-brand-scratched .brand-logo {
  animation: brand-logo-scratched 3800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.masthead.is-brand-scratched .brand-logo-shard {
  animation: brand-logo-shard 3800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.masthead.is-brand-scratched .masthead-claw-scene {
  visibility: visible;
}

.masthead.is-brand-scratched .masthead-claw-cut {
  animation: masthead-claw-tear 3800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.masthead.is-brand-scratched .masthead-claw-cut-top {
  animation-delay: 80ms;
}

.masthead.is-brand-scratched .masthead-claw-cut-bottom {
  animation-delay: 150ms;
}

@keyframes brand-logo-scratched {
  0%,
  6% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  7% {
    opacity: 1;
    transform: translate(-3px, 1px) scale(1.008);
  }

  9%,
  76% {
    opacity: 0;
    transform: translate(2px, -1px) scale(0.99);
  }

  84% {
    opacity: 1;
    transform: translate(0, 0) scale(1.045);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes brand-logo-shard {
  0%,
  6% {
    opacity: 0;
    transform: translate(0, 0) rotate(0);
  }

  8% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }

  15% {
    opacity: 1;
    transform: translate(var(--shard-x), var(--shard-y)) rotate(var(--shard-rotation));
  }

  24%,
  100% {
    opacity: 0;
    transform: translate(var(--shard-x-far), var(--shard-y-far)) rotate(var(--shard-rotation));
  }
}

@keyframes masthead-claw-tear {
  0%,
  3% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  12%,
  68% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }

  82%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

/* Phone Snake */
.masthead.is-phone-game,
.masthead.is-phone-game.is-compact {
  top: clamp(12px, 1.5vw, 24px);
  width: calc(100% - clamp(24px, 3vw, 48px));
  min-height: calc(100vh - clamp(24px, 3vw, 48px));
  min-height: calc(100svh - clamp(24px, 3vw, 48px));
  padding: 0;
  overflow: hidden;
  border-radius: clamp(20px, 2.5vw, 36px);
  box-shadow: 0 18px 60px rgba(36, 35, 29, 0.12);
}

.masthead .brand-link {
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.masthead.is-phone-game .brand-link,
.masthead.is-phone-game .masthead-about,
.masthead.is-phone-game .masthead-contact {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.masthead.is-phone-game .brand-link {
  transform: scale(0.72);
  transition-delay: 0s, 0s, 360ms;
}

.phone-game[hidden],
.phone-game-win[hidden],
.phone-game-retry[hidden] {
  display: none;
}

.phone-game {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5vw, 20px);
  padding: clamp(20px, 2.7vw, 34px);
  background:
    radial-gradient(circle at 18% 16%, rgba(25, 166, 87, 0.075), transparent 28%),
    radial-gradient(circle at 85% 82%, rgba(23, 24, 21, 0.055), transparent 31%),
    #fff;
  opacity: 1;
  animation: phone-game-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes phone-game-enter {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.phone-game-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}

.phone-game-kicker {
  margin: 0 0 3px;
  color: #138348;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.phone-game-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.3vw, 45px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.phone-game-score {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(23, 24, 21, 0.12);
  border-radius: 999px;
  background: rgba(242, 240, 232, 0.68);
}

.phone-game-phone {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 24, 21, 0.09);
  color: rgba(23, 24, 21, 0.28);
  font-size: 15px;
  transition: color 180ms ease, background 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-game-phone.is-collected {
  background: #1aa657;
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}

.phone-game-score strong {
  min-width: 38px;
  padding: 0 3px 0 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.phone-game-close {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  transition: color 180ms ease, background 180ms ease, transform 220ms ease;
}

.phone-game-close span {
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.phone-game-close:hover,
.phone-game-close:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: rotate(90deg);
}

.phone-game-board {
  position: relative;
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 21, 0.14);
  border-radius: clamp(17px, 2vw, 25px);
  background: rgba(242, 240, 232, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.phone-game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  outline: 0;
  touch-action: none;
}

.phone-game-canvas:focus-visible {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.phone-game-status {
  position: absolute;
  bottom: 10px;
  left: 50%;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 18px rgba(23, 24, 21, 0.08);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-50%);
}

.phone-game-footer {
  display: grid;
  min-height: 46px;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.phone-game-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.phone-game-footer > p span {
  margin-right: 5px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-game-retry {
  grid-column: 2;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-game-controls {
  display: none;
}

.phone-game-win {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(242, 240, 232, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: phone-game-win 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes phone-game-win {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.phone-game-win-card {
  width: min(100%, 570px);
  padding: clamp(27px, 5vw, 52px);
  border: 1px solid rgba(23, 24, 21, 0.1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 24, 21, 0.16);
  text-align: center;
  animation: phone-game-card 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes phone-game-card {
  from {
    transform: translateY(24px) scale(0.94);
  }

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

.phone-game-win-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 18px;
  background: #1aa657;
  color: #fff;
  box-shadow: 0 12px 28px rgba(26, 166, 87, 0.25);
  font-size: 25px;
  transform: rotate(-7deg);
}

.phone-game-win-card > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
}

.phone-game-win-card h3 {
  margin: 0;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.phone-game-call {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(100%, 410px);
  min-height: 62px;
  margin: 28px auto 0;
  padding: 12px 19px 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.phone-game-call > span:first-child,
.phone-game-call > span:last-child {
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phone-game-call strong {
  font-size: clamp(14px, 2.3vw, 19px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.phone-game-call:hover,
.phone-game-call:focus-visible {
  background: #1aa657;
  border-color: #1aa657;
  transform: translateY(-2px);
}

.games-catalog {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 104px 0 112px;
}

.games-section + .games-section {
  margin-top: 108px;
}

.games-heading {
  margin: 0 0 38px;
  font-size: clamp(31px, 5vw, 54px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 7vw, 76px);
  width: min(100%, 780px);
  margin: 0 auto;
}

.games-grid-single {
  grid-template-columns: minmax(0, 352px);
  justify-content: center;
}

.game-card {
  display: block;
  min-width: 0;
  border-radius: 28px;
}

.game-icon-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 25%;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(20, 20, 16, 0.08),
    0 14px 35px rgba(20, 20, 16, 0.12);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.game-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.game-copy {
  display: block;
  padding: 20px 5px 0;
}

.game-title-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: center;
}

.game-title {
  font-size: clamp(23px, 3.2vw, 31px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.game-arrow {
  display: inline-block;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  transform: translateY(-1px);
  transition: color 180ms ease, transform 180ms ease;
}

.game-description {
  display: block;
  max-width: 300px;
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
  opacity: 0;
  text-align: center;
  transform: translateY(-5px);
  transition: max-height 220ms ease, margin-top 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.game-card:hover .game-icon-wrap,
.game-card:focus-visible .game-icon-wrap {
  box-shadow:
    0 2px 4px rgba(20, 20, 16, 0.08),
    0 24px 50px rgba(20, 20, 16, 0.2);
  transform: translateY(-9px) scale(1.015);
}

.game-card:hover .game-arrow,
.game-card:focus-visible .game-arrow {
  color: var(--ink);
  transform: translate(3px, -4px);
}

.game-card:hover .game-description,
.game-card:focus-visible .game-description {
  max-height: 4.5em;
  margin-top: 9px;
  opacity: 1;
  transform: translateY(0);
}

.audiovisual-project {
  width: min(100%, 980px);
  margin: 0 auto;
}

.audiovisual-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(20px, 3vw, 34px);
  box-shadow:
    0 2px 4px rgba(20, 20, 16, 0.08),
    0 24px 50px rgba(20, 20, 16, 0.14);
}

.audiovisual-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.audiovisual-link {
  display: inline-flex;
  min-height: 50px;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.audiovisual-link span:last-child {
  color: var(--muted);
  font-size: 15px;
  transition: color 180ms ease, transform 180ms ease;
}

.audiovisual-link:hover,
.audiovisual-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.audiovisual-link:hover span:last-child,
.audiovisual-link:focus-visible span:last-child {
  color: var(--paper);
  transform: translate(2px, -2px);
}

.contact-page-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Secondary and legal pages */
.hero {
  display: grid;
  min-height: 55vh;
  min-height: 55svh;
  place-items: center;
  padding: 64px 24px;
}

.hero.compact {
  min-height: auto;
  padding: 42px 24px 26px;
}

.hero.alternative {
  min-height: calc(100vh - 130px);
  min-height: calc(100svh - 130px);
}

.logo-link {
  display: block;
  border-radius: 4px;
}

.logo {
  width: clamp(250px, 31vw, 360px);
  height: clamp(64px, 8vw, 84px);
  object-fit: cover;
  object-position: center;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.logo.small {
  width: clamp(210px, 25vw, 300px);
  height: clamp(54px, 6.5vw, 70px);
}

.section {
  padding: 64px 24px 96px;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 88px);
  max-width: 920px;
  margin: 0 auto;
}

.section-title {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.content,
.copy,
.link-list {
  min-width: 0;
  max-width: 680px;
}

.content,
.copy {
  color: #3f403b;
  font-size: 16px;
}

.content p,
.content ul,
.copy p,
.copy ul {
  margin: 0 0 20px;
}

.content h2,
.copy h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.copy h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 17px;
}

.signature {
  padding-top: 26px;
}

.signature-script {
  margin-bottom: 10px;
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 34px;
  line-height: 1.2;
}

.signature-name {
  font-size: 12px;
  font-weight: 750;
}

.signature-role,
.legal-meta {
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.list-link,
.social-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.social-link {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.list-link strong {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.list-link span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Social */
.social-page {
  width: min(calc(100% - 48px), 960px);
  margin: 0 auto;
  padding: 56px 0 112px;
}

.social-intro {
  max-width: 860px;
  margin: 0 auto 96px;
  text-align: center;
}

.social-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.18em;
}

.page-home-link {
  color: #1769c2;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.page-home-link:hover,
.page-home-link:focus-visible {
  color: #0b4381;
}

.social-intro h1 {
  margin: 0;
  font-size: clamp(52px, 8.6vw, 92px);
  font-weight: 780;
  letter-spacing: -0.068em;
  line-height: 0.9;
}

.social-lead {
  max-width: 540px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.45;
}

.social-groups {
  display: grid;
  gap: 84px;
}

.social-group {
  --social-accent: var(--ink);
  max-width: 780px;
  margin: 0 auto;
}

.social-group--unai {
  --social-accent: #dd5c22;
}

.social-group--ego-fabula {
  --social-accent: #1677c9;
}

.social-group--betacle {
  --social-accent: #658b00;
}

.social-group-header {
  display: flex;
  gap: 18px;
  align-items: center;
  width: min(100%, 620px);
  margin: 0 auto 22px;
  padding: 0 8px;
}

.social-group-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(20, 20, 16, 0.12);
}

.social-group-copy {
  display: block;
  min-width: 0;
}

.social-group-copy h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.social-group-copy > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

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

.social-links li:nth-child(odd) {
  transform: translateX(-14px);
}

.social-links li:nth-child(even) {
  transform: translateX(14px);
}

.social-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(100%, 620px);
  min-height: 72px;
  margin: 0 auto;
  padding: 15px 20px 15px 24px;
  border: 1px solid rgba(23, 24, 21, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(36, 35, 29, 0.055);
  transition: border-color 200ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-platform {
  color: var(--social-accent);
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.social-handle {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.social-arrow {
  color: var(--muted);
  font-size: 19px;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: color-mix(in srgb, var(--social-accent) 30%, transparent);
  box-shadow: 0 16px 38px rgba(36, 35, 29, 0.11);
  transform: translateY(-4px);
}

.social-card:hover .social-arrow,
.social-card:focus-visible .social-arrow {
  color: var(--social-accent);
  transform: translate(3px, -3px);
}

.social-thanks {
  margin: 104px 0 0;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: center;
}

.social-back {
  display: flex;
  justify-content: center;
  padding-top: 38px;
}

/* Contact page */
.contact-page {
  width: min(calc(100% - 48px), 960px);
  margin: 0 auto;
  padding: 44px 0 120px;
}

.contact-intro {
  max-width: 820px;
  margin: 0 auto 74px;
  text-align: center;
}

.contact-page-kicker {
  color: var(--muted);
}

.contact-intro h1 {
  margin: 18px 0 28px;
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.contact-intro > p:last-child {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.contact-form,
.contact-success {
  width: min(100%, 790px);
  margin: 0 auto;
  border: 1px solid rgba(23, 24, 21, 0.07);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(36, 35, 29, 0.075);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 6vw, 64px);
}

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

.form-alert {
  margin: 0;
  padding: 14px 17px;
  border: 1px solid rgba(158, 47, 32, 0.2);
  border-radius: 12px;
  background: rgba(158, 47, 32, 0.055);
  color: #8f2d20;
  font-size: 14px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label,
.captcha-field legend {
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field label > span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.form-field input,
.form-field textarea,
.captcha-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23, 24, 21, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input {
  min-height: 48px;
  padding: 6px 0 9px;
}

.form-field textarea {
  min-height: 164px;
  padding: 10px 0 13px;
  line-height: 1.55;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.captcha-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.form-field.has-error input,
.form-field.has-error textarea,
.captcha-field.has-error input {
  border-color: #9e2f20;
}

.field-hint,
.field-error {
  font-size: 12px;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: #8f2d20;
}

.contact-data-notice {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-data-notice legend {
  padding: 0 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-data-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.contact-data-notice a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.contact-location-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}

.contact-location-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.contact-data-notice .contact-location-status {
  color: var(--ink);
  font-weight: 650;
}

.contact-data-notice .contact-location-status:empty {
  display: none;
}

.captcha-field {
  min-width: 0;
  margin: 8px 0 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.captcha-field legend {
  padding: 0 9px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: center;
}

.captcha-question {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.captcha-question span:nth-child(odd) {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--paper);
}

.captcha-field input {
  height: 48px;
  padding: 4px 0;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
}

.captcha-field > .field-hint,
.captcha-field > .field-error {
  display: block;
  margin-top: 13px;
}

.form-submit-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.form-submit-row p {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.contact-submit {
  display: inline-flex;
  gap: 36px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 21px 15px 25px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.05em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: clamp(28px, 6vw, 56px);
}

.contact-success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 24px;
}

.contact-success h2 {
  margin: 8px 0 6px;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.contact-success div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.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;
}

.site-footer {
  padding: 28px 24px 34px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  gap: 24px 48px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.65;
  text-transform: uppercase;
}

.footer-copy {
  flex: 0 0 auto;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, auto));
  gap: 48px;
  margin-left: auto;
}

.footer-group-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: inherit;
}

.footer-links {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-coffee-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-transform: inherit;
  transition: color 160ms ease;
}

.footer-coffee-button span:last-child {
  font-size: 13px;
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-coffee-button:hover,
.footer-coffee-button:focus-visible {
  color: var(--ink);
}

.footer-coffee-button:hover span:last-child,
.footer-coffee-button:focus-visible span:last-child {
  transform: rotate(-9deg) translateY(-2px);
}

/* Coffee machine */
.masthead.is-coffee-machine,
.masthead.is-coffee-machine.is-compact {
  top: clamp(12px, 1.5vw, 24px);
  width: calc(100% - clamp(24px, 3vw, 48px));
  min-height: calc(100vh - clamp(24px, 3vw, 48px));
  min-height: calc(100svh - clamp(24px, 3vw, 48px));
  padding: 0;
  overflow: hidden;
  border-radius: clamp(20px, 2.5vw, 36px);
  box-shadow: 0 18px 60px rgba(36, 35, 29, 0.12);
}

.masthead.is-coffee-machine .brand-link,
.masthead.is-coffee-machine .masthead-about,
.masthead.is-coffee-machine .masthead-contact {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.masthead.is-coffee-machine .brand-link {
  transform: scale(0.72);
  transition-delay: 0s, 0s, 360ms;
}

.coffee-machine[hidden] {
  display: none;
}

.coffee-machine {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.6vw, 18px);
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 17% 20%, rgba(164, 102, 53, 0.09), transparent 27%),
    radial-gradient(circle at 84% 80%, rgba(23, 24, 21, 0.055), transparent 32%),
    #fff;
  animation: coffee-scene-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.coffee-machine.is-leaving {
  animation: coffee-scene-leave 320ms ease both;
}

.coffee-machine-heading {
  position: relative;
  z-index: 3;
}

.coffee-machine-heading p {
  margin: 0 0 3px;
  color: #966136;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.coffee-machine-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.coffee-machine-close {
  position: absolute;
  z-index: 8;
  top: clamp(18px, 2.4vw, 30px);
  right: clamp(18px, 2.4vw, 30px);
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  transition: color 180ms ease, background 180ms ease, transform 220ms ease;
}

.coffee-machine-close span {
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.coffee-machine-close:hover,
.coffee-machine-close:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: rotate(90deg);
}

.coffee-scene {
  position: relative;
  width: min(100%, 610px);
  height: clamp(330px, 55vh, 470px);
  min-height: 330px;
  margin: 0 auto;
  align-self: center;
}

.coffee-appliance {
  position: absolute;
  z-index: 3;
  top: 3%;
  left: 50%;
  width: clamp(190px, 31vw, 272px);
  height: clamp(226px, 36vw, 310px);
  filter: drop-shadow(0 24px 21px rgba(23, 24, 21, 0.14));
  transform: translateX(-50%);
}

.coffee-appliance-top {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 4%;
  width: 92%;
  height: 8%;
  border: 2px solid var(--ink);
  border-radius: 16px 16px 5px 5px;
  background: #252720;
}

.coffee-appliance-body {
  position: absolute;
  top: 6%;
  left: 0;
  width: 100%;
  height: 67%;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 17px 17px 7px 7px;
  background: linear-gradient(145deg, #e9e6dd 0%, #fcfbf7 56%, #d7d4cc 100%);
  box-shadow: inset -12px -10px 20px rgba(23, 24, 21, 0.07);
}

.coffee-brand {
  position: absolute;
  top: 12%;
  left: 10%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.coffee-display {
  position: absolute;
  top: 13%;
  left: 50%;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #292b25;
  color: #d6bd84;
  font-size: clamp(7px, 1.1vw, 10px);
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
}

.coffee-light {
  position: absolute;
  top: 18%;
  right: 13%;
  width: 9px;
  height: 9px;
  border: 1px solid #803817;
  border-radius: 50%;
  background: #d96e2f;
  box-shadow: 0 0 0 5px rgba(217, 110, 47, 0.12), 0 0 11px rgba(217, 110, 47, 0.48);
}

.coffee-dial {
  position: absolute;
  top: 37%;
  right: 11%;
  width: 33px;
  height: 33px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(145deg, #faf9f4, #c9c6bd);
  box-shadow: inset 0 0 0 4px #e9e6de;
}

.coffee-dial::after {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 9px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.coffee-group-head {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: 45%;
  height: 21%;
  border: 2px solid var(--ink);
  border-radius: 7px 7px 13px 13px;
  background: linear-gradient(180deg, #383a33, #191a17);
  transform: translateX(-50%);
}

.coffee-group-head::after {
  position: absolute;
  top: 36%;
  left: 100%;
  width: 54%;
  height: 8px;
  border: 2px solid var(--ink);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: #272922;
  content: "";
}

.coffee-spout {
  position: absolute;
  bottom: -20%;
  left: 50%;
  width: 13px;
  height: 23%;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: #2c2e27;
  transform: translateX(-50%);
}

.coffee-appliance-base {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 29%;
  border: 2px solid var(--ink);
  border-radius: 7px 7px 16px 16px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.12) 9px 11px),
    linear-gradient(180deg, #363830, #1b1c18);
}

.coffee-stream {
  position: absolute;
  z-index: 4;
  top: min(54%, 238px);
  left: 50%;
  width: clamp(4px, 0.7vw, 7px);
  height: clamp(67px, 11vw, 101px);
  border-radius: 999px;
  background: linear-gradient(90deg, #6d341b, #c37d42 46%, #5a2815);
  box-shadow: 0 0 9px rgba(132, 69, 32, 0.24);
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
}

.coffee-cup {
  position: absolute;
  z-index: 5;
  bottom: 4%;
  left: 50%;
  width: 142px;
  height: 105px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  font: inherit;
  opacity: 0;
  transform: translate(-50%, 36px);
  transform-origin: center bottom;
}

.coffee-cup-body {
  position: absolute;
  bottom: 9px;
  left: 8px;
  width: 105px;
  height: 72px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 5px 5px 27px 27px;
  background: #fff;
  box-shadow: inset -8px -7px 12px rgba(23, 24, 21, 0.06), 0 13px 17px rgba(23, 24, 21, 0.12);
}

.coffee-cup-body::after {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  color: var(--ink);
  content: "G";
  font-size: 22px;
  font-weight: 900;
  transform: translateX(-50%);
}

.coffee-liquid {
  position: absolute;
  z-index: 2;
  inset: 5px;
  border-radius: 3px 3px 20px 20px;
  background: linear-gradient(180deg, #9a552a 0%, #5d2a16 30%, #32170e 100%);
  opacity: 0.97;
  transform: translateY(110%);
}

.coffee-cup-handle {
  position: absolute;
  right: 3px;
  bottom: 25px;
  width: 43px;
  height: 42px;
  border: 3px solid var(--ink);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  background: #fff;
  box-shadow: inset -6px -3px 8px rgba(23, 24, 21, 0.05);
}

.coffee-steam {
  position: absolute;
  z-index: 7;
  bottom: 79px;
  width: 12px;
  height: 42px;
  border-left: 3px solid rgba(108, 109, 103, 0.42);
  border-radius: 50%;
  opacity: 0;
}

.coffee-steam-one {
  left: 43px;
}

.coffee-steam-two {
  left: 72px;
  height: 34px;
}

.coffee-counter {
  position: absolute;
  z-index: 2;
  right: -18%;
  bottom: 0;
  left: -18%;
  height: 11%;
  min-height: 25px;
  border-top: 2px solid var(--ink);
  background: linear-gradient(180deg, #dedbd2, #f6f4ed);
  box-shadow: 0 -8px 20px rgba(23, 24, 21, 0.07);
}

.coffee-machine-status {
  position: relative;
  z-index: 4;
  justify-self: center;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(242, 240, 232, 0.82);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.coffee-machine.is-brewing .coffee-appliance {
  animation: coffee-machine-arrive 740ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.coffee-machine.is-brewing .coffee-cup {
  animation: coffee-cup-arrive 680ms 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coffee-machine.is-brewing .coffee-dial {
  animation: coffee-dial-turn 600ms 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.coffee-machine.is-brewing .coffee-light {
  animation: coffee-light-pulse 760ms 760ms ease-in-out infinite alternate;
}

.coffee-machine.is-brewing .coffee-stream {
  animation: coffee-pour 2.55s 1.05s ease-in-out both;
}

.coffee-machine.is-brewing .coffee-liquid {
  animation: coffee-fill 2.35s 1.14s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.coffee-machine.is-ready .coffee-cup {
  cursor: pointer;
  opacity: 1;
  transform: translate(-50%, 0);
  transition: filter 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.coffee-machine.is-ready .coffee-cup:hover,
.coffee-machine.is-ready .coffee-cup:focus-visible {
  filter: drop-shadow(0 10px 12px rgba(23, 24, 21, 0.14));
  transform: translate(-50%, -7px) rotate(-2deg);
}

.coffee-cup:focus-visible {
  outline: 0;
}

.coffee-cup:focus-visible .coffee-cup-body {
  box-shadow:
    inset -8px -7px 12px rgba(23, 24, 21, 0.06),
    0 0 0 4px #fff,
    0 0 0 7px var(--ink),
    0 13px 17px rgba(23, 24, 21, 0.12);
}

.coffee-machine.is-ready .coffee-steam {
  animation: coffee-steam-rise 1.7s ease-in-out infinite;
}

.coffee-machine.is-ready .coffee-steam-two {
  animation-delay: 560ms;
}

.coffee-machine.is-collected .coffee-cup {
  pointer-events: none;
  animation: coffee-cup-take 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes coffee-scene-enter {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coffee-scene-leave {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes coffee-machine-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -28px) scale(0.94);
  }

  62% {
    transform: translate(-50%, 5px) scale(1.01);
  }

  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes coffee-cup-arrive {
  from {
    opacity: 0;
    transform: translate(-25%, 36px) rotate(5deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes coffee-dial-turn {
  from {
    transform: rotate(-55deg);
  }

  to {
    transform: rotate(35deg);
  }
}

@keyframes coffee-light-pulse {
  to {
    background: #ef9a4e;
    box-shadow: 0 0 0 6px rgba(217, 110, 47, 0.14), 0 0 17px rgba(217, 110, 47, 0.72);
  }
}

@keyframes coffee-pour {
  0%, 4% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }

  10%, 88% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0.35);
  }
}

@keyframes coffee-fill {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(8%);
  }
}

@keyframes coffee-steam-rise {
  from {
    opacity: 0;
    transform: translate(2px, 9px) scaleY(0.75);
  }

  38% {
    opacity: 0.62;
  }

  to {
    opacity: 0;
    transform: translate(-5px, -18px) scaleY(1.15);
  }
}

@keyframes coffee-cup-take {
  0% {
    opacity: 1;
    transform: translate(-50%, -7px) rotate(-2deg);
  }

  35% {
    transform: translate(-40%, -22px) rotate(4deg);
  }

  100% {
    opacity: 0;
    transform: translate(42%, -70px) rotate(11deg) scale(0.82);
  }
}

@media (hover: none) {
  .masthead.has-slider-image .masthead-about:not(.is-open):hover,
  .masthead.has-slider-image .masthead-about:not(.is-open):focus-within {
    width: 176px;
  }

  .masthead.has-slider-image .masthead-about:not(.is-open):hover .masthead-about-trigger,
  .masthead.has-slider-image .masthead-about:not(.is-open):focus-within .masthead-about-trigger {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
  }

  .masthead.has-slider-image .masthead-about:not(.is-open):hover .masthead-about-actions,
  .masthead.has-slider-image .masthead-about:not(.is-open):focus-within .masthead-about-actions {
    visibility: hidden;
    pointer-events: none;
  }

  .game-description {
    max-height: 4.5em;
    margin-top: 9px;
    opacity: 1;
    transform: none;
  }

  .phone-game-controls {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    grid-template-rows: repeat(2, 38px);
    gap: 5px;
  }

  .phone-game-controls button {
    display: grid;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(23, 24, 21, 0.18);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    touch-action: manipulation;
  }

  .phone-game-controls button:nth-child(1) {
    grid-column: 2;
  }

  .phone-game-controls button:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .phone-game-controls button:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .phone-game-controls button:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .masthead-stage {
    min-height: calc(100vh - 12px);
    min-height: calc(100svh - 12px);
  }

  .masthead {
    width: calc(100% - 24px);
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    padding: 36px 18px;
    border-radius: 22px;
  }

  .masthead.is-compact {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 68px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .masthead.is-phone-game,
  .masthead.is-phone-game.is-compact {
    top: 12px;
    width: calc(100% - 24px);
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    padding: 0;
    border-radius: 22px;
  }

  .masthead.is-coffee-machine,
  .masthead.is-coffee-machine.is-compact {
    top: 12px;
    width: calc(100% - 24px);
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    border-radius: 22px;
  }

  .masthead-slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .masthead-slider-arrow-previous {
    left: 10px;
  }

  .masthead-slider-arrow-next {
    right: 10px;
  }

  .masthead-slide-unai img {
    object-position: 76% center;
  }

  .masthead-slide-egofabula img {
    object-position: 52% center;
  }

  .coffee-machine {
    padding: 24px;
  }

  .coffee-machine-heading h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .coffee-machine-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .coffee-scene {
    height: 360px;
    min-height: 360px;
  }

  .phone-game {
    gap: 8px;
    padding: 14px;
  }

  .phone-game-hud {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .phone-game-kicker {
    font-size: 8px;
  }

  .phone-game-heading h2 {
    font-size: clamp(18px, 6vw, 26px);
  }

  .phone-game-score {
    gap: 4px;
    padding: 5px 6px;
  }

  .phone-game-phone {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .phone-game-score strong {
    min-width: 30px;
    padding-left: 2px;
    font-size: 10px;
  }

  .phone-game-close {
    width: 38px;
    height: 38px;
  }

  .phone-game-board,
  .phone-game-canvas {
    min-height: 0;
  }

  .phone-game-footer {
    min-height: 81px;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .phone-game-footer > p {
    display: none;
  }

  .phone-game-retry {
    grid-column: 1;
    justify-self: start;
  }

  .phone-game-controls {
    grid-column: 2;
  }

  .phone-game-win {
    padding: 12px;
  }

  .phone-game-win-card {
    padding: 27px 18px;
    border-radius: 22px;
  }

  .phone-game-call {
    gap: 8px;
    margin-top: 22px;
    padding-right: 15px;
    padding-left: 17px;
  }

  .brand-logo {
    width: min(82vw, 360px);
    height: clamp(72px, 24vw, 96px);
  }

  .masthead-about {
    height: 56px;
  }

  .masthead.has-slider-image .masthead-about:hover,
  .masthead.has-slider-image .masthead-about:focus-within,
  .masthead.has-slider-image .masthead-about.is-open {
    width: calc(100vw - 44px);
  }

  .masthead-about-actions {
    gap: 6px;
  }

  .masthead-about-action {
    gap: 7px;
    padding: 0 11px;
    font-size: clamp(7px, 2.3vw, 10px);
    letter-spacing: 0.025em;
  }

  .masthead.is-compact .masthead-about {
    left: 10px;
    width: 104px;
    height: 44px;
  }

  .masthead.is-compact .masthead-about-trigger {
    gap: 8px;
    padding: 0 12px;
    font-size: 10px;
  }

  .masthead-contact {
    height: 56px;
  }

  .masthead.is-compact .masthead-contact {
    left: calc(100% - 10px);
    width: 104px;
    height: 44px;
  }

  .masthead.is-compact .masthead-contact-trigger {
    gap: 10px;
    padding: 0 13px;
    font-size: 10px;
  }

  .masthead.is-compact .brand-logo {
    width: 104px;
    height: 29px;
  }

  .masthead-contact:hover,
  .masthead-contact:focus-within {
    width: calc(100vw - 44px);
  }

  .masthead.is-compact .masthead-contact:hover,
  .masthead.is-compact .masthead-contact:focus-within {
    width: calc(100vw - 36px);
  }

  .masthead-contact-actions {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.38fr);
    gap: 6px;
  }

  .masthead-contact-action {
    gap: 7px;
    padding: 0 14px;
    font-size: clamp(9px, 3vw, 11px);
    letter-spacing: 0.055em;
  }

  .about-dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 24px;
  }

  .about-dialog-card {
    max-height: calc(100svh - 24px);
    padding: 58px 24px 34px;
  }

  .about-dialog-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .about-dialog h2 {
    max-width: 420px;
    font-size: clamp(38px, 12vw, 54px);
  }

  .about-dialog-copy {
    margin-top: 30px;
    font-size: 16px;
  }

  .games-catalog {
    width: min(calc(100% - 40px), 430px);
    padding: 76px 0 80px;
  }

  .games-section + .games-section {
    margin-top: 78px;
  }

  .games-heading {
    margin-bottom: 30px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .games-grid,
  .games-grid-single {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    width: min(100%, 340px);
  }

  .game-copy {
    padding-top: 17px;
  }

  .game-title {
    font-size: 27px;
  }

  .game-description {
    max-height: 4.5em;
    margin-top: 9px;
    opacity: 1;
    transform: none;
  }

  .section {
    padding: 42px 20px 72px;
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title {
    margin: 0;
  }

  .list-link {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .button {
    width: 100%;
  }

  .social-page {
    width: min(calc(100% - 32px), 520px);
    padding: 34px 0 76px;
  }

  .social-intro {
    margin-bottom: 70px;
  }

  .social-intro h1 {
    font-size: clamp(45px, 14vw, 68px);
    line-height: 0.92;
  }

  .social-lead {
    margin-top: 24px;
  }

  .social-groups {
    gap: 66px;
  }

  .social-group-header {
    gap: 14px;
    padding: 0 4px;
  }

  .social-group-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .social-group-copy h2 {
    font-size: 22px;
  }

  .social-group-copy > span {
    font-size: 12px;
  }

  .social-links li:nth-child(n) {
    transform: none;
  }

  .social-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    min-height: 70px;
    padding: 14px 17px 14px 19px;
    border-radius: 19px;
  }

  .social-platform {
    font-size: 23px;
  }

  .social-handle {
    grid-column: 1;
    font-size: 12px;
  }

  .social-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .social-thanks {
    margin-top: 78px;
  }

  .social-back .button {
    width: auto;
  }

  .contact-page {
    width: min(calc(100% - 28px), 520px);
    padding: 28px 0 76px;
  }

  .contact-intro {
    margin-bottom: 52px;
  }

  .contact-intro h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .contact-form,
  .contact-success {
    border-radius: 22px;
  }

  .contact-form {
    gap: 28px;
    padding: 27px 22px;
  }

  .captcha-field {
    padding: 22px 17px;
  }

  .contact-data-notice {
    padding: 22px 17px;
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 12px;
  }

  .captcha-question {
    gap: 6px;
    font-size: 22px;
  }

  .captcha-question span:nth-child(odd) {
    width: 42px;
    height: 42px;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit-row p {
    max-width: none;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-success {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-success .button {
    grid-column: 1 / -1;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-groups {
    width: 100%;
    gap: 28px;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .masthead.is-compact .brand-logo {
    width: 84px;
    height: 24px;
  }

  .masthead.is-compact .masthead-about {
    width: 92px;
  }

  .masthead.is-compact .masthead-about-trigger {
    gap: 6px;
    padding: 0 9px;
    font-size: 9px;
  }

  .masthead.is-compact .masthead-contact {
    width: 96px;
  }

  .masthead.is-compact .masthead-contact-trigger {
    gap: 7px;
    padding: 0 11px;
    font-size: 9px;
  }
}

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

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

  .coffee-machine,
  .coffee-appliance,
  .coffee-cup,
  .coffee-dial,
  .coffee-light,
  .coffee-stream,
  .coffee-liquid,
  .coffee-steam {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }

  .masthead-slide.is-active img {
    animation: none;
    transform: scale(1.015);
  }

  .masthead.is-brand-scratched .brand-logo {
    animation: brand-logo-scratched-reduced 2600ms steps(1, end) both;
  }

  .masthead.is-brand-scratched .brand-logo-shard {
    animation: none;
  }

  .masthead.is-brand-scratched .masthead-claw-cut {
    animation: masthead-claw-reduced 2600ms steps(1, end) both;
  }

  .masthead.is-brand-scratched .masthead-claw-cut-top,
  .masthead.is-brand-scratched .masthead-claw-cut-bottom {
    animation-delay: 0s;
  }
}

@keyframes brand-logo-scratched-reduced {
  0%,
  84% {
    opacity: 0;
  }

  85%,
  100% {
    opacity: 1;
  }
}

@keyframes masthead-claw-reduced {
  0%,
  84% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }

  85%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}
