:root {
  --bg: #dfe7e3;
  --paper: #eef2ef;
  --cream: #f5f3ed;
  --ink: #101312;
  --muted: #5f6864;
  --line: rgba(16, 19, 18, 0.24);
  --soft-line: rgba(16, 19, 18, 0.12);
  --accent: #6f7f73;
  --clay: #9b735f;
  --shadow: 0 28px 90px rgba(24, 31, 28, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: min(1440px, calc(100vw - 72px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(223, 231, 227, 0.72);
  padding: 11px max(18px, calc((100vw - var(--page)) / 2));
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
}

.site-header a {
  position: relative;
  padding: 4px 0;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}

.site-header nav a:hover::after,
.site-header nav a.is-active::after {
  transform: scaleX(1);
}

main {
  padding-top: 36px;
}

.hero,
.services,
.about,
.contact,
.footer {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 30px 0 96px;
}

.hero h1 {
  max-width: 1180px;
  margin: 0 0 72px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(43px, 7.15vw, 104px);
  font-weight: 400;
  line-height: 0.96;
}

.image-frame {
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper);
}

.hero-media {
  position: relative;
  height: min(56vw, 680px);
  min-height: 360px;
  margin: 0 0 56px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 -1px 0 rgba(16, 19, 18, 0.04);
}

.hero-media::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 42%, rgba(255, 255, 255, 0.78), transparent 26%),
    linear-gradient(180deg, #f6f7f5 0%, #e3e5e1 100%);
  content: "";
  display: none;
}

.hero-media::after {
  position: absolute;
  right: 0;
  bottom: 31%;
  left: 0;
  height: 1px;
  background: rgba(16, 19, 18, 0.08);
  content: "";
}

.hero-media img,
.service-image img,
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), opacity 600ms var(--ease);
}

.hero-media img {
  position: relative;
  z-index: 1;
  transform: translate3d(0, calc(var(--parallax, 0) * 1px), 0) scale(1.04);
  transition: transform 120ms linear;
}

.render-object {
  position: absolute;
  inset: 0;
  transform: translate3d(0, calc(var(--parallax, 0) * 1px), 0);
  transition: transform 120ms linear;
}

.blade {
  position: absolute;
  left: 15%;
  display: block;
  width: 71%;
  height: 24%;
  border-radius: 100% 0 100% 0;
  background:
    linear-gradient(100deg, rgba(20, 22, 22, 0.08), transparent 17%),
    linear-gradient(168deg, #737a7d 0%, #e3e6e4 33%, #f9faf8 55%, #8d9494 100%);
  filter: drop-shadow(0 18px 24px rgba(18, 22, 21, 0.25));
}

.blade-a {
  top: 30%;
  transform: rotate(-13deg) skewX(-8deg);
  clip-path: polygon(0 72%, 44% 0, 100% 16%, 58% 65%, 0 100%);
}

.blade-b {
  top: 48%;
  transform: rotate(13deg) skewX(8deg);
  clip-path: polygon(2% 0, 58% 30%, 100% 0, 58% 82%, 0 100%);
}

.hinge {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 28px;
  height: 72px;
  border-radius: 2px;
  background: #151515;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.hinge-a {
  top: 34%;
  transform: rotate(19deg);
}

.hinge-b {
  top: 53%;
  transform: rotate(-19deg);
}

.hero-note {
  max-width: 520px;
}

.hero-note p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.36;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 9px 18px 10px;
  font-size: 12px;
  transition:
    transform 360ms var(--ease),
    box-shadow 360ms var(--ease),
    background 360ms var(--ease),
    border-color 360ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  margin-top: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(16, 19, 18, 0.13);
}

.primary:hover {
  background: #000;
  box-shadow: 0 18px 42px rgba(16, 19, 18, 0.22);
}

.secondary {
  border: 1px solid var(--line);
  background: transparent;
}

.secondary:hover {
  border-color: rgba(16, 19, 18, 0.56);
  background: rgba(255, 255, 255, 0.18);
}

.services {
  padding: 28px 0 126px;
}

