:root {
  color-scheme: light;
  --red: #ef233c;
  --paper: #f3f2ef;
  --ink: #0a0a0a;
}

* {
  box-sizing: border-box;
}

/* Disable touch zoom while keeping native single-finger scrolling. */
html, body {
  touch-action: manipulation;
  touch-action: pan-x pan-y;
}

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

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

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  --menu-background: #ee2c3d;
  --menu-foreground: #fff;
  --menu-pixel-color: #ee2c3d;
  --menu-button-background: #ee2c3d;
  --menu-button-foreground: #fff;
  --menu-button-open-background: #fff;
  --menu-button-open-foreground: #ee2c3d;
  background: #fff;
  color: var(--red);
}

body[data-menu-theme="inverse"] {
  --menu-background: #fff;
  --menu-foreground: #ee2c3d;
  --menu-pixel-color: #fff;
  --menu-button-background: #fff;
  --menu-button-foreground: #ee2c3d;
  --menu-button-open-background: #ee2c3d;
  --menu-button-open-foreground: #fff;
}

body.is-loader-active {
  overflow: hidden;
}

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

html.is-page-arriving::before,
html.is-page-leaving::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #ee2c3d;
  pointer-events: none;
}

html.is-page-transitioning body,
html.is-page-revealing body {
  --menu-background: #ee2c3d;
  --menu-pixel-color: #ee2c3d;
}

html.is-page-arriving .menu-toggle,
html.is-page-revealing .menu-toggle,
html.is-page-leaving .menu-toggle {
  opacity: 0;
  pointer-events: none;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  pointer-events: auto;
}

.site-loader-reveal {
  --loader-mask-size: 220px;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--red);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, -webkit-mask-size, mask-size;
  -webkit-mask-image: linear-gradient(#fff 0 0), url("../assets/logo-bianco-fp.png");
  mask-image: linear-gradient(#fff 0 0), url("../assets/logo-bianco-fp.png");
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: 100% 100%, var(--loader-mask-size) auto;
  mask-size: 100% 100%, var(--loader-mask-size) auto;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.site-loader-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3vw, 42px);
  width: min(58vw, 360px);
}

.site-loader-logo {
  display: block;
  width: clamp(150px, 21vw, 290px);
  height: auto;
}

.site-loader-bar {
  width: min(210px, 42vw);
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
}

.site-loader-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

.menu-toggle {
  position: fixed;
  top: clamp(22px, 2vw, 32px);
  right: clamp(22px, 2.5vw, 40px);
  z-index: 9001;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--menu-button-background);
  color: var(--menu-button-foreground);
  cursor: pointer;
  pointer-events: auto;
}

.menu-toggle span {
  position: absolute;
  width: 28px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .28s ease, background-color .2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] {
  background: var(--menu-button-open-background);
  color: var(--menu-button-open-foreground);
}

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

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

.pixel-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  background: transparent;
}

.pixel-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.pixel-menu.is-filled {
  background: var(--menu-background);
}

.pixel-menu-grid {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.pixel-menu-cell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--menu-pixel-color);
  transform: translateZ(0);
  transform-origin: center;
  opacity: 0;
  will-change: opacity;
}

.pixel-menu-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, .16) 0 .65px, transparent .95px) 0 0 / 7px 7px repeat,
    radial-gradient(circle at 74% 67%, rgba(10, 10, 10, .06) 0 .55px, transparent .85px) 0 0 / 9px 8px repeat;
  opacity: .26;
  pointer-events: none;
}

.pixel-menu-nav {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-content: center;
  gap: clamp(8px, 1.3vw, 18px);
  padding: clamp(28px, 5vw, 76px);
  opacity: 0;
  pointer-events: none;
}

.pixel-menu.is-open .pixel-menu-nav {
  pointer-events: auto;
}

.pixel-menu-nav a {
  color: var(--menu-foreground);
  text-align: center;
  text-decoration: none;
  text-transform: lowercase;
}

.pixel-menu-nav a:hover,
.pixel-menu-nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

img,
canvas {
  max-width: 100%;
}

.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  cursor: grab;
  background: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 5px;
  background: var(--red);
  pointer-events: none;
}

.hero:active {
  cursor: grabbing;
}

