:root {
  --ink: #13171d;
  --muted: #7a7a7a;
  --line: #e4e4e4;
  --mat: #6d6d72;
  --white: #ffffff;
  --section-space: 80px;
  --media-aspect: 2741 / 1542;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

a:focus-visible,
.compare-range:focus-visible + * {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

h1,
h2,
p {
  margin: 0;
}

.shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  padding-block: var(--section-space);
}

.portrait {
  width: 228px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.hero-role {
  margin-bottom: 8px;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1 {
  font-size: clamp(2.55rem, 4vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.contacts {
  display: flex;
  align-items: flex-start;
}

.contacts--hero {
  gap: 28px;
  margin-top: 18px;
  font-size: 0.875rem;
  line-height: 1.35;
}

.case {
  display: grid;
  grid-template-columns: minmax(220px, 0.66fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(54px, 6vw, 112px);
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

#intervesp {
  padding-top: var(--section-space);
  border-top: 0;
}

.case-copy {
  max-width: 420px;
}

.case h2,
.concepts > h2,
.experience h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.no-wrap {
  white-space: nowrap;
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 32px;
}

.case-details .eyebrow {
  margin-bottom: 8px;
}

.case-details p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.48;
}

.case-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 26px;
  border-radius: 13px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.compare,
.project-cover {
  min-width: 0;
  aspect-ratio: var(--media-aspect);
  overflow: hidden;
  border-radius: 26px;
  background: var(--mat);
}

.compare {
  --compare-padding: 28px;
  padding: var(--compare-padding);
}

.compare-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #f5f5f5;
  touch-action: pan-y;
}

.compare-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.compare-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--position));
}

.compare-label {
  position: absolute;
  z-index: 3;
  top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(19, 23, 29, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.compare-label--before {
  left: 16px;
}

.compare-label--after {
  right: 16px;
}

.compare-line {
  position: absolute;
  z-index: 4;
  inset-block: calc(-1 * var(--compare-padding));
  left: var(--position);
  width: 2px;
  transform: translateX(-1px);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(19, 23, 29, 0.12);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.compare-handle svg {
  width: 25px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.compare-range {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-cover {
  overflow: hidden;
  background: transparent;
}

.concepts {
  display: grid;
  align-content: start;
  padding-block: var(--section-space);
}

.concepts > h2 {
  margin-bottom: 28px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.concept-grid video {
  width: 100%;
  aspect-ratio: 1836 / 1640;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  clip-path: inset(3px);
}

.experience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-block: var(--section-space);
}

.experience-title {
  margin-top: 20px;
  max-width: 360px;
}

.experience-body {
  align-self: start;
}

.experience-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.8vw, 1.875rem);
  line-height: 1.2;
}

.experience-role .company,
.experience-role .experience-separator {
  color: var(--muted);
  font-weight: 400;
}

.experience ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.experience li::before {
  content: "– ";
}

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

.footer .eyebrow {
  margin-bottom: 18px;
}

.contacts--footer {
  flex-direction: column;
  gap: 14px;
  font-size: 1.1rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  :root {
    --section-space: 56px;
  }

  .shell {
    width: min(100% - 40px, 640px);
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    gap: 28px;
    padding-block: var(--section-space);
    text-align: center;
  }

  .portrait {
    width: 146px;
  }

  .hero-role {
    margin-bottom: 7px;
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 1;
  }

  .contacts--hero {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
  }

  .case {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: var(--section-space);
  }

  #intervesp {
    padding-top: var(--section-space);
  }

  .case-copy {
    max-width: none;
    grid-row: 2;
  }

  .case h2,
  .concepts > h2,
  .experience h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .case-details {
    gap: 22px;
    margin-top: 26px;
  }

  .case-details p:not(.eyebrow) {
    font-size: 1rem;
  }

  .case-cta {
    min-height: 46px;
    margin-top: 26px;
  }

  .compare,
  .project-cover {
    grid-row: 1;
    border-radius: 18px;
  }

  .compare {
    --compare-padding: 12px;
  }

  .compare-canvas {
    border-radius: 11px;
  }

  .compare-label {
    top: 10px;
    padding: 6px 9px;
  }

  .compare-label--before {
    left: 10px;
  }

  .compare-label--after {
    right: 10px;
  }

  .compare-handle {
    width: 42px;
    height: 42px;
  }

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

  .concepts > h2 {
    margin-bottom: 24px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .concept-grid video {
    aspect-ratio: 0.56;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
  }

  .experience {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px var(--section-space);
  }

  .experience-title {
    margin-top: 18px;
  }

  .experience-role {
    font-size: clamp(1.45rem, 5.8vw, 1.8rem);
  }

  .experience ul {
    font-size: 0.96rem;
    line-height: 1.56;
  }

  .contacts--footer {
    font-size: 1rem;
  }

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

@media (max-width: 430px) {
  .shell {
    width: calc(100% - 32px);
  }

  .portrait {
    width: 136px;
  }

  .contacts--hero {
    font-size: 0.8rem;
  }

  .case h2,
  .concepts > h2,
  .experience h2 {
    letter-spacing: -0.04em;
  }
}

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