:root {
  --paper: #f7f7f5;
  --paper-2: #ececea;
  --ink: #1e1e1e;
  --muted: #686868;
  --line: rgba(30, 30, 30, 0.16);
  --black: #050505;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

body.menu-open,
body.overlay-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(30, 30, 30, 0.78);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 22px clamp(22px, 3.2vw, 60px);
  color: var(--ink);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.scrolled {
  background: rgba(247, 247, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.header-actions,
.phone-link,
.floating-phone,
.gallery-shell,
.social-icons {
  display: flex;
  align-items: center;
}

.brand {
  width: fit-content;
  font-weight: 600;
  letter-spacing: 0;
}

.nav {
  justify-content: center;
  gap: clamp(28px, 4vw, 62px);
}

.nav a,
.phone-link {
  color: rgba(30, 30, 30, 0.74);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav a:hover,
.phone-link:hover {
  color: var(--black);
}

.header-actions {
  justify-content: flex-end;
  gap: 20px;
}

.phone-link {
  gap: 10px;
}

.phone-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(247, 247, 245, 0.72);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(280px, 360px);
  gap: clamp(28px, 12vw, 420px);
  align-items: center;
  min-height: 848px;
  padding: 120px clamp(22px, 3.2vw, 60px) 88px;
  overflow: hidden;
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: 0;
  background-image: url("https://images.unsplash.com/photo-1678005216094-ac385fdf5ea9?auto=format&fit=crop&w=1800&q=86");
  background-position: center 58%;
  background-size: cover;
  filter: grayscale(0.04) saturate(1.12) contrast(1.24) brightness(1.04);
  transform: scale(1.03);
  transform-origin: center;
  will-change: transform;
}

.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(247, 247, 245, 0.74) 0%,
      rgba(247, 247, 245, 0.18) 34%,
      rgba(247, 247, 245, 0.02) 58%,
      rgba(247, 247, 245, 0.52) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 247, 245, 0.02),
      rgba(247, 247, 245, 0.48) 92%
    );
}

.hero-left,
.hero-right,
.floating-phone {
  position: relative;
  z-index: 2;
}

.hero h1,
.spectrum h2,
.technique h2,
.motion-heading h2,
.gallery h2,
.testimonials h2,
.contact h2,
.quote-card h2 {
  margin: 0;
  font-size: clamp(46px, 5vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-right {
  justify-self: end;
  max-width: 350px;
}

.hero-right p,
.spectrum-copy p,
.technique-copy p,
.motion-heading p,
.frame-copy p,
.gallery-heading p,
.contact p,
.quote-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero button,
.spectrum button,
.contact button,
.quote-card button {
  min-height: 48px;
  padding: 0 30px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.hero button:hover,
.spectrum button:hover,
.contact button:hover,
.quote-card button:hover {
  transform: translateY(-2px);
  background: #2b2b2b;
}

.floating-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px 0 12px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
}

.floating-phone svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  background: var(--white);
  color: var(--black);
}

.spectrum {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 430px) minmax(300px, 560px);
  grid-template-rows: auto auto;
  gap: 74px clamp(48px, 12vw, 280px);
  min-height: 980px;
  padding: clamp(110px, 10vw, 178px) clamp(22px, 3.2vw, 60px);
}

.service-image img,
.technique-media img,
.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-image.small {
  align-self: start;
}

.service-image.small img {
  aspect-ratio: 394 / 232;
}

.spectrum-copy {
  align-self: start;
}

.spectrum-copy h2 {
  max-width: 430px;
  margin-bottom: 44px;
  font-size: clamp(32px, 3.1vw, 48px);
}

.service-image.large {
  grid-column: 1 / 2;
  width: min(48vw, 720px);
  margin-top: 150px;
}

.service-image.large img {
  aspect-ratio: 1 / 1.08;
}