#stage,
#letters,
.backline {
  position: absolute;
  inset: 0;
}

.backline {
  z-index: 0;
  pointer-events: none;
}

.backline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 1px;
  background: var(--red);
  opacity: .95;
}

#letters {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#stage {
  z-index: 2;
}

.object-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.falling-object-gif {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none;
  height: auto;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.ragdoll-head {
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  z-index: 2;
  max-width: none;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
}

.ragdoll-cursor-hint {
  --ragdoll-hint-x: 0px;
  --ragdoll-hint-y: 0px;
  position: absolute;
  left: -54px;
  top: -54px;
  z-index: 4;
  width: 108px;
  height: 108px;
  overflow: visible;
  color: #ee2c3d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  transform: translate3d(var(--ragdoll-hint-x), var(--ragdoll-hint-y), 0);
  transition: opacity 155ms ease, visibility 0s linear 155ms;
  will-change: transform, opacity;
}

.ragdoll-cursor-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s;
}

.ragdoll-cursor-hint__entry,
.ragdoll-cursor-hint__spinner {
  transform-origin: 54px 54px;
}

.ragdoll-cursor-hint__entry {
  transform: scale(.70) rotate(-18deg);
  transition: transform 155ms cubic-bezier(.22, .78, .24, 1);
}

.ragdoll-cursor-hint.is-visible .ragdoll-cursor-hint__entry {
  transform: scale(1) rotate(0);
  transition-duration: 200ms;
}

.ragdoll-cursor-hint.is-visible .ragdoll-cursor-hint__spinner {
  animation: ragdoll-cursor-hint-spin 8s linear infinite;
}

.ragdoll-cursor-hint text {
  fill: currentColor;
  text-transform: uppercase;
}

@keyframes ragdoll-cursor-hint-spin {
  to {
    transform: rotate(360deg);
  }
}

@media not ((hover: hover) and (pointer: fine)) {
  .ragdoll-cursor-hint {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ragdoll-cursor-hint__entry {
    transform: scale(1) rotate(0);
    transition: none;
  }

  .ragdoll-cursor-hint.is-visible .ragdoll-cursor-hint__spinner {
    animation: none;
  }
}

.phys-letter {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
}

.ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: var(--red);
}

.hero-signature {
  position: absolute;
  left: clamp(28px, 2.1vw, 42px);
  top: clamp(24px, 2vw, 36px);
  width: clamp(170px, 14.2vw, 270px);
  pointer-events: auto;
}

.hero-signature img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-roles {
  position: absolute;
  left: clamp(28px, 2.1vw, 42px);
  bottom: clamp(24px, 2.2vw, 34px);
  display: grid;
  grid-template-columns: max-content minmax(170px, 40vw) max-content;
  align-items: center;
  gap: clamp(22px, 2.7vw, 50px);
  width: min(820px, 56vw);
  color: var(--red);
}

.hero-roles i {
  display: block;
  height: 1px;
  background: var(--red);
}

