:root {
  --paper: #f5f5f7;
  --ink: #2c2c2a;
  --muted-ink: #6c6b66;
  --hairline: rgba(44, 44, 42, 0.22);
  --paper-on-dark: #f5f5f7;
  --dark-hairline: rgba(245, 245, 247, 0.2);
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
  --media-radius: 16px;
  --media-shadow: 0 8px 30px rgba(44, 44, 42, 0.12);
  --page-gutter: clamp(48px, 5vw, 88px);
  --content-max: 1680px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 1280px;
  overflow-x: auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

a:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 16px;
  clip-path: inset(50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  transition: clip-path 180ms ease-out;
}

.skip-link:focus {
  clip-path: inset(0);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 108px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid rgba(44, 44, 42, 0.15);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand img {
  width: 244px;
  height: 70px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(30px, 2.7vw, 52px);
  font-size: 18px;
  line-height: 1;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

.primary-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease-out;
}

.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after,
.primary-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 48px;
  padding: 0 27px 2px;
  border: 1px solid rgba(44, 44, 42, 0.72);
  border-radius: 999px;
  transition:
    background-color 220ms ease-out,
    color 220ms ease-out;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(52px, 5.8vw, 104px);
  align-items: center;
  height: calc(100vh - 108px);
  min-height: 650px;
  max-height: 900px;
  padding: 42px var(--page-gutter) 72px;
  background: var(--paper);
}

.hero__copy {
  align-self: center;
  max-width: 655px;
  padding-bottom: 7%;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(72px, 5.65vw, 104px);
  font-weight: 400;
  letter-spacing: -0.046em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero__copy p {
  max-width: 530px;
  margin: 46px 0 0;
  color: #4a4946;
  font-size: clamp(24px, 1.75vw, 32px);
  line-height: 1.22;
}

.hero__cta {
  min-width: 208px;
  margin-top: 42px;
}

.hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 740px;
  overflow: hidden;
  border-radius: var(--media-radius);
  background: #d8d4cb;
  box-shadow: var(--media-shadow);
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manifesto {
  display: flex;
  align-items: center;
  min-height: 330px;
  background: var(--ink);
  color: var(--paper-on-dark);
}

.manifesto__inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 68px var(--page-gutter) 74px;
}

.manifesto p {
  margin: 0;
  letter-spacing: -0.025em;
}

.manifesto__lead {
  font-size: clamp(46px, 4vw, 68px);
  line-height: 1.02;
}

.manifesto__detail {
  max-width: 1270px;
  margin-top: 30px !important;
  margin-left: clamp(92px, 10.8vw, 190px) !important;
  font-size: clamp(27px, 2.15vw, 38px);
  line-height: 1.16;
}

.transformation {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(clamp(350px, 29vw, 410px), 0.92fr);
  gap: clamp(74px, 8.2vw, 148px);
  align-items: stretch;
  min-height: 870px;
  padding: 104px var(--page-gutter);
  background: var(--paper);
}

.comparison {
  --comparison-position: 18%;
  position: relative;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--media-radius);
  background: #c8c7c3;
  box-shadow: var(--media-shadow);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.comparison__image {
  position: absolute;
  inset: 0;
}

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

.comparison__image--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
  will-change: clip-path;
}

.comparison__label {
  position: absolute;
  top: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  background: rgba(44, 44, 42, 0.88);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.comparison__label--before {
  left: 22px;
}

.comparison__label--after {
  right: 22px;
}

.comparison__divider {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 100%;
  border-right: 1px solid rgba(245, 245, 247, 0.96);
  pointer-events: none;
  transform: translateX(var(--comparison-position));
  will-change: transform;
}

.comparison__handle {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(245, 245, 247, 0.82);
  border-radius: 50%;
  background: rgba(44, 44, 42, 0.86);
  color: var(--paper);
  place-items: center;
  transform: translate(50%, -50%);
  backdrop-filter: blur(6px);
}

.comparison__handle svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

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

.comparison:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.transformation__copy {
  align-self: center;
  max-width: 560px;
  padding: 42px 0 20px;
}

.transformation__copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(61px, 4.65vw, 84px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.transformation__copy > p:not(.transformation__aside) {
  max-width: 500px;
  margin: 46px 0 0;
  color: #4a4946;
  font-size: clamp(25px, 1.78vw, 32px);
  line-height: 1.33;
}

.transformation__aside {
  max-width: 500px;
  margin: 18px 0 0;
  color: #4a4946;
  font-family: var(--serif);
  font-size: clamp(25px, 1.78vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.33;
}

.transformation__cta {
  min-width: 146px;
  margin-top: 38px;
}

.work {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-on-dark);
}

.work__inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.35fr) minmax(0, 1fr);
  gap: clamp(48px, 5vw, 90px);
  align-items: stretch;
  width: min(100%, var(--content-max));
  min-height: 790px;
  margin: 0 auto;
  padding: 112px 0 96px var(--page-gutter);
}

.work__heading {
  align-self: start;
  padding-top: 78px;
}