.spectrum-panel {
  align-self: end;
  display: grid;
  gap: 28px;
  margin-top: 150px;
  padding: clamp(28px, 3.2vw, 48px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
}

.panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spectrum-panel h3 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.panel-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.panel-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.panel-list span {
  color: var(--black);
  font-weight: 700;
}

.panel-list h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.panel-list p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.panel-stats div {
  display: grid;
  gap: 6px;
  min-height: 94px;
  align-content: center;
  padding: 18px;
  background: var(--paper);
}

.panel-stats strong {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.panel-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spectrum-panel button {
  width: fit-content;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.spectrum-panel button:hover {
  transform: translateY(-2px);
  background: #2b2b2b;
}

.technique {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  background: var(--paper);
}

.technique-media {
  min-height: 720px;
}

.technique-copy {
  align-self: center;
  max-width: 560px;
  padding: clamp(56px, 8vw, 136px);
}

.technique-copy h2 {
  margin-bottom: 32px;
}

.technique-copy ul {
  display: grid;
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.technique-copy li {
  display: flex;
  gap: 18px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.technique-copy span {
  color: var(--black);
  font-weight: 700;
}

.motion-lab {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 10vw, 170px) clamp(22px, 3.2vw, 60px);
  background: #111;
  color: var(--white);
}

.motion-lab::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 92px 92px;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  transform: translateY(calc(var(--lab-shift, 0) * 1px));
}

.motion-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(320px, 0.82fr);
  gap: clamp(30px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(58px, 7vw, 100px);
}

.motion-heading span,
.frame-copy span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.motion-heading h2 {
  max-width: 760px;
  font-size: clamp(38px, 4.8vw, 78px);
}

.motion-heading p {
  grid-column: 2;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
}

.motion-frames {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.motion-frame {
  --frame-progress: 0;
  position: sticky;
  top: 108px;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: stretch;
  min-height: 440px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.03)
    ),
    rgba(17, 17, 17, 0.92);
  opacity: calc(0.72 + (var(--frame-progress) * 0.28));
  transform: translate3d(0, calc((1 - var(--frame-progress)) * 34px), 0)
    scale(calc(0.97 + (var(--frame-progress) * 0.03)));
  transform-origin: center top;
  will-change: transform, opacity;
}

.motion-frame:nth-child(2) {
  top: 126px;
}

.motion-frame:nth-child(3) {
  top: 144px;
}

.motion-frame:nth-child(4) {
  top: 162px;
}

.motion-frame::before,
.motion-frame::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.motion-frame::before {
  inset: 16px;
  border: 1px solid
    rgba(255, 255, 255, calc(0.12 + (var(--frame-progress) * 0.28)));
}

.motion-frame::after {
  top: 16px;
  bottom: 16px;
  left: calc(16px + (var(--frame-progress) * (100% - 32px)));
  width: 1px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.36);
  opacity: calc(0.18 + (var(--frame-progress) * 0.58));
  transform: translateX(-1px);
}

.frame-media {
  position: relative;
  overflow: hidden;
  min-height: 388px;
}

.frame-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 13px
    );
  mix-blend-mode: screen;
  opacity: calc(0.06 + (var(--frame-progress) * 0.18));
  content: "";
}

.frame-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transform: translate3d(calc((0.5 - var(--frame-progress)) * 24px), 0, 0)
    scale(1.08);
  transition: filter 220ms ease;
}

.frame-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 44px) clamp(12px, 2vw, 30px);
}

.frame-copy h3 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.frame-copy p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.68);
}

.gallery {
  padding: clamp(110px, 10vw, 170px) 0;
}

.gallery-heading {
  max-width: 620px;
  margin: 0 0 70px;
  padding-left: clamp(22px, 3.2vw, 60px);
}

.gallery-heading h2 {
  margin-bottom: 18px;
}

.gallery-shell {
  position: relative;
  gap: 24px;
  padding: 0 clamp(22px, 3.2vw, 60px);
}

.gallery-shell > button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%);
}

.gallery-shell > button:first-child {
  left: clamp(24px, 4vw, 70px);
}

.gallery-shell > button:last-child {
  right: clamp(24px, 4vw, 70px);
}