.hero-aside {
  position: absolute;
  right: clamp(32px, 2.8vw, 54px);
  bottom: clamp(44px, 5.2vh, 70px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(22px, 2.4vh, 34px);
  max-width: min(360px, 24vw);
  pointer-events: none;
}

.help {
  max-width: 360px;
  color: var(--red);
  text-align: right;
}

.hero-doodle {
  width: clamp(118px, 8.2vw, 164px);
  aspect-ratio: 1;
  height: auto;
  padding: clamp(14px, 1.15vw, 22px);
  border: 3px solid var(--red);
  border-radius: 50%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.controls {
  position: absolute;
  left: clamp(28px, 2.1vw, 42px);
  top: 52%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.controls button {
  position: relative;
  width: clamp(28px, 1.8vw, 36px);
  height: clamp(28px, 1.8vw, 36px);
  display: grid;
  place-items: center;
  background: var(--red);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.controls button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.controls button::before,
.controls button::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

#resetBtn::before {
  width: 44%;
  height: 44%;
  border: 3px solid #fff;
  border-right-color: transparent;
  transform: rotate(42deg);
}

#resetBtn::after {
  width: 0;
  height: 0;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translate(6px, -7px) rotate(42deg);
}

#objectBtn::before {
  width: 48%;
  height: 48%;
  border: 3px solid #fff;
  transform: translate(-2px, -2px);
}

#objectBtn::after {
  width: 30%;
  height: 30%;
  background:
    linear-gradient(#fff 0 0) center / 100% 3px no-repeat,
    linear-gradient(#fff 0 0) center / 3px 100% no-repeat;
  transform: translate(5px, 6px);
}

.controls button:hover {
  filter: brightness(.94);
  transform: translateX(2px);
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero-aside {
    right: 0;
    bottom: 30px;
    display: flex;
    gap: 10px;
    width: 140px;
    max-width: 140px;
  }

  .hero-signature {
    left: 12px;
    top: 12px;
    width: clamp(116px, 30vw, 132px);
  }

  .hero-doodle {
    width: clamp(64px, 17vw, 76px);
    padding: 8px;
    border-width: 2px;
  }

  .help {
    width: 100%;
    max-width: 140px;
  }

  .hero-roles {
    left: 8px;
    bottom: 8px;
    grid-template-columns: max-content minmax(82px, 28vw) max-content;
    gap: 10px;
    width: min(255px, 66vw);
    max-width: none;
  }

  .hero-roles i {
    display: block;
  }

  .controls {
    left: 8px;
    top: 42%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 8px;
  }

  .controls button {
    width: 24px;
    height: 24px;
  }

  .backline::after {
    top: 42%;
  }
}

.home-content {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: var(--paper);
  margin-bottom: 100vh;
}

.manifesto {
  --manifesto-progress: 0;
  --path-opacity: .9;
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: #fff;
  min-height: 132vh;
  display: grid;
  align-content: center;
  padding: 20vh clamp(18px, 4vw, 64px) 22vh;
  border-top: 1px solid var(--red);
  text-align: center;
  overflow: hidden;
}

.manifesto-path {
  position: absolute;
  inset: 0 -6% -88%;
  z-index: 0;
  width: 112%;
  height: 188%;
  pointer-events: none;
}

.manifesto-path-line {
  fill: none;
  stroke: url("#manifesto-path-gradient");
  stroke-width: 40px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: var(--path-opacity);
  filter: url("#manifesto-path-roughen");
}

.section-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(34px, 5vw, 72px);
  color: var(--red);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .manifesto {
    --manifesto-progress: 1;
  }

  .manifesto-path-line {
    stroke-dashoffset: 0 !important;
  }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 3vw, 42px) 46px;
}

.section-heading h2 {
  margin: 0;
  color: var(--red);
}

.section-heading-link {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.work {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 0;
  isolation: isolate;
  overflow: visible;
}

.work.is-gsap-stacked {
  overflow: visible;
}

.work-row {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 30vw) minmax(0, 1fr);
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  color: var(--red);
  border-top: 1px solid var(--red);
}

.work.is-gsap-stacked .work-row {
  position: relative;
  top: auto;
}

.work-row:nth-of-type(1) {
  z-index: 1;
}

.work-row:nth-of-type(2) {
  z-index: 2;
}

.work-row:nth-of-type(3) {
  z-index: 3;
}

.work-row:nth-of-type(4) {
  z-index: 4;
}

.work-row:nth-of-type(5) {
  z-index: 5;
}

.work-row.is-red {
  background: var(--red);
  color: var(--paper);
}

.work-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 44px) clamp(20px, 3vw, 42px);
}

.work-year {
  margin: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid currentColor;
}

.work-copy h3 {
  margin: 0 0 14px;
}

.work-copy p {
  max-width: 260px;
  margin: 0;
}

