@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-variable.woff2') format('woff2');
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit-variable.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Marsh Stencil';
  src: url('../assets/fonts/Marsh-Stencil-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Base palette */
  --color-linen: #E4DDD3;
  --color-linen-light: #EDE8E2;
  --color-sand: #C9BFB3;
  --color-forest: #2D3E2B;
  --color-forest-mid: #3E5438;
  --color-forest-deep: #1A2218;
  --color-gold: #B89B6A;
  --color-gold-light: #C9B07A;
  --color-moss: #5A6B58;

  /* Alpha ramps used below */
  --linen-70: rgba(228, 221, 211, 0.7);
  --linen-50: rgba(228, 221, 211, 0.5);
  --linen-25: rgba(228, 221, 211, 0.25);
  --linen-08: rgba(228, 221, 211, 0.08);
  --gold-50: rgba(184, 155, 106, 0.5);

  /* Semantic — light surfaces */
  --surface-page: var(--color-linen);
  --surface-raised: var(--color-linen-light);
  --surface-hairline: var(--color-sand);
  --text-heading: var(--color-forest);
  --text-body: var(--color-moss);
  /* Darkened gold for text on light surfaces — --color-gold itself is
     only ~2:1 against linen, well under the WCAG AA 4.5:1 floor */
  --accent-ink: #6E5730;

  /* Semantic — dark surfaces */
  --surface-dark: var(--color-forest-deep);
  --surface-dark-alt: var(--color-forest);
  --text-heading-on-dark: var(--color-linen);
  --text-body-on-dark: var(--linen-70);

  /* Semantic — accent */
  --accent: var(--color-gold);
  --accent-hover: var(--color-gold-light);
  --on-accent: var(--color-forest-deep);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-wordmark: 'Marsh Stencil', var(--font-display);
  --wordmark-tracking: 0.06em;
  --display-weight: 300;
  --display-tracking: -0.02em;
  --text-hero: clamp(2.25rem, 5vw, 3.75rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-lead: clamp(1rem, 1.4vw, 1.25rem);
  --leading-body: 1.7;
  --text-eyebrow: 0.75rem;

  /* Spacing rhythm (0.25rem multiples) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-20: 5rem;
  --space-28: 7rem;
  --container-max: 1200px;
  --section-padding-y: 7rem;
  --nav-height: 96px;
  --nav-height-scrolled: 68px;
  --breakpoint-narrow: 900px;
  --breakpoint-nav: 720px;

  /* Effects — near-zero radii, hairlines not shadows */
  --radius-card: 4px;
  --radius-pill: 999px;
  --hairline-light: 1.5px;
  --ease: ease;
  --duration-fast: 0.2s;
  --duration-chrome: 0.4s;
  --nav-blur: blur(14px);
  --nav-scrolled-bg: rgba(26, 34, 24, 0.93);
  --image-overlay: linear-gradient(135deg, rgba(26, 34, 24, 0.7) 0%, transparent 60%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); }
p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Nav: transparent floating bar, dark blurred pill once scrolled ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-chrome) var(--ease),
              backdrop-filter var(--duration-chrome) var(--ease),
              border-color var(--duration-chrome) var(--ease);
}
.site-header.is-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: var(--nav-blur);
  border-bottom-color: var(--linen-08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  transition: padding var(--duration-chrome) var(--ease);
}
.site-header.is-scrolled .nav-inner {
  padding: 1rem 0;
}
.logo {
  display: block;
  height: 42px;
  filter: brightness(0) invert(1);
  transition: height var(--duration-chrome) var(--ease);
}
.site-header.is-scrolled .logo {
  height: 32px;
}
.site-nav {
  display: flex;
  gap: var(--space-8);
}
.site-nav a {
  color: var(--text-body-on-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--linen-08);
  padding: var(--space-10) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.85rem;
  color: var(--text-body-on-dark);
}
.footer-inner .logo { height: 20px; opacity: 0.6; }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-inner a { color: var(--accent); text-decoration: none; }

