@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@1,500&display=swap");

:root {
  --bg: #efede9;
  --surface: #f8f7f4;
  --text: #1d2a24;
  --muted: #4d5a53;
  --deep-green: #2d4a3b;
  --sage: #93a696;
  --deep-olive: #1c2f27;
  --soft-highlight: #dce8df;
  --line: rgba(17, 35, 28, 0.12);
  --max: 72ch;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fbfbf9 0, var(--bg) 50%, #ece9e4 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Avenir Next", "Nunito Sans", "Inter", sans-serif;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  color: var(--deep-olive);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

.accent {
  font-family: "Cormorant Garamond", "Times New Roman", "Didot", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.002em;
}

.container {
  width: min(1120px, calc(100% - 4rem));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(239, 237, 233, 0.86);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
}

.wordmark {
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a,
.wordmark,
.btn {
  transition: color 180ms ease;
}

.site-nav a:focus-visible,
.btn:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid rgba(46, 75, 59, 0.4);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-nav a {
  text-decoration: none;
  color: var(--deep-olive);
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

section[id] {
  scroll-margin-top: 4.8rem;
}

main section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 14px 28px rgba(20, 30, 25, 0.12);
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.media-hero,
.media-after1,
.media-after2 {
  object-position: center 16%;
}

.media-before1,
.media-before2 {
  object-position: center 24%;
}

.media-before-extra,
.media-after-extra {
  object-position: center 24%;
}

.media-wide-hedge {
  object-position: center 30%;
}

.media-border-detail {
  object-position: center 34%;
}

.media-portrait {
  object-position: center 12%;
  aspect-ratio: 3 / 4;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro {
  color: var(--muted);
  max-width: var(--max);
}

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

.cred-strip {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.cred-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  text-align: center;
  font-size: 0.88rem;
}

.section-intro {
  max-width: var(--max);
  color: var(--muted);
}

.work-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.before-after-main {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.before-after-secondary {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.before-after-tertiary {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.media-frame {
  display: grid;
  grid-template-rows: auto min-content;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.media-frame--missing {
  background: linear-gradient(145deg, var(--surface-soft), var(--line));
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}

.media-frame--missing::after {
  content: "Image update in progress";
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-frame img {
  aspect-ratio: 4 / 3;
  min-height: clamp(190px, 30vw, 300px);
  width: 100%;
}

.media-frame--missing {
  background: linear-gradient(180deg, rgba(239, 237, 233, 0.6), rgba(239, 237, 233, 0.95));
}

.media-frame--missing img {
  display: none;
}

.media-frame--missing::after {
  content: "";
  min-height: clamp(190px, 30vw, 300px);
  border: 1px dashed rgba(40, 62, 50, 0.28);
  margin: 0.7rem;
  border-radius: 12px;
  background: repeating-linear-gradient(
    135deg,
    rgba(40, 62, 50, 0.05),
    rgba(40, 62, 50, 0.05) 6px,
    rgba(40, 62, 50, 0.015) 6px,
    rgba(40, 62, 50, 0.015) 12px
  );
}

.media-frame--missing .caption {
  color: #6d7a70;
}

.caption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.7rem;
}

.work-highlight {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
}

.wide-image {
  min-height: 320px;
}

.wide-image img {
  aspect-ratio: 16 / 10;
  object-position: center 12%;
  min-height: clamp(210px, 36vw, 360px);
}

.small-image {
  min-height: 320px;
}

.small-image img {
  aspect-ratio: 4 / 5;
  object-position: center 14%;
  min-height: clamp(230px, 40vw, 340px);
}

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

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.service-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.about {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.about-image {
  width: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.about-image img {
  aspect-ratio: 4 / 5;
  object-position: center 6%;
}

.contact {
  background: linear-gradient(160deg, var(--soft-highlight), #f2f5f0 60%, #f7f7f4);
}

.contact-inner {
  display: grid;
  gap: 1.1rem;
}

.contact-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.btn {
  border: 1px solid transparent;
  background: var(--deep-green);
  color: #ffffff;
  text-decoration: none;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 250ms ease, background-color 250ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #2f4d3c;
}

.btn-ghost {
  background: transparent;
  border-color: var(--deep-green);
  color: var(--deep-green);
}

.btn-ghost:hover {
  background: rgba(46, 75, 59, 0.08);
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fade-up {
  opacity: 1;
  transform: none;
}

html.js .fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 650ms ease, transform 650ms ease;
}

html.js .fade-up.visible {
  opacity: 1;
  transform: none;
}

.muted-text {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .before-after-main,
  .before-after-secondary,
  .before-after-tertiary,
  .work-highlight,
  .service-grid,
  .about {
    grid-template-columns: 1fr !important;
  }

  .container {
    width: min(1120px, calc(100% - 2rem));
  }

  .topbar {
    flex-wrap: wrap;
  }

  .wordmark {
    max-width: 60%;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

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

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