@font-face {
  font-family: "Oswald Editorial";
  src: url("assets/fonts/Oswald.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #e8e3da;
  --ink: #11110f;
  --olive: #a7a45a;
  --cream: #f2eee6;
  --line: rgba(17, 17, 15, 0.3);
  --frame: clamp(12px, 2vw, 28px);
  --parallax-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.editorial-frame {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 var(--frame) var(--frame);
  background:
    linear-gradient(90deg, transparent calc(25% - 0.5px), var(--line) 25%, transparent calc(25% + 0.5px)),
    linear-gradient(90deg, transparent calc(75% - 0.5px), var(--line) 75%, transparent calc(75% + 0.5px)),
    var(--paper);
}

.topline {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  min-height: 47px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.topline > :not(:first-child) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.hero__stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
}

.hero__stage::before,
.hero__stage::after {
  position: absolute;
  z-index: -1;
  width: 9px;
  height: 9px;
  background: var(--ink);
  content: "";
}

.hero__stage::before {
  top: 4%;
  left: 0;
}

.hero__stage::after {
  right: 0;
  bottom: 5%;
  border-radius: 50%;
}

.hero__title-mask {
  position: absolute;
  z-index: 4;
  inset: 50% clamp(12px, 1.6vw, 26px) auto;
  overflow: hidden;
  transform: translateY(-52%);
}

.hero__title {
  margin: 0;
  color: var(--paper);
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(10rem, 22.5vw, 27rem);
  font-stretch: condensed;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.72;
  -webkit-text-stroke: clamp(2px, 0.25vw, 4px) var(--ink);
  paint-order: stroke fill;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title-desktop {
  display: inline-flex;
  justify-content: center;
  perspective: 900px;
}

.hero__title-mobile {
  display: none;
}

.hero__title-line {
  display: inline-flex;
  perspective: 620px;
}

.hero__letter {
  display: inline-block;
  backface-visibility: hidden;
}

[data-letter-index="0"] { --letter-index: 0; }
[data-letter-index="1"] { --letter-index: 1; }
[data-letter-index="2"] { --letter-index: 2; }
[data-letter-index="3"] { --letter-index: 3; }
[data-letter-index="4"] { --letter-index: 4; }
[data-letter-index="5"] { --letter-index: 5; }
[data-letter-index="6"] { --letter-index: 6; }

@keyframes system-letter-roll {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 0.85em, 0) rotateX(-72deg) skewY(5deg) scaleY(0.86);
  }

  52% {
    opacity: 1;
    filter: blur(1px);
    transform: translate3d(0, -0.055em, 0) rotateX(8deg) skewY(-1.2deg) scaleY(1.03);
  }

  74% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0.012em, 0) rotateX(-2deg) skewY(0.3deg) scaleY(0.992);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.photo-placeholder {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background:
    linear-gradient(115deg, transparent 0 63%, rgba(167, 164, 90, 0.55) 63% 65%, transparent 65%),
    linear-gradient(145deg, #d8d0c5 0 48%, #beb8ad 48% 100%);
  transform: translate3d(0, var(--parallax-y), 0);
}

.photo-placeholder::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 6px solid rgba(242, 238, 230, 0.18);
  content: "";
  pointer-events: none;
}

.photo-placeholder--filled {
  background: var(--ink);
}

.photo-placeholder__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.photo-placeholder--hero {
  position: absolute;
  z-index: 2;
  width: clamp(180px, 18vw, 285px);
  height: min(54vh, 570px);
  min-height: 360px;
  --portrait-rotate: 0deg;
  animation-delay: 900ms;
  animation-iteration-count: infinite;
  animation-name: portrait-drift;
  animation-play-state: paused;
  animation-timing-function: ease-in-out;
  transform: translate3d(0, var(--parallax-y), 0) rotate(var(--portrait-rotate));
}

.hero__portrait--left {
  top: 10%;
  left: 26%;
  --drift-x-1: 6px;
  --drift-y-1: -4px;
  --drift-x-2: -3px;
  --drift-y-2: -8px;
  --drift-x-3: -7px;
  --drift-y-3: 3px;
  --portrait-rotate: -2.2deg;
  animation-duration: 16s;
}

.hero__portrait--right {
  right: 25%;
  bottom: 9%;
  width: clamp(165px, 16.5vw, 260px);
  height: min(49vh, 520px);
  min-height: 330px;
  --drift-x-1: -8px;
  --drift-y-1: 5px;
  --drift-x-2: 4px;
  --drift-y-2: -6px;
  --drift-x-3: 9px;
  --drift-y-3: 2px;
  --portrait-rotate: 2.4deg;
  animation-delay: 1010ms;
  animation-duration: 19s;
}

.hero__portrait--rear-left {
  z-index: 1;
  top: 25%;
  left: 11%;
  width: clamp(145px, 16vw, 230px);
  height: min(42vh, 440px);
  min-height: 300px;
  --drift-x-1: -6px;
  --drift-y-1: 3px;
  --drift-x-2: 5px;
  --drift-y-2: -7px;
  --drift-x-3: 7px;
  --drift-y-3: 4px;
  --portrait-rotate: 4.5deg;
  animation-delay: 1120ms;
  animation-duration: 22s;
}

.hero__portrait--rear-right {
  z-index: 1;
  top: 16%;
  right: 10%;
  width: clamp(140px, 16vw, 225px);
  height: min(40vh, 420px);
  min-height: 290px;
  --drift-x-1: 5px;
  --drift-y-1: 6px;
  --drift-x-2: -7px;
  --drift-y-2: -3px;
  --drift-x-3: -4px;
  --drift-y-3: 7px;
  --portrait-rotate: -4deg;
  animation-delay: 1230ms;
  animation-duration: 24s;
}

.hero__background-card {
  z-index: 0;
  width: clamp(112px, 11vw, 168px);
  aspect-ratio: 2 / 3;
  height: auto;
  min-height: 0;
  background:
    linear-gradient(115deg, transparent 0 61%, rgba(167, 164, 90, 0.68) 61% 64%, transparent 64%),
    linear-gradient(145deg, rgba(232, 227, 218, 0.96) 0 48%, rgba(190, 184, 173, 0.96) 48% 100%);
  pointer-events: none;
}

.hero__background-card--05 {
  top: 4%;
  left: 3%;
  --drift-x-1: 10px;
  --drift-y-1: -14px;
  --drift-x-2: -12px;
  --drift-y-2: 9px;
  --drift-x-3: 14px;
  --drift-y-3: 6px;
  --portrait-rotate: -7deg;
  animation-delay: 1370ms;
  animation-duration: 27s;
}

.hero__background-card--06 {
  top: 3%;
  left: 47%;
  --drift-x-1: -13px;
  --drift-y-1: 12px;
  --drift-x-2: 16px;
  --drift-y-2: -10px;
  --drift-x-3: -9px;
  --drift-y-3: -14px;
  --portrait-rotate: 5deg;
  animation-delay: 1510ms;
  animation-duration: 31s;
}

.hero__background-card--07 {
  right: 3%;
  bottom: 3%;
  --drift-x-1: 18px;
  --drift-y-1: 13px;
  --drift-x-2: -16px;
  --drift-y-2: -18px;
  --drift-x-3: 12px;
  --drift-y-3: -11px;
  --portrait-rotate: -4deg;
  animation-delay: 1660ms;
  animation-duration: 35s;
}

.hero__background-card-subject {
  right: -1%;
  bottom: -19%;
  width: 92%;
  opacity: 0.82;
}

.hero__background-card-subject--06 {
  right: -9%;
  width: 98%;
  transform: rotate(7deg);
}

.hero__background-card-subject--07 {
  right: 5%;
  width: 88%;
  transform: rotate(-8deg);
}

@keyframes portrait-drift {
  0%,
  100% {
    translate: 0 0;
  }

  28% {
    translate: var(--drift-x-1) var(--drift-y-1);
  }

  58% {
    translate: var(--drift-x-2) var(--drift-y-2);
  }

  82% {
    translate: var(--drift-x-3) var(--drift-y-3);
  }
}

.photo-placeholder__index,
.photo-placeholder figcaption {
  position: absolute;
  z-index: 5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.photo-placeholder__index {
  top: 10px;
  left: 10px;
}

.photo-placeholder figcaption {
  right: 8px;
  bottom: 9px;
  padding: 4px 6px;
  color: var(--cream);
  background: var(--ink);
}

.photo-placeholder__subject {
  position: absolute;
  right: 9%;
  bottom: -13%;
  width: 82%;
  height: 94%;
  border-radius: 48% 48% 10% 10% / 31% 31% 8% 8%;
  background:
    radial-gradient(circle at 51% 17%, #e8e3da 0 10%, transparent 10.4%),
    radial-gradient(ellipse at 50% 28%, #1a1a17 0 16%, transparent 16.5%),
    linear-gradient(105deg, transparent 27%, #20201c 28% 73%, transparent 74%);
  filter: contrast(1.08);
  transform: rotate(-4deg);
}

.photo-placeholder__subject::after {
  position: absolute;
  top: 19%;
  left: 34%;
  width: 38%;
  aspect-ratio: 0.72;
  border-radius: 48% 48% 44% 44%;
  background: #c6b8a8;
  content: "";
}

.photo-placeholder__subject--alternate {
  right: -2%;
  bottom: -17%;
  width: 93%;
  background:
    radial-gradient(circle at 45% 17%, #d9d1c6 0 10%, transparent 10.4%),
    radial-gradient(ellipse at 50% 27%, #24241f 0 17%, transparent 17.5%),
    linear-gradient(76deg, transparent 19%, #2f3028 20% 77%, transparent 78%);
  transform: rotate(5deg);
}

.photo-placeholder__subject--rear-left {
  right: 4%;
  bottom: -20%;
  width: 90%;
  background:
    radial-gradient(circle at 58% 16%, #d9d1c6 0 9%, transparent 9.4%),
    radial-gradient(ellipse at 56% 27%, #20201c 0 15%, transparent 15.5%),
    linear-gradient(112deg, transparent 18%, #2f3028 19% 66%, transparent 67%);
  transform: rotate(8deg);
}

.photo-placeholder__subject--rear-right {
  right: -12%;
  bottom: -15%;
  width: 96%;
  background:
    radial-gradient(circle at 42% 18%, #e8e3da 0 9%, transparent 9.4%),
    radial-gradient(ellipse at 44% 29%, #1a1a17 0 15%, transparent 15.5%),
    linear-gradient(68deg, transparent 24%, #20201c 25% 74%, transparent 75%);
  transform: rotate(-7deg);
}

.hero__script {
  position: absolute;
  z-index: 5;
  top: 63%;
  left: 50%;
  width: max-content;
  margin: 0;
  padding: 0 0.24em 0.08em;
  color: var(--cream);
  background: rgba(17, 17, 15, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3.4vw, 3.6rem);
  font-style: italic;
  letter-spacing: -0.05em;
  text-shadow: 0 1px 0 rgba(17, 17, 15, 0.4);
  transform: translateX(-28%) rotate(-7deg);
}

.hero__footer {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.hero__footer p {
  max-width: 47ch;
  margin: 0;
  font-size: clamp(11px, 0.9vw, 14px);
}

.problem {
  padding: 0 var(--frame) var(--frame);
  color: var(--cream);
  background:
    linear-gradient(90deg, transparent calc(40% - 0.5px), rgba(242, 238, 230, 0.17) 40%, transparent calc(40% + 0.5px)),
    var(--ink);
}

.problem__grid {
  display: grid;
  grid-template-columns: minmax(390px, .88fr) minmax(520px, 1.12fr);
  gap: clamp(32px, 4vw, 68px);
  align-items: start;
  padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 2.5vw, 36px);
}

.problem__intro {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2vw, 28px);
  align-content: start;
}

.problem__title-mask {
  overflow: hidden;
}

.problem h2 {
  margin: 0;
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(4.2rem, 4.8vw, 6.2rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.problem h2 span,
.problem__conclusion span {
  display: block;
}

.problem h2 span {
  white-space: nowrap;
}

.problem h2 span + span {
  margin-top: 0.06em;
}

.problem h2 .problem__title-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 230, 0.72);
}

.problem h2 .problem__title-solid {
  color: var(--olive);
}

.problem__lead {
  max-width: none;
  margin: 0;
  padding: clamp(18px, 1.8vw, 26px);
  border: 1px solid rgba(242, 238, 230, 0.45);
  color: rgba(242, 238, 230, 0.88);
  font-size: clamp(1.15rem, 1.25vw, 1.35rem);
  font-weight: 450;
  line-height: 1.5;
}

.system-map {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  justify-self: end;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(242, 238, 230, 0.65);
  background: #11110f;
  isolation: isolate;
}

.system-map::before,
.system-map::after {
  position: absolute;
  z-index: 5;
  width: 5px;
  height: 5px;
  background: var(--olive);
  content: "";
  pointer-events: none;
}

.system-map::before {
  top: 10px;
  left: 10px;
}

.system-map::after {
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
}

.system-map__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 238, 230, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 230, 0.075) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62));
}

.system-map__scene,
.system-map__connections,
.system-map__particles {
  position: absolute;
  inset: 0;
}

.system-map__scene {
  transform-origin: center;
  transition:
    opacity 280ms cubic-bezier(0.65, 0, 0.35, 1),
    transform 420ms cubic-bezier(0.32, 0, 0.67, 0);
}

.system-map__scene--fragmented {
  opacity: 0;
  visibility: hidden;
}

.system-map__scene--connected {
  opacity: 1;
  visibility: visible;
}

.system-map__connections {
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.system-map__connections--compact {
  display: none;
}

.system-path {
  fill: none;
  stroke: rgba(242, 238, 230, 0.74);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.system-path--core {
  stroke: rgba(167, 164, 90, 0.88);
  stroke-width: 1.6;
}

.system-node {
  position: absolute;
  z-index: 2;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 8.8%;
  aspect-ratio: 1;
  padding: 7px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(242, 238, 230, 0.88);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(17, 17, 15, 0.96);
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(0.48rem, 0.58vw, 0.64rem);
  font-weight: 580;
  letter-spacing: 0.018em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.system-node--small {
  width: 7.4%;
}

.system-node--medium {
  width: 8.8%;
}

.system-node--large {
  width: 11.2%;
}

.system-node--product {
  z-index: 4;
  width: 11.8%;
  border-color: var(--olive);
  background:
    radial-gradient(circle at 50% 50%, rgba(167, 164, 90, 0.22), transparent 66%),
    #11110f;
  box-shadow: 0 0 0 1px rgba(167, 164, 90, 0.28), 0 0 48px rgba(167, 164, 90, 0.28);
  font-size: clamp(0.52rem, 0.66vw, 0.72rem);
  font-weight: 700;
}

.system-map__scene--fragmented [data-node-key="fragmented-0"] { --x: 10%; --y: 21%; }
.system-map__scene--fragmented [data-node-key="fragmented-1"] { --x: 32%; --y: 13%; }
.system-map__scene--fragmented [data-node-key="fragmented-2"] { --x: 54%; --y: 29%; }
.system-map__scene--fragmented [data-node-key="fragmented-3"] { --x: 32%; --y: 47%; }
.system-map__scene--fragmented [data-node-key="fragmented-4"] { --x: 8.5%; --y: 69%; }
.system-map__scene--fragmented [data-node-key="fragmented-5"] { --x: 20.5%; --y: 83%; }
.system-map__scene--fragmented [data-node-key="fragmented-6"] { --x: 75%; --y: 81%; }
.system-map__scene--fragmented [data-node-key="fragmented-7"] { --x: 91%; --y: 54%; }

.system-map__scene--connected [data-node-key="instagram"] { --x: 13%; --y: 30%; }
.system-map__scene--connected [data-node-key="stories"] { --x: 17%; --y: 72%; }
.system-map__scene--connected [data-node-key="warming"] { --x: 35%; --y: 55%; }
.system-map__scene--connected [data-node-key="reputation"] { --x: 41%; --y: 29%; }
.system-map__scene--connected [data-node-key="client"] { --x: 58%; --y: 29%; }
.system-map__scene--connected [data-node-key="free-material"] { --x: 82%; --y: 21%; }
.system-map__scene--connected [data-node-key="youtube"] { --x: 90%; --y: 61%; }
.system-map__scene--connected [data-node-key="traffic"] { --x: 66%; --y: 54%; }
.system-map__scene--connected [data-node-key="design"] { --x: 59%; --y: 76%; }
.system-map__scene--connected [data-node-key="brand"] { --x: 43%; --y: 79%; }
.system-map__scene--connected [data-node-key="product"] { --x: 50%; --y: 54%; }

.system-node__label {
  position: relative;
  z-index: 2;
  display: block;
  width: calc(100% - 8px);
  min-width: 0;
  max-width: calc(100% - 8px);
  overflow-wrap: normal;
  word-break: normal;
}

.system-node[data-node-key="client"] {
  font-size: clamp(0.4rem, 0.49vw, 0.54rem);
  letter-spacing: 0;
}

.system-node[data-node-key="free-material"],
.system-node[data-node-key="design"] {
  font-size: clamp(0.4rem, 0.5vw, 0.55rem);
  letter-spacing: 0;
}

.system-node__cracks {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.system-node__cracks i {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 45%;
  height: 1px;
  background: var(--olive);
  box-shadow: 9px 3px 0 -0.25px rgba(242, 238, 230, 0.74);
  transform-origin: 0 50%;
}

.system-node__cracks i:nth-child(1) {
  transform: rotate(-76deg) skewX(-18deg);
}

.system-node__cracks i:nth-child(2) {
  transform: rotate(22deg) skewX(24deg);
}

.system-node__cracks i:nth-child(3) {
  width: 34%;
  transform: rotate(139deg) skewX(-28deg);
}

.system-map__particles {
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.system-map__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cream);
  transform: translate(-50%, -50%);
}

.system-map__droplet {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 8px rgba(167, 164, 90, 0.34);
  transform: translate(-50%, -50%);
  will-change: top, left, opacity, transform;
}

.system-map__arrival-ring,
.system-map__spark {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: opacity, transform;
}

.system-map__arrival-ring {
  border: 1px solid rgba(242, 238, 230, 0.68);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(167, 164, 90, 0.28);
}

.system-map__spark {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 9px rgba(242, 238, 230, 0.52);
}

.system-map.is-animated .system-map__scene--fragmented {
  opacity: 1;
  visibility: visible;
}

.system-map.is-animated .system-map__scene--connected {
  opacity: 0;
  visibility: hidden;
}

.system-map.is-animated .system-node,
.system-map.is-animated .system-path {
  opacity: 0;
}

.system-map.is-building .system-map__scene--fragmented {
  opacity: 0;
  visibility: hidden;
}

.system-map.is-building .system-map__scene--connected,
.system-map.is-complete .system-map__scene--connected,
.system-map.is-static .system-map__scene--connected {
  opacity: 1;
  visibility: visible;
}

.system-map.is-static .system-node,
.system-map.is-static .system-path,
.system-map.is-complete .system-node,
.system-map.is-complete .system-path,
.system-map:not(.is-animated) .system-map__scene--connected .system-node,
.system-map:not(.is-animated) .system-map__scene--connected .system-path {
  opacity: 1;
  stroke-dasharray: 1 0;
  stroke-dashoffset: 0;
}

.system-map.is-breaking .system-node__cracks {
  opacity: 1;
  transition: opacity 110ms ease-out;
}

.system-map.is-breaking::before,
.system-map.is-breaking::after {
  animation: map-marker-glitch 320ms steps(3, end) both;
}

.system-map.is-restarting .system-map__scene--connected {
  opacity: 0;
  transform: scale(.982);
  visibility: visible;
}

.system-map.is-restarting .system-map__particles {
  opacity: 0;
  transition: opacity 180ms ease-out;
}

@keyframes map-marker-glitch {
  0%,
  100% {
    translate: 0 0;
  }

  34% {
    translate: 5px -2px;
  }

  67% {
    translate: -3px 4px;
  }
}

.problem__conclusion {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 238, 230, 0.65);
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(3.5rem, 7.6vw, 9rem);
  letter-spacing: -0.018em;
  line-height: 0.84;
  text-transform: uppercase;
}

.problem__conclusion span:last-child {
  margin-left: 19%;
  color: var(--olive);
}

.portfolio {
  min-height: 100svh;
  padding: clamp(28px, 4vw, 72px) var(--frame) clamp(72px, 9vw, 140px);
  background:
    linear-gradient(90deg, transparent calc(25% - 0.5px), rgba(17, 17, 15, 0.12) 25%, transparent calc(25% + 0.5px)),
    var(--paper);
}

.portfolio__layout {
  display: grid;
  width: min(100%, 1440px);
  margin: 0 auto;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}

.profile-card {
  border: 1px solid var(--ink);
  background: var(--cream);
}

.profile-card__portrait {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
}

.profile-card__portrait::before {
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid rgba(242, 238, 230, 0.58);
  content: "";
  pointer-events: none;
}

.profile-card__portrait-image,
.project-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__portrait-image {
  object-position: center 32%;
}

.profile-card__content {
  padding: 22px 20px 24px;
}

.profile-card__eyebrow,
.portfolio__header p,
.project-card__index,
.project-card__price span {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-card h2 {
  margin: 10px 0 0;
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(3rem, 4vw, 4.6rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-transform: uppercase;
}

.profile-card__role {
  margin: 18px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.profile-card__description {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.48;
}

.profile-card__description-item {
  margin: 0;
}

.profile-card__description-item + .profile-card__description-item {
  margin-top: 0.72em;
}

.profile-card__telegram {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 16px;
  color: var(--cream);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.link-arrow {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.link-arrow::before,
.link-arrow::after {
  position: absolute;
  content: "";
}

.link-arrow::before {
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.link-arrow::after {
  bottom: 2px;
  left: 2px;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: left center;
}

.profile-card__telegram:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}

.portfolio__work {
  min-width: 0;
}

.portfolio__header {
  margin-bottom: clamp(28px, 5vw, 76px);
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.portfolio__header h2 {
  margin: 8px 0 0;
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(6rem, 12vw, 13rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.78;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px) clamp(18px, 2.4vw, 34px);
}

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--cream);
}

.project-card:nth-child(even) {
  translate: 0 clamp(28px, 4vw, 64px);
}

.project-card__visual {
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.project-card__visual img {
  object-position: top center;
}

.project-card__index {
  padding-left: 10px;
  border-left: 9px solid var(--olive);
}

.project-card h3 {
  margin: 10px 0 0;
  font-family: "Oswald Editorial", sans-serif;
  font-size: clamp(2.1rem, 3.2vw, 4rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.project-card__kind {
  margin: 8px 0 18px;
  color: rgba(17, 17, 15, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.project-card__price {
  display: inline-grid;
  min-width: 150px;
  align-self: flex-end;
  margin: 0 -15px 18px 0;
  padding: 9px 12px;
  background: var(--olive);
  gap: 2px;
}

.project-card__price strong {
  font-family: "Oswald Editorial", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.project-card__link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 16px;
  color: var(--cream);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-card__link:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}

.js [data-reveal] {
  opacity: 0;
}

.js .problem h2 [data-reveal],
.js .problem__conclusion [data-reveal] {
  transform: translateY(108%);
}

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

.js .hero__letter {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 0.85em, 0) rotateX(-72deg) skewY(5deg) scaleY(0.86);
}

.js .photo-placeholder[data-reveal] {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: translate3d(0, calc(var(--parallax-y) + 26px), 0) rotate(var(--portrait-rotate, 0deg)) scale(1.04);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 650ms ease, transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1), clip-path 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .problem h2 [data-reveal].is-visible,
.js .problem__conclusion [data-reveal].is-visible {
  transform: translate3d(0, 0, 0);
}

.js .hero__title.is-visible .hero__letter {
  animation: system-letter-roll 880ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--letter-index) * 62ms);
}

.js .hero__script[data-reveal].is-visible {
  transform: translateX(-28%) rotate(-7deg);
}

.js .photo-placeholder[data-reveal].is-visible {
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, var(--parallax-y), 0) rotate(var(--portrait-rotate, 0deg)) scale(1);
}

.js .hero__portrait--right[data-reveal].is-visible {
  transition-delay: 110ms;
}

.js .hero__portrait--rear-left[data-reveal].is-visible {
  transition-delay: 180ms;
}

.js .hero__portrait--rear-right[data-reveal].is-visible {
  transition-delay: 240ms;
}

.js .hero.is-motion-active .photo-placeholder--hero.is-visible {
  animation-play-state: running;
}

@media (max-width: 1100px) {
  .problem__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

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

  .problem h2 {
    font-size: clamp(4rem, 8vw, 6.2rem);
  }

  .system-map {
    width: min(100%, 760px);
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .topline {
    grid-template-columns: 1fr 1fr;
  }

  .topline__discipline {
    display: none;
  }

  .portfolio__layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 28px;
  }

  .portfolio__grid {
    gap: 28px 18px;
  }

  .project-card {
    padding: 10px;
  }

  .project-card__price {
    margin-right: -11px;
  }
}

@media (max-width: 720px) {
  :root {
    --frame: 13px;
  }

  .hero {
    background:
      linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)),
      var(--paper);
  }

  .topline {
    grid-template-columns: 0.8fr 1fr;
    min-height: 41px;
  }

  .topline span:nth-child(3) {
    display: block;
    text-align: center;
  }

  .hero__stage {
    min-height: 620px;
  }

  .hero__title-mask {
    z-index: 4;
    top: 47%;
    inset-inline: 0;
    overflow: visible;
    pointer-events: none;
  }

  .hero__title {
    font-size: clamp(4.75rem, 24vw, 10.5rem);
    line-height: 0.7;
  }

  .hero__title-desktop {
    display: none;
  }

  .hero__title-mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .photo-placeholder--hero {
    width: min(43vw, 176px);
    height: 54%;
    min-height: 350px;
    animation: none;
    translate: none;
  }

  .hero__background-card {
    width: min(27vw, 105px);
    aspect-ratio: 2 / 3;
    height: auto;
    min-height: 0;
  }

  .hero__background-card--05 {
    top: 4%;
    right: auto;
    bottom: auto;
    left: 1%;
    --drift-x-1: 6px;
    --drift-y-1: -8px;
    --drift-x-2: -7px;
    --drift-y-2: 5px;
    --drift-x-3: 8px;
    --drift-y-3: 4px;
  }

  .hero__background-card--06 {
    top: 6%;
    right: 2%;
    bottom: auto;
    left: auto;
    --drift-x-1: -7px;
    --drift-y-1: 6px;
    --drift-x-2: 9px;
    --drift-y-2: -5px;
    --drift-x-3: -5px;
    --drift-y-3: -8px;
  }

  .hero__background-card--07 {
    top: auto;
    right: 1%;
    bottom: 2%;
    left: auto;
    --drift-x-1: 9px;
    --drift-y-1: 7px;
    --drift-x-2: -8px;
    --drift-y-2: -9px;
    --drift-x-3: 6px;
    --drift-y-3: -6px;
  }

  .hero__portrait--left {
    top: 10%;
    left: 5%;
    --drift-x-1: 3px;
    --drift-y-1: -2px;
    --drift-x-2: -2px;
    --drift-y-2: -4px;
    --drift-x-3: -3px;
    --drift-y-3: 2px;
    --portrait-rotate: -2.5deg;
  }

  .hero__portrait--right {
    right: 4%;
    bottom: 9%;
    width: min(40vw, 164px);
    height: 49%;
    min-height: 315px;
    --drift-x-1: -4px;
    --drift-y-1: 3px;
    --drift-x-2: 2px;
    --drift-y-2: -3px;
    --drift-x-3: 5px;
    --drift-y-3: 1px;
    --portrait-rotate: 2.8deg;
  }

  .hero__portrait--rear-left {
    z-index: 1;
    top: 31%;
    left: 2%;
    width: min(31vw, 122px);
    height: 36%;
    min-height: 235px;
    --drift-x-1: -3px;
    --drift-y-1: 2px;
    --drift-x-2: 3px;
    --drift-y-2: -4px;
    --drift-x-3: 4px;
    --drift-y-3: 2px;
    --portrait-rotate: 5.5deg;
  }

  .hero__portrait--rear-right {
    z-index: 1;
    top: 18%;
    right: 0;
    width: min(29vw, 114px);
    height: 34%;
    min-height: 220px;
    --drift-x-1: 3px;
    --drift-y-1: 3px;
    --drift-x-2: -4px;
    --drift-y-2: -2px;
    --drift-x-3: -2px;
    --drift-y-3: 4px;
    --portrait-rotate: -5deg;
  }

  .hero__script {
    z-index: 5;
    top: 61%;
    left: 50%;
    max-width: calc(100vw - 32px);
    font-size: 1.45rem;
    white-space: nowrap;
    transform: translateX(-50%) rotate(-5deg);
  }

  .js .hero__script[data-reveal].is-visible {
    transform: translateX(-50%) rotate(-5deg);
  }

  .hero__footer {
    padding-bottom: 2px;
  }

  .hero__footer p {
    max-width: 34ch;
  }

  .problem {
    min-height: auto;
    background: var(--ink);
  }

  .problem__grid {
    display: block;
    min-height: auto;
    padding-block: 34px 28px;
  }

  .problem__intro {
    display: block;
  }

  .problem h2 {
    font-size: clamp(3.75rem, 17.8vw, 4.8rem);
  }

  .problem__lead {
    margin-top: 1.25rem;
  }

  .system-map {
    width: min(100%, 420px);
    aspect-ratio: 16 / 9;
    margin-top: 1.75rem;
    justify-self: start;
  }

  .system-node {
    width: 8.8%;
    padding: 2px;
    font-size: clamp(0.28rem, 1.15vw, 0.42rem);
  }

  .system-node--small {
    width: 7.4%;
  }

  .system-node--medium {
    width: 8.8%;
  }

  .system-node--large {
    width: 11.2%;
  }

  .system-node--product {
    width: 11.8%;
    font-size: clamp(0.32rem, 1.3vw, 0.46rem);
  }

  .system-node[data-node-key="client"],
  .system-node[data-node-key="free-material"],
  .system-node[data-node-key="design"] {
    font-size: clamp(0.24rem, 0.95vw, 0.34rem);
  }

  .system-map__connections--wide {
    display: block;
  }

  .system-map__connections--compact {
    display: none;
  }

  .system-map__grid {
    background-size: 18px 18px;
  }

  .problem__conclusion {
    padding-bottom: 22px;
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .problem__conclusion span:last-child {
    margin: 0.2em 0 0 9%;
  }

  .portfolio {
    padding-block: 22px 72px;
  }

  .portfolio__layout {
    display: block;
  }

  .profile-card {
    width: min(100%, 470px);
  }

  .portfolio__work {
    margin-top: 58px;
  }

  .portfolio__header h2 {
    font-size: clamp(4.6rem, 18vw, 5.4rem);
  }

  .portfolio__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .project-card:nth-child(even) {
    translate: 0;
  }
}

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

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

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

  .js .hero__letter {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .photo-placeholder--hero {
    animation: none !important;
    translate: none !important;
  }

  .system-map__particles {
    display: none;
  }

  .system-map .system-map__scene--fragmented {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .system-map .system-map__scene--connected,
  .system-map .system-node,
  .system-map .system-path {
    opacity: 1 !important;
    visibility: visible !important;
    stroke-dashoffset: 0 !important;
  }

  .system-map .system-node {
    transform: translate(-50%, -50%);
  }
}