.work-media {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.work-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.work-media-link {
  display: block;
  width: 100%;
  height: auto;
  color: inherit;
  text-decoration: none;
}

.work-media.has-bulge img {
  opacity: 0;
}

.work-bulge-canvas {
  position: absolute;
  max-width: none;
  top: calc(-1 * var(--bulge-gutter-y, 0px));
  left: calc(-1 * var(--bulge-gutter-x, 0px));
  display: block;
  width: calc(100% + 2 * var(--bulge-gutter-x, 0px));
  height: calc(100% + 2 * var(--bulge-gutter-y, 0px));
  pointer-events: none;
}

.work-row.has-work-bulge,
.work-media.has-bulge {
  overflow: visible;
}

@media (max-width: 760px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .work-media.has-bulge img {
    opacity: 1;
  }

  .work-bulge-canvas {
    /* Three.js sets display inline; the static fallback must take precedence. */
    display: none !important;
  }
}

.audiences {
  --audiences-progress: 0;
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(180px, .85fr);
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 40px;
  align-items: start;
  padding: 72px clamp(28px, 8vw, 150px) 40px;
}

.home-blog::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -29px;
  z-index: 2;
  height: 44px;
  background:
    linear-gradient(to bottom, var(--red) 0 15px, rgba(238, 44, 61, .18) 15px 22px, transparent 100%),
    radial-gradient(circle at 2px 21px, rgba(238, 44, 61, .52) 0 .55px, transparent .8px) 0 0 / 5px 5px repeat,
    radial-gradient(circle at 4px 28px, rgba(238, 44, 61, .34) 0 .45px, transparent .7px) 0 0 / 7px 6px repeat;
  pointer-events: none;
}

.audiences-paint {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.audiences h2 {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  max-width: 940px;
  margin: 0;
  opacity: var(--audiences-progress);
  transform: translateX(calc((1 - var(--audiences-progress)) * -92px));
}

.audience-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 16px;
  width: 100%;
  opacity: var(--audiences-progress);
  transform: translateX(calc((1 - var(--audiences-progress)) * -92px));
}

.audience-columns article {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: start;
  min-width: 0;
}

.audience-columns h3 {
  margin: 0;
  color: var(--ink);
}

.audience-columns p {
  max-width: 30ch;
  margin: 0;
  color: var(--ink);
}

.audience-columns .small-cta {
  justify-self: start;
  margin-top: 8px;
}

.small-cta {
  display: inline-block;
  min-width: 156px;
  background: var(--red);
  color: #fff;
  padding: 13px 18px;
  text-align: center;
  text-decoration: none;
}

.audiences-mark {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 240px);
  margin-block: -12px -64px;
  opacity: calc(var(--audiences-progress) * .96);
  transform: translateX(calc((1 - var(--audiences-progress)) * 92px));
}

.audiences-contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(100px, .5fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid currentColor;
  padding-top: 24px;
  color: var(--red);
  text-decoration: none;
}



.audiences-contact:hover .audiences-contact__title,
.audiences-contact:focus-visible .audiences-contact__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.audiences-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.eye-track {
  position: relative;
}

.eye-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eye-pupil-svg {
  fill: #000;
}

@media (max-width: 1100px) {
  .audiences {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(140px, .72fr);
    padding-inline: 40px;
  }


}

@media (prefers-reduced-motion: reduce) {
  .audiences {
    --audiences-progress: 1;
  }

  .audiences h2,
  .audience-columns {
    opacity: 1;
    transform: none;
  }

  .audiences-mark {
    opacity: .96;
    transform: none;
  }
}

.home-blog {
  --red: #ee2c3d;
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--red);
  color: #fff;
  box-shadow: 0 24px 34px -24px rgba(238, 44, 61, .62);
}

.home-blog__gallery {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--ink);
}

.home-blog__columns {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
}

.home-blog__column {
  position: relative;
  top: -6%;
  display: grid;
  grid-auto-rows: auto;
  gap: 8px;
  min-width: 0;
  height: max-content;
}

.home-blog__column:nth-child(2) {
  top: -12%;
}

.home-blog__column.is-looping {
  top: 0;
  height: auto;
  align-self: start;
  grid-template-rows: none;
  grid-auto-rows: var(--loop-tile-height);
  will-change: transform;
}

.elastic-rule-host {
  position: relative;
}

.elastic-rule-host.has-elastic-top {
  border-top-color: transparent;
}

.home-page .elastic-rule-host.has-elastic-bottom {
  border-bottom-color: transparent;
}

.elastic-rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
}

.elastic-rule--top {
  top: -.5px;
}

.elastic-rule--bottom {
  bottom: -.5px;
}

.elastic-rule svg {
  position: absolute;
  top: -48px;
  width: 100%;
  height: 96px;
  overflow: visible;
}

.elastic-rule path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.home-blog__column img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--ink);
}

.home-blog__column.is-looping img {
  height: 100%;
}