.gallery-track {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track figure {
  flex: 0 0 min(70vw, 920px);
  height: 562px;
  margin: 0;
  scroll-snap-align: start;
}

.gallery-track figure.portrait {
  flex-basis: min(34vw, 430px);
}

.testimonials {
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  gap: clamp(44px, 7vw, 120px);
  padding: clamp(100px, 9vw, 150px) clamp(22px, 3.2vw, 60px);
  border-top: 1px solid var(--line);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.testimonial-grid article {
  min-height: 260px;
  padding: 34px;
  background: var(--paper);
}

.testimonial-grid p {
  color: var(--ink);
  line-height: 1.55;
}

.testimonial-grid h3 {
  margin: 32px 0 0;
  font-size: 15px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 560px) minmax(300px, 540px);
  gap: clamp(40px, 10vw, 180px);
  padding: clamp(90px, 9vw, 140px) clamp(22px, 3.2vw, 60px);
  background: var(--paper-2);
}

.contact form {
  display: grid;
  gap: 16px;
}

.contact label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.contact button {
  width: fit-content;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: clamp(34px, 8vw, 140px);
  align-items: start;
  padding: clamp(80px, 9vw, 130px) clamp(22px, 3.2vw, 60px) 36px;
  background: var(--paper);
}

.footer p {
  margin: 18px 0 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-icons {
  gap: 12px;
}

.social-icons a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.copyright {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 48px;
  font-size: 13px;
}

.quote-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(30, 30, 30, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.quote-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.quote-card {
  width: min(450px, 100%);
  padding: 40px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out);
}

.quote-panel.open .quote-card {
  transform: translateX(0);
}

.quote-card > button:first-child {
  float: right;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.quote-card h2 {
  clear: both;
  margin: 72px 0 22px;
  font-size: clamp(42px, 4vw, 62px);
}

[data-motion],
[data-motion-group] > * {
  opacity: 0;
  transform: translateY(30px);
}

[data-motion="zoom"] {
  transform: translateY(18px) scale(0.97);
}

.is-visible[data-motion],
.is-visible[data-motion-group] > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.is-visible[data-motion-group] > *:nth-child(2) {
  transition-delay: 80ms;
}

.is-visible[data-motion-group] > *:nth-child(3) {
  transition-delay: 160ms;
}

.is-visible[data-motion-group] > *:nth-child(4) {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-motion],
  [data-motion-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 18px 22px;
    background: rgba(247, 247, 245, 0.96);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .phone-link {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero,
  .technique,
  .motion-heading,
  .motion-frame,
  .testimonials,
  .contact,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    align-content: center;
    gap: 28px;
  }

  .hero-right {
    justify-self: start;
  }

  .spectrum {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-image.large {
    grid-column: auto;
    width: 100%;
    margin-top: 20px;
  }

  .spectrum-panel {
    margin-top: 0;
  }

  .technique-media {
    min-height: 440px;
  }

  .motion-heading p {
    grid-column: auto;
  }

  .motion-frame,
  .motion-frame:nth-child(2),
  .motion-frame:nth-child(3),
  .motion-frame:nth-child(4) {
    position: relative;
    top: auto;
  }

  .frame-media {
    min-height: 320px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding: 18px;
  }

  .hero {
    min-height: 760px;
    padding: 104px 18px 84px;
  }

  .hero-bg {
    background-position: center;
  }

  .hero h1 {
    font-size: 48px;
  }

  .floating-phone {
    left: 0;
    right: auto;
    padding-right: 18px;
  }

  .spectrum,
  .motion-lab,
  .gallery,
  .testimonials,
  .contact,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .spectrum {
    gap: 42px;
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .technique-copy {
    padding: 56px 18px;
  }

  .gallery-heading {
    padding-left: 0;
  }

  .gallery-shell {
    padding: 0;
  }

  .gallery-shell > button {
    top: 42px;
    transform: none;
  }

  .gallery-shell > button:first-child {
    left: 12px;
  }

  .gallery-shell > button:last-child {
    right: 12px;
  }

  .gallery-track figure,
  .gallery-track figure.portrait {
    flex-basis: 84vw;
    height: 340px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .copyright {
    justify-self: start;
  }
}
