:root {
  --ink: #151515;
  --muted: #68635d;
  --paper: #eee9df;
  --stone: #cfc7bb;
  --warm: #f8f4eb;
  --line: rgba(21, 21, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(248, 244, 235, 0.84), rgba(248, 244, 235, 0));
}

.brand-mark {
  display: block;
  width: clamp(84px, 9vw, 120px);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(21, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 112px 22px 80px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(248, 244, 235, 0.42), rgba(248, 244, 235, 0.05) 45%, rgba(248, 244, 235, 0.58)),
    radial-gradient(circle at 52% 48%, rgba(248, 244, 235, 0.5), transparent 36%);
}

.hero-content {
  width: min(860px, 100%);
  text-align: center;
  transform: translateY(2vh);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: rgba(21, 21, 21, 0.66);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.38em;
  line-height: 1.8;
  text-transform: uppercase;
}

.type-on-view.is-waiting {
  color: transparent;
}

.type-on-view.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  background: currentColor;
  transform: translateY(0.09em);
  animation: caret-blink 620ms steps(1, end) infinite;
}

.type-after {
  opacity: 0;
  transform: translateY(0.1em);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.type-after.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-lockup {
  margin: clamp(44px, 9vw, 96px) 0 clamp(26px, 4vw, 42px);
}

.logo-lockup img {
  display: block;
  width: min(360px, 62vw);
  height: auto;
  margin: 0 auto;
}

.hero-line {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 0.34em;
  line-height: 1.9;
  text-transform: uppercase;
}

.hero-services {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(26px, 6vw, 72px);
  display: grid;
  gap: 10px;
  color: rgba(21, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.section {
  padding: clamp(74px, 10vw, 138px) clamp(22px, 5vw, 78px);
}

.services-section {
  background: #f7f1e6;
  border-top: 1px solid var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(42px, 8vw, 116px);
  align-items: start;
  max-width: 1180px;
  margin: 34px auto 0;
}

.split-layout h2,
.about-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 6.8vw, 94px);
  font-weight: 300;
  line-height: 0.95;
}

.word-burst {
  position: relative;
  display: inline-block;
  cursor: default;
  outline: none;
  isolation: isolate;
  color: #6f5b4b;
  font-style: italic;
  text-shadow: 0.02em 0.025em 0 rgba(248, 244, 235, 0.92);
}

.word-burst::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.02em;
  height: 0.09em;
  background: linear-gradient(90deg, rgba(111, 91, 75, 0.22), rgba(181, 168, 151, 0.72));
  transform: scaleX(1);
  transform-origin: left;
  transition:
    height 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.word-burst::before {
  content: "+";
  pointer-events: none;
  position: absolute;
  z-index: 5;
  left: calc(100% + 0.12em);
  top: 0.02em;
  display: grid;
  place-items: center;
  width: 0.42em;
  height: 0.42em;
  border-radius: 999px;
  background: rgba(248, 244, 235, 0.82);
  box-shadow:
    0 0 0 1px rgba(111, 91, 75, 0.24),
    0 0 18px rgba(181, 168, 151, 0.38);
  color: #6f5b4b;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.18em;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  opacity: 0.95;
  transform: none;
  animation: hint-pulse 1900ms ease-in-out infinite;
}

.burst-cloud {
  pointer-events: none;
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(100% + 0.22em);
  width: min(520px, 82vw);
  height: 1.25em;
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, -0.08em);
  transition:
    opacity 140ms ease 180ms,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.type-word {
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  width: max-content;
  max-width: 0;
  color: var(--word-color, var(--ink));
  font-family: "Bodoni 72", "Didot", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 7.4vw, 112px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow: 0.028em 0.035em 0 rgba(248, 244, 235, 0.92);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.type-word::after {
  content: "";
  display: inline-block;
  width: 0.035em;
  height: 0.76em;
  margin-left: 0.07em;
  background: currentColor;
  transform: translateY(0.08em);
}

.word-burst:hover::after,
.word-burst:focus-visible::after {
  height: 0.14em;
  background: linear-gradient(90deg, rgba(111, 91, 75, 0.4), rgba(181, 168, 151, 0.96));
  transform: scaleX(1.04);
}

.word-burst:hover .burst-cloud,
.word-burst:focus-visible .burst-cloud {
  opacity: 1;
  transform: translate(-50%, 0.18em);
}

.word-burst:hover::before,
.word-burst:focus-visible::before {
  content: "";
  left: 50%;
  top: 48%;
  width: 0.18em;
  height: 0.18em;
  background: #fffaf0;
  transform: translate(-50%, -50%) scale(0);
  animation: spark-pop 520ms ease-out both;
}

.type-word:nth-child(1) {
  --word-color: #6f5b4b;
}

.type-word:nth-child(2) {
  --word-color: #77716a;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(36px, 5.2vw, 82px);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.type-word:nth-child(3) {
  --word-color: #9b8d7b;
  font-family: "Baskerville", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 7.8vw, 118px);
}

.type-word:nth-child(4) {
  --word-color: #5f564e;
}

.type-word:nth-child(5) {
  --word-color: #b5a897;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(30px, 4.7vw, 72px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.word-burst:hover .type-word,
.word-burst:focus-visible .type-word {
  animation: type-cycle 5.4s steps(10, end) infinite;
}

.word-burst:hover .type-word::after,
.word-burst:focus-visible .type-word::after {
  animation: caret-blink 620ms steps(1, end) infinite;
}

.word-burst:hover .type-word:nth-child(1),
.word-burst:focus-visible .type-word:nth-child(1) {
  animation-delay: 0.28s;
}

.word-burst:hover .type-word:nth-child(2),
.word-burst:focus-visible .type-word:nth-child(2) {
  animation-delay: 1.25s;
}

.word-burst:hover .type-word:nth-child(3),
.word-burst:focus-visible .type-word:nth-child(3) {
  animation-delay: 2.22s;
}

.word-burst:hover .type-word:nth-child(4),
.word-burst:focus-visible .type-word:nth-child(4) {
  animation-delay: 3.19s;
}

.word-burst:hover .type-word:nth-child(5),
.word-burst:focus-visible .type-word:nth-child(5) {
  animation-delay: 4.16s;
}

@keyframes spark-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    box-shadow:
      0 0 0 0 rgba(255, 250, 240, 0),
      0 0 0 0 rgba(21, 21, 21, 0);
  }

  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 0 0.22em rgba(255, 250, 240, 0.95),
      0 0 0 0.38em rgba(21, 21, 21, 0.18),
      -0.58em 0 0 -0.04em rgba(21, 21, 21, 0.8),
      0.58em 0 0 -0.04em rgba(21, 21, 21, 0.8),
      0 -0.58em 0 -0.04em rgba(21, 21, 21, 0.8),
      0 0.58em 0 -0.04em rgba(21, 21, 21, 0.8);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
    box-shadow:
      0 0 0 0.5em rgba(255, 250, 240, 0),
      0 0 0 0.84em rgba(21, 21, 21, 0);
  }
}

