:root {
  --ink: #171614;
  --text: #3d3932;
  --muted: #766f65;
  --line: #ded8cf;
  --paper: #f7f4ef;
  --soft: #ece6dc;
  --white: #fffdf9;
  --forest: #24433a;
  --sage: #9cab8f;
  --clay: #b7654f;
  --gold: #c99a45;
  --shadow: 0 22px 60px rgba(28, 24, 18, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 86px;
}

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

body.nav-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.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: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 22, 20, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

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

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 128px clamp(18px, 4vw, 56px) 34px;
  color: var(--white);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 16, 14, 0.82), rgba(16, 16, 14, 0.34) 58%, rgba(16, 16, 14, 0.16)),
    linear-gradient(0deg, rgba(16, 16, 14, 0.76), rgba(16, 16, 14, 0.05) 42%);
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-content {
  width: min(820px, 100%);
  padding-bottom: clamp(28px, 5vw, 58px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 500;
  max-width: 900px;
}

.hero-copy {
  width: min(680px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 253, 249, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #9f543f;
}

.button.secondary {
  border-color: rgba(255, 253, 249, 0.55);
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(660px, 100%);
  border: 1px solid rgba(255, 253, 249, 0.24);
  background: rgba(23, 22, 20, 0.34);
  backdrop-filter: blur(18px);
}

.hero-panel a {
  min-height: 86px;
  padding: 18px;
  border-right: 1px solid rgba(255, 253, 249, 0.24);
  color: rgba(255, 253, 249, 0.92);
  font-weight: 800;
}

.hero-panel a:last-child {
  border-right: 0;
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
}

.section-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(70px, 10vw, 126px) 0;
  align-items: end;
}

.intro h2,
.section-copy h2,
.process h2,
.contact-copy h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 500;
}

.intro p:last-child,
.section-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.portfolio-section {
  padding: clamp(68px, 9vw, 118px) 0;
  background: var(--white);
}

.portfolio-section.muted {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
}

.split.reverse .section-copy {
  order: 2;
}

.section-copy {
  max-width: 520px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 850;
}

.text-link::after {
  content: "->";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 16px;
}

.feature-card,
.pet-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  margin: 0;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.feature-card.tall {
  grid-row: span 2;
}

.feature-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--ink);
  font-weight: 850;
}

.portrait-strip {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.portrait-strip img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-strip img:first-child {
  grid-row: span 2;
}

.pet-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.pet-card {
  display: grid;
  min-height: 520px;
  align-items: end;
  color: var(--white);
}

.pet-card img,
.pet-card::after {
  position: absolute;
  inset: 0;
}

.pet-card::after {
  background: linear-gradient(0deg, rgba(23, 22, 20, 0.78), rgba(23, 22, 20, 0.02) 58%);
  content: "";
}

.pet-card div {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: clamp(22px, 5vw, 42px);
}

.pet-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.pet-card p {
  margin: 0;
  color: rgba(255, 253, 249, 0.88);
  font-size: 1.18rem;
}

.process {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 84px);
  padding: clamp(70px, 10vw, 126px) 0;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 52px 0.36fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps article:last-child {
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--clay);
  font-weight: 900;
}

.steps h3 {
  margin: 0;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--forest);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: start;
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 253, 249, 0.76);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 26px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 253, 249, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 253, 249, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

.gallery-page {
  background: var(--white);
}

.gallery-page .site-header {
  background: rgba(255, 253, 249, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 22, 20, 0.08);
  backdrop-filter: blur(16px);
}

.gallery-hero {
  padding: 168px 0 clamp(40px, 7vw, 82px);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.gallery-heading h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 500;
}

.gallery-heading p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.04rem;
}

.gallery-section {
  padding-bottom: clamp(70px, 9vw, 116px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 24vw, 310px);
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(28, 24, 18, 0.12);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  filter: grayscale(1);
  transform: scale(1.01);
  transition: filter 280ms ease, transform 280ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 22, 20, 0.58), rgba(23, 22, 20, 0.02) 48%);
  content: "";
  opacity: 0.92;
  transition: opacity 280ms ease;
}

.gallery-item figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  color: var(--white);
  transform: translateY(4px);
  transition: transform 280ms ease;
}

.gallery-item span,
.gallery-item small {
  display: block;
}

.gallery-item span {
  font-weight: 850;
  line-height: 1.15;
}

.gallery-item small {
  margin-top: 4px;
  color: rgba(255, 253, 249, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img,
.gallery-item.is-active img {
  filter: grayscale(0);
  transform: scale(1.045);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after,
.gallery-item.is-active::after {
  opacity: 0.68;
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption,
.gallery-item.is-active figcaption {
  transform: translateY(0);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 16px;
  padding: 72px clamp(16px, 4vw, 42px) 28px;
  background: rgba(17, 16, 14, 0.92);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.gallery-lightbox[hidden] {
  display: none;
}

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

.gallery-lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 156px);
  object-fit: contain;
  filter: none;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: scale(0.965) translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
  will-change: opacity, transform;
}

.gallery-lightbox.is-open img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.gallery-lightbox p {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 253, 249, 0.82);
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease 80ms, transform 320ms ease 80ms;
}

.gallery-lightbox.is-open p {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: clamp(16px, 4vw, 42px);
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 253, 249, 0.42);
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.08);
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--white);
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    position: relative;
    z-index: 22;
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 22px;
    padding: 96px 26px 32px;
    background: var(--white);
    color: var(--ink);
    font-size: clamp(1.6rem, 8vw, 3rem);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.nav-active .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: 94svh;
    padding-top: 104px;
  }

  .hero-content {
    padding-bottom: 26px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .hero-panel a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 249, 0.24);
    padding: 12px 14px;
  }

  .hero-panel a:last-child {
    border-bottom: 0;
  }

  .intro,
  .split,
  .split.reverse,
  .pet-layout,
  .process,
  .contact-grid,
  .gallery-heading {
    grid-template-columns: 1fr;
  }

  .split.reverse .section-copy {
    order: 0;
  }

  .section-copy {
    max-width: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 42vw, 300px);
  }

  .process {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    max-width: 172px;
    line-height: 1.15;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .image-grid,
  .portrait-strip {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .feature-card,
  .feature-card.tall,
  .portrait-strip img,
  .portrait-strip img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .pet-card {
    min-height: 420px;
  }

  .steps article {
    grid-template-columns: 42px 1fr;
  }

  .steps p {
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
  }

  .gallery-hero {
    padding-top: 124px;
  }

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

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}