.work h2 {
  margin: 0;
  font-size: clamp(76px, 7vw, 126px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.work__cta {
  min-width: 196px;
  margin-top: 42px;
  border-color: rgba(245, 245, 247, 0.72);
  color: var(--paper-on-dark);
}

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

.work__gallery {
  position: relative;
  min-width: 0;
  height: 580px;
  overflow: hidden;
}

.work__gallery::before,
.work__gallery::after {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 76px;
  content: "";
  pointer-events: none;
}

.work__gallery::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.work__gallery::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.work__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  height: 100%;
  animation: galleryTravel 76s linear infinite;
  will-change: transform;
}

.work-card {
  --pulse-scale: 1;
  flex: 0 0 auto;
  width: 420px;
  height: 440px;
  margin: 0;
  overflow: hidden;
  transform: scale(var(--pulse-scale));
  transform-origin: center;
  transition: transform 300ms ease-out;
}

.work-card:nth-child(4n + 1) {
  width: 390px;
  height: 500px;
}

.work-card:nth-child(4n + 2) {
  width: 470px;
  height: 380px;
}

.work-card:nth-child(4n + 3) {
  width: 360px;
  height: 470px;
}

.work-card__pulse {
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: galleryPulse 12s ease-in-out infinite;
}

.work-card:nth-child(3n + 2) .work-card__pulse {
  animation-delay: -4s;
}

.work-card:nth-child(3n) .work-card__pulse {
  animation-delay: -8s;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-out;
}

.work-card:hover img {
  transform: scale(1.045);
}

@keyframes galleryTravel {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}

@keyframes galleryPulse {
  0%,
  24%,
  100% {
    transform: scale(0.94);
  }
  41%,
  54% {
    transform: scale(1);
  }
  72% {
    transform: scale(0.96);
  }
}

.site-footer {
  background: var(--ink);
  color: var(--paper-on-dark);
}

.site-footer__inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 0 var(--page-gutter) 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.08fr 1.1fr 1fr 1.35fr;
  gap: clamp(52px, 5.5vw, 104px);
  min-height: 355px;
  padding: 90px 0 74px;
  border-top: 1px solid var(--dark-hairline);
}

.footer-block h2,
.footer-address h2,
.footer-directory h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.social-list {
  display: flex;
  gap: 13px;
  margin-top: 30px;
}

.social-list a {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--ink);
  transition: transform 200ms ease-out;
}

.social-list a:hover {
  transform: translateY(-3px);
}

.social-list svg {
  width: 100%;
  height: 100%;
  fill: var(--paper);
}

.social-list .social-fill {
  fill: currentColor;
}

.social-list .social-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-contact > a {
  display: inline-block;
  margin-top: 28px;
  color: rgba(245, 245, 247, 0.76);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
  transition: color 200ms ease-out;
}

.footer-contact > a:hover {
  color: var(--paper);
}

.footer-search {
  position: relative;
  display: flex;
  align-items: center;
  align-self: start;
  height: 54px;
  margin-top: -2px;
  border: 1px solid rgba(245, 245, 247, 0.7);
}

.footer-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 247, 0.25);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.footer-search__results a {
  padding: 11px 16px;
  color: var(--paper-on-dark);
  font-family: var(--sans);
  font-size: 14px;
  transition: background-color 150ms ease-out;
}

.footer-search__results a:hover,
.footer-search__results a:focus-visible {
  background: rgba(245, 245, 247, 0.14);
}

.footer-search svg {
  width: 21px;
  margin-left: 18px;
  fill: none;
  stroke: rgba(245, 245, 247, 0.75);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.footer-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
}

.footer-search input::placeholder {
  color: rgba(245, 245, 247, 0.58);
}

.footer-search:focus-within {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.footer-address {
  margin: 0;
  font-style: normal;
}

.footer-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 22px;
  align-items: start;
}

.footer-address p,
.footer-address a {
  display: block;
  margin: 23px 0 0;
  color: rgba(245, 245, 247, 0.76);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

.footer-address a {
  margin-top: 14px;
}

.footer-kaltev {
  display: block;
  width: 68px;
  height: 68px;
  margin-top: 29px;
  border-radius: 50%;
  transition: opacity 180ms ease-out;
}

.footer-kaltev:hover,
.footer-kaltev:focus-visible {
  opacity: 0.72;
}

.footer-kaltev img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-directory {
  min-height: 150px;
  padding: 48px 0 16px;
  border-top: 1px solid var(--dark-hairline);
}

.footer-directory nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(30px, 2.7vw, 52px);
  margin-top: 20px;
}

.footer-directory a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: rgba(245, 245, 247, 0.7);
  font-size: 18px;
  line-height: 1;
  transition: color 180ms ease-out;
}

.footer-directory a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease-out;
}

.footer-directory a:hover::after,
.footer-directory a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-directory a:hover,
.footer-bottom a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 72px;
  padding-top: 10px;
  font-family: var(--sans);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  justify-self: end;
  gap: 34px;
}

.footer-bottom a {
  color: rgba(245, 245, 247, 0.7);
  transition: color 180ms ease-out;
}

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