.home-blog__panel {
  display: grid;
  align-content: start;
  gap: 40px;
  min-width: 0;
  padding: 56px clamp(32px, 4vw, 72px) 52px;
}

.home-blog__intro h2 {
  margin: 0 0 20px;
}

.home-blog__intro p {
  max-width: 35ch;
  margin: 0;
}

.home-blog a {
  color: inherit;
  text-decoration: none;
}

.home-blog__all {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}


.home-blog__article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 10px 20px;
  align-items: center;
  border-top: 1px solid currentColor;
  padding: 22px 0 24px;
}

.home-blog__article:last-child {
  border-bottom: 1px solid currentColor;
}

.home-blog__category {
  grid-column: 1;
  text-transform: uppercase;
}

.home-blog__article h3 {
  grid-column: 1;
  margin: 0;
}

.home-blog__article-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
}

.home-blog__all:hover,
.home-blog__all:focus-visible,
.home-blog__article:hover h3,
.home-blog__article:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {

}

@media (max-width: 760px) {
  .home-blog {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-blog__gallery {
    min-height: 0;
    height: clamp(320px, 92vw, 360px);
  }

  .home-blog__columns,
  .home-blog__column {
    gap: 5px;
  }

  .home-blog__panel {
    gap: 32px;
    padding: 36px 20px 42px;
  }


}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto auto;
  column-gap: clamp(16px, 2.8vw, 54px);
  row-gap: clamp(18px, 3vh, 34px);
  background: #fff;
  color: var(--red);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(24px, 3.1vw, 42px) clamp(20px, 3vw, 40px) 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: clamp(24px, 3.1vw, 42px);
  right: clamp(20px, 3vw, 40px);
  width: min(26vw, 330px);
  height: 1px;
  background: var(--red);
  z-index: 2;
  pointer-events: none;
}

.site-footer > :not(.footer-figure) {
  position: relative;
  z-index: 1;
}

.footer-rule {
  height: 1px;
  background: var(--red);
  pointer-events: none;
}

.footer-rule-top {
  grid-column: 1 / 4;
  grid-row: 1;
}

.footer-rule-bottom {
  grid-column: 1 / -1;
  grid-row: 4;
  align-self: end;
}

.footer-services-block {
  grid-column: 1 / 4;
  grid-row: 2;
  align-self: start;
  min-width: 0;
}

.footer-services {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.footer-figure {
  grid-column: 4 / 10;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: center;
  margin: 0;
  width: min(100%, clamp(560px, 43vw, 820px));
  z-index: 0;
  pointer-events: none;
}

.footer-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-ragdoll-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

.footer-ragdoll-canvas,
.footer-ragdoll-head {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  pointer-events: none;
}

.footer-ragdoll-canvas {
  width: 100%;
  height: 100%;
}

.footer-ragdoll-head {
  z-index: 2;
  transform-origin: 0 0;
  will-change: transform;
}

.footer-signature {
  grid-column: 11 / -1;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  width: clamp(140px, 12vw, 235px);
  height: auto;
}

.footer-based {
  grid-column: 1 / 4;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: clamp(104px, 8vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.4vw, 24px);
  min-width: 0;
}

.footer-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.footer-map-orbit {
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  background: var(--red);
}

.footer-map-shape {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0;
  transform: scale(.86) rotate(-5deg);
  transform-origin: center;
  transition:
    opacity .62s cubic-bezier(.22, 1, .36, 1),
    transform .78s cubic-bezier(.22, 1, .36, 1),
    clip-path .78s cubic-bezier(.22, 1, .36, 1);
  clip-path: inset(12% 50% 12% 50% round 48%);
}

.footer-map-shape.is-active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  clip-path: inset(0 0 0 0 round 0);
}

.footer-map-shape-canaria {
  transform: scale(.78) rotate(5deg);
}

.footer-map-shape-canaria.is-active {
  transform: scale(1.04) rotate(0deg);
}

.footer-based-copy {
  min-width: 0;
}

.footer-based p {
  margin: 0;
}

.footer-links {
  grid-column: 1 / -1;
  grid-row: 5;
  display: grid;
  grid-template-columns: minmax(78px, .7fr) minmax(170px, 1.9fr) repeat(3, minmax(96px, 1fr)) minmax(190px, 1.8fr);
  align-items: center;
  gap: clamp(14px, 2.2vw, 42px);
  padding: 14px 0 clamp(14px, 2vh, 24px);
}