.section-title h2,
.pin-copy h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4.05vw, 62px);
  font-weight: 400;
  line-height: 1.02;
}

.section-title h2 {
  max-width: 980px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  transition: transform 500ms var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-image {
  position: relative;
  overflow: hidden;
  height: 560px;
  border-radius: 7px;
  background: var(--paper);
}

.service-image::before {
  position: absolute;
  inset: 0;
  content: "";
  display: none;
  transition: transform 900ms var(--ease), opacity 600ms var(--ease);
}

.service-card:hover .service-image img {
  opacity: 0.94;
  transform: scale(1.045);
}

.image-one::before {
  background:
    radial-gradient(ellipse at 48% 18%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(145deg, #e9e9e8 0%, #c9ceca 55%, #f4f3ef 100%);
}

.image-one span,
.image-two span,
.image-three span {
  position: absolute;
  z-index: 2;
  display: block;
}

.image-one span {
  top: 18%;
  left: 25%;
  width: 46%;
  height: 58%;
  border: 2px solid rgba(16, 19, 18, 0.58);
  border-radius: 50% 50% 42% 42%;
  transform: rotate(-21deg);
}

.image-one span::before,
.image-one span::after {
  position: absolute;
  right: -18%;
  left: -18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(152, 158, 156, 0.56);
  content: "";
}

.image-one span::before {
  top: 18%;
  transform: rotate(9deg);
}

.image-one span::after {
  top: 42%;
  transform: rotate(-13deg);
}

.image-two::before {
  background:
    radial-gradient(circle at 24% 74%, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(120deg, #d8d7d2 0%, #f8f7f3 48%, #9b7a65 100%);
}

.image-two span {
  right: 25%;
  bottom: 22%;
  width: 32%;
  height: 38%;
  border: 5px solid #6d4b35;
  border-top-width: 24px;
  border-radius: 48% 48% 7px 7px;
  box-shadow:
    -28px 120px 0 -24px #6d4b35,
    38px 116px 0 -25px #6d4b35;
}

.image-three::before {
  background:
    linear-gradient(90deg, rgba(239, 231, 231, 0.88) 0 21%, transparent 21% 100%),
    radial-gradient(circle at 75% 57%, #e7c78b 0 13%, transparent 27%),
    linear-gradient(105deg, #eceff0 0%, #cbb8b6 44%, #4c2f22 100%);
  filter: blur(0.2px);
}

.image-three span {
  right: 11%;
  bottom: 18%;
  width: 62%;
  height: 27%;
  border-radius: 80% 80% 8px 8px;
  background: rgba(218, 181, 112, 0.68);
  filter: blur(4px);
}

.service-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.service-card p {
  max-width: 94%;
  margin: 0;
  color: #2f3633;
  font-size: 14px;
  line-height: 1.36;
}

.pin-section {
  height: 360vh;
}

.pin-spacer {
  height: 100%;
}

.pin-stage {
  position: sticky;
  top: 0;
  display: grid;
  width: 100%;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 0.82fr) minmax(360px, 1fr);
  grid-template-rows: auto 1fr;
  gap: 34px;
  align-items: end;
  padding: 82px max(18px, calc((100vw - var(--page)) / 2)) 64px;
  overflow: hidden;
}

.pin-copy {
  align-self: start;
  padding-top: 24px;
}

.pin-copy small {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.pin-copy p {
  max-width: 460px;
  margin: 22px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.progress {
  width: min(360px, 100%);
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.progress span {
  display: block;
  width: calc(var(--pin-progress, 0) * 100%);
  height: 100%;
  background: var(--ink);
}

.preview-shell {
  position: relative;
  height: min(48vw, 560px);
  min-height: 380px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.preview-image {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: scale(1.015);
  transition:
    background 700ms var(--ease),
    transform 700ms var(--ease),
    clip-path 700ms var(--ease);
  clip-path: inset(0);
}

.preview-image[data-preview="0"] {
  background:
    linear-gradient(180deg, rgba(16, 19, 18, 0.04), rgba(16, 19, 18, 0.1)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1400&q=85");
  background-position: center;
  background-size: cover;
}

.preview-image[data-preview="1"] {
  background:
    linear-gradient(180deg, rgba(16, 19, 18, 0.03), rgba(16, 19, 18, 0.12)),
    url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=1400&q=85");
  background-position: center;
  background-size: cover;
}

.preview-image[data-preview="2"] {
  background:
    linear-gradient(180deg, rgba(16, 19, 18, 0.02), rgba(16, 19, 18, 0.12)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1400&q=85");
  background-position: center;
  background-size: cover;
}

.preview-image[data-preview="3"] {
  background:
    linear-gradient(180deg, rgba(16, 19, 18, 0.02), rgba(16, 19, 18, 0.16)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1400&q=85");
  background-position: center;
  background-size: cover;
}

.preview-image.is-changing {
  clip-path: inset(7% 0 7% 0);
  transform: scale(1.055);
}

.preview-meta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(16, 19, 18, 0.2);
  padding-top: 12px;
  font-size: 12px;
}

.horizontal-viewport {
  grid-column: 1 / -1;
  overflow: visible;
}

.horizontal-track {
  display: flex;
  gap: 14px;
  width: max-content;
  transform: translate3d(calc(var(--track-x, 0) * 1px), 0, 0);
  transition: transform 120ms linear;
}

.motion-card {
  width: min(430px, 72vw);
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(238, 242, 239, 0.54);
  padding: 24px;
  transition:
    transform 420ms var(--ease),
    background 420ms var(--ease),
    border-color 420ms var(--ease),
    box-shadow 420ms var(--ease);
}

.motion-card:hover,
.motion-card.is-current {
  border-color: rgba(16, 19, 18, 0.48);
  background: rgba(245, 243, 237, 0.72);
  box-shadow: 0 22px 70px rgba(16, 19, 18, 0.1);
  transform: translateY(-8px);
}

.motion-card small {
  color: var(--clay);
  font-size: 12px;
}

.motion-card h3 {
  margin: 74px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}

.motion-card p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.about {
  padding: 96px 0 160px;
}

.about h2 {
  max-width: 980px;
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.portrait {
  position: relative;
  min-height: 640px;
  background:
    linear-gradient(180deg, rgba(245, 243, 237, 0.72), rgba(196, 201, 196, 0.78)),
    linear-gradient(90deg, rgba(16, 19, 18, 0.08) 0 1px, transparent 1px 100%);
  background-size: auto, 52px 100%;
}

.portrait::before {
  position: absolute;
  right: 18%;
  bottom: 0;
  width: 44%;
  height: 67%;
  border-radius: 48% 48% 6px 6px;
  background:
    radial-gradient(circle at 50% 13%, #20221f 0 18%, transparent 19%),
    linear-gradient(180deg, transparent 0 18%, #1d1f1d 18% 100%);
  content: "";
  display: none;
}

.portrait::after {
  position: absolute;
  right: 24%;
  bottom: 36%;
  width: 32%;
  height: 25%;
  border-radius: 42% 42% 48% 48%;
  background: #d5b7a4;
  content: "";
  display: none;
}

.portrait-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.54), transparent 28%);
}

.about-copy {
  padding-top: 8px;
}

.about-copy p {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.38;
}

.contact {
  padding: 0 0 120px;
}

.contact h2 {
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px 0 56px;
  color: #303633;
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease),
    filter 900ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 36px);
  }

  .site-header nav {
    gap: 14px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .hero h1 {
    margin-bottom: 34px;
  }

  .hero-media {
    min-height: 280px;
  }

  .service-grid,
  .about-grid,
  .pin-stage {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 430px;
  }

  .pin-section {
    height: auto;
  }

  .pin-stage {
    position: relative;
    min-height: auto;
    padding: 80px 18px;
  }

  .horizontal-track {
    width: auto;
    transform: none !important;
    flex-direction: column;
  }

  .motion-card {
    width: 100%;
  }

  .preview-shell {
    min-height: 300px;
  }

  .portrait {
    min-height: 480px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    padding-top: 72px;
  }

  .service-image {
    height: 330px;
  }

  .hero-media {
    height: 64vw;
    min-height: 230px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
