:root {
  --background: #f9f8f6;
  --foreground: #1a1a18;
  --white: #ffffff;
  --primary: #e8311f;
  --primary-dark: #c92617;
  --secondary: #ede9e3;
  --muted-text: #706c63;
  --border: rgba(26, 26, 24, 0.12);
  --header-height: 5rem;
  --container: 72rem;
  --shadow: 0 16px 40px rgba(26, 26, 24, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 2.4rem;
  color: var(--white);
  font-size: clamp(3rem, 7.2vw, 5.75rem);
  font-weight: 900;
  line-height: 0.98;
}

h1 em {
  color: var(--primary);
  font-weight: 700;
}

h2 {
  margin-bottom: 1.45rem;
  font-size: clamp(2.15rem, 4.3vw, 3.5rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

p:last-child { margin-bottom: 0; }

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--foreground);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin-bottom: 1.05rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.29em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--primary);
  color: var(--white);
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.button:focus-visible,
.primary-nav a:focus-visible,
.menu-toggle:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(232, 49, 31, 0.35);
  outline-offset: 4px;
}

.button--small {
  min-height: 2.65rem;
  padding: 0.65rem 1.15rem;
  letter-spacing: 0.08em;
}

.button--outline {
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}

.button--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled { box-shadow: 0 5px 24px rgba(26, 26, 24, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 4rem; object-fit: contain; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav > a:not(.button) {
  position: relative;
  color: rgba(26, 26, 24, 0.72);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.button):hover,
.primary-nav > a:not(.button).is-active { color: var(--primary); }

.primary-nav > a:not(.button):hover::after,
.primary-nav > a:not(.button).is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border: 0;
  color: var(--foreground);
  background: transparent;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.31rem 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(36rem, 68vh);
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.image-section__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image { object-position: center; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15,15,14,0.82) 0%, rgba(15,15,14,0.57) 51%, rgba(15,15,14,0.18) 100%);
}

.hero__content { padding-block: calc(var(--header-height) + 6rem) 6rem; }
.hero__eyebrow { margin-bottom: 1.55rem; }

.section { padding-block: clamp(5.25rem, 9vw, 7.5rem); }
.section--light { background: var(--background); }
.section--white { background: var(--white); }
.section--muted { background: var(--secondary); }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 6rem);
}

.split-grid--top { align-items: start; }
.split-grid--center { align-items: center; }

.prose-column > p:not(.eyebrow) {
  color: rgba(26, 26, 24, 0.7);
  max-width: 40rem;
}

.quote-card {
  padding: clamp(2rem, 4vw, 3rem);
  border-left: 4px solid var(--primary);
  background: var(--secondary);
}

.quote-card blockquote {
  margin-bottom: 1.5rem;
  color: rgba(26, 26, 24, 0.82);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.75;
}

.quote-card__role {
  color: var(--muted-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.image-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.image-section__image { object-position: center 42%; }
.image-section__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 24, 0.86);
}

.image-section h2 { max-width: 34rem; }
.image-section__copy p { color: rgba(255,255,255,0.78); }
.image-section__copy .button { margin-top: 0.65rem; }

.section-intro { max-width: 60rem; margin-bottom: 3.7rem; }
.section-intro h2 { font-size: clamp(2rem, 3.7vw, 3.2rem); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  min-height: 15rem;
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
  background: var(--white);
  transition: background-color 180ms ease;
}

.service-card:hover { background: #faf8f4; }
.service-card--wide { grid-column: 1 / -1; min-height: auto; }

.service-card__mark {
  position: relative;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin-top: 0.12rem;
  background: rgba(232, 49, 31, 0.1);
}

.service-card__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--primary);
  transform: translate(-50%, -50%);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted-text);
  font-size: 0.89rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}

.team-image { position: relative; padding: 0 0 1rem 1rem; }
.team-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(20rem, 35vw, 27rem);
  object-fit: cover;
}

.team-image span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 6rem;
  background: var(--primary);
}

.contact {
  color: var(--white);
  background: var(--foreground);
  text-align: center;
}

.contact h2 { margin-bottom: 2.1rem; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4.75rem;
  padding-top: 2.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact__brand img {
  width: auto;
  height: 3.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.68;
}

.contact__brand p {
  color: rgba(255,255,255,0.42);
  font-size: 0.74rem;
}

.site-footer {
  padding-block: 1.45rem;
  color: rgba(255,255,255,0.35);
  background: #0d0d0c;
  text-align: center;
}

.site-footer p { margin: 0; font-size: 0.72rem; }

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  :root { --header-height: 4.65rem; }
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .brand img { height: 3.55rem; }
  .js .menu-toggle { display: block; }

  .js .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    max-height: 0;
    padding-inline: 1rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 16px 24px rgba(26,26,24,0.1);
    visibility: hidden;
    transition: max-height 260ms ease, visibility 260ms ease, padding 260ms ease;
  }

  .js .primary-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    padding-block: 0.8rem 1rem;
    visibility: visible;
  }

  .js .primary-nav > a:not(.button) {
    padding: 0.9rem 0.35rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
  }

  .js .primary-nav > a:not(.button)::after { display: none; }
  .js .primary-nav .button { margin-top: 0.85rem; }

  .js .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { opacity: 0; }
  .js .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .no-js .site-header {
    position: static;
    height: auto;
  }

  .no-js .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 0.65rem 0.9rem;
  }

  .no-js .primary-nav {
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
  }

  .no-js .primary-nav .button {
    min-height: 2.4rem;
  }

  .hero { min-height: 37rem; }
  .hero__overlay { background: linear-gradient(90deg, rgba(15,15,14,0.84), rgba(15,15,14,0.46)); }
  .hero__content { padding-block: calc(var(--header-height) + 5.5rem) 5rem; }

  .split-grid { grid-template-columns: 1fr; gap: 3.25rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: auto; }
  .service-card { min-height: auto; }
  .team-image { max-width: 43rem; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.85rem, 15vw, 4.1rem); }
  .section { padding-block: 4.6rem; }
  .hero__image { object-position: 44% center; }
  .hero__content { padding-block: calc(var(--header-height) + 4.7rem) 4.5rem; }
  .hero .button { width: 100%; max-width: 17rem; }
  .quote-card { padding: 1.75rem; }
  .service-card { padding: 1.5rem; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .contact__actions .button { width: 100%; }
}

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