@keyframes hint-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.74;
  }

  50% {
    transform: translateY(-0.08em) scale(1.12);
    opacity: 1;
  }
}

@keyframes type-cycle {
  0%,
  2% {
    opacity: 0;
    max-width: 0;
  }

  3% {
    opacity: 1;
    max-width: 0;
  }

  10%,
  16% {
    opacity: 1;
    max-width: 12ch;
  }

  22% {
    opacity: 1;
    max-width: 0;
  }

  23%,
  100% {
    opacity: 0;
    max-width: 0;
  }
}

@keyframes caret-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

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

.service-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.7fr) minmax(220px, 1.3fr);
  gap: clamp(14px, 2vw, 28px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.service-list h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
}

.service-list p,
.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.8;
}

.gallery-section {
  background: #f1eadf;
  border-top: 1px solid var(--line);
}

.gallery-heading {
  max-width: 1180px;
  margin: 34px auto clamp(34px, 6vw, 72px);
}

.gallery-heading h2 {
  max-width: 880px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6.2vw, 86px);
  font-weight: 300;
  line-height: 0.96;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.72fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 0;
  background: var(--stone);
  aspect-ratio: 3 / 4.5;
  cursor: zoom-in;
}

.gallery-item-tall {
  aspect-ratio: 9 / 14.5;
}

.gallery-item-video {
  aspect-ratio: 9 / 14.5;
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
  transition:
    filter 360ms ease,
    transform 520ms ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  filter: saturate(0.96) contrast(1.05);
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.video-mark {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: rgba(248, 244, 235, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lightbox-active {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 72px minmax(0, 1fr) 72px;
  gap: 0;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(18, 17, 15, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  z-index: 1;
}

.lightbox-stage img,
.lightbox-stage video {
  display: block;
  max-width: min(100%, 1180px);
  max-height: 92svh;
  object-fit: contain;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.lightbox-close,
.lightbox-nav {
  position: relative;
  z-index: 3;
  border: 0;
  background: transparent;
  color: var(--warm);
  cursor: pointer;
  font-family: "Inter", Arial, sans-serif;
}

.lightbox-close {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lightbox-nav {
  align-self: center;
  justify-self: center;
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgba(248, 244, 235, 0.42);
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 1px solid var(--warm);
  outline-offset: 5px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
  min-height: 70svh;
  background: #e4ddd2;
}

.about-copy {
  max-width: 860px;
}

.about-copy h2 {
  margin-top: 32px;
  max-width: 920px;
}

.about-copy p {
  max-width: 650px;
  margin-top: 32px;
}

.about-note {
  display: grid;
  gap: 18px;
  padding-left: 34px;
  border-left: 1px solid rgba(21, 21, 21, 0.28);
  color: rgba(21, 21, 21, 0.68);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(22px, 5vw, 78px);
  background: var(--ink);
  color: var(--warm);
}

.contact-section p,
.contact-section a,
.contact-section span {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
    font-size: 10px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 118px;
  }

  .eyebrow {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-services {
    left: 22px;
    right: auto;
    text-align: left;
  }

  .split-layout,
  .gallery-heading,
  .about-section {
    grid-template-columns: 1fr;
  }

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

  .gallery-item-tall,
  .gallery-item-video {
    aspect-ratio: 16 / 10;
  }

  .lightbox {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    padding: 18px;
  }

  .service-list article {
    grid-template-columns: 44px 1fr;
  }

  .service-list p {
    grid-column: 2;
  }

  .about-note {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    display: none;
  }

  .logo-lockup img {
    width: min(280px, 68vw);
  }

  .hero-line {
    max-width: 340px;
  }

  .hero-services {
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .section {
    padding-inline: 20px;
  }

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

  .gallery-item,
  .gallery-item-tall,
  .gallery-item-video {
    aspect-ratio: 3 / 4.25;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 56px minmax(0, 1fr) 64px;
  }

  .lightbox-stage {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .lightbox-close {
    grid-column: 1 / -1;
  }

  .lightbox-prev {
    grid-column: 1;
    grid-row: 3;
  }

  .lightbox-next {
    grid-column: 2;
    grid-row: 3;
  }

  .service-list article {
    grid-template-columns: 1fr;
  }

  .service-list p {
    grid-column: auto;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}
