@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-medium.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-semibold.ttf") format("truetype");
}

/* Manual Avine, pages 8 and 10: official palette and approved auxiliary typeface. */
.page-photo-minimal {
  --brand-green: #384e46;
  --brand-terracotta: #9a6a4f;
  --brand-blue: #647692;
  --brand-burgundy: #551c25;
  --brand-warm-gray: #d7d2cb;
  --brand-cool-gray: #888b8d;
  --brand-rose: #d7c4b7;
  --ink: var(--brand-green);
  --text: rgba(0, 0, 0, 0.8);
  --muted: var(--brand-green);
  --paper: #ffffff;
  --wash: rgba(215, 210, 203, 0.25);
  --soft: rgba(215, 210, 203, 0.12);
  --line: var(--brand-warm-gray);
  --shadow: 0 24px 74px rgba(56, 78, 70, 0.08);
  --sans: "Montserrat", Arial, sans-serif;
  --serif: var(--sans);
  font-synthesis: none;
}

.page-photo-minimal h1,
.page-photo-minimal h2 {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.15;
}

.page-photo-minimal h1 {
  font-size: 3.75rem;
}

.page-photo-minimal h2 {
  font-size: 2.75rem;
}

.page-photo-minimal .team-card h3,
.page-photo-minimal .category-card h3 {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.page-photo-minimal .eyebrow,
.page-photo-minimal .section-kicker,
.page-photo-minimal .team-card span,
.page-photo-minimal .category-card span {
  color: var(--brand-terracotta);
}

.page-photo-minimal .site-header {
  min-height: 88px;
}

.page-photo-minimal .brand {
  flex-shrink: 0;
}

.page-photo-minimal .brand img,
.page-photo-minimal .footer-brand img {
  width: 194px;
  height: auto;
}

.page-photo-minimal .main-nav,
.page-photo-minimal .site-footer,
.page-photo-minimal .privacy {
  color: var(--brand-green);
}

.page-photo-minimal .site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(56, 78, 70, 0.07);
}

.page-photo-minimal .button,
.page-photo-minimal .nav-cta {
  color: var(--ink);
  border-color: currentColor;
  font-family: var(--sans);
  font-weight: 500;
}

.page-photo-minimal .button:hover,
.page-photo-minimal .button:focus-visible,
.page-photo-minimal .nav-cta:hover,
.page-photo-minimal .nav-cta:focus-visible {
  color: var(--ink);
  background: var(--wash);
}

.page-photo-minimal :focus-visible {
  outline: 2px solid var(--brand-burgundy);
  outline-offset: 5px;
}

.page-photo-minimal section[id] {
  scroll-margin-top: 100px;
}

.page-photo-minimal .photo-hero .photo-frame.large img {
  object-position: center center;
}

.page-photo-minimal h1,
.page-photo-minimal h2 {
  font-synthesis: none;
}

.page-photo-minimal .about .photo-frame.portrait img {
  object-position: center center;
}

.professionals,
.gallery {
  padding: clamp(78px, 10vw, 138px) clamp(20px, 6vw, 96px);
  background: var(--paper);
}

.professionals {
  border-top: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin-top: clamp(44px, 6vw, 82px);
  background: transparent;
  border: 0;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(260px, 0.44fr);
  align-items: stretch;
  min-height: 0;
  background: white;
  border: 1px solid var(--line);
}

.team-card img {
  width: 100%;
  height: clamp(360px, 38vw, 460px);
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.94) contrast(0.98);
}

.team-feature img {
  height: clamp(360px, 38vw, 460px);
}

.team-card div {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: clamp(24px, 4vw, 52px);
}

.team-card span,
.category-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.team-card h3,
.category-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.team-card p,
.category-card p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.94rem;
}

.categorized-services {
  background: var(--soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 82px);
  background: var(--line);
  border: 1px solid var(--line);
}

.category-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 260px;
  padding: clamp(22px, 3vw, 32px);
  background: white;
}

.gallery {
  border-bottom: 1px solid var(--line);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  max-width: 1180px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr;
  grid-auto-rows: minmax(260px, 34vw);
  gap: 14px;
  margin-top: clamp(44px, 6vw, 82px);
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid var(--line);
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.gallery-grid figure:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.98);
}

@media (max-width: 1080px) {
  .page-photo-minimal h1 {
    font-size: 3rem;
  }

  .page-photo-minimal h2 {
    font-size: 2.25rem;
  }

  .page-photo-minimal .main-nav {
    gap: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-feature img {
    height: clamp(340px, 46vw, 440px);
  }
}

@media (max-width: 760px) {
  .page-photo-minimal h1 {
    font-size: 2.25rem;
  }

  .page-photo-minimal h2 {
    font-size: 1.875rem;
  }

  .page-photo-minimal .brand img {
    width: 173px;
  }

  .page-photo-minimal .hero {
    padding-top: 132px;
  }

  .team-grid,
  .category-grid,
  .gallery-heading,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .team-card img,
  .team-feature img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .category-card {
    min-height: 0;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-grid figure:first-child,
  .gallery-grid figure:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-grid figure {
    aspect-ratio: 4 / 5;
  }

  .gallery-grid figure:nth-child(4),
  .gallery-grid figure:nth-child(5) {
    aspect-ratio: 1 / 1;
  }
}
