:root {
  --ink: #242321;
  --muted: #67615a;
  --paper: #f4eee4;
  --soft: #e8dece;
  --line: rgba(36, 35, 33, 0.14);
  --charcoal: #2d2c2a;
  --charcoal-soft: #3b3936;
  --taupe: #8d7d6e;
  --cream: #fff9ee;
  --shadow: 0 18px 50px rgba(36, 35, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  border-bottom: 1px solid rgba(36, 35, 33, 0.06);
  background: rgba(244, 238, 228, 0.88);
  backdrop-filter: blur(14px);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    opacity 700ms ease,
    transform 700ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.motion-ready .site-header {
  opacity: 0;
  transform: translateY(-10px);
}

.motion-ready.is-loaded .site-header {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  padding: 104px clamp(24px, 6vw, 88px) clamp(52px, 7vw, 86px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  text-align: center;
}

.motion-ready .hero .eyebrow,
.motion-ready .hero h1,
.motion-ready .hero .hero-copy,
.motion-ready .hero .hero-actions {
  opacity: 0;
  transform: translateY(14px);
}

.motion-ready.is-loaded .hero .eyebrow,
.motion-ready.is-loaded .hero h1,
.motion-ready.is-loaded .hero .hero-copy,
.motion-ready.is-loaded .hero .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready.is-loaded .hero h1 {
  transition-delay: 120ms;
}

.motion-ready.is-loaded .hero .hero-copy {
  transition-delay: 230ms;
}

.motion-ready.is-loaded .hero .hero-actions {
  transition-delay: 340ms;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: inline-block;
  margin-bottom: 24px;
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Playfair Display", Georgia, serif;
  font-size: clamp(2.45rem, 5.8vw, 5.15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy {
  max-width: none;
  margin-bottom: 34px;
  color: var(--ink);
  font-size: clamp(0.82rem, 1.7vw, 1.05rem);
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 20px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button.primary {
  color: var(--cream);
  background: var(--ink);
  box-shadow: none;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #141413;
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.quiet-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  color: var(--taupe);
  border-color: var(--taupe);
}

.corner {
  position: absolute;
  width: clamp(28px, 4vw, 46px);
  height: clamp(28px, 4vw, 46px);
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.corner::before {
  width: 100%;
  height: 1px;
  transform-origin: left center;
}

.corner::after {
  width: 1px;
  height: 100%;
  transform-origin: top center;
}

.motion-ready .corner::before {
  transform: scaleX(0);
}

.motion-ready .corner::after {
  transform: scaleY(0);
}

.motion-ready.is-loaded .corner::before,
.motion-ready.is-loaded .corner::after {
  transform: scale(1);
  transition: transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.corner-tl {
  top: clamp(80px, 9vw, 118px);
  left: clamp(24px, 5vw, 70px);
}

.corner-tl::before,
.corner-tl::after {
  top: 0;
  left: 0;
}

.corner-tr {
  top: clamp(80px, 9vw, 118px);
  right: clamp(24px, 5vw, 70px);
}

.corner-tr::before,
.corner-tr::after {
  top: 0;
  right: 0;
}

.corner-tr::before,
.corner-br::before {
  transform-origin: right center;
}

.corner-bl {
  bottom: clamp(28px, 4vw, 58px);
  left: clamp(24px, 5vw, 70px);
}

.corner-bl::before,
.corner-bl::after {
  bottom: 0;
  left: 0;
}

.corner-bl::after,
.corner-br::after {
  transform-origin: bottom center;
}

.corner-br {
  right: clamp(24px, 5vw, 70px);
  bottom: clamp(28px, 4vw, 58px);
}

.corner-br::before,
.corner-br::after {
  right: 0;
  bottom: 0;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 88px;
}

.motion-ready .reveal {
  opacity: 1;
  transform: translateY(18px);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro > p {
  align-self: start;
  margin-top: 38px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.services {
  background: var(--cream);
}

.image-band {
  height: clamp(240px, 44vw, 560px);
  overflow: hidden;
  background: var(--charcoal);
  scroll-margin-top: 88px;
}

.image-band img {
  width: 100%;
  height: calc(100% + 56px);
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.12) saturate(0.82);
  transform: translateY(var(--parallax-y, -28px)) scale(1.03);
  will-change: transform;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.service-card {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  background: var(--cream);
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.service-card::before {
  top: 20px;
  left: 20px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.service-card::after {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(36, 35, 33, 0.34);
  transform: translateY(-3px);
}

.service-card:hover::before,
.service-card:focus-within::before,
.service-card:hover::after,
.service-card:focus-within::after {
  width: 38px;
  height: 38px;
  transition:
    width 240ms ease,
    height 240ms ease;
}

.service-number {
  display: block;
  margin-top: 24px;
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3 {
  font-family: Didot, "Bodoni 72", "Bodoni 72 Smallcaps", "Playfair Display", Georgia, serif;
  font-weight: 500;
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: clamp(18px, 3vw, 34px);
  padding-bottom: 0;
  background: var(--line);
}

.proof-item {
  min-height: 160px;
  padding: 28px;
  background: var(--paper);
}

.proof-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  max-width: 320px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.contact-copy p:not(.section-kicker) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

.direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.direct-contact a {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--cream);
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  position: relative;
}

label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0 1px;
  outline: none;
  transition:
    background-size 220ms ease,
    border-color 220ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--taupe);
  background-size: 100% 1px;
}

textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px) max(30px, env(safe-area-inset-bottom));
  color: var(--muted);
  background: var(--paper);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .proof {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 68vh;
  }

  .intro > p {
    margin-top: 0;
  }
}

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

  .nav-links {
    gap: 12px;
    font-size: 0.76rem;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(1.72rem, 8.7vw, 2.6rem);
    letter-spacing: 0.03em;
  }

  .hero-copy {
    font-size: 0.68rem;
    letter-spacing: 0.085em;
  }

  .hero {
    padding-top: 150px;
  }

  .image-band {
    height: 320px;
  }

  .section,
  .image-band {
    scroll-margin-top: 120px;
  }

  .button {
    width: 100%;
  }

  .quiet-link {
    margin-top: 2px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: max(56px, env(safe-area-inset-bottom));
  }
}