/* ---------- Section base ---------- */
.section { padding: var(--section-padding-y) 0; }
.section h2 { font-size: var(--text-h2); letter-spacing: var(--display-tracking); margin-bottom: var(--space-12); }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  font-family: var(--font-sans);
  margin-bottom: var(--space-4);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-card);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
}
.button-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.button-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.button-solid {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  cursor: pointer;
  align-self: flex-start;
}
.button-solid:hover { background: var(--accent-hover); }

/* ---------- Hero: dark, full viewport height ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface-dark);
  padding: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--image-overlay);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--accent); }
.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.1;
  letter-spacing: var(--display-tracking);
  color: var(--text-heading-on-dark);
  max-width: 16ch;
  margin-bottom: var(--space-8);
}
.hero .lead {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--text-body-on-dark);
  max-width: 60ch;
  line-height: var(--leading-body);
  margin-bottom: var(--space-10);
}

/* ---------- Who we are: dark ---------- */
.who-we-are {
  background: var(--surface-dark);
}
.who-we-are h2 { color: var(--text-heading-on-dark); }
.who-we-are p {
  max-width: 70ch;
  color: var(--text-body-on-dark);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: var(--leading-body);
}

/* ---------- Services: light ---------- */
.services {
  background: var(--surface-page);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hairline-light);
  background: var(--surface-hairline);
  border: var(--hairline-light) solid var(--surface-hairline);
}
.service-card {
  background: var(--surface-raised);
  padding: var(--space-10);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--text-heading);
}
.service-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: var(--leading-body);
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Team: light section, dark photographic cards ---------- */
.team {
  background: var(--surface-raised);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.team-card {
  background: var(--surface-dark);
  border-radius: var(--radius-card);
  padding: var(--space-10);
}
.team-card:nth-child(2) { background: var(--surface-dark-alt); }
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  margin-bottom: var(--space-6);
  background: var(--color-forest-mid);
}
.team-card h3 {
  color: var(--text-heading-on-dark);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.team-role {
  /* accent-hover (gold-light), not accent — plain gold is only 4.32:1 on
     the lighter of the two card surfaces, under the 4.5:1 AA floor */
  color: var(--accent-hover);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.team-card p:not(.team-role) {
  color: var(--text-body-on-dark);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: var(--leading-body);
  margin-bottom: var(--space-6);
}
.team-link {
  color: var(--accent-hover);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}
.team-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Selected work: light ---------- */
.work {
  background: var(--surface-page);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hairline-light);
  background: var(--surface-hairline);
  border: var(--hairline-light) solid var(--surface-hairline);
}
.work-card {
  background: var(--surface-raised);
  padding: var(--space-8);
}
.work-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--text-heading);
}
.work-meta {
  /* accent-ink, not accent — plain gold is only ~2:1 on linen, far under
     the 4.5:1 AA floor for this size of text */
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.work-card p:not(.work-meta):not(.work-role) {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: var(--leading-body);
  margin-bottom: var(--space-4);
}
.work-role {
  font-size: 0.82rem;
  color: var(--text-body);
  font-style: italic;
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact: dark ---------- */
.contact {
  background: var(--surface-dark-alt);
  position: relative;
  overflow: hidden;
}
.contact h2 { color: var(--text-heading-on-dark); margin-bottom: var(--space-8); }
.contact-intro {
  color: var(--text-body-on-dark);
  font-weight: 300;
  margin-bottom: var(--space-10);
  max-width: 60ch;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 500px;
  position: relative;
}
.contact-form label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-body-on-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: var(--color-forest-deep);
  border: 1px solid var(--linen-50);
  border-radius: var(--radius-card);
  padding: 0.7rem 0.9rem;
  color: var(--text-heading-on-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--linen-25);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--gold-50);
}
.hp-field { display: none; }
.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--accent-hover); }
.form-status.error { color: #E39A78; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: var(--space-4);
    row-gap: var(--space-2);
  }
  .site-nav {
    gap: var(--space-6);
    flex-wrap: wrap;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .nav-inner, .logo { transition: none; }
}

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