.footer-links p {
  margin: 0;
}

.footer-links a {
  color: var(--red);
}

.footer-social {
  grid-column: 3 / 6;
  display: contents;
}

.footer-email {
  justify-self: end;
}

.footer-red-strip {
  grid-column: 1 / -1;
  grid-row: 6;
  height: clamp(16px, 2vh, 22px);
  margin: 0 calc(clamp(20px, 3vw, 40px) * -1);
  background: var(--red);
}

.footer-name {
  margin: 0;
}



@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 22px;
  }

  .footer-rule-top {
    grid-column: 1 / 4;
  }

  .footer-services-block {
    grid-column: 1 / 4;
  }

  .footer-figure {
    grid-column: 2 / 6;
    width: min(100%, 560px);
  }

  .footer-based {
    grid-column: 1 / 4;
  }

  .footer-signature {
    grid-column: 5 / -1;
    width: min(26vw, 210px);
  }

  .footer-links {
    grid-template-columns: minmax(70px, auto) minmax(150px, 1fr) repeat(3, minmax(76px, auto));
  }

  .footer-email {
    display: none;
  }
}

@media (max-width: 760px) {
  .manifesto {
    min-height: 58vh;
    padding-top: 12vh;
    padding-bottom: 12vh;
  }

  .manifesto-path {
    inset: 2% -18% -62%;
    width: 136%;
    height: 160%;
  }

  .section-heading {
    padding: 28px 20px 30px;
  }


  .work-row {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }

  .work-copy {
    min-height: 150px;
    padding: 20px 20px 18px;
  }



  .work-media {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding: 0;
  }

  .work-media img {
    min-height: 0;
    aspect-ratio: auto;
    object-position: center;
  }

  .audience-columns {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    align-items: stretch;
    width: 100%;
    transform: translateX(calc((1 - var(--audiences-progress)) * -42px));
  }

  .audiences {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(104px, .72fr);
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    row-gap: 28px;
    align-items: start;
    padding: 48px 20px 32px;
  }

  .audiences h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    max-width: 100%;
    margin: 0;
    transform: translateX(calc((1 - var(--audiences-progress)) * -42px));
  }

  .audiences-mark {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: min(100%, 130px);
    margin: 0;
    transform: translateX(calc((1 - var(--audiences-progress)) * 42px));
  }

  .audience-columns article {
    display: grid;
    min-width: 0;
    background: transparent;
  }

  .audience-columns h3 {
    margin-bottom: 0;
  }

  .audience-columns p {
    margin-bottom: 0;
  }

  .audience-columns .small-cta {
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 11px 10px;
  }

  .audiences-contact {
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 20px;
  }

  .audiences-contact__label {
    grid-column: 1 / -1;
  }


  .site-footer {
    position: fixed;
    bottom: 0;
    z-index: 0;
    min-height: 100svh;
    height: 100svh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
    column-gap: 18px;
    row-gap: clamp(7px, 1.5vh, 12px);
    padding: 20px 18px 0;
  }

  .home-content {
    margin-bottom: 100svh;
  }

  .site-footer::before {
    top: 20px;
    right: 18px;
    width: 27%;
  }

  .footer-rule-top {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  .footer-services-block {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-services {
    margin-top: 6px;
  }

  .footer-figure {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    min-height: clamp(300px, 86vw, 420px);
  }

  .footer-ragdoll-scene {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .footer-based {
    grid-column: 1;
    grid-row: 4;
    align-self: center;
    justify-self: start;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
    width: min(31vw, 122px);
  }

  .footer-map {
    width: min(24vw, 94px);
  }


  .footer-signature {
    grid-column: 2;
    grid-row: 4;
    align-self: center;
    justify-self: end;
    width: min(36vw, 142px);
  }

  .footer-rule-bottom {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 6;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px 14px;
    padding: 5px 0 9px;
  }


  .footer-social {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .footer-email {
    display: none;
  }

  .footer-red-strip {
    grid-column: 1 / -1;
    grid-row: 7;
    margin: 0 -18px;
    height: clamp(12px, 2vh, 16px);
  }